/* =========================================================
   AXOSU.AFRICA — feuille de style unique
   Direction artistique : voir ../../../documentation/DESIGN.md
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --marine: #0e3a50;
  --marine-dark: #082a3b;
  --marine-soft: #e9eef1; /* marine à ~8% sur blanc, pour fonds tres discrets */
  --orange-light: #ff9327;
  --orange: #ff5913;
  --red: #f22612;
  --ink: #1a1a1a;
  --support: #6b7280;
  --bg: #fafafa;
  --white: #ffffff;
  --line: #e4e4e4;

  --font-display: "Montserrat", "Arial", sans-serif;
  --font-body: "Inter", "Helvetica", sans-serif;

  --max-width: 1180px;
  --measure: 66ch;
  --radius: 8px;
  --gradient-warm: linear-gradient(100deg, var(--orange-light), var(--orange) 55%, var(--red));

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset minimal ---------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--marine);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
p {
  margin: 0 0 1.1em;
  max-width: var(--measure);
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  font-family: inherit;
}

/* Focus visible clair et cohérent partout */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Layout utilitaire ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 88px 0;
}
.section--tight {
  padding: 56px 0;
}
.section--marine {
  background: var(--marine);
  color: var(--white);
}
.section--marine h2,
.section--marine .eyebrow {
  color: var(--white);
}
.section--soft {
  background: var(--marine-soft);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 14px;
}

/* Trait d'accent dégradé, écho discret du ruban-flamme du logo */
.accent-swoosh {
  display: block;
  width: 96px;
  height: 6px;
  margin: 18px 0 28px;
  border-radius: 3px;
  background: var(--gradient-warm);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__logo {
  height: 48px;
  width: auto;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--marine);
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--marine);
  margin: 5px 0;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 30px;
}
/* :not(.btn) évite que cette règle (plus spécifique que .btn-primary)
   n'écrase la couleur de texte des boutons de la nav — bug réel trouvé en
   test le 04/08 (texte sombre sur fond marine au lieu du blanc prévu). */
.main-nav__list a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.main-nav__list a:not(.btn):hover {
  color: var(--marine);
}
.main-nav__list a[aria-current="page"]:not(.btn) {
  color: var(--marine);
  border-color: var(--orange);
  font-weight: 600;
}
.main-nav__list .btn {
  padding: 11px 22px;
}

/* ---------- Boutons ----------
   3 familles, harmonisées le 04/08 (retrait du coin coupé, jugé pas assez
   pro) :
   - .btn-primary   : marine plein, texte blanc — actions de navigation/
                      validation (« Découvrir nos pôles », « Envoyer... »).
   - .btn-contact   : dégradé orange→rouge, texte blanc — TOUS les boutons
                      « Nous contacter / Contacter AXOSU », sans exception,
                      pour qu'ils se reconnaissent partout sur le site.
   - .btn-secondary : contour marine (ou blanc sur fond marine) — actions
                      secondaires non liées au contact.
*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 13px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--marine);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--marine-dark);
}
.btn-contact {
  background: var(--gradient-warm);
  color: var(--white);
  border-color: transparent;
}
.btn-contact:hover {
  box-shadow: 0 10px 24px -10px rgba(242, 38, 18, 0.55);
}
.btn-secondary {
  background: transparent;
  border-color: var(--marine);
  color: var(--marine);
}
.btn-secondary:hover {
  background: var(--marine);
  color: var(--white);
}
.section--marine .btn-secondary {
  border-color: var(--white);
  color: var(--white);
}
.section--marine .btn-secondary:hover {
  background: var(--white);
  color: var(--marine);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 89, 19, 0.16), rgba(242, 38, 18, 0) 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  gap: 40px;
}
.hero__kicker {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--support);
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero h1 .w-marine {
  color: var(--marine);
}
.hero h1 .w-orange {
  color: var(--orange);
}
.hero h1 .w-red {
  color: var(--red);
}
.hero__lede {
  font-size: 1.15rem;
  color: var(--support);
  max-width: 56ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero.is-ready h1,
.hero.is-ready .hero__lede,
.hero.is-ready .hero__actions {
  animation: rise 0.7s var(--ease) both;
}
.hero.is-ready .hero__lede {
  animation-delay: 0.1s;
}
.hero.is-ready .hero__actions {
  animation-delay: 0.2s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Photo du hero ---------- */
.hero__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(14, 58, 80, 0.4);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Légende (nom/fonction) en overlay sur la photo du hero — carte "verre
   dépoli" (glassmorphism) posée en flottant au-dessus du bas de la photo,
   plutôt qu'un simple dégradé (peu lisible sur cette photo à fond sombre). */
