/* ================================================================
   PAGES DE SERVICES IMMERSIVES (refonte 2026-10)
   Préfixe sv- : complète css/accueil.css (socle commun ac-).
================================================================ */


/* ── Bandeau « avance immédiate » ── */
.sv-avance { background: var(--ac-marine); color: #F5F1EA; }
html.dark .sv-avance { background: #13233A; }
.sv-avance-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(64px, 8vw, 110px); }
.sv-avance h2 { font-size: clamp(32px, 3.2vw, 44px); line-height: 1.02; color: #F5F1EA; }
.sv-avance p { margin: 18px 0 0; color: #dfe6ef; }
.sv-calcul { background: rgba(245, 241, 234, .07); border: 1px solid rgba(245, 241, 234, .2); border-radius: 18px; padding: clamp(24px, 3vw, 40px); }
.sv-calcul-ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(245, 241, 234, .16); font-size: 16px; }
.sv-calcul-ligne:last-of-type { border-bottom: 0; }
.sv-calcul-ligne s { color: #b9c4d2; }
.sv-calcul-ligne strong { font-family: var(--ac-chiffres); font-size: 38px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.sv-calcul small { display: block; margin-top: 12px; font-size: 13px; line-height: 1.5; color: #b9c4d2; }

/* ── Prestations détaillées ── */
.sv-presta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.sv-presta article { background: var(--ac-carte); border-radius: 18px; padding: 30px 28px; display: flex; flex-direction: column; }
.sv-presta h3 { font-size: 30px; line-height: 1.1; color: var(--ac-marine); }
.sv-presta p { margin: 12px 0 0; font-size: 16px; line-height: 1.65; color: var(--ac-doux); }
.sv-presta ul { margin: 16px 0 0; padding: 0; list-style: none; font-size: 15px; }
.sv-presta li { padding: 9px 0; border-top: 1px solid var(--ac-ligne); }
.sv-presta .sv-prix { margin-top: auto; padding-top: 20px; font-size: 15px; font-weight: 600; color: var(--ac-encre); }
.sv-presta .sv-prix span { font-weight: 400; color: var(--ac-doux); }
/* Gardiennage (Ménage) : une ligne par durée, prix barré puis prix après crédit d'impôt */
.sv-semaines li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sv-semaines s { font-family: var(--ac-chiffres); font-size: 14px; color: var(--ac-doux); }
.sv-semaines b { margin-left: 8px; font-family: var(--ac-chiffres); font-size: 20px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--ac-marine); }

/* Six prestations (aide à domicile) */
.sv-presta-6 article { padding: 26px 26px 28px; }
.sv-presta-6 h3 { font-size: 26px; }

/* ── Mode mandataire : « Vous / Nous » et frais de gestion ── */
.sv-mandat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.sv-mandat > div { border-radius: 18px; padding: 30px 28px; background: var(--ac-carte); }
.sv-mandat h3 { font-size: 30px; color: var(--ac-marine); }
.sv-mandat ul { margin: 14px 0 0; padding: 0; list-style: none; font-size: 16px; }
.sv-mandat li { padding: 10px 0; border-top: 1px solid var(--ac-ligne); }
.sv-mandat-tarif { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: center; border-radius: 18px; padding: 28px; background: var(--ac-marine); color: #F5F1EA; }
html.dark .sv-mandat-tarif { background: #13233A; }
.sv-mandat-tarif strong { display: block; font-family: var(--ac-chiffres); font-size: 40px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.sv-mandat-tarif small { display: block; margin-top: 6px; font-size: 14px; color: #d9e2ee; }
.sv-mandat-tarif p { margin: 0; font-size: 16px; line-height: 1.65; color: #e6ecf3; }
.ac .sv-mandat-tarif a, .ac .sv-mandat-tarif .ac-lien, .ac .sv-mandat-tarif .ac-lien:hover { color: #F5F1EA; }

/* ── Grille des tarifs (garde d'enfants) : montants en Inter ── */
.sv-tarifs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.sv-tarifs article { background: var(--ac-carte); border-radius: 18px; padding: 30px 28px; display: flex; flex-direction: column; }
.sv-tarifs h3 { font-size: 28px; line-height: 1.1; color: var(--ac-marine); }
.sv-tarifs strong { display: block; margin-top: 18px; font-family: var(--ac-chiffres); font-size: 40px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--ac-marine); }
.sv-tarifs strong span { font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--ac-doux); }
.sv-tarifs .sv-net { margin: 6px 0 0; font-size: 15px; font-weight: 600; }
.sv-tarifs p { margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: var(--ac-doux); }
.sv-tarifs-note { margin: 20px 0 0; font-size: 14px; color: var(--ac-doux); }

/* Trois aides au lieu de quatre */
.ac-aides-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ── Fiches des aides (aides financières) : pour qui, combien, qui la verse ── */
.sv-fiches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.sv-fiches article { background: var(--ac-carte); border-radius: 18px; padding: 30px 28px; }
.sv-fiches .sv-fiche-chiffre { display: block; font-family: var(--ac-chiffres); font-size: 30px; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; color: var(--ac-marine); }
.sv-fiches h3 { margin-top: 8px; font-size: 26px; line-height: 1.15; color: var(--ac-encre); }
.sv-fiches p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--ac-doux); }
.sv-fiches dl { margin: 16px 0 0; font-size: 15px; }
.sv-fiches dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--ac-ligne); }
.sv-fiches dt { color: var(--ac-doux); }
.sv-fiches dd { margin: 0; font-weight: 500; }
.sv-fiches .sv-fiche-plus { display: flex; flex-direction: column; justify-content: center; background: transparent; border: 1px solid var(--ac-ligne); }

/* ── Tableau : quelle aide pour quel service ── */
.sv-tableau-cadre { margin-top: 48px; overflow-x: auto; border-radius: 18px; background: var(--ac-carte); }
.sv-tableau { width: 100%; min-width: 640px; margin: 0; border-collapse: collapse; font-size: 16px; }
.sv-tableau th, .sv-tableau td { padding: 18px 20px; text-align: center; border: 0; border-bottom: 1px solid var(--ac-ligne); background: transparent; }
.sv-tableau thead th { font-size: 14px; font-weight: 600; color: var(--ac-doux); }
.sv-tableau tbody th { text-align: left; font-family: var(--ac-serif); font-size: 22px; font-weight: 600; color: var(--ac-marine); }
.sv-tableau tbody tr:last-child > * { border-bottom: 0; }
/* Le thème parent raye les lignes, les colore au survol et borde l'en-tête : neutralisé */
.ac .sv-tableau thead:first-child tr:first-child th { border-block-start: 0; }
.ac .sv-tableau tbody tr > th, .ac .sv-tableau tbody tr > td, .ac .sv-tableau tbody tr:hover > td, .ac .sv-tableau tbody tr:hover > th { background-color: transparent; }
.sv-tableau .oui { font-weight: 600; color: var(--ac-marine); }
.sv-tableau .non { color: var(--ac-doux); }
.sv-tableau-note { margin: 16px 0 0; font-size: 14px; color: var(--ac-doux); }

/* ── Page Contact : titre et moyens de contact à gauche, formulaire à droite ── */
/* Pas de photo sous l'en-tête : il prend d'emblée son aspect « défilé » (logo blanc lisible) */
body.page-template-page-contact .header-main { background: rgba(28, 45, 63, .92); backdrop-filter: blur(18px) saturate(1.8); -webkit-backdrop-filter: blur(18px) saturate(1.8); }
.ct-haut { padding-top: clamp(124px, 13vw, 170px); padding-bottom: clamp(64px, 8vw, 110px); }
.ct-grille { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-areas: "tete formulaire" "canaux formulaire"; grid-template-rows: auto 1fr; column-gap: clamp(40px, 6vw, 96px); align-items: start; }
.ct-tete { grid-area: tete; }
.ct-haut h1 { font-size: clamp(42px, 4.6vw, 68px); line-height: 1.02; color: var(--ac-marine); }
.ct-haut h1 em { font-weight: 500; }
.ct-intro { margin: 22px 0 0; color: var(--ac-doux); }
.ct-canaux { grid-area: canaux; list-style: none; margin: 36px 0 0; padding: 0; }
.ct-canaux li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--ac-ligne); font-size: 16px; }
.ct-canaux li:last-child { border-bottom: 1px solid var(--ac-ligne); }
.ct-canaux span { color: var(--ac-doux); }
.ct-canaux b, .ct-canaux a, .ac .ct-canaux .ac-lien { font-weight: 600; color: var(--ac-marine); justify-self: start; }
.ct-formulaire { grid-area: formulaire; background: var(--ac-carte); border-radius: 18px; padding: clamp(26px, 3.4vw, 48px); scroll-margin-top: 96px; }
.ct-quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ct-zones { padding: clamp(56px, 7vw, 96px) 0; }

/* ── Page Qui sommes-nous (préfixe qs-) ── */
.qs-reperes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.qs-repere { background: var(--ac-carte); border-radius: 18px; padding: 26px 24px; }
.qs-repere strong { display: block; font-family: var(--ac-chiffres); font-size: 28px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; color: var(--ac-marine); }
.qs-repere span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ac-doux); }
.qs-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.qs-modes article { background: var(--ac-carte); border-radius: 18px; padding: 28px 26px; }
.qs-modes h3 { font-size: 26px; color: var(--ac-marine); }
.qs-modes p { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--ac-doux); }
.qs-modes .ac-lien { display: inline-block; margin-top: 14px; font-size: 15px; }
.sv-avance .ac-maj { color: #b9c4d2; }

/* ── Infos pratiques ── */
.sv-infos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin-top: 48px; padding-bottom: clamp(72px, 10vw, 140px); }
.sv-info { border-top: 2px solid var(--ac-marine); padding-top: 20px; }
.sv-info h3 { font-size: 28px; }
.sv-info p { margin: 10px 0 0; font-size: 16px; line-height: 1.65; color: var(--ac-doux); }

