/* ================================================================
   Flairia — Landing Page Pilote
   Style : "Northern Authority" — Épuré, sobre, confiance méritée
   Palette : Vert forêt #03793f + Blanc + Bleu ardoise
   Typo   : Libre Baskerville (titres) + DM Sans (corps) + Outfit (badges)
   ================================================================ */

/* --- Variables ------------------------------------------------- */
:root {
  --pri:       #03793f;
  --pri-dim:   #025e2f;
  --pri-light: #E6F4EE;
  --fond:      #FFFFFF;
  --fond2:     #F4F8FC;
  --fond3:     #EAF4EE;
  --texte:     #0D1B2A;
  --texte2:    #4A6680;
  --bord:      #D6E4EF;
  --accent:    #D4900A;
  --shadow:    0 2px 20px rgba(3,121,63,0.08);
  --shadow-lg: 0 8px 40px rgba(13,27,42,0.12);
  --radius:    8px;
  --radius-lg: 16px;
  --trans:     all 0.25s ease;
}

/* --- Reset & Base ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--texte);
  background: var(--texte);  /* noir lateral de chaque cote */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Bande blanche centrale par-dessus le fond noir */
.site-header,
.hero,
.method,
.deliverables,
.benefits,
.bio { background: var(--fond); max-width: 1400px; margin-left: auto; margin-right: auto; }

.form-section { max-width: 1400px; margin-left: auto; margin-right: auto; }
.site-footer { max-width: 1400px; margin-left: auto; margin-right: auto; }

/* Les separateurs de section aussi */
.section-dots { max-width: 1400px; margin-left: auto; margin-right: auto; background: var(--fond); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- Conteneur ------------------------------------------------- */
.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* --- Typographie ----------------------------------------------- */
h1, h2, h3 {
  font-family: 'Libre Baskerville', Georgia, serif;
  line-height: 1.2;
  color: var(--texte);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 700; }

.brand-accent { color: var(--pri); font-weight: 700; }

/* --- Badges ---------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pri);
  background: var(--pri-light);
  border: 1px solid rgba(3,121,63,0.18);
  padding: 0.35em 0.9em;
  border-radius: 100px;
}

.badge-gold {
  color: var(--accent);
  background: #FEF5E4;
  border-color: rgba(212,144,10,0.2);
}

/* --- Boutons --------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
  background: var(--pri);
  color: #fff;
  padding: 0.85em 2em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--trans);
  box-shadow: 0 4px 16px rgba(3,121,63,0.25);
}

.btn-primary:hover {
  background: var(--pri-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(3,121,63,0.30);
}

.btn-primary small {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.85;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--pri);
  border: 1.5px solid var(--pri);
  padding: 0.7em 1.6em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--trans);
}

.btn-outline:hover {
  background: var(--pri-light);
  transform: translateY(-1px);
}

/* --- HEADER ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bord);
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo petit dans le header — visible quand hero-logo disparait */
.header-logo-link {
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.header-logo-link.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.header-logo-img { height: 36px; width: auto; }

/* Sur page-metadonnees : logo toujours visible (pas de hero-logo) */
body.page-meta .header-logo-link {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Logo hero — version grand format */
.hero-brand { margin-bottom: 2.5rem; }
.hero-logo {
  height: 140px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(3,121,63,0.18));
  animation: hero-logo-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes hero-logo-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0)     scale(1);    }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-toggle {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--texte2);
  border: 1.5px solid var(--bord);
  border-radius: 4px;
  padding: 0.3em 0.75em;
  transition: var(--trans);
}

.lang-toggle:hover {
  color: var(--pri);
  border-color: var(--pri);
}

