/* Bonjour Varsovie : feuille de style de la page d'accueil.
   Concept : une vitrine éditoriale, claire et aérée ; le hero vidéo de Varsovie porte l'identité,
   le reste reste calme (ivoire, bleu nuit, un seul trait tricolore comme signature). */

:root {
  /* Palette de marque */
  --navy: #172B4D;
  --blue: #315BCE;
  --red: #E45450;
  --ivory: #F7F3EA;
  --gold: #D9B36C;

  /* Rôles (thème clair) */
  --bg: #F7F3EA;
  --bg-alt: #EFE9DC;
  --surface: #FFFFFF;
  --fg: #172B4D;
  --muted: #4F5D78;
  --line: rgba(23, 43, 77, .14);
  --link: #2A4FB8;
  --focus: #315BCE;
  --btn-bg: #172B4D;
  --btn-fg: #F7F3EA;
  --btn-line: rgba(23, 43, 77, .45);
  --band: #172B4D;
  --band-fg: #F7F3EA;
  --band-muted: rgba(247, 243, 234, .8);
  --header-solid: #172B4D;
  --top-band: #0F1B30;
  --todo-line: rgba(23, 43, 77, .4);

  /* Hero : toujours sombre, quel que soit le thème */
  --hero-fg: #F7F3EA;
  --hero-btn-bg: #F7F3EA;
  --hero-btn-fg: #172B4D;
  --scrim-a: rgba(9, 20, 41, .84);
  --scrim-b: rgba(9, 20, 41, .5);
  --scrim-c: rgba(9, 20, 41, .06);

  /* Typographie et rythme */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --section-y: clamp(3.5rem, 2.2rem + 5.5vw, 6.5rem);
  --gutter: clamp(20px, 4vw, 40px);
  --shadow: 0 1px 2px rgba(23, 43, 77, .06), 0 10px 28px rgba(23, 43, 77, .09);
  --header-h: 4.25rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1B30;
    --bg-alt: #0B1626;
    --surface: #16253F;
    --fg: #F1EEE6;
    --muted: #B4BED1;
    --line: rgba(241, 238, 230, .16);
    --link: #9DB4F5;
    --focus: #9DB4F5;
    --btn-bg: #F7F3EA;
    --btn-fg: #172B4D;
    --btn-line: rgba(241, 238, 230, .5);
    --band: #1B3158;
    --header-solid: #0F1B30;
    --todo-line: rgba(241, 238, 230, .45);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0F1B30;
  --bg-alt: #0B1626;
  --surface: #16253F;
  --fg: #F1EEE6;
  --muted: #B4BED1;
  --line: rgba(241, 238, 230, .16);
  --link: #9DB4F5;
  --focus: #9DB4F5;
  --btn-bg: #F7F3EA;
  --btn-fg: #172B4D;
  --btn-line: rgba(241, 238, 230, .5);
  --band: #1B3158;
  --header-solid: #0F1B30;
  --todo-line: rgba(241, 238, 230, .45);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .7rem 1rem; border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; text-decoration: none;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + .75rem); }

/* Gouttière latérale : toujours au moins 16 px, dégagée des barres système */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* Bande sous l'encoche des téléphones : même teinte que le haut du hero */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--top-band);
}

/* ---------- Titres ---------- */
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.55rem + 4.2vw, 4.5rem); line-height: 1.04; }
h2 { font-size: clamp(1.8rem, 1.25rem + 2vw, 2.7rem); line-height: 1.12; }
h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem); line-height: 1.6; }

