/*
Theme Name:  Tous du Voyage
Theme URI:   https://tousduvoyage.org
Description: Thème officiel v3 — Design épuré · Une couleur d'action · Elementor-compatible
Version:     3.0.0
Author:      Tous du Voyage
Text Domain: tdv
*/

/* ============================================================
   IMPORT — Instrument Sans : noble, lisible, distinctif
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Instrument+Serif:ital@0;1&display=swap');

/* ============================================================
   TOKENS — Palette minimaliste, 1 couleur d'action
   ============================================================ */
:root {
  /* ─── Couleur d'action unique ─── */
  --action:     #E8424A;   /* rouge logo — boutons, liens, CTAs */
  --action-dk:  #C9363E;   /* hover */
  --action-lt:  #FDF2F2;   /* fond teinté très léger */
  --action-mid: rgba(232,66,74,.12); /* overlay subtil */

  /* ─── Accent secondaire (labels discrets uniquement) ─── */
  --accent:     #2D9B6F;
  --accent-lt:  #EEF9F4;

  /* ─── Neutres — toute la hiérarchie grise ─── */
  --ink-1:  #0F1117;   /* titres */
  --ink-2:  #2A2D36;   /* corps dense */
  --ink-3:  #535665;   /* corps courant */
  --ink-4:  #8B8FA4;   /* secondaire, captions */
  --ink-5:  #C2C5D0;   /* bordures */
  --ink-6:  #ECEEF3;   /* bordures légères */
  --ink-7:  #F5F6F8;   /* fond section alternée */
  --white:  #FFFFFF;

  /* ─── Typographie ─── */
  --font-body:    'Instrument Sans', system-ui, sans-serif;
  --font-display: 'Instrument Serif', Georgia, serif;

  /* ─── Tailles — légèrement augmentées ─── */
  --t-xs:    .8125rem;   /* 13px */
  --t-sm:    .9375rem;   /* 15px ← était .875 */
  --t-base:  1.0625rem;  /* 17px ← était 16px */
  --t-md:    1.1875rem;  /* 19px */
  --t-lg:    1.375rem;   /* 22px */
  --t-xl:    1.625rem;   /* 26px */
  --t-2xl:   2rem;       /* 32px */
  --t-3xl:   2.5rem;     /* 40px */
  --t-4xl:   3.125rem;   /* 50px */
  --t-hero:  clamp(2.75rem, 5vw, 4.25rem);

  /* ─── Interlignes ─── */
  --lh-tight:  1.15;
  --lh-snug:   1.28;
  --lh-text:   1.7;
  --lh-loose:  1.85;

  /* ─── Letter-spacing ─── */
  --ls-tight: -.025em;
  --ls-snug:  -.018em;
  --ls-base:  -.010em;
  --ls-wide:  .055em;
  --ls-wider: .095em;

  /* ─── Espacements — grille 4px ─── */
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-14: 56px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-28: 112px;
  --sp-32: 128px;

  /* ─── Layout ─── */
  --container:  1100px;
  --container-sm: 700px;
  --header-h:   68px;
  --sec-py:     var(--sp-20);
  --sec-py-sm:  var(--sp-14);

  /* ─── Formes ─── */
  --r-sm:   5px;
  --r:      9px;
  --r-lg:   13px;
  --r-xl:   18px;
  --r-full: 9999px;

  /* ─── Ombres ─── */
  --sh-xs:  0 1px 3px rgba(0,0,0,.04);
  --sh-sm:  0 2px 8px rgba(0,0,0,.06);
  --sh-md:  0 4px 20px rgba(0,0,0,.08);
  --sh-lg:  0 12px 40px rgba(0,0,0,.09);
  --sh-xl:  0 20px 60px rgba(0,0,0,.12);

  /* ─── Transitions ─── */
  --ease:     cubic-bezier(.4,0,.2,1);
  --dur-fast: 140ms;
  --dur:      210ms;
  --dur-slow: 360ms;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--t-base);
  font-weight: 400;
  color: var(--ink-2);
  background: var(--white);
  line-height: var(--lh-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--header-h);
}

