/* ═══════════════════════════════════════════════════════════════════════════
   TABLE DES MATIÈRES
   1. Custom Properties (variables)
   2. Reset & Base
   3. Typographie
   4. Layout utilitaires
   5. Navigation
   6. Composants — Boutons
   7. Sections — Hero
   8. Sections — Qui suis-je
   9. Sections — Services
   10. Sections — Section supplémentaire
   11. Sections — Contact
   12. Animations au scroll
   13. Media Queries
════════════════════════════════════════════════════════════════════════════ */

/* ─── 1. Custom Properties ────────────────────────────────────────────────── */

:root {
  /* Palette William Gauffriau */
  --color-primary: #2f2258;
  --color-primary-dark: #211848;
  --color-accent: #f76979;
  --color-accent-hover: #e0566a;
  --color-rose: #e49fdd;
  --color-green: #4cd964; /* Vert pour la section services */
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f9fafb;
  --color-border: #e5e7eb;

  /* Typographie */
  --font-sans: "Rubik", system-ui, -apple-system, sans-serif;
  --font-heading: "Anton", sans-serif;

  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.5rem; /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem; /* 36px */
  --font-size-5xl: 3rem; /* 48px */

  /* Espacement */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;

  /* Layout */
  --container-max: 1200px;
  --container-px: 1.5rem;

  /* Bordures */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  /* Ombres */
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  /* Transitions */
  --transition-base: 150ms ease-in-out;
  --transition-slow: 300ms ease-in-out;

  /* Portrait « Qui suis-je » — fond lavande dans le cercle */
  --qui-suis-je-portrait-bg: #c8b8e0;
}

/* ─── 2. Reset & Base ─────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* ─── 3. Typographie ──────────────────────────────────────────────────────── */

.text-accent {
  color: var(--color-accent);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.1;
  font-weight: 400; /* Anton est bold par défaut */
  font-family: var(--font-heading);
  color: var(--color-primary);
  text-transform: uppercase; /* Anton est souvent utilisé en uppercase */
  letter-spacing: 0.02em;
}

h1 {
  font-size: var(--font-size-5xl);
}
h2 {
  font-size: var(--font-size-4xl);
}
h3 {
  font-size: var(--font-size-2xl);
}

p {
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* ─── 4. Layout utilitaires ───────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section {
  padding-block: var(--space-3xl);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section__title {
  margin-bottom: var(--space-sm);
}

.section__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
}

/* ─── 5. Navigation ───────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--color-primary);
  padding-block: 0;
}

/* Barre d’administration : le header du thème se place sous elle (évite double recoupement du contenu) */
body.admin-bar .site-header {
  top: 46px;
}

@media (min-width: 783px) {
  body.admin-bar .site-header {
    top: 32px;
  }
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav__logo,
.site-header .custom-logo-link {
  display: flex;
  align-items: center;
  gap: 1px;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  z-index: 102; /* Au-dessus du menu mobile */
}

.site-header .custom-logo-link img {
  height: 48px;
  width: auto;
}

.nav__logo-letter--w {
  color: var(--color-accent);
}
.nav__logo-letter--g {
  color: #fff;
} /* 'G' blanc sur le header desktop */

/* Menu Desktop */
.nav__desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav__desktop {
    display: flex;
    align-items: center;
    gap: 3rem; /* Espace plus grand entre le menu et le CTA */
  }

  .nav__desktop-list {
    display: flex;
    gap: 2.5rem; /* Espace plus aéré entre les liens */
    margin: 0;
    padding: 0;
  }

  .nav__desktop-link {
    font-weight: 500; /* Un peu moins gras pour plus d'élégance */
    color: #fff;
    font-size: 0.95rem; /* Taille ajustée */
    transition: color var(--transition-base);
    letter-spacing: 0.02em;
  }

  .nav__desktop-link:hover {
    color: var(--color-accent);
  }
}

/* Bouton CTA Header */
.btn--header-cta {
  background-color: #f76979;
  color: #fff;
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px !important;
  padding: 0.15em 0.15em 0.15em 1.25em !important;
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  border: none;
  line-height: 1;
  transition:
    transform var(--transition-base),
    background-color var(--transition-base);
}

.btn--header-cta:hover {
  background-color: #e0566a;
  transform: translateY(-2px);
}

.btn__icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Menu Burger (Mobile) */
.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 102;
}

@media (min-width: 1024px) {
  .nav__burger {
    display: none;
  }
}

.nav__burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: var(--radius-full);
  transition:
    transform var(--transition-base),
    opacity var(--transition-base);
  transform-origin: center;
}

