/* =========================================================
   Le chemin du Souffle — Design system
   Direction : minimal-élégant
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  /* Couleurs */
  --bg: #FAF8F5;
  --bg-alt: #FFFFFF;
  --fg: #1C1C1C;
  --fg-soft: #444444;
  --muted: #6B6B6B;
  --muted-2: #9B958C;
  --teal: #1D4E5F;
  --teal-light: #2E86AB;
  --teal-tint: rgba(46, 134, 171, 0.1);
  --orange: #C65D21;
  --orange-tint: rgba(198, 93, 33, 0.1);
  --border: #E5E1DB;

  /* Typo (choix utilisateur : Helvetica Neue) */
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Espacement (base 8) */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 40px;
  --s-5: 64px;
  --s-6: 96px;
  --s-7: 128px;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);

  /* Durées (3 max) */
  --d-fast: 200ms;
  --d-med: 450ms;
  --d-slow: 800ms;

  /* Layout */
  --container: 72rem; /* 1152px */
  --header-h: 80px;
  --radius: 1rem; /* 16px (rounded-2xl) */
  --radius-sm: 0.5rem;
}

/* ---------- Reset minimal ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
img { color: transparent; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
p { line-height: 1.65; }

::selection { background: var(--teal); color: var(--bg); }

/* ---------- Utilitaires ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--s-3); }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--teal);
  margin-bottom: var(--s-3);
}
.eyebrow--muted { color: var(--muted); }
.muted { color: var(--muted); }
.soft { color: var(--fg-soft); }

.divider {
  border: 0;
  height: 1px;
  background: var(--border);
  margin-block: var(--s-5);
}

/* ---------- Lien souligné animé (minimal) ---------- */
.link {
  position: relative;
  display: inline-block;
  font-weight: 500;
}
.link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--d-med) var(--ease-smooth);
}
.link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  padding: var(--s-2) var(--s-4);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  transition: background-color var(--d-fast) var(--ease-smooth),
              color var(--d-fast) var(--ease-smooth),
              border-color var(--d-fast) var(--ease-smooth),
              transform var(--d-fast) var(--ease-smooth);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: var(--bg); }
.btn--primary:hover { background: var(--teal-light); }
.btn--outline { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn--outline:hover { border-color: var(--fg); }
.btn--ghost-light { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.6); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.2); }
.btn--white { background: #fff; color: var(--fg); }
.btn--white:hover { background: var(--bg); }
.btn--lg { padding: var(--s-3) var(--s-5); font-size: 0.95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(6px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--s-3);
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.site-logo img { height: 44px; width: auto; }
.site-logo__text { display: flex; flex-direction: column; }
.site-nav { display: none; }
@media (min-width: 768px) {
  .site-nav { display: flex; align-items: center; gap: var(--s-4); }
}
.site-nav a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color var(--d-fast) var(--ease-smooth);
}
.site-nav a:hover { color: var(--fg); }
.site-nav a.active {
  color: var(--fg);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--teal);
}
.site-header__actions { display: flex; align-items: center; gap: var(--s-2); }
.site-header__cta { display: none; }
@media (min-width: 768px) { .site-header__cta { display: inline-flex; } }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  color: var(--fg);
  border-radius: 8px;
}
.menu-toggle:hover { background: rgba(0,0,0,0.04); }
@media (min-width: 768px) { .menu-toggle { display: none; } }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  z-index: 49;
  padding: var(--s-4) var(--s-3);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--d-med) var(--ease-smooth), opacity var(--d-med) var(--ease-smooth);
  border-top: 1px solid var(--border);
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a {
  display: block;
  padding: var(--s-3) var(--s-2);
  font-size: 1.05rem;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a.active { color: var(--teal); font-weight: 600; }
.mobile-menu .btn { margin-top: var(--s-3); align-self: flex-start; }
@media (min-width: 768px) { .mobile-menu { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: var(--s-5) var(--s-3);
  max-width: 56rem;
}
.hero__inner h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.hero__sub {
  margin-top: var(--s-3);
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  max-width: 44rem;
  margin-inline: auto;
}
.hero__location {
  margin-top: var(--s-2);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.hero__cta {
  margin-top: var(--s-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
}
@media (min-width: 640px) {
  .hero__cta { flex-direction: row; }
}
.hero__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--s-4);
}

/* Hero sobre (pages internes) */
.hero--page {
  min-height: auto;
  padding: var(--s-6) 0 var(--s-5);
  background: var(--bg);
  color: var(--fg);
}
.hero--page .hero__inner { color: inherit; text-align: left; padding: 0; }
.hero--page h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.025em;
  margin-bottom: var(--s-2);
}
.hero--page .hero__sub {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 0;
  max-width: 38rem;
  text-align: left;
  margin-inline: 0;
}

/* ---------- Sections ---------- */
.section { padding-block: var(--s-5); }
.section--lg { padding-block: var(--s-6); }
.section--alt { background: var(--bg-alt); }
.section--soft { background: var(--bg); }

.section__head { margin-bottom: var(--s-5); max-width: 44rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.025em;
  margin-bottom: var(--s-2);
}
.section__head p { color: var(--muted); }

.section__title-row {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.section__title-row .num {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 600;
}
.section__title-row h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0;
}

/* Grille pratique 2 colonnes */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: var(--s-5); } }
.grid-2--align-center { align-items: center; }
.grid-2--gap-16 { gap: var(--s-4); }
@media (min-width: 768px) { .grid-2--gap-16 { gap: var(--s-6); } }

