/* =====================================================================
   FRANCE-USA-NET.COM - Feuille de styles principale (refonte 2026)
   100 % vanilla CSS3 - aucune dépendance externe (hors Font Awesome CDN)
   Approche mobile-first - variables centralisées dans :root
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. POLICE AUTO-HÉBERGÉE (Inter variable) - aucune requête vers Google
   --------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/Inter-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/Inter-italic.woff2") format("woff2");
}

/* ---------------------------------------------------------------------
   2. VARIABLES DE THÈME (palette FR + USA : bleu / blanc / rouge)
   --------------------------------------------------------------------- */
:root {
  /* Couleurs de marque */
  --blue-dark: #0a2463;
  --blue: #3a86ff;
  --red: #d7263d;
  --red-bright: #ef233c;
  --white: #ffffff;
  --light: #f8f9fa;

  /* Encres (texte) */
  --ink: #10182b;        /* texte sombre sur fond clair */
  --ink-soft: #44506a;   /* texte secondaire sur fond clair */
  --paper: #f4f6fb;      /* texte clair sur fond sombre */
  --paper-soft: #c9d4ec; /* texte secondaire sur fond sombre */

  /* Rôles sémantiques de contraste (règle : fond sombre→texte clair, etc.) */
  --bg: var(--light);
  --text: var(--ink);
  --text-muted: var(--ink-soft);

  /* Surfaces */
  --surface: #ffffff;
  --surface-2: #eef2fb;
  --border: rgba(16, 24, 43, 0.1);
  --shadow-sm: 0 2px 8px rgba(10, 36, 99, 0.08);
  --shadow-md: 0 10px 30px rgba(10, 36, 99, 0.12);
  --shadow-lg: 0 24px 60px rgba(10, 36, 99, 0.18);

  /* Dégradés */
  --grad-brand: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  --grad-accent: linear-gradient(135deg, var(--red) 0%, var(--red-bright) 100%);
  /* Liseré « drapeau des États-Unis » : dégradé fluide bleu → blanc → rouge */
  --us-flag: linear-gradient(
    90deg,
    var(--blue-dark) 0%,
    var(--blue) 28%,
    #ffffff 50%,
    var(--red-bright) 72%,
    var(--red) 100%
  );
  /* Liseré « drapeau de la France » : bleu, blanc, rouge */
  --fr-flag: linear-gradient(
    90deg,
    var(--blue-dark) 0%,
    var(--blue-dark) 33%,
    #ffffff 33%,
    #ffffff 66%,
    var(--red) 66%,
    var(--red) 100%
  );

  /* Typographie */
  --font-base: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;

  /* Rythme & rayons */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1300px;
  --header-h: 92px;

  /* Transitions */
  --t-fast: 0.18s ease;
  --t: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------------
   3. RESET & BASES
   --------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* aucun débordement horizontal */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-dark);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover {
  color: var(--blue);
}

h1,
h2,
h3 {
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1rem;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Lien d'évitement (accessibilité clavier) */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background: var(--blue-dark);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------------------------------------------------------------------
   4. UTILITAIRES DE CONTRASTE AUTOMATIQUE
   Règle : fond sombre → texte clair ; fond clair → texte sombre.
   --------------------------------------------------------------------- */
.surface-light {
  --text: var(--ink);
  --text-muted: var(--ink-soft);
  background: var(--light);
  color: var(--text);
}
.surface-white {
  --text: var(--ink);
  --text-muted: var(--ink-soft);
  background: var(--white);
  color: var(--text);
}
.surface-dark {
  --text: var(--paper);
  --text-muted: var(--paper-soft);
  background: var(--blue-dark);
  color: var(--text);
}
.surface-brand {
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.82);
  background: var(--grad-brand);
  color: var(--text);
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
}

.section__head {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto clamp(2rem, 1rem + 3vw, 3.5rem);
}
.section__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.section__title {
  font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.75rem);
}
.section__subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t),
    background var(--t-fast), color var(--t-fast);
  will-change: transform;
}
.btn--primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--secondary {
  background: var(--white);
  border-color: rgba(10, 36, 99, 0.28);
  box-shadow: 0 8px 20px rgba(10, 36, 99, 0.12);
  color: var(--blue);
  text-decoration: none;
}
.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: linear-gradient(135deg, rgba(10, 36, 99, 0.08), rgba(215, 38, 61, 0.08));
  border-color: rgba(10, 36, 99, 0.48);
  box-shadow: 0 12px 28px rgba(10, 36, 99, 0.18);
  color: var(--blue);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* ---------------------------------------------------------------------
   5. HEADER (bandeau de marque)
   --------------------------------------------------------------------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-block: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.brand__logo {
  height: 96px;
  width: auto;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__name {
  font-weight: 800;
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
  letter-spacing: -0.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand__tagline {
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------------
   6. NAVIGATION (barre collante)
   --------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.site-nav__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
}

/* Bouton burger (mobile/tablette) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--blue-dark);
  transition: transform var(--t), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Liste de menu */
.menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu > li {
  position: relative;
}
.menu a,
.subnavbtn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
/* Liseré drapeau US sous chaque lien de menu / sous-menu (gauche → droite) */
.menu a::after,
.subnavbtn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--us-flag);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s ease;
  pointer-events: none;
}
.menu a:hover::after,
.menu a:focus-visible::after,
.subnavbtn:hover::after,
.subnavbtn:focus-visible::after {
  clip-path: inset(0 0 0 0);
}
.menu a:hover,
.subnavbtn:hover,
.menu a:focus-visible,
.subnavbtn:focus-visible {
  background: var(--surface-2);
  color: var(--blue-dark);
}
.menu a[aria-current="page"] {
  color: #fff;
  background: var(--grad-brand);
}
.caret {
  font-size: 0.6rem;
  transition: transform var(--t);
}
.subnav[data-open="true"] .caret {
  transform: rotate(180deg);
}

/* Sous-menus déroulants */
.subnav-content {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 270px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  z-index: 200;
  max-height: 70vh;
  overflow-y: auto;
}
.subnav[data-open="true"] .subnav-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.subnav-content a {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.subnav-content a:hover {
  background: var(--surface-2);
}

/* Sélecteur de langue (drapeaux) - à droite du menu */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  padding-left: 0.5rem;
}
.lang-switch__btn {
  display: inline-grid;
  place-items: center;
  padding: 3px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: transform var(--t-fast), border-color var(--t-fast);
}
.lang-switch__btn img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}
.lang-switch__btn:hover {
  transform: scale(1.08);
}
.lang-switch__btn[aria-current="true"] {
  border-color: var(--red);
}
.lang-switch__btn[aria-current="true"]::after {
  content: "";
}

