/* ============================================
   MISSION AIDANT — style.css
   Thème : Sauge & Ardoise
   Palette : ardoise #2d3e50 | sauge #7fb5a0 | crème #f5f7f4
   Typo : Inter (corps/nav) + Lora (titres)
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --ardoise:       #2d3e50;
  --ardoise-light: #3d5166;
  --ardoise-dark:  #1e2d3d;
  --sauge:         #7fb5a0;
  --sauge-light:   #a8cfc3;
  --sauge-dark:    #5a9480;
  --cream:         #f5f7f4;
  --cream-dark:    #e8ede8;
  --white:         #ffffff;
  --text:          #1a2530;
  --text-mid:      #4a5d6e;
  --text-light:    #7a8f9e;
  --border:        #dde5e0;

  --font-title: 'Lora', Georgia, serif;
  --font-body:  'Inter', Helvetica, Arial, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 4px rgba(45,62,80,0.08);
  --shadow-md: 0 4px 20px rgba(45,62,80,0.10);
  --transition: 0.22s ease;
  --container: 1140px;
  --nav-h: 64px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.text-center { text-align: center; }

/* ---- NAVIGATION ---- */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--ardoise);
  height: var(--nav-h);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-brand {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.6);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--sauge-light); }

.nav-links .nav-cta {
  background: var(--sauge);
  color: var(--ardoise-dark);
  font-weight: 600;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.nav-links .nav-cta:hover { background: var(--sauge-light); color: var(--ardoise-dark); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- HERO ---- */
.hero {
  background: var(--cream);
  padding: calc(var(--nav-h) + 4.5rem) 0 4rem;
  border-bottom: 1px solid var(--cream-dark);
  min-height: 480px;
  display: flex;
  align-items: center;
}

.hero-surtitle {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sauge-dark);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 600;
  color: var(--ardoise);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  max-width: 680px;
}

/* ---- PAGE HERO ---- */
.page-hero {
  background: var(--ardoise);
  padding: calc(var(--nav-h) + 3rem) 0 2.75rem;
}

.page-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--sauge);
  color: var(--ardoise-dark);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--sauge-dark); color: var(--white); transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--sauge);
  color: var(--sauge-dark);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.72rem 1.8rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.btn-outline:hover { background: var(--sauge); color: var(--ardoise-dark); }

/* ---- INTRO ---- */
.intro { background: var(--white); }

.intro-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 5rem;
  align-items: center;
}

.intro-logo img {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
}

.intro-text p {
  color: var(--text-mid);
  font-size: 1.02rem;
  margin-bottom: 1rem;
}

/* ---- STEPS ---- */
.etapes { background: var(--cream); }

.steps-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  list-style: none;
}

.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.step:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.step-num {
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--sauge);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step-content p { font-size: 0.95rem; color: var(--text-mid); }

/* ---- QUOTE BAND ---- */
.quote-band {
  background: var(--ardoise);
  padding: 3.5rem 0;
}

.main-quote {
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-style: italic;
  font-weight: 400;
  color: var(--sauge-light);
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ---- SECTION TITLE ---- */
.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--ardoise);
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

/* ---- CONTENT PAGES ---- */
.content-section { background: var(--white); }

.prose { margin-bottom: 1.5rem; }
.prose p { margin-bottom: 1rem; font-size: 1rem; color: var(--text-mid); line-height: 1.8; }

.divider {
  width: 48px;
  height: 2px;
  background: var(--sauge);
  border-radius: 2px;
  margin: 2.5rem 0;
}

/* ---- PHOTO À PROPOS ---- */
.apropos-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 2rem;
}

.apropos-photo {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.apropos-photo img {
  display: block;
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  object-position: top center;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-md);
}

.apropos-content .section-title { margin-top: 0; }

@media (max-width: 760px) {
  .apropos-grid { display: block; }
  .apropos-photo { position: static; margin-bottom: 2rem; }
  .apropos-photo img { max-width: 180px; aspect-ratio: 1/1; object-position: top; margin: 0 auto; border-radius: 50%; }
}

/* ---- LISTS ---- */
.check-list {
  margin: 0.75rem 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.check-list li {
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.98rem;
  color: var(--text-mid);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.58em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sauge);
}

.tnd-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0 1.5rem 0;
  padding: 1.5rem 2rem;
  background: var(--cream);
  border-left: 3px solid var(--sauge);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.tnd-list li {
  padding-left: 1.2rem;
  position: relative;
  font-size: 0.98rem;
  color: var(--text-mid);
}
.tnd-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.58em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sauge);
}

/* ---- CARDS (TND) ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ardoise);
  margin-bottom: 0.6rem;
}
.card p { font-size: 0.9rem; color: var(--text-light); }

/* ---- HIGHLIGHT BOX ---- */
.highlight-box {
  background: var(--cream);
  border-left: 3px solid var(--sauge);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
}
.highlight-box p { font-size: 0.98rem; color: var(--text-mid); line-height: 1.8; }
.highlight-box strong { color: var(--ardoise); }

/* ---- INFO BOX ---- */
.info-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin: 2rem 0;
}
.info-box-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ardoise);
  margin-bottom: 0.6rem;
}

/* ---- TARIF BLOCKS ---- */
.tarif-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.tarif-block {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
}
.tarif-block h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ardoise);
  margin-bottom: 1rem;
}
.tarif-icon { font-size: 1.6rem; margin-bottom: 0.6rem; }