.nav__burger[aria-expanded="true"] .nav__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__burger[aria-expanded="true"] .nav__burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__burger[aria-expanded="true"] .nav__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu Mobile Overlay */
.nav__menu {
  position: fixed;
  inset: 0;
  background-color: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
  z-index: 101;
}

.nav__menu[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: #fff;
}

/* ─── 6. Composants — Boutons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition:
    background-color var(--transition-base),
    transform var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn--primary {
  background-color: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn--outline {
  background-color: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--outline:hover {
  background-color: var(--color-accent);
  color: #fff;
}

/* ─── 7. Sections — Hero ──────────────────────────────────────────────────── */

.section--hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center; /* Centré verticalement sur mobile */
  justify-content: flex-start;
  background-color: var(--color-primary);
  background-image: var(--hero-bg-mobile);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Hauteur header fixe (80px) + encoche éventuelle */
  padding-top: calc(80px + env(safe-area-inset-top, 0px));
  /* Marge latérale explicite (mobile + encoches) — évite le contenu collé aux bords */
  padding-left: max(var(--container-px), env(safe-area-inset-left, 0px));
  padding-right: max(var(--container-px), env(safe-area-inset-right, 0px));
  padding-bottom: var(--space-2xl);
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .section--hero {
    background-image: var(--hero-bg-desktop);
    align-items: center; /* Centré verticalement aussi sur desktop */
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(47, 34, 88, 0.4) 0%,
    rgba(47, 34, 88, 0.6) 100%
  );
}

