/* ==========================================================================
   Natural Fawaid · Landing « Le miel de Guinée de 2017 »
   Fichier : /campagnes/miel-de-guinee-2017/assets/css/miel-guinee.css

   Page autonome : les tokens ci-dessous reprennent à l'identique les valeurs
   de la charte Natural Fawaid 2026.1 (/natural-fawaid-brand/README.md).
   Aucune couleur hors palette. Classes préfixées « mg- » (miel de Guinée)
   pour éviter toute collision avec WordPress ou brand.css.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Polices (fichiers locaux, chemins relatifs)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "EFCO Brookshire";
  src: url("../fonts/efco-brookshire-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Syne 800 : uniquement pour la signature KITO du footer */
@font-face {
  font-family: "Syne";
  src: url("../fonts/syne-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}


/* --------------------------------------------------------------------------
   2. Tokens (charte Natural Fawaid 2026.1)
   -------------------------------------------------------------------------- */
:root {
  /* Primitives */
  --nf-noir-950: #0D0A07;
  --nf-noir-900: #15100B;
  --nf-brun-800: #1E1710;
  --nf-brun-700: #2A2016;
  --nf-or-300: #E4C893;
  --nf-or-500: #C9A063;
  --nf-or-600: #A87A42;
  --nf-or-800: #7A5427;
  --nf-creme-50: #FBF6EE;
  --nf-creme-100: #F5ECDF;
  --nf-creme-200: #EADDC8;
  --nf-sable-400: #C2B5A2;
  --nf-pierre-500: #8F8372;
  --nf-encre-700: #5B4A37;
  --nf-encre-950: #1C150E;

  /* Sémantiques, thème sombre (défaut) */
  --nf-color-bg: var(--nf-noir-950);
  --nf-color-bg-alt: var(--nf-noir-900);
  --nf-color-surface: var(--nf-brun-800);
  --nf-color-text: var(--nf-creme-100);
  --nf-color-heading: var(--nf-creme-100);
  --nf-color-text-muted: var(--nf-sable-400);
  --nf-color-text-subtle: var(--nf-pierre-500);
  --nf-color-brand: var(--nf-or-500);
  --nf-color-brand-text: var(--nf-or-500);
  --nf-color-brand-strong: var(--nf-or-300);
  --nf-color-on-brand: var(--nf-noir-950);
  --nf-color-border: rgba(201, 160, 99, 0.22);
  --nf-color-border-strong: rgba(201, 160, 99, 0.45);
  --nf-color-tint: rgba(201, 160, 99, 0.08);
  --nf-color-focus: var(--nf-or-300);

  /* Dégradés et halos */
  --nf-gradient-gold: linear-gradient(135deg, #E4C893 0%, #C9A063 45%, #A87A42 100%);
  --nf-gradient-edge: linear-gradient(90deg, transparent, rgba(201, 160, 99, 0.6), transparent);
  --nf-glow-hero: rgba(201, 160, 99, 0.14);
  --nf-glow-center: rgba(201, 160, 99, 0.16);

  /* Typographie */
  --nf-font-display: "EFCO Brookshire", "Palatino Linotype", Palatino, Georgia, serif;
  --nf-font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nf-text-display: clamp(3.1rem, 15vw, 5.75rem);
  --nf-text-h1: clamp(2.5rem, 9vw, 4rem);
  --nf-text-h2: clamp(2rem, 7vw, 3.25rem);
  --nf-text-h3: 1.5rem;
  --nf-text-h4: 1.3rem;
  --nf-text-quote: clamp(1.45rem, 5vw, 1.9rem);
  --nf-text-lead: clamp(1.1rem, 4vw, 1.3rem);
  --nf-text-body: 1.0625rem;
  --nf-text-sm: 0.95rem;
  --nf-text-caption: 0.875rem;
  --nf-text-micro: 0.8rem;

  /* Espacements */
  --nf-space-2: 0.5rem;
  --nf-space-3: 0.75rem;
  --nf-space-4: 1rem;
  --nf-space-5: 1.25rem;
  --nf-space-6: 1.5rem;
  --nf-space-8: 2rem;
  --nf-space-10: 2.5rem;
  --nf-space-12: 3rem;
  --nf-space-16: 4rem;
  --nf-section-y: clamp(4rem, 10vw, 7.5rem);
  --nf-section-head-gap: clamp(2.25rem, 6vw, 3.5rem);
  --nf-gutter: 20px;
  --nf-container-max: 1180px;
  --nf-content-max: 760px;
  --nf-text-max: 34rem;
  --nf-header-h: 64px;

  /* Rayons */
  --nf-radius-xs: 4px;
  --nf-radius-sm: 10px;
  --nf-radius-md: 18px;
  --nf-radius-full: 100px;

  /* Ombres */
  --nf-shadow-md: 0 6px 20px -8px rgba(201, 160, 99, 0.55);
  --nf-shadow-lg: 0 10px 26px -8px rgba(201, 160, 99, 0.65);
  --nf-shadow-xl: 0 14px 34px -12px rgba(0, 0, 0, 0.7);
  --nf-blur-glass: blur(14px) saturate(140%);

  /* Mouvement */
  --nf-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nf-duration-fast: 200ms;
  --nf-duration-base: 250ms;
  --nf-duration-moderate: 300ms;
  --nf-duration-slow: 400ms;
  --nf-duration-reveal: 800ms;
  --nf-duration-entrance: 900ms;
  --nf-duration-pulse: 2800ms;
  --nf-stagger: 80ms;
}

@media (min-width: 640px) {
  :root { --nf-gutter: 32px; }
}
@media (min-width: 960px) {
  :root { --nf-header-h: 76px; }
}


/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nf-header-h) + 16px);
}

