/* Kame House Ragdoll : styles du site.
   Base : docs/maquettes/maquette.css (web-designer, Phase 2), reprise telle quelle,
   avec les ajouts du site en fin de fichier. Toutes les valeurs viennent de variables.css. */

/* ---------- Polices auto-hébergées (fichiers Fontsource NON modifiés, licence SIL OFL 1.1 : voir /assets/polices/OFL-*.txt) ---------- */
@font-face { font-family: "Lilita One"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/polices/lilita-one-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/polices/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/polices/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/polices/nunito-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/polices/nunito-latin-400-italic.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond-page);
  color: var(--texte);
  font-family: var(--police-texte);
  font-size: var(--taille-base);
  line-height: var(--interligne);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--lien); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--police-titre); font-weight: 400; color: var(--titre); line-height: 1.15; margin: 0 0 var(--esp-4); letter-spacing: 0.01em; }
h1 { font-size: var(--taille-h1); }
h2 { font-size: var(--taille-h2); }
h3 { font-size: var(--taille-h3); }
p { margin: 0 0 var(--esp-4); }

.conteneur { width: 100%; max-width: var(--largeur-max); margin: 0 auto; padding: 0 var(--esp-4); }
@media (min-width: 48rem) { .conteneur { padding: 0 var(--esp-6); } }
.section { padding: var(--esp-7) 0; }
@media (min-width: 48rem) { .section { padding: var(--esp-8) 0; } }
.texte-court { max-width: var(--largeur-texte); }
.surtitre { display: block; font-weight: 800; font-size: var(--taille-petit); text-transform: uppercase; letter-spacing: 0.08em; color: var(--surtitre); margin-bottom: var(--esp-2); }
.provisoire { background: #fff3b0; color: #3b3000; font-weight: 700; font-size: 0.8em; padding: 0 4px; border-radius: 3px; white-space: nowrap; }
.a-completer { background: #ffd9d9; color: #5a0000; font-weight: 700; font-size: 0.8em; padding: 0 4px; border-radius: 3px; }
.a-verifier { background: #ffe2c2; color: #5c2a00; font-weight: 700; font-size: 0.8em; padding: 0 4px; border-radius: 3px; white-space: nowrap; } /* fait tiré des discussions, à confirmer par Elyès */

/* ---------- En-tête ---------- */
.entete { background: var(--fond-entete); color: var(--texte-entete); }
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: var(--esp-4); min-height: 72px; }
.logo-lien { display: flex; align-items: center; gap: var(--esp-3); color: var(--texte-entete); text-decoration: none; }
.logo-lien { padding: var(--esp-2) 0; flex: none; }
.logo-a { display: block; width: 166px; height: 56px; } /* piste A retenue ; 160 px de large au minimum */
.nav-principale ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--esp-1); }
.nav-principale a, .sous-menu > details > summary { display: flex; align-items: center; min-height: var(--cible-tactile); padding: 0 var(--esp-3); color: var(--texte-entete); text-decoration: none; font-weight: 700; border-radius: var(--rayon-petit); }
.nav-principale a:hover, .sous-menu > details > summary:hover { background: var(--c-nuit-700); }
.nav-principale a[aria-current="page"], .sous-menu--actif > details > summary { color: var(--c-dore-400); box-shadow: inset 0 -3px 0 var(--c-orange-500); }
/* Sous-menu « Adoption » (Le Ragdoll, Conditions, FAQ), sans JavaScript */
.sous-menu > details > summary { cursor: pointer; list-style: none; gap: var(--esp-2); }
.sous-menu > details > summary::-webkit-details-marker { display: none; }
.sous-menu > details > summary::after { content: "▾"; font-size: 0.9em; }
.sous-menu > details[open] > summary::after { content: "▴"; }
.sous-menu ul { flex-direction: column; padding-left: var(--esp-4) !important; }
.entete :focus-visible { outline-color: var(--c-orange-500); }

