/* ==========================================================================
   Mouassasat Al Fadae Attarbaoui — site public
   Sens de lecture : RTL (propriétés logiques partout).
   Identité : teal du logo (encre), papier crème (cahier), or des
   distinctions, rouge réservé aux annotations « du professeur ».
   ========================================================================== */

:root {
    --ink: #10292c;
    --ink-2: #3b5357;
    --ink-3: #62777a;
    --teal: #0e6b72;
    --teal-700: #0b5b61;
    --teal-deep: #063f45;
    --teal-900: #042e33;
    --teal-200: #b7dad8;
    --teal-100: #d7ebe9;
    --teal-50: #ecf5f3;
    --paper: #fbf8f2;
    --paper-2: #f4eee3;
    --paper-3: #e9e1d2;
    --card: #fffdf9;
    --gold: #dfa22b;
    --gold-600: #a8740f;
    --gold-200: #f2d9a2;
    --gold-100: #faefd4;
    --sky: #2b9fbc;
    --sky-600: #1d7f98;
    --sky-100: #dbf0f5;
    --red-ink: #c0392b;
    --line: #e5dccb;
    --line-strong: #d3c8b2;
    --shadow-sm: 0 1px 2px rgba(16, 41, 44, .06);
    --shadow: 0 18px 40px -22px rgba(16, 41, 44, .32);
    --radius: 10px;
    --f-display: "Reem Kufi", "IBM Plex Sans Arabic", system-ui, sans-serif;
    --f-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
    --f-hand: "Aref Ruqaa", "Amiri", serif;
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --section: clamp(64px, 8vw, 108px);
    color-scheme: light;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img, svg, video { max-width: 100%; }
img { height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--f-display);
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
}

p { margin: 0 0 1em; }

button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--teal-100); color: var(--teal-900); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
    background: var(--teal-deep); color: #fff; padding: 10px 18px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Petits éléments ---------- */

.tag {
    display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; line-height: 1;
    padding: 5px 9px; border-radius: 999px; background: var(--teal-50); color: var(--teal-deep);
}

.pill {
    display: inline-flex; align-items: center; gap: 10px; margin: 0;
    padding: 7px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600; line-height: 1.4;
}
.pill--open { background: var(--gold-100); color: #6f4b0c; border: 1px solid var(--gold-200); }

.pulse {
    width: 8px; height: 8px; border-radius: 50%; flex: none;
    background: var(--gold); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(223, 162, 43, .6); }
    70% { box-shadow: 0 0 0 9px rgba(223, 162, 43, 0); }
    100% { box-shadow: 0 0 0 0 rgba(223, 162, 43, 0); }
}

.kicker {
    display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
    font-size: 15px; font-weight: 600; color: var(--teal); line-height: 1.4;
}
.kicker .brand-mark { width: 27px; height: auto; color: var(--teal); }
.kicker--light { color: var(--gold-200); }
.kicker--light .brand-mark { color: #fff; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--teal);
    padding-bottom: 2px; border-bottom: 1.5px solid currentColor; line-height: 1.5; white-space: nowrap;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s ease; }
.link-arrow:hover .icon-arrow-left { transform: translateX(-4px); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.65; }
.ticks .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--teal); }

/* ---------- Boutons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
    font-family: inherit; font-size: 16.5px; font-weight: 600; line-height: 1.2; text-align: center;
    cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 20px; height: 20px; }
.btn .icon-arrow-left { transition: transform .2s ease; }
.btn:hover .icon-arrow-left { transform: translateX(-3px); }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 17.5px; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-700); }
.btn--gold { background: var(--gold); color: var(--teal-900); }
.btn--gold:hover { background: #eab246; }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--light { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* ---------- Bandeau supérieur ---------- */