body {
  margin: 0;
  background: var(--nf-color-bg);
  color: var(--nf-color-text);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; -webkit-tap-highlight-color: transparent; }
p, dd, li { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--nf-color-focus);
  outline-offset: 3px;
  border-radius: var(--nf-radius-xs);
}

.mg-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.mg-skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--nf-or-500);
  color: var(--nf-color-on-brand);
  font-weight: 700;
  border-radius: var(--nf-radius-full);
  text-decoration: none;
  transition: top var(--nf-duration-base) var(--nf-ease);
}
.mg-skip:focus { top: 12px; }

.mg-container {
  width: 100%;
  max-width: calc(var(--nf-container-max) + var(--nf-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--nf-gutter);
}


/* --------------------------------------------------------------------------
   4. Typographie
   Titres en serif graisse 400, jamais en gras ni en majuscules.
   -------------------------------------------------------------------------- */
.mg-h2 {
  font-family: var(--nf-font-display);
  font-weight: 400;
  font-size: var(--nf-text-h2);
  line-height: 1.1;
  letter-spacing: 0.005em;
  color: var(--nf-color-heading);
  text-wrap: balance;
}

.mg-h3 {
  font-family: var(--nf-font-display);
  font-weight: 400;
  font-size: var(--nf-text-h3);
  line-height: 1.2;
  color: var(--nf-color-heading);
}

.mg-eyebrow {
  margin-bottom: var(--nf-space-4);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nf-color-brand-text);
}

.mg-lead {
  font-size: var(--nf-text-lead);
  line-height: 1.6;
  color: var(--nf-color-text);
}

.mg-note {
  margin-top: var(--nf-space-6);
  font-size: var(--nf-text-caption);
  color: var(--nf-color-text-muted);
}

.mg-prose > * + * { margin-top: var(--nf-space-5); }
.mg-prose p:not(.mg-lead) { color: var(--nf-color-text-muted); }
.mg-prose { max-width: var(--nf-text-max); }

.mg-quote {
  margin-top: var(--nf-space-8) !important;
  padding-left: var(--nf-space-5);
  border-left: 2px solid var(--nf-color-brand);
}
.mg-quote p {
  font-family: var(--nf-font-display);
  font-size: var(--nf-text-quote);
  line-height: 1.25;
  color: var(--nf-color-brand-strong) !important;
}


/* --------------------------------------------------------------------------
   5. Boutons et liens (deux styles + lien texte, comme la charte)
   -------------------------------------------------------------------------- */
.mg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--nf-radius-full);
  font-family: var(--nf-font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--nf-duration-base) var(--nf-ease),
    box-shadow var(--nf-duration-base) var(--nf-ease),
    color var(--nf-duration-base) var(--nf-ease),
    border-color var(--nf-duration-base) var(--nf-ease),
    background-color var(--nf-duration-base) var(--nf-ease);
}

.mg-btn--primary {
  background: var(--nf-gradient-gold);
  color: var(--nf-color-on-brand);
  box-shadow: var(--nf-shadow-md);
}
.mg-btn--primary:hover { transform: translateY(-2px); box-shadow: var(--nf-shadow-lg); }
.mg-btn--primary:active { transform: translateY(0); box-shadow: var(--nf-shadow-md); }

.mg-btn--secondary {
  background: transparent;
  color: var(--nf-color-text);
  border-color: var(--nf-color-border);
}
.mg-btn--secondary:hover { border-color: var(--nf-color-brand); color: var(--nf-color-brand-strong); }
.mg-btn--secondary:active { background: var(--nf-color-tint); }

.mg-btn--lg { min-height: 58px; padding-inline: 2rem; font-size: 1.05rem; }
.mg-btn--sm { min-height: 44px; padding: 0.55rem 1.15rem; font-size: 0.9rem; }
.mg-btn--float { min-height: 48px; width: 100%; }

.mg-btn__icon {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--nf-duration-base) var(--nf-ease);
}
.mg-btn:hover .mg-btn__icon { transform: translateX(4px); }
.mg-hero .mg-btn:hover .mg-btn__icon { transform: translateY(3px); }