/* Menu mobile sans JavaScript : <details> */
.menu-mobile { display: block; }
.menu-mobile > summary { list-style: none; display: flex; align-items: center; gap: var(--esp-2); min-height: var(--cible-tactile); padding: 0 var(--esp-4); border: 2px solid var(--c-dore-400); border-radius: var(--rayon-pilule); color: var(--texte-entete); font-weight: 800; cursor: pointer; }
.menu-mobile > summary::-webkit-details-marker { display: none; }
.menu-mobile[open] .nav-principale { position: absolute; left: 0; right: 0; top: 100%; background: var(--fond-entete); padding: var(--esp-2) var(--esp-4) var(--esp-5); z-index: 10; border-bottom: 3px solid var(--c-orange-500); }
.menu-mobile[open] .nav-principale ul { flex-direction: column; }
.entete { position: relative; }
.nav-bureau { display: none; }
@media (min-width: 75rem) {
  .menu-mobile { display: none; }
  .nav-bureau { display: block; }
  .nav-bureau a, .nav-bureau .sous-menu > details > summary { font-size: 1rem; padding: 0 var(--esp-2); }
  .nav-bureau .sous-menu { position: relative; }
  .nav-bureau .sous-menu ul { position: absolute; top: 100%; left: 0; min-width: 12rem; background: var(--fond-entete); padding: var(--esp-2) !important; z-index: 20; border-bottom: 3px solid var(--c-orange-500); border-radius: 0 0 var(--rayon-petit) var(--rayon-petit); }
}

/* ---------- Pied de page ---------- */
.pied { background: var(--c-nuit-900); color: var(--c-brume); padding: var(--esp-7) 0 var(--esp-6); margin-top: var(--esp-7); border-top: 4px solid var(--c-orange-500); }
.pied a { color: var(--c-dore-400); }
.pied h2 { color: var(--c-creme); font-size: 1.25rem; }
.pied__grille { display: grid; gap: var(--esp-6); }
@media (min-width: 48rem) { .pied__grille { grid-template-columns: 2fr 1fr 1fr; } }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: var(--esp-2); }
.pied__bas { margin-top: var(--esp-6); padding-top: var(--esp-4); border-top: 1px solid var(--c-nuit-700); font-size: var(--taille-petit); }

/* ---------- Boutons ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: var(--esp-2); min-height: var(--cible-tactile); padding: 0 var(--esp-5); border-radius: var(--rayon-pilule); font-family: var(--police-texte); font-weight: 800; font-size: var(--taille-base); text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.bouton--principal { background: var(--bouton-fond); color: var(--bouton-texte); border-color: var(--bouton-fond); }
.bouton--principal:hover { background: #ffa640; }
.bouton--secondaire { background: transparent; color: var(--bouton2-texte); border-color: var(--bouton2-bordure); }
.bouton--secondaire:hover { background: rgba(127, 127, 127, 0.12); }
.groupe-boutons { display: flex; flex-wrap: wrap; gap: var(--esp-3); }

/* ---------- Emplacements photo (gris légendés) ---------- */
.photo { position: relative; background: var(--placeholder-fond); color: var(--placeholder-texte); border-radius: var(--rayon); display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--esp-4); font-size: var(--taille-petit); font-weight: 700; overflow: hidden; }
.photo::before { content: "📷"; display: block; font-size: 1.6rem; margin-bottom: var(--esp-2); }
.photo > span { display: block; max-width: 22rem; }
.photo--carre { aspect-ratio: 1 / 1; }
.photo--portrait { aspect-ratio: 4 / 5; }
.photo--paysage { aspect-ratio: 3 / 2; }
.photo { flex-direction: column; }

/* Illustration d'accueil en BANDEAU (demande d'Elyès, 28/11/2026) : recadrée en largeur.
   Le cadrage (object-position) garde le chat du toit, la maison, les chatons et l'île ;
   seuls le haut du ciel et le bas de la mer sont coupés. Jamais recouverte de texte.
   Mobile : 2:1. À partir de 48rem : 12:5 (2,4:1). */