/* --- HERO ------------------------------------------------------ */
.hero {
  background: var(--fond);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(3,121,63,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.hero-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: #E63946;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45em 1.2em;
  border-radius: 4px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

/* Double affirmation hero */
.hero-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 100%;
  width: 100%; /* force la grille à occuper toute la largeur de hero-content */
}
.hero-dual {
  position: relative;
}
.hero-dual::after {
  content: '';
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 3px;
  background: var(--pri);
  transform: translateX(-50%);
}
.hero-block h1 {
  font-size: 1.55rem;
  line-height: 1.4;
  max-width: none;
  text-align: center;
}
.hero-block-a {
  padding-right: 2rem;
  border-right: none;
}
.hero-block-b {
  padding-left: 2rem;
  color: var(--texte);
}
.hero-content { max-width: min(1160px, 92%); margin: 0 auto; width: 100%; }

@media (max-width: 768px) {
  .hero-dual {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-dual::after {
    top: auto;
    bottom: auto;
    left: 10%;
    right: 10%;
    width: auto;
    height: 3px;
    top: 50%;
    transform: translateY(-50%);
  }
  .hero-block-a {
    padding-right: 0;
    padding-bottom: 1.5rem;
  }
  .hero-block-b { padding-left: 0; padding-top: 1.5rem; }
  .hero-block h1 { font-size: 1.35rem; }
}

.hero-subtitle {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--texte2);
  max-width: min(1160px, 92%);
  text-align: center;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* --- SEPARATEUR SECTIONS : ligne noire + points ronds alternés - */
.section-dots {
  position: relative;
  height: 18px;
  overflow: hidden;   /* empeche la ligne de deborder dans le noir */
  padding: 0 4%;      /* marge interne pour que la ligne ne touche pas les bords */
}
/* Ligne continue epaisse — feeling "data line" analogue au logo */
.section-dots::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2.5px;
  background: #0D1B2A;
  transform: translateY(-50%);
}
/* Points ronds sur la ligne : 2 noirs, 2 verts, repeat */
.section-dots::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, #0D1B2A 6px, transparent 6px),
    radial-gradient(circle, #0D1B2A 6px, transparent 6px),
    radial-gradient(circle, var(--pri) 6px, transparent 6px),
    radial-gradient(circle, var(--pri) 6px, transparent 6px);
  background-size: 160px 18px;
  background-position: 0 0, 40px 0, 80px 0, 120px 0;
  background-repeat: repeat-x;
}

/* --- METHODE --------------------------------------------------- */
.method {
  background: var(--fond);
  padding: 5rem 0;
}

.method-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}

.method-text { display: flex; flex-direction: column; gap: 1.25rem; }

.method-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-style: italic;
}

.method-text p { color: var(--texte2); font-size: 1.15rem; line-height: 1.75; }

.method-link {
  color: var(--pri);
  background: none;
  font-weight: 700;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0;
  border-radius: 0;
  transition: var(--trans);
  text-decoration: none;
}

.method-link { margin-top: auto; align-self: flex-start; margin-bottom: 1.5rem; }
.method-link:hover { color: var(--pri-dim); text-decoration: underline; }

.envelope-visual {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.envelope-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  border: 1.5px solid transparent;
  transition: var(--trans);
}

.envelope-item.oui { border-color: rgba(3,121,63,0.2); }
.envelope-item.non { border-color: rgba(204,34,34,0.18); opacity: 0.9; }

.envelope-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.envelope-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  position: relative;
  z-index: 1;
}

.oui .envelope-icon { background: var(--pri-light); color: var(--pri); }
.non .envelope-icon { background: #FDECEA; color: #CC2222; }

/* Slash diagonal rouge sur les icônes JAMAIS */
.non .envelope-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    transparent calc(50% - 1.5px),
    #CC2222 calc(50% - 1.5px),
    #CC2222 calc(50% + 1.5px),
    transparent calc(50% + 1.5px)
  );
  border-radius: 50%;
  pointer-events: none;
}

.envelope-item-text strong { display: block; font-size: 0.9rem; margin-bottom: 0.2em; }
.envelope-item-text span { font-size: 0.85rem; color: var(--texte2); }

.oui-label, .non-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.oui-label { color: var(--pri); background: var(--pri-light); }
.non-label { color: #CC2222; background: #FDECEA; }

/* --- LIVRABLES ------------------------------------------------- */
.deliverables {
  background: var(--fond);
  padding: 5rem 0;
}

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: var(--texte2); font-size: 1.15rem; max-width: 580px; margin: 0 auto; }

/* ---- TIMELINE (4 colonnes, sans ligne decorative) ---- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto 1fr auto; /* header, description, result */
  column-gap: 2rem;
  row-gap: 0;
  align-items: stretch;
}

/* Item timeline — subgrid pour aligner les rangees entre colonnes */
.timeline-item {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3; /* header, description, result */
  position: relative;
}

/* ---- PHASE CARDS ---- */
.phase-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: 1rem;
  width: 100%;
}

.phase-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.phase-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--texte);
  color: #fff;
  font-family: 'Libre Baskerville', serif;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Alternance noir - vert - noir - vert */
.phase-card.phase-2 .phase-number { background: var(--pri); }
.phase-card.phase-3-auto .phase-number { background: var(--texte); }
.phase-card.phase-4 .phase-number { background: var(--pri); }

.phase-title { font-family: 'Libre Baskerville', serif; font-size: 1.15rem; }
.phase-sub { font-family: 'Outfit', sans-serif; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; color: var(--texte2); letter-spacing: 0.05em; }

.phase-card p { color: var(--texte2); font-size: 1.05rem; line-height: 1.7; }

.phase-result {
  background: var(--pri-light);
  border-left: 3px solid var(--pri);
  padding: 0.85rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--pri-dim);
  min-height: 4.5rem; /* hauteur uniforme pour aligner visuellement */
  display: flex;
  align-items: center;
}

