/* Sailly — réglage d'affichage (option I) */
@font-face { font-family: "OpenDyslexic"; src: url("fonts/opendyslexic.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "OpenDyslexic"; src: url("fonts/opendyslexic-gras.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

.aff-bouton { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px 0 12px; border: 2px solid #002960; border-radius: 999px; background: #fff; color: #002960; font: 600 15px/1 "Instrument Sans", system-ui, sans-serif; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 41, 96, .18); }
.aff-bouton > span:first-child { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #002960; color: #fff; font: 700 13px/1 "Instrument Sans", system-ui, sans-serif; }
.aff-bouton:hover { background: #002960; color: #fff; } .aff-bouton:hover > span:first-child { background: #fff; color: #002960; }
.aff-bouton:focus-visible, .aff-panneau button:focus-visible, .aff-panneau a:focus-visible { outline: 3px solid #3B7A28; outline-offset: 3px; }
@media (max-width: 560px) { .aff-bouton-lib { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .aff-bouton { padding: 0 10px; left: 12px; bottom: 12px; } }
.aff-voile { position: fixed; inset: 0; z-index: 90; background: rgba(23, 32, 46, .45); }
.aff-panneau { position: fixed; z-index: 91; left: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 20px 22px 22px; border-radius: 10px; background: #FFFDF8; color: #17202E; border: 1px solid #DDD4C3; box-shadow: 0 24px 60px rgba(0, 20, 50, .35); font: 400 15px/1.5 "Instrument Sans", system-ui, sans-serif; }
.aff-panneau[hidden], .aff-voile[hidden] { display: none; }
.aff-panneau header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.aff-panneau header b { font: 600 20px/1.2 "Newsreader", Georgia, serif; color: #002960; }
.aff-fermer { width: 44px; height: 44px; border: 0; border-radius: 6px; background: transparent; font-size: 28px; line-height: 1; color: #002960; cursor: pointer; }
.aff-note { margin: 0 0 12px; font-size: 14px; color: #3d4756; }
.aff-ligne { margin: 0 0 12px; padding: 0; border: 0; min-width: 0; }
.aff-ligne legend { padding: 0; margin-bottom: 6px; font-weight: 600; }
.aff-choix { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.aff-choix button { min-height: 44px; padding: 6px 8px; border: 1.5px solid #8a93a3; border-radius: 6px; background: #fff; color: #17202E; font: 500 14px/1.2 inherit; cursor: pointer; }
.aff-choix button.on { background: #002960; border-color: #002960; color: #fff; font-weight: 600; }
.aff-pied { display: grid; gap: 10px; margin-top: 16px; }
.aff-raz { min-height: 44px; border: 1.5px solid #002960; border-radius: 6px; background: #fff; color: #002960; font: 600 14px/1.2 inherit; cursor: pointer; }
.aff-falc { display: block; text-align: center; padding: 10px; color: #002960; font-weight: 600; }

/* ---- effets des réglages ---- */
html.aff-taille body { zoom: var(--aff-zoom); }
/* points de rupture de l'en-tête recalculés sur la largeur utile (voir affichage.js) */
html.aff-w1080 .hd-nav > div { grid-column: 3; } html.aff-w1080 .hd-liens { display: none !important; } html.aff-w1080 .hd-burger { display: inline-flex !important; } html.aff-w1080 .hd-cta { display: none !important; }
html.aff-w760 .hd-util-meteo, html.aff-w760 .cache-mobile { display: none !important; }
html.aff-w560 .hd-util-droite { display: none !important; }
html.aff-taille .aff-bouton, html.aff-taille .aff-panneau, html.aff-taille .pi-pile { zoom: calc(1 / var(--aff-zoom)); }
html.aff-interligne body, html.aff-interligne p, html.aff-interligne li, html.aff-interligne span, html.aff-interligne a, html.aff-interligne label, html.aff-interligne dd, html.aff-interligne dt, html.aff-interligne td { line-height: 1.8 !important; }
html.aff-espace body, html.aff-espace p, html.aff-espace li, html.aff-espace span, html.aff-espace a, html.aff-espace label, html.aff-espace h1, html.aff-espace h2, html.aff-espace h3, html.aff-espace h4 { letter-spacing: .06em !important; word-spacing: .16em !important; }
html.aff-dys body, html.aff-dys body *:not(svg):not(svg *) { font-family: "OpenDyslexic", "Comic Sans MS", sans-serif !important; font-style: normal !important; }
html.aff-dys .aff-panneau, html.aff-dys .aff-panneau * { font-size: 14px !important; }
html.aff-calme *, html.aff-calme *::before, html.aff-calme *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.aff-calme .reveal, html.aff-calme .monte, html.aff-calme [class*="d1"], html.aff-calme [class*="d2"] { opacity: 1 !important; transform: none !important; }
html.aff-calme .kb img:first-child { opacity: 1; }

/* contraste renforcé : fond clair, texte noir, liens soulignés, bordures marquées, focus très visible */
html.aff-contraste body { background: #fff !important; color: #000 !important; }
html.aff-contraste p, html.aff-contraste li, html.aff-contraste dd, html.aff-contraste dt, html.aff-contraste label, html.aff-contraste small, html.aff-contraste td, html.aff-contraste figcaption,
html.aff-contraste .chapo, html.aff-contraste .meta, html.aff-contraste .k, html.aff-contraste .v, html.aff-contraste [style*="#596273"], html.aff-contraste [style*="color: #5"] { color: #000 !important; }
html.aff-contraste a:not(.btn):not(.pi-note):not(.aff-bouton):not([class*="btn-"]) { color: var(--bleu-sailly) !important; text-decoration: underline !important; text-underline-offset: 3px; }
html.aff-contraste .btn-vert, html.aff-contraste .btn-contour { border: 2px solid #000 !important; }
html.aff-contraste .btn-vert { background: #1f4f12 !important; color: #fff !important; }
html.aff-contraste .btn-contour { background: #fff !important; color: #000 !important; }
html.aff-contraste input, html.aff-contraste textarea, html.aff-contraste select { border: 2px solid #000 !important; background: #fff !important; color: #000 !important; }
html.aff-contraste *:focus-visible { outline: 4px solid #000 !important; outline-offset: 3px !important; box-shadow: 0 0 0 7px #fff !important; }
html.aff-contraste .hd-util, html.aff-contraste footer, html.aff-contraste .ft { background: var(--bleu-sailly) !important; color: #fff !important; }
html.aff-contraste .hd-util *, html.aff-contraste footer *, html.aff-contraste .ft * { color: #fff !important; }
html.aff-contraste hr, html.aff-contraste .titre-sec { border-color: #000 !important; }
html.aff-contraste img { filter: contrast(1.08); }
html.aff-contraste .hero-d, html.aff-contraste .hero-d * { color: #fff !important; }
html.aff-contraste .hero-d a { text-decoration: underline !important; }
html.aff-contraste .hero-d a:not(.btn):not(.pi-note):not(.aff-bouton):not([class*="btn-"]) { color: #fff !important; }

/* invitation à installer l'appli (option B) */
.pwa-invite { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 12px; width: min(560px, calc(100vw - 24px)); padding: 12px 14px; border-radius: 10px; background: #002960; color: #fff; box-shadow: 0 12px 32px rgba(0, 20, 50, .35); font: 400 15px/1.4 "Instrument Sans", system-ui, sans-serif; }
.pwa-invite img { border-radius: 10px; flex: none; } .pwa-invite p { margin: 0; flex: 1; }
.pwa-invite button { flex: none; min-height: 44px; padding: 0 14px; border-radius: 6px; font: 600 14px/1 inherit; cursor: pointer; }
.pwa-oui { border: 0; background: #7CC242; color: #0b1b0a; } .pwa-non { border: 1.5px solid rgba(255,255,255,.6); background: transparent; color: #fff; }
.pwa-invite button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 560px) { .pwa-invite { flex-wrap: wrap; bottom: 76px; } .pwa-invite p { flex-basis: calc(100% - 60px); } }