/* ---------------------------------------------------------------------
   7. HERO + CARROUSEL
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
}
.carousel {
  position: relative;
  width: 100%;
}
.carousel__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 78vh;
  background: var(--blue-dark);
}
.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, transform 6s ease;
  transform: scale(1.06);
}
.carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1); /* léger effet Ken Burns */
}
.carousel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(1.5rem, 1rem + 4vw, 4rem);
  background: linear-gradient(
    to top,
    rgba(10, 18, 32, 0.85) 0%,
    rgba(10, 18, 32, 0.35) 55%,
    transparent 100%
  );
  color: #fff;
}
.carousel__caption .cap-title {
  font-size: clamp(1.4rem, 1rem + 2.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.25rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.carousel__caption .cap-sub {
  margin: 0;
  max-width: 50ch;
  color: rgba(255, 255, 255, 0.9);
}

/* Flèches précédent / suivant */
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--blue-dark);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background var(--t-fast), transform var(--t-fast);
}
.carousel__btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}
.carousel__btn--prev {
  left: clamp(0.5rem, 2vw, 1.5rem);
}
.carousel__btn--next {
  right: clamp(0.5rem, 2vw, 1.5rem);
}

/* Indicateurs (puces) */
.carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(0.6rem, 1vw, 1.1rem);
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}
.carousel__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background var(--t-fast), transform var(--t-fast);
}
.carousel__dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

/* ---------------------------------------------------------------------
   8. CARTES « ACCUEIL » (3 blocs)
   --------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1.25rem, 1rem + 1.5vw, 2rem);
}
.card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
/* Liseré drapeau US révélé de gauche à droite (progression lente) */
.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--us-flag);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s ease;
  pointer-events: none;
}
.card:hover::after,
.card:focus-within::after {
  clip-path: inset(0 0 0 0);
}
.card__icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: #fff;
  background: var(--grad-brand);
  margin-bottom: 1rem;
}
.card:nth-child(2) .card__icon {
  background: var(--grad-accent);
}
.card__title {
  font-size: 1.3rem;
  color: var(--blue-dark);
}
.card__text {
  color: var(--text-muted);
}
.card__links {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.card__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--blue-dark);
}
.card__links a::before {
  content: "\2192"; /* flèche → */
  color: var(--red);
  transition: transform var(--t-fast);
}
.card__links a:hover::before {
  transform: translateX(4px);
}
.card__cta {
  margin-top: auto;
}

/* ---------------------------------------------------------------------
   8 bis. COMPTEURS ANIMÉS (chiffres clés)
   --------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(1rem, 0.5rem + 2vw, 2rem);
}
.stat {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) 1rem;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: transform var(--t), box-shadow var(--t);
}
.stat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
/* Liseré dégradé drapeau US en haut (cohérent avec les cartes) */
.stat::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--us-flag);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s ease;
  pointer-events: none;
}
.stat:hover::after {
  clip-path: inset(0 0 0 0);
}
.stat__num {
  display: block;
  font-size: clamp(2.4rem, 1.6rem + 3.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  display: block;
  margin-top: 0.65rem;
  font-weight: 600;
  color: var(--text);
}
.stat__sub {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------------
   9. FOOTER
   --------------------------------------------------------------------- */
.site-footer {
  background: var(--blue-dark);
  color: var(--paper);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 2rem;
  padding-block: clamp(2.5rem, 2rem + 3vw, 4rem);
}
.site-footer a {
  position: relative;
  display: inline-block;
  color: var(--paper);
  text-decoration: none;
}
.site-footer .footer-cookie-manage {
  position: relative;
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  color: var(--paper);
  font: inherit;
  font-size: inherit;
  text-decoration: none;
  cursor: pointer;
  text-align: inherit;
}
/* Même animation que les cartes : liseré dégradé drapeau US révélé
   de gauche à droite au survol (remplace le soulignement). */
.site-footer a::after,
.site-footer .footer-cookie-manage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 4px;
  background: var(--us-flag);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s ease;
  pointer-events: none;
}
.site-footer a:hover,
.site-footer .footer-cookie-manage:hover {
  color: #fff;
}
.site-footer a:hover::after,
.site-footer a:focus-visible::after,
.site-footer .footer-cookie-manage:hover::after,
.site-footer .footer-cookie-manage:focus-visible::after {
  clip-path: inset(0 0 0 0);
}
.site-footer .footer-cookie-manage:focus-visible {
  outline: none;
}
.footer-col h3 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.footer-col p {
  color: var(--paper-soft);
  font-size: 0.95rem;
}
.footer__logo {
  height: 84px;
  width: auto;
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--paper-soft);
}

/* =====================================================================
   PAGE « À PROPOS » - composants spécifiques
   ===================================================================== */

/* Fil d'Ariane */
.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.4rem;
  opacity: 0.5;
}
.breadcrumb a {
  color: inherit;
  opacity: 0.9;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb [aria-current="page"] {
  font-weight: 600;
}

/* En-tête de page (bandeau dégradé) */
.page-hero {
  text-align: center;
  padding-block: clamp(2.5rem, 2rem + 4vw, 5rem);
}
.page-hero h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
  margin-bottom: 0.5rem;
}
.page-hero__lead {
  max-width: 60ch;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Texte courant lisible */
.prose {
  max-width: 70ch;
  margin-inline: auto;
}
.prose p {
  font-size: 1.08rem;
  margin-bottom: 1.1rem;
}
.prose strong {
  color: inherit;
}

/* Cartes des membres fondateurs */
.founders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(1.25rem, 1rem + 1.5vw, 2rem);
}
.founder {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.founder:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.founder::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--us-flag);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s ease;
  pointer-events: none;
}
.founder:hover::after {
  clip-path: inset(0 0 0 0);
}
.founder__avatar {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--shadow-sm);
}
.founder:nth-child(even) .founder__avatar {
  background: var(--grad-accent);
}
.founder__name {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--blue-dark);
}
.founder__role {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(215, 38, 61, 0.08);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.founder__origin {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.founder__bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* Valeurs de la mission (sur fond sombre) */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  margin-top: clamp(2rem, 1rem + 3vw, 3rem);
}
.value {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.value__icon {
  font-size: 1.6rem;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.value h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.value p {
  margin: 0;
  color: var(--text-muted);
}

/* Frise d'évolution du logo */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(1.25rem, 1rem + 1.5vw, 2rem);
}
.timeline__item {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.timeline__item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.timeline__media {
  height: 200px;
  margin-bottom: 1rem;
  padding: 1.25rem;
  background: var(--surface-2);
  border-radius: var(--radius);
}
/* Toutes les images de la frise occupent un cadre identique et sont
   mises à l'échelle de la même façon (contain), centrées. */
.timeline__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.timeline__period {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--red);
  margin: 0 0 0.35rem;
}
.timeline__label {
  font-weight: 700;
  color: var(--blue-dark);
  margin: 0;
}

/* Téléchargement des statuts (PDF) */
.download {
  text-align: center;
}
.download__meta {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FAQ en accordéon */
.faq {
  max-width: 800px;
  margin-inline: auto;
  display: grid;
  gap: 0.85rem;
}
.faq__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "\002B"; /* + */
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--red);
  transition: transform var(--t);
  line-height: 1;
}
.faq__item[open] summary::after {
  transform: rotate(45deg); /* devient une croix */
}
.faq__item summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
}
.faq__answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
}
.faq__answer p {
  margin: 0;
}
.faq__item[open] summary {
  border-bottom: 1px solid var(--border);
}
.faq__item[open] .faq__answer {
  padding-top: 1rem;
  animation: faq-in 0.3s ease;
}
@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* =====================================================================
   PAGE « PARTIR AUX USA » et composant ALERTE (réutilisables)
   ===================================================================== */