/* Halo pulsé : un seul par page, sur le CTA final */
.mg-btn--pulse { position: relative; }
.mg-btn--pulse::after {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(201, 160, 99, 0.45);
  animation: mg-pulse var(--nf-duration-pulse) var(--nf-ease) infinite;
  pointer-events: none;
}
@keyframes mg-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(201, 160, 99, 0.45); }
  70%  { box-shadow: 0 0 0 14px rgba(201, 160, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 160, 99, 0); }
}

.mg-link {
  color: var(--nf-color-text-muted);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--nf-color-border-strong);
  text-underline-offset: 0.3em;
  transition: color var(--nf-duration-fast) var(--nf-ease), text-decoration-color var(--nf-duration-fast) var(--nf-ease);
}
.mg-link:hover { color: var(--nf-color-brand-strong); text-decoration-color: currentColor; }

/* Groupe d'actions : empilé sous 640px, en ligne au-delà */
.mg-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--nf-space-4);
  margin-top: var(--nf-space-8);
}
.mg-actions .mg-link { align-self: center; padding: 0.4rem 0; }

@media (min-width: 640px) {
  .mg-actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: var(--nf-space-6); }
  .mg-actions .mg-link { align-self: auto; }
}


/* --------------------------------------------------------------------------
   6. Header (verre + fallback)
   -------------------------------------------------------------------------- */
.mg-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nf-header-h);
  background: rgba(13, 10, 7, 0.72);
  -webkit-backdrop-filter: var(--nf-blur-glass);
  backdrop-filter: var(--nf-blur-glass);
  border-bottom: 1px solid transparent;
  transition: background-color var(--nf-duration-moderate) var(--nf-ease), border-color var(--nf-duration-moderate) var(--nf-ease);
}
.mg-header.is-scrolled {
  background: rgba(13, 10, 7, 0.9);
  border-bottom-color: var(--nf-color-border);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mg-header { background: rgba(13, 10, 7, 0.96); }
}

.mg-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nf-space-4);
}

.mg-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--nf-color-text);
}
.mg-brand__seal { width: 40px; height: 40px; }
.mg-brand__name {
  font-family: var(--nf-font-display);
  font-size: 1.15rem;
  line-height: 1;
}

.mg-header__nav { display: flex; align-items: center; gap: var(--nf-space-6); }
.mg-header__link { display: none; text-decoration: none; }

@media (min-width: 640px) {
  .mg-header__link { display: inline; }
}
@media (min-width: 960px) {
  .mg-brand__seal { width: 46px; height: 46px; }
}


/* --------------------------------------------------------------------------
   7. Hero
   Mobile : photo d'abord (4:5, cadrage doux centré sur le pot), puis texte.
   Desktop : texte à gauche, photo entière en 9:16 à droite.
   -------------------------------------------------------------------------- */
.mg-hero {
  position: relative;
  padding-top: calc(var(--nf-header-h) + 12px);
  padding-bottom: var(--nf-section-y);
  background:
    radial-gradient(60% 50% at 50% 30%, var(--nf-glow-hero), transparent 70%),
    var(--nf-color-bg);
  overflow: clip;
}

.mg-hero__grid {
  display: grid;
  gap: var(--nf-space-8);
}

/* --- Photographie --- */
.mg-hero__figure { position: relative; }

.mg-hero__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 48svh;
  margin-inline: auto;
  border: 1px solid var(--nf-color-border);
  border-radius: var(--nf-radius-md);
  overflow: hidden;
  background: var(--nf-brun-800);
}
.mg-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
}

/* Cartel : fiche de collection sous la photo */
.mg-cartel {
  padding-top: var(--nf-space-4);
  border-top: 1px solid var(--nf-color-border);
}
.mg-cartel__title {
  font-family: var(--nf-font-display);
  font-size: 1.15rem;
  color: var(--nf-color-text);
}
.mg-cartel__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--nf-space-3) var(--nf-space-5);
  margin-top: var(--nf-space-3);
}
.mg-cartel__list dt {
  font-size: var(--nf-text-micro);
  color: var(--nf-color-text-subtle);
}
.mg-cartel__list dd {
  font-size: var(--nf-text-sm);
  font-weight: 600;
  color: var(--nf-color-text-muted);
}

/* --- Texte --- */
.mg-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.95rem;
  border: 1px solid var(--nf-color-border);
  border-radius: var(--nf-radius-full);
  background: var(--nf-color-tint);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nf-color-brand-text);
}

.mg-hero__title {
  margin-top: var(--nf-space-5);
  font-family: var(--nf-font-display);
  font-weight: 400;
}