.hero__media-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(20, 30, 38, 0.38);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
}
.hero__media-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
}
.hero__media-role {
  margin: 2px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Sections pôles avec photo (page Nos services + Accueil) ---------- */
/* Liste de blocs pôle/photo empilés (Accueil) — l'espacement entre blocs
   remplace celui qu'apportaient les <section> séparées de Nos services. */
.pole-section-list {
  display: grid;
  gap: 64px;
  margin-top: 44px;
}
.pole-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.pole-section h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
/* Toujours justifier le texte des blocs/cartes pour une harmonie visuelle
   (habitude prise le 05/08/2026, à appliquer systématiquement). */
.pole-section p {
  text-align: justify;
  text-justify: inter-word;
}
.pole-section__heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.pole-section__heading .pole-card__icon {
  width: 34px;
  height: 34px;
  margin: 0;
  flex-shrink: 0;
}
.pole-section__heading h2 {
  margin: 0;
}
.pole-section__media {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.pole-section__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pole-section.reverse .pole-section__media {
  order: -1;
}
/* Photo de personne dans un bloc pole-section : ne jamais rogner le haut
   (règle permanente) — l'image étant déjà cadrée sans marge au-dessus de
   la tête, tout recadrage automatique doit mordre sur le bas, jamais sur
   le haut. Classe utilitaire disponible pour toute future photo de
   personne dans ce pattern (actuellement inutilisée : la section "Notre
   positionnement" d'À propos utilise une photo générique, à la demande de
   Ruben du 05/08/2026). */
.pole-section__media--person img {
  object-position: center top;
}
/* Affiche ou logo : on montre le visuel ENTIER, jamais rogné. */
.pole-section__media--entier {
  aspect-ratio: auto;
  border-radius: 0;
}
.pole-section__media--entier img {
  height: auto;
  object-fit: contain;
}

/* ---------- Bandeau CTA avec photo (page À propos) ---------- */
.cta-band--photo {
  position: relative;
  background: #0e3a50 url("../img/about-cotonou.jpg") center/cover no-repeat;
}
.cta-band--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 58, 80, 0.82);
}
.cta-band--photo .container {
  position: relative;
}

/* ---------- Cartes pôles ---------- */
.poles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}
.pole-card {
  background: var(--white);
  padding: 34px 30px 30px;
  border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.pole-card:hover {
  transform: translateY(-3px);
}
.pole-card:hover {
  border-color: var(--orange);
  box-shadow: 0 18px 32px -20px rgba(14, 58, 80, 0.35);
}
.pole-card__icon {
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
}
.pole-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.pole-card p {
  color: var(--support);
  font-size: 0.97rem;
  margin-bottom: 0;
  text-align: justify;
  text-justify: inter-word;
}

/* ---------- Liste "expertise" (Accueil — remplace poles-grid/pole-card,
   pensé pour des paragraphes longs plutôt que des cartes courtes) ---------- */
.expertise-list {
  display: grid;
  gap: 36px;
  margin-top: 44px;
}
.expertise-block {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 22px;
  padding: 28px 0 28px 26px;
  border-left: 3px solid var(--orange);
}
.expertise-block__icon {
  width: 46px;
  height: 46px;
  margin-top: 2px;
}
.expertise-block h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.expertise-block p {
  color: var(--support);
  max-width: 75ch;
  margin-bottom: 0;
  text-align: justify;
  text-justify: inter-word;
}

/* ---------- Cartes valeurs (page à propos) ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
/* 4 cartes : une seule rangée pleine plutôt que 3 + 1 orpheline. */
.values-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.value-card {
  padding: 26px 24px;
  background: var(--white);
  border-left: 3px solid var(--orange);
}
.value-card__icon {
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
}
.value-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.value-card p {
  color: var(--support);
  font-size: 0.95rem;
  margin-bottom: 0;
  text-align: justify;
  text-justify: inter-word;
}

/* ---------- Équipe (page equipe.html) ---------- */
/* Flex plutôt que grid : avec 5 membres, la dernière rangée reste centrée
   au lieu de se coller à gauche. */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 40px;
}
.team-card {
  flex: 0 1 316px;
  background: var(--white);
  border: 1px solid var(--line);
  text-align: center;
  padding-bottom: 26px;
  overflow: hidden;
}
.team-card__photo {
  display: block;
  width: 100%;
  /* "height: auto" est obligatoire : sans lui, l'attribut height="640" du HTML
     fixe la hauteur et l'aspect-ratio ne s'applique pas. */
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 20px;
}
.team-card__name {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 4px;
  padding: 0 18px;
}
.team-card__role {
  color: var(--orange);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0;
  padding: 0 18px;
}
.team-note {
  color: var(--support);
  font-size: 0.92rem;
  text-align: center;
  margin-top: 34px;
}