/* Image principale (figure) */
.media-figure {
  margin: clamp(1.5rem, 1rem + 2vw, 2.5rem) auto 0;
  max-width: 1000px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.media-figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* Liste à puces avec icône de validation */
.checklist {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: 75ch;
}
.checklist li {
  position: relative;
  padding-left: 2.25rem;
}
.checklist li::before {
  content: "\f00c"; /* coche Font Awesome */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.15rem;
  color: var(--blue);
}
.note-inline {
  max-width: 75ch;
  margin: 1.5rem auto 0;
  font-style: italic;
  color: var(--text-muted);
}

/* Variante « sanctions / risques » : icône d'alerte rouge */
.checklist--danger li::before {
  content: "\f071"; /* triangle d'alerte Font Awesome */
  color: var(--red);
}

/* Grilles 2 colonnes (comparatifs passeport / visa-ESTA) */
.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  align-items: stretch;
}
.info-card__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.info-card__icon {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.25rem;
  background: var(--grad-brand);
}
.info-card:nth-child(even) .info-card__icon {
  background: var(--grad-accent);
}
.info-card__head h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--blue-dark);
}
.info-card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
  color: var(--text-muted);
}

/* Cartes tarifaires (MRV) */
.price__amount {
  display: inline-block;
  font-size: clamp(2rem, 1.4rem + 2.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price:nth-child(even) .price__amount {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.price li {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.price li b {
  display: inline-block;
  min-width: 3.2em;
  color: var(--blue-dark);
}

/* Boutons / liens officiels */
.cta-center {
  text-align: center;
  margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1rem;
}
.link-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: var(--blue-dark);
  transition: transform var(--t), box-shadow var(--t);
}
.link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--blue-dark);
}
.link-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--us-flag);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s ease;
  pointer-events: none;
}
.link-card:hover::after,
.link-card:focus-visible::after {
  clip-path: inset(0 0 0 0);
}
.link-card__icon {
  flex: none;
  color: var(--blue);
  font-size: 1.3rem;
}
.link-card__text {
  flex: 1;
}
.link-card__ext {
  flex: none;
  color: var(--red);
  font-size: 0.8rem;
}

/* Vidéo responsive 16:9 */
.video {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video__caption {
  max-width: 900px;
  margin: 0.85rem auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Composant ALERTE / AVERTISSEMENT (réutilisable, fond clair -> texte sombre) */
.alert {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: #fff4f4;
  color: var(--ink);
  border: 1px solid rgba(215, 38, 61, 0.25);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.alert__icon {
  flex: none;
  margin-top: 0.15rem;
  color: var(--red);
  font-size: 1.7rem;
  line-height: 1;
}
.alert__title {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  color: var(--red);
}
.alert__list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.6rem;
}
.alert__list li {
  color: var(--ink);
}

/* =====================================================================
   PAGE GUIDE « ENTREPRENDRE AUX USA » (sommaire ancré + contenu)
   ===================================================================== */

/* Utilitaire : visible uniquement pour les lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Badges/pastilles du héro */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

/* Disposition à deux colonnes : sommaire + contenu */
.guide-layout {
  display: grid;
  grid-template-columns: minmax(220px, 270px) 1fr;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: start;
}

/* Sommaire (sticky sur grand écran) */
.toc {
  position: sticky;
  top: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.1rem;
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
}
.toc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.toc__title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--blue-dark);
}
.toc__toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2, #f1f3f8);
  color: var(--blue-dark);
  font-weight: 600;
  cursor: pointer;
}
.toc__list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
  counter-reset: none;
}
.toc__list a {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--ink-soft, #45506b);
  border-left: 3px solid transparent;
  transition: background var(--t-fast, 0.18s), color var(--t-fast, 0.18s),
    border-color var(--t-fast, 0.18s);
}
.toc__list a:hover {
  background: rgba(58, 134, 255, 0.08);
  color: var(--blue-dark);
}
.toc__list a[aria-current="true"] {
  background: rgba(58, 134, 255, 0.12);
  color: var(--blue-dark);
  border-left-color: var(--blue);
  font-weight: 700;
}

/* Contenu du guide */
.guide-content {
  min-width: 0; /* évite le débordement des tableaux dans la grille */
}
.guide-section {
  scroll-margin-top: 1.5rem;
  padding: 1.25rem 0 1.75rem;
  border-bottom: 1px solid var(--border);
}
.guide-section:last-child {
  border-bottom: 0;
}
.guide-section > h2 {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem);
  color: var(--blue-dark);
  margin: 0 0 0.4rem;
}
.guide-section .eyebrow,
.guide-section__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.35rem;
}
.guide-section p {
  color: var(--ink-soft, #45506b);
  max-width: 75ch;
}
.guide-section strong {
  color: var(--ink);
}

/* Tableau comparatif (défilement horizontal maîtrisé) */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 0.5rem;
}
.legal-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 720px;
  font-size: 0.9rem;
}
.legal-table th,
.legal-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.legal-table thead th {
  position: sticky;
  top: 0;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.legal-table tbody th[scope="row"] {
  background: rgba(58, 134, 255, 0.06);
  color: var(--blue-dark);
  font-weight: 700;
}
.legal-table tbody tr:nth-child(even) td,
.legal-table tbody tr:nth-child(even) th[scope="row"] {
  background: rgba(16, 24, 43, 0.025);
}

/* Colonnes de liens officiels */
.link-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.link-group {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.4rem;
}
.link-group h3 {
  margin: 0 0 0.75rem;
  color: var(--blue-dark);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.link-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.link-group a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}
.link-group a:hover {
  text-decoration: underline;
  color: var(--blue-dark);
}
.link-group .ext {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

/* Note de transparence */
.legal-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(16, 24, 43, 0.04);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--ink-soft, #45506b);
}

/* Encadré « à retenir » (liseré bleu, fond clair, texte sombre) */
.callout {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background: var(--surface-2);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  color: var(--ink);
}
.callout p {
  margin: 0;
}

/* Liste d'étapes numérotées (démarches officielles) */
.steps {
  margin: 1rem 0 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.85rem;
}
.steps li {
  line-height: 1.6;
  padding-left: 0.25rem;
}
.steps li::marker {
  color: var(--blue);
  font-weight: 700;
}

/* Responsive : sommaire repliable et empilé sous 1024px */
@media (max-width: 1024px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
    max-height: none;
  }
  .toc__toggle {
    display: inline-flex;
  }
  .toc__list {
    display: none;
  }
  .toc.is-open .toc__list {
    display: grid;
  }
}

/* ---------------------------------------------------------------------
   Bouton « retour en haut » (injecté par le JS, translucide)
   --------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 2vw, 2rem);
  bottom: clamp(1rem, 2vw, 2rem);
  z-index: 300;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(10, 36, 99, 0.55); /* bleu translucide */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t), transform var(--t), visibility var(--t),
    background var(--t-fast);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top:hover {
  background: rgba(10, 36, 99, 0.85);
  transform: translateY(-3px);
}