/* Les années : le seul élément « display » de la page, en dégradé or */
.mg-years {
  display: flex;
  align-items: center;
  gap: 0.18em;
  font-size: var(--nf-text-display);
  line-height: 0.95;
  letter-spacing: 0.02em;
}
.mg-years > span:not(.mg-years__arrow):not(.mg-sr) {
  background: var(--nf-gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Flèche du temps : un trait qui se dessine de 2017 vers 2026 */
.mg-years__arrow {
  position: relative;
  flex: 0 0 auto;
  width: 0.9em;
  height: 2px;
  margin-inline: 0.06em;
  background: var(--nf-or-500);
  transform-origin: left center;
}
.mg-years__arrow::after {
  content: "";
  position: absolute;
  right: -1px; top: 50%;
  width: 0.16em; height: 0.16em;
  border-top: 2px solid var(--nf-or-500);
  border-right: 2px solid var(--nf-or-500);
  transform: translateY(-50%) rotate(45deg);
}

.mg-hero__title-line {
  display: block;
  margin-top: var(--nf-space-4);
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--nf-color-heading);
}

.mg-hero__lead {
  margin-top: var(--nf-space-6);
  max-width: 30rem;
  font-size: var(--nf-text-lead);
  line-height: 1.6;
  color: var(--nf-color-text-muted);
}

@media (min-width: 640px) {
  .mg-hero__frame { aspect-ratio: 3 / 4; max-width: 560px; max-height: 62svh; }
  .mg-hero__figure,
  .mg-hero__text,
  .mg-cartel { max-width: 560px; margin-inline: auto; width: 100%; }
}

@media (min-width: 960px) {
  .mg-hero {
    min-height: min(100svh, 980px);
    display: flex;
    align-items: center;
    padding-top: calc(var(--nf-header-h) + var(--nf-space-10));
    padding-bottom: var(--nf-space-16);
    background:
      radial-gradient(40% 55% at 74% 48%, var(--nf-glow-hero), transparent 70%),
      var(--nf-color-bg);
  }
  /* Trois colonnes : texte | cartel | photo */
  .mg-hero__grid {
    --mg-photo-h: min(74svh, 740px);
    grid-template-columns: minmax(0, 1fr) 11.5rem auto;
    grid-template-areas: "text cartel photo";
    align-items: center;
    column-gap: 48px;
  }
  .mg-hero__text { grid-area: text; max-width: none; margin: 0; }
  .mg-hero__figure {
    grid-area: photo;
    width: calc(var(--mg-photo-h) * 9 / 16);
    max-width: none;
    margin: 0;
  }
  .mg-cartel {
    grid-area: cartel;
    align-self: end;
    max-width: none;
    margin: 0;
  }
  .mg-cartel__list { grid-template-columns: 1fr; }
  /* Photo entière, sans recadrage */
  .mg-hero__frame {
    aspect-ratio: 9 / 16;
    height: var(--mg-photo-h);
    max-height: none;
    max-width: none;
  }
  .mg-hero__img { object-position: 50% 50%; }
}


/* --------------------------------------------------------------------------
   8. Sections
   -------------------------------------------------------------------------- */
.mg-section {
  position: relative;
  padding-block: var(--nf-section-y);
  background: var(--nf-color-bg);
}
.mg-section--alt { background: var(--nf-color-bg-alt); }
.mg-section--deep {
  background:
    radial-gradient(70% 60% at 0% 0%, rgba(201, 160, 99, 0.07), transparent 70%),
    var(--nf-color-bg);
}
.mg-section--glow {
  background:
    radial-gradient(55% 60% at 50% 45%, var(--nf-glow-center), transparent 72%),
    var(--nf-color-bg);
}

/* Liseré or en haut des sections sombres */
.mg-section--alt::before,
.mg-section--deep::before,
.mg-section--glow::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--nf-gradient-edge);
  opacity: 0.6;
}

/* Thème clair : bascule des tokens sémantiques */
.mg-section--light {
  --nf-color-bg: var(--nf-creme-100);
  --nf-color-surface: var(--nf-creme-50);
  --nf-color-text: var(--nf-encre-950);
  --nf-color-heading: var(--nf-encre-950);
  --nf-color-text-muted: var(--nf-encre-700);
  --nf-color-text-subtle: var(--nf-encre-700);
  --nf-color-brand-text: var(--nf-or-800);
  --nf-color-brand-strong: var(--nf-or-800);
  --nf-color-border: rgba(28, 21, 14, 0.14);
  --nf-color-border-strong: rgba(28, 21, 14, 0.28);
  --nf-color-focus: var(--nf-or-800);
  background: var(--nf-color-bg);
  color: var(--nf-color-text);
}

.mg-narrow { max-width: calc(var(--nf-content-max) + var(--nf-gutter) * 2); }
.mg-center { text-align: center; }
.mg-center .mg-prose--center { margin-inline: auto; }

/* Mise en page éditoriale : titre / contenu */
.mg-split {
  display: grid;
  gap: var(--nf-section-head-gap);
}
.mg-head > .mg-lead,
.mg-head > p:not(.mg-eyebrow) { margin-top: var(--nf-space-5); }
.mg-head > p:not(.mg-eyebrow):not(.mg-lead):not(.mg-note) { color: var(--nf-color-text-muted); max-width: var(--nf-text-max); }