.hero__container {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Un seul jeu de marges latérales : celui de .section--hero */
.section--hero .hero__container.container {
  padding-inline: 0;
  max-width: var(--container-max);
  margin-inline: auto;
}

.hero__content {
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-inline: 0;
}

@media (max-width: 767px) {
  .section--hero {
    /* Air supplémentaire sous la nav sur mobile */
    padding-top: calc(80px + env(safe-area-inset-top, 0px) + var(--space-lg));
    padding-bottom: var(--space-3xl);
  }
}

/* Badges */
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero__badge {
  display: inline-block;
  padding: 0.4em 1em;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  border: 1px solid transparent;
}

.hero__badge--diet {
  background-color: rgba(47, 34, 88, 0.95); /* Fond violet foncé plus opaque */
  box-shadow: 2px 2px 0 var(--color-accent); /* Ombre solide rouge (sans blur) */
  margin-bottom: 4px; /* Espace pour l'ombre */
}

.hero__badge--prep {
  background-color: rgba(47, 34, 88, 0.95);
  box-shadow: 2px 2px 0 var(--color-rose); /* Ombre solide rose (sans blur) */
  margin-bottom: 4px;
}

/* Titre Hero */
.hero__title {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  color: #fff;
  line-height: 1.2;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero__highlight {
  text-decoration: none;
}

.hero__highlight--red {
  text-shadow: 3px 3px 0 rgba(247, 105, 121, 0.5);
}

.hero__highlight--violet {
  text-shadow: 3px 3px 0 rgba(124, 92, 191, 0.5);
}

.hero__highlight--green {
  text-shadow: 3px 3px 0 rgba(76, 217, 100, 0.5);
}

/* Bouton Hero Big (Je t'accompagne) */
.hero__cta {
  margin-top: var(--space-md);
}

.btn--hero-big {
  background-color: #f76979; /* Rouge saumon */
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.5em 0.5em 0.5em 1.5em; /* Padding asymétrique pour le rond à droite */
  border-radius: 9999px; /* Pillule */
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  transition:
    transform var(--transition-base),
    background-color var(--transition-base);
  min-width: 280px; /* Largeur min pour l'impact */
}

.btn--hero-big:hover {
  background-color: #e0566a;
  transform: translateY(-2px);
}

.btn__icon-circle--down {
  background-color: var(--color-primary); /* Rond violet foncé */
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* ─── 8. Sections — Qui suis-je ───────────────────────────────────────────── */

.section--qui-suis-je {
  background-color: var(--color-bg);
}

.qui-suis-je__grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  grid-template-areas:
    "title photo"
    "body photo";
  gap: var(--space-lg) var(--space-3xl);
  align-items: start;
  text-align: left;
}

.qui-suis-je__title {
  grid-area: title;
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--color-text);
}

.qui-suis-je__body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.qui-suis-je__body p {
  font-size: var(--font-size-lg);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.qui-suis-je__intro {
  font-size: var(--font-size-2xl) !important;
  font-weight: 700 !important;
  color: var(--color-primary) !important;
  line-height: 1.3 !important;
}

.qui-suis-je__photo-col {
  grid-area: photo;
  display: flex;
  justify-content: center;
  align-self: center;
}

@media (min-width: 769px) {
  .qui-suis-je__photo-col {
    justify-content: flex-end;
  }
}

.qui-suis-je__portrait {
  width: 100%;
  max-width: 420px;
}

.qui-suis-je__img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── 9. Sections — Services (Accompagnement) ────────────────────────────── */

.section--services {
  background-color: var(--color-primary); /* Fond violet foncé */
  color: #fff;
  overflow: hidden; /* Pour les chiffres en background */
  position: relative;
}

.section--services .section__title {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  font-weight: 900;
  line-height: 1.1;
}

.section--services .text-accent {
  position: relative;
  display: inline-block;
  color: #f76979; /* Ou blanc avec shadow */
  text-shadow: none;
}

.services__list {
  display: flex;
  flex-direction: column;
  gap: 6rem; /* Espace vertical important */
  max-width: 900px;
  margin-inline: auto;
  position: relative;
}

/* Service Item */
.service-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 400px; /* Largeur max d'un bloc */
  padding-left: var(--space-lg); /* Espace pour la barre verticale */
  border-left: 4px solid transparent; /* Barre par défaut */
}

.service-item--red {
  border-left-color: var(--color-accent);
}
.service-item--green {
  border-left-color: var(--color-green);
}

/* Alignement desktop */
@media (min-width: 768px) {
  .service-item--right {
    margin-left: auto;
    text-align: right;
    align-items: flex-end;
    padding-left: 0;
    padding-right: var(--space-lg);
    border-left: none;
    border-right: 4px solid var(--color-rose);
  }

  .service-item--right .service-item__bg-number {
    right: -20px;
    left: auto;
  }
}

/* Alignement mobile alterné (1 gauche, 2 droite, 3 gauche) */
@media (max-width: 767px) {
  .service-item--right {
    margin-left: auto;
    text-align: right;
    align-items: flex-end;
    padding-left: 0;
    padding-right: var(--space-lg);
    border-left: none;
    border-right: 4px solid var(--color-rose);
  }

  .service-item__bg-number {
    display: none;
  }
}

/* Numéro géant background */
.service-item__bg-number {
  position: absolute;
  top: -2rem;
  left: 4rem;
  font-size: 9rem; /* Encore plus gros */
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  font-family: var(--font-heading); /* Anton */
}

.service-item__bg-digit {
  color: rgba(255, 255, 255, 0.05);
}

.service-item--red .service-item__bg-digit--accent {
  color: rgba(247, 105, 121, 0.15); /* 1 en rouge (accent) */
}

.service-item--rose .service-item__bg-digit--accent {
  color: rgba(228, 159, 221, 0.15);
}

.service-item--green .service-item__bg-digit--accent {
  color: rgba(76, 217, 100, 0.15);
}

@media (min-width: 1024px) {
  .service-item__bg-number {
    font-size: 28rem; /* Géant sur desktop */
    top: -6rem;
    left: -20rem;
  }

  .service-item--right .service-item__bg-number {
    right: -20rem;
    left: auto;
  }
}

.service-item__content {
  position: relative;
  z-index: 1;
}
/* Numéro stylisé (01, 02...) */
.service-item__number {
  font-size: 7rem; /* Plus gros */
  font-weight: 900; /* Force bold */
  line-height: 0.8;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: baseline;
  font-family: var(--font-heading); /* Anton */
  letter-spacing: 0.05em;
}

/* Suppression des bordures individuelles sur le numéro car déplacées sur le container */
.service-item--red .service-item__number,
.service-item--rose .service-item__number,
.service-item--green .service-item__number {
  border: none;
  padding: 0;
}

/* Ajustement flex pour alignement numéro */
.service-item--right .service-item__number {
  justify-content: flex-end;
}

/* Couleurs des chiffres */
.num-white {
  color: #fff;
}
.service-item--red .num-color {
  color: var(--color-accent);
}
.service-item--rose .num-color {
  color: var(--color-rose);
}
.service-item--green .num-color {
  color: var(--color-green);
}

.service-item__title {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: var(--space-xs);
  font-weight: 700;
}

.service-item__text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* Bloc consultation + tarifs : zone distincte sous le descriptif */
.service-item__consult {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
  margin: 0;
  padding: var(--space-md) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 400;
}

.service-item__text + .service-item__consult {
  margin-top: var(--space-lg);
}

.service-item__list + .service-item__consult {
  margin-top: var(--space-lg);
}

.service-item__consult strong {
  color: #fff;
  font-weight: 600;
}

/* Prix : pile verticale (libellé → montant / mois → note) */
.service-item__price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin: var(--space-md) 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.service-item--right .service-item__price {
  align-items: flex-end;
}

.service-item__price-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.3;
}

.service-item--right .service-item__price-label {
  text-align: right;
}