/* ---------------------------------------------------------------------
   10. ANIMATIONS D'APPARITION (sobres)
   --------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------------
   11. RESPONSIVE - mobile-first, 4 paliers
   --------------------------------------------------------------------- */

/* Tablette & mobile : on bascule en menu burger (≤ 980px) */
@media (max-width: 980px) {
  .nav-toggle {
    display: flex;
  }
  .site-nav__inner {
    flex-wrap: wrap;
  }
  .menu {
    order: 3;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.15rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height var(--t), opacity var(--t);
  }
  .menu.is-open {
    max-height: 80vh;
    overflow-y: auto;
    opacity: 1;
    padding-block: 0.5rem;
  }
  .menu a,
  .subnavbtn {
    width: 100%;
    justify-content: space-between;
    font-size: 1rem;
    padding: 0.8rem 0.9rem;
  }
  .subnav-content {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: var(--surface-2);
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 0.4rem;
    transition: max-height var(--t);
  }
  .subnav[data-open="true"] .subnav-content {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.4rem;
  }
  .lang-switch {
    margin-left: auto;
    order: 2;
  }
}

/* 💻 / 🖥️ Grand écran (≥ 981px) : ouverture des sous-menus au survol */
@media (min-width: 981px) {
  .subnav:hover .subnav-content,
  .subnav:focus-within .subnav-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .subnav:hover .caret,
  .subnav:focus-within .caret {
    transform: rotate(180deg);
  }
}

/* 🖥️ Ordinateur de bureau (≥ 1281px) : confort de lecture accru */
@media (min-width: 1281px) {
  .menu a,
  .subnavbtn {
    font-size: 0.95rem;
  }
}

/* 📱 Smartphone (≤ 480px) */
@media (max-width: 480px) {
  .brand__logo {
    height: 72px;
  }
  .brand__tagline {
    display: none;
  }
  .carousel__viewport {
    aspect-ratio: 4 / 5;
  }
  .carousel__btn {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
}

/* Respect des préférences de réduction d'animation */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .carousel__slide {
    transition: opacity 0.3s ease;
    transform: none;
  }
}

/* ---------------------------------------------------------------------
   Page Credit Score : jauge, paliers, frise 12 mois, comparatif
   --------------------------------------------------------------------- */
.credit-gauge {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--red) 0%,
    var(--red-bright) 18%,
    #f59e0b 35%,
    #eab308 50%,
    var(--blue) 72%,
    var(--blue-dark) 100%
  );
  box-shadow: inset 0 1px 3px rgba(16, 24, 43, 0.15);
  margin-top: 1rem;
}