@media (min-width: 960px) {
  .mg-split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 72px;
    align-items: start;
  }
  .mg-split--wide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .mg-head--sticky { position: sticky; top: calc(var(--nf-header-h) + 32px); }
}


/* --------------------------------------------------------------------------
   9. Frise chronologique 2016 → 2026
   Mobile : verticale. Desktop : règle graduée, repères à leur vraie position.
   -------------------------------------------------------------------------- */
.mg-timeline {
  position: relative;
  margin-top: clamp(3.5rem, 9vw, 6rem);
}
.mg-timeline__rule { display: none; }

.mg-timeline__list {
  position: relative;
  display: grid;
  gap: var(--nf-space-8);
  padding-left: 28px;
}
.mg-timeline__list::before {
  content: "";
  position: absolute;
  left: 5px; top: 10px; bottom: 10px;
  width: 1px;
  background: var(--nf-color-border-strong);
}

.mg-timeline__item {
  position: relative;
  display: grid;
  gap: 0.15rem;
}
.mg-timeline__item::before {
  content: "";
  position: absolute;
  left: -28px; top: 0.85rem;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--nf-color-bg-alt);
  border: 2px solid var(--nf-or-500);
}
.mg-timeline__item--end::before { background: var(--nf-or-500); }

.mg-timeline__year {
  font-family: var(--nf-font-display);
  font-size: 2rem;
  line-height: 1.1;
  color: var(--nf-or-300);
}
.mg-timeline__label {
  font-weight: 700;
  color: var(--nf-color-text);
}
.mg-timeline__text {
  font-size: var(--nf-text-sm);
  color: var(--nf-color-text-muted);
  max-width: 22rem;
}

@media (min-width: 960px) {
  .mg-timeline { height: 330px; }

  /* Règle graduée : 11 années, une graduation par an */
  .mg-timeline__rule {
    display: block;
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 14px;
    transform: translateY(-50%);
    background:
      linear-gradient(var(--nf-or-500), var(--nf-or-500)) left center / 100% 1px no-repeat,
      repeating-linear-gradient(90deg, var(--nf-color-border-strong) 0 1px, transparent 1px calc(10% - 0.1px)) left center / 100% 14px no-repeat;
    transform-origin: left center;
  }
  .mg-timeline__rule::after {
    /* dernière graduation (2026) */
    content: "";
    position: absolute;
    right: 0; top: 0;
    width: 1px; height: 14px;
    background: var(--nf-color-border-strong);
  }

  .mg-timeline__list {
    position: absolute;
    inset: 0;
    padding: 0;
    display: block;
  }
  .mg-timeline__list::before { display: none; }

  .mg-timeline__item {
    position: absolute;
    left: calc(var(--pos) * 10%);
    top: calc(50% + 22px);
    width: 12.5rem;
  }
  .mg-timeline__item--up {
    top: auto;
    bottom: calc(50% + 22px);
  }
  .mg-timeline__item--end {
    left: auto;
    right: 0;
    text-align: right;
  }
  .mg-timeline__item--end .mg-timeline__text { margin-left: auto; }

  /* Repère dont le texte se place à gauche de la pastille (fin de frise) */
  .mg-timeline__item--before {
    left: auto;
    right: calc((10 - var(--pos)) * 10%);
    text-align: right;
  }
  .mg-timeline__item--before .mg-timeline__text { margin-left: auto; }
  .mg-timeline__item.mg-timeline__item--before::before { left: auto; right: -6px; }

  /* Pastille posée sur la règle */
  .mg-timeline__item::before {
    left: -6px;
    top: -27.5px;
  }
  .mg-timeline__item--up::before {
    top: auto;
    bottom: -27.5px;
  }
  .mg-timeline__item--end::before { left: auto; right: -6px; }
}

/* Conservation */
.mg-keep {
  margin-top: clamp(3.5rem, 9vw, 6rem);
  padding: var(--nf-space-8) var(--nf-space-6);
  border: 1px solid var(--nf-color-border);
  border-radius: var(--nf-radius-md);
  background: var(--nf-color-surface);
}
.mg-keep__head p {
  margin-top: var(--nf-space-3);
  color: var(--nf-color-text-muted);
  max-width: 36rem;
}
.mg-keep__list {
  display: grid;
  gap: var(--nf-space-6);
  margin-top: var(--nf-space-8);
}
.mg-keep__list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--nf-space-4);
  align-items: start;
}
.mg-keep__list h4 {
  font-family: var(--nf-font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--nf-color-text);
}
.mg-keep__list p {
  margin-top: 0.2rem;
  font-size: var(--nf-text-sm);
  color: var(--nf-color-text-muted);
}