.service-item__price-main {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em;
}

.service-item__price-amount {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  line-height: 1;
}

.service-item__price-period {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.service-item__price-note {
  margin: 0.15rem 0 0;
  line-height: 1.3;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.service-item--right .service-item__price-note {
  text-align: right;
}

.service-item__list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-item__list li {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  padding-left: 1.25rem;
  position: relative;
}

.service-item__list li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* CTA Final Section */
.services__cta {
  margin-top: 6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.services__cta-text {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 600;
}

.btn--cta-big {
  background-color: #f76979;
  color: #fff;
  font-size: 1.5rem; /* Très gros */
  font-weight: 900; /* Impact */
  text-transform: uppercase;
  padding: 0.8em 2em;
  border-radius: 9999px;
  border: none;
  transition:
    transform var(--transition-base),
    background-color var(--transition-base);
}

.btn--cta-big:hover {
  background-color: #e0566a;
  transform: translateY(-4px);
}

/* ─── 9b. Sections — Témoignages (accueil) ───────────────────────────────── */

.section--testimonials {
  background-color: var(--color-bg-alt);
  padding-block: var(--space-3xl);
  overflow: hidden;
}

.section--testimonials .articles__header {
  margin-bottom: var(--space-xl);
}

.testimonials__heading {
  color: var(--color-primary);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.section--testimonials .articles__nav-btn--testimonials {
  color: var(--color-primary);
  opacity: 0.85;
}

.section--testimonials .articles__nav-btn--testimonials:hover {
  color: var(--color-accent);
}

.section--testimonials .articles__track {
  gap: 6rem;
}

/* Témoignages — pas de carte, guillemet décoratif conservé */
.articles__track .testimonial-card {
  position: relative;
  flex: 0 0 clamp(260px, 85vw, 360px);
  margin: 0;
  quotes: none;
  padding: 0.35rem var(--space-sm) var(--space-lg) 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-height: 0;
  align-self: stretch;
}

.articles__track .testimonial-card::before {
  content: "“";
  position: absolute;
  top: 0;
  left: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 9vw, 3.75rem);
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.38;
  pointer-events: none;
}

@media (min-width: 768px) {
  .articles__track .testimonial-card {
    flex: 0 0 340px;
  }
}

.testimonial-card__text {
  position: relative;
  z-index: 1;
  /* Indentation minimale : le texte démarre juste à droite du glyphe « */
  padding-left: 0.35rem;
  margin-top: 0;
  font-size: var(--font-size-base);
  color: var(--color-text);
  line-height: 1.7;
  flex: 1;
}

.testimonial-card__text > p:last-child {
  margin-bottom: 0;
}

.testimonial-card__footer {
  margin-top: auto;
  padding-top: var(--space-sm);
  padding-left: 0.35rem;
  border-top: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.testimonial-card__avatar-wrap {
  flex-shrink: 0;
}

.testimonial-card__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.testimonial-card__name {
  font-style: normal;
  font-size: var(--font-size-sm);
  font-weight: 800;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
}

/* ─── 10. Sections — Derniers articles (carrousel) ──────────────────────── */

.section--articles {
  background-color: var(--color-primary);
  padding-block: var(--space-3xl);
  overflow: hidden;
}

.title-shadow {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
}

/* En-tête : titre à gauche, flèche à droite */
.articles__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.articles__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition-base), transform var(--transition-base);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.articles__nav-btn:hover {
  opacity: 1;
  transform: translateX(4px);
}

/* Piste du carrousel */
.articles__track-wrapper {
  overflow: hidden;
  cursor: grab;
  user-select: none;
  /* Débordement latéral aligné sur le container */
  padding-inline: max(var(--container-px), calc((100% - var(--container-max)) / 2 + var(--container-px)));
  /* Évite que l’ombre des cartes au survol soit rognées en bas */
  padding-bottom: var(--space-xl);
}

/* Espace au-dessus des cartes article (hover translateY + ombre dans overflow:hidden) */
.section--articles .articles__track-wrapper,
.section--blog-latest .articles__track-wrapper,
.section--blog-category .articles__track-wrapper {
  padding-top: var(--space-lg);
}

.articles__track-wrapper:active {
  cursor: grabbing;
}

.articles__track {
  display: flex;
  gap: 1.25rem;
  transition: transform 400ms ease;
  will-change: transform;
}

/* Carte article */
.article-card {
  flex: 0 0 clamp(260px, 72vw, 380px);
  border-radius: 1.25rem;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: box-shadow 300ms ease, transform 300ms ease;
}

.article-card:hover {
  box-shadow: 0 12px 40px rgba(47, 34, 88, 0.15);
  transform: translateY(-4px);
}

@media (min-width: 768px) {
  .article-card {
    flex: 0 0 360px;
  }
}

.article-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.article-card__img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-primary-dark);
}

.article-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.article-card__link:hover .article-card__img {
  transform: scale(1.04);
}

.article-card__img-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--color-primary-dark);
}