/* Override styles WordPress sur le logo custom */
#site-header .custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 1;
}
#site-header .custom-logo-link img.custom-logo {
  height: 40px !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block;
}
.site-logo img { height: 40px; width: auto; transition: opacity var(--dur-fast); }
img, video { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
p + p  { margin-top: var(--sp-4); }
strong { font-weight: 600; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
.container-sm {
  max-width: var(--container-sm);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

/* Grid utilitaires */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-6); }
.grid-5 { display: grid; grid-template-columns: repeat(5,1fr); gap: var(--sp-4); }
.align-center { align-items: center; }
.text-center { text-align: center; }

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */

/* Eyebrow / badge */
.label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-5);
}
.label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* H1 */
h1, .t-h1 {
  font-family: var(--font-body);
  font-size: clamp(var(--t-3xl), 4.5vw, var(--t-4xl));
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color: var(--ink-1);
}

/* H2 — propre, 600, pas lourd */
h2, .t-h2 {
  font-family: var(--font-body);
  font-size: clamp(var(--t-2xl), 3vw, var(--t-3xl));
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: var(--ls-snug);
  color: var(--ink-1);
}

/* H2 avec 2ème ligne italique serif */
.t-h2-serif {
  font-size: clamp(var(--t-2xl), 3.2vw, var(--t-3xl));
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: var(--ls-tight);
  color: var(--ink-1);
}
.t-h2-serif em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--action);
  display: block;
}

/* H3 */
h3, .t-h3 {
  font-size: var(--t-lg);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: var(--ls-base);
  color: var(--ink-1);
}

/* H4 */
h4, .t-h4 {
  font-size: var(--t-md);
  font-weight: 600;
  line-height: 1.38;
  color: var(--ink-1);
}

/* Corps */
.t-lead {
  font-size: var(--t-md);
  line-height: var(--lh-loose);
  color: var(--ink-3);
}
.t-body {
  font-size: var(--t-base);
  line-height: var(--lh-text);
  color: var(--ink-3);
}
.t-sm {
  font-size: var(--t-sm);
  line-height: var(--lh-text);
  color: var(--ink-3);
}
.t-xs {
  font-size: var(--t-xs);
  color: var(--ink-4);
}
.t-caption {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--ink-4);
}

/* Entête de section */
.sec-head { margin-bottom: var(--sp-12); }
.sec-head .t-lead { margin-top: var(--sp-4); max-width: 520px; }
.sec-head.center { text-align: center; }
.sec-head.center .t-lead { margin-inline: auto; }

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--header-h);
  z-index: 200;
  background: #ffffff;
  border-bottom: 1px solid var(--ink-6);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  transition: box-shadow var(--dur) var(--ease);
}
#site-header.stuck {
  box-shadow: var(--sh-sm);
}
.header-wrap {
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 100%;
}

/* Les 3 blocs du header : logo | nav | bouton */
.site-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
#main-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* Logo image */
/* .site-logo est une <a> WP qui peut contenir .custom-logo-link — on cible tout */
.site-logo {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
}
.site-logo .custom-logo-link {
  display: flex !important;
  align-items: center !important;
  width: auto !important;
  height: 40px !important;
}
.site-logo img,
.site-logo .custom-logo {
  display: block !important;
  height: 40px !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain;
}
.site-logo:hover img { opacity: .8; }

/* Nav */
#main-nav { display: flex; align-items: center; gap: 2px; }
#main-nav a {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-3);
  padding: 6px 12px;
  border-radius: var(--r-full);
  transition: color var(--dur-fast), background var(--dur-fast);
  white-space: nowrap;
}
#main-nav a:hover   { color: var(--ink-1); background: var(--ink-7); }
#main-nav a.current { color: var(--action); background: var(--action-lt); font-weight: 600; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: var(--sp-2); flex-shrink: 0; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--sp-2);
  z-index: 201;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink-1);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BOUTONS — UN seul style, une seule couleur
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 12px 24px;
  border-radius: var(--r-full);
  font-size: var(--t-sm);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    background   var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    box-shadow   var(--dur-fast) var(--ease),
    color        var(--dur-fast) var(--ease),
    transform    var(--dur-fast) var(--ease);
  text-decoration: none;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); transition-duration: 60ms; }

/* Primaire — plein, couleur d'action */
.btn-primary {
  background: var(--action);
  color: var(--white);
  border-color: var(--action);
  box-shadow: 0 2px 12px rgba(232,66,74,.20);
}
.btn-primary:hover {
  background: var(--action-dk);
  border-color: var(--action-dk);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(232,66,74,.28);
}

/* Secondaire — contour */
.btn-outline {
  background: transparent;
  color: var(--action);
  border-color: var(--action);
}
.btn-outline:hover { background: var(--action-lt); }