.mg-icon {
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: 50%;
  background: var(--nf-encre-950);
  border: 1px solid var(--nf-color-border);
  fill: none;
  stroke: var(--nf-or-500);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 640px) {
  .mg-keep { padding: var(--nf-space-10); }
  .mg-keep__list { grid-template-columns: 1fr 1fr; gap: var(--nf-space-8) var(--nf-space-10); }
}
@media (min-width: 960px) {
  .mg-keep { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; }
  .mg-keep__list { margin-top: 0; }
}


/* --------------------------------------------------------------------------
   10. Principes de sélection (section claire)
   -------------------------------------------------------------------------- */
.mg-principles { border-top: 1px solid var(--nf-color-border); }
.mg-principles li {
  padding-block: var(--nf-space-6);
  border-bottom: 1px solid var(--nf-color-border);
}
.mg-principles h3 {
  font-family: var(--nf-font-display);
  font-weight: 400;
  font-size: var(--nf-text-h4);
  line-height: 1.2;
  color: var(--nf-color-heading);
}
.mg-principles p {
  margin-top: var(--nf-space-2);
  color: var(--nf-color-text-muted);
  max-width: 34rem;
}

@media (min-width: 640px) {
  .mg-principles li {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: var(--nf-space-8);
    align-items: baseline;
  }
  .mg-principles p { margin-top: 0; }
}


/* --------------------------------------------------------------------------
   11. Le miel et le temps : rangées de faits
   -------------------------------------------------------------------------- */
.mg-facts { border-top: 1px solid var(--nf-color-border); }
.mg-facts__row {
  padding-block: var(--nf-space-6);
  border-bottom: 1px solid var(--nf-color-border);
}
.mg-facts dt {
  font-family: var(--nf-font-display);
  font-size: var(--nf-text-h4);
  line-height: 1.2;
  color: var(--nf-or-300);
}
.mg-facts dd {
  margin-top: var(--nf-space-2);
  color: var(--nf-color-text-muted);
}


/* --------------------------------------------------------------------------
   11 bis. Le miel et la tendance : trois cas, puis l'analyse pollinique
   -------------------------------------------------------------------------- */
.mg-cases {
  display: grid;
  gap: var(--nf-space-4);
  margin-top: var(--nf-section-head-gap);
}
.mg-case {
  position: relative;
  padding: 1.6rem 1.5rem 1.7rem;
  border: 1px solid var(--nf-color-border);
  border-radius: var(--nf-radius-md);
  background: var(--nf-color-surface);
  overflow: hidden;
}
.mg-case::after {
  /* liseré or en haut de la carte */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--nf-gradient-edge);
}
.mg-case__tag {
  font-size: var(--nf-text-micro);
  font-weight: 600;
  color: var(--nf-color-text-subtle);
}
.mg-case__name {
  margin: 0.2rem 0 var(--nf-space-5);
  padding-bottom: var(--nf-space-5);
  border-bottom: 1px solid var(--nf-color-border);
  font-family: var(--nf-font-display);
  font-weight: 400;
  font-size: var(--nf-text-h4);
  line-height: 1.2;
  color: var(--nf-color-heading);
}
.mg-case__text {
  margin-top: 0.3rem;
  font-size: var(--nf-text-sm);
  color: var(--nf-color-text-muted);
}

.mg-analysis {
  display: grid;
  gap: var(--nf-space-6);
  margin-top: clamp(3.5rem, 9vw, 5.5rem);
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
  border-top: 1px solid var(--nf-color-border);
}
.mg-analysis__title {
  font-family: var(--nf-font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 6vw, 2.6rem);
  line-height: 1.12;
  color: var(--nf-color-heading);
  text-wrap: balance;
}
.mg-analysis__body > * + * { margin-top: var(--nf-space-5); }
.mg-analysis__body p:not(.mg-lead) { color: var(--nf-color-text-muted); }
.mg-analysis__statement {
  font-family: var(--nf-font-display);
  font-size: var(--nf-text-quote);
  line-height: 1.3;
  color: var(--nf-or-300);
  text-wrap: balance;
}

@media (min-width: 960px) {
  .mg-analysis {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: 72px;
    row-gap: var(--nf-space-10);
  }
  .mg-analysis__statement { grid-column: 1 / -1; text-align: center; }
}

@media (min-width: 960px) {
  .mg-cases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}


/* --------------------------------------------------------------------------
   12. Philosophie
   -------------------------------------------------------------------------- */
.mg-section--glow .mg-h2 { margin-bottom: var(--nf-space-8); }
.mg-prose--center { max-width: 38rem; }

.mg-statement {
  position: relative;
  max-width: 44rem;
  margin: var(--nf-space-12) auto 0;
  padding-top: var(--nf-space-10);
}
.mg-statement::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 64px; height: 1px;
  transform: translateX(-50%);
  background: var(--nf-or-500);
}
.mg-statement p {
  font-family: var(--nf-font-display);
  font-size: var(--nf-text-quote);
  line-height: 1.3;
  color: var(--nf-or-300);
  text-wrap: balance;
}