.topbar { background: var(--teal-deep); color: #dcebe9; font-size: 14px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar__announce { display: flex; align-items: center; gap: 10px; margin: 0; line-height: 1.5; padding-block: 6px; }
.topbar__announce a { color: var(--gold-200); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.topbar__contact { display: flex; align-items: center; gap: 20px; margin: 0; padding: 0; list-style: none; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 7px; opacity: .92; }
.topbar__contact a:hover { opacity: 1; color: #fff; }
.topbar__contact .icon { width: 16px; height: 16px; }

/* ---------- En-tête ---------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251, 248, 242, .97);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 24px -20px rgba(16, 41, 44, .45); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__logo { width: 58px; height: auto; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 21px; line-height: 1.25; color: var(--teal-deep); }
.brand__sub { font-size: 13px; color: var(--ink-3); line-height: 1.4; }

.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav a { position: relative; padding: 8px 13px; border-radius: 999px; font-size: 16px; font-weight: 500; color: var(--ink-2); transition: color .15s, background-color .15s; }
.nav a:hover { color: var(--teal-deep); background: var(--teal-50); }
.nav a[aria-current="page"] { color: var(--teal-deep); font-weight: 600; }
.nav a[aria-current="page"]::after {
    content: ""; position: absolute; inset-inline: 13px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--gold);
}

.header-cta { flex: none; }

.menu-toggle {
    display: none; margin-inline-start: auto; width: 48px; height: 48px; border-radius: 12px;
    border: 1px solid var(--line-strong); background: var(--card); place-items: center; cursor: pointer;
}
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

.mobile-menu {
    position: fixed; inset-inline: 0; bottom: 0; top: 126px; z-index: 49;
    background: var(--paper); border-top: 1px solid var(--line);
    padding: 12px var(--gutter) 32px; overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__nav { display: grid; }
.mobile-menu__nav a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 4px; border-bottom: 1px solid var(--line);
    font-family: var(--f-display); font-size: 22px; font-weight: 600;
}
.mobile-menu__nav a[aria-current="page"] { color: var(--teal); }
.mobile-menu__nav .icon { color: var(--ink-3); width: 18px; height: 18px; }
.mobile-menu__actions { display: grid; gap: 10px; margin-top: 24px; }
.mobile-menu__motto { font-family: var(--f-hand); font-size: 26px; color: var(--teal); text-align: center; margin: 28px 0 0; }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); position: relative; }
.section--paper { background: var(--paper-2); }

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-title { font-size: clamp(30px, 3.5vw, 44px); line-height: 1.28; }
.section-lead { margin: 16px 0 0; font-size: 18px; color: var(--ink-2); max-width: 62ch; }

.section-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 40px; }
.section-row .section-head { margin-bottom: 0; }

/* ---------- Accroche (hero) ---------- */

/* ---------- Bannière pleine largeur (accueil, sous le menu) ---------- */

.banner { position: relative; overflow: hidden; background: var(--teal-deep); }
.banner__img { display: block; width: 100%; height: auto; min-height: 300px; max-height: 620px; object-fit: cover; }
.banner__overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; padding-block: clamp(20px, 4vw, 48px); }
.banner--text .banner__overlay { background: linear-gradient(to top, rgba(4, 46, 51, .82) 0%, rgba(4, 46, 51, .35) 45%, rgba(4, 46, 51, 0) 75%); }
.banner__content { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.banner__title { margin: 0; color: #fff; font-size: clamp(26px, 3.6vw, 46px); font-weight: 700; line-height: 1.3; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.banner__text { margin: 0 0 8px; max-width: 38em; color: #e3f0ee; font-size: clamp(16px, 1.4vw, 19px); }
.banner__btn { box-shadow: 0 10px 28px rgba(4, 46, 51, .35); }

.hero { position: relative; overflow: hidden; padding: clamp(36px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); }
.hero__arc {
    position: absolute; z-index: 0; width: min(58vw, 760px); height: auto;
    inset-inline-end: -9vw; top: -8%; color: var(--gold-200);
}
.hero__grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__title { font-size: clamp(42px, 6vw, 76px); line-height: 1.15; margin: 22px 0 24px; letter-spacing: -.01em; }
.hero__line { display: block; }
.hero__hand {
    position: relative; display: inline-block; margin-top: .06em;
    font-family: var(--f-hand); font-weight: 700; font-size: 1.16em; line-height: 1.25; color: var(--teal);
}
.hero__underline { position: absolute; inset-inline: -2%; bottom: -.12em; width: 104%; height: .3em; color: var(--gold); }
.hero__lead { font-size: clamp(17px, 1.45vw, 19.5px); color: var(--ink-2); max-width: 35em; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__facts {
    list-style: none; margin: 44px 0 0; padding: 22px 0 0;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
    border-top: 1px solid var(--line); max-width: 560px;
}
.hero__facts li { display: flex; flex-direction: column; gap: 2px; padding-inline-end: 16px; border-inline-end: 1px solid var(--line); }
.hero__facts li:last-child { border-inline-end: 0; padding-inline-end: 0; }
.hero__facts strong { font-size: 32px; font-weight: 700; line-height: 1.1; color: var(--teal-deep); }
.hero__facts span { font-size: 14px; line-height: 1.55; color: var(--ink-3); }

.mosaic {
    position: relative; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr;
    gap: 12px; aspect-ratio: 3 / 2;
}
.mosaic figure { position: relative; margin: 0; overflow: hidden; border-radius: 3px; background: var(--paper-3); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic__big { grid-row: 1 / span 2; box-shadow: var(--shadow); }
.mosaic__big img { object-position: 50% 30%; }
.mosaic__tile { display: grid; place-items: center; background: var(--teal); border-radius: 3px; }
.mosaic__tile img { width: 62%; height: auto; }
.mosaic figcaption {
    position: absolute; inset-inline-start: 12px; bottom: 12px;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px; background: rgba(251, 248, 242, .95);
    font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--ink);
}
.mosaic figcaption::before {
    content: ""; width: 14px; height: 8px; border-radius: 1px; flex: none;
    background: linear-gradient(to left, #c1272d 0 55%, #006233 55% 100%);
}

/* ---------- Vision ---------- */

.pillars__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px 56px; align-items: end; margin-bottom: 56px; }
.pillars__intro .section-head { margin-bottom: 0; }
.pillars__quote { margin: 0; padding-inline-start: 24px; border-inline-start: 3px solid var(--gold); }
.pillars__quote p { margin: 0 0 8px; font-size: 20px; line-height: 1.85; font-weight: 500; color: var(--ink); }
.pillars__quote footer { font-size: 14px; color: var(--ink-3); }

.pillars__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pillar { position: relative; padding: 40px 28px 8px; border-inline-start: 1px solid var(--line); }
.pillar:first-child { border-inline-start: 0; padding-inline-start: 0; }
.pillar__num {
    position: absolute; top: -13px; inset-inline-start: 22px; padding-inline: 6px; background: var(--paper);
    font-family: var(--f-display); font-size: 15px; font-weight: 700; letter-spacing: .08em; color: var(--teal); line-height: 26px;
}
.pillar:first-child .pillar__num { inset-inline-start: 0; padding-inline-start: 0; }
.pillar__icon { width: 42px; height: 42px; color: var(--teal); margin-bottom: 18px; stroke-width: 1.5; }
.pillar h3 { font-size: 24px; margin-bottom: 10px; }
.pillar p { margin: 0; color: var(--ink-2); }
.pillars__motto { margin: 64px 0 0; text-align: center; font-family: var(--f-hand); font-size: clamp(26px, 3vw, 38px); line-height: 1.5; color: var(--teal); }

/* ---------- Parcours des cycles ---------- */

.cycles-path { position: relative; list-style: none; margin: 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cycles-path::before { content: ""; position: absolute; top: 22px; inset-inline: 48px; border-top: 2px dashed var(--line-strong); }

.cycle-card {
    --c: var(--teal); --c-ink: #fff; --c-icon: var(--teal);
    position: relative; display: flex; flex-direction: column;
    padding: 42px 22px 22px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--card); box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.cycle-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cycle-card::before { content: ""; position: absolute; inset-inline: -1px; top: -1px; height: 5px; background: var(--c); border-radius: var(--radius) var(--radius) 0 0; }
.cycle-card--gold { --c: var(--gold); --c-ink: var(--teal-900); --c-icon: var(--gold-600); }
.cycle-card--sky { --c: var(--sky); --c-icon: var(--sky-600); }
.cycle-card--teal { --c: var(--teal); }
.cycle-card--ink { --c: var(--teal-deep); --c-icon: var(--teal-deep); }

.cycle-card__tab {
    position: absolute; top: 0; inset-inline-start: 18px; transform: translateY(-50%);
    display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px; padding-inline-end: 14px;
    border-radius: 999px; background: var(--c); color: var(--c-ink); font-size: 14px; font-weight: 600; line-height: 1.5;
}
.cycle-card__num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .28); font-size: 12px; font-weight: 700; }
.cycle-card__icon { width: 36px; height: 36px; color: var(--c-icon); margin-bottom: 12px; stroke-width: 1.5; }
.cycle-card__title { font-size: 21px; }
.cycle-card__meta { margin: 4px 0 12px; font-size: 14px; color: var(--ink-3); }
.cycle-card__summary { font-size: 15.5px; line-height: 1.8; color: var(--ink-2); }
.cycle-card .ticks { margin: 0 0 18px; gap: 8px; font-size: 14.5px; }
.cycle-card .ticks .icon { color: var(--c-icon); }
.cycle-card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 15px; font-weight: 600; color: var(--teal); }
.cycle-card__link .icon { width: 17px; height: 17px; transition: transform .2s ease; }
.cycle-card__link:hover .icon { transform: translateX(-3px); }

/* ---------- Résultats : relevé de notes ---------- */

.results { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.results__text .section-head { margin-bottom: 20px; }
.results__motto { margin: 0 0 28px; font-family: var(--f-hand); font-size: 30px; color: var(--teal); }

.report {
    position: relative; margin: 0; padding: 30px 32px 24px;
    background: #fffefa; border-radius: 4px; transform: rotate(-.5deg);
    box-shadow: 0 0 0 1px rgba(16, 41, 44, .05), 0 1px 0 var(--line), 0 32px 60px -34px rgba(16, 41, 44, .42);
}
.report::before {
    content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 20px;
    border-inline-start: 1.5px solid rgba(192, 57, 43, .38);
}
.report__tape {
    position: absolute; top: -13px; inset-inline-end: 24%; width: 116px; height: 28px;
    background: rgba(242, 217, 162, .78); transform: rotate(-4deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
}
.report__head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
    margin-inline-start: 16px; padding-bottom: 14px; border-bottom: 3px double var(--teal-200);
}
.report__school { margin: 0 0 2px; font-size: 13px; color: var(--ink-3); }
.report__title { font-size: 21px; color: var(--teal-deep); }
.report__logo { width: 48px; flex: none; }

.report__table { width: calc(100% - 16px); margin-inline-start: 16px; border-collapse: collapse; font-size: 15px; }
.report__table thead th { padding: 12px 8px 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); text-align: start; }
.report__table tbody tr { border-bottom: 1px solid rgba(14, 107, 114, .15); }
.report__table th[scope="row"] { padding: 12px 8px; text-align: start; font-weight: 400; }
.report__field { display: block; font-weight: 600; line-height: 1.5; color: var(--ink); }
.report__level { display: block; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.report__value { padding: 12px 8px; white-space: nowrap; font-size: 24px; font-weight: 700; color: var(--teal-deep); }
.report__value small { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.report__remark { padding: 12px 8px; font-family: var(--f-hand); font-size: 21px; line-height: 1.35; color: var(--red-ink); }

.report__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 12px 0 0; margin-inline-start: 16px; }
.report__note {
    margin: 0; font-family: var(--f-hand); font-size: 24px; color: var(--red-ink);
    text-decoration: underline wavy rgba(192, 57, 43, .45); text-underline-offset: 10px; text-decoration-thickness: 1.5px;
}
.report__stamp { width: 104px; height: 104px; flex: none; color: var(--teal); opacity: .8; transform: rotate(-14deg); }

/* ---------- Publications ---------- */

.news { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: start; }

.post-card { position: relative; }
.post-card__media { display: block; overflow: hidden; border-radius: 6px; background: var(--paper-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .5s ease; }
.post-card:hover .post-card__media img { transform: scale(1.035); }
.post-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: var(--teal-50); }
.post-card__placeholder .brand-mark { width: 30%; max-width: 72px; height: auto; color: var(--teal-200); }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 8px; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }
.cat { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink-2); }
.cat::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--cat, var(--teal)); }
.cat--activites { --cat: var(--teal); }
.cat--annonces { --cat: var(--sky); }
.cat--resultats { --cat: var(--gold); }