/* ---------- Réseaux du fondateur (À propos) ---------- */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}
.social-links a {
  color: var(--marine);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--orange-light);
}
.social-links a:hover {
  border-bottom-color: var(--red);
}

/* ---------- Méthode MBS (Nos services) ---------- */
.mbs-callout {
  background: var(--marine-soft);
  border-left: 3px solid var(--orange);
  padding: 30px 32px;
  margin-top: 28px;
}
.mbs-callout h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.mbs-callout p {
  color: var(--support);
  margin-bottom: 0;
  text-align: justify;
  text-justify: inter-word;
}

/* ---------- Partenaires : bandeau de logos ---------- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}
.logo-tile {
  flex: 0 0 auto;
  width: 240px;
  height: 130px;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.logo-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.logo-tile__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--marine);
  text-align: center;
  margin: 0;
}

/* ---------- Étiquette FOMO ("bientôt disponible", etc.) ---------- */
.badge-fomo {
  display: inline-block;
  background: var(--gradient-warm);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- Formulaire simple centré (événement, liste d'attente, démo) ---------- */
.form-narrow {
  max-width: 520px;
  margin: 32px auto 0;
}

/* ---------- La Clinic : 3 portes d'entrée ---------- */
.clinic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.clinic-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px 26px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.clinic-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
}
.clinic-card h3 {
  color: var(--marine);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.clinic-card p {
  color: var(--support);
  font-size: 0.95rem;
  margin-bottom: 0;
}
.clinic-card__illu {
  display: block;
  width: calc(100% + 52px);
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: -30px -26px 24px;
}

/* ---------- Bandeau image pleine largeur (illustration de section) ---------- */
.section-media {
  margin-top: 40px;
  overflow: hidden;
}
.section-media img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
}

/* ---------- Infos pratiques (page événement) ---------- */
.event-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 40px 0 0;
}
.event-fact {
  background: var(--white);
  padding: 26px 24px;
}
.event-fact dt {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 6px;
}
.event-fact dd {
  margin: 0;
  font-weight: 600;
  color: var(--marine);
}
.event-fact dd small {
  display: block;
  font-weight: 400;
  font-size: 0.84rem;
  color: var(--support);
  margin-top: 4px;
}

/* ---------- Chronologie des activités ---------- */
.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 22px;
  padding-left: 26px;
  position: relative;
}
.timeline-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 2px;
  background: var(--gradient-warm);
}
.timeline-year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--orange);
  text-transform: uppercase;
}
.timeline-head h2 {
  margin: 0;
  flex: 1 1 260px;
}
.timeline-head .btn {
  flex: 0 0 auto;
}
.section--marine .timeline-year {
  color: var(--orange-light);
}
.section--marine .timeline-head h2 {
  color: var(--white);
}

/* ---------- Bandeau de photos qui défile ---------- */
.marquee {
  margin-top: 36px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60px, #000 calc(100% - 60px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 60px, #000 calc(100% - 60px), transparent);
}
.marquee__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee-left 70s linear infinite;
}
.marquee--right .marquee__track {
  animation-name: marquee-right;
}
/* Le survol arrête le défilement (demande de Ruben). */
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}
.marquee img {
  display: block;
  height: 210px;
  width: auto;
  max-width: none;
  object-fit: cover;
  flex: 0 0 auto;
}
@keyframes marquee-left {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@keyframes marquee-right {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

/* ---------- Tarifs (événement, formation) ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 34px 28px;
  text-align: center;
}
.price-card--prestige {
  border-color: var(--orange);
  box-shadow: 0 14px 36px rgba(255, 89, 19, 0.12);
}
.price-card__label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.price-card__amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1.1;
  color: var(--marine);
  margin-bottom: 10px;
}
.price-card__amount small {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.price-card p {
  color: var(--support);
  font-size: 0.94rem;
  margin-bottom: 0;
}

/* ---------- Affiche / visuel portrait centré ---------- */
.poster {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 40px auto 0;
  box-shadow: 0 18px 50px rgba(14, 58, 80, 0.18);
}

/* ---------- Démo vidéo de l'application ---------- */
.app-demo {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}
.app-demo video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 20px 50px rgba(14, 58, 80, 0.24);
}
.app-demo ul {
  margin: 0;
  padding-left: 20px;
  color: var(--support);
}
.app-demo li {
  margin-bottom: 10px;
}
.app-demo li strong {
  color: var(--marine);
}

/* ---------- Logo d'une méthode (M3S) ---------- */
.logo-mark {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 26px;
}

/* ---------- Galerie d'un événement ---------- */
.gallery {
  columns: 3;
  column-gap: 18px;
  margin-top: 40px;
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 18px;
  break-inside: avoid;
}

/* ---------- Programme numéroté (événement, démo) ---------- */
.steps-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.steps-list li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 26px 26px 26px 74px;
  position: relative;
}
.steps-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 26px;
  top: 26px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.steps-list h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}