.article-card__body {
  padding: 1.25rem 1.25rem 1.75rem;
}

.article-card__title {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  transition: color 250ms ease;
}

.article-card__link:hover .article-card__title {
  color: var(--color-accent);
}

.article-card__excerpt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.article-card__read-more {
  color: var(--color-accent);
  font-weight: 600;
  white-space: nowrap;
}

/* Badge catégorie (sous le titre dans le flux d’origine) */
.article-card__cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.articles__empty {
  color: rgba(255 255 255 / 0.6);
  padding: var(--space-xl);
}

.section--blog-latest .articles__empty,
.section--blog-category .articles__empty {
  color: var(--color-text-muted);
}

/* ─── 11. Sections — Contact ──────────────────────────────────────────────── */

.section--contact {
  background-color: var(--color-primary);
  color: #fff;
  padding-block: var(--space-3xl);
}

/* Grille desktop : form | divider | réseaux */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: 2fr auto 1fr;
    align-items: start;
    gap: 0;
  }
}

/* Titre de section contact */
.contact__title {
  margin-bottom: var(--space-xl);
}

/* ── Formulaire de contact natif ── */

.wg-contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.wg-contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 599px) {
  .wg-contact-form__row {
    grid-template-columns: 1fr;
  }
}

.wg-contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.wg-contact-form__field label {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: #fff;
}

.wg-contact-form__field label span {
  color: #f76979;
}

.wg-contact-form__field input,
.wg-contact-form__field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius-md);
  background-color: #fff;
  color: #1a1a2e;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  transition: box-shadow var(--transition-base);
}

.wg-contact-form__field input:focus,
.wg-contact-form__field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgb(247 105 121 / 0.5);
}

.wg-contact-form__field textarea {
  resize: vertical;
  min-height: 160px;
}

.wg-contact-form__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.wg-contact-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.wg-contact-form__feedback {
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-align: center;
}

.wg-contact-form__feedback--success {
  color: #6ee7b7;
}

.wg-contact-form__feedback--error {
  color: #f76979;
}

/* ── Séparateur ── */
.contact__divider {
  height: 1px;
  background: #f76979;
}

@media (max-width: 899px) {
  .contact__divider {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .contact__divider {
    width: 1px;
    height: auto;
    align-self: stretch;
    margin-inline: var(--space-2xl);
    min-height: 300px;
  }
}

/* ── Réseaux ── */
.contact__reseaux-col {
  display: flex;
  flex-direction: column;
}

.reseaux__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Boutons réseaux */
.reseau-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-radius: 1rem;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.4rem;
  color: #fff;
  transition: transform var(--transition-base);
}

.reseau-btn:hover {
  transform: translateY(-3px);
}

.reseau-btn--instagram { background-color: #e8737e; }
.reseau-btn--tiktok    { background-color: #c47ab8; }
.reseau-btn--youtube   { background-color: #ff0000; }
.reseau-btn--facebook  { background-color: #1877f2; }
.reseau-btn--linkedin  { background-color: #0a66c2; }

.reseau-btn__icon {
  flex-shrink: 0;
}

/* Mobile : réseaux en ligne côte à côte */
@media (max-width: 899px) {
  .reseaux__list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .reseau-btn {
    flex: 1 1 200px;
  }
}

.notice {
  padding: var(--space-md);
  background-color: rgb(255 255 255 / 0.1);
  border-radius: var(--radius-md);
  color: rgb(255 255 255 / 0.8);
  font-size: var(--font-size-sm);
  text-align: center;
}

/* ─── 12. Animations au scroll ───────────────────────────────────────────── */

.will-animate {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

.will-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .will-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── 13. Media Queries ───────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 3.5rem;
  }

  h1 {
    font-size: var(--font-size-4xl);
  }
  h2 {
    font-size: var(--font-size-3xl);
  }

  .qui-suis-je__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "photo"
      "body";
    gap: var(--space-2xl);
  }

  .qui-suis-je__portrait {
    max-width: min(360px, 100%);
    margin-inline: auto;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: var(--font-size-3xl);
  }

  .hero__badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__cta {
    flex-wrap: wrap;
  }
}

/* ─── 14. Footer ───────────────────────────────────────────────────────────── */

.site-footer {
  background-color: var(--color-primary);
  color: #fff;
}

/* Conteneur principal : logo à gauche, nav à droite */
.footer__container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2xl);
  padding-block: var(--space-2xl);
}

/* Colonne marque */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: min(420px, 100%);
  flex: 0 1 auto;
  min-width: 0;
  padding: var(--space-sm) var(--space-md) var(--space-sm) 0;
  box-sizing: border-box;
}