.illustration { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 75%; border-radius: 0; background: #a9cdf0; }
@media (min-width: 48rem) { .illustration { aspect-ratio: 12 / 5; object-position: 50% 69%; } }
@media (min-width: 64rem) { .illustration-cadre { max-width: var(--largeur-max); margin: 0 auto; padding: var(--esp-5) var(--esp-6) 0; } .illustration { border-radius: var(--rayon); box-shadow: var(--ombre); } }

/* ---------- Cartes ---------- */
.grille { display: grid; gap: var(--esp-5); grid-template-columns: 1fr; }
@media (min-width: 36rem) { .grille--2, .grille--3, .grille--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grille--3 { grid-template-columns: repeat(3, 1fr); } .grille--4 { grid-template-columns: repeat(4, 1fr); } }

.carte { background: var(--fond-carte); border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; display: flex; flex-direction: column; }
.carte .photo { border-radius: 0; }
.carte__corps { padding: var(--esp-4) var(--esp-5) var(--esp-5); display: flex; flex-direction: column; gap: var(--esp-2); flex: 1; }
.carte__titre { margin: 0; font-size: 1.5rem; }
.carte__titre a { color: var(--titre); text-decoration: none; }
.carte__titre a::after { content: ""; position: absolute; inset: 0; } /* toute la carte cliquable */
.carte--lien { position: relative; }
.carte--lien:hover { border-color: var(--c-orange-500); }
.carte--lien:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.carte__infos { list-style: none; margin: 0; padding: 0; color: var(--texte-doux); font-size: var(--taille-petit); }
.carte__infos li { margin-bottom: 2px; }
.carte__legende { margin: 4px 0 0; color: var(--texte-doux); font-size: var(--taille-petit); }
.carte__haut { display: flex; align-items: center; justify-content: space-between; gap: var(--esp-2); flex-wrap: wrap; }

/* Badge de statut : DÉSACTIVÉ (option A « vitrine », décision du 22/11/2026). Aucun badge sur les chats ni les chatons.
   Gardé pour plus tard, seulement sur décision d'Elyès. */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px; border-radius: var(--rayon-pilule); font-weight: 800; font-size: var(--taille-petit); line-height: 1.6; }
.badge::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; } /* pastille : le sens n'est pas porté par la seule couleur, le libellé est toujours écrit */
.badge--ouvert { background: var(--c-statut-ouvert-fond); color: var(--c-statut-ouvert-texte); }
.badge--option { background: var(--c-statut-option-fond); color: var(--c-statut-option-texte); }
.badge--ferme  { background: var(--c-statut-ferme-fond);  color: var(--c-statut-ferme-texte); }
.badge--info   { background: var(--c-statut-info-fond);   color: var(--c-statut-info-texte); }