/* Ghost — neutre, navigation */
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--ink-6);
}
.btn-ghost:hover { background: var(--ink-7); border-color: var(--ink-5); color: var(--ink-1); }

/* Sur fond coloré (rouge / sombre) */
.btn-white {
  background: var(--white);
  color: var(--action);
  border-color: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.btn-white:hover { background: rgba(255,255,255,.92); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.45);
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }

/* Tailles */
.btn-sm { padding:  9px 18px; font-size: var(--t-xs); }
.btn-lg { padding: 14px 30px; font-size: var(--t-base); }
.btn-xl { padding: 16px 36px; font-size: var(--t-md); border-radius: 14px; }

/* Bouton full-width */
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   SECTIONS
   ============================================================ */
.sec    { padding-block: var(--sec-py); }
.sec-sm { padding-block: var(--sec-py-sm); }

/* Alternance fond — 1 seule variation, très subtile */
.sec-white { background: var(--white); }
.sec-tinted { background: var(--ink-7); }
.sec-dark   { background: var(--ink-1); }
.sec-action { background: var(--action); }

/* Séparateur section */
.sec-divider {
  width: 100%;
  height: 1px;
  background: var(--ink-6);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?w=1800&q=75');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  /* Overlay sobre — pas de gradient coloré, juste du noir progressif */
  background: linear-gradient(
    to right,
    rgba(10,12,18,.78) 0%,
    rgba(10,12,18,.55) 55%,
    rgba(10,12,18,.20) 100%
  );
  z-index: 1;
}
.hero-bg::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--white), transparent);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
  padding-block: var(--sp-24) var(--sp-20);
}
/* Badge discret */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.85);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-6);
}
.hero-badge-dot { width: 5px; height: 5px; background: var(--action); border-radius: 50%; }

/* Titre hero */
.hero-title {
  font-size: var(--t-hero);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: var(--sp-5);
}
/* Accroche */
.hero-lead {
  font-size: var(--t-md);
  line-height: var(--lh-loose);
  color: rgba(255,255,255,.72);
  max-width: 460px;
  margin-bottom: var(--sp-10);
}
/* CTA hero */
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-14); }

/* Stats hero — discrets */
.hero-stats { display: flex; gap: var(--sp-10); }
.hero-stat dt {
  font-size: var(--t-xl);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: var(--ls-tight);
}
.hero-stat dd {
  font-size: var(--t-xs);
  color: rgba(255,255,255,.48);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-top: var(--sp-1);
}

/* ============================================================
   ICON CARDS — épurées, mono-chrome
   ============================================================ */
.icon-cards {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: var(--sp-4);
}
.icon-card {
  background: var(--white);
  border: 1px solid var(--ink-6);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-5) var(--sp-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-4);
  transition: border-color var(--dur) var(--ease),
              box-shadow   var(--dur) var(--ease),
              transform    var(--dur) var(--ease);
}
.icon-card:hover {
  border-color: var(--action);
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}
/* Cercle icône — NEUTRE, pas coloré */
.icon-wrap {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ink-7);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur);
  flex-shrink: 0;
}
.icon-wrap svg { width: 22px; height: 22px; color: var(--ink-2); stroke-width: 1.5; }
.icon-card:hover .icon-wrap { background: var(--action-lt); }
.icon-card:hover .icon-wrap svg { color: var(--action); }

.icon-card-title { font-size: var(--t-sm); font-weight: 600; color: var(--ink-1); line-height: 1.3; }
.icon-card-desc  { font-size: var(--t-xs); color: var(--ink-4); line-height: 1.55; }

/* ============================================================
   FEATURE ROWS — texte + icône/liste
   ============================================================ */
.feature-list { display: flex; flex-direction: column; gap: var(--sp-6); }
.feature-item { display: flex; gap: var(--sp-5); align-items: flex-start; }
.feature-num {
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--action);
  letter-spacing: var(--ls-wide);
  min-width: 28px;
  padding-top: 3px;
  flex-shrink: 0;
}
.feature-body h4 { margin-bottom: var(--sp-2); }
.feature-body p  { font-size: var(--t-sm); color: var(--ink-3); line-height: var(--lh-text); }

/* ============================================================
   BULLET LIST — style screenshot 2
   ============================================================ */