/* Logo image (custom-logo) */
.footer__logo-link img {
  height: 56px;
  width: auto;
}

/* Logo texte (fallback WG) — réutilise les classes nav existantes */
.footer__logo-text {
  display: inline-flex;
  align-items: center;
}

/* Description / tagline */
.footer__description {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
  white-space: pre-line;
  overflow-wrap: break-word;
  margin: 0;
}

/* Navigation footer */
.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__nav-list li a {
  font-size: var(--font-size-base);
  color: #fff;
  transition: color var(--transition-base);
}

.footer__nav-list li a:hover {
  color: var(--color-accent);
}

/* Barre légale */
.footer__legal-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__legal-inner {
  display: flex;
  justify-content: flex-end;
  padding-block: var(--space-md);
}

.footer__legal-list {
  display: flex;
  gap: var(--space-xl);
}

.footer__legal-list li a {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-base);
}

.footer__legal-list li a:hover {
  color: #fff;
}

/* Mobile */
@media (max-width: 767px) {
  .footer__container {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .footer__brand {
    max-width: 100%;
  }

  .footer__legal-inner {
    justify-content: flex-start;
  }

  .footer__legal-list {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* ─── 14. Page Blog ───────────────────────────────────────────────────────── */

/* Hero */
.section--blog-hero {
  background-color: var(--color-primary);
  padding-top: calc(var(--space-3xl) + 80px);
  padding-bottom: var(--space-3xl);
}

.blog-hero__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 1024px) {
  .blog-hero__container {
    gap: var(--space-3xl);
  }
}

.blog-hero__eyebrow {
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  line-height: 1;
}

.blog-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  line-height: 1.05;
  margin-bottom: var(--space-lg);
}

.blog-hero__highlight--violet {
  color: var(--color-rose);
}

.blog-hero__subtitle {
  font-size: clamp(1.0625rem, 2.1vw, 1.3125rem);
  font-weight: 450;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  max-width: 100%;
  margin: 0;
  text-wrap: balance;
  padding: var(--space-sm) 0 var(--space-sm) var(--space-lg);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.blog-hero__subtitle-em {
  color: #fff;
  font-weight: 600;
}

/* Sous-titre + barre de recherche */
.blog-hero__search {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-lg);
  max-width: 560px;
}

.blog-search-form {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: border-color var(--transition-base), background-color var(--transition-base);
}

.blog-search-form:focus-within {
  border-color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.12);
}

.blog-search-form__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  color: #fff;
}

.blog-search-form__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.blog-search-form__input::-webkit-search-cancel-button {
  display: none;
}

.blog-search-form__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 0.85rem 1.1rem;
  transition: background-color var(--transition-base);
  flex-shrink: 0;
}

.blog-search-form__btn--icon {
  pointer-events: none;
}

.blog-search-form__btn:hover {
  background-color: var(--color-accent-hover);
}


.blog-search-results .articles__track--no-transition {
  transition: none;
}

/* En-tête de section (titre + bouton nav carousel) */
.blog-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.blog-section__header-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.blog-section__title {
  font-size: var(--font-size-4xl);
  color: var(--color-primary);
  line-height: 1;
}

.blog-section__desc {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* Badge catégorie dans les headers de section */
.blog-cat-badge {
  display: inline-block;
  background-color: var(--color-accent);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2em 0.8em;
  border-radius: var(--radius-full);
  width: fit-content;
}

/* Footer de section (lien "Voir tous") */
.blog-section__footer {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: flex-end;
}

.blog-section__count {
  font-size: 0.6em;
  opacity: 0.5;
  font-weight: 400;
}

.blog-cat__pagination .nav-links {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.blog-cat__pagination .page-numbers {
  padding: 0.5em 1em;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: background var(--transition-base);
}

.blog-cat__pagination .page-numbers.current,
.blog-cat__pagination .page-numbers:hover {
  background: var(--color-accent);
}

.blog-cat-all-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: gap var(--transition-base);
}

.blog-cat-all-link:hover {
  gap: var(--space-sm);
}

/* Section derniers articles (fond blanc) */
.section--blog-latest {
  background-color: var(--color-bg);
}

/* Section catégorie (fond alt) */
.section--blog-category {
  background-color: var(--color-bg-alt);
}

/* Carrousels blog : flèches visibles sur fond clair */
.section--blog-latest .articles__nav-btn,
.section--blog-category .articles__nav-btn {
  color: var(--color-primary);
  opacity: 0.55;
}

.section--blog-latest .articles__nav-btn:hover,
.section--blog-category .articles__nav-btn:hover {
  color: var(--color-accent);
  opacity: 1;
}

@media (max-width: 767px) {
  .section--blog-hero {
    padding-top: calc(var(--space-2xl) + 80px);
  }

  .blog-search-form {
    max-width: 100%;
  }

  .blog-section__title {
    font-size: var(--font-size-3xl);
  }
}

/* ─── 15. Page 404 ────────────────────────────────────────────────────────── */

.page-404 {
  background-color: var(--color-primary);
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.page-404__container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xl);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.page-404__eyebrow {
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
}

.page-404__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 10rem);
  line-height: 0.95;
  color: #fff;
  text-transform: uppercase;
  margin: 0;
}