.credit-gauge-labels {
  display: flex;
  justify-content: space-between;
  margin: 0.35rem 0 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.credit-scale {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.credit-tier {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.credit-tier .range {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.credit-tier .label {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.credit-tier.poor { border-top: 4px solid var(--red); }
.credit-tier.fair { border-top: 4px solid #f59e0b; }
.credit-tier.good { border-top: 4px solid var(--blue); }
.credit-tier.verygood { border-top: 4px solid #2563eb; }
.credit-tier.excellent { border-top: 4px solid var(--blue-dark); }

.credit-problems {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.credit-problem {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.credit-problem h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--blue-dark);
}

.credit-problem p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.credit-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.credit-step {
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface-2);
}

.credit-step h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: var(--blue-dark);
}

.credit-step p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.credit-panel {
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.credit-panel h3 {
  margin: 0 0 0.65rem;
  color: var(--blue-dark);
}

.credit-panel > p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.credit-timeline {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.35rem;
  margin: 1.25rem 0 0.75rem;
  position: relative;
}

.credit-timeline::before {
  content: "";
  position: absolute;
  top: 1.65rem;
  left: 4%;
  right: 4%;
  height: 4px;
  background: var(--us-flag);
  border-radius: 4px;
  z-index: 0;
}

.credit-timeline-month {
  position: relative;
  z-index: 1;
  text-align: center;
  min-width: 0;
}

.credit-timeline-dot {
  width: 14px;
  height: 14px;
  margin: 1.2rem auto 0.45rem;
  background: var(--white);
  border: 3px solid var(--blue-dark);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.12);
}

.credit-timeline-month.is-milestone .credit-timeline-dot {
  width: 18px;
  height: 18px;
  margin-top: 1.05rem;
  background: var(--blue-dark);
  border-color: var(--red);
}

.credit-timeline-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.credit-timeline-card {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.credit-timeline-phase {
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface-2);
}

.credit-timeline-phase h4 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: var(--blue-dark);
}

.credit-timeline-phase p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.credit-score-band {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.15rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(58, 134, 255, 0.12);
  color: var(--blue-dark);
}

.credit-source-note {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-style: italic;
}

.credit-checklist-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.credit-checklist-box .checklist-preview {
  flex: 1 1 260px;
}

.credit-checklist-box ul {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.credit-checklist-box li {
  position: relative;
  padding: 0.2rem 0 0.2rem 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.credit-checklist-box li::before {
  content: "☐";
  position: absolute;
  left: 0;
  color: var(--blue-dark);
  font-weight: 700;
}

@media (max-width: 900px) {
  .credit-timeline {
    grid-template-columns: repeat(6, 1fr);
    row-gap: 0.75rem;
  }
  .credit-timeline::before {
    display: none;
  }
}

@media (max-width: 520px) {
  .credit-timeline {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Visa E-2 guide: three pillar cards */
.e2-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1rem;
}

.e2-pillar {
  height: 100%;
}

@media (max-width: 768px) {
  .e2-pillars {
    grid-template-columns: 1fr;
  }
}

/* Ambassades / Embassies page */
.embassy-layout {
  display: grid;
  grid-template-columns: minmax(220px, 270px) 1fr;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: start;
}

.embassy-content {
  min-width: 0;
}

.embassy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.embassy-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  break-inside: avoid;
}

.embassy-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--blue-dark);
  line-height: 1.35;
}

.embassy-card address {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.55;
}

.embassy-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.embassy-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.embassy-card__list li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.embassy-card__list a {
  color: var(--blue-mid, #3a86ff);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.embassy-card__list a:hover {
  color: var(--blue-dark);
}

.embassy-card__link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 0.35rem;
}

.embassy-verified {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--blue-mid, #3a86ff);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface-2, #f1f3f8);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.55;
}

.embassy-verified i {
  color: var(--blue-dark);
  margin-top: 0.15rem;
}

.embassy-verified a {
  color: var(--blue-dark);
  font-weight: 600;
  word-break: break-word;
}

@media (max-width: 900px) {
  .embassy-layout {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .site-nav,
  .site-footer,
  .toc,
  .skip-link,
  .back-to-top,
  .no-print,
  .page-hero,
  .breadcrumb {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .section {
    padding: 0 !important;
  }

  .embassy-layout {
    display: block;
  }

  .embassy-cards {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .embassy-card {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }

  .embassy-card__link {
    display: none;
  }

  .embassy-verified {
    background: #f5f5f5;
    border-color: #666;
  }

  a[href]::after {
    content: none;
  }
}

@media print and (max-width: 640px) {
  .embassy-cards {
    grid-template-columns: 1fr;
  }
}

/* In-demand jobs / Métiers en tension */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.job-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.job-card h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--blue-dark);
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.job-card h3 i {
  margin-top: 0.15rem;
  color: var(--blue);
  flex-shrink: 0;
}

.job-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  flex: 1;
}

.job-card a {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.job-card a:hover {
  text-decoration: underline;
  color: var(--blue-dark);
}

.jobs-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.jobs-step {
  height: 100%;
}

.proscons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.proscons__col {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.proscons__col h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.proscons__col--pro h3 i {
  color: #2a9d6e;
}

.proscons__col--con h3 i {
  color: var(--red, #e63946);
}

.proscons__col ul {
  margin: 0;
  padding: 0 0 0 1.15rem;
  display: grid;
  gap: 0.5rem;
}

.proscons__col li {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.jobs-data-placeholder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.jobs-data-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.jobs-data-card h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.jobs-data-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
  flex: 1;
}

.jobs-data-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.jobs-essential {
  border-left-color: var(--red, #e63946);
  background: rgba(230, 57, 70, 0.08);
}

@media (max-width: 768px) {
  .proscons {
    grid-template-columns: 1fr;
  }
}

/* Guerre d'Indépendance / War of Independence */
.iw-page {
  --iw-blue-dark: #0a2463;
  --iw-blue: #3a86ff;
  --iw-red: #d7263d;
  --iw-red-light: #ef233c;
  --iw-white: #ffffff;
  --iw-surface: #f8f9fa;
  --iw-ink: #14110e;
  --iw-ink-soft: #3d3834;
  --iw-win-us-bg: rgba(58, 134, 255, 0.14);
  --iw-win-us-border: #3a86ff;
  --iw-win-uk-bg: rgba(215, 38, 61, 0.12);
  --iw-win-uk-border: #d7263d;
  --iw-win-fr-bg: rgba(10, 36, 99, 0.1);
  --iw-win-fr-border: #0a2463;
  --iw-win-pyrrhic-bg: rgba(180, 83, 9, 0.12);
  --iw-win-pyrrhic-border: #b45309;
  --iw-win-draw-bg: rgba(100, 116, 139, 0.12);
  --iw-win-draw-border: #64748b;
  --iw-tl-us: #3a86ff;
  --iw-tl-uk: #d7263d;
  --iw-tl-fr: #0a2463;
  --iw-tl-neutral: #64748b;
}

.iw-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.iw-stat {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.iw-stat .num {
  display: block;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
  font-weight: 800;
  color: var(--iw-blue-dark);
  line-height: 1.2;
}

.iw-stat .label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.iw-legend,
.iw-battle-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0.75rem 0 1rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.iw-legend span,
.iw-battle-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.iw-legend i,
.iw-battle-legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.iw-legend .us i,
.iw-battle-legend .us i { background: var(--iw-tl-us); }
.iw-legend .uk i,
.iw-battle-legend .uk i { background: var(--iw-tl-uk); }
.iw-legend .fr i,
.iw-battle-legend .fr i { background: var(--iw-tl-fr); }
.iw-legend .neutral i { background: var(--iw-tl-neutral); }
.iw-battle-legend .pyrrhic i { background: var(--iw-win-pyrrhic-border); }
.iw-battle-legend .draw i { background: var(--iw-win-draw-border); }

.iw-timeline-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.iw-timeline-filters button {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.iw-timeline-filters button[aria-pressed="true"] {
  background: var(--iw-blue-dark);
  border-color: var(--iw-blue-dark);
  color: var(--iw-white);
}

.iw-timeline-filters button:focus-visible {
  outline: 2px solid var(--iw-blue);
  outline-offset: 2px;
}

.iw-timeline {
  position: relative;
  margin: 1rem 0;
  padding-left: 0.35rem;
}

.iw-timeline::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--iw-blue), var(--iw-red-light), var(--iw-blue-dark));
}

.iw-tl-item {
  position: relative;
  padding: 0 0 1.35rem 3.25rem;
}

.iw-tl-item.is-hidden {
  display: none;
}

.iw-tl-item::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.2rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px rgba(58, 134, 255, 0.25);
  background: var(--iw-tl-neutral);
}

.iw-tl-item.us::before { background: var(--iw-tl-us); }
.iw-tl-item.uk::before { background: var(--iw-tl-uk); }
.iw-tl-item.fr::before { background: var(--iw-tl-fr); }
.iw-tl-item.neutral::before { background: var(--iw-tl-neutral); }

.iw-tl-card {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.iw-tl-date {
  font-weight: 800;
  color: var(--iw-blue-dark);
  font-size: 0.95rem;
}

.iw-tl-title {
  font-weight: 700;
  color: var(--ink);
  margin: 0.2rem 0 0.35rem;
  font-size: 1rem;
}

.iw-tl-who {
  font-size: 0.82rem;
  color: var(--iw-blue);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.iw-tl-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.iw-battle-map {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--iw-surface);
  box-shadow: var(--shadow-sm);
}

.iw-battle-map img {
  width: 100%;
  height: auto;
  max-height: min(900px, 85vh);
  object-fit: contain;
  border-radius: calc(var(--radius) - 4px);
  display: block;
  margin: 0 auto;
}

.iw-battle-map figcaption {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.55;
}

.iw-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}

.iw-table-wrap .legal-table {
  margin: 0;
  min-width: 640px;
}

.iw-table-wrap .legal-table caption {
  padding: 0.75rem 1rem 0;
  font-weight: 700;
  color: var(--iw-blue-dark);
  text-align: left;
}

.iw-table-wrap tr.iw-win-us th,
.iw-table-wrap tr.iw-win-us td {
  background: var(--iw-win-us-bg);
  color: var(--iw-ink);
}

.iw-table-wrap tr.iw-win-uk th,
.iw-table-wrap tr.iw-win-uk td {
  background: var(--iw-win-uk-bg);
  color: var(--iw-ink);
}

.iw-table-wrap tr.iw-win-fr th,
.iw-table-wrap tr.iw-win-fr td {
  background: var(--iw-win-fr-bg);
  color: var(--iw-ink);
}

.iw-table-wrap tr.iw-win-pyrrhic th,
.iw-table-wrap tr.iw-win-pyrrhic td {
  background: var(--iw-win-pyrrhic-bg);
  color: var(--iw-ink);
}

.iw-table-wrap tr.iw-win-draw th,
.iw-table-wrap tr.iw-win-draw td {
  background: var(--iw-win-draw-bg);
  color: var(--iw-ink);
}

.iw-treaty-grid {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

@media (min-width: 640px) {
  .iw-treaty-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.iw-treaty-box {
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--iw-surface);
}

.iw-treaty-box h3 {
  margin: 0 0 0.65rem;
  font-size: 1.02rem;
  color: var(--iw-blue-dark);
}

.iw-treaty-box ul {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.6;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.iw-pdf-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(10, 36, 99, 0.04), rgba(58, 134, 255, 0.06));
}

.iw-pdf-box__text {
  flex: 1 1 260px;
}

.iw-pdf-box__text p {
  margin: 0 0 0.5rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.iw-pdf-box__text ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.iw-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.iw-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.iw-gallery img {
  width: 100%;
  height: auto;
  display: block;
}

.iw-gallery figcaption {
  padding: 0.75rem 0.9rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.iw-anecdotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.iw-anecdote {
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-top: 3px solid var(--iw-red);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.iw-anecdote h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--iw-blue-dark);
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  line-height: 1.35;
}

.iw-anecdote .iw-anecdote-date {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--iw-red);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.iw-anecdote p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.iw-anecdote .src {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-style: italic;
}

.iw-quote {
  margin: 1.25rem 0;
  padding: 1.15rem 1.25rem;
  border-left: 4px solid var(--iw-blue);
  background: rgba(58, 134, 255, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.iw-quote p {
  margin: 0;
  font-size: 1rem;
  font-style: italic;
  color: var(--iw-blue-dark);
  line-height: 1.55;
}

.iw-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
  font-style: normal;
}

@media (max-width: 480px) {
  .iw-tl-item {
    padding-left: 2.75rem;
  }
  .iw-timeline::before {
    left: 0.95rem;
  }
  .iw-tl-item::before {
    left: 0.35rem;
  }
}

@media (max-width: 768px) {
  .iw-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Route 66 / Mother Road */
.r66-page {
  --r66-blue-dark: #0a2463;
  --r66-blue: #3a86ff;
  --r66-red: #d7263d;
  --r66-red-light: #ef233c;
  --r66-white: #ffffff;
  --r66-surface: #f8f9fa;
  --r66-ink: #14110e;
  --r66-ink-soft: #3d3834;
  --r66-accent: #b45309;
  --r66-accent-dark: #92400e;
  --r66-road: linear-gradient(90deg, var(--r66-blue-dark) 0%, var(--r66-red) 50%, var(--r66-blue) 100%);
}

.r66-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 0.85rem;
}

.r66-stat {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--r66-red);
}

.r66-stat .num {
  display: block;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.55rem);
  font-weight: 800;
  color: var(--r66-blue-dark);
  line-height: 1.2;
}

.r66-stat .label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--r66-ink-soft);
  line-height: 1.35;
}

.r66-emblem {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 0 1.25rem;
}

.r66-emblem img {
  width: auto;
  height: min(180px, 28vw);
  max-width: min(220px, 70vw);
  object-fit: contain;
  margin-inline: auto;
}

.r66-page .r66-counters .stat::after {
  background: var(--r66-road);
}

.r66-page .r66-counters {
  max-width: 960px;
  margin-inline: auto;
}

.r66-states {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.r66-state {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 36, 99, 0.15);
  background: var(--r66-surface);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--r66-blue-dark);
}

.r66-state span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--r66-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.r66-map {
  margin: 1rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--r66-surface);
}

.r66-map img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.r66-map figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.86rem;
  color: var(--r66-ink-soft);
  line-height: 1.5;
  border-top: 1px solid var(--border);
}

.r66-links-grid {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
}

@media (min-width: 520px) {
  .r66-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .r66-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.r66-links-grid a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(10, 36, 99, 0.12);
  background: var(--white);
  color: var(--r66-blue-dark);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: transform var(--t-fast, 0.18s), box-shadow var(--t-fast, 0.18s);
}

.r66-links-grid a:hover,
.r66-links-grid a:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: var(--r66-red);
}

.r66-links-grid a .r66-link-sub {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--r66-ink-soft);
}