.steps-list p {
  color: var(--support);
  font-size: 0.94rem;
  margin-bottom: 0;
  text-align: justify;
  text-justify: inter-word;
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.blog-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.blog-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
}
.blog-card__eyebrow {
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.blog-card h3 {
  color: var(--marine);
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.blog-card p {
  color: var(--support);
  margin-bottom: 0;
}
article.blog-post p {
  max-width: var(--measure);
  color: var(--ink);
}
article.blog-post p + p {
  margin-top: 1.1em;
}

/* ---------- Bandeau CTA ---------- */
.cta-band {
  text-align: center;
}
.cta-band .accent-swoosh {
  margin-left: auto;
  margin-right: auto;
}
.cta-band h2 {
  margin-bottom: 10px;
}
.cta-band p {
  margin: 0 auto 30px;
  color: var(--support);
}
/* Sans espace : cible un même élément qui porte les deux classes.
   Bug corrigé le 05/08 : ".section--marine .cta-band p" (avec espace)
   cherchait un .cta-band DESCENDANT de .section--marine, alors que les
   deux classes sont posées sur le même <section> — la règle ne matchait
   donc jamais, et le texte restait gris (--support) sur fond marine. */
.section--marine.cta-band p {
  color: rgba(255, 255, 255, 0.78);
}
/* Bandeau photo (À propos) : texte en blanc pur demandé par Ruben (le fond
   photo rend le blanc à 78% encore trop peu contrasté). */
.section--marine.cta-band--photo p {
  color: var(--white);
}

/* Variante fond blanc du bandeau de clôture (Accueil, Nos pôles) */
.cta-band--light {
  background: var(--white);
}

/* ---------- Page 404 ---------- */
.error-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.error-404__code {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(4.5rem, 14vw, 8rem);
  line-height: 1;
  margin: 0 0 6px;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Formulaire contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info dt {
  font-weight: 600;
  color: var(--marine);
  margin-top: 20px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-info dd {
  margin: 4px 0 0;
  color: var(--ink);
}
.contact-info dt:first-child {
  margin-top: 0;
}

.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--marine);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--ink);
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field-note {
  font-size: 0.85rem;
  color: var(--support);
  margin-top: -6px;
}
/* Le -6px vise une note placée AVANT le bouton ; après, il la fait chevaucher. */
.btn + .field-note {
  margin-top: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--marine);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.footer-brand .brand__logo {
  height: 60px;
  /* Le logo est fait pour fond blanc : un léger cadre clair assure sa
     lisibilité posé sur le marine du footer, sans le redessiner. */
  background: var(--white);
  padding: 8px;
  border-radius: var(--radius);
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 16px;
  max-width: 34ch;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-col a:hover {
  color: var(--orange-light);
}
.footer-legal {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Responsive ---------- */
@media (min-width: 760px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    /* "start" plutôt que "center" : évite qu'une colonne plus haute que
       l'autre ne pousse le texte vers le bas et crée un vide au-dessus du
       titre (constaté avec la nouvelle photo carrée + long sous-titre). */
    align-items: start;
  }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--bg);
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    overflow-y: auto;
    padding: 30px 24px;
  }
  .main-nav.is-open {
    transform: translateX(0);
  }
  .main-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .main-nav__list .btn {
    margin-top: 10px;
  }
  .nav-toggle {
    display: block;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .poles-grid,
  .values-grid,
  .clinic-grid,
  .blog-grid,
  .event-facts,
  .steps-list,
  .price-grid,
  .app-demo,
  .pole-section {
    grid-template-columns: 1fr;
  }
  .app-demo video {
    max-width: 300px;
    margin: 0 auto;
  }
  .section-media img {
    height: 220px;
  }
  .gallery {
    columns: 2;
  }
  .marquee img {
    height: 150px;
  }
  .timeline-head .btn {
    width: 100%;
    justify-content: center;
  }
  .pole-section.reverse .pole-section__media {
    order: 0;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .section {
    padding: 64px 0;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 76px 0 56px;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .hero__actions {
    flex-direction: column;
  }
}