.page-404__subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.6);
  max-width: 36ch;
  line-height: 1.6;
}

.page-404__actions {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.page-404__blog-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-base), gap var(--transition-base);
}

.page-404__blog-link:hover {
  color: #fff;
  gap: var(--space-sm);
}

/* ─── 15b. Page légale (template-legal.php, page.php) ─────────────────────── */
/* Hauteur header .nav__inner = 80px. Padding = dégagement nav + marge lisible. */

.section--legal-hero {
  background-color: var(--color-primary);
  color: #fff;
  padding-top: calc(80px + var(--space-xl) + env(safe-area-inset-top, 0px));
  padding-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .section--legal-hero {
    padding-top: calc(80px + var(--space-2xl) + env(safe-area-inset-top, 0px));
    padding-bottom: var(--space-3xl);
  }
}

/* Header déjà descendu sous la barre admin : on ne double pas toute la hauteur admin */
body.admin-bar .section--legal-hero {
  padding-top: calc(80px + var(--space-xl) + env(safe-area-inset-top, 0px));
}

@media (min-width: 768px) {
  body.admin-bar .section--legal-hero {
    padding-top: calc(80px + var(--space-2xl) + env(safe-area-inset-top, 0px));
  }
}

.legal-page__hero-inner {
  max-width: min(48rem, 100%);
}

.legal-page__title {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  color: #fff;
}

.section--legal-body {
  background-color: var(--color-bg);
  padding-block: var(--space-3xl);
}

.legal-page__layout {
  max-width: min(42rem, 100%);
  margin-inline: auto;
}

/* Même typo que les articles, sans chapô sur le 1er paragraphe */
.legal-page .article-content > p:first-of-type {
  font-size: var(--font-size-lg);
  line-height: 1.85;
}

/* ─── 16. Single Article ──────────────────────────────────────────────────── */

/* Hero de l'article */
.section--article-hero {
  position: relative;
  background-color: var(--color-primary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-block: var(--space-3xl);
  padding-top: calc(var(--space-3xl) + 80px); /* compense le header fixe */
}

.article-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(47, 34, 88, 0.55) 0%,
    rgba(47, 34, 88, 0.80) 100%
  );
}

.article-hero__container {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

/* Fil d'Ariane */
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.article-breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-base);
}

.article-breadcrumb a:hover {
  color: var(--color-accent);
}

.article-breadcrumb__sep {
  color: rgba(255, 255, 255, 0.3);
}

.article-breadcrumb span:last-child {
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* Catégories */
.article-hero__cats {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.article-hero__cat {
  display: inline-block;
  background-color: var(--color-accent);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25em 0.75em;
  border-radius: var(--radius-full);
}

/* Titre */
.article-hero__title {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
}

/* Meta */
.article-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.article-hero__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
}

.article-hero__meta-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}


/* Layout article : colonne centrée + signature en bas */
.article-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  max-width: min(42rem, 100%);
  margin-inline: auto;
}

/* Contenu typographique de l'article */
.article-content {
  font-family: var(--font-sans);
  font-size: var(--font-size-lg);
  color: var(--color-text);
  line-height: 1.85;
  max-width: 68ch;
  margin-inline: auto;
  width: 100%;
}

/* Premier paragraphe légèrement plus grand */
.article-content > p:first-of-type {
  font-size: var(--font-size-xl);
  color: var(--color-text);
  line-height: 1.75;
}

