/* ==========================================================================
   LES TROIS STYLES DU SITE (demande d'Eryan du 14/11/2026 : « Le site proposait aussi 2 styles visuels
   différents et aussi un style adapté à ceux qui ont des difficultés visuelles » ; « oui, tu t'en occupes »).

     1. « Feu doux »         le style de base : sombre, chaud, doré. Il n'est PAS ici : c'est commun.css + site.css.
     2. « Grimoire au jour » le même site sur papier clair. Palette reprise de la maquette de juillet
                             (Site\maquettes\6b-le-grimoire-au-jour.html), l'or foncé d'un cran pour rester lisible.
     3. « Lecture facile »   pour la basse vision. Principes repris de la maquette de juillet
                             (Site\maquettes\6c-lecture-facile.html) : très fort contraste, texte plus gros, police
                             Atkinson Hyperlegible, une seule colonne, aucune animation, liens soulignés.

   COMMENT ÇA MARCHE : le visiteur choisit dans le bouton « Apparence » de l'en-tête. Son choix est noté sur
   son propre appareil (mémoire locale du navigateur, rien n'est envoyé nulle part, ce n'est pas un cookie) et
   posé sur la page : <html data-style="jour"> ou <html data-style="facile">. Sans choix : Feu doux.
   Tout le site est écrit avec des couleurs nommées (--nuit, --creme, --or…) : un style, c'est d'abord
   d'autres valeurs pour ces noms. Le reste de ce fichier rattrape les rares couleurs écrites en dur.

   POUR RETOUCHER UNE COULEUR : changer sa valeur dans le bloc du style, ci-dessous, puis reconstruire.
   ========================================================================== */