.bullet-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.bullet-item {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  font-size: var(--t-sm); color: var(--ink-3); line-height: var(--lh-text);
}
.bullet-dot {
  width: 6px; height: 6px; min-width: 6px;
  background: var(--action);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

/* ============================================================
   CARDS — génériques
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--ink-6);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: var(--sp-5) var(--sp-6); }
.card-tag {
  display: inline-block;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--ink-4);
  background: var(--ink-7);
  border: 1px solid var(--ink-6);
  padding: 3px 10px;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-3);
}
.card-title  { font-size: var(--t-lg); font-weight: 600; letter-spacing: var(--ls-base); margin-bottom: var(--sp-2); }
.card-desc   { font-size: var(--t-sm); color: var(--ink-3); line-height: var(--lh-text); }
.card-tags   { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }

/* ============================================================
   HOW TO HELP — 3 colonnes
   ============================================================ */
.help-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-5); }
.help-card {
  background: var(--white);
  border: 1px solid var(--ink-6);
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-4);
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur);
}
.help-card:hover {
  border-color: var(--action);
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}
/* Icône neutre */
.help-icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--r-lg);
  background: var(--ink-7);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur);
}
.help-icon-wrap svg { width: 22px; height: 22px; color: var(--ink-2); stroke-width: 1.5; }
.help-card:hover .help-icon-wrap { background: var(--action-lt); }
.help-card:hover .help-icon-wrap svg { color: var(--action); }
.help-title { font-size: var(--t-md); font-weight: 600; letter-spacing: var(--ls-base); }
.help-desc  { font-size: var(--t-sm); color: var(--ink-3); line-height: var(--lh-text); flex: 1; }

/* ============================================================
   BANDEAU RÉASSURANCE
   ============================================================ */
.reassurance-bar {
  background: var(--ink-7);
  border-top: 1px solid var(--ink-6);
  border-bottom: 1px solid var(--ink-6);
  padding-block: var(--sp-5);
}
.reassurance-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-8);
}
.reassurance-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--ink-3);
}
.reassurance-item svg { width: 16px; height: 16px; color: var(--action); stroke-width: 2; }

/* ============================================================
   DON & ADHÉSION — formulaires
   ============================================================ */
.form-card {
  background: var(--white);
  border: 1px solid var(--ink-6);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  overflow: hidden;
}
.form-card-header {
  background: var(--action);
  padding: var(--sp-5) var(--sp-8);
  color: var(--white);
}
.form-card-header h2 { font-size: var(--t-lg); font-weight: 600; margin-bottom: 3px; color: #fff !important; }
.form-card-header p  { font-size: var(--t-xs); color: rgba(255,255,255,.72); }
.form-card-body { padding: var(--sp-8); }

/* Grille montants */
.amounts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-2); margin-bottom: var(--sp-6); }
.amount-btn {
  padding: 12px var(--sp-3);
  border: 1.5px solid var(--ink-6);
  border-radius: var(--r);
  background: var(--white);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-1);
  text-align: center;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  line-height: 1.3;
}
.amount-btn small { display: block; font-size: var(--t-xs); font-weight: 400; color: var(--ink-4); margin-top: 2px; }
.amount-btn:hover { border-color: var(--action); color: var(--action); }
.amount-btn.active {
  border-color: var(--action);
  background: var(--action);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(232,66,74,.22);
}
.amount-btn.active small { color: rgba(255,255,255,.72); }

/* Champs */
.field { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.field-label {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--ink-4);
}
.field-input, .field-select, .field-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--ink-6);
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  color: var(--ink-1);
  background: var(--white);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  line-height: 1.5;
}
.field-input:focus, .field-select:focus, .field-textarea:focus {
  outline: none;
  border-color: var(--action);
  box-shadow: 0 0 0 3px var(--action-mid);
}
.field-input::placeholder { color: var(--ink-4); }
.field-textarea { resize: vertical; min-height: 110px; }
.fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

/* Bouton payer */
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: var(--t-base);
  font-weight: 700;
  background: var(--action);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(232,66,74,.24);
  transition: all var(--dur-fast) var(--ease);
  margin-bottom: var(--sp-3);
}
.submit-btn:hover {
  background: var(--action-dk);
  box-shadow: 0 5px 18px rgba(232,66,74,.32);
  transform: translateY(-1px);
}

/* Note sécurité */
.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: var(--t-xs);
  color: var(--ink-4);
}
.secure-note svg { width: 12px; height: 12px; }