/* ── Autres services et article lié ── */
.sv-autres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.sv-autres a { position: relative; display: block; height: 420px; border-radius: 18px; overflow: hidden; color: #F5F1EA; text-decoration: none; }
.sv-autres img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ac-ease); }
.sv-autres a:hover img { transform: scale(1.04); }
.sv-autres a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13, 24, 40, .85) 0%, rgba(13, 24, 40, 0) 60%); }
.sv-autres a > span { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 24px; }
.sv-autres small { display: block; font-size: 13px; font-weight: 600; color: #d9e2ee; }
.sv-autres b { display: block; margin-top: 6px; font-family: var(--ac-serif); font-size: 32px; font-weight: 600; line-height: 1.05; }

@media (prefers-reduced-motion: reduce) {
	.sv-autres img { transition: none; }
}

@media (max-width: 1100px) {
	.sv-presta, .sv-autres { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.sv-mandat { grid-template-columns: minmax(0, 1fr); }
	.sv-tarifs, .sv-fiches, .ct-quatre, .qs-reperes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.qs-modes { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
	/* Contact : le formulaire passe juste après l'introduction */
	.ct-grille { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tete" "formulaire" "canaux"; row-gap: 32px; }
	.ct-canaux { margin-top: 8px; }
}

@media (max-width: 760px) {
	.sv-avance-grille, .sv-presta, .sv-infos, .sv-autres { grid-template-columns: minmax(0, 1fr); }
	.sv-calcul-ligne strong { font-size: 32px; }
	.sv-autres a { height: 300px; }
	.sv-presta h3 { font-size: 26px; }
	.sv-mandat-tarif { grid-template-columns: minmax(0, 1fr); }
	.sv-mandat-tarif strong { font-size: 34px; }
	.sv-tarifs, .ac-aides-3, .sv-fiches, .ct-quatre, .qs-reperes { grid-template-columns: minmax(0, 1fr); }
	.ct-canaux li { grid-template-columns: 96px minmax(0, 1fr); }
	.ct-formulaire { padding: 24px 18px; }
	.sv-fiches dl div { grid-template-columns: 96px minmax(0, 1fr); }
	/* Tableau en cartes : une carte par service, seulement les aides applicables */
	.sv-tableau-cadre { background: transparent; overflow: visible; border-radius: 0; }
	.sv-tableau, .sv-tableau tbody, .sv-tableau tr, .sv-tableau th, .sv-tableau td { display: block; min-width: 0; }
	.sv-tableau thead, .sv-tableau td.non { display: none; }
	.sv-tableau tr { margin-bottom: 12px; padding: 18px 20px; border-radius: 18px; background: var(--ac-carte); }
	.sv-tableau tbody th { padding: 0 0 8px; border: 0; font-size: 24px; }
	.sv-tableau td { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; text-align: right; font-size: 15px; border-bottom: 0; border-top: 1px solid var(--ac-ligne); }
	.sv-tableau td::before { content: attr(data-label); font-weight: 400; color: var(--ac-doux); text-align: left; }
	.sv-tarifs strong { font-size: 34px; }
	/* Une seule photo, sans version mobile : cadrage sur le renard et le livre */
	body.page-template-page-garde-enfant .ac-ouverture .ac-photo-img { object-position: 62% 50% !important; }
}