@font-face{font-family:"Atkinson Hyperlegible";font-style:normal;font-weight:400;font-display:swap;src:url(polices/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Atkinson Hyperlegible";font-style:italic;font-weight:400;font-display:swap;src:url(polices/atkinson-hyperlegible-latin-400-italic.woff2) format("woff2")}
@font-face{font-family:"Atkinson Hyperlegible";font-style:normal;font-weight:700;font-display:swap;src:url(polices/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Atkinson Hyperlegible";font-style:italic;font-weight:700;font-display:swap;src:url(polices/atkinson-hyperlegible-latin-700-italic.woff2) format("woff2")}

/* ---------- Le bouton « Apparence » de l'en-tête (présent dans les trois styles) ---------- */
.apparence{position:relative;margin-left:auto}
.apparence summary{list-style:none;cursor:pointer;font-size:.98rem;color:var(--creme-2);border:1px solid var(--filet);border-radius:2rem;padding:.3rem .9rem;white-space:nowrap}
.apparence summary::-webkit-details-marker{display:none}
.apparence summary:hover,.apparence[open] summary{color:var(--or);border-color:var(--or)}
.apparence .choix{position:absolute;right:0;top:calc(100% + .6rem);z-index:25;display:flex;flex-direction:column;gap:.45rem;min-width:17rem;
  background:var(--nuit-2);border:1px solid var(--filet);border-radius:.6rem;padding:.9rem;box-shadow:0 .8rem 1.6rem rgba(0,0,0,.35)}
.tete .apparence .choix button{display:block;width:100%;text-align:left;font:inherit;font-size:1rem;line-height:1.3;color:var(--creme);
  background:transparent;border:1px solid var(--filet);border-radius:.5rem;padding:.55rem .8rem;cursor:pointer}
.tete .apparence .choix button small{display:block;color:var(--creme-2);font-size:.85rem}
.tete .apparence .choix button:hover{border-color:var(--or)}
.tete .apparence .choix button[aria-pressed="true"]{border-color:var(--or);border-width:2px;font-weight:600}
@media (min-width:900px){.apparence{margin-left:0;order:3}}
@media (max-width:420px){.apparence summary{padding:.3rem .6rem;font-size:.9rem}.apparence .choix{min-width:15rem}}

/* ==========================================================================
   2. GRIMOIRE AU JOUR
   ========================================================================== */
html[data-style="jour"]{
  --nuit:#F2EEE4;          /* le papier */
  --nuit-2:#ECE7D9;        /* cartes */
  --nuit-3:#E6DFCC;        /* survol, cartouches */
  --creme:#241F17;         /* l'encre */
  --creme-2:#4A4336;       /* encre seconde */
  --or:#7A5A1E;            /* or foncé : lisible sur le papier (celui de juillet, #9C7A3C, était trop pâle pour du texte) */
  --or-2:#9C7A3C;
  --filet:#CFC5AE;
  --braise:#9E3B2A;
  --ciel:#3E6E92;
  --mauve:#6B4FA3;
  --vert:#3F7A45;
  --orange:#A8521A;
}
html[data-style="jour"] a:hover{color:#5c4212}
html[data-style="jour"] .tete{background:rgba(242,238,228,.95)}
html[data-style="jour"] .bord a,html[data-style="jour"] .bord button{background:rgba(236,231,217,.96);box-shadow:0 .3rem .9rem rgba(60,45,20,.18)}
html[data-style="jour"] .prose strong{color:#000}
html[data-style="jour"] .sans-couv{background:repeating-linear-gradient(135deg,#ECE7D9,#ECE7D9 12px,#E3DCC8 12px,#E3DCC8 24px)}
html[data-style="jour"] .livre-carte img,html[data-style="jour"] .sans-couv,html[data-style="jour"] .livre-tete .couv{box-shadow:0 .6rem 1.4rem rgba(60,45,20,.22)}
html[data-style="jour"] .tete.descendu{box-shadow:0 .5rem 1.4rem rgba(60,45,20,.15)}
html[data-style="jour"] a.carte.lien:hover,html[data-style="jour"] .porte:hover{box-shadow:0 .9rem 1.8rem rgba(60,45,20,.16)}
html[data-style="jour"] .sous-menu{box-shadow:0 .8rem 1.6rem rgba(60,45,20,.18)}
/* L'accueil : l'image reste telle qu'elle est, comme une photo posée sur la page claire, avec son texte clair.
   (Premier essai : un voile clair par-dessus, pour écrire en encre sombre. Eryan, 14/11 : l'image en devenait
   « laiteuse ». Donc, ici, on garde les couleurs de Feu doux à l'intérieur de l'image, et un voile sombre léger.) */
html[data-style="jour"] .hero{--creme:#f3ead9;--creme-2:#cdbfa8;--or:#d9a441;color:var(--creme)}
/* Les trois portes ne remontent plus sur l'image : son bord est net ici, elles la « mordaient » (Eryan, 14/11). */
html[data-style="jour"] .portes{margin-top:2.5rem}
html[data-style="jour"] .hero .voile{background:linear-gradient(180deg,rgba(23,18,14,.38),rgba(23,18,14,.62))}
/* Les boutons « choisis » : texte clair sur or foncé (dans Feu doux, c'est du sombre sur or clair). */
html[data-style="jour"] .filtres button[aria-pressed="true"],html[data-style="jour"] .pieces button[aria-pressed="true"],
html[data-style="jour"] .brut-bouton[aria-pressed="true"],html[data-style="jour"] .brut-bouton[aria-expanded="true"],
html[data-style="jour"] .plan button:hover,html[data-style="jour"] .plan button:focus-visible,html[data-style="jour"] .plan button[aria-pressed="true"],
html[data-style="jour"] .saut{color:#fff}
html[data-style="jour"] .prive{background:linear-gradient(180deg,#E9E3D3,var(--nuit))}
html[data-style="jour"] .prive li{background:rgba(255,255,255,.4)}
html[data-style="jour"] .brut{background:#FBF8F0}
html[data-style="jour"] .voyant.plein{color:#2E6B3A}
html[data-style="jour"] .voyant.plein i{border-color:#2E6B3A;background:radial-gradient(circle,#2E6B3A 0 45%,transparent 50%)}

/* ==========================================================================
   3. LECTURE FACILE
   ========================================================================== */
html[data-style="facile"]{
  --nuit:#FFFFFF;
  --nuit-2:#F4F1EC;
  --nuit-3:#E9E4DA;
  --creme:#171717;         /* noir sur blanc : contraste d'environ 16 pour 1 */
  --creme-2:#3A3A3A;
  --or:#7A3F0C;            /* brun : sert aux liens et aux accents, lisible sur blanc */
  --or-2:#7A3F0C;
  --filet:#767676;
  --braise:#8F2E1F;
  --ciel:#1F5A85;
  --mauve:#5A3F96;
  --vert:#2E6B3A;
  --orange:#93450F;
  --mesure:36rem;
  font-size:125%;
}
@media (min-width:900px){html[data-style="facile"]{font-size:143.75%}}        /* 23 px sur grand écran */
html[data-style="facile"] body,html[data-style="facile"] h1,html[data-style="facile"] h2,html[data-style="facile"] h3,html[data-style="facile"] h4,
html[data-style="facile"] .etiquette,html[data-style="facile"] .tete .nom,html[data-style="facile"] .porte .t,html[data-style="facile"] .livre-carte .t,
html[data-style="facile"] .voisins a,html[data-style="facile"] .cc-title,html[data-style="facile"] .cc-quote,html[data-style="facile"] .cc-quote cite,
html[data-style="facile"] .signature-lettre,html[data-style="facile"] .billet-page .prose blockquote,html[data-style="facile"] .texte .signature,
html[data-style="facile"] .fiche h4,html[data-style="facile"] .plan button{font-family:"Atkinson Hyperlegible",Verdana,"Segoe UI",system-ui,sans-serif}
html[data-style="facile"] body{line-height:1.8}
html[data-style="facile"] h1{font-size:clamp(1.9rem,4.5vw,2.6rem);font-weight:700;line-height:1.25}
html[data-style="facile"] h2{font-size:clamp(1.5rem,3.4vw,1.9rem);font-weight:700;line-height:1.3}
html[data-style="facile"] h3,html[data-style="facile"] .prose h3,html[data-style="facile"] .billet h3,html[data-style="facile"] .panneau h3{font-size:1.3rem;font-weight:700;line-height:1.35}
html[data-style="facile"] .hero h1{font-size:clamp(1.9rem,4.5vw,2.6rem);max-width:none}
html[data-style="facile"] .etiquette,html[data-style="facile"] span.rubrique,html[data-style="facile"] .titre-filtres{letter-spacing:.06em;font-size:.9rem}
html[data-style="facile"] em.or{font-style:normal}
/* Les liens se reconnaissent sans la couleur : ils sont soulignés. Le focus du clavier se voit de loin. */
html[data-style="facile"] a{text-decoration:underline;text-underline-offset:.2em}
html[data-style="facile"] a:hover{color:#000}
html[data-style="facile"] a.carte.lien,html[data-style="facile"] .porte,html[data-style="facile"] .livre-carte,html[data-style="facile"] .tete .nom{text-decoration:none}
html[data-style="facile"] a:focus-visible,html[data-style="facile"] button:focus-visible,html[data-style="facile"] summary:focus-visible{outline:3px solid #0B5FFF;outline-offset:3px}
/* Une seule colonne, plus étroite. */
html[data-style="facile"] .dedans{max-width:46rem}
html[data-style="facile"] .cartes,html[data-style="facile"] .cartes.trois,html[data-style="facile"] .cartes.quatre,html[data-style="facile"] .portes,
html[data-style="facile"] .liste,html[data-style="facile"] .deux-col,html[data-style="facile"] .portrait,html[data-style="facile"] .livre-tete,
html[data-style="facile"] .visite{grid-template-columns:1fr}
html[data-style="facile"] .livres{grid-template-columns:repeat(2,1fr)}
html[data-style="facile"] .cc-topics ul{columns:1}
html[data-style="facile"] .portes{margin-top:0}
/* Des bords nets, pas d'ombres. */
html[data-style="facile"] .carte,html[data-style="facile"] .porte,html[data-style="facile"] .billet,html[data-style="facile"] .panneau,html[data-style="facile"] .fiche,
html[data-style="facile"] .trouver,html[data-style="facile"] .signe,html[data-style="facile"] .etat{border-width:2px}
html[data-style="facile"] *{box-shadow:none !important;text-shadow:none !important}
html[data-style="facile"] .tete{background:#fff;border-bottom-width:2px;backdrop-filter:none}
html[data-style="facile"] .bord a,html[data-style="facile"] .bord button{background:#fff;border-width:2px}
html[data-style="facile"] .prose strong{color:#000;font-weight:700}
html[data-style="facile"] .sans-couv{background:var(--nuit-2)}
html[data-style="facile"] .a-ecrire{background:var(--nuit-2)}
html[data-style="facile"] .filtres button[aria-pressed="true"],html[data-style="facile"] .pieces button[aria-pressed="true"],
html[data-style="facile"] .brut-bouton[aria-pressed="true"],html[data-style="facile"] .brut-bouton[aria-expanded="true"],
html[data-style="facile"] .plan button:hover,html[data-style="facile"] .plan button:focus-visible,html[data-style="facile"] .plan button[aria-pressed="true"],
html[data-style="facile"] .saut{color:#fff}
html[data-style="facile"] .prive{background:var(--nuit-2)}
html[data-style="facile"] .prive li{background:#fff}
html[data-style="facile"] .brut{background:var(--nuit-2);color:var(--creme)}
html[data-style="facile"] .voyant.plein{color:#2E6B3A}
html[data-style="facile"] .voyant.plein i{border-color:#2E6B3A;background:radial-gradient(circle,#2E6B3A 0 45%,transparent 50%)}
/* L'accueil : ni vidéo ni image derrière le texte. La question se lit sur fond uni. */
html[data-style="facile"] .hero{background-image:none !important;background:var(--nuit-2);min-height:0;padding:3rem 0}
html[data-style="facile"] .hero video.fond,html[data-style="facile"] .hero .voile,html[data-style="facile"] #fil{display:none}
/* Rien ne bouge. */
html[data-style="facile"]{scroll-behavior:auto}
html[data-style="facile"] *,html[data-style="facile"] *::before,html[data-style="facile"] *::after{animation:none !important;transition:none !important}
html[data-style="facile"] .a-venir-a-l-ecran{opacity:1 !important;transform:none !important}
html[data-style="facile"] a.carte.lien:hover,html[data-style="facile"] .porte:hover,html[data-style="facile"] .livre-carte:hover img{transform:none}
html[data-style="facile"]::view-transition-old(root),html[data-style="facile"]::view-transition-new(root){animation:none}

/* ---------- Sur téléphone ----------
   Le panneau « Apparence » s'ouvre sur toute la largeur de l'écran, sous l'en-tête (accroché au bouton, il
   sortait à gauche : mesuré le 14/11/2026 sur 375 px). En « Lecture facile », le nom du site et les deux
   boutons sont un peu resserrés pour que l'en-tête tienne sur une ligne. */
@media (max-width:899px){
  .apparence{position:static}
  .apparence .choix{left:1rem;right:1rem;top:100%;min-width:0}
  html[data-style="facile"] .tete .nom{font-size:1.05rem}
  html[data-style="facile"] .tete .dedans{gap:.6rem}
  html[data-style="facile"] .apparence summary,html[data-style="facile"] .tete button[aria-controls]{font-size:.85rem;padding:.3rem .6rem}
}

/* ---------- L'accueil en promenade, dans les deux autres styles ---------- */
html[data-style="jour"] .eventail img{box-shadow:0 1rem 2.2rem rgba(60,45,20,.28)}
html[data-style="jour"] .ecran.maison img{box-shadow:0 1.5rem 3rem rgba(60,45,20,.18)}
/* Lecture facile : pas d'écrans hauts, pas d'éventail penché, pas de flèche qui bouge. Tout se lit de haut en bas. */
html[data-style="facile"] .ecran{min-height:0;padding:3rem 0;text-align:left}
html[data-style="facile"] .hero{min-height:0}
html[data-style="facile"] .descendre{display:none}
html[data-style="facile"] .ecran.livres > .dedans,html[data-style="facile"] .ecran.maison > .dedans{grid-template-columns:1fr}
html[data-style="facile"] .eventail{justify-content:flex-start;flex-wrap:wrap;gap:1rem;padding:0}
html[data-style="facile"] .eventail a{transform:none;margin-left:0}
html[data-style="facile"] .grand,html[data-style="facile"] .une-voix blockquote{font-family:inherit;font-style:normal;font-size:1.6rem;font-weight:700}
html[data-style="facile"] .ecran.nue .mesure,html[data-style="facile"] .voix-tour{margin-left:0;justify-content:flex-start;min-height:0}
html[data-style="jour"] .scene-lac{box-shadow:0 1.5rem 3.5rem rgba(60,45,20,.22)}
/* Lecture facile : pas de lac (de petites cibles sur une image), les trois portes simples à la place. */
html[data-style="facile"] .scene-lac{display:none}
html[data-style="facile"] .ecran.lac .portes{display:grid}
html[data-style="facile"] .scene-lac video.geste{display:none}

/* LECTURE FACILE : TOUT le texte des pages prend la police très lisible, sans exception (contrôle du 16/11/2026 :
   le seuil de la maison, les citations des présences, les heures de la journée et les mots posés sur le lac
   gardaient la police à empattements). Règle générale, pour ne pas avoir à y repenser à chaque nouveau bloc. */
/* « !important » voulu : c'est un réglage d'accessibilité, il doit passer devant les polices choisies bloc par bloc. */
html[data-style="facile"] main *{font-family:inherit !important}

/* L'EN-TÊTE EN LECTURE FACILE (16/11/2026, signalé par PRISM). La colonne étroite de ce style (46rem) resserrait
   aussi l'en-tête : les liens du menu passaient sur deux lignes. L'en-tête garde donc toute la largeur, et un
   libellé de menu ne se coupe jamais. */
html[data-style="facile"] .tete .dedans{max-width:none}
html[data-style="facile"] .tete nav a{white-space:nowrap}