/* ---- CTA BOX ---- */
.cta-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
  margin-top: 2.5rem;
}
.cta-text {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ardoise);
  margin-bottom: 0.6rem;
}

/* ---- LINK INLINE ---- */
.link-inline {
  color: var(--sauge-dark);
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  transition: opacity var(--transition);
}
.link-inline:hover { opacity: 0.7; }

/* ---- RGPD ---- */
.rgpd-notice {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}
.rgpd-notice strong { color: var(--ardoise); }

/* ---- FORM EMBED ---- */
.form-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.form-embed iframe { display: block; width: 100%; min-height: 1100px; border: none; }

/* ---- FOOTER ---- */
.footer {
  background: var(--ardoise-dark);
  color: rgba(255,255,255,0.55);
  padding: 3rem 0 2rem;
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}
.footer-brand {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--sauge-light);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.footer-legal {
  margin-top: 0.5rem;
  font-size: 0.76rem;
  opacity: 0.4;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  width: 100%;
}
.footer-nav a {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--sauge-light); }

/* ---- ANIMATIONS ---- */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeIn 0.65s ease forwards;
}
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.delay-1 { animation-delay: 0.12s; transition-delay: 0.08s; }
.delay-2 { animation-delay: 0.24s; transition-delay: 0.16s; }
.delay-3 { animation-delay: 0.36s; transition-delay: 0.24s; }
.delay-4 { animation-delay: 0.48s; transition-delay: 0.32s; }

@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

/* ================================================
   RESPONSIVE — mobile-first optimisé
   Breakpoints : 960px (tablette) | 640px (mobile)
================================================ */

/* ---- TABLETTE ---- */
@media (max-width: 960px) {

  /* Layout intro */
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .intro-logo { text-align: center; }
  .intro-logo img { margin: 0 auto; max-width: 260px; }

  /* Steps : 2 colonnes */
  .steps-list { grid-template-columns: 1fr 1fr; }

  /* Tarifs : 1 colonne */
  .tarif-blocks { grid-template-columns: 1fr; }

  /* À propos : stack vertical */
  .apropos-grid { display: block; }
  .apropos-photo {
    position: static;
    margin-bottom: 2rem;
    text-align: center;
  }
  .apropos-photo img {
    max-width: 220px;
    aspect-ratio: 1 / 1;
    object-position: top;
    margin: 0 auto;
    border-radius: 50%;
  }
}

/* ---- MOBILE ---- */
@media (max-width: 640px) {

  :root { --nav-h: 56px; }

  /* Nav hamburger */
  .nav-brand { font-size: 0.8rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--ardoise-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 2rem;
    gap: 0.15rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 0.92rem;
    padding: 0.75rem 1rem;
    width: 100%;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.active { color: var(--sauge-light); }
  .nav-links .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    background: var(--sauge);
    color: var(--ardoise-dark);
    font-weight: 600;
    border-bottom: none;
  }

  /* Hero */
  .hero {
    padding: calc(var(--nav-h) + 2.5rem) 0 2.5rem;
    min-height: auto;
  }
  .hero-surtitle { font-size: 0.68rem; }
  .hero-title { font-size: 1.85rem; margin-bottom: 1.25rem; }
  .btn-primary, .btn-outline {
    width: 100%;
    text-align: center;
    padding: 0.9rem 1.5rem;
  }

  /* Page hero */
  .page-hero { padding: calc(var(--nav-h) + 2rem) 0 2rem; }
  .page-title { font-size: 1.65rem; }
  .page-subtitle { font-size: 0.92rem; }

  /* Sections */
  .section { padding: 2.5rem 0; }

  /* Intro */
  .intro-logo img { max-width: 200px; }
  .intro-text p { font-size: 0.97rem; }

  /* Steps : 1 colonne */
  .steps-list {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  .step { padding: 1.25rem; }
  .step-num { font-size: 2rem; margin-bottom: 0.5rem; }
  .step-content p { font-size: 0.92rem; }

  /* Quote */
  .quote-band { padding: 2.5rem 0; }
  .main-quote { font-size: 1.1rem; }

  /* Titres sections */
  .section-title { font-size: 1.4rem; margin-bottom: 1rem; }

  /* Prose */
  .prose p { font-size: 0.97rem; }

  /* Cards TND */
  .cards-grid { grid-template-columns: 1fr; gap: 1rem; }
  .card { padding: 1.25rem; }

  /* Highlight / info boxes */
  .highlight-box { padding: 1.25rem 1.25rem 1.25rem 1.5rem; }
  .info-box { padding: 1.5rem; }
  .cta-box { padding: 1.75rem 1.25rem; }
  .cta-text { font-size: 1.1rem; }

  /* Tarifs */
  .tarif-blocks { gap: 1rem; }
  .tarif-block { padding: 1.5rem; }

  /* TND list */
  .tnd-list { padding: 1.25rem 1.25rem 1.25rem 1.5rem; }

  /* Divider */
  .divider { margin: 1.75rem 0; }

  /* À propos photo */
  .apropos-photo img { max-width: 160px; }

  /* RGPD */
  .rgpd-notice { font-size: 0.83rem; padding: 1rem 1.25rem; }

  /* Form iframe */
  .form-embed iframe { min-height: 900px; }

  /* Footer */
  .footer { padding: 2.25rem 0 1.5rem; }
  .footer-brand { font-size: 0.8rem; }
  .footer p { font-size: 0.85rem; }
  .footer-nav { gap: 0.4rem 1.1rem; }
  .footer-nav a { font-size: 0.7rem; }
}