/* Panda-Calendrier v2 - identité verte « bambou », mobile d'abord, impression A4 */
:root {
    --vert: #2b663b;
    --vert-2: #3f8a52;
    --bambou: #85b875;
    --bambou-clair: #e7f2e2;
    --creme: #fbfcf5;
    --encre: #1f2a22;
    --gris: #5d6b61;
    --bord: #dfe8da;
    --ferie: #d64545;
    --ferie-fond: #fde8e8;
    --we: #f2f5ef;
    --zone-a: #e3a008;
    --zone-b: #2f80ed;
    --zone-c: #9b51e0;
    --zone-corse: #e05a9b;
    --rayon: 14px;
    --ombre: 0 4px 18px rgba(31, 42, 34, 0.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--encre);
    background: var(--creme);
    line-height: 1.55;
}
a { color: var(--vert); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1rem; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link:focus { position: fixed; top: 0.5rem; left: 0.5rem; z-index: 99; background: #fff; padding: 0.5rem 1rem; }

/* En-tête */
.site-header { background: #fff; border-bottom: 1px solid var(--bord); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo img { display: block; height: 46px; width: auto; }
.main-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.main-nav a { text-decoration: none; color: var(--encre); font-weight: 600; padding: 0.5rem 0.8rem; border-radius: 10px; }
.main-nav a:hover, .main-nav a.is-active { background: var(--bambou-clair); color: var(--vert); }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; height: 3px; background: var(--vert); margin: 5px 0; border-radius: 2px; }

.zone-bar { background: var(--vert); color: #fff; }
.zone-bar-inner { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; padding-top: 0.45rem; padding-bottom: 0.45rem; }
.zone-bar-label { font-weight: 600; font-size: 0.9rem; }
.zone-picker { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.zone-chip {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: #fff;
    border-radius: 999px;
    padding: 0.2rem 0.75rem;
    font: inherit;
    font-size: 0.875rem;
    cursor: pointer;
}
.zone-chip[aria-checked="true"] { background: #fff; color: var(--vert); font-weight: 700; }
.zone-countdown { margin-left: auto; font-size: 0.9rem; }
.zone-countdown strong { color: #fff3c4; }

@media (max-width: 820px) {
    .menu-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 0.5rem 1rem 1rem; border-bottom: 1px solid var(--bord); box-shadow: var(--ombre); }
    .main-nav.is-open { display: flex; }
    .zone-countdown { margin-left: 0; width: 100%; }
}

.breadcrumb { font-size: 0.85rem; color: var(--gris); padding-top: 0.75rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
main { padding-top: 1rem; padding-bottom: 2rem; }

/* Titres et blocs */
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); color: var(--vert); margin: 0.5rem 0; letter-spacing: -0.01em; }
h2 { font-size: 1.3rem; margin: 0 0 0.75rem; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.page-head h1 { text-align: center; flex: 1; }
@media (max-width: 640px) {
    .page-head { flex-wrap: wrap; }
    .page-head h1 { order: -1; flex-basis: 100%; }
    .page-head .nav-annee { font-size: 0.85rem; padding: 0.3rem 0.6rem; }
    /* Zone choisie : sur mobile, le tableau n'affiche que sa colonne */
    body[data-zone="A"] .col-zone:not([data-col-zone="A"]),
    body[data-zone="B"] .col-zone:not([data-col-zone="B"]),
    body[data-zone="C"] .col-zone:not([data-col-zone="C"]),
    body[data-zone="Corse"] .col-zone:not([data-col-zone="Corse"]) { display: none; }
    body:not([data-zone=""]) .tableau-vacances { min-width: 0; }
}
.nav-annee { text-decoration: none; font-weight: 600; border: 1px solid var(--bord); background: #fff; padding: 0.4rem 0.8rem; border-radius: 10px; white-space: nowrap; }
.intro { color: var(--gris); max-width: 800px; }
.titre-section { margin-top: 1.5rem; }
.bloc { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.25rem; margin: 1.25rem 0; box-shadow: var(--ombre); }
.colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.colonnes .bloc { margin: 0; }
.colonnes + .bloc, .colonnes { margin-top: 1.25rem; }
.centre { text-align: center; }
.muted, .note { color: var(--gris); font-size: 0.9rem; }
.encart { background: var(--bambou-clair); border: 1px solid #cfe3c6; border-radius: var(--rayon); padding: 1rem 1.25rem; margin: 1.25rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.encart p { margin: 0.25rem 0; }
.tag { display: inline-block; background: var(--bambou-clair); color: var(--vert); border-radius: 999px; padding: 0.05rem 0.55rem; font-size: 0.8rem; font-weight: 600; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid var(--bord); background: #fff; color: var(--encre); padding: 0.55rem 0.95rem; border-radius: 10px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--bambou); }
.btn-primary { background: var(--vert); border-color: var(--vert); color: #fff; }
.btn-primary:hover { background: var(--vert-2); }
.btn-whatsapp { background: #e7f9ee; border-color: #bfe9cf; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 1rem; }
.lien-discret { font-size: 0.85rem; color: var(--gris); }

/* Aujourd'hui */
.aujourdhui { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem; align-items: stretch; margin-top: 0.5rem; }
.aujourdhui-date { background: linear-gradient(150deg, var(--vert) 0%, var(--vert-2) 100%); color: #fff; border-radius: var(--rayon); padding: 1.25rem; }
.aujourdhui-date .grand { font-size: 1.5rem; font-weight: 800; margin: 0.25rem 0; }
.aujourdhui-date p { margin: 0.2rem 0; }
.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 700; opacity: 0.85; margin: 0; }
.aujourdhui-cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.carte-info { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1rem; text-decoration: none; color: var(--encre); display: flex; flex-direction: column; gap: 0.2rem; box-shadow: var(--ombre); }
.carte-info strong { font-size: 1.15rem; color: var(--vert); }
.carte-info span:last-child { color: var(--gris); font-size: 0.9rem; }
.carte-info:hover { border-color: var(--bambou); }
@media (max-width: 900px) {
    .aujourdhui { grid-template-columns: 1fr; }
    .aujourdhui-cartes { grid-template-columns: 1fr; }
}

.raccourcis { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0; }
.raccourci { background: #fff; border: 1px solid var(--bord); border-radius: 999px; padding: 0.5rem 1rem; text-decoration: none; color: var(--encre); font-weight: 600; }
.raccourci:hover { border-color: var(--bambou); background: var(--bambou-clair); }

/* Calendrier */
.legende { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.85rem; color: var(--gris); margin: 0.5rem 0 1rem; align-items: center; }
.legende span { display: inline-flex; align-items: center; gap: 0.35rem; }
.pastille { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.pastille-ferie { background: var(--ferie); }
.pastille-we { background: var(--we); border: 1px solid var(--bord); }
.pastille-today { border: 2px solid var(--vert); }

.annee-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.annee-grille--accueil { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .annee-grille { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .annee-grille, .annee-grille--accueil { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .annee-grille, .annee-grille--accueil { grid-template-columns: 1fr; } }

.mois { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.mois-titre { margin: 0; background: var(--bambou); color: #fff; text-align: center; padding: 0.45rem; font-size: 1rem; }
.mois-titre a { color: #fff; text-decoration: none; }
.mois-titre a:hover { text-decoration: underline; }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.9rem; }
.cal th { font-size: 0.75rem; color: var(--gris); font-weight: 700; padding: 0.35rem 0; }
.cal td { text-align: center; padding: 0.3rem 0 0.45rem; position: relative; height: 2.1rem; border-top: 1px solid #f0f3ed; }
.cal .num-sem { color: #9aa79e; font-size: 0.7rem; width: 1.8rem; font-style: italic; }
.cal td.we { background: var(--we); }
.cal td.ferie .jour { background: var(--ferie); color: #fff; border-radius: 6px; padding: 0.05rem 0.3rem; font-weight: 700; }
.cal td.ferie-local .jour { outline: 2px dashed var(--ferie); border-radius: 6px; padding: 0 0.25rem; }
.cal td.today .jour { outline: 2px solid var(--vert); outline-offset: 1px; border-radius: 6px; font-weight: 800; }
.cal td[title] { cursor: help; }
.bars { position: absolute; left: 12%; right: 12%; bottom: 3px; display: flex; flex-direction: column; gap: 1px; }
.bar { display: block; height: 3px; border-radius: 2px; }
.legende .bar, .leg-zone .bar { width: 18px; display: inline-block; }
.bar-a { background: var(--zone-a); }
.bar-b { background: var(--zone-b); }
.bar-c { background: var(--zone-c); }
.bar-corse { background: var(--zone-corse); }

/* Zone choisie : on n'affiche que sa barre, et le fond des jours de vacances */
body[data-zone="A"] .bar:not(.bar-a), body[data-zone="B"] .bar:not(.bar-b), body[data-zone="C"] .bar:not(.bar-c), body[data-zone="Corse"] .bar:not(.bar-corse) { display: none; }
body[data-zone="A"] .legende .bar-a, body[data-zone="B"] .legende .bar-b, body[data-zone="C"] .legende .bar-c { display: inline-block; }
body[data-zone="A"] .leg-zone:not([data-leg="A"]), body[data-zone="B"] .leg-zone:not([data-leg="B"]), body[data-zone="C"] .leg-zone:not([data-leg="C"]), body[data-zone="Corse"] .leg-zone:not([data-leg="Corse"]) { display: none; }
body[data-zone="A"] .cal td[data-vac~="A"] { background: #fdf3d7; }
body[data-zone="B"] .cal td[data-vac~="B"] { background: #e2edfd; }
body[data-zone="C"] .cal td[data-vac~="C"] { background: #f0e6fb; }
body[data-zone="Corse"] .cal td[data-vac~="Corse"] { background: #fbe4ef; }
body[data-zone="A"] .bars, body[data-zone="B"] .bars, body[data-zone="C"] .bars, body[data-zone="Corse"] .bars { bottom: 2px; }

.mois-grand { max-width: 760px; margin: 0 auto; }
.mois-grand .cal { font-size: 1.15rem; }
.mois-grand .cal td { height: 3.4rem; }

.liste-dates { list-style: none; margin: 0; padding: 0; }
.liste-dates li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px dashed var(--bord); }
.liste-dates li:last-child { border-bottom: 0; }
.liste-dates .date { font-weight: 600; white-space: nowrap; }
.liste-dates li span:last-child { text-align: right; }
.liste-dates li.passe { opacity: 0.5; }
.liste-dates--2col { columns: 2; column-gap: 2rem; }
.liste-dates--2col li { break-inside: avoid; }
@media (max-width: 640px) { .liste-dates--2col { columns: 1; } .liste-dates li { flex-direction: column; gap: 0; } .liste-dates li span:last-child { text-align: left; } }
.liste-liens { padding-left: 1.1rem; }
.mois-liens { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.5rem; }
.mois-liens a { display: block; padding: 0.5rem 0.75rem; border: 1px solid var(--bord); border-radius: 10px; text-decoration: none; background: #fff; }

/* Tableaux */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); }
.tableau { width: 100%; border-collapse: collapse; min-width: 560px; }
.tableau th, .tableau td { text-align: left; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--bord); vertical-align: top; }
.tableau thead th { background: var(--bambou-clair); color: var(--vert); }
.tableau tbody tr:last-child th, .tableau tbody tr:last-child td { border-bottom: 0; }
.tableau tr.passe { opacity: 0.55; }
.tableau tr.ligne-alsace { background: #fffaf0; }
.tableau tr.courante { background: #fff6d6; font-weight: 700; }
.tableau small { color: var(--gris); }
.tableau-semaines { min-width: 0; }
body[data-zone="A"] .col-zone[data-col-zone="A"], body[data-zone="B"] .col-zone[data-col-zone="B"], body[data-zone="C"] .col-zone[data-col-zone="C"], body[data-zone="Corse"] .col-zone[data-col-zone="Corse"] { background: #fff6d6; }
body[data-zone="A"] thead .col-zone[data-col-zone="A"], body[data-zone="B"] thead .col-zone[data-col-zone="B"], body[data-zone="C"] thead .col-zone[data-col-zone="C"] { box-shadow: inset 0 -3px 0 var(--vert); }

/* Zones, compte à rebours, chiffres */
.zones-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.zone-carte { border-radius: var(--rayon); padding: 1rem; text-decoration: none; color: var(--encre); border: 1px solid var(--bord); border-left-width: 6px; background: #fff; display: flex; flex-direction: column; gap: 0.25rem; }
.zone-carte span { font-size: 0.85rem; color: var(--gris); }
.zone-carte--a { border-left-color: var(--zone-a); }
.zone-carte--b { border-left-color: var(--zone-b); }
.zone-carte--c { border-left-color: var(--zone-c); }
select { font: inherit; padding: 0.45rem 0.6rem; border-radius: 10px; border: 1px solid var(--bord); margin-left: 0.5rem; }
.resultat-zone { font-weight: 700; color: var(--vert); min-height: 1.5em; }

.compte-a-rebours { text-align: center; background: linear-gradient(150deg, var(--vert) 0%, var(--vert-2) 100%); color: #fff; border-radius: var(--rayon); padding: 1.5rem 1rem; margin: 1rem 0; }
.compte-a-rebours .grand { font-size: 1.6rem; font-weight: 800; margin: 0.25rem 0; }
.compte-a-rebours .geant { font-size: clamp(2.5rem, 9vw, 4.5rem); font-weight: 900; margin: 0; line-height: 1.1; }
.compte-a-rebours .jours { font-size: 1.2rem; }
.compte-a-rebours p { margin: 0.25rem 0; }

.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; margin: 1rem 0; }
.chiffres div { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1rem; text-align: center; box-shadow: var(--ombre); }
.chiffres strong { display: block; font-size: 1.7rem; color: var(--vert); }
.chiffres span { color: var(--gris); font-size: 0.9rem; }
.ponts { padding-left: 1.25rem; }
.ponts li { margin-bottom: 1rem; }
.ponts p { margin: 0.2rem 0; }
.pont-tete { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

.agenda-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1rem 0; }
.agenda-carte { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; box-shadow: var(--ombre); }
.agenda-carte h2 { font-size: 1.05rem; margin: 0; }
.ics-liens { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--bord); padding: 0.75rem 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 0.5rem 0 0; color: var(--gris); }
.prose h2 { margin-top: 1.25rem; }

/* Pied de page */
.site-footer { background: #20352a; color: rgba(255, 255, 255, 0.82); margin-top: 2rem; padding: 2rem 0 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.5rem; }
.footer-grid img { background: #fff; border-radius: 8px; padding: 4px 8px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 0.15rem 0; }
.footer-title { font-weight: 700; color: #fff; margin: 0 0 0.4rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 1.5rem; padding-top: 1rem; font-size: 0.8rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); background: var(--encre); color: #fff; padding: 0.65rem 1rem; border-radius: 12px; z-index: 50; box-shadow: var(--ombre); }
.print-only { display: none; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Impression : le calendrier annuel tient sur une page A4 paysage */
@media print {
    @page { size: A4 landscape; margin: 8mm; }
    body { background: #fff; font-size: 9pt; }
    .site-header, .site-footer, .breadcrumb, .no-print, .faq, .bloc, .encart, .toast, .pub, .raccourcis, .aujourdhui, .nav-annee, ins.adsbygoogle { display: none !important; }
    .print-only { display: block; text-align: center; color: #555; margin-top: 4mm; }
    main { padding: 0; }
    h1 { font-size: 16pt; margin: 0 0 3mm; color: #000; }
    .page-head { justify-content: center; }
    .legende { margin: 0 0 3mm; font-size: 8pt; }
    .annee-grille { grid-template-columns: repeat(4, 1fr); gap: 3mm; }
    .mois { box-shadow: none; border-color: #bbb; break-inside: avoid; }
    .mois-titre { background: #ddd !important; color: #000; padding: 1mm; font-size: 10pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .mois-titre a { color: #000; }
    .cal { font-size: 8pt; }
    .cal td { height: auto; padding: 0.6mm 0 1.6mm; }
    .cal td, .bar, .cal td.ferie .jour { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .mois-grand { max-width: none; }
    .mois-grand .cal { font-size: 14pt; }
    .mois-grand .cal td { height: 18mm; }
    .table-wrap { box-shadow: none; border: 0; }
}

/* Calculs et outils */
.footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.lien-clair { color: #fff; font-weight: 600; }

.outil input[type="time"], .outil input[type="number"], .outil input[type="date"], .outil input[type="text"], .outil textarea, .outil select {
    font: inherit; padding: 0.45rem 0.6rem; border: 1px solid var(--bord); border-radius: 10px; background: #fff; color: var(--encre); max-width: 100%;
}
.outil input:focus, .outil textarea:focus, .outil select:focus { outline: 2px solid var(--bambou); outline-offset: 1px; border-color: var(--bambou); }
.outil select { margin-left: 0; }
.outil textarea { width: 100%; font-family: ui-monospace, Consolas, monospace; }
.outil-options { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: flex-end; margin: 0.5rem 0 1rem; }
.outil-options label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 600; font-size: 0.9rem; }
.outil-options label.case { flex-direction: row; align-items: center; font-weight: 500; gap: 0.45rem; }
.champ-unite { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; }
.champ-unite input { width: 6.5rem; }
.champ-large { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 600; }
.champ-large input { font-size: 1.25rem; width: 100%; }
.resultat-outil { font-size: 1.1rem; color: var(--vert); font-weight: 600; min-height: 1.6em; margin: 0.75rem 0 0; }
.resultat-outil strong { font-size: 1.35rem; }
.btn-discret { color: var(--gris); font-weight: 500; }
.btn[aria-pressed="true"] { background: var(--vert); border-color: var(--vert); color: #fff; }

/* Feuille d'heures : matin et après-midi (tableau sur ordinateur, une carte par jour sur mobile) */
.tableau-heures { min-width: 0; }
.tableau-heures th, .tableau-heures td { padding: 0.4rem 0.45rem; vertical-align: middle; }
.tableau-heures thead th { text-align: center; }
.tableau-heures thead tr:first-child th:first-child { text-align: left; }
.tableau-heures thead th.groupe { border-bottom: 2px solid #cfe3c6; }
.tableau-heures td.c-mf { border-right: 1px dashed var(--bord); }
.tableau-heures input[type="time"] { width: 6.9rem; }
.tableau-heures tr.ligne-we th { color: var(--gris); }
.tableau-heures tfoot th, .tableau-heures tfoot td { background: var(--bambou-clair); font-weight: 800; border-bottom: 0; }
.total-jour { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.total-jour .pause-non-prise { display: block; font-weight: 500; font-size: 0.75rem; color: #9a5b00; white-space: normal; }
.jour-court { display: none; text-decoration: none; }
.case-pause { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; cursor: pointer; }
.pause-off .col-pause, .pause-off [data-h-pause-aide] { display: none; }
.option-pause { background: var(--bambou-clair); border: 1px solid #cfe3c6; border-radius: var(--rayon); padding: 0.6rem 0.9rem; margin: 0 0 1rem; }
.option-pause label.case { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; cursor: pointer; }
.option-pause .champ-unite input { width: 4.5rem; }
.option-pause .note { margin: 0.35rem 0 0; }
@media (max-width: 760px) {
    .tableau-heures thead { display: none; }
    .tableau-heures, .tableau-heures tbody, .tableau-heures tfoot { display: block; }
    .tableau-heures tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 0.6rem; padding: 0.75rem 0.85rem; border-bottom: 1px solid var(--bord); }
    .tableau-heures th, .tableau-heures td { padding: 0; border: 0; }
    .tableau-heures .c-jour { grid-column: 1; grid-row: 1; align-self: center; font-size: 1.05rem; }
    .tableau-heures .c-total { grid-column: 2; grid-row: 1; text-align: right; align-self: center; }
    .tableau-heures .c-md { grid-column: 1; grid-row: 2; }
    .tableau-heures .c-mf { grid-column: 2; grid-row: 2; border: 0; }
    .tableau-heures .c-ad { grid-column: 1; grid-row: 3; }
    .tableau-heures .c-af { grid-column: 2; grid-row: 3; }
    .tableau-heures .c-pause { grid-column: 1 / -1; grid-row: 4; }
    .tableau-heures .case-pause span::before { content: 'Pause obligatoire '; }
    .tableau-heures .c-md::before { content: 'Matin : début'; }
    .tableau-heures .c-mf::before { content: 'Matin : fin'; }
    .tableau-heures .c-ad::before { content: 'Après-midi : début'; }
    .tableau-heures .c-af::before { content: 'Après-midi : fin'; }
    .tableau-heures .c-md::before, .tableau-heures .c-mf::before, .tableau-heures .c-ad::before, .tableau-heures .c-af::before { display: block; font-size: 0.75rem; font-weight: 600; color: var(--gris); margin-bottom: 0.15rem; }
    .tableau-heures input[type="time"] { width: 100%; }
    .tableau-heures tfoot tr { grid-template-columns: 1fr auto; background: var(--bambou-clair); }
    .tableau-heures tfoot .col-pause { display: none; }
    .tableau-heures tfoot td { text-align: right; }
}
.resultats em { font-style: normal; display: block; font-size: 0.85rem; }
.alertes { list-style: none; padding: 0.75rem 1rem; margin: 0.75rem 0; background: #fff6e0; border: 1px solid #f3dca0; border-radius: var(--rayon); }
.alertes li { padding: 0.15rem 0; }
.alerte-info { background: #fff6e0; border: 1px solid #f3dca0; border-radius: var(--rayon); padding: 0.75rem 1rem; }

.outils-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 1rem 0; }
.carte-outil { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.1rem; text-decoration: none; color: var(--encre); display: flex; flex-direction: column; gap: 0.3rem; box-shadow: var(--ombre); }
.carte-outil:hover { border-color: var(--bambou); }
.carte-outil strong { color: var(--vert); font-size: 1.1rem; }
.carte-outil span:last-child { color: var(--gris); font-size: 0.92rem; }
.carte-outil-icone { font-size: 1.6rem; }
.raccourcis-inline { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tableau-centiemes { min-width: 520px; }
.tableau-centiemes th, .tableau-centiemes td { padding: 0.35rem 0.6rem; font-variant-numeric: tabular-nums; }
.tableau-centiemes tbody th { font-weight: 500; color: var(--gris); }
.tableau-centiemes td { font-weight: 700; border-right: 1px solid var(--bord); }
.tableau-ouvres tfoot th, .tableau-ouvres tfoot td { background: var(--bambou-clair); font-weight: 800; }

/* Semaines paires / impaires */
.compte-a-rebours--impaire { background: linear-gradient(150deg, #2f5f8a 0%, #3f7fb5 100%); }
.tag-paire { background: #e7f2e2; color: var(--vert); }
.tag-impaire { background: #e2edfd; color: #2f5f8a; }
.garde { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 1rem 0 0.25rem; }
body[data-mes-semaines="paire"] .tableau-parite tr.sem-paire,
body[data-mes-semaines="impaire"] .tableau-parite tr.sem-impaire { background: #eaf6e4; box-shadow: inset 4px 0 0 var(--vert); }
.tableau-parite tr.courante { background: #fff6d6 !important; }

@media print {
    .outil-options input, .tableau-heures input { border: 0; padding: 0; }
    .outil .chiffres div { box-shadow: none; }
    .alertes, .garde { display: none !important; }
}

/* Agenda des semaines de garde */
.agenda-garde { border-left: 6px solid var(--vert); }
.agenda-garde .outil-options { margin-bottom: 0.5rem; }
.apercu-garde { font-weight: 600; color: var(--vert); min-height: 1.5em; margin: 0.5rem 0; }
.outil-options label { max-width: 100%; min-width: 0; }
.outil-options select { max-width: 100%; text-overflow: ellipsis; }
@media (max-width: 560px) { .agenda-garde .outil-options label, .agenda-garde select { width: 100%; } }

/* Carte des zones de vacances */
.z-a { fill: var(--zone-a); background: var(--zone-a); }
.z-b { fill: var(--zone-b); background: var(--zone-b); }
.z-c { fill: var(--zone-c); background: var(--zone-c); }
.z-corse { fill: var(--zone-corse); background: var(--zone-corse); }
.z-om { fill: #14a098; background: #14a098; }
.carte-zone { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.25rem; align-items: start; margin: 1rem 0 1.5rem; }
.carte-svg { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 0.75rem; box-shadow: var(--ombre); }
.carte { width: 100%; height: auto; display: block; }
.carte .aca { stroke: #fff; stroke-width: 0.9; stroke-linejoin: round; opacity: 0.82; transition: opacity 0.15s, filter 0.15s; }
.carte .aca[data-cle], .carte .encart { cursor: pointer; outline: none; }
.carte .aca[data-cle]:hover, .carte .aca[data-cle]:focus, .carte .encart:hover .aca, .carte .encart:focus .aca { opacity: 1; filter: brightness(0.92); }
.carte .aca.is-zone, .carte .encart.is-zone .aca { opacity: 1; }
.carte .aca.is-choisie, .carte .encart.is-choisie .aca { stroke: var(--encre); stroke-width: 1.8; }
.carte-zone .carte .carte-metro:has(.is-zone) .aca:not(.is-zone) { opacity: 0.38; }
.encart-fond { fill: #f4f8f1; stroke: var(--bord); }
.encart:hover .encart-fond, .encart:focus .encart-fond { stroke: var(--bambou); }
.encart.is-zone .encart-fond { stroke: var(--encre); stroke-width: 1.5; }
.com-fond { fill: #e3f4f2; }
.encart-nom { font: 600 11px system-ui, sans-serif; fill: var(--encre); pointer-events: none; }
.legende-carte { margin: 0.6rem 0 0; }
.leg-btn { border: 1px solid var(--bord); background: #fff; border-radius: 999px; padding: 0.15rem 0.6rem; font: inherit; font-size: 0.85rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; }
.leg-btn[aria-pressed="true"] { border-color: var(--encre); font-weight: 700; }
.pastille.z-a, .pastille.z-b, .pastille.z-c, .pastille.z-corse, .pastille.z-om { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: middle; }
.carte-panneau { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.1rem 1.2rem; box-shadow: var(--ombre); position: sticky; top: 120px; }
.carte-panneau h2 { margin: 0.1rem 0 0.4rem; color: var(--vert); }
.grand-texte { font-size: 1.25rem; font-weight: 700; margin: 0.3rem 0; }
.p-bloc { margin-top: 0.8rem; }
.p-titre { font-weight: 700; margin: 0 0 0.2rem; }
.p-zone { margin: 0.2rem 0; }
.tag-z-a { background: #fdf3d7; color: #8a6100; }
.tag-z-b { background: #e2edfd; color: #1d5bb5; }
.tag-z-c { background: #f0e6fb; color: #6b2fb0; }
.tag-z-corse { background: #fbe4ef; color: #a3306b; }
.tag-z-om { background: #dff4f2; color: #0d6e68; }
.carte-panneau .liste-dates li { flex-direction: column; gap: 0; }
.carte-panneau .liste-dates li span:last-child { text-align: left; color: var(--gris); font-size: 0.92rem; }
@media (max-width: 900px) {
    .carte-zone { grid-template-columns: 1fr; }
    .carte-panneau { position: static; }
}

.resume-zones h2 { margin-top: 0.5rem; }
.filtres { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; margin: 0.5rem 0 0.9rem; }
.filtres-boutons { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.filtre-recherche { display: flex; align-items: center; gap: 0.4rem; flex: 1; min-width: 220px; }
.filtre-recherche input, .filtre-tri select { font: inherit; padding: 0.45rem 0.6rem; border: 1px solid var(--bord); border-radius: 10px; width: 100%; }
.filtre-tri { display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.filtre-tri select { width: auto; margin: 0; }
.tableau-resume { min-width: 760px; }
.tableau-resume tbody tr { cursor: pointer; }
.tableau-resume tbody tr:hover { background: #f7faf4; }
.tableau-resume tbody tr.is-choisie { background: #fff6d6; box-shadow: inset 4px 0 0 var(--vert); }
.tableau-resume .academies { display: block; color: var(--gris); font-weight: 400; max-width: 260px; }
.tableau-resume th .pastille { margin-right: 0.25rem; }
@media (max-width: 560px) { .encart-nom { font-size: 14px; letter-spacing: -0.02em; } }
@media (max-width: 760px) {
    .tableau-resume { min-width: 0; }
    .tableau-resume thead { display: none; }
    .tableau-resume, .tableau-resume tbody { display: block; }
    .tableau-resume tbody tr { display: block; padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--bord); }
    .tableau-resume th, .tableau-resume td { display: block; border: 0; padding: 0.2rem 0; }
    .tableau-resume th { font-size: 1.1rem; }
    .tableau-resume td::before { display: block; font-size: 0.75rem; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: 0.04em; }
    .tableau-resume td:nth-of-type(1)::before { content: 'Prochaines vacances'; }
    .tableau-resume td:nth-of-type(2)::before { content: 'Plus longues vacances publiées (12 mois)'; }
    .tableau-resume td:nth-of-type(3)::before { content: 'Jours fériés (12 mois)'; }
    .tableau-resume td:nth-of-type(4)::before { content: 'Heure locale'; }
}
.zone-carte--om { border-left-color: #14a098; }
.compte-a-rebours--om { background: linear-gradient(150deg, #0d6e68 0%, #14a098 100%); }
.zone-chip--om { text-decoration: none; background: rgba(255, 255, 255, 0.14); border-style: dashed; }
.zone-chip--om:hover { background: #fff; color: var(--vert); }
.liens-om { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; align-items: center; background: #dff4f2; border: 1px solid #b8e4df; border-radius: var(--rayon); padding: 0.6rem 0.9rem; }
.liens-om a { color: #0d6e68; }

/* Formulaire de contact */
.champ-cache { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire-contact .outil-options label { flex: 1; min-width: 200px; }
.formulaire-contact .outil-options input, .formulaire-contact .outil-options select { width: 100%; }

/* Ma zone : outre-mer et carte séparés */
.zone-om select.zone-chip { appearance: none; -webkit-appearance: none; padding-right: 1.6rem; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23fff'/%3E%3C/svg%3E") no-repeat right 0.6rem center; border-style: solid; cursor: pointer; }
.zone-om select.zone-chip option { color: var(--encre); }
.zone-om select.zone-chip.is-choisi { background-color: #fff; color: #0d6e68; font-weight: 700; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%230d6e68'/%3E%3C/svg%3E"); }
.zone-carte-lien { color: #fff; font-size: 0.875rem; font-weight: 600; text-decoration: none; border-bottom: 1px dashed rgba(255, 255, 255, 0.6); white-space: nowrap; }
.zone-carte-lien:hover { border-bottom-style: solid; }

/* Calendrier : indicateur de vacances en pastilles (plus lisible que 4 barres empilées) */
.bars { left: 0; right: 0; bottom: 3px; flex-direction: row; justify-content: center; gap: 3px; }
.bar { width: 6px; height: 6px; border-radius: 50%; }
.legende .bar, .leg-zone .bar { width: 10px; height: 10px; border-radius: 50%; }
/* Une zone choisie : une seule barre large sous le jour */
body[data-zone="A"] .cal .bar, body[data-zone="B"] .cal .bar, body[data-zone="C"] .cal .bar, body[data-zone="Corse"] .cal .bar { width: 60%; height: 3px; border-radius: 2px; }
.mois-grand .bar { width: 8px; height: 8px; }
/* Territoire d'outre-mer choisi : ses vacances surlignées, pastilles de métropole masquées */
body.zone-om-active .cal .bars, body.zone-om-active .leg-zone { display: none; }
.cal td.vac-om { background: #dff4f2; box-shadow: inset 0 -3px 0 #14a098; }
.leg-om { display: none; }
body.zone-om-active .leg-om { display: inline-flex; }
.pastille-om { background: #dff4f2; border: 2px solid #14a098; }
@media print { .cal td.vac-om { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.legende .leg-om { display: none; }
body.zone-om-active .legende .leg-om { display: inline-flex; }
body.zone-om-active .legende .leg-zone { display: none; }
.ligne-om { display: none !important; }
.ligne-om.is-visible { display: flex !important; }

/* Calendriers lunaire, solaire, ensoleillement, météo */
.onglets-ciel { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0 0.25rem; }
.onglets-ciel a { text-decoration: none; padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid var(--bord); background: #fff; color: var(--encre); font-weight: 600; }
.onglets-ciel a.is-active { background: var(--vert); border-color: var(--vert); color: #fff; }
.choix-ville { margin: 0.5rem 0; }
.choix-ville label { font-weight: 600; }
.cal-ciel { width: 100%; border-collapse: collapse; table-layout: fixed; background: #fff; }
.cal-ciel th { background: var(--bambou-clair); color: var(--vert); padding: 0.45rem 0.2rem; font-size: 0.85rem; }
.cal-ciel td { border: 1px solid var(--bord); vertical-align: top; padding: 0.35rem 0.4rem; height: 6.2rem; }
.cal-ciel td.vide { background: #fafbf8; }
.cal-ciel td.we { background: var(--we); }
.cal-ciel td.today { outline: 2px solid var(--vert); outline-offset: -2px; }
.cal-ciel td.phase { background: #f2f0fb; }
.c-num { display: block; font-weight: 800; font-size: 0.9rem; }
.c-ferie { font-size: 0.65rem; font-weight: 700; color: #fff; background: var(--ferie); border-radius: 4px; padding: 0 0.25rem; vertical-align: middle; }
.c-gros { display: block; font-size: 1.6rem; line-height: 1.2; text-align: center; }
.c-info { display: block; font-size: 0.85rem; text-align: center; font-variant-numeric: tabular-nums; }
.c-petit { display: block; font-size: 0.75rem; color: var(--gris); text-align: center; }
.cal-soleil .c-info { text-align: left; }
.t-max { color: #c2410c; }
.t-min { color: #1d5bb5; }
.c-barre { display: block; position: relative; height: 8px; background: #eef1ea; border-radius: 4px; margin: 0.35rem 0 0.2rem; overflow: hidden; }
.c-barre i { position: absolute; left: 0; top: 0; bottom: 0; background: #fde7a8; }
.c-barre b { position: absolute; left: 0; top: 0; bottom: 0; background: #f2b705; }
.cal-ciel td.src-normale { background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(0, 0, 0, 0.025) 8px 16px); }
.cal-ciel td.src-normale .c-info, .cal-ciel td.src-normale .c-petit { font-style: italic; }
.cal-ciel td.src-prevision { box-shadow: inset 0 3px 0 #2f80ed; }
.legende-meteo { margin: 0.25rem 0 0.6rem; }
.pastille-obs { background: #fff; border: 1px solid var(--bord); }
.pastille-prev { background: #fff; border: 1px solid var(--bord); box-shadow: inset 0 3px 0 #2f80ed; }
.pastille-norm { background: repeating-linear-gradient(135deg, #fff 0 3px, #ddd 3px 5px); border: 1px solid var(--bord); }
@media (max-width: 700px) {
    .cal-ciel td { height: auto; min-height: 4.5rem; padding: 0.25rem 0.15rem; }
    .cal-ciel th .jour-long { display: none; }
    .cal-ciel th .jour-court { display: inline; }
    .c-gros { font-size: 1.2rem; }
    .c-info { font-size: 0.7rem; }
    .c-petit { font-size: 0.62rem; }
    .c-ferie { display: none; }
    .cal-lune .c-info strong { display: block; font-size: 0.62rem; line-height: 1.1; }
}
@media print { .cal-ciel td { height: 22mm; } .onglets-ciel, .choix-ville { display: none; } }

/* Indicateurs du jour */
.indicateurs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; }
.indicateur strong { font-size: 1.05rem; }
.ind-emoji { font-size: 1.3rem; }
.ind-barre { display: block; height: 6px; border-radius: 3px; background: var(--bambou-clair); overflow: hidden; margin: 0.2rem 0; }
.ind-barre i { display: block; height: 100%; background: var(--vert-2); }
@media (max-width: 900px) { .indicateurs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .indicateurs { grid-template-columns: 1fr; } }
.lune-cal { position: absolute; top: 1px; right: 2px; font-size: 0.6rem; line-height: 1; }
.mois-grand .lune-cal { font-size: 0.9rem; top: 3px; right: 4px; }

/* Graphiques du bilan météo annuel */
.graphique h2 { margin-bottom: 0.25rem; }
.graph-wrap { overflow-x: auto; }
.graph { width: 100%; min-width: 620px; height: auto; display: block; font-family: system-ui, sans-serif; }
.graph .grille { stroke: #e6ebe2; stroke-width: 1; }
.graph .axe-zero { stroke: #9aa79e; stroke-width: 1; }
.graph .axe { font-size: 11px; fill: var(--gris); }
.graph .valeur { font-size: 11px; font-weight: 700; fill: #1d5bb5; }
.graph .bande-temp { fill: #fbd5c0; opacity: 0.85; }
.graph .bande-normale { fill: #e9ece6; }
.graph .l-max { fill: none; stroke: #e2552b; stroke-width: 1.4; }
.graph .l-min { fill: none; stroke: #2f80ed; stroke-width: 1.4; }
.graph .l-norm { fill: none; stroke: #5d6b61; stroke-width: 1; stroke-dasharray: 3 3; }
.graph .survol { fill: transparent; }
.graph .survol:hover { fill: rgba(31, 42, 34, 0.08); }
.graph .barre-pluie { fill: #2f80ed; }
.graph .l-norm-pluie { stroke: #1f2a22; stroke-width: 2; }
.repartition-air { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 0.6rem 0 0.4rem; }
.legende-air { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }
@media print { .graph { min-width: 0; } }
.liens-ciel { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0 0 1rem; }
.liens-ciel-titre { font-weight: 700; color: var(--gris); font-size: 0.9rem; margin-right: 0.25rem; }
.liens-ciel .raccourci { padding: 0.35rem 0.8rem; font-size: 0.9rem; }