/* Pastille « boule » décorative (motif créé pour le site) */
.boule { --degrade-boule: radial-gradient(circle at 35% 30%, #ffe2a8 0 12%, var(--c-orange-500) 45%, #c8650c 100%); display: inline-block; width: 1em; height: 1em; border-radius: 50%; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-1 -1 2 2' fill='%23c8231c'><path d='M-.32,.02C-.12,-.06 .12,-.06 .32,.02C.52,.12 .62,.42 .6,.6C.58,.82 .38,.88 .2,.82C.08,.78 -.08,.78 -.2,.82C-.38,.88 -.58,.82 -.6,.6C-.62,.42 -.52,.12 -.32,.02Z'/><ellipse cx='-.74' cy='-.2' rx='.18' ry='.25' transform='rotate(-25 -.74 -.2)'/><ellipse cx='-.29' cy='-.6' rx='.19' ry='.27' transform='rotate(-8 -.29 -.6)'/><ellipse cx='.29' cy='-.6' rx='.19' ry='.27' transform='rotate(8 .29 -.6)'/><ellipse cx='.74' cy='-.2' rx='.18' ry='.25' transform='rotate(25 .74 -.2)'/></svg>") 52% 56% / 62% no-repeat, var(--degrade-boule); /* empreinte de patte rouge (Elyès, 28/11/2026) */ vertical-align: -0.12em; position: relative; }
.titre-boule { display: flex; align-items: center; gap: var(--esp-3); }
.titre-boule .boule { width: 0.8em; height: 0.8em; flex: none; }
.titre-boule__texte { min-width: 0; }
.titre-portee__date { display: block; margin-top: var(--esp-2); font-family: var(--police-texte); font-size: var(--taille-base); font-weight: 700; line-height: 1.35; color: var(--texte-doux); letter-spacing: 0; }

/* Boule à lettre des sagas de portées (Elyès, 28/11/2026) : même dégradé et même reflet que la boule,
   la lettre LOOF remplace l'empreinte. Taille : ≈ 1,1 em du titre (lettre à 0,8 em), 1,4 em dans le H1
   de la page de portée. Liseré crème autour de la lettre pour la détacher de l'orange. Décorative. */
.boule.boule--lettre { display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 0.8em; width: 1.375em; height: 1.375em; padding-top: 0.06em; background: var(--degrade-boule); box-shadow: inset -0.06em -0.08em 0.12em rgba(120, 50, 0, 0.35); font-family: var(--police-titre); font-weight: 400; font-style: normal; line-height: 1; letter-spacing: 0; color: var(--c-rouge-etoile); text-shadow: 0.04em 0 0 #fff4dc, -0.04em 0 0 #fff4dc, 0 0.04em 0 #fff4dc, 0 -0.04em 0 #fff4dc; vertical-align: middle; }
.titre-portee .boule.boule--lettre { font-size: 1em; width: 1.4em; height: 1.4em; }
/* Plusieurs lettres (saga des V à Z) : boules un peu plus petites qui se chevauchent, sur une ligne. */
.boules-saga { display: inline-flex; flex: none; align-items: center; }
.titre-boule:has(.boules-saga) { flex-wrap: wrap; row-gap: var(--esp-2); } /* mobile : la rangée passe au-dessus du nom */
.boules-saga .boule.boule--lettre { font-size: 0.6em; width: 1.5em; height: 1.5em; box-shadow: inset -0.06em -0.08em 0.12em rgba(120, 50, 0, 0.35), 0 0 0 0.06em #c8650c; }
.boules-saga .boule.boule--lettre + .boule--lettre { margin-left: -0.35em; }
.titre-portee .boules-saga .boule.boule--lettre { font-size: 0.72em; }

/* Petite carte de France de l'accueil (partials/carte-lieu.njk) : sous le surtitre et centrée sur mobile,
   à droite du surtitre et du titre sur ordinateur. */
.accueil-tete--carte { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "surtitre" "carte" "titre"; }
.accueil-tete--carte > .surtitre { grid-area: surtitre; }
.accueil-tete--carte > h1 { grid-area: titre; }
/* Mobile : la figure prend toute la largeur pour que la phrase tienne en 2 lignes au plus (recette Phase 4) ;
   le radar garde sa taille de 7,5rem, centré. */
.carte-lieu { grid-area: carte; justify-self: center; width: 100%; max-width: 100%; margin: var(--esp-2) 0 var(--esp-4); text-align: center; }
.carte-lieu__svg { display: block; width: 100%; height: auto; }
/* La carte dans un radar (demande d'Elyès, 28/11/2026) : même cadran que la page Actualités,
   la France au centre, le balayage passe par-dessus. */
.radar.radar--carte { width: 7.5rem; max-width: 100%; margin: 0 auto; }
.radar--carte .carte-lieu__svg { position: absolute; inset: 14%; width: 72%; height: 72%; }
.radar-pause--rond { display: inline-flex; align-items: center; justify-content: center; width: var(--cible-tactile); height: var(--cible-tactile); margin-top: var(--esp-2); border-radius: 50%; border: 2px solid var(--bouton2-bordure); background: var(--fond-carte); color: var(--bouton2-texte); font-size: 0.9rem; line-height: 1; cursor: pointer; }
.radar-pause--rond[hidden] { display: none; }
.radar-pause--rond:hover { background: var(--fond-encadre); }
.carte-lieu__phrase { margin-top: var(--esp-2); font-size: var(--taille-petit); line-height: 1.35; color: var(--texte-doux); }
@media (min-width: 48rem) {
  .accueil-tete--carte { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "surtitre carte" "titre carte"; column-gap: var(--esp-5); align-items: center; }
  .accueil-tete--carte > .surtitre { align-self: end; }
  .accueil-tete--carte > h1 { align-self: start; }
  .carte-lieu { width: 10rem; margin: 0; }
  .radar.radar--carte { width: 100%; }
}

/* ---------- Fiche (chat ou chaton) ---------- */
.fiche { display: grid; gap: var(--esp-6); }
@media (min-width: 56rem) { .fiche { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.galerie-fiche { display: grid; gap: var(--esp-3); grid-template-columns: repeat(4, 1fr); }
.galerie-fiche .photo:first-child { grid-column: 1 / -1; }
.galerie-fiche .photo:not(:first-child) { aspect-ratio: 1 / 1; padding: var(--esp-1); font-size: 0.8rem; }
.galerie-fiche .photo:not(:first-child)::before { font-size: 1rem; margin: 0; }
.tableau-infos { width: 100%; border-collapse: collapse; margin: var(--esp-4) 0 var(--esp-5); background: var(--fond-carte); border-radius: var(--rayon); overflow: hidden; }
.tableau-infos th, .tableau-infos td { text-align: left; padding: var(--esp-3) var(--esp-4); border-bottom: 1px solid var(--bordure); vertical-align: top; }
.tableau-infos th { width: 42%; color: var(--texte-doux); font-weight: 700; }
.tableau-infos tr:last-child th, .tableau-infos tr:last-child td { border-bottom: 0; }

.encadre { background: var(--fond-encadre); border-left: 5px solid var(--c-orange-500); border-radius: var(--rayon-petit); padding: var(--esp-4) var(--esp-5); }
.encadre p:last-child { margin-bottom: 0; }

.fil-ariane { font-size: var(--taille-petit); padding-top: var(--esp-5); color: var(--texte-doux); }
.fil-ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--esp-2); padding: 0; margin: 0; }
/* Séparateur en fin d'élément : sur mobile, la ligne suivante ne commence jamais par « › ». */
.fil-ariane li:not(:last-child)::after { content: "›"; margin-left: var(--esp-2); }

/* ---------- Portées ---------- */
.portee-en-cours { background: var(--fond-carte); border: 2px solid var(--c-orange-500); border-radius: var(--rayon); padding: var(--esp-5); }
@media (min-width: 48rem) { .portee-en-cours { padding: var(--esp-6); } }
.parents { display: grid; gap: var(--esp-4); grid-template-columns: 1fr 1fr; margin: var(--esp-5) 0; max-width: 34rem; }
.parent { text-align: center; }
.parent .photo { margin-bottom: var(--esp-2); }
.portee-passee { border-top: 1px solid var(--bordure); padding: var(--esp-5) 0; }
.portee-passee summary { cursor: pointer; font-family: var(--police-titre); font-size: 1.5rem; min-height: var(--cible-tactile); display: flex; align-items: center; gap: var(--esp-3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--esp-2); list-style: none; padding: 0; margin: var(--esp-3) 0 0; }

/* ---------- Formulaire ---------- */
.formulaire { display: grid; gap: var(--esp-5); max-width: 40rem; }
.champ { display: grid; gap: var(--esp-2); }
.champ label, .champ legend { font-weight: 800; }
.champ .aide { font-size: var(--taille-petit); color: var(--texte-doux); margin: 0; }
.champ input, .champ select, .champ textarea { font: inherit; color: var(--c-encre); background: var(--c-blanc); border: 2px solid #8a90a6; border-radius: var(--rayon-petit); padding: var(--esp-3); min-height: var(--cible-tactile); width: 100%; }
.champ textarea { min-height: 9rem; }
.info-donnees { background: var(--fond-encadre); border-radius: var(--rayon-petit); padding: var(--esp-4); font-size: var(--taille-petit); }
.info-donnees p:last-child { margin-bottom: 0; }
.case { display: flex; gap: var(--esp-3); align-items: flex-start; }
.case input { width: 24px; height: 24px; margin-top: 3px; flex: none; accent-color: var(--c-orange-700); }
fieldset { border: 0; padding: 0; margin: 0; }
.obligatoire { color: var(--lien); }

/* ---------- Page de texte ---------- */
.page-texte { display: grid; gap: var(--esp-6); }
@media (min-width: 64rem) { .page-texte { grid-template-columns: 16rem 1fr; } }
.sommaire { background: var(--fond-carte); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: var(--esp-4) var(--esp-5); align-self: start; }
.sommaire ol { margin: 0; padding-left: 1.2rem; }
.sommaire li { margin: var(--esp-2) 0; }
@media (min-width: 64rem) { .sommaire { position: sticky; top: var(--esp-4); } }
.prose { max-width: var(--largeur-texte); }
.prose h2 { margin-top: var(--esp-6); }
.prose h3 { margin-top: var(--esp-5); }
.faq details { background: var(--fond-carte); border: 1px solid var(--bordure); border-radius: var(--rayon-petit); margin-bottom: var(--esp-3); }
.faq summary { cursor: pointer; font-weight: 800; padding: var(--esp-3) var(--esp-4); min-height: var(--cible-tactile); display: flex; align-items: center; }
.faq details > p { padding: 0 var(--esp-4) var(--esp-4); margin: 0; }

/* ---------- Bandeau d'appel ---------- */
.appel { background: var(--c-nuit-900); color: var(--c-creme); border-radius: var(--rayon); padding: var(--esp-6) var(--esp-5); text-align: center; }
.appel h2 { color: var(--c-creme); }
.appel p { color: var(--c-brume); }
.appel .groupe-boutons { justify-content: center; }
.appel .bouton--secondaire { color: var(--c-creme); border-color: var(--c-creme); }

/* ---------- Radar (page Actualités et carte de l'accueil) ---------- */
.radar { width: 160px; aspect-ratio: 1; border-radius: 50%; position: relative; overflow: hidden;
  background: radial-gradient(circle, transparent 0 32%, rgba(14,23,51,.35) 33% 34%, transparent 35% 65%, rgba(14,23,51,.35) 66% 67%, transparent 68%),
              linear-gradient(rgba(14,23,51,.25), rgba(14,23,51,.25)) center / 2px 100% no-repeat,
              linear-gradient(rgba(14,23,51,.25), rgba(14,23,51,.25)) center / 100% 2px no-repeat,
              #b9e3a0; border: 6px solid #d7dbe4; box-shadow: inset 0 0 0 3px #8e96a8; }
.radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(29,100,64,.45), transparent 25%); }
.radar--anime::after { animation: balayage 4s linear infinite; } /* ajouté par radar.js : sans script, le radar reste immobile */
.radar__point { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--c-orange-500); box-shadow: 0 0 0 2px #fff; }
@keyframes balayage { to { transform: rotate(360deg); } }
.radar--pause::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .radar::after { animation: none; } .radar-pause { display: none; } }
.radar-bloc { display: flex; flex-wrap: wrap; align-items: center; gap: var(--esp-4); }

/* Utilitaires */
.centre { text-align: center; }
.mt-5 { margin-top: var(--esp-5); }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =====================================================================
   Ajouts du site (Phase 3), dans l'esprit des maquettes
   ===================================================================== */

/* Lien « Aller au contenu » : invisible, apparaît au focus clavier */
.lien-evitement { position: absolute; left: var(--esp-4); top: -100px; z-index: 100; background: var(--c-blanc); color: var(--c-nuit-900); padding: var(--esp-2) var(--esp-4); border-radius: var(--rayon-petit); font-weight: 800; }
.lien-evitement:focus { top: var(--esp-2); }

/* Marques de travail : disparaissent quand le texte est complété */
.a-rediger { background: #fff3b0; color: #3b3000; font-weight: 700; font-size: 0.8em; padding: 0 4px; border-radius: 3px; }

/* Sections */
.section--haut { padding-top: var(--esp-5); }
.section--suite { padding-top: 0; }
.mt-7 { margin-top: var(--esp-7); }
.h3 { font-size: var(--taille-h3); }
.sous-titre { color: var(--texte-doux); font-weight: 700; margin-top: calc(-1 * var(--esp-2)); }
.liste-simple { list-style: none; padding: 0; margin: 0; }
.liste-simple li { margin-bottom: var(--esp-2); }
.aide { color: var(--texte-doux); font-size: var(--taille-petit); }

/* Vraies photos (produites par eleventy-img), mêmes formats que les emplacements gris */
.photo-reelle { width: 100%; height: auto; border-radius: var(--rayon); object-fit: cover; object-position: 50% 20%; background: var(--placeholder-fond); }
.photo-reelle--carre { aspect-ratio: 1 / 1; }
.photo-reelle--portrait { aspect-ratio: 4 / 5; }
.photo-reelle--paysage { aspect-ratio: 3 / 2; }
.carte .photo-reelle { border-radius: 0; }
picture { display: block; }
.galerie-fiche picture:first-child { grid-column: 1 / -1; }
.figure { margin: 0; }
.figure figcaption { font-size: var(--taille-petit); color: var(--texte-doux); margin-top: var(--esp-2); }

/* Portées */
.portee-bloc { padding: 0; }
.titre-portee { font-size: var(--taille-h2); }
.portee-passee > p, .portee-passee > .grille { margin-top: var(--esp-3); }

/* Pages de texte sans sommaire (moins de 3 titres) */
.page-texte--sans-sommaire { grid-template-columns: 1fr !important; }
.prose .photo { margin: var(--esp-5) 0; }
.prose ol, .prose ul { padding-left: 1.4rem; }
.prose li { margin-bottom: var(--esp-2); }

/* Questionnaire : champ piège anti-spam, invisible pour les humains */
.champ-piege { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Le menu mobile se replie sous l'en-tête ; pas de défilement horizontal */
html, body { overflow-x: clip; }

/* Ronde des pages (accueil) en « coverflow » à plat : cartes photo qui mènent aux pages du site.
   Sans script, ou si l'appareil demande de réduire les animations : rangée à plat, qu'on fait
   défiler au doigt (scroll-snap). ronde.js ajoute .ronde--anime : toutes les cartes dans la même
   case, centrées ; le script les décale et les réduit (transform et opacity seulement) ; les
   cartes du centre passent devant (z-index). Carte centrale : 60 % de l'écran sur téléphone,
   18rem sur ordinateur. Boutons Précédent, Pause et Suivant affichés (WCAG 2.2.2). */
.ronde { --ronde-carte: 9rem; --ronde-ecart: var(--esp-3); }
@media (min-width: 48rem) { .ronde { --ronde-carte: 13rem; --ronde-ecart: var(--esp-5); } }
.ronde__haut h2 { margin: 0; }
.ronde__fenetre { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--esp-4); padding: var(--esp-5) var(--esp-4); scrollbar-width: thin; }
.ronde__liste { display: flex; gap: var(--ronde-ecart); width: max-content; list-style: none; margin: 0; padding: 0; }
.ronde__carte { flex: none; width: var(--ronde-carte); scroll-snap-align: start; }
.ronde__lien { display: block; position: relative; padding: 6px; background: var(--fond-carte); border-radius: var(--rayon); box-shadow: var(--ombre); text-decoration: none; }
.ronde__lien:focus-visible { border-radius: var(--rayon); outline-offset: 4px; }
.ronde__lien img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--rayon-petit); background: var(--placeholder-fond); }
/* Nom de la page : crème sur dégradé bleu nuit (--c-nuit-900), au moins 78 % d'opacité sous le texte : contraste AA même sur une photo claire */
.ronde__nom { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: var(--esp-6) var(--esp-3) var(--esp-3); border-radius: 0 0 var(--rayon-petit) var(--rayon-petit); background: linear-gradient(rgba(14, 23, 51, 0), rgba(14, 23, 51, 0.85) calc(var(--esp-6) - 4px), rgba(14, 23, 51, 0.92)); /* audit Phase 4 : voile d'au moins 85 % dès le haut du texte (crème ≥ 10:1 même sur une photo blanche) */ color: var(--c-creme); font-family: var(--police-titre); font-size: 1.125rem; line-height: 1.15; }
@media (min-width: 48rem) { .ronde__nom { font-size: 1.35rem; } }
.ronde__commandes { display: flex; justify-content: center; align-items: center; gap: var(--esp-3); padding: 0 var(--esp-4); }
.ronde__commandes[hidden] { display: none; }
.ronde__pause { white-space: nowrap; padding: 0 var(--esp-4); }
.ronde__fleche { flex: none; width: var(--cible-tactile); height: var(--cible-tactile); border-radius: 50%; border: 2px solid var(--bouton2-bordure); background: var(--fond-carte); color: var(--bouton2-texte); font-size: 2rem; line-height: 1; cursor: pointer; }
.ronde__fleche:hover { background: var(--fond-encadre); }
.ronde--anime .ronde__fenetre { overflow: clip; scroll-snap-type: none; padding: var(--esp-5) 0 var(--esp-6); touch-action: pan-y; }
.ronde--anime .ronde__liste { display: grid; width: auto; justify-content: center; }
.ronde--anime .ronde__carte { grid-area: 1 / 1; width: min(60vw, 18rem); transition: transform 0.6s ease, opacity 0.6s ease; }
.ronde--anime .ronde__lien { box-shadow: 0 10px 28px rgba(14, 23, 51, 0.22); }
/* Cartes à droite du centre : le nom est aligné à droite pour rester visible malgré le chevauchement. */
.ronde--anime [data-cote="d"] .ronde__nom { text-align: right; }

/* =====================================================================
   Audit accessibilité Phase 4 (seo-accessibilite, 28/11/2026)
   ===================================================================== */
/* Focus visible sur les fonds bleu nuit (pied de page, bandeau d'appel) : le contour bleu nuit 3
   n'y avait que 1,5:1 ; l'orange boule y a 7,5:1 (WCAG 2.4.7, 1.4.11). */
.pied :focus-visible, .appel :focus-visible { outline-color: var(--c-orange-500); }
/* Cibles tactiles d'au moins 44 px pour les liens isolés (pied de page, fil d'Ariane). */
.pied li { margin-bottom: 0; }
.pied li > a { display: inline-flex; align-items: center; min-height: 44px; }
.fil-ariane li { display: flex; align-items: center; }
.fil-ariane a { display: inline-flex; align-items: center; min-height: 44px; }
/* Nom des portées passées : titre H3 dans le résumé repliable (hiérarchie H2 > H3 > H4 sans saut). */
.portee-passee__titre { display: flex; align-items: center; gap: var(--esp-3); margin: 0; font-size: inherit; }