/* Aside */
.form-aside { display: flex; flex-direction: column; gap: var(--sp-4); }
.aside-block {
  background: var(--white);
  border: 1px solid var(--ink-6);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
}
.aside-block-title {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: var(--sp-5);
}
.aside-item { display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-4); }
.aside-item:last-child { margin-bottom: 0; }
.aside-icon {
  width: 32px; height: 32px; min-width: 32px;
  background: var(--ink-7);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
}
.aside-icon svg { width: 15px; height: 15px; color: var(--ink-2); stroke-width: 1.6; }
.aside-item-text { font-size: var(--t-sm); color: var(--ink-3); line-height: 1.5; }
.aside-item-text strong { display: block; font-weight: 600; color: var(--ink-1); font-size: var(--t-sm); }

/* Checklist */
.check-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.check-row  { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--t-sm); color: var(--ink-2); }
.check-icon {
  width: 18px; height: 18px; min-width: 18px;
  background: var(--action);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
  flex-shrink: 0;
}
.check-icon svg { width: 9px; height: 9px; color: var(--white); }

/* Message feedback form */
.form-msg {
  display: none;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r);
  margin-bottom: var(--sp-4);
  font-size: var(--t-sm);
  line-height: 1.5;
}
.form-msg.ok    { background: #EEF9F4; color: #1A6645; border-left: 3px solid var(--accent); }
.form-msg.err   { background: var(--action-lt); color: var(--action-dk); border-left: 3px solid var(--action); }
.form-msg.warn  { background: #FEF9EC; color: #7A5500; border-left: 3px solid #F0B429; }


/* ============================================================
   PAGE HERO — mini hero partagé toutes pages internes
   ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.32);
}
.page-hero-content {
  position: relative; z-index: 1; width: 100%;
  padding-block: var(--sp-16) var(--sp-12);
}
.page-hero-eyebrow {
  font-size: var(--t-xs); font-weight: 600;
  letter-spacing: var(--ls-wider); text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: var(--sp-4);
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(var(--t-2xl), 4vw, var(--t-4xl));
  font-weight: 700; letter-spacing: var(--ls-tight);
  line-height: 1.15; max-width: 600px; margin-bottom: var(--sp-4);
}
.page-hero h1 em {
  font-family: var(--font-display);
  font-style: italic; font-weight: 400; color: rgba(255,255,255,.7);
}
.page-hero-desc {
  color: rgba(255,255,255,.6); font-size: var(--t-md);
  max-width: 520px; line-height: var(--lh-text);
}

/* ============================================================
   LAYOUTS RÉUTILISABLES
   ============================================================ */

/* Formulaire + aside */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-10); align-items: start;
  padding-block: var(--sp-16);
}
.form-layout-wide {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--sp-10); align-items: start;
  padding-block: var(--sp-16);
}

/* Stats 2 col — page qui-sommes-nous */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
.stat-box { border-radius: var(--r-lg); padding: var(--sp-6); border: 1px solid var(--ink-6); }
.stat-box-light  { background: var(--ink-7); }
.stat-box-dark   { background: var(--ink-1); }
.stat-box-action { background: var(--action); grid-column: 1 / -1; }
.stat-n { font-size: 2rem; font-weight: 700; letter-spacing: var(--ls-tight); line-height: 1; display: block; }
.stat-n-light  { color: var(--action); }
.stat-n-dark   { color: var(--white); }
.stat-n-action { font-size: 1.75rem; color: var(--white); }
.stat-l { font-size: var(--t-sm); margin-top: var(--sp-2); display: block; }
.stat-l-light  { color: var(--ink-3); }
.stat-l-dark   { color: rgba(255,255,255,.6); }
.stat-l-action { color: rgba(255,255,255,.65); }

/* Valeurs 4 colonnes */
.vals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