/* Témoignage d'Abu Mus'ab */
.mg-story {
  position: relative;
  max-width: 40rem;
  margin: var(--nf-space-12) auto 0;
  padding: var(--nf-space-8) var(--nf-space-6);
  border: 1px solid var(--nf-color-border);
  border-radius: var(--nf-radius-md);
  background: rgba(30, 23, 16, 0.72);
  text-align: left;
  overflow: hidden;
}
.mg-story::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--nf-gradient-edge);
}
.mg-story__tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nf-color-brand-text);
}
.mg-story__figure { margin: 0; }
.mg-story__text {
  margin-top: var(--nf-space-5);
  padding-left: var(--nf-space-5);
  border-left: 2px solid var(--nf-color-brand);
}
.mg-story__text p {
  font-size: var(--nf-text-lead);
  line-height: 1.6;
  color: var(--nf-color-text);
}
.mg-story__text p + p { margin-top: var(--nf-space-3); }
.mg-story__author {
  margin-top: var(--nf-space-5);
  padding-left: var(--nf-space-5);
  font-family: var(--nf-font-display);
  font-size: 1.25rem;
  color: var(--nf-or-300);
}
.mg-story__note {
  margin-top: var(--nf-space-6);
  padding-top: var(--nf-space-4);
  border-top: 1px solid var(--nf-color-border);
  font-size: var(--nf-text-caption);
  color: var(--nf-color-text-muted);
}
@media (min-width: 640px) {
  .mg-story { padding: var(--nf-space-10); }
}


/* --------------------------------------------------------------------------
   13. Signature (section claire)
   -------------------------------------------------------------------------- */
.mg-values {
  display: grid;
  gap: 0;
  margin-top: var(--nf-space-10) !important;
  border-top: 1px solid var(--nf-color-border);
}
.mg-values > div {
  padding-block: var(--nf-space-4);
  border-bottom: 1px solid var(--nf-color-border);
}
.mg-values dt {
  font-weight: 700;
  color: var(--nf-color-text);
}
.mg-values dd {
  margin-top: 0.15rem;
  font-size: var(--nf-text-sm);
  color: var(--nf-color-text-muted);
}

@media (min-width: 640px) {
  .mg-values { grid-template-columns: 1fr 1fr; column-gap: var(--nf-space-8); }
}


/* --------------------------------------------------------------------------
   14. Conclusion
   -------------------------------------------------------------------------- */
.mg-final {
  position: relative;
  padding-block: var(--nf-section-y);
  background:
    radial-gradient(50% 70% at 30% 50%, var(--nf-glow-center), transparent 72%),
    var(--nf-color-bg);
}
.mg-final::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--nf-gradient-edge);
  opacity: 0.6;
}

.mg-final__grid {
  display: grid;
  gap: var(--nf-space-10);
  justify-items: center;
  text-align: center;
}
.mg-final__thumb {
  width: 150px;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--nf-color-border);
  border-radius: var(--nf-radius-md);
  overflow: hidden;
}
.mg-final__thumb img { width: 100%; height: 100%; object-fit: cover; }

.mg-final__text .mg-lead {
  margin-top: var(--nf-space-6);
  max-width: 36rem;
  margin-inline: auto;
  color: var(--nf-color-text-muted);
}
.mg-final .mg-actions { justify-content: center; }
.mg-final .mg-btn--pulse { max-width: 380px; width: 100%; white-space: normal; text-align: center; }

@media (min-width: 640px) {
  .mg-final .mg-btn--pulse { width: auto; max-width: none; white-space: nowrap; }
}
@media (min-width: 960px) {
  .mg-final__grid {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    text-align: left;
    gap: 72px;
    align-items: center;
    max-width: calc(1080px + var(--nf-gutter) * 2);
  }
  .mg-final__thumb { width: 220px; }
  .mg-final__text .mg-lead { margin-inline: 0; }
  .mg-final .mg-actions { justify-content: flex-start; }
}


/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.mg-footer {
  padding: var(--nf-space-12) 0 104px;
  border-top: 1px solid var(--nf-color-border);
  background: var(--nf-color-bg);
  text-align: center;
}
.mg-footer__seal { width: 56px; height: 56px; margin-inline: auto; }
.mg-footer__tagline { margin-top: var(--nf-space-4); color: var(--nf-color-text-muted); }

.mg-footer__links,
.mg-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--nf-space-2) var(--nf-space-6);
  margin-top: var(--nf-space-6);
}
.mg-footer__links a,
.mg-footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.mg-footer__links a {
  color: var(--nf-color-text);
  text-decoration: none;
  font-weight: 600;
}
.mg-footer__legal { margin-top: var(--nf-space-4); }
.mg-footer__legal a,
.mg-footer__credit {
  font-size: var(--nf-text-micro);
  color: var(--nf-color-text-subtle);
}
.mg-footer__legal a { text-decoration: none; }
.mg-footer a:hover { color: var(--nf-color-brand-strong); }
.mg-footer__credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: var(--nf-space-8);
  padding-top: var(--nf-space-6);
  border-top: 1px solid var(--nf-color-border);
}