.post-card__title { font-family: var(--f-body); font-size: 19px; font-weight: 700; line-height: 1.55; }
.post-card__title a { transition: color .15s ease; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card:hover .post-card__title a { color: var(--teal); }
.post-card__summary {
    margin: 8px 0 0; font-size: 15.5px; line-height: 1.8; color: var(--ink-2);
    display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.post-card--card .post-card__media { aspect-ratio: 4 / 3; }
.post-card--card .post-card__body { padding-top: 16px; }

.post-card--feature .post-card__media { aspect-ratio: 16 / 11; }
.post-card--feature .post-card__body { padding-top: 20px; }
.post-card--feature .post-card__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(23px, 2.3vw, 30px); line-height: 1.45; }

.post-card--row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 18px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.post-card--row:first-child { padding-top: 0; }
.post-card--row:last-child { border-bottom: 0; }
.post-card--row .post-card__media { aspect-ratio: 1; }
.post-card--row .post-card__title {
    font-size: 17px; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Appel à l'inscription ---------- */

.cta-section { padding-top: 0; }
.section--paper + .cta-section, .page-head + .cta-section { padding-top: var(--section); }
.cta {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center;
    padding: clamp(28px, 5vw, 64px); border-radius: 22px; background: var(--teal); color: #fff;
}
.cta__arc { position: absolute; z-index: -1; width: 440px; height: auto; inset-inline-end: -110px; bottom: -150px; color: rgba(255, 255, 255, .08); }
.cta__title { color: #fff; font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 14px; }
.cta__lead { margin: 0; color: #d4eae7; font-size: 18px; max-width: 34em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cta__steps li { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 14px; background: rgba(4, 46, 51, .32); border: 1px solid rgba(255, 255, 255, .12); }
.cta__step-num { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--teal-900); font-weight: 700; line-height: 1; }
.cta__steps strong { display: block; font-size: 17px; line-height: 1.5; }
.cta__steps p { margin: 2px 0 0; font-size: 15px; line-height: 1.7; color: #cde3e0; }

/* ---------- Visite / contact ---------- */

.cta-section + .visit { padding-top: 0; }
.visit__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.visit-card { display: flex; flex-direction: column; align-items: flex-start; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.visit-card__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 12px; background: var(--teal-50); color: var(--teal); }
.visit-card__icon .icon { width: 24px; height: 24px; }
.visit-card h3 { margin-bottom: 8px; font-family: var(--f-body); font-size: 18px; font-weight: 700; }
.visit-card p { margin: 0 0 14px; font-size: 15.5px; color: var(--ink-2); }
.visit-card__phones { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 19px; font-weight: 600; }
.visit-card__phones li { display: flex; align-items: center; gap: 10px; }
.visit-card__phones a:hover { color: var(--teal); }
.visit-card__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.visit__map { margin-top: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.visit__map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Pied de page ---------- */

.site-footer { padding-top: 64px; background: var(--teal-900); color: #b5cfcc; font-size: 15.5px; }
.site-footer__grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.35fr; gap: 40px; padding-bottom: 48px; }
.site-footer__brand img { width: 118px; margin-bottom: 18px; }
.site-footer__brand p { margin: 0; line-height: 1.8; }
.site-footer__motto { margin-bottom: 10px !important; font-family: var(--f-hand); font-size: 27px; color: #fff; }
.site-footer__title { margin-bottom: 16px; font-family: var(--f-body); font-size: 15px; font-weight: 700; color: #fff; }
.site-footer__links, .site-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { transition: color .15s ease; }
.site-footer a:hover { color: #fff; }
.site-footer__contact li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; }
.site-footer__contact .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--gold); }
.site-footer .tag { background: rgba(255, 255, 255, .1); color: #e1efed; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: #86aaa6; }
.site-footer__bottom p { margin: 0; }

/* ---------- Barre d'actions mobile ---------- */

.mobile-bar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
    display: none; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 248, 242, .98); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 26px -20px rgba(16, 41, 44, .5);
}
.mobile-bar__btn {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 48px; border-radius: 12px; border: 1px solid var(--line-strong);
    background: var(--card); font-size: 15px; font-weight: 600;
}
.mobile-bar__btn .icon { width: 19px; height: 19px; color: var(--teal); }
.mobile-bar__btn--primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.mobile-bar__btn--primary .icon { color: #fff; }

/* ---------- En-tête des pages intérieures ---------- */

.page-head { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 76px) 0 clamp(32px, 4vw, 52px); background: var(--paper-2); border-bottom: 1px solid var(--line); }
.page-head__arc { position: absolute; width: 400px; height: auto; inset-inline-end: -90px; top: -150px; color: var(--gold-200); }
.page-head .container { position: relative; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 14px; color: var(--ink-3); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb .icon { width: 14px; height: 14px; }
.page-title { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.25; }
.page-lead { margin: 16px 0 0; font-size: 18.5px; color: var(--ink-2); max-width: 62ch; }

/* ---------- Liste des publications ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; }
.filters a {
    padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card);
    font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--ink-2); transition: border-color .15s, color .15s;
}
.filters a:hover { border-color: var(--teal); color: var(--teal); }
.filters a[aria-current="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }

.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }

.empty-state { padding: 56px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 16px; color: var(--ink-2); }
.empty-state .brand-mark { width: 54px; height: auto; color: var(--teal-200); margin: 0 auto 16px; display: block; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 56px; }
.pagination a, .pagination span {
    display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
    border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-weight: 600;
}
.pagination a:hover { border-color: var(--teal); color: var(--teal); }
.pagination [aria-current="page"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.pagination .is-disabled { opacity: .4; }
.pagination .icon { width: 18px; height: 18px; }

/* ---------- Article ---------- */

.section--article { padding-top: 48px; }
.section--article .article { margin-top: 36px; }
.article-head { max-width: 880px; }
.article-title { font-size: clamp(30px, 4vw, 46px); line-height: 1.4; }
.article-head .post-meta { margin-bottom: 16px; font-size: 14.5px; }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(32px, 4vw, 60px); align-items: start; }
.article__cover { display: flex; justify-content: center; margin: 0 0 36px; overflow: hidden; border-radius: 8px; background: var(--paper-2); }
.article__cover img { width: auto; max-width: 100%; max-height: 82vh; }
.prose { font-size: 18.5px; line-height: 2.05; color: var(--ink); }
.prose p { margin: 0 0 1.25em; }
.article__video { margin: 36px 0; overflow: hidden; border-radius: 8px; background: #000; aspect-ratio: 16 / 9; }
.article__video iframe, .article__video video { display: block; width: 100%; height: 100%; border: 0; }

.gallery { margin-top: 44px; }
.gallery__title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--f-body); font-size: 18px; font-weight: 700; }
.gallery__title .icon { color: var(--teal); }
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery__item { position: relative; padding: 0; border: 0; overflow: hidden; aspect-ratio: 1; border-radius: 6px; background: var(--paper-2); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.05); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.share__label { margin: 0; margin-inline-end: 6px; font-weight: 600; }
.share__btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
    border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card);
    font-size: 15px; font-weight: 500; cursor: pointer; transition: border-color .15s, color .15s;
}
.share__btn:hover { border-color: var(--teal); color: var(--teal); }
.share__btn .icon { width: 18px; height: 18px; }

.aside-card { position: sticky; top: 108px; padding: 28px; border-radius: 16px; background: var(--teal-deep); color: #d2e6e3; overflow: hidden; }
.aside-card .kicker { color: var(--gold-200); }
.aside-card .kicker .brand-mark { color: #fff; }
.aside-card h2 { margin-bottom: 10px; font-size: 25px; color: #fff; }
.aside-card p { font-size: 15.5px; line-height: 1.8; }
.aside-card .btn { width: 100%; margin-top: 8px; }

.related { margin-top: 80px; padding-top: 56px; border-top: 1px solid var(--line); }

/* Visionneuse photos */
.lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(3, 22, 24, .93); }
.lightbox__inner { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 64px 72px; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 128px); object-fit: contain; border-radius: 4px; }
.lightbox__btn {
    position: absolute; display: grid; place-items: center; width: 50px; height: 50px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background-color .15s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .22); }
.lightbox__btn .icon { width: 24px; height: 24px; }
.lightbox__close { top: 14px; inset-inline-end: 14px; }
.lightbox__prev { top: 50%; inset-inline-start: 14px; transform: translateY(-50%); }
.lightbox__next { top: 50%; inset-inline-end: 14px; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-size: 14px; color: #c5dbd8; }

/* ---------- Formulaire d'inscription ---------- */

.form-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: start; }
.form-card { padding: clamp(20px, 3.2vw, 40px); border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-sm); }