/* Actions list — nos-actions */
.actions-list { display: flex; flex-direction: column; gap: var(--sp-5); }
.action-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: var(--sp-6); align-items: flex-start;
  background: var(--white); border: 1px solid var(--ink-6);
  border-radius: var(--r-xl); padding: var(--sp-7) var(--sp-8);
}
.action-num-wrap {
  width: 52px; height: 52px; background: var(--ink-7);
  border-radius: var(--r-lg); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.action-num { font-size: var(--t-lg); font-weight: 700; color: var(--action); line-height: 1; }
.action-body h3 { margin-bottom: var(--sp-3); }

/* Info card (priorité / présence) */
.info-card {
  background: var(--white); border: 1px solid var(--ink-6);
  border-radius: var(--r-xl); padding: var(--sp-8);
}
.info-card-icon {
  width: 44px; height: 44px; background: var(--ink-7);
  border-radius: var(--r-lg); display: flex;
  align-items: center; justify-content: center; margin-bottom: var(--sp-5);
}
.info-card-icon svg { width: 20px; height: 20px; color: var(--ink-2); stroke-width: 1.5; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--action);
  padding-block: var(--sp-20);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(255,255,255,.06), transparent);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-section .t-h2  { color: var(--white); margin-bottom: var(--sp-4); }
.cta-section .t-lead { color: rgba(255,255,255,.75); max-width: 430px; margin-inline: auto; margin-bottom: var(--sp-8); }
.cta-btns { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--ink-1);
  padding-block: var(--sp-20) var(--sp-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.5fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-16);
}
.footer-logo { display: block; margin-bottom: var(--sp-5); }
.footer-logo img { height: 40px; width: auto; }
.footer-desc {
  font-size: var(--t-sm);
  color: rgba(255,255,255,.38);
  line-height: var(--lh-text);
}
.footer-col h4 {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: var(--sp-4);
}
/* h4 directement dans les divs footer (sans .footer-col) */
#site-footer .footer-grid > div > h4 {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: var(--sp-4);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.footer-links a,
.footer-links span {
  font-size: var(--t-sm);
  color: rgba(255,255,255,.42);
  transition: color var(--dur-fast);
  line-height: 1.4;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: var(--sp-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--t-xs);
  color: rgba(255,255,255,.25);
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.footer-bottom a { color: rgba(255,255,255,.25); }
.footer-bottom a:hover { color: rgba(255,255,255,.65); }

/* ============================================================
   TOAST
   ============================================================ */
.tdv-toast {
  position: fixed;
  bottom: var(--sp-6); right: var(--sp-6);
  background: var(--ink-1);
  color: var(--white);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-lg);
  font-size: var(--t-sm); font-weight: 500;
  box-shadow: var(--sh-xl);
  z-index: 9999;
  transform: translateY(10px); opacity: 0;
  transition: all var(--dur) var(--ease);
  max-width: 320px;
}
.tdv-toast.show    { transform: translateY(0); opacity: 1; }
.tdv-toast.success { border-left: 3px solid var(--accent); }
.tdv-toast.error   { border-left: 3px solid var(--action); }

/* ============================================================
   ANIMATIONS REVEAL
   ============================================================ */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.js-ready .reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s !important; }
.d2 { transition-delay: .16s !important; }
.d3 { transition-delay: .24s !important; }
.d4 { transition-delay: .32s !important; }

/* ============================================================
   RESPONSIVE — 4 breakpoints propres
   1024px · 768px · 480px · 360px
   ============================================================ */

/* ── 1024px : tablette paysage ── */
@media (max-width: 1024px) {
  :root { --sec-py: var(--sp-16); }
  .container     { padding-inline: var(--sp-8); }
  .icon-cards    { grid-template-columns: repeat(3, 1fr); }
  .help-grid     { grid-template-columns: repeat(2, 1fr); }
  .grid-3        { grid-template-columns: repeat(2, 1fr); }
  .grid-5        { grid-template-columns: repeat(3, 1fr); }
  .vals-grid     { grid-template-columns: repeat(2, 1fr) !important; }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .page-hero     { min-height: 220px; }
  .form-layout,
  .form-layout-wide { grid-template-columns: 1fr; }
  .form-aside    { display: none; }
  #main-nav a    { padding: 6px 9px; font-size: .875rem; }
}