/* Signature KITO : wordmark Syne 800 en dégradé violet → cyan.
   Couleurs de la marque KITO, volontairement limitées à ce logo. */
.mg-kito {
  display: inline-block;
  font-family: "Syne", var(--nf-font-body);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-decoration: none;
  background: linear-gradient(90deg, #7C5CFF, #2EE5FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: opacity var(--nf-duration-fast) var(--nf-ease);
}
.mg-footer a.mg-kito:hover { opacity: 0.85; color: transparent; }

@media (min-width: 960px) {
  .mg-footer { padding-bottom: var(--nf-space-12); }
}


/* --------------------------------------------------------------------------
   16. CTA flottant mobile
   -------------------------------------------------------------------------- */
.mg-sticky {
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 40;
  transform: translateY(calc(100% + 24px));
  opacity: 0;
  visibility: hidden;
  transition:
    transform var(--nf-duration-slow) var(--nf-ease),
    opacity var(--nf-duration-slow) var(--nf-ease),
    visibility 0s linear var(--nf-duration-slow);
}
.mg-sticky.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
/* Halo doré autour du bouton, sans cadre : lisible sur fond sombre comme sur fond crème */
.mg-sticky .mg-btn--float {
  box-shadow:
    0 0 0 1px rgba(228, 200, 147, 0.55),
    0 8px 22px -6px rgba(201, 160, 99, 0.6),
    0 16px 32px -12px rgba(13, 10, 7, 0.55);
}
.mg-sticky .mg-btn--float:active { transform: scale(0.98); }
@media (min-width: 960px) {
  .mg-sticky { display: none; }
}


/* --------------------------------------------------------------------------
   17. Mouvement
   Un seul moment orchestré au chargement (hero), puis la frise qui se trace
   au passage dans l'écran. Rien d'autre.
   -------------------------------------------------------------------------- */
.js .mg-enter {
  opacity: 0;
  transform: translateY(22px);
  animation: mg-enter var(--nf-duration-entrance) var(--nf-ease) forwards;
  animation-delay: calc(150ms + var(--d, 0) * var(--nf-stagger) * 1.5);
}
@keyframes mg-enter {
  to { opacity: 1; transform: none; }
}

.js .mg-years__arrow {
  transform: scaleX(0);
  animation: mg-draw 1100ms var(--nf-ease) 450ms forwards;
}
@keyframes mg-draw {
  to { transform: scaleX(1); }
}


@media (min-width: 960px) {
  .js .mg-timeline__rule {
    transform: translateY(-50%) scaleX(0);
    transition: transform 1400ms var(--nf-ease);
  }
  .js .mg-timeline__item {
    opacity: 0;
    transition: opacity 600ms var(--nf-ease);
    transition-delay: calc(300ms + var(--pos) * 110ms);
  }
  .js .mg-timeline.is-visible .mg-timeline__rule { transform: translateY(-50%) scaleX(1); }
  .js .mg-timeline.is-visible .mg-timeline__item { opacity: 1; }
}

/* Écrans tactiles : pas d'effets de survol */
@media (hover: none) {
  .mg-btn--primary:hover { transform: none; box-shadow: var(--nf-shadow-md); }
  .mg-btn:hover .mg-btn__icon { transform: none; }
}

/* Accessibilité : mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .mg-btn--pulse::after { display: none; }
}


/* --------------------------------------------------------------------------
   18. Export PDF : <body class="mg pdf-mode">
   -------------------------------------------------------------------------- */
.pdf-mode *, .pdf-mode *::before, .pdf-mode *::after {
  animation: none !important;
  transition: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.pdf-mode .mg-enter,
.pdf-mode .mg-timeline__item { opacity: 1 !important; transform: none !important; }
.pdf-mode .mg-years__arrow { transform: none !important; }
.pdf-mode .mg-timeline__rule { transform: translateY(-50%) !important; }
.pdf-mode .mg-header { position: absolute; background: var(--nf-noir-950); }
.pdf-mode .mg-sticky { display: none; }
.pdf-mode .mg-btn--pulse::after { display: none; }
.pdf-mode .mg-head--sticky { position: static; }


/* --------------------------------------------------------------------------
   19. Petits écrans : le CTA final tient sur une ligne
   -------------------------------------------------------------------------- */
@media (max-width: 419px) {
  .mg-final .mg-btn--pulse { padding-inline: 1rem; font-size: 1rem; letter-spacing: 0; }
  .mg-final .mg-btn--pulse .mg-btn__icon { display: none; }
}