/* Trait tricolore : signature reprise du logo, utilisée deux fois sur la page */
.trait {
  display: block; width: 3.6rem; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue) 0 33.33%, #FFFFFF 33.33% 66.66%, var(--red) 66.66% 100%);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3rem; padding: .8rem 1.3rem;
  border: 1px solid transparent; border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 .98rem/1.2 var(--font-body); text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn__arrow { width: 1rem; height: 1rem; flex: none; transition: transform .18s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--hero { background: var(--hero-btn-bg); color: var(--hero-btn-fg); }
.btn--hero:hover { background: #FFFFFF; }
.btn--hero-ghost { background: transparent; color: var(--hero-fg); border-color: rgba(247, 243, 234, .6); }
.btn--hero-ghost:hover { background: rgba(247, 243, 234, .14); border-color: var(--hero-fg); }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: env(safe-area-inset-top, 0px) 0 auto; z-index: 50;
  color: var(--hero-fg);
  background: linear-gradient(180deg, rgba(9, 20, 41, .55), rgba(9, 20, 41, 0));
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { background: var(--header-solid); box-shadow: 0 1px 0 rgba(247, 243, 234, .1); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }

/* Logo : fichier PNG blanc (l'en-tête est toujours sombre) ; hauteur fixée, largeur déduite des proportions */
.brand { display: inline-flex; text-decoration: none; min-width: 0; }
.brand__logo { display: block; flex: none; width: auto; max-width: none; height: clamp(2.6rem, 2.25rem + 1.1vw, 3.3rem); }
.brand__tag { font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; opacity: .82; }

.menu-btn {
  display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem; flex: none;
  border: 1px solid rgba(247, 243, 234, .4); border-radius: var(--radius);
  background: transparent; color: inherit; cursor: pointer;
}
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
  display: block; width: 1.3rem; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-btn__bars { position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -.42rem; }
.menu-btn__bars::after { top: .42rem; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(.42rem) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-.42rem) rotate(-45deg); }

/* Navigation mobile : panneau sous l'en-tête */
.nav {
  position: fixed; inset: calc(env(safe-area-inset-top, 0px) + var(--header-h)) 0 0 0;
  padding: 1.25rem max(var(--gutter), env(safe-area-inset-right, 0px)) 2rem max(var(--gutter), env(safe-area-inset-left, 0px));
  background: var(--header-solid); color: var(--hero-fg);
  overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-.5rem);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav__list { display: grid; gap: .25rem; }
.nav__list a {
  display: block; padding: .95rem 0; border-bottom: 1px solid rgba(247, 243, 234, .14);
  font-size: 1.15rem; font-weight: 600; text-decoration: none;
}

@media (min-width: 62rem) {
  .menu-btn { display: none; }
  .nav {
    position: static; inset: auto; padding: 0; background: none; overflow: visible;
    visibility: visible; opacity: 1; transform: none; transition: none;
  }
  .nav__list { display: flex; gap: clamp(1.25rem, 2.4vw, 2.2rem); }
  .nav__list a { padding: .5rem 0; border: 0; font-size: .95rem; font-weight: 500; opacity: .88; transition: opacity .15s ease; }
  .nav__list a:hover { opacity: 1; }
}

/* Sélecteur de langue FR / PL : toujours visible dans l'en-tête, y compris sur mobile (un visiteur polonais
   qui ne lit pas le français doit le trouver sans ouvrir le menu). La langue courante est pleine. */
.site-header__end { display: flex; align-items: center; gap: .75rem; flex: none; }
.lang {
  display: inline-flex; overflow: hidden; flex: none;
  border: 1px solid rgba(247, 243, 234, .4); border-radius: var(--radius);
  font-size: .8rem; font-weight: 700; letter-spacing: .06em;
}
.lang > * {
  display: grid; place-items: center; min-width: 2.5rem; height: 2.9rem; padding-inline: .35rem;
  color: inherit; text-decoration: none;
}
.lang__cur { background: var(--hero-btn-bg); color: var(--hero-btn-fg); }
.lang__alt:hover { background: rgba(247, 243, 234, .16); }
.lang a:focus-visible { outline-offset: -4px; }
@media (max-width: 23.99rem) {
  .site-header__end { gap: .5rem; }
  .lang > * { min-width: 2.2rem; }
}
@media (min-width: 62rem) {
  .site-header__end { gap: clamp(1.25rem, 2.4vw, 2.2rem); }
  .lang > * { height: 2.25rem; min-width: 2.4rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--hero-fg);
  display: flex; align-items: flex-end;
  min-height: clamp(34rem, 74svh, 46rem);
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(2.75rem, 6vw, 5rem);
  background: var(--top-band);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__poster, .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 66%;
}
@media (max-width: 47.99rem) { .hero__poster, .hero__video { object-position: 50% 50%; } }
.hero__video { opacity: 0; transition: opacity .6s ease; }
.hero__video.is-ready { opacity: 1; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--scrim-a) 0%, var(--scrim-b) 48%, var(--scrim-c) 82%),
    linear-gradient(0deg, rgba(9, 20, 41, .55) 0%, rgba(9, 20, 41, 0) 45%);
}
.hero__inner { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.hero__content { display: grid; gap: 1.1rem; justify-items: start; max-width: 40rem; }
.hero h1 { max-width: 11em; text-shadow: 0 2px 24px rgba(9, 20, 41, .35); }
.hero__lead { max-width: 30rem; font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); line-height: 1.5; text-shadow: 0 1px 16px rgba(9, 20, 41, .55); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .6rem; }
/* Ligne d'avis Google : étoiles dorées + note + lien (le nombre d'avis s'ajoutera quand il sera confirmé) */
.rating {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .25rem .65rem; margin-top: .35rem; padding-block: .35rem;
  color: var(--hero-fg); text-decoration: none; font-size: .95rem; font-weight: 600;
  text-shadow: 0 1px 14px rgba(9, 20, 41, .6);
}
.rating__stars { display: inline-flex; gap: 2px; color: var(--gold); }
.rating__stars svg { width: 1.05rem; height: 1.05rem; display: block; }
.rating__more { font-weight: 500; opacity: .85; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.rating:hover .rating__more { opacity: 1; text-decoration-thickness: 2px; }
.hero__toggle {
  flex: none; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 1px solid rgba(247, 243, 234, .55); border-radius: 50%;
  background: rgba(9, 20, 41, .45); color: var(--hero-fg); cursor: pointer;
}
.hero__toggle svg { width: 1rem; height: 1rem; }
.hero__toggle .icon-play { display: none; }
.hero__toggle[aria-pressed="true"] .icon-play { display: block; }
.hero__toggle[aria-pressed="true"] .icon-pause { display: none; }

@media (max-width: 55.99rem) {
  .hero__scrim {
    background: linear-gradient(180deg, rgba(9, 20, 41, .5) 0%, rgba(9, 20, 41, .66) 40%, rgba(9, 20, 41, .86) 100%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__content > * { animation: rise .75s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__content > :nth-child(2) { animation-delay: .08s; }
  .hero__content > :nth-child(3) { animation-delay: .16s; }
  .hero__content > :nth-child(4) { animation-delay: .24s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section__head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

/* Approche */
.intro__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.intro__text { display: grid; gap: 1.1rem; max-width: 36rem; min-width: 0; }
.intro__text p:not(.lead):not(.signature) { color: var(--muted); }
.signature { display: grid; gap: .1rem; margin-top: .6rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.signature__name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.signature__role { color: var(--muted); font-size: .92rem; }
.intro__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (min-width: 56rem) { .intro__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

/* Cartes de cours */
.course-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.course { display: flex; min-width: 0; }
.course__link {
  display: flex; flex-direction: column; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}
.course__media { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.course__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.course__body { display: flex; flex-direction: column; gap: .45rem; flex: 1; padding: 1.15rem 1.25rem 1.3rem; min-width: 0; }
.course__text { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.course__more {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: .6rem;
  color: var(--link); font-size: .9rem; font-weight: 600;
}
.course__more svg { width: .9rem; height: .9rem; transition: transform .18s ease; }
.course__link:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.course__link:hover .course__media img { transform: scale(1.04); }
.course__link:hover .course__more svg { transform: translateX(3px); }
/* Trois cartes : une colonne sur téléphone, trois colonnes dès la tablette */
@media (min-width: 48rem) { .course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 66rem) { .course-grid { gap: 1.5rem; } }

/* Ancrage à Varsovie */
.city { background: var(--band); color: var(--band-fg); overflow: hidden; }
.city__grid { display: grid; }
.city__media { position: relative; height: clamp(14rem, 40vw, 18rem); order: -1; }
.city__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.city__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--band) 0%, rgba(23, 43, 77, 0) 55%); }
.city__inner { padding-block: clamp(2rem, 4vw, 3.5rem) var(--section-y); }
.city__text { display: grid; gap: 1.1rem; max-width: 30rem; justify-items: start; }
.city__text p { color: var(--band-muted); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
@media (min-width: 56rem) {
  .city__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; min-height: 26rem; }
  .city__media { order: 0; height: auto; }
  .city__media img { object-position: 50% 28%; }
  .city__media::after { background: linear-gradient(90deg, var(--band) 0%, rgba(23, 43, 77, 0) 38%); }
  .city__inner { display: flex; align-items: center; max-width: none; margin: 0; padding-block: var(--section-y); padding-left: max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter))); padding-right: 2rem; }
  .city__text { max-width: 26rem; }
}

/* Contact */
.contact__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact__text { display: grid; gap: 1.2rem; max-width: 34rem; min-width: 0; }
.contact__list { display: grid; margin-top: .5rem; border-top: 1px solid var(--line); }
.contact__row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: baseline; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.contact__row dt { color: var(--muted); font-size: .9rem; font-weight: 600; }
.contact__row dd { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.contact__row a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.contact__row a:hover { text-decoration-thickness: 2px; }
@media (max-width: 29.99rem) {
  .contact__row { grid-template-columns: 1fr; gap: .15rem; }
}
.contact__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (min-width: 56rem) { .contact__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }

/* Contenu à compléter : visible dans le prototype, à supprimer ensuite */
.todo {
  display: inline-block; padding: .1rem .6rem; border: 1px dashed var(--todo-line); border-radius: 6px;
  color: var(--muted); font-size: .88rem; font-weight: 500; font-style: italic;
}
.todo--light { border-color: rgba(247, 243, 234, .45); color: rgba(247, 243, 234, .8); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--top-band); color: var(--hero-fg); padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.site-footer__inner { display: grid; gap: 1.75rem; }
.site-footer__brand { display: grid; gap: .8rem; justify-items: start; }
.site-footer__logo { display: block; width: auto; max-width: none; height: clamp(3.4rem, 3rem + 1.6vw, 4.2rem); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.site-footer__nav a { text-decoration: none; font-weight: 500; opacity: .88; }
.site-footer__nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.site-footer__legal { font-size: .85rem; opacity: .75; }
.site-footer__legal a { text-underline-offset: 3px; }
.site-footer__legal a:hover { text-decoration-thickness: 2px; }
@media (min-width: 56rem) {
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: start; }
  .site-footer__legal { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid rgba(247, 243, 234, .14); }
}

/* ---------- Pages intérieures ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.site-header--solid { background: var(--header-solid); }
.nav__list a[aria-current="page"] { opacity: 1; font-weight: 700; }

.page-head {
  background: var(--band); color: var(--band-fg);
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(2.25rem, 5vw, 3.75rem);
}
.page-head .wrap { display: grid; gap: 1rem; }
.page-head h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.5rem); }
.page-head .lead { max-width: 40rem; color: var(--band-muted); text-wrap: pretty; }

/* Fiche de ressource (document, jeu…) */
.resource {
  display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); align-items: start;
  padding: clamp(1rem, 3vw, 1.75rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.resource__cover { max-width: 15rem; }
.resource__cover img {
  width: 100%; height: auto; aspect-ratio: 827 / 1170; object-fit: cover; border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 12px 28px rgba(23, 43, 77, .2);
}
.resource__body { display: grid; gap: .85rem; justify-items: start; min-width: 0; }
.resource__kicker { color: var(--muted); font-size: .85rem; font-weight: 600; }
.resource__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.15; letter-spacing: -.005em; }
.resource__text { max-width: 34rem; color: var(--muted); }
.resource__meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.resource__meta li { padding: .2rem .6rem; border: 1px solid var(--line); border-radius: 6px; font-size: .82rem; font-weight: 600; }
.resource__cta { margin-top: .5rem; }
.resources__note { margin-top: 1.5rem; color: var(--muted); font-size: .95rem; }
@media (min-width: 48rem) {
  .resource { grid-template-columns: 14rem minmax(0, 1fr); }
  .resource__cover { max-width: none; }
}

/* Page « confidentialité et mentions légales » : texte courant, lisible, colonne étroite */
.legal__body { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); max-width: 46rem; }
.legal__date { color: var(--muted); font-size: .92rem; }
.legal__block { display: grid; gap: .8rem; }
.legal h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); }
.legal h3 { margin-top: .5rem; font-size: 1.02rem; }
.legal p, .legal li { max-width: 42rem; }
.legal ul { display: grid; gap: .55rem; padding-left: 1.2rem; list-style: disc; }
.legal li::marker { color: var(--muted); }
.legal a { color: var(--link); text-underline-offset: 3px; }
.legal .contact__list { margin-top: .25rem; }
.legal .contact__row { grid-template-columns: minmax(9rem, 14rem) 1fr; }
@media (max-width: 29.99rem) { .legal .contact__row { grid-template-columns: 1fr; } }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
