/* Portail des démarches — GAM-Tech
   Principes : lisible avant tout (RGAA), aucune ressource externe (polices et
   illustrations hébergées ici : RGPD), une couleur par commune (--couleur),
   illustrations dessinées plutôt que photos recadrées. */

/* ---------- Polices (SIL Open Font License, voir public/fonts) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("../fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("../fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/fraunces-latin.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/fraunces-latin-italic.woff2") format("woff2"); }

:root {
    --couleur: #1f4e8c;
    --couleur-fonce: color-mix(in srgb, var(--couleur) 72%, #0b1220);
    --couleur-teinte: color-mix(in srgb, var(--couleur) 9%, #fff);
    --couleur-teinte-2: color-mix(in srgb, var(--couleur) 18%, #fff);
    --or: #b9853a;
    --encre: #161d2b;
    --texte: #262e3d;
    --texte-doux: #5c6576;
    --fond: #f7f4ee;
    --blanc: #fff;
    --bordure: #e7e1d6;
    --bordure-forte: #cfc7b8;
    --rayon: 18px;
    --rayon-petit: 12px;
    --ombre: 0 1px 1px rgb(22 29 43 / .03), 0 2px 6px rgb(22 29 43 / .05), 0 10px 24px -12px rgb(22 29 43 / .10);
    --ombre-survol: 0 2px 4px rgb(22 29 43 / .04), 0 18px 40px -16px rgb(22 29 43 / .28);
    --police: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --police-titre: "Fraunces", Georgia, "Times New Roman", serif;
    --vert: #1d7a4a; --vert-fond: #e2f3e8;
    --ambre: #8a5a00; --ambre-fond: #fcf0d6;
    --bleu: #1f5fa8; --bleu-fond: #e4eefa;
    --rouge: #a3261f; --rouge-fond: #fbe6e3;
    --gris: #5c6576; --gris-fond: #eeebe4;
    --tombe-vert: #2fb36b; --tombe-jaune: #f2c12e; --tombe-orange: #f07f2a; --tombe-rouge: #e0403a; --tombe-libre: #9aa6b4;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--fond); color: var(--texte);
    font: 400 1.03rem/1.62 var(--police); font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; padding: 2.75rem 0 4rem; outline: none; }
img { max-width: 100%; display: block; }
a { color: var(--couleur); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--couleur-fonce); }
:focus-visible { outline: 3px solid var(--couleur); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { color: var(--encre); line-height: 1.18; margin: 0 0 .55em; }
h1 { font: 600 clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem)/1.12 var(--police-titre); letter-spacing: -.015em; font-variation-settings: "opsz" 72; }
h2 { font: 600 1.4rem/1.2 var(--police-titre); letter-spacing: -.01em; }
h3 { font-size: 1.08rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
strong { font-weight: 650; }

.conteneur { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.visuellement-cache, .piege { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.evitement { position: absolute; left: 1rem; top: -4rem; background: var(--encre); color: #fff; padding: .6rem 1rem; border-radius: 10px; z-index: 20; }
.evitement:focus { top: 1rem; color: #fff; }
.surtitre { display: block; margin-bottom: .45rem; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--or); }

/* ---------- En-tête ---------- */
.entete { background: rgb(255 255 255 / .86); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--bordure); position: sticky; top: 0; z-index: 10; }
.entete__ligne { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.6rem; flex-wrap: wrap; padding-block: .5rem; }
.marque { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--encre); }
.marque:hover { color: var(--encre); }
.marque__logo { height: 3rem; width: auto; max-width: 9rem; object-fit: contain; }
.marque__pastille { width: 2.75rem; height: 2.75rem; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, var(--couleur), var(--couleur-fonce)); color: #fff; font: 600 1.3rem/1 var(--police-titre); box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 6px 14px -6px var(--couleur); }
.marque__texte { display: flex; flex-direction: column; line-height: 1.15; }
.marque__nom { font: 600 1.14rem/1.15 var(--police-titre); letter-spacing: -.01em; }
.marque__sous-titre { color: var(--texte-doux); font-size: .8rem; letter-spacing: .02em; }
.navigation ul { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.navigation a:not(.bouton) { display: block; padding: .55rem .85rem; border-radius: 10px; text-decoration: none; color: var(--texte); font-weight: 500; font-size: .96rem; }
.navigation a:not(.bouton):hover { background: var(--couleur-teinte); color: var(--couleur-fonce); }
.navigation a[aria-current="page"] { color: var(--couleur); background: var(--couleur-teinte); }
.navigation .bouton { margin-left: .4rem; }

/* ---------- Boutons ---------- */
.bouton {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 2.75rem; padding: .55rem 1.2rem; border-radius: 12px;
    border: 1.5px solid var(--couleur); background: var(--blanc); color: var(--couleur);
    font: 600 .96rem/1.2 var(--police); text-decoration: none; cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s, transform .15s;
}
.bouton:hover { background: var(--couleur-teinte); color: var(--couleur-fonce); }
.bouton--plein { background: linear-gradient(180deg, color-mix(in srgb, var(--couleur) 88%, #fff), var(--couleur)); color: #fff; border-color: var(--couleur-fonce); box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 6px 16px -8px var(--couleur); }
.bouton--plein:hover { background: var(--couleur-fonce); color: #fff; transform: translateY(-1px); }
.bouton--discret { border-color: var(--bordure-forte); color: var(--texte); }
.bouton--petit { min-height: 2.25rem; padding: .3rem .85rem; font-size: .9rem; border-radius: 10px; }
.lien-bouton { background: none; border: 0; padding: 0; font: inherit; color: var(--rouge); text-decoration: underline; cursor: pointer; }
.en-ligne { display: inline; margin: 0; }

/* ---------- Bandeau d'accueil ---------- */
.bandeau { position: relative; overflow: hidden; color: var(--encre); isolation: isolate;
    background: linear-gradient(180deg, color-mix(in srgb, var(--couleur) 10%, #f3f1ec), color-mix(in srgb, var(--couleur) 6%, #f6efe4)); }
/* Le paysage occupe le bas du bandeau ; le ciel se prolonge derrière le texte. */
.bandeau .paysage { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70%; z-index: -1; }
.bandeau__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bandeau--photo { color: #fff; }
.bandeau--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--couleur-fonce) 90%, transparent), color-mix(in srgb, var(--couleur-fonce) 55%, transparent) 50%, transparent); }
.bandeau__contenu { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(9rem, 17vw, 14rem); }
.bandeau__titre { font: 600 clamp(2.1rem, 1.3rem + 3vw, 3.6rem)/1.05 var(--police-titre); max-width: 18ch; margin-bottom: .9rem; letter-spacing: -.02em; text-wrap: balance; color: inherit; font-variation-settings: "opsz" 144; }
.bandeau__titre em { font-style: italic; font-weight: 500; color: var(--couleur); }
.bandeau--photo .bandeau__titre em { color: #ffd98a; }
.bandeau__texte { font-size: 1.14rem; max-width: 44ch; margin: 0; color: color-mix(in srgb, var(--encre) 78%, transparent); }
.bandeau--photo .bandeau__texte { color: rgb(255 255 255 / .9); }

/* ---------- Couleurs du paysage (dérivées de la couleur de la commune) ---------- */
.paysage .p-ciel-haut { stop-color: color-mix(in srgb, var(--couleur) 10%, #f3f1ec); }
.paysage .p-ciel-milieu { stop-color: #fbf1e2; }
.paysage .p-ciel-bas { stop-color: #f6dcbc; }
.paysage .p-halo-coeur { stop-color: #ffd89a; stop-opacity: .75; }
.paysage .p-halo-bord { stop-color: #ffd89a; stop-opacity: 0; }
.paysage .p-soleil { fill: #ffcf7d; }
.paysage .p-nuage { fill: #fff; opacity: .7; }
.paysage .p-loin { fill: color-mix(in srgb, var(--couleur) 20%, #d9dfe2); }
.paysage .p-loin-arbre { fill: color-mix(in srgb, var(--couleur) 26%, #c8d0cf); }
.paysage .p-coteau { fill: #c9c78f; }
.paysage .p-rang { stroke: #8e9f5c; stroke-width: 3.2; opacity: .55; }
.paysage .p-village { fill: #9fb07a; }
.paysage .p-mur { fill: #fbf6ec; }
.paysage .p-toit { fill: #8d6450; }
.paysage .p-fenetre { fill: color-mix(in srgb, var(--couleur) 60%, #37414d); }
.paysage .p-croix { stroke: #8d6450; stroke-width: 3; fill: none; }
.paysage .p-arbre { fill: #6f9055; }
.paysage .p-arbre-fonce { fill: #4b6b44; }
.paysage .p-tronc { fill: #6b5140; }
.paysage .p-avant { fill: color-mix(in srgb, var(--couleur) 30%, #54704a); }
.paysage .p-chemin { stroke: #efe2c8; stroke-width: 16; fill: none; stroke-linecap: round; opacity: .9; }

/* ---------- Sections & cartes ---------- */
.section { margin-top: 3.25rem; }
.section:first-child { margin-top: 0; }
.section__titre { font: 600 1.55rem/1.2 var(--police-titre); margin-bottom: 1.25rem; }
.section__entete { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.section__entete h1, .section__entete h2 { margin: 0; }
.section__note { margin-top: 1.25rem; color: var(--texte-doux); }
.entete-page { margin-bottom: 2rem; max-width: 60rem; }
.intro { color: var(--texte-doux); font-size: 1.08rem; max-width: 64ch; }

/* Au-dessus du paysage, les démarches remontent sur le bandeau. */
.section.demarches { margin-top: clamp(-8.5rem, -9vw, -4rem); position: relative; z-index: 2; }

.cartes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); }
.cartes--infos { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.carte {
    position: relative; display: flex; flex-direction: column; gap: .4rem;
    background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon);
    padding: 1.5rem 1.5rem 1.3rem; box-shadow: var(--ombre);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.carte:hover, .carte:focus-within { transform: translateY(-3px); box-shadow: var(--ombre-survol); border-color: var(--couleur-teinte-2); }
.carte__picto {
    width: 3.4rem; height: 3.4rem; border-radius: 16px; display: grid; place-items: center; margin-bottom: .75rem;
    color: var(--couleur); background: linear-gradient(145deg, var(--couleur-teinte), var(--couleur-teinte-2));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--couleur) 12%, transparent);
}
.carte__picto .icone { width: 1.75rem; height: 1.75rem; }
.carte__picto--doux { color: var(--or); background: linear-gradient(145deg, #fbf3e4, #f4e5c8); box-shadow: inset 0 0 0 1px rgb(185 133 58 / .18); }
.carte__titre { margin: 0; font-size: 1.1rem; font-weight: 650; }
.carte__lien { color: var(--encre); text-decoration: none; }
.carte__lien::after { content: ""; position: absolute; inset: 0; border-radius: var(--rayon); }
.carte__lien:focus-visible { outline: none; }
.carte:has(.carte__lien:focus-visible) { outline: 3px solid var(--couleur); outline-offset: 2px; }
.carte__texte { margin: 0; color: var(--texte-doux); font-size: .96rem; line-height: 1.55; }
.carte__fleche { margin-top: auto; padding-top: .8rem; color: var(--couleur); display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; font-weight: 600; }
.carte:hover .carte__fleche .icone { transform: translateX(3px); }
.carte__fleche .icone { transition: transform .2s; }
.carte--activite .carte__action { margin-top: auto; align-self: flex-start; position: relative; }
.etiquette { display: inline-flex; align-items: center; gap: .35rem; margin-top: .6rem; font-size: .84rem; font-weight: 600; color: var(--couleur); }

.icone { width: 1.6rem; height: 1.6rem; flex: none; }
.icone--petite { width: 1.1rem; height: 1.1rem; }

/* ---------- Panneaux & formulaires ---------- */
.panneau { background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--ombre); }
.panneau--etroit { max-width: 29rem; margin-inline: auto; }
.panneau--moyen { max-width: 44rem; margin-inline: auto; }
.panneau--centre { text-align: center; }
.panneau__liens { margin: 1.25rem 0 0; display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; font-size: .94rem; }

.formulaire > div, .formulaire .champ, .formulaire .bloc > div { margin-bottom: 1.2rem; }
.bloc { border: 0; padding: 0; margin: 0 0 2rem; min-width: 0; }
.bloc__titre { display: flex; align-items: center; gap: .7rem; font: 600 1.25rem/1.2 var(--police-titre); color: var(--encre); margin-bottom: 1.1rem; padding: 0; }
.bloc__numero { width: 2rem; height: 2rem; border-radius: 50%; background: var(--couleur); color: #fff; display: grid; place-items: center; font: 700 .92rem/1 var(--police); }
fieldset.champ { border: 0; padding: 0; min-width: 0; }
label, .champ__legende { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; padding: 0; color: var(--encre); }
input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], input[type="number"], input[type="file"], select, textarea {
    width: 100%; min-height: 3rem; padding: .65rem .9rem; font: inherit; color: var(--texte);
    background: #fdfcfa; border: 1.5px solid #d5cdbf; border-radius: 12px; transition: border-color .15s, box-shadow .15s, background .15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--bordure-forte); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--couleur); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--couleur) 16%, transparent); }
input[type="file"] { padding: .55rem; background: var(--fond); }
input[type="file"]::file-selector-button { margin-right: .8rem; padding: .45rem .9rem; border: 1.5px solid var(--couleur); border-radius: 10px; background: #fff; color: var(--couleur); font: 600 .9rem/1.2 var(--police); cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: var(--couleur-teinte); }
input[type="checkbox"], input[type="radio"] { width: 1.2rem; height: 1.2rem; accent-color: var(--couleur); margin: .2rem .6rem 0 0; flex: none; }
.formulaire div:has(> input[type="checkbox"]) { display: flex; flex-wrap: wrap; align-items: flex-start; }
.formulaire div:has(> input[type="checkbox"]) label { flex: 1; font-weight: 500; }
.formulaire div:has(> input[type="checkbox"]) .form-help, .formulaire div:has(> input[type="checkbox"]) ul { flex-basis: 100%; padding-left: 1.85rem; }
.form-help, .aide { color: var(--texte-doux); font-size: .9rem; margin-top: .35rem; }
.grille-2 { display: grid; gap: 0 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.formulaire ul:not(.pieces) { list-style: none; margin: .4rem 0 0; padding: 0; color: var(--rouge); font-weight: 600; font-size: .93rem; }
.formulaire ul:not(.pieces) li::before { content: "⚠ "; }

.choix-pastilles, .formulaire [id$="_creneau"], .formulaire [id$="_profil"] { display: flex; flex-wrap: wrap; gap: .55rem; }
.choix-pastilles input, .formulaire [id$="_creneau"] input, .formulaire [id$="_profil"] input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choix-pastilles label, .formulaire [id$="_creneau"] label, .formulaire [id$="_profil"] label {
    margin: 0; font-weight: 500; cursor: pointer; padding: .6rem 1.05rem; border-radius: 999px;
    border: 1.5px solid #d5cdbf; background: var(--blanc); transition: all .15s; font-size: .95rem;
}
.choix-pastilles label:hover, .formulaire [id$="_creneau"] label:hover, .formulaire [id$="_profil"] label:hover { border-color: var(--couleur); }
.choix-pastilles input:checked + label, .formulaire [id$="_creneau"] input:checked + label, .formulaire [id$="_profil"] input:checked + label { background: var(--couleur); border-color: var(--couleur); color: #fff; box-shadow: 0 6px 14px -8px var(--couleur); }
.choix-pastilles input:focus-visible + label, .formulaire [id$="_creneau"] input:focus-visible + label, .formulaire [id$="_profil"] input:focus-visible + label { outline: 3px solid var(--couleur); outline-offset: 2px; }

/* ---------- Alertes & statuts ---------- */
.alerte { display: flex; gap: .6rem; align-items: flex-start; border-radius: 14px; padding: .95rem 1.15rem; margin-bottom: 1.4rem; border: 1px solid; }
.alerte--succes { background: var(--vert-fond); border-color: #bfe3cc; color: #14512f; }
.alerte--erreur { background: var(--rouge-fond); border-color: #f1c6c0; color: #7c1d17; }
.alerte--info { background: var(--bleu-fond); border-color: #c7dbf3; color: #183f6f; }
.statut { display: inline-block; padding: .22rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 650; white-space: nowrap; }
.statut--recue, .statut--demandee, .statut--a_payer { background: var(--ambre-fond); color: var(--ambre); }
.statut--en_cours, .statut--paiement_signale { background: var(--bleu-fond); color: var(--bleu); }
.statut--traitee, .statut--validee, .statut--payee, .statut--confirmee { background: var(--vert-fond); color: var(--vert); }
.statut--refusee { background: var(--rouge-fond); color: var(--rouge); }
.statut--annulee { background: var(--gris-fond); color: var(--gris); }
.reference { font-size: 1.2rem; }
.vide { color: var(--texte-doux); font-style: italic; }

/* ---------- Listes, tableaux, fils ---------- */
.fil { font-size: .9rem; color: var(--texte-doux); margin-bottom: 1.1rem; }
.liste { list-style: none; margin: 0; padding: 0; background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
.liste__ligne { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.3rem; border-top: 1px solid var(--bordure); flex-wrap: wrap; transition: background .15s; }
.liste__ligne:hover { background: #fcfaf6; }
.liste__ligne:first-child { border-top: 0; }
.liste__lien { display: flex; flex-direction: column; text-decoration: none; color: var(--texte); min-width: 0; flex: 1 1 18rem; }
.liste__lien:hover .liste__principal { color: var(--couleur); }
.liste__principal { font-weight: 600; color: var(--encre); }
.liste__secondaire { color: var(--texte-doux); font-size: .9rem; font-weight: 400; }
.liste__droite { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.liste__date { color: var(--texte-doux); font-size: .88rem; }

.tableau-defilant { overflow-x: auto; background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre); }
.tableau { width: 100%; border-collapse: collapse; }
.tableau th, .tableau td { padding: 1rem 1.15rem; text-align: left; border-top: 1px solid var(--bordure); vertical-align: middle; }
.tableau thead th { border-top: 0; background: #fbf9f5; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--texte-doux); font-weight: 650; }
.tableau tbody th { font-weight: 600; color: var(--encre); }
.tableau tbody tr:hover { background: #fcfaf6; }
.tableau .nombre { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tableau .actions { display: flex; gap: .8rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; }

.fil-discussion { display: flex; flex-direction: column; gap: 1rem; max-width: 48rem; }
.message { background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 1.2rem 1.4rem; box-shadow: var(--ombre); }
.message--mairie { background: var(--couleur-teinte); border-color: var(--couleur-teinte-2); margin-left: clamp(0rem, 4vw, 3rem); box-shadow: none; }
.message__auteur { font-size: .86rem; color: var(--texte-doux); font-weight: 600; margin-bottom: .45rem; }
.pieces { margin: .8rem 0 0; padding-left: 1.2rem; }

/* ---------- Espace famille ---------- */
.enfants { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.enfant { background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 1.35rem 1.4rem; box-shadow: var(--ombre); }
.enfant__entete { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.enfant__initiale { width: 2.9rem; height: 2.9rem; border-radius: 50%; background: linear-gradient(145deg, var(--couleur-teinte), var(--couleur-teinte-2)); color: var(--couleur); display: grid; place-items: center; font: 600 1.25rem/1 var(--police-titre); flex: none; }
.enfant__nom { font-size: 1.12rem; margin: 0; }
.enfant__entete .liste__secondaire { margin: 0; }
.enfant__modifier { margin-left: auto; font-size: .9rem; }
.inscriptions { list-style: none; margin: 0; padding: 0; }
.inscriptions li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .7rem 0; border-top: 1px dashed var(--bordure); }
.inscriptions__reponse { flex-basis: 100%; margin: 0; font-size: .9rem; color: var(--texte-doux); }

/* ---------- Pages éditoriales ---------- */
.page { max-width: 50rem; }
.contenu-editorial h2 { margin-top: 1.6em; }
.contenu-editorial ul { padding-left: 1.3rem; }
.contenu-editorial li { margin-bottom: .45em; }

/* ---------- Encart « Où repose… ? » ---------- */
.encart-repose {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: auto 1fr minmax(18rem, 27rem); gap: 1.4rem; align-items: center;
    background: linear-gradient(120deg, #fffdf8, #f8efe0); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 1.6rem 1.8rem; box-shadow: var(--ombre);
}
.encart-repose::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgb(185 133 58 / .16), transparent 70%); z-index: -1; }
.encart-repose .carte__picto { margin: 0; }
.encart-repose .section__titre { margin: 0 0 .2rem; }
.recherche-defunt { display: flex; gap: .5rem; flex-wrap: wrap; }
.recherche-defunt input { flex: 1 1 12rem; }
.entete-page + .recherche-defunt { max-width: 40rem; margin-bottom: 1.75rem; }
.plan-public { padding: .6rem; }
.plan-cadre { background: #1d2b24; border-radius: 14px; overflow: hidden; }
.plan-svg { display: block; width: 100%; height: auto; }
.plan-photo { filter: grayscale(.92) contrast(1.08) brightness(1.02); }
.tombe--cible { fill: #ffd84d; fill-opacity: .5; stroke: #ffd84d; stroke-width: 6; animation: pulsation 1.6s ease-in-out infinite; }
@keyframes pulsation { 50% { stroke-width: 11; fill-opacity: .3; } }

/* ---------- Salles (portail) ---------- */
.salles { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); list-style: none; margin: 0; padding: 0; }
.salle-carte { position: relative; display: flex; flex-direction: column; background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); transition: transform .2s, box-shadow .2s; }
.salle-carte:hover, .salle-carte:focus-within { transform: translateY(-3px); box-shadow: var(--ombre-survol); }
.salle-carte__visuel { aspect-ratio: 16 / 9; background: #f3ead9; border-bottom: 1px solid var(--bordure); }
.salle-carte__visuel svg { display: block; width: 100%; height: 100%; }
.salle-carte__corps { padding: 1.25rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.salle-carte__corps h2 { font-size: 1.3rem; margin: 0; }
.salle-carte__faits { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 .3rem; padding: 0; list-style: none; }
.fait { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .65rem; border-radius: 999px; background: var(--fond); font-size: .82rem; font-weight: 600; color: var(--texte); }
.salle-carte__prix { margin-top: auto; padding-top: .6rem; display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.salle-carte__prix strong { font: 600 1.35rem/1 var(--police-titre); color: var(--encre); }
.salle-fiche { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.salle-fiche__visuel { border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--bordure); box-shadow: var(--ombre); background: #f3ead9; aspect-ratio: 16 / 9; }
.salle-fiche__visuel svg { display: block; width: 100%; height: 100%; }
.tarifs { width: 100%; border-collapse: collapse; font-size: .94rem; }
.tarifs th, .tarifs td { padding: .6rem .7rem; border-top: 1px solid var(--bordure); text-align: left; }
.tarifs thead th { border-top: 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--texte-doux); }
.tarifs td { font-variant-numeric: tabular-nums; }
.equipements { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.equipements li { display: flex; gap: .55rem; align-items: flex-start; }
.equipements li::before { content: ""; width: .5rem; height: .5rem; margin-top: .55rem; border-radius: 50%; background: var(--or); flex: none; }

/* Calendrier des disponibilités (commun portail / Honorine) */
.calendrier { background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.calendrier__entete { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.1rem; border-bottom: 1px solid var(--bordure); }
.calendrier__entete h3, .calendrier__entete h2 { margin: 0; font: 600 1.15rem/1.2 var(--police-titre); text-transform: capitalize; }
.calendrier__nav { display: flex; gap: .35rem; }
.calendrier__nav a { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; border: 1px solid var(--bordure); color: var(--texte); text-decoration: none; }
.calendrier__nav a:hover { background: var(--fond); }
.calendrier table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.calendrier th { padding: .55rem 0; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-doux); font-weight: 650; }
.calendrier td { height: 3.1rem; border-top: 1px solid var(--bordure); text-align: center; vertical-align: middle; font-variant-numeric: tabular-nums; font-size: .92rem; }
.calendrier td.hors-mois, .calendrier td.passe { color: #b9b1a3; }
.calendrier td.aujourdhui .jour { outline: 2px solid var(--couleur); }
.calendrier .jour { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; }
.calendrier td.occupe .jour { background: #f1d9d4; color: #8a2a21; font-weight: 650; text-decoration: line-through; text-decoration-thickness: 1px; }
.calendrier td.option .jour { background: var(--ambre-fond); color: var(--ambre); font-weight: 650; }
.calendrier td.libre .jour { background: var(--vert-fond); color: var(--vert); font-weight: 600; }
.calendrier__legende { display: flex; gap: 1rem; flex-wrap: wrap; padding: .8rem 1.1rem; border-top: 1px solid var(--bordure); font-size: .84rem; color: var(--texte-doux); }
.calendrier__legende span::before { content: ""; display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; margin-right: .4rem; vertical-align: -1px; }
.calendrier__legende .l-libre::before { background: var(--vert-fond); border: 1px solid #9fd3b3; }
.calendrier__legende .l-option::before { background: var(--ambre-fond); border: 1px solid #e8c77f; }
.calendrier__legende .l-occupe::before { background: #f1d9d4; border: 1px solid #e0a79e; }

/* ---------- Pied de page ---------- */
.pied { background: #151c29; color: #cfd6e2; padding: 3rem 0 1.4rem; font-size: .94rem; position: relative; }
.pied::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--couleur), var(--or)); }
.pied a { color: #fff; }
.pied__grille { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pied__titre { color: #fff; font: 600 1.05rem/1.3 var(--police-titre); margin-bottom: .7rem; }
.pied__ligne { display: flex; gap: .6rem; align-items: flex-start; }
.pied__ligne .icone { margin-top: .25rem; opacity: .75; }
.pied__liens { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.pied__signature { margin-top: 2.2rem; padding-top: 1.1rem; border-top: 1px solid rgb(255 255 255 / .1); font-size: .84rem; color: #8f9bb0; }

/* ---------- Accès démo ---------- */
.demo-acces { border: 1.5px dashed #d9b64a; background: #fffaf0; border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1.4rem; display: grid; gap: .55rem; }
.demo-acces__titre { margin: 0; font-size: .76rem; font-weight: 700; color: #7a5a00; text-transform: uppercase; letter-spacing: .1em; }
.demo-acces__bouton { width: 100%; }

@media (max-width: 860px) {
    .salle-fiche { grid-template-columns: 1fr; }
    .encart-repose { grid-template-columns: auto 1fr; }
    .encart-repose .recherche-defunt { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    main { padding-top: 1.5rem; }
    .entete { position: static; }
    .marque__sous-titre { display: none; }
    .navigation { width: 100%; }
    .tableau .actions { justify-content: flex-start; }
    .carte { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: .2rem; padding: 1.1rem; }
    .carte__picto { grid-row: span 3; margin: 0; width: 2.9rem; height: 2.9rem; }
    .carte__fleche { display: none; }
    .carte--activite .carte__action, .carte .etiquette { grid-column: 2; }
    .section.demarches { margin-top: -3rem; }
    .bandeau .paysage { height: 46%; }
    .bandeau .paysage .p-nuage { display: none; }
    .bandeau__contenu { padding-bottom: 11rem; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
    .carte:hover, .carte:focus-within, .salle-carte:hover { transform: none; }
    .tombe--cible { animation: none; }
}
@media print { .entete, .pied, .bandeau, .bouton { display: none !important; } body { background: #fff; } }
