/* Feuille de style principale. Couleurs, polices et tailles : voir tokens.css */
@font-face { font-family: Lato; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/lato-400.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/lato-700.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/cormorant-600.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/cormorant-700.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: italic; font-display: swap; src: url(/fonts/cormorant-600i.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 700; font-style: italic; font-display: swap; src: url(/fonts/cormorant-700i.woff2) format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-variant-numeric: lining-nums; font: 400 var(--text-base)/var(--leading) var(--font-body); color: var(--color-ink); background: var(--color-cream); }
h1, h2, h3, .when, .doc-list a { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-navy); line-height: 1.15; font-weight: 700; }
/* Titre contenant des chiffres : Lato (la police des titres a des chiffres de texte peu lisibles) */
.num { font-family: var(--font-body); letter-spacing: -.01em; }
h1 { font-size: var(--text-2xl); margin: 0 0 1rem; }
h2 { font-size: var(--text-xl); margin: 0 0 1rem; }
h3 { font-size: var(--text-lg); margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
a { color: var(--color-blue); text-underline-offset: .2em; text-decoration-thickness: .1em; }
a:visited { color: var(--color-link-visited); }
a:hover { color: var(--color-navy); }
.prose a, .card p a { font-weight: 700; }
img, picture { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 4px solid var(--color-focus); outline-offset: 3px; }
.surface-blue :focus-visible, .top :focus-visible, .hero :focus-visible, .page-title :focus-visible, .foot :focus-visible { outline-color: var(--color-focus-dark); }
main:focus { outline: none; }

.skip { position: absolute; left: -999px; top: 0; background: var(--color-gold); color: var(--color-navy); padding: 1rem; z-index: 20; font-weight: 700; }
.skip:focus { left: 0; }
.container { width: min(var(--container), 100% - 2rem); margin-inline: auto; }
.section { padding-block: 2.5rem; }
main { padding-bottom: 3rem; }
main:has(> .band-soft:last-child) { padding-bottom: 0; }
.center { text-align: center; }
.todo { background: #fff; border: 2px dashed var(--color-gold-line); padding: 1.25rem; text-align: center; color: var(--color-muted); }

/* Surfaces bleu du logo (#0077C0). Le texte BLANC dessus n'atteint que 4,77:1 : il doit donc TOUJOURS être grand et en gras
   (>= 18,7 px gras, seuil WCAG « grand texte »). Toute nouvelle zone bleue doit porter la classe .surface-blue :
   la règle ci-dessous impose gras et taille minimale à tout son contenu, y compris les contenus ajoutés plus tard. */
.surface-blue, .top, .hero, .page-title, .foot { background-color: var(--color-logo-blue); color: var(--color-white); font-weight: 700; }
:is(.surface-blue, .top, .hero, .page-title, .foot) :where(p, a, li, span, small, label, b, strong, em, h1, h2, h3) { font-weight: 700; }
:is(.surface-blue, .top, .hero, .page-title, .foot) :where(p, a, li, span, small, label, b, strong, em) { font-size: max(1em, var(--text-on-blue-min)); }

/* En-tête et navigation */
.top { border-bottom: 4px solid var(--color-gold); position: sticky; top: 0; z-index: 10; }
.top-in { width: auto; padding-inline: 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding-block: .5rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--color-white); text-decoration: none; font-family: var(--font-heading); font-size: 1.3rem; line-height: 1.1; min-height: var(--tap-min); }
.brand b { display: block; font-size: 1.2rem; letter-spacing: .04em; text-transform: uppercase; font-family: var(--font-body); }
.brand-logo { width: 40px; height: auto; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.menu a { display: flex; align-items: center; min-height: var(--tap-min); padding: .5rem .65rem; color: var(--color-white); text-decoration: none; font-weight: 700; font-size: 1.2rem; border-radius: var(--radius); }
.menu a:hover { color: var(--color-navy); background: var(--color-white); }
.menu a[aria-current="page"] { color: var(--color-white); box-shadow: inset 0 -4px 0 var(--color-gold); }
.menu a.lock { border: 2px solid var(--color-white); color: var(--color-white); }
.menu-btn { display: none; min-height: var(--btn-min-height); padding: 0 1.25rem; font: 700 1.2rem var(--font-body); background: var(--color-gold); color: var(--color-navy); border: 0; border-radius: var(--radius); cursor: pointer; }
@media (max-width: 74.99rem) {
  .js .menu-btn { display: block; }
  .js .menu { display: none; width: 100%; }
  .js .menu.open { display: block; }
  .menu ul { flex-direction: column; padding-bottom: .75rem; }
  .menu a { font-size: 1.3rem; }
}
@media (min-width: 75rem) { .menu ul { gap: 0; } }

/* Boutons (grands) */
/* Style unique : contour marine de 3 px, fond transparent, majuscules ; au survol/focus clavier : plein marine, texte doré */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: var(--btn-min-height); padding: .75rem 1.75rem; font: 700 1.1rem/1.25 var(--font-body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border: 3px solid var(--color-navy); background: transparent; color: var(--color-navy); border-radius: var(--radius); cursor: pointer; text-align: center; }
.btn:hover { background: var(--color-navy); color: var(--color-gold); }
.btn--block { display: flex; width: 100%; }

/* Bandeau d'accueil */
.hero { text-align: center; padding: 3rem 1rem 3.5rem; }
.hero .eyebrow { margin: 0; letter-spacing: .2em; text-transform: uppercase; font-size: 1.3rem; }
.hero h1 { color: var(--color-white); margin-block: .5rem 1.75rem; font-size: clamp(2.9rem, 11vw, 4.5rem); }
.hero h1 span { display: block; font-style: italic; color: var(--color-white); }
.logos { display: flex; justify-content: center; align-items: flex-end; gap: 1.75rem; }
.logos img { height: auto; }
.page-title { padding: 2rem 1rem 2.25rem; text-align: center; }
.page-title h1 { color: var(--color-white); margin: 0; font-size: clamp(2.5rem, 8vw, 4rem); }
.page-title p { color: var(--color-white); margin: .5rem 0 0; font-size: 1.5rem; }

/* Titres de section avec filet */
.h-rule { text-align: center; }
.h-rule::after { content: ""; display: block; width: 4rem; height: 3px; background: var(--color-gold-line); margin: .6rem auto 0; }

/* Prochain rendez-vous */
.next { text-align: center; }
.next .label { font: 700 1.1rem var(--font-body); letter-spacing: .15em; text-transform: uppercase; color: var(--color-navy); margin: 0; }
.next .label::after { content: ""; display: block; width: 60px; height: 2px; background: var(--color-gold-line); margin: .6rem auto 0; }
.next .when { font: 700 clamp(1.6rem, 5.5vw, 2.25rem)/1.25 var(--font-body); color: var(--color-navy); margin: 1rem 0 0; }
.next .what { font: 600 italic 1.8rem var(--font-heading); margin: 0 0 1.25rem; color: var(--color-ink); }

/* Cartes et listes */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
/* Cartes de largeur fixe (une seule carte ne s'étire pas sur toute la ligne) */
.grid--fixed { grid-template-columns: repeat(auto-fill, minmax(16rem, 18rem)); justify-content: center; }
.card { background: var(--color-white); border-top: 4px solid var(--color-gold-line); padding: 1.25rem; box-shadow: 0 2px 10px rgb(11 42 74 / .1); }
.card h3 a { color: var(--color-navy); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card .meta { color: var(--color-muted); font-size: var(--text-small); margin: 0 0 .5rem; }
.doc-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.doc-list a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: var(--btn-min-height); padding: .9rem .5rem; border-bottom: 1px solid var(--color-line); color: var(--color-navy); text-decoration: none; font: 700 1.5rem/1.2 var(--font-heading); }
.doc-list a:hover { background: var(--color-white); }
.doc-list .tag { font: 700 1rem var(--font-body); color: var(--color-gold-text); white-space: nowrap; }
.band-soft { background: var(--color-sky-light); color: var(--color-ink); text-align: center; padding: 2.5rem 1rem; }
.band-soft h2 { color: var(--color-navy); }
.band-soft :focus-visible { outline-color: var(--color-focus); }
.band-soft a:not(.btn) { color: var(--color-navy); }
/* Vignette de photo sur l'accueil : rapport 4:3 (recadrage de l'aperçu uniquement) */
.thumb { display: block; margin-bottom: .75rem; }
.thumb img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); margin: 0; padding: 0; list-style: none; }
.gallery figure { margin: 0; background: #fff; }
.gallery figcaption { padding: .5rem .75rem; font-size: var(--text-small); }
.org { list-style: none; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.org li { background: var(--color-white); border-left: 4px solid var(--color-gold-line); padding: .9rem 1.1rem; }
.org strong { display: block; color: var(--color-gold-text); font-size: var(--text-small); text-transform: uppercase; letter-spacing: .06em; }

/* Documents */
.viewer { width: 100%; height: 75vh; min-height: 28rem; border: 2px solid var(--color-line); background: #fff; margin-bottom: 1rem; }
.prose { max-width: 42rem; }
.prose h2 { margin-top: 2rem; }
.toc { background: var(--color-white); border-left: 4px solid var(--color-gold-line); padding: 1rem 1.25rem; margin: 0 0 2rem; max-width: 42rem; }
.toc h2 { font-size: var(--text-lg); margin: 0 0 .5rem; }
.toc ol { margin: 0; padding-left: 1.4rem; }
.toc a { display: inline-block; padding: .3rem 0; }

/* Formulaires */
.field { margin-bottom: 1.25rem; max-width: 28rem; }
.field label { display: block; font-weight: 700; margin-bottom: .4rem; }
.field input { width: 100%; min-height: var(--btn-min-height); padding: .5rem 1rem; font: 400 1.25rem var(--font-body); border: 3px solid var(--color-navy); border-radius: var(--radius); background: #fff; color: var(--color-ink); }
.alert { background: #fff; border: 3px solid var(--color-focus); color: var(--color-ink); padding: 1rem 1.25rem; max-width: 28rem; margin-bottom: 1.25rem; font-weight: 700; }

.foot { text-align: center; padding: 2rem 0; margin-top: 0; font-size: 1.3rem; }
.foot a { color: var(--color-white); text-decoration: underline; text-decoration-thickness: .1em; }
.foot p { margin: .25rem 0; }

@media (prefers-reduced-motion: no-preference) { .btn, .menu a { transition: background-color .15s, color .15s; } }
@media print { .top, .foot, .menu-btn, .viewer { display: none; } }

/* Chiffres lisibles : Cormorant a des chiffres « de texte » (17 ressemble à ɪ7) ; on utilise ceux de Lato dans les titres */
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; unicode-range: U+0030-0039; src: url(/fonts/lato-700.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: italic; unicode-range: U+0030-0039; src: url(/fonts/lato-700.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 700; font-style: normal; unicode-range: U+0030-0039; src: url(/fonts/lato-700.woff2) format("woff2"); }