.form-alert {
    display: flex; gap: 12px; align-items: flex-start; margin-bottom: 28px; padding: 14px 16px;
    border-radius: 12px; background: #fbecea; color: #8a271d; font-size: 15.5px; line-height: 1.7;
}
.form-alert .icon { margin-top: 3px; }

.fieldset { margin: 0 0 34px; padding: 0; border: 0; min-width: 0; }
.fieldset legend { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 20px; padding: 0; font-family: var(--f-display); font-size: 22px; font-weight: 600; line-height: 1.4; }
.fieldset legend .step { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #fff; font-family: var(--f-body); font-size: 15px; font-weight: 700; }
.fieldset legend::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; min-width: 0; }
.field > label, .field__label { font-size: 15.5px; font-weight: 600; line-height: 1.5; }
.field .req { color: var(--red-ink); margin-inline-start: 2px; }
.field .opt { font-weight: 400; font-size: 13.5px; color: var(--ink-3); margin-inline-start: 4px; }
.field__hint { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.field__error { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--red-ink); }
.field__error .icon { width: 17px; height: 17px; margin-top: 3px; }

.input {
    width: 100%; min-height: 54px; padding: 12px 16px;
    border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff;
    font-family: inherit; font-size: 17px; color: var(--ink); line-height: 1.5;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: #9aa8a9; }
.input:hover { border-color: #bfb39b; }
.input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14, 107, 114, .14); }
textarea.input { min-height: 120px; resize: vertical; }
select.input {
    appearance: none; -webkit-appearance: none; padding-left: 44px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362777a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: left 16px center; background-size: 18px;
}
.input[dir="ltr"] { text-align: right; }
.field.has-error .input { border-color: var(--red-ink); background: #fffafa; }
.field--spaced { margin-top: 16px; }
.field[hidden] { display: none; }
.aside-box .btn { margin-top: 16px; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
    display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px;
    border: 1.5px solid var(--line-strong); border-radius: 999px; background: #fff;
    font-size: 15.5px; line-height: 1.3; transition: border-color .15s, background-color .15s;
}
.choice input:checked + span { border-color: var(--teal); background: var(--teal-50); color: var(--teal-deep); font-weight: 600; }
.choice input:checked + span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.choice input:disabled + span { opacity: .45; text-decoration: line-through; cursor: not-allowed; }

.check-line { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 15.5px; line-height: 1.7; }
.check-line input { flex: none; width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--teal); cursor: pointer; }