.deliverable-items { display: flex; flex-direction: column; gap: 1rem; }

.deliverable-item {
  padding: 1.25rem;
  background: var(--fond);
  border-radius: var(--radius);
  border-left: 3px solid var(--pri);
}

.deliverable-item h4 {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.95rem;
  margin-bottom: 0.4em;
}

.deliverable-item p { font-size: 0.95rem; color: var(--texte2); }

/* --- BENEFICES ------------------------------------------------- */
.benefits {
  background: var(--fond);
  padding: 5rem 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.benefits-col { display: flex; flex-direction: column; gap: 1.25rem; }

.benefits-col h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--bord);
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.benefit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pri);
  flex-shrink: 0;
  margin-top: 0.55em;
}

.benefit-item p { font-size: 1.08rem; color: var(--texte2); line-height: 1.7; }

.benefits-quote {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem;
  background: var(--fond);
  border-radius: var(--radius-lg);
  margin-top: 1rem;
}

.benefits-quote blockquote {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--texte);
  line-height: 1.6;
}

.benefits-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pri);
  font-style: normal;
}

/* --- BIO ------------------------------------------------------- */
.bio {
  background: var(--fond);
  padding: 5rem 0;
}

.bio-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: center;
}

.bio-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.bio-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #fff;
  outline: 6px solid var(--pri);
  outline-offset: 0px;
  box-shadow: var(--shadow-lg);
}

.bio-text { display: flex; flex-direction: column; gap: 1.25rem; }
.bio-text h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.bio-text p { color: var(--texte2); font-size: 1.12rem; line-height: 1.75; }

.bio-signature {
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--texte);
  border-top: 1px solid var(--bord);
  padding-top: 1rem;
}

.bio-credentials {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 220px;
}

.cred-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--texte2);
  background: #fff;
  border: 1px solid var(--bord);
  padding: 0.35em 0.85em;
  border-radius: 100px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

/* --- FORMULAIRE ------------------------------------------------ */
.form-section {
  background: var(--pri);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.form-section::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.form-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.form-pitch { display: flex; flex-direction: column; gap: 1.25rem; }

.form-pitch h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
}

.form-pitch p { color: rgba(255,255,255,0.7); font-size: 1rem; }

.form-offer {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.offer-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}

.offer-check {
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.15em;
}

.pilot-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.03em;
  font-family: 'Outfit', sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  padding: 0.8em 1em;
  color: var(--texte);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: var(--trans);
  width: 100%;
}

.form-group select option { background: #fff; color: var(--texte); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--texte2); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--pri-dim);
  box-shadow: 0 0 0 3px rgba(3,121,63,0.15);
  background: #fff;
}

.form-group textarea { resize: vertical; min-height: 90px; }

.btn-submit {
  grid-column: 1 / -1;
  background: #fff;
  color: var(--pri);
  padding: 1em 2.5em;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: var(--trans);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background: var(--pri-light);
  color: var(--pri-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-lg);
  color: #fff;
  font-size: 1.05rem;
  display: none;
}

.form-success.visible { display: block; }

/* --- FOOTER ---------------------------------------------------- */
.site-footer {
  background: var(--fond);
  border-top: 1px solid var(--bord);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo img { height: 30px; }

.footer-copy {
  font-size: 0.85rem;
  color: var(--texte2);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--texte2);
  transition: var(--trans);
}

.footer-links a:hover { color: var(--texte); }

.footer-lang {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--trans);
}

.footer-lang:hover { color: var(--pri); }

/* --- ANIMATIONS ------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- RESPONSIVE ------------------------------------------------ */
@media (max-width: 900px) {
  .method-inner,
  .benefits-grid,
  .bio-inner,
  .form-inner { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Timeline passe en vertical sur mobile */
  .timeline {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1.5rem;
  }

  /* Fix subgrid : on remplace par block/flex pour éviter l'effondrement des rows */
  .timeline-item {
    display: block;
    padding-bottom: 0;
    grid-row: auto;
    opacity: 1; /* les items sont visibles dès le chargement sur mobile */
    transform: none;
  }
  .phase-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    grid-row: auto;
    grid-template-rows: unset;
  }

  .method-inner { gap: 2rem; }

  .bio-inner { text-align: center; }
  .bio-photo-wrap { margin: 0 auto; }
  .bio-credentials { justify-content: center; }

  .form-inner { gap: 2.5rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .pilot-form { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: 1; }

  .hero { padding: 4rem 0 3.5rem; }

  .benefits-quote { padding: 1.75rem; }

  .site-header .container { gap: 0.75rem; }
  .hero-logo { height: 100px; }

  /* Bouton nav réduit sur mobile — proportionnel au logo */
  .header-nav .btn-primary {
    padding: 0.45em 0.9em;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  .header-nav .btn-primary small { display: none; }
}