.article-content h2 {
  font-size: var(--font-size-3xl);
  color: var(--color-primary);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

.article-content h3 {
  font-size: var(--font-size-2xl);
  color: var(--color-primary);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.article-content h4 {
  font-size: var(--font-size-xl);
  color: var(--color-primary);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.article-content p {
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

.article-content ul,
.article-content ol {
  padding-left: 1.25rem;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.article-content ul {
  list-style: none;
  padding-left: 0;
}

.article-content ul li {
  padding-left: 1.5rem;
  position: relative;
}

.article-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-accent);
  flex-shrink: 0;
}

.article-content ol {
  list-style: decimal;
}

.article-content ol li::marker {
  color: var(--color-accent);
  font-weight: 700;
}

.article-content li {
  margin-bottom: var(--space-sm);
  line-height: 1.75;
}

.article-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition-base);
}

.article-content a:hover {
  text-decoration-color: var(--color-accent);
}

.article-content blockquote {
  border-left: 3px solid var(--color-accent);
  margin: var(--space-2xl) 0;
  padding: var(--space-lg) var(--space-xl);
  background-color: var(--color-bg-alt);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.article-content blockquote p {
  font-size: var(--font-size-xl);
  font-style: italic;
  color: var(--color-primary);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Images seules (hors bloc figure) */
.article-content :not(figure) > img {
  margin-block: var(--space-2xl);
}

.article-content img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
  box-shadow: 0 4px 24px rgba(47, 34, 88, 0.1);
  vertical-align: middle;
}

/* Figures (image + légende, galeries, etc.) */
.article-content figure {
  margin-block: var(--space-2xl);
  max-width: 100%;
}

.article-content figure img {
  display: block;
  margin-block: 0;
}

.article-content figcaption,
.article-content .wp-element-caption {
  display: block;
  margin-top: var(--space-md);
  padding: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  text-align: left;
  font-style: italic;
}

/* Ancien éditeur / shortcode [caption] */
.article-content .wp-caption {
  max-width: 100%;
  margin-block: var(--space-2xl);
}

.article-content .wp-caption img {
  margin-block: 0;
}

.article-content .wp-caption-text {
  margin: var(--space-md) 0 0;
  padding: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  text-align: left;
  font-style: italic;
}

.article-content strong {
  color: var(--color-primary);
  font-weight: 700;
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-block: var(--space-2xl);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__img {
  max-width: 100%;
  max-height: 90dvh;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(47, 34, 88, 0.12);
  object-fit: contain;
  transform: scale(0.95);
  transition: transform 0.25s ease;
  cursor: default;
  margin-block: 0;
}

.lightbox.is-open .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: 1.75rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox__close:hover {
  background: var(--color-border);
}

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.article-tag {
  display: inline-block;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  padding: 0.25em 0.75em;
  border-radius: var(--radius-full);
  transition: border-color var(--transition-base), color var(--transition-base);
}

.article-tag:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Signature auteur (sous l'article) */
.article-signature {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  width: 100%;
}

.article-author-card {
  background-color: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  color: #fff;
}

.article-author-card--signature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .article-author-card--signature {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: var(--space-xl);
  }

  .article-author-card--signature .article-author-card__avatar {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .article-author-card--signature .article-author-card__bio {
    flex: 1;
    min-width: 0;
  }

  .article-author-card--signature .btn--author-cta {
    width: auto;
    align-self: flex-start;
  }
}

.article-author-card__avatar {
  margin-bottom: var(--space-lg);
}

.article-author-card--signature .article-author-card__avatar {
  margin-bottom: 0;
}

.article-author-card__img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-accent);
}

.article-author-card__name {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  color: #fff;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
  line-height: 1.2;
}

.article-author-card__role {
  font-size: var(--font-size-sm);
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.article-author-card__desc {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.btn--author-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  background-color: var(--color-accent);
  color: #fff;
  font-weight: 800;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  padding: 0.15em 0.15em 0.15em 1.25em;
  transition: background-color var(--transition-base), transform var(--transition-base);
  border: none;
  line-height: 1;
  width: 100%;
  justify-content: space-between;
}

.btn--author-cta:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn--author-cta .btn__icon-circle {
  background-color: rgba(255, 255, 255, 0.15);
  width: 36px;
  height: 36px;
}

/* Navigation précédent / suivant */
.section--article-nav {
  padding-block: var(--space-2xl);
}

.article-nav__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.article-nav__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: #fff;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.article-nav__item:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.article-nav__item--next {
  text-align: right;
}

.article-nav__label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-nav__item--next .article-nav__label {
  justify-content: flex-end;
}

.article-nav__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  color: var(--color-primary);
  text-transform: uppercase;
  line-height: 1.2;
}

/* Grille articles liés */
.section--related-articles {
  background-color: var(--color-primary);
}

.section--related-articles .section__title {
  color: #fff;
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

/* Mobile */
@media (max-width: 767px) {
  .section--article-hero {
    padding-top: calc(var(--space-2xl) + 80px);
  }

  .article-hero__title {
    font-size: 1.75rem;
  }

  .article-nav__container {
    grid-template-columns: 1fr;
  }
}