/* ── 768px : tablette portrait / mobile paysage ── */
@media (max-width: 768px) {
  :root {
    --sec-py:    var(--sp-12);
    --sec-py-sm: var(--sp-8);
    --header-h:  60px;
  }

  /* Header mobile */
  #main-nav {
    display: none; position: fixed; inset: 0;
    background: var(--white); flex-direction: column;
    justify-content: center; align-items: center;
    gap: var(--sp-2); z-index: 199;
    padding: var(--sp-20) var(--sp-6) var(--sp-10); overflow-y: auto;
  }
  #main-nav.open                         { display: flex; }
  #main-nav a                            { font-size: var(--t-lg); padding: var(--sp-4) var(--sp-8); width: 100%; text-align: center; border-radius: var(--r-lg); }
  .burger                                { display: flex; }
  .header-actions .btn:not(.btn-primary) { display: none; }
  .header-actions .btn-primary           { font-size: var(--t-xs); padding: 8px 14px; }

  .container { padding-inline: var(--sp-5); }

  /* Hero accueil */
  .hero               { min-height: 88svh; align-items: flex-end; }
  .hero-content       { padding-block: var(--sp-14) var(--sp-14); max-width: 100%; }
  .hero-title         { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .hero-lead          { font-size: var(--t-base); max-width: 100%; margin-bottom: var(--sp-8); }
  .hero-ctas          { flex-direction: column !important; align-items: stretch !important; gap: var(--sp-3) !important; flex-wrap: wrap !important; }
  .hero-ctas .btn     { width: 100% !important; justify-content: center !important; white-space: normal !important; }
  .hero-stats         { flex-wrap: wrap; gap: var(--sp-5); }
  .hero-stat          { flex: 1 1 calc(50% - var(--sp-3)); }

  /* Sections */
  .sec-head           { margin-bottom: var(--sp-6); }
  .sec-head .t-lead   { font-size: var(--t-base); max-width: 100%; }

  /* Grilles → 1 col */
  .grid-2, .grid-3, .grid-5 { grid-template-columns: 1fr; }
  .icon-cards         { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
  .help-grid          { grid-template-columns: 1fr; }
  .vals-grid          { grid-template-columns: repeat(2, 1fr) !important; }
  .stats-grid         { grid-template-columns: 1fr 1fr; }

  /* Page hero interne */
  .page-hero                { min-height: 180px; }
  .page-hero-content        { padding-block: var(--sp-10) var(--sp-8) !important; }
  .page-hero h1             { font-size: clamp(1.5rem, 6vw, 2.2rem); max-width: 100%; }
  .page-hero-desc           { font-size: var(--t-base); max-width: 100%; }

  /* Actions */
  .action-item        { grid-template-columns: 52px 1fr; gap: var(--sp-4); padding: var(--sp-5); }

  /* Formulaires */
  .form-layout,
  .form-layout-wide   { grid-template-columns: 1fr; padding-block: var(--sp-10); }
  .form-aside         { display: none !important; }
  .fields-row         { grid-template-columns: 1fr; }
  .amounts-grid       { grid-template-columns: repeat(2, 1fr); }
  .form-card-body     { padding: var(--sp-5); }
  .form-card-header   { padding: var(--sp-4) var(--sp-5); }

  /* Réassurance */
  .reassurance-inner  { gap: var(--sp-4); flex-wrap: wrap; }
  .reassurance-item   { flex: 1 1 calc(50% - var(--sp-4)); }

  /* CTA */
  .cta-section        { padding-block: var(--sp-12); }
  .cta-btns           { flex-direction: column; align-items: stretch; gap: var(--sp-3); }
  .cta-btns .btn      { width: 100%; justify-content: center; }

  /* Footer */
  .footer-grid        { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer-bottom      { flex-direction: column; text-align: center; gap: var(--sp-2); }
}

/* ── 480px : mobile standard ── */
@media (max-width: 480px) {
  :root { --sec-py: var(--sp-10); --sec-py-sm: var(--sp-8); --header-h: 56px; }

  #site-header                              { height: 56px; }
  .site-logo img, .site-logo .custom-logo   { height: 32px !important; }
  .container                                { padding-inline: var(--sp-4); }

  /* Hero */
  .hero               { min-height: 92svh; }
  .hero-content       { padding-block: var(--sp-10); }
  .hero-title         { font-size: clamp(1.7rem, 8.5vw, 2.1rem); letter-spacing: -.02em; }
  .hero-badge         { font-size: 10px; padding: 4px 10px; }
  .hero-lead          { font-size: var(--t-sm); }
  .hero-stats         { flex-direction: row; flex-wrap: nowrap; gap: var(--sp-6); }
  .hero-stat          { flex: 1 1 auto; }

  /* Typo */
  h1, .t-h1           { font-size: clamp(1.5rem, 8vw, 2rem); }
  h2, .t-h2           { font-size: clamp(1.4rem, 7vw, 1.8rem); }
  .t-lead             { font-size: var(--t-base); }
  .page-hero h1       { font-size: clamp(1.35rem, 7vw, 1.8rem); }

  /* Grilles */
  .icon-cards         { grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
  .vals-grid          { grid-template-columns: 1fr !important; }
  .stats-grid         { grid-template-columns: 1fr 1fr; }
  .amounts-grid       { grid-template-columns: 1fr 1fr; }

  /* Cards */
  .icon-card          { padding: var(--sp-4) var(--sp-3); }
  .card-img           { height: 160px; }

  /* Actions */
  .action-item        { grid-template-columns: 1fr; gap: var(--sp-3); padding: var(--sp-5); }
  .action-num-wrap    { width: 44px; height: 44px; }

  /* Forms */
  .form-card-body     { padding: var(--sp-4); }

  .footer-logo img    { height: 32px; }
  .sec-head           { margin-bottom: var(--sp-5); }
}

/* ── 360px : très petit mobile ── */
@media (max-width: 360px) {
  .container          { padding-inline: var(--sp-3); }
  .hero-title         { font-size: 1.6rem; }
  .btn                { padding: 10px 16px; font-size: var(--t-xs); }
  .icon-cards         { grid-template-columns: 1fr; }
  .amounts-grid       { grid-template-columns: 1fr; }
}

/* ── Paysage mobile ── */
@media (max-width: 768px) and (orientation: landscape) {
  .hero               { min-height: 100svh; }
  .hero-content       { padding-block: var(--sp-8); }
  #main-nav           { flex-direction: row; flex-wrap: wrap; padding: var(--sp-14) var(--sp-6) var(--sp-6); }
  #main-nav a         { font-size: var(--t-base); padding: var(--sp-2) var(--sp-4); width: auto; }
}

/* ============================================================
   PAGE CONFIRMATION (Stripe succès / annulation)
   ============================================================ */
.confirmation-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--ink-7);
  padding-block: var(--sp-20);
}
.confirmation-card {
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--ink-6);
  border-radius: var(--r-2xl);
  padding: var(--sp-12) var(--sp-10);
  box-shadow: var(--sh-xl);
}
.confirmation-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-6);
}
.confirmation-icon--success {
  background: var(--accent-lt);
  color: var(--accent);
}
.confirmation-icon--cancel {
  background: var(--action-lt);
  color: var(--action);
}
.confirmation-title {
  font-size: clamp(var(--t-xl), 4vw, var(--t-2xl));
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--sp-4);
  color: var(--ink-1);
}
.confirmation-lead {
  font-size: var(--t-base);
  color: var(--ink-3);
  line-height: var(--lh-text);
  margin-bottom: var(--sp-4);
}
.confirmation-ref {
  font-size: var(--t-sm);
  color: var(--ink-4);
  background: var(--ink-7);
  border-radius: var(--r);
  padding: var(--sp-2) var(--sp-4);
  display: inline-block;
  margin-bottom: var(--sp-8);
}
.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  margin-bottom: var(--sp-8);
}
.confirmation-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: var(--t-xs);
  color: var(--ink-5);
}
@media (max-width: 480px) {
  .confirmation-card { padding: var(--sp-8) var(--sp-5); }
  .confirmation-actions { flex-direction: column; }
  .confirmation-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   ELEMENTOR COMPATIBILITY
   ============================================================ */
.elementor-section { padding: 0 !important; }
.elementor-section .elementor-container { max-width: var(--container); padding-inline: var(--sp-6); }
.elementor-widget-wrap { gap: 0; }
.elementor-widget-heading h2.elementor-heading-title { font-weight: 600; letter-spacing: var(--ls-snug); }
.elementor-widget-heading h3.elementor-heading-title { font-weight: 600; }
.elementor-widget-button .elementor-button {
  border-radius: var(--r-full) !important;
  font-weight: 600 !important;
  font-family: var(--font-body) !important;
  transition: all var(--dur-fast) var(--ease) !important;
}

.field-checkgroup {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.field-check {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--t-sm);
  color: var(--ink-2);
  cursor: pointer;
  padding: 10px var(--sp-4);
  border: 1.5px solid var(--ink-6);
  border-radius: var(--r);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.field-check:hover {
  border-color: var(--action);
  background: var(--action-lt);
}
.field-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  accent-color: var(--action);
  cursor: pointer;
}
.field-check:has(input:checked) {
  border-color: var(--action);
  background: var(--action-lt);
  font-weight: 600;
  color: var(--action);
}