/* Grille 3 colonnes */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Grille 4 colonnes (contact : 1 mobile → 2 tablette → 4 desktop) */
.grid-4 { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
@media (min-width: 768px) { .grid-4 { grid-template-columns: 1fr 1fr; gap: var(--s-4); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-4);
  transition: border-color var(--d-fast) var(--ease-smooth),
              transform var(--d-fast) var(--ease-smooth),
              box-shadow var(--d-med) var(--ease-smooth);
}
.card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.card__icon {
  width: 56px; height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-3);
}
.card__icon--teal { background: var(--teal-tint); color: var(--teal-light); }
.card__icon--orange { background: var(--orange-tint); color: var(--orange); }
.card__icon svg { width: 28px; height: 28px; stroke-width: 1.75; }
.card h3 { font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: var(--s-1); }
.card p { color: var(--muted); font-size: 0.95rem; }
.card__link { display: inline-block; margin-top: var(--s-3); font-size: 0.875rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.card__link--teal { color: var(--teal-light); }
.card__link--orange { color: var(--orange); }

/* Card pratique large (page pratique) */
.practice-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-4);
  transition: border-color var(--d-fast) var(--ease-smooth),
              transform var(--d-fast) var(--ease-smooth);
}
.practice-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.practice-card h3 {
  color: var(--teal-light);
  font-size: 1.1rem;
  margin-bottom: var(--s-2);
}
.practice-card p { color: var(--fg-soft); font-size: 0.9rem; }

/* Card info localisation/dispo */
.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-4);
}
.info-card__head {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
}
.info-card__head svg { width: 22px; height: 22px; color: var(--fg); }
.info-card__head h3 { font-size: 1.1rem; margin: 0; }
.info-card p { color: var(--fg-soft); font-size: 0.95rem; }

/* Card contact */
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  transition: border-color var(--d-fast) var(--ease-smooth);
}
.contact-card:hover { border-color: var(--teal); }
.contact-card__icon { color: var(--teal); }
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); font-weight: 600; }
.contact-card__value { font-weight: 500; color: var(--fg); min-width: 0; word-break: break-word; }
.contact-card { min-width: 0; }

/* ---------- Welcome section (Accueil) ---------- */
.welcome {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  align-items: center;
}
@media (min-width: 768px) {
  .welcome { grid-template-columns: auto 1fr; gap: var(--s-6); }
}
.welcome__logo { display: flex; justify-content: center; }
.welcome__logo img { width: 14rem; height: auto; }
@media (min-width: 768px) { .welcome__logo img { width: 18rem; } }

/* ---------- Stats / highlights ---------- */
.stat-block {
  background: rgba(46, 134, 171, 0.05);
  border: 1px solid rgba(46, 134, 171, 0.15);
  border-radius: var(--radius);
  padding: var(--s-4);
}
.stat-block strong { color: var(--teal); font-weight: 700; }
.stat-block p { color: var(--fg-soft); }

/* ---------- Lists ---------- */
.check-list { display: grid; gap: var(--s-2); }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  color: var(--fg-soft);
}
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--teal);
  margin-top: 0.55rem;
}
.check-list--orange li::before { background: var(--orange); }

.offer-list { display: grid; gap: var(--s-3); }

/* ---------- Bande CTA bas ---------- */
.cta-strip {
  border-top: 1px solid var(--border);
  background: #fff;
  text-align: center;
}
.cta-strip__inner { padding: var(--s-5) var(--s-3); }
@media (min-width: 768px) { .cta-strip__inner { padding: var(--s-6) var(--s-3); } }
.cta-strip h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: var(--s-2);
}
.cta-strip p { color: var(--muted); max-width: 36rem; margin: 0 auto var(--s-4); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-block: var(--s-4);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .site-footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.site-footer__brand { display: flex; align-items: center; gap: var(--s-2); }
.site-footer__brand img { height: 40px; width: auto; }
.site-footer__brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.site-footer__brand-text strong { color: var(--teal); font-size: 0.95rem; }
.site-footer__brand-text span { color: var(--muted); font-size: 0.75rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-3); font-size: 0.875rem; color: var(--muted); }
.site-footer__nav a:hover { color: var(--fg); }
.site-footer__legal { text-align: center; color: var(--muted-2); font-size: 0.75rem; padding-top: var(--s-3); }

/* ---------- Formations (À propos) ---------- */
.formation-list { display: grid; gap: var(--s-2); }
.formation-item {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--border);
}
.formation-item:last-child { border-bottom: 0; }
.formation-item__dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--teal);
  margin-top: 0.55rem;
  flex-shrink: 0;
}
.formation-item__title { font-weight: 500; color: var(--fg); }
.formation-item__sub { font-size: 0.85rem; color: var(--muted); }

/* ---------- Texte long À propos ---------- */
.about-text { color: var(--fg-soft); line-height: 1.7; }
.about-text p + p { margin-top: var(--s-2); }
.about-photo {
  width: 100%;
  max-width: 28rem;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4/5;
}
.about-name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.025em;
  margin-bottom: var(--s-3);
  line-height: 1.15;
}
.about-name em { color: var(--muted-2); font-style: italic; font-weight: 500; }

/* ---------- CGU ---------- */
.legal-content { max-width: 50rem; margin-inline: auto; }
.legal-content section { margin-bottom: var(--s-5); }
.legal-content h2 {
  font-size: 1.35rem;
  margin-bottom: var(--s-2);
  color: var(--teal);
}
.legal-content p, .legal-content li {
  color: var(--fg-soft);
  line-height: 1.7;
  margin-bottom: var(--s-1);
}
.legal-content ul { padding-left: var(--s-3); list-style: disc; }

/* ---------- Scroll-reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--d-slow) var(--ease-out), transform var(--d-slow) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive helpers ---------- */
.center-mobile { text-align: center; }
@media (min-width: 768px) { .center-mobile { text-align: left; } }

.text-center { text-align: center; }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mb-2 { margin-bottom: var(--s-2); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }

/* ---------- Focus visible ---------- */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