.r66-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}

.r66-table-wrap .legal-table {
  margin: 0;
  min-width: 720px;
  font-size: 0.86rem;
}

.r66-table-wrap .legal-table caption {
  padding: 0.85rem 1rem 0;
  color: var(--r66-blue-dark);
  font-weight: 700;
}

.r66-table-wrap .legal-table thead th {
  background: rgba(10, 36, 99, 0.08);
  color: var(--r66-blue-dark);
}

.r66-itinerary-grid {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

@media (min-width: 760px) {
  .r66-itinerary-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.r66-itinerary-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--r66-blue);
}

.r66-itinerary-card:nth-child(2) {
  border-top-color: var(--r66-red);
}

.r66-itinerary-card:nth-child(3) {
  border-top-color: var(--r66-accent);
}

.r66-itinerary-card h3 {
  margin: 0 0 0.25rem;
  color: var(--r66-blue-dark);
  font-size: 1.05rem;
}

.r66-itinerary-card .r66-itin-meta {
  font-size: 0.82rem;
  color: var(--r66-ink-soft);
  margin-bottom: 0.75rem;
}

.r66-itinerary-card ol {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--r66-ink-soft);
}

.r66-itinerary-card li {
  margin-bottom: 0.4rem;
}

.r66-pdf-box {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(10, 36, 99, 0.12);
  background: linear-gradient(145deg, #fff 0%, var(--r66-surface) 100%);
}

.r66-pdf-box__text {
  flex: 1 1 260px;
}

.r66-pdf-box__text ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--r66-ink-soft);
}

.r66-timeline {
  position: relative;
  margin: 1.25rem 0;
  padding-left: 0.5rem;
}

.r66-timeline::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 3px;
  background: var(--r66-road);
  border-radius: 3px;
}

.r66-tl-item {
  position: relative;
  padding: 0 0 1.25rem 2.75rem;
}

.r66-tl-item::before {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--r66-red);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--r66-blue);
}

.r66-tl-card {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.r66-tl-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--r66-red);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.r66-tl-title {
  margin-top: 0.25rem;
  font-weight: 700;
  color: var(--r66-blue-dark);
  font-size: 0.98rem;
}

.r66-tl-text {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--r66-ink-soft);
}

.r66-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.r66-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.r66-gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.r66-gallery figcaption {
  padding: 0.75rem 0.9rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--r66-ink-soft);
}

.r66-anecdotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.r66-anecdote {
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-top: 3px solid var(--r66-accent);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.r66-anecdote-date {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--r66-red);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.r66-anecdote h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--r66-blue-dark);
  line-height: 1.35;
}

.r66-anecdote p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--r66-ink-soft);
}

.r66-anecdote .src {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: var(--r66-ink-soft);
  font-style: italic;
}

.r66-quote {
  margin: 1.25rem 0;
  padding: 1.15rem 1.25rem;
  border-left: 4px solid var(--r66-red);
  background: rgba(215, 38, 61, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.r66-quote p {
  margin: 0;
  font-size: 1rem;
  font-style: italic;
  color: var(--r66-blue-dark);
  line-height: 1.55;
}

.r66-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.84rem;
  color: var(--r66-ink-soft);
  font-style: normal;
}

@media (max-width: 480px) {
  .r66-tl-item {
    padding-left: 2.35rem;
  }
  .r66-timeline::before {
    left: 0.85rem;
  }
  .r66-tl-item::before {
    left: 0.4rem;
  }
}

@media (max-width: 768px) {
  .r66-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =====================================================================
   ÉLECTION PRÉSIDENTIELLE US (.election-page)
   ===================================================================== */
.election-page {
  --el-blue-dark: var(--blue-dark);
  --el-blue: var(--blue);
  --el-red: var(--red);
  --el-surface: var(--surface-2);
  --el-ink-soft: var(--ink-soft);
}

.election-page .election-counters {
  max-width: 960px;
  margin: 1.25rem auto 0;
}

.election-page .election-counters .stat::after {
  background: var(--us-flag);
}

.election-page .election-college-stats .stat::after {
  background: var(--us-flag);
}

.election-page .election-college-stats {
  margin-top: 1.25rem;
}

/* Frise chronologique cycle électoral (couleurs USA) */
.election-timeline {
  position: relative;
  margin: 1.25rem 0;
  padding-left: 0.35rem;
}

.election-timeline::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 4px;
  border-radius: 4px;
  background: var(--us-flag);
}

.election-tl-item {
  position: relative;
  padding: 0 0 1.35rem 2.65rem;
}

.election-tl-item::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--el-red);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--el-blue-dark);
}

.election-tl-card {
  padding: 0.9rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.election-tl-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.election-tl-phase {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--el-blue);
  margin-bottom: 0.25rem;
}

.election-tl-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--el-blue-dark);
  line-height: 1.35;
}

.election-tl-text {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--el-ink-soft);
}

/* Infographie */
.election-infographic {
  margin: 1rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.election-infographic img {
  width: 100%;
  height: auto;
  display: block;
}

.election-infographic figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.86rem;
  color: var(--el-ink-soft);
  line-height: 1.5;
  border-top: 1px solid var(--border);
}

/* Cartes primaires / caucus */
.election-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.election-card {
  position: relative;
  overflow: hidden;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.election-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--us-flag);
}

.election-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.election-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: var(--el-blue-dark);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.election-card h3 i {
  color: var(--el-blue);
  margin-top: 0.12rem;
}

.election-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--el-ink-soft);
}

/* Comparaison USA vs France */
.election-compare-grid {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

@media (min-width: 769px) {
  .election-compare-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.election-compare-block {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.2rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.election-compare-block::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
}

.election-compare-block--us::before {
  background: var(--us-flag);
}

.election-compare-block--fr::before {
  background: var(--fr-flag);
}

.election-compare-block__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.election-compare-block__head img {
  width: 28px;
  height: auto;
  border-radius: 2px;
}

.election-compare-block__head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--el-blue-dark);
}

.election-compare-row {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.election-compare-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.election-compare-row h4 {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--el-blue);
}

.election-compare-row p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--el-ink-soft);
}

.election-compare-table {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

.election-compare-table__row {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .election-compare-table__row {
    grid-template-columns: minmax(140px, 200px) 1fr 1fr;
    align-items: start;
  }
}

.election-compare-table__criterion {
  font-weight: 700;
  color: var(--el-blue-dark);
  font-size: 0.92rem;
  padding-top: 0.35rem;
}

.election-compare-table__cell {
  position: relative;
  overflow: hidden;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
}

.election-compare-table__cell::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
}

.election-compare-table__cell--us::before {
  background: var(--us-flag);
}

.election-compare-table__cell--fr::before {
  background: var(--fr-flag);
}

.election-compare-table__cell p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--el-ink-soft);
}

.election-compare-table__cell strong {
  color: var(--el-blue-dark);
}

/* Liens officiels */
.election-links-grid {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

@media (min-width: 520px) {
  .election-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .election-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.election-link-btn {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(10, 36, 99, 0.12);
  background: var(--white);
  color: var(--el-blue-dark);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.4;
  transition: transform var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
}

.election-link-btn:hover,
.election-link-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: var(--el-red);
}

.election-link-btn span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--el-ink-soft);
}

.election-faq-source {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--el-ink-soft);
  font-style: italic;
}

@media (max-width: 480px) {
  .election-tl-item {
    padding-left: 2.35rem;
  }
  .election-timeline::before {
    left: 0.85rem;
  }
  .election-tl-item::before {
    left: 0.4rem;
  }
  .election-counters {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =====================================================================
   PAGE CONTACT (.contact-page)
   ===================================================================== */
.contact-page .contact-hero {
  background: var(--grad-brand);
  color: var(--paper);
}

.contact-page .contact-hero__banner {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.contact-page .contact-hero__banner img {
  width: 100%;
  height: auto;
  max-height: min(52vh, 420px);
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.contact-page .contact-hero__banner::after {
  content: "";
  display: block;
  height: 4px;
  background: var(--fr-flag);
}

.contact-page .contact-hero__intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.contact-page .contact-hero__intro h1 {
  color: var(--paper);
  margin: 0 0 0.65rem;
}

.contact-page .contact-hero__intro .page-hero__lead {
  color: var(--paper-soft);
}

.contact-page .contact-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.contact-page .contact-badges .pill {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--paper);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.1fr;
  gap: clamp(1.25rem, 1rem + 2vw, 2rem);
  align-items: start;
}

.contact-aside {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.contact-aside::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--fr-flag);
}

.contact-aside h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: var(--blue-dark);
}

.contact-aside > p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}

.contact-info-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.contact-info-item__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--blue);
  font-size: 1rem;
}

.contact-info-item__text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.contact-info-item__text strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.contact-info-item a {
  color: var(--blue);
  font-weight: 600;
}

.contact-info-item a:hover,
.contact-info-item a:focus-visible {
  color: var(--red);
}

.contact-card {
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
}

.contact-form .field,
.contact-form .field-consent {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-form .field.full,
.contact-form .field-consent,
.contact-form .contact-submit,
.contact-form .form-feedback {
  grid-column: 1 / -1;
}

.contact-form label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-form label .req {
  color: var(--red);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--ink-soft);
  opacity: 0.75;
}

.contact-form select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2344506a' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 9rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
}

.contact-form .field.error input,
.contact-form .field.error select,
.contact-form .field.error textarea,
.contact-form .field-consent.error {
  border-color: var(--red);
}

.contact-form .field.error input,
.contact-form .field.error select,
.contact-form .field.error textarea {
  box-shadow: 0 0 0 3px rgba(215, 38, 61, 0.15);
}

.contact-form .field-error {
  min-height: 0;
  font-size: 0.8rem;
  color: var(--red);
  line-height: 1.35;
}

.field-consent {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.65rem !important;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.field-consent input {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.field-consent label {
  font-weight: 500;
  font-size: 0.86rem;
  line-height: 1.45;
}

.field-consent label a {
  color: var(--blue-dark);
  font-weight: 600;
}

.contact-form #field-etat[hidden] {
  display: none !important;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.75rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  background: var(--grad-brand);
  box-shadow: var(--shadow-md);
  transition: transform var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast);
}

.contact-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.contact-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.contact-submit .spinner {
  display: none;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: contact-spin 0.7s linear infinite;
}

.contact-submit.loading .spinner {
  display: inline-block;
}

@keyframes contact-spin {
  to { transform: rotate(360deg); }
}

.form-feedback {
  display: none;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-feedback.show {
  display: block;
}

.form-feedback.success {
  background: rgba(34, 139, 84, 0.1);
  border: 1px solid rgba(34, 139, 84, 0.35);
  color: #1a5c38;
}

.form-feedback.error {
  background: rgba(215, 38, 61, 0.08);
  border: 1px solid rgba(215, 38, 61, 0.35);
  color: #8b1a2a;
}

@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-submit .spinner {
    animation: none;
  }
}