.consent { margin: 8px 0 26px; padding: 16px 18px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.consent.has-error { border-color: var(--red-ink); }
.consent .field__error { margin-top: 8px; }

.hp-field { position: absolute !important; inset-inline-start: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-submit p { margin: 0; font-size: 14px; color: var(--ink-3); }

.form-aside { display: grid; gap: 18px; position: sticky; top: 108px; }
.aside-box { padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.aside-box h2 { margin-bottom: 14px; font-family: var(--f-body); font-size: 18px; font-weight: 700; }
.aside-box--teal { background: var(--teal-deep); border-color: var(--teal-deep); color: #d2e6e3; }
.aside-box--teal h2 { color: #fff; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps-list li { position: relative; padding-inline-start: 44px; font-size: 15px; line-height: 1.7; counter-increment: step; }
.steps-list li::before {
    content: counter(step); position: absolute; inset-inline-start: 0; top: 0;
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    background: var(--gold); color: var(--teal-900); font-weight: 700; font-size: 14px;
}
.steps-list strong { display: block; color: #fff; }
.aside-phones { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aside-phones a { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; }
.aside-phones a:hover { color: var(--teal); }
.aside-phones .icon { color: var(--teal); }
.aside-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aside-results li { display: flex; align-items: baseline; gap: 12px; font-size: 15px; line-height: 1.6; }
.aside-results strong { flex: none; min-width: 64px; font-size: 20px; color: var(--teal-deep); }

/* ---------- Remerciement ---------- */

.thanks { max-width: 760px; margin: 0 auto; text-align: center; }
.thanks__icon { display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 26px; border-radius: 50%; background: var(--teal); color: #fff; box-shadow: 0 0 0 12px var(--teal-50); }
.thanks__icon .icon { width: 44px; height: 44px; stroke-width: 2.2; }
.thanks h1 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 14px; }
.thanks__lead { font-size: 19px; color: var(--ink-2); }
.ticket { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; margin: 18px 0 8px; padding: 16px 30px; border: 2px dashed var(--teal-200); border-radius: 14px; background: var(--card); }
.ticket span { font-size: 14px; color: var(--ink-3); }
.ticket strong { font-size: 30px; letter-spacing: .08em; color: var(--teal-deep); line-height: 1.3; }
.summary { margin: 36px 0; padding: 26px 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); text-align: start; }
.summary h2 { margin-bottom: 14px; font-family: var(--f-body); font-size: 18px; font-weight: 700; }
.summary dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; margin: 0; }
.summary dt { color: var(--ink-3); }
.summary dd { margin: 0; font-weight: 600; }
.thanks__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Page « l'établissement » ---------- */

.story { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.story__text p { font-size: 18px; color: var(--ink-2); }
.story__text p:first-of-type { font-size: 20px; color: var(--ink); }
.story__photos { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: end; }
.story__photos figure { margin: 0; overflow: hidden; border-radius: 4px; background: var(--paper-3); }
.story__photos img { width: 100%; height: 100%; object-fit: cover; }
.story__photos figure:first-child { aspect-ratio: 4 / 5; }
.story__photos figure:last-child { aspect-ratio: 1; margin-bottom: 40px; }


.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 104px; border-inline-start: 2px solid var(--line-strong); }
.timeline li { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 34px; padding-bottom: 32px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: ""; position: absolute; top: 9px; inset-inline-start: 98px; width: 14px; height: 14px;
    border-radius: 3px; background: var(--teal); box-shadow: 0 0 0 5px var(--paper);
}
.timeline li:last-child::before { background: var(--gold); }
.timeline__year { font-family: var(--f-display); font-size: 17px; font-weight: 700; color: var(--teal-deep); line-height: 1.8; text-align: end; }
.timeline h3 { font-family: var(--f-body); font-size: 18px; font-weight: 700; margin-bottom: 4px; line-height: 1.8; }
.timeline p { margin: 0; color: var(--ink-2); }

.photo-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 12px; }
.photo-wall a { position: relative; overflow: hidden; border-radius: 4px; background: var(--paper-3); }
.photo-wall--feature a:nth-child(1) { grid-row: span 2; }
.photo-wall img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.photo-wall a:hover img { transform: scale(1.04); }
.photo-wall span {
    position: absolute; inset-inline: 0; bottom: 0; padding: 30px 14px 12px;
    background: linear-gradient(to top, rgba(4, 30, 33, .8), transparent); color: #fff; font-size: 14.5px; font-weight: 600; line-height: 1.5;
}

/* ---------- Page « cycles » ---------- */

.cycle-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding-block: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.cycle-block:first-child { padding-top: 0; }
.cycle-block:last-child { border-bottom: 0; }
.cycle-block__tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 4px 14px; border-radius: 999px; background: var(--c, var(--teal)); color: var(--c-ink, #fff); font-size: 14px; font-weight: 600; }
.cycle-block--gold { --c: var(--gold); --c-ink: var(--teal-900); }
.cycle-block--sky { --c: var(--sky); }
.cycle-block--teal { --c: var(--teal); }
.cycle-block--ink { --c: var(--teal-deep); }
.cycle-block h2 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 12px; }
.cycle-block__summary { font-size: 18px; color: var(--ink-2); }
.cycle-block .ticks { margin-top: 18px; }
.levels { margin: 0; padding: 8px 0; list-style: none; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.levels li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.levels li:last-child { border-bottom: 0; }
.levels__name { font-weight: 600; }
.levels a { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--teal); white-space: nowrap; }
.levels a .icon { width: 16px; height: 16px; }

/* ---------- Pages d'erreur ---------- */

.error-page { padding: clamp(64px, 10vw, 128px) 0; text-align: center; }
.error-page__code { font-family: var(--f-hand); font-size: clamp(80px, 14vw, 150px); line-height: 1; color: var(--teal); }
.error-page h1 { font-size: clamp(28px, 3.6vw, 40px); margin: 10px 0 12px; }
.error-page p { color: var(--ink-2); font-size: 18px; }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

.maintenance { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; box-sizing: border-box; }
.maintenance__logo { width: min(240px, 70vw); margin: 0 auto 28px; }
.maintenance__message { max-width: 620px; margin: 0 auto; white-space: pre-line; }
.maintenance__follow { margin-top: 24px; font-size: 16px !important; }
.maintenance__follow a { color: var(--teal); font-weight: 600; text-decoration: underline; }

.maintenance-notice { margin: 0; padding: 8px 16px; background: #e7b45a; color: #3a2a06; font-size: 14.5px; text-align: center; }
.maintenance-notice a { font-weight: 700; text-decoration: underline; }

/* ---------- Apparition au défilement (si JS) ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
    .nav a { padding-inline: 10px; font-size: 15.5px; }
    .nav a[aria-current="page"]::after { inset-inline: 10px; }
    .cycles-path { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
    .cycles-path::before { display: none; }
}

@media (max-width: 1060px) {
    .nav, .header-cta { display: none; }
    .menu-toggle { display: grid; }
    .hero__grid { grid-template-columns: 1fr; }
    .hero__media { max-width: 640px; }
    .hero__arc { width: 92vw; inset-inline-end: -40vw; top: auto; bottom: -12%; }
    .results, .news, .cta, .story, .article, .form-layout { grid-template-columns: minmax(0, 1fr); }
    .pillars__intro { grid-template-columns: minmax(0, 1fr); }
    .aside-card, .form-aside { position: static; }
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report { transform: none; }
    .cycle-block { grid-template-columns: minmax(0, 1fr); }
    .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .topbar__contact { display: none; }
    .visit__cards { grid-template-columns: minmax(0, 1fr); }
    .photo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
}

@media (max-width: 760px) {
    body { font-size: 16.5px; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    .mobile-bar { display: grid; }
    .site-header__inner { min-height: 72px; gap: 12px; }
    .brand__logo { width: 48px; }
    .brand__name { font-size: 18.5px; }
    .brand__sub { font-size: 12px; }
    .mobile-menu { top: 114px; }
    .pillars__list { grid-template-columns: minmax(0, 1fr); border-top: 0; }
    .pillar, .pillar:first-child { padding: 28px 0 24px; border-inline-start: 0; border-top: 1px solid var(--line); }
    .pillar__num, .pillar:first-child .pillar__num { inset-inline-start: 0; padding-inline-start: 0; padding-inline-end: 8px; }
    .pillars__motto { margin-top: 36px; }
    .grid-2 { grid-template-columns: minmax(0, 1fr); }
    .section-row { align-items: flex-start; flex-direction: column; }
    .timeline::before { inset-inline-start: 7px; }
    .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; padding-inline-start: 34px; }
    .timeline li::before { inset-inline-start: 0; }
    .timeline__year { text-align: start; }
    .summary dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .summary dd { margin-bottom: 10px; }
}

@media (max-width: 640px) {
    .cycles-path { grid-template-columns: minmax(0, 1fr); }
    .posts-grid { grid-template-columns: minmax(0, 1fr); }
    .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .hero__facts { gap: 12px; }
    .hero__facts li { padding-inline-end: 10px; }
    .hero__facts strong { font-size: 26px; }
    .hero__facts span { font-size: 13px; }
    .hero__actions .btn { flex: 1 1 100%; }
    .banner__content { align-items: stretch; }
    .post-card--row { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }

    .report { padding: 24px 18px 20px; }
    .report::before { inset-inline-start: 10px; }
    .report__head, .report__foot { margin-inline-start: 8px; }
    .report__table { width: calc(100% - 8px); margin-inline-start: 8px; }
    .report__table thead { display: none; }
    .report__table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "field field" "value remark"; align-items: center; padding: 12px 0; }
    .report__table th[scope="row"] { grid-area: field; padding: 0 0 4px; }
    .report__value { grid-area: value; padding: 0; font-size: 22px; }
    .report__remark { grid-area: remark; padding: 0; text-align: end; font-size: 19px; }
    .report__stamp { width: 84px; height: 84px; }
    .report__note { font-size: 20px; }

    .lightbox__inner { padding: 64px 12px; }
    .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; }
}