/* =====================================================================
   PAGE REJOIGNEZ-NOUS / JOIN US (.join-page)
   ===================================================================== */
.join-page .join-hero {
  background: var(--grad-brand);
  color: var(--paper);
}

.join-page .join-hero__banner {
  margin: 0 auto 1.25rem;
  max-width: min(420px, 88vw);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.join-page .join-hero__banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.join-page .join-hero__intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.join-page .join-hero__intro h1 {
  color: var(--paper);
  margin: 0 0 0.65rem;
}

.join-page .join-hero__intro .page-hero__lead {
  color: var(--paper-soft);
}

.join-page .join-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.join-page .join-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.join-page .join-badges .pill {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--paper);
}

.join-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
}

.join-stat {
  text-align: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.join-stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.join-stat__num {
  display: block;
  position: relative;
  padding: calc(4px + 1.15rem) 0.85rem 0.35rem;
  font-size: clamp(1.35rem, 1rem + 1.2vw, 1.85rem);
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1.2;
}

.join-stat__num::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--us-flag);
  pointer-events: none;
}

.join-stat__label {
  display: block;
  padding: 0 0.85rem 1.15rem;
  margin-top: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.join-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.85rem, 0.6rem + 1vw, 1.35rem);
  margin-top: 1.5rem;
}

.join-pillar {
  position: relative;
  padding: calc(4px + 1.25rem) 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.join-pillar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--us-flag);
  pointer-events: none;
}

.join-pillar:hover {
  transform: translateY(-4px);
  border-color: var(--brand-blue-light);
}

.join-pillar h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  color: var(--brand-blue);
}

.join-pillar h3 i {
  color: var(--brand-red);
}

.join-pillar p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.join-prose {
  max-width: 720px;
}

.join-notice {
  padding: 1.25rem 1.35rem;
  border-left: 4px solid var(--brand-red);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(215, 38, 61, 0.06);
  color: var(--ink);
}

.join-notice p {
  margin: 0 0 0.65rem;
}

.join-notice p:last-child {
  margin-bottom: 0;
}

.join-checklist {
  max-width: 720px;
}

.join-faq {
  max-width: 720px;
}

.join-faq .faq-item {
  margin-bottom: 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
}

.join-faq .faq-item summary {
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-blue);
}

.join-faq .faq-item p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.join-form-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: var(--brand-blue);
}

.section-head__sub {
  margin-top: 0.45rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .join-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .join-pillars {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .join-stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .join-stat,
  .join-pillar {
    transition: none;
  }

  .join-stat:hover,
  .join-pillar:hover {
    transform: none;
  }
}

/* ── Legal page (mentions / legal) ───────────────────────────── */
.legal-page .legal-hero__banner {
  margin: 0 auto 1.25rem;
  display: flex;
  justify-content: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  width: fit-content;
  max-width: 100%;
}

.legal-page .legal-hero__banner img {
  /* 30 % de la taille d'origine (1200 × 400 px) */
  width: 360px;
  max-width: 90vw;
  height: auto;
  display: block;
  object-fit: cover;
}

.legal-page .legal-hero__intro {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.legal-page .legal-hero__intro h1 {
  color: var(--paper);
  margin: 0 0 0.65rem;
}

.legal-page .legal-hero__intro .page-hero__lead {
  color: var(--paper-soft);
}

.legal-page .legal-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.legal-page .legal-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.legal-page .legal-badges .pill {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--paper);
}

.legal-page {
  --legal-nav-offset: 4rem;
  --legal-toc-bar: 3.25rem;
  --legal-scroll-margin: calc(var(--legal-nav-offset) + var(--legal-toc-bar) + 0.75rem);
}

.legal-page .legal-toc {
  position: sticky;
  top: var(--legal-nav-offset);
  z-index: 90;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 0.65rem 0;
}

.legal-page .legal-toc__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.legal-page .legal-toc .toc__head {
  margin: 0;
}

.legal-page .legal-toc .toc__toggle {
  display: none;
}

.legal-page .legal-toc .toc__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0;
}

.legal-page .legal-toc .toc__list a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2, #f1f3f8);
  font-weight: 600;
  white-space: nowrap;
}

.legal-page .legal-toc .toc__list a[aria-current="true"] {
  background: rgba(58, 134, 255, 0.14);
  border-color: var(--blue);
  color: var(--blue-dark);
}

.legal-page .legal-body {
  max-width: 900px;
}

.legal-page .legal-block {
  scroll-margin-top: var(--legal-scroll-margin);
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-page .legal-block:last-child {
  border-bottom: 0;
}

.legal-page .legal-block__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  color: var(--brand-blue);
}

.legal-page .legal-intro {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--brand-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(58, 134, 255, 0.06);
  color: var(--ink-muted);
  line-height: 1.6;
}

.legal-page .legal-section {
  scroll-margin-top: var(--legal-scroll-margin);
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.legal-page .legal-section:last-child {
  border-bottom: 0;
}

.legal-page .legal-section h3 {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: var(--brand-blue);
}

.legal-page .legal-section h4 {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
  color: var(--ink);
}

.legal-page .legal-section .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  background: var(--brand-blue);
  border-radius: 50%;
  flex-shrink: 0;
}

.legal-page .legal-logo {
  margin: 0 0 1rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  display: inline-block;
}

.legal-page .legal-logo img {
  display: block;
  max-width: 150px;
  height: auto;
}

.legal-page .legal-notice-box {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--brand-red);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(215, 38, 61, 0.06);
}

.legal-page .legal-notice-box p {
  margin: 0;
  font-size: 0.95rem;
}

.legal-page .privacy-notice {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-2, #f1f3f8);
  font-size: 0.92rem;
}

.legal-page .privacy-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
}

.legal-page .privacy-contact-card {
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2, #f1f3f8);
}

.legal-page .privacy-fields-table,
.legal-page .privacy-retention-table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal-page .privacy-fields-table caption,
.legal-page .privacy-retention-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  color: var(--brand-blue);
  padding: 0 0 0.5rem;
}

.legal-page .privacy-fields-table th,
.legal-page .privacy-retention-table th,
.legal-page .privacy-fields-table td,
.legal-page .privacy-retention-table td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.legal-page .privacy-fields-table th,
.legal-page .privacy-retention-table th {
  background: var(--surface-2, #f1f3f8);
  font-weight: 600;
}

.legal-page .privacy-fields-table code {
  font-size: 0.82rem;
  word-break: break-word;
}

@media (max-width: 1024px) {
  .legal-page .legal-toc {
    position: sticky;
    top: var(--legal-nav-offset);
  }

  .legal-page .legal-toc .toc__list {
    display: flex;
  }
}

@media (max-width: 768px) {
  .legal-page .legal-toc__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .legal-page .legal-toc .toc__list {
    display: flex;
    flex-direction: row;
  }

  .legal-page .privacy-fields-table,
  .legal-page .privacy-retention-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
