/* ==========================================================================
   Guillaume Academy IA School — Design system (thème sombre et or)
   Mobile d'abord : les styles de base visent le téléphone,
   les @media (min-width) enrichissent pour tablette et ordinateur.
   Aucune bibliothèque externe : effets en CSS pur, animations désactivées
   si le visiteur a choisi « réduire les animations ».
   ========================================================================== */

/* ---------- 1. Variables (TOUT le thème se règle ici) ---------- */
:root {
  /* Couleurs de fond */
  --color-bg: #0B0B0F;          /* fond de page */
  --color-bg-alt: #0F0F14;      /* fond de section alterné */
  --color-surface: #14141A;     /* cartes, panneaux */
  --color-surface-2: #1C1C24;   /* champs, éléments au-dessus d'une carte */
  --color-glass: rgba(20, 20, 26, 0.72); /* verre dépoli */

  /* Texte (contrastes vérifiés sur #0B0B0F et #14141A) */
  --color-text: #F5F1E6;        /* texte principal : 17,4:1 */
  --color-text-muted: #C4BDAE;  /* texte secondaire : 9,8:1 */
  --color-text-faint: #A39C8D;  /* petites mentions : 6,7:1 */

  /* Or */
  --color-gold: #E5C158;        /* or clair : accents, liens, titres dorés (10,6:1) */
  --color-gold-deep: #C9A227;   /* or profond : fin du dégradé */
  --gradient-gold: linear-gradient(135deg, #E5C158 0%, #C9A227 100%);
  --color-on-gold: #0B0B0F;     /* texte sur fond doré : 8,1:1 au plus faible */
  --color-gold-soft: rgba(229, 193, 88, 0.12);  /* fond d'icônes */
  --color-border: rgba(229, 193, 88, 0.2);      /* bordure dorée fine */
  --color-border-strong: rgba(229, 193, 88, 0.5);
  --color-line: rgba(245, 241, 230, 0.1);       /* séparateurs neutres */

  --color-whatsapp: #25D366;
  --color-on-whatsapp: #0B0B0F;
  --color-danger: #E5484D;

  /* Polices (deux familles, avec polices de secours) */
  --font-title: "Sora", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Tailles de texte (fluides) */
  --fs-small: 0.875rem;
  --fs-base: 1rem;
  --fs-lead: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  --fs-h3: clamp(1.12rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-h2: clamp(1.65rem, 1.3rem + 1.6vw, 2.5rem);
  --fs-h1: clamp(2rem, 1.4rem + 3vw, 3.5rem);

  /* Espacements */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --section-padding: clamp(3.5rem, 2.5rem + 5vw, 7rem);

  /* Formes et ombres */
  --container-pad: 1.25rem;    /* marge intérieure gauche et droite du contenu */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.55);
  --glow-gold: 0 0 0 1px rgba(229, 193, 88, 0.35), 0 10px 34px rgba(201, 162, 39, 0.22);

  /* Mise en page */
  --container: 1160px;
  --header-height: 68px;
  --mobile-bar-height: 64px;
  --transition: 0.25s ease;
}

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  background: var(--color-bg);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow-x: clip) {
  html, body { overflow-x: clip; } /* aucun défilement horizontal, sans casser position: sticky */
}

body.menu-open { overflow: hidden; }

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

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-sm);
  color: var(--color-text);
}

h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 var(--space-sm); }
strong { color: var(--color-text); }

a {
  color: inherit;
  text-decoration-color: var(--color-gold);
  text-underline-offset: 3px;
}
.prose a:not(.btn):not(.link-arrow),
.faq-answer a,
.article a:not(.btn):not(.link-arrow) { color: var(--color-gold); }

::selection { background: rgba(229, 193, 88, 0.35); color: var(--color-text); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--gradient-gold);
  color: var(--color-on-gold);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

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

/* Texte doré en dégradé (titres) */
.text-gold {
  color: var(--color-gold);
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- 3. Mise en page ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { position: relative; padding-block: var(--section-padding); }
.section--alt { background: var(--color-bg-alt); border-block: 1px solid var(--color-line); }
.section--dark {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(229, 193, 88, 0.08), transparent 60%),
    var(--color-bg-alt);
  border-block: 1px solid var(--color-line);
}

.section-head {
  max-width: 680px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}
.section-head .lead { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: var(--space-xs);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gradient-gold);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
}

.gold-line {
  width: 56px;
  height: 2px;
  margin: 0 auto var(--space-md);
  background: var(--gradient-gold);
  border: 0;
}

/* ---------- 4. Boutons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.7rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Bouton doré : dégradé, texte noir (contraste ≥ 8,1:1) */
.btn--gold {
  background: var(--gradient-gold);
  color: var(--color-on-gold);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.25);
}
.btn--gold:hover { box-shadow: 0 12px 32px rgba(201, 162, 39, 0.38); }

/* Effet de brillance : un reflet traverse le bouton au survol */
.btn--gold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
.btn--gold:hover::after,
.btn--gold:focus-visible::after { animation: btn-shine 0.9s ease; }
/* .btn--shine : reflet automatique de temps en temps (bouton principal) */
.btn--shine::after { animation: btn-shine 5.5s ease-in-out 1.5s infinite; }
@keyframes btn-shine {
  0% { transform: translateX(-120%); }
  18%, 100% { transform: translateX(120%); }
}

.btn--outline {
  background: rgba(245, 241, 230, 0.03);
  border-color: var(--color-border-strong);
  color: var(--color-text);
}
.btn--outline:hover { background: var(--color-gold-soft); border-color: var(--color-gold); }

.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0.6rem 1.2rem; font-size: 0.92rem; }

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* Lien texte doré avec flèche */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-weight: 600;
  color: var(--color-gold);
  text-decoration: none;
}
.link-arrow span { transition: transform var(--transition); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- 5. En-tête ---------- */
.site-header-slot { min-height: var(--header-height); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* fond opaque : un backdrop-filter enfermerait le menu mobile (position: fixed) */
  background: rgba(11, 11, 15, 0.97);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: var(--header-height);
}

/* Logo : image si images/logo.png existe, sinon texte doré */
.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
/* Logo rond (images/logo.png, coins transparents) : cadre doré fin */
.logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 0 0 1px var(--color-border-strong), 0 0 18px rgba(229, 193, 88, 0.18);
}
.site-footer .logo img { width: 96px; height: 96px; }
.logo-text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.15;
  color: var(--color-gold);
  letter-spacing: 0;
}
.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Bouton menu mobile */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-text);
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), background var(--transition);
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before,
.menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-open .menu-toggle-bars { background: transparent; }
.menu-open .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Navigation : panneau plein écran sur mobile */
.main-nav {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: var(--space-md) 1.25rem calc(var(--space-lg) + env(safe-area-inset-bottom, 0px));
  background: var(--color-bg);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.menu-open .main-nav {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-list {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
}
.nav-list a {
  display: block;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--color-line);
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--color-gold); }

.nav-cta { margin-top: auto; }
.nav-cta .btn { width: 100%; }

/* ---------- 6. Bannière (hero) ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 2rem + 4vw, 6rem) var(--section-padding);
  overflow: hidden;
  isolation: isolate;
}
/* Dégradé animé discret (déplacement lent d'un calque : peu coûteux) */
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -30%;
  z-index: -1;
  background:
    radial-gradient(closest-side at 72% 32%, rgba(229, 193, 88, 0.2), transparent 70%),
    radial-gradient(closest-side at 18% 70%, rgba(201, 162, 39, 0.12), transparent 70%),
    radial-gradient(closest-side at 50% 50%, rgba(120, 90, 20, 0.12), transparent 75%);
  animation: hero-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
/* Fine grille dorée en fond */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(229, 193, 88, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 193, 88, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 60% 40%, #000 0%, transparent 70%);
  pointer-events: none;
}
@keyframes hero-drift {
  0% { transform: translate3d(-4%, -2%, 0) rotate(0deg); }
  100% { transform: translate3d(4%, 3%, 0) rotate(8deg); }
}

.hero-grid {
  position: relative;
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

.hero-title em {
  font-style: normal;
  color: var(--color-gold);
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text .lead { max-width: 560px; margin-bottom: var(--space-md); }

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: var(--space-md);
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}
.hero-note span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-note span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
}

/* Cadre du portrait : images/portrait.jpg, cadre doré */
.portrait-frame {
  position: relative;
  width: min(calc(100% - 14px), 340px);
  margin-inline: auto;
}
.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: 200px 200px var(--radius-md) var(--radius-md);
}
.portrait-inner {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 200px 200px var(--radius-md) var(--radius-md);
  overflow: hidden;
  background: linear-gradient(160deg, #1E1A10, var(--color-surface));
  border: 1.5px solid var(--color-gold);
  box-shadow: var(--glow-gold), var(--shadow-lg);
}
/* Photo : couvre tout le cadre, au-dessus du « G » doré.
   Le visage est à droite : on cale l'image à droite */
.portrait-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 30%;
}
.portrait-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--color-gold);
}
.portrait-placeholder strong {
  font-family: var(--font-title);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-gold);
}
.portrait-placeholder span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Page À propos : portrait au-dessus du texte sur téléphone, à gauche sur ordinateur */
.about-grid {
  display: grid;
  gap: var(--space-lg);
}
.portrait-frame--about { width: min(calc(100% - 14px), 300px); }

/* Image vedette qui tourne comme une pièce (images/vedette.jpg), en médaillon sur le portrait */
.coin {
  position: absolute;
  left: -10px;
  bottom: -18px;
  z-index: 2;
  width: clamp(112px, 33vw, 176px);
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
  perspective: 700px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.coin::after { /* ombre légère, fixe */
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -10px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent);
  z-index: -1;
}
.coin-spin {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: coin-spin 8s linear infinite;
  will-change: transform;
}
.coin-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  background: var(--color-bg);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.coin-back { transform: rotateY(180deg); } /* revers : même image, jamais à l'envers */
.coin-ring { /* anneau doré fin qui tourne doucement autour */
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1.5px solid rgba(229, 193, 88, 0.2);
  border-top-color: var(--color-gold);
  border-right-color: rgba(229, 193, 88, 0.6);
  animation: coin-ring 12s linear infinite;
  pointer-events: none;
}
@keyframes coin-spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}
@keyframes coin-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* Pause : au survol (souris), ou au toucher (classe ajoutée par js/main.js) */
@media (hover: hover) {
  .coin:hover .coin-spin,
  .coin:hover .coin-ring { animation-play-state: paused; }
}
.coin.is-paused .coin-spin,
.coin.is-paused .coin-ring { animation-play-state: paused; }

/* ---------- 7. Présentation ---------- */
.intro {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

/* ---------- 8. Cartes (verre dépoli léger, bordure dorée fine) ---------- */
.card-grid {
  display: grid;
  gap: var(--space-md);
}

.glass,
.card,
.service,
.contact-card,
.step-card,
.cta-box,
.notice,
.faq-item,
.avis-card,
.article-end {
  background:
    linear-gradient(180deg, rgba(245, 241, 230, 0.045), rgba(245, 241, 230, 0.01)),
    var(--color-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass,
  .card,
  .cta-box {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-strong);
  box-shadow: var(--glow-gold);
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--color-text-muted); flex-grow: 1; }
.card .link-arrow { align-self: flex-start; margin-top: var(--space-xs); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-md);
  border-radius: 16px;
  background: var(--color-gold-soft);
  border: 1px solid var(--color-border);
  color: var(--color-gold);
}
.card-icon svg { width: 28px; height: 28px; }

.after-cards {
  max-width: 640px;
  margin: var(--space-lg) auto 0;
  text-align: center;
  font-family: var(--font-title);
  font-size: var(--fs-h3);
  color: var(--color-text);
}

/* Domaines de formation : défilement horizontal doux */
.scroller { position: relative; }
.scroller-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(82%, 320px);
  gap: var(--space-sm);
  margin: 0;
  padding: 0.5rem 0.25rem 1.25rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold-deep) transparent;
  -webkit-overflow-scrolling: touch;
}
.scroller-track::-webkit-scrollbar { height: 6px; }
.scroller-track::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: 6px; }
.scroller-track > * { scroll-snap-align: start; }
.scroller-track .card { height: 100%; }
.scroller-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.25rem;
}
.scroller-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-gold);
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition);
}
.scroller-btn:hover { background: var(--color-gold-soft); }
.scroller-btn:disabled { opacity: 0.35; cursor: default; }
.scroller-btn svg { width: 20px; height: 20px; }
.scroller-hint { margin: 0; font-size: var(--fs-small); color: var(--color-text-faint); }
.scroller-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

/* Atouts (Pourquoi nous choisir) */
.feature-list {
  display: grid;
  gap: var(--space-md);
}
.feature {
  padding: 1.75rem 1.5rem;
  background: rgba(245, 241, 230, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), transform var(--transition);
}
.feature:hover { border-color: var(--color-border-strong); transform: translateY(-3px); }
.feature-number {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
}
.feature p { margin: 0; color: var(--color-text-muted); }

/* Comparatif des formations (offres pratiques) */
.compare-wrap { max-width: 1000px; margin-inline: auto; }
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
}
.compare caption {
  caption-side: bottom;
  padding-top: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--color-text-faint);
  text-align: center;
}
.compare th,
.compare td { text-align: left; vertical-align: top; }
.compare td { color: var(--color-text-muted); }
.compare .compare-name { font-family: var(--font-title); font-weight: 600; color: var(--color-text); }
.compare .compare-price { color: var(--color-gold); font-weight: 600; white-space: nowrap; }
/* Téléphone : chaque ligne devient une carte */
.compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.compare tbody { display: grid; gap: var(--space-sm); }
.compare tr {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 1.25rem 1rem;
  background: var(--color-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.compare td { display: block; padding: 0; }
.compare td[data-label]::before {
  content: attr(data-label);
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.compare .compare-name { font-size: 1.08rem; }
.compare .link-arrow { min-height: 40px; }

/* Appel à l'action final */
.cta-box {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(2.25rem, 1.5rem + 4vw, 4rem) 1.5rem;
  text-align: center;
  overflow: hidden;
  border-color: var(--color-border-strong);
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(229, 193, 88, 0.16), transparent);
  pointer-events: none;
}
.cta-box > * { position: relative; }
.cta-box .lead { max-width: 560px; margin-inline: auto; margin-bottom: var(--space-md); }
.cta-box .btn-group { justify-content: center; align-items: stretch; }

/* ---------- 9. Pied de page ---------- */
.site-footer {
  padding-block: var(--space-xl) var(--space-lg);
  background: #08080B;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.site-footer a { text-decoration: none; transition: color var(--transition); }
.site-footer a:hover { color: var(--color-gold); }

.footer-grid {
  display: grid;
  gap: var(--space-lg);
}
.footer-title {
  margin-bottom: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.footer-about { max-width: 340px; margin-top: var(--space-sm); }

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-list li { padding-block: 0.3rem; }
.footer-list a { display: inline-block; padding-block: 0.15rem; }
.footer-list .label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-line);
  font-size: var(--fs-small);
  color: var(--color-text-faint);
}

/* ---------- 9 bis. Pages intérieures ---------- */
.page-hero {
  position: relative;
  padding-block: clamp(2.5rem, 2rem + 4vw, 5rem) clamp(2rem, 1.5rem + 3vw, 3.5rem);
  text-align: center;
  border-bottom: 1px solid var(--color-line);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -60% -20% auto;
  height: 160%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(229, 193, 88, 0.14), transparent 70%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3rem); }
.page-hero .lead { max-width: 640px; margin-inline: auto; margin-bottom: 0; }

/* Texte courant (à propos, articles) */
.prose {
  max-width: 720px;
  margin-inline: auto;
  color: var(--color-text-muted);
}
.prose h2 { margin-top: var(--space-lg); font-size: clamp(1.4rem, 1.25rem + 1vw, 1.9rem); }
.prose h3 { margin-top: var(--space-md); }
.prose ul,
.prose ol { padding-left: 1.2rem; margin: 0 0 var(--space-sm); }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--color-gold); }

/* Formations détaillées (services) */
.service-list { display: grid; gap: var(--space-md); }
.service {
  display: grid;
  gap: var(--space-sm);
  padding: 1.75rem 1.5rem;
  transition: border-color var(--transition);
}
.service:hover { border-color: var(--color-border-strong); }
.service .card-icon { margin-bottom: 0; }
.service h2 { font-size: var(--fs-h3); margin-bottom: 0.4rem; }
.service p { color: var(--color-text-muted); }
.service ul { margin: 0 0 var(--space-sm); padding-left: 1.2rem; color: var(--color-text-muted); }
.service li::marker { color: var(--color-gold); }

/* Encadré « bientôt disponible » */
.notice {
  max-width: 680px;
  margin-inline: auto;
  padding: clamp(2rem, 1.5rem + 3vw, 3rem) 1.5rem;
  text-align: center;
  border-style: dashed;
  border-color: var(--color-border-strong);
}
.notice .lead { margin-bottom: var(--space-md); }

/* FAQ */
.faq-list { max-width: 760px; margin-inline: auto; }
.faq-item {
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-sm);
  box-shadow: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item[open] { border-color: var(--color-border-strong); box-shadow: var(--glow-gold); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 56px;
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-title);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-gold);
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.25rem 1.25rem; color: var(--color-text-muted); }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-more { margin-top: var(--space-md); text-align: center; }

/* Blog */
.article-list { display: grid; gap: var(--space-md); }
.article-meta {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.article {
  max-width: 720px;
  margin: 0 auto var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-line);
}
.article:last-child { margin-bottom: 0; }
.article h2 { font-size: clamp(1.4rem, 1.25rem + 1vw, 1.9rem); }
.article h3 { margin-top: var(--space-md); }
.article ul, .article ol { padding-left: 1.2rem; }
.article li { margin-bottom: 0.4rem; }
.article li::marker { color: var(--color-gold); }
.article--single { border-top: 0; padding-top: 0; margin-bottom: 0; }
.article-end {
  margin-top: var(--space-lg);
  padding: 1.5rem;
  text-align: center;
  color: var(--color-text);
}
.article-end p { margin-bottom: var(--space-sm); }
.back-link { margin-top: var(--space-md); text-align: center; }

/* Contact */
.contact-grid { display: grid; gap: var(--space-lg); }
.contact-card { padding: 1.75rem 1.5rem; }
.contact-card h2 { font-size: var(--fs-h3); }
.contact-lines { list-style: none; margin: 0; padding: 0; }
.contact-lines li { padding-block: 0.6rem; border-bottom: 1px solid var(--color-line); }
.contact-lines li:last-child { border-bottom: 0; }
.contact-lines .label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.contact-lines a { font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.contact-lines a:hover { color: var(--color-gold); }

.form-field { margin-bottom: var(--space-md); }
.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 1rem; /* évite le zoom automatique sur iPhone */
  color: var(--color-text);
  background: var(--color-surface-2);
  border: 1px solid rgba(245, 241, 230, 0.18);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field select option { background: var(--color-surface); color: var(--color-text); }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(229, 193, 88, 0.22);
}
.form-help { margin-top: var(--space-sm); font-size: var(--fs-small); color: var(--color-text-muted); }

/* Ligne du temps de l'inscription (4 étapes) */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.timeline::before { /* ligne dorée verticale */
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 23px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-gold), rgba(201, 162, 39, 0.15));
}
.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: var(--space-md);
}
.timeline-step:last-child { padding-bottom: 0; }
.step-number {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: var(--color-on-gold);
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 0 0 6px var(--color-bg), 0 0 22px rgba(229, 193, 88, 0.35);
}
.section--alt .step-number { box-shadow: 0 0 0 6px var(--color-bg-alt), 0 0 22px rgba(229, 193, 88, 0.35); }
.step-card { padding: 1.4rem 1.25rem; min-width: 0; }
.step-card h2,
.step-card h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.step-card p { color: var(--color-text-muted); }
.step-card p:last-child { margin-bottom: 0; }
.step-card .btn { margin-top: var(--space-xs); }

.pay-list { display: grid; gap: var(--space-sm); margin: var(--space-sm) 0 0; }
.pay-item {
  padding: 1rem 1.1rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.pay-item .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.pay-number {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text);
}
.pay-item .btn { margin-top: 0; width: 100%; }

/* Avertissement */
.alert {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  max-width: 820px;
  margin: 0 auto var(--space-lg);
  padding: 1.1rem 1.25rem;
  background: var(--color-gold-soft);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--color-text);
}
.alert svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--color-gold); margin-top: 2px; }
.alert p { margin: 0; }

/* Réalisations : cadres d'images */
.media-grid { display: grid; gap: var(--space-md); }
.media-frame { margin: 0; }
.media-inner {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-strong);
  background: linear-gradient(150deg, #1E1A10, var(--color-surface));
  box-shadow: var(--shadow-md);
}
.media-inner img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--color-gold);
}
.media-frame.has-image .media-placeholder { display: none; }

/* ---------- 9 ter. Avis clients (js/avis.js) ---------- */
.avis-grid {
  display: grid;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}
.avis-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.5rem 1.4rem;
}
.avis-card blockquote {
  position: relative;
  flex-grow: 1;
  margin: 0 0 var(--space-sm);
  padding-top: 1.6rem;
  color: var(--color-text);
}
.avis-card blockquote::before {
  content: "“";
  position: absolute;
  top: -0.6rem;
  left: -0.1rem;
  font-family: var(--font-title);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--color-gold);
}
.avis-card blockquote p:last-child { margin-bottom: 0; }
.avis-shot {
  margin: 0 0 var(--space-sm);
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface-2);
}
.avis-shot img { width: 100%; height: auto; }
.avis-author {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.6rem;
  margin: 0;
  font-weight: 600;
  color: var(--color-text);
}
.avis-meta { font-size: var(--fs-small); font-weight: 400; color: var(--color-text-faint); }
.avis-actions { margin-top: var(--space-lg); text-align: center; }

/* Bande « Soyez parmi les premiers… » (aucun avis encore) */
.avis-empty {
  display: grid;
  gap: var(--space-sm);
  justify-items: center;
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(1.75rem, 1.25rem + 3vw, 2.75rem) 1.5rem;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(229, 193, 88, 0.1), rgba(229, 193, 88, 0.03) 50%, rgba(229, 193, 88, 0.1));
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
}
.avis-empty p { margin: 0; }
.avis-empty .avis-empty-title {
  font-family: var(--font-title);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--color-text);
}

/* ---------- 9 quater. Catalogue : offres, filtre, partage (js/offres.js) ---------- */
.mode-note {
  max-width: 760px;
  margin: var(--space-md) auto 0;
  padding: 0.9rem 1.1rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  background: var(--color-gold-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.mode-note strong { color: var(--color-gold); }
.page-hero .mode-note { margin-top: var(--space-md); }

/* Filtre : une ligne qui défile à l'horizontale sur téléphone (dans le filtre seulement), plusieurs lignes sur ordinateur */
.offer-filter {
  display: flex;
  gap: 0.5rem;
  margin: 0 calc(-1 * var(--container-pad)) var(--space-lg);
  padding: 0.25rem var(--container-pad) 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.offer-filter::-webkit-scrollbar { display: none; }
.offer-filter .chip { flex-shrink: 0; white-space: nowrap; }
.chip {
  min-height: 44px;
  padding: 0.55rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.chip:hover { border-color: var(--color-border-strong); color: var(--color-text); }
.chip[aria-pressed="true"] { background: var(--gradient-gold); border-color: transparent; color: var(--color-on-gold); font-weight: 600; }

.offer-cat { margin-bottom: var(--space-xl); scroll-margin-top: calc(var(--header-height) + 1rem); }
.offer-cat:last-of-type { margin-bottom: var(--space-lg); }
.offer-cat-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: var(--space-md);
}
.offer-cat-head .card-icon { flex-shrink: 0; margin-bottom: 0; }
.offer-cat-head h2 { margin-bottom: 0.3rem; font-size: clamp(1.35rem, 1.2rem + 0.8vw, 1.8rem); }
.offer-cat-head p { margin: 0; color: var(--color-text-muted); }

.offer-grid { display: grid; gap: var(--space-md); }
.offer {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.5rem 1.35rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  scroll-margin-top: calc(var(--header-height) + 1rem);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.offer:hover { border-color: var(--color-border-strong); }
.offer.is-target { animation: offer-flash 2.4s ease-out; border-color: var(--color-gold); }
@keyframes offer-flash {
  0%, 30% { box-shadow: 0 0 0 3px rgba(229, 193, 88, 0.55); }
  100% { box-shadow: 0 0 0 0 rgba(229, 193, 88, 0); }
}
.offer-title { margin-bottom: 0.5rem; font-size: var(--fs-h3); overflow-wrap: anywhere; }
.offer-hook { margin: 0 0 0.5rem; font-weight: 600; color: var(--color-gold); }
.offer-desc { color: var(--color-text-muted); }
.offer-label {
  margin: 0.25rem 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.offer-skills { margin: 0 0 var(--space-sm); padding-left: 1.15rem; color: var(--color-text-muted); }
.offer-skills li { margin-bottom: 0.3rem; }
.offer-skills li::marker { color: var(--color-gold); }
.offer-public { font-size: var(--fs-small); color: var(--color-text-faint); }
.offer-foot {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-line);
}
.offer-price {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gold);
}
a.offer-price--ask {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.offer-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.offer-actions .btn { flex: 1 1 auto; }
.offer-share svg { width: 18px; height: 18px; }

/* Menu de partage de secours (sans partage natif) */
.share-menu {
  display: grid;
  gap: 0.4rem;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
}
.share-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--color-text);
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.share-option:hover { background: var(--color-gold-soft); }
.share-option svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--color-gold); }

/* Accueil : nombre d'offres d'une catégorie, tableau */
.card-count { margin: 0 0 0.5rem; font-size: var(--fs-small); font-weight: 600; color: var(--color-gold); }
.compare-fixed { display: block; margin-bottom: 0.25rem; color: var(--color-text); }

/* S'inscrire et FAQ */
.info-grid { display: grid; gap: var(--space-md); }
.info-card {
  padding: 1.5rem 1.35rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.info-card h2 { font-size: var(--fs-h3); }
.info-card p { color: var(--color-text-muted); }
.price-list { margin: 0 0 var(--space-sm); padding-left: 1.15rem; }
.price-list li { margin-bottom: 0.4rem; }
.price-list li::marker { color: var(--color-gold); }
.price-list strong, .faq-answer strong { color: var(--color-gold); }
.offer-index { margin: 0 0 var(--space-sm); padding-left: 1.15rem; }
.offer-index li { margin-bottom: 0.5rem; }

/* Une formation à votre rythme (js/offres.js, [data-rythme]) */
.rythme {
  padding: 1.5rem 1.35rem;
  background: linear-gradient(160deg, rgba(229, 193, 88, 0.1), rgba(229, 193, 88, 0.02)), var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
}
.rythme-wrap { max-width: 820px; margin: var(--space-lg) auto 0; }
[data-services] + .rythme-wrap, .rythme-wrap:first-child { margin-top: 0; }
.rythme-wrap + [data-services] { margin-top: var(--space-lg); }
.rythme-title { margin-bottom: var(--space-sm); font-size: var(--fs-h3); }
.rythme-list { display: grid; gap: 0.6rem; margin: 0 0 var(--space-sm); padding: 0; list-style: none; }
.rythme-list li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--color-text); }
.rythme-list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 0.2rem; color: var(--color-gold); }
.rythme-note { font-size: var(--fs-small); color: var(--color-text-faint); }

/* ---------- 9 quinquies. Avis : étoiles et formulaire ---------- */
.stars { display: flex; gap: 0.2rem; margin: 0 0 0.6rem; }
.star svg { display: block; width: 20px; height: 20px; fill: rgba(245, 241, 230, 0.18); }
.star.is-on svg { fill: var(--color-gold); }

.avis-form-wrap { width: 100%; max-width: 560px; margin-inline: auto; text-align: left; }
.avis-form-wrap > summary { list-style: none; display: flex; width: fit-content; margin-inline: auto; cursor: pointer; }
.avis-form-wrap > summary::-webkit-details-marker { display: none; }
.avis-form-wrap[open] > summary { margin-bottom: var(--space-md); }
.avis-form {
  padding: 1.5rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.star-input { margin: 0 0 var(--space-md); padding: 0; border: 0; }
.star-input legend { margin-bottom: 0.4rem; font-size: 0.92rem; font-weight: 600; }
.star-input-row { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 0.25rem; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
}
.star-input label svg { width: 32px; height: 32px; fill: rgba(245, 241, 230, 0.2); transition: fill var(--transition), transform var(--transition); }
.star-input input:checked ~ label svg,
.star-input label:hover svg,
.star-input label:hover ~ label svg { fill: var(--color-gold); }
.star-input input:focus-visible + label { outline: 2px solid var(--color-gold); outline-offset: 2px; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: var(--space-md); font-size: 0.92rem; color: var(--color-text-muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 0.15rem; flex-shrink: 0; accent-color: var(--color-gold); }
.form-error { margin: 0 0 var(--space-sm); padding: 0.6rem 0.9rem; font-size: 0.9rem; color: var(--color-text); background: rgba(229, 72, 77, 0.15); border: 1px solid rgba(229, 72, 77, 0.5); border-radius: 10px; }

/* ---------- 9 sexies. Animation d'accueil du logo (accueil, une fois par session) ---------- */
.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 11, 15, 0.88);
  pointer-events: none;   /* la page reste utilisable : un toucher arrête l'animation */
  transition: background 0.5s ease, opacity 0.3s ease;
}
.intro-splash.is-flying { background: rgba(11, 11, 15, 0); }
.intro-splash.is-leaving { opacity: 0; }
.intro-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(42vw, 180px);
  aspect-ratio: 1;
  animation: intro-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transition: transform 0.6s cubic-bezier(0.6, 0, 0.2, 1);
  will-change: transform;
}
.intro-logo img { position: relative; width: 100%; height: 100%; border-radius: 50%; }
.intro-logo.is-text { width: auto; aspect-ratio: auto; }
.intro-logo .logo-text { position: relative; font-size: 1.8rem; }
.intro-halo {
  position: absolute;
  inset: -35%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(229, 193, 88, 0.55), rgba(229, 193, 88, 0.12) 55%, transparent);
  animation: intro-halo 0.9s ease-out both;
}
.is-flying .intro-halo { opacity: 0; transition: opacity 0.3s ease; }
@keyframes intro-in {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes intro-halo {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
.logo.is-intro-hidden { visibility: hidden; }
.logo-float { animation: logo-float 4s ease-in-out infinite; }
@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ---------- 10. Boutons flottants et barre mobile ---------- */
.floating-whatsapp,
.ai-agent-bubble {
  position: fixed;
  right: 1rem;
  z-index: 90;
  display: none; /* visibles à partir de la tablette (barre en bas sur téléphone) */
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.floating-whatsapp:hover,
.ai-agent-bubble:hover { transform: scale(1.06); }

.floating-whatsapp {
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  background: var(--color-whatsapp);
  color: var(--color-on-whatsapp);
}
.floating-whatsapp svg { width: 30px; height: 30px; }

/* Bulle de l'agent IA : au-dessus du bouton WhatsApp */
.ai-agent-bubble {
  bottom: calc(1rem + 58px + 0.85rem + env(safe-area-inset-bottom, 0px));
  background: var(--color-bg);
  color: var(--color-on-gold);
  box-shadow: 0 0 0 2px var(--color-gold), var(--shadow-lg);
}
.ai-agent-bubble svg { width: 26px; height: 26px; }

/* Barre fixe en bas (téléphone) : WhatsApp + Parler à Ima */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: flex;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: rgba(11, 11, 15, 0.96);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45);
}
.mobile-bar-btn {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
}
.mobile-bar-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.mobile-bar-wa { background: var(--color-whatsapp); color: var(--color-on-whatsapp); }
.mobile-bar-agent {
  background: var(--gradient-gold);
  color: var(--color-on-gold);
}
body.has-mobile-bar { padding-bottom: calc(var(--mobile-bar-height) + env(safe-area-inset-bottom, 0px)); }

/* Le menu ou l'agent ouvert masque les boutons flottants */
.menu-open .floating-whatsapp,
.menu-open .ai-agent-bubble,
.menu-open .mobile-bar,
.agent-open .mobile-bar,
.agent-call-open .mobile-bar { opacity: 0; pointer-events: none; visibility: hidden; }

/* ---------- 10 bis. Assistante « Ima » ---------- */
.ai-agent-bubble { padding: 0; overflow: hidden; }
.ai-agent-bubble .gj-character { width: 100%; height: 100%; }
.ai-agent-bubble .gj-waves { display: none; }

/* Personnage (thème sombre et or) */
.gj-character { display: block; width: 100%; height: 100%; overflow: visible; }
.gj-bg { fill: #2E2618; stroke: var(--color-gold); stroke-width: 2; }
.gj-jacket { fill: var(--color-gold-deep); }
.gj-collar { fill: none; stroke: var(--color-text); stroke-width: 4; stroke-linejoin: round; }
.gj-tie { fill: var(--color-bg); }
/* Ima : jeune femme illustrée (peau chaude, cheveux sombres, or) */
.gj-face, .gj-neck, .gj-ear-skin { fill: #9A6342; }
.gj-hair, .gj-hair-back { fill: #1C1510; }
.gj-hair-back { stroke: rgba(229, 193, 88, 0.35); stroke-width: 1; }
.gj-hair-shine { fill: none; stroke: rgba(229, 193, 88, 0.55); stroke-width: 1.6; stroke-linecap: round; }
.gj-spark { fill: var(--color-gold); }
.gj-earring { fill: var(--color-gold); }
.gj-necklace { fill: none; stroke: var(--color-gold); stroke-width: 1.2; }
.gj-brow { fill: none; stroke: #1C1510; stroke-width: 1.5; stroke-linecap: round; }
.gj-lash { fill: none; stroke: #1C1510; stroke-width: 1.2; stroke-linecap: round; }
.gj-nose { fill: none; stroke: #6E4329; stroke-width: 1.2; stroke-linecap: round; }
.gj-eyes { fill: #120D0A; }
.gj-cheek { fill: #D9826A; opacity: 0.35; }
.gj-smile { fill: none; stroke: #6B2A26; stroke-width: 2.2; stroke-linecap: round; }
.gj-mouth { fill: #4A1915; stroke: #8C3A33; stroke-width: 1; opacity: 0; }
.gj-waves { fill: none; stroke: var(--color-gold); stroke-width: 2.4; stroke-linecap: round; opacity: 0; }

.gj-head, .gj-eyes, .gj-mouth, .gj-spark, .gj-waves path {
  transform-box: fill-box;
  transform-origin: center;
}
.gj-head { transform-origin: 50% 100%; transition: transform 0.4s ease; }

/* Les yeux clignent */
.gj-eyes { animation: gj-blink 4.5s infinite; }
@keyframes gj-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

/* Bouche : ouverte pendant la parole ; suit les mots si le navigateur les signale
   (.has-boundary + .is-word), sinon animation régulière (.is-talking) */
.is-speaking .gj-smile { opacity: 0; }
.is-speaking .gj-mouth { opacity: 1; transform: scaleY(0.3); }
.is-talking:not(.has-boundary) .gj-mouth { animation: gj-talk 0.32s ease-in-out infinite alternate; }
.is-word .gj-mouth { animation: gj-word 0.26s ease-out; }
@keyframes gj-word {
  0% { transform: scaleY(0.3); }
  35% { transform: scaleY(1.15) scaleX(0.9); }
  100% { transform: scaleY(0.3); }
}
@keyframes gj-talk {
  0% { transform: scaleY(0.25) scaleX(1.1); }
  100% { transform: scaleY(1.15) scaleX(0.9); }
}

/* Écoute : la tête s'incline doucement, des ondes apparaissent */
.is-listening .gj-head { animation: gj-listen 1.6s ease-in-out infinite; }
.is-listening .gj-waves { opacity: 1; }
.is-listening .gj-waves path { animation: gj-wave 1.2s ease-out infinite; }
.is-listening .gj-waves path + path { animation-delay: 0.3s; }
@keyframes gj-listen {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(6deg) translateY(-1px); }
}
@keyframes gj-wave {
  0% { opacity: 0; }
  40% { opacity: 1; }
  100% { opacity: 0; }
}

/* Réfléchit : la barrette dorée brille */
.is-thinking .gj-spark { animation: gj-think 0.8s ease-in-out infinite alternate; }
@keyframes gj-think {
  from { opacity: 0.35; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.2); }
}

/* Panneau : plein écran sur téléphone */
.agent-panel {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  background: var(--color-bg);
  color: var(--color-text);
}
body.agent-open { overflow: hidden; }
.agent-open .floating-whatsapp,
.agent-open .ai-agent-bubble { opacity: 0; pointer-events: none; }

.agent-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem 0.9rem 1.25rem;
  padding-top: calc(0.9rem + env(safe-area-inset-top, 0px));
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.agent-avatar { width: 76px; height: 76px; flex-shrink: 0; }
.agent-id { flex: 1; min-width: 0; }
.agent-name {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
}
.agent-status { margin: 0.15rem 0 0; font-size: 0.85rem; color: var(--color-text-muted); }
.agent-tools { display: flex; gap: 0.4rem; align-self: flex-start; }
.agent-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  color: var(--color-text);
  cursor: pointer;
}
.agent-icon-btn:hover { background: var(--color-gold-soft); }
.agent-icon-btn svg { width: 20px; height: 20px; }

.agent-messages {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(229, 193, 88, 0.06), transparent 60%),
    var(--color-bg);
}
.agent-msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.agent-msg p { margin: 0; white-space: pre-line; }
.agent-msg .btn { margin-top: 0.75rem; }
.agent-msg-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.agent-msg-actions .btn { margin-top: 0; }
.agent-msg-actions .share-menu { margin-top: 0; }
.agent-msg--bot {
  align-self: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 6px;
}
.agent-msg--user {
  align-self: flex-end;
  background: var(--gradient-gold);
  color: var(--color-on-gold);
  border-bottom-right-radius: 6px;
}

.agent-typing { display: inline-flex; gap: 5px; align-items: center; }
.agent-typing span:not(.visually-hidden) {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-gold);
  animation: gj-dots 1s infinite ease-in-out;
}
.agent-typing span:nth-child(2) { animation-delay: 0.15s; }
.agent-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes gj-dots {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

.agent-footer {
  padding: 0.85rem 1rem;
  padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}
.agent-form { display: flex; gap: 0.5rem; align-items: flex-end; }
.agent-input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  max-height: 120px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-size: 1rem; /* évite le zoom automatique sur iPhone */
  line-height: 1.4;
  color: var(--color-text);
  background: var(--color-surface-2);
  border: 1px solid rgba(245, 241, 230, 0.18);
  border-radius: 24px;
  resize: none;
}
.agent-input::placeholder { color: var(--color-text-faint); }
.agent-input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(229, 193, 88, 0.22);
}
.agent-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: var(--color-on-gold);
  cursor: pointer;
}
.agent-send:disabled { opacity: 0.5; cursor: wait; }
.agent-send svg { width: 22px; height: 22px; }
.agent-count { margin: 0.35rem 0 0; font-size: 0.78rem; color: var(--color-text-muted); text-align: right; }

.agent-actions { display: flex; gap: 0.5rem; margin-top: 0.7rem; }
.agent-actions .btn { flex: 1; min-width: 0; padding-inline: 0.75rem; font-size: 0.88rem; }
.agent-note { margin: 0.6rem 0 0; font-size: 0.75rem; line-height: 1.4; color: var(--color-text-faint); text-align: center; }

/* Grand écran : fenêtre flottante en bas à droite */
@media (min-width: 600px) {
  .agent-panel {
    inset: auto 1.5rem 1.5rem auto;
    width: 400px;
    height: min(660px, calc(100vh - 3rem));
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--glow-gold), var(--shadow-lg);
    overflow: hidden;
  }
  body.agent-open { overflow: auto; }
  .agent-head { padding-top: 0.9rem; }
}

/* ---------- 10 ter. Mode appel de l'agent ---------- */
.agent-call-btn {
  margin: 0.75rem 1rem 0;
  flex-shrink: 0;
}

.agent-call {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  padding: calc(1.25rem + env(safe-area-inset-top, 0px)) 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(circle at 50% 38%, rgba(229, 193, 88, 0.2), transparent 60%),
    linear-gradient(180deg, var(--color-bg), #15120A);
  color: var(--color-text);
  overflow-y: auto;
}
body.agent-call-open { overflow: hidden; }

.call-top { text-align: center; }
.call-name {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}
.call-sub { margin: 0.1rem 0 0; font-size: 0.85rem; color: var(--color-text-muted); }
.call-timer {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--color-gold);
}

.call-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 0;
  padding-block: 1rem;
  text-align: center;
}
.call-avatar {
  position: relative;
  width: min(62vw, 34vh, 280px);
  aspect-ratio: 1;
}
.call-avatar::before {
  content: "";
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  opacity: 0;
}
.call-avatar.is-listening::before { animation: call-ring 1.8s ease-out infinite; }
.call-avatar.is-speaking::before { opacity: 0.5; }
@keyframes call-ring {
  0% { transform: scale(0.94); opacity: 0.7; }
  100% { transform: scale(1.12); opacity: 0; }
}
.call-status {
  min-height: 1.6em;
  margin: 0.4rem 0 0;
  font-size: 1.1rem;
  font-weight: 600;
}
.call-heard,
.call-said {
  max-width: 34rem;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.call-heard { font-style: italic; }
.call-notice {
  max-width: 34rem;
  margin: 0.25rem 0 0;
  padding: 0.6rem 0.9rem;
  font-size: 0.82rem;
  background: var(--color-gold-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

/* Conseil anti-écho */
.call-tip { margin: 0.25rem 0 0; font-size: 0.78rem; color: var(--color-text-faint); }

/* Boutons ronds */
.call-controls {
  display: flex;
  justify-content: center;
  gap: clamp(1.25rem, 8vw, 2.5rem);
  padding-top: 0.5rem;
}
.call-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.call-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), opacity var(--transition);
}
.call-round:active { transform: scale(0.94); }
.call-round svg { width: 28px; height: 28px; }
.call-round:disabled { opacity: 0.4; cursor: default; box-shadow: none; }
.call-mute[aria-pressed="true"] { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); }
.call-hangup { background: var(--color-danger); border-color: var(--color-danger); color: #FFFFFF; }
.call-hangup:hover { background: #C93A3F; }
.call-hangup svg { width: 32px; height: 32px; }
.call-label { font-size: 0.8rem; font-weight: 500; color: var(--color-text-muted); }

/* Encadrés d'accueil et de fin */
.call-panel {
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  padding: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.95rem;
}
.call-panel p { margin: 0 0 0.75rem; }
.call-small { font-size: 0.8rem; color: var(--color-text-muted); line-height: 1.5; }
.call-end-title { font-family: var(--font-title); font-size: 1.25rem; font-weight: 600; }
.call-actions { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.call-actions .btn { width: 100%; }

/* Une seule partie visible à la fois */
.agent-call .call-intro,
.agent-call .call-end,
.agent-call .call-controls { display: none; }
.agent-call[data-view="intro"] .call-intro { display: block; }
.agent-call[data-view="live"] .call-controls { display: flex; }
.agent-call[data-view="end"] .call-end { display: block; }
.agent-call[data-view="intro"] .call-timer { visibility: hidden; }
.agent-call[data-view="end"] .call-tip,
.agent-call[data-view="end"] .call-status,
.agent-call[data-view="end"] .call-heard,
.agent-call[data-view="end"] .call-said { display: none; }

/* Grand écran : grande fenêtre centrée */
@media (min-width: 600px) {
  .agent-call {
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 460px;
    height: min(780px, calc(100vh - 3rem));
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.7), var(--glow-gold);
    padding-top: 1.5rem;
  }
  body.agent-call-open { overflow: auto; }
}

/* ---------- 11. Apparition au défilement ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 12. Tablette ---------- */
@media (min-width: 600px) {
  :root { --container-pad: 2rem; }
  .btn-group { flex-direction: row; flex-wrap: wrap; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-text { font-size: 1.15rem; }
  .article-list { grid-template-columns: repeat(2, 1fr); }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .avis-grid { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: auto 1fr; align-items: start; gap: var(--space-md); padding: 2rem; }
  .scroller-track { grid-auto-columns: 300px; }
  .pay-list { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 27px; }
  .timeline-step { grid-template-columns: 56px minmax(0, 1fr); gap: 1.25rem; }
  .step-number { width: 56px; height: 56px; font-size: 1.4rem; }
  .step-card { padding: 1.6rem 1.75rem; }
}

/* Téléphone : barre fixe en bas ; tablette et ordinateur : boutons flottants */
@media (min-width: 768px) {
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-bar { display: none; }
  body.has-mobile-bar { padding-bottom: 0; }
  .floating-whatsapp,
  .ai-agent-bubble { display: inline-flex; }
  .ai-agent-bubble[hidden] { display: none !important; }

  /* Comparatif : vrai tableau */
  .compare thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: table-header-group; }
  .compare tbody { display: table-row-group; }
  .compare tr { display: table-row; padding: 0; background: none; border: 0; border-radius: 0; }
  .compare th,
  .compare td { display: table-cell; padding: 1rem 1.1rem; border-bottom: 1px solid var(--color-line); }
  .compare td[data-label]::before { content: none; }
  .compare thead th {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold);
    border-bottom: 1px solid var(--color-border-strong);
  }
  .compare tbody tr { transition: background var(--transition); }
  .compare tbody tr:hover { background: var(--color-gold-soft); }
  .compare-wrap {
    padding: 0.5rem 0.75rem;
    background: var(--color-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }
  .compare tbody tr:last-child td { border-bottom: 0; }
}

/* ---------- 13. Ordinateur ---------- */
@media (min-width: 1024px) {
  .offer-filter { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  :root { --header-height: 80px; }

  .menu-toggle { display: none; }

  .main-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--space-md);
    padding: 0;
    background: transparent;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-list {
    display: flex;
    gap: 1.2rem;
    margin: 0;
  }
  .nav-list a,
  .logo-text,
  .nav-cta .btn { white-space: nowrap; }
  .nav-list a {
    position: relative;
    padding: 0.4rem 0;
    border: 0;
    font-family: var(--font-body);
    font-size: 0.93rem;
    font-weight: 500;
  }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1.5px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
  }
  .nav-list a:hover::after,
  .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-cta { margin-top: 0; }
  .nav-cta .btn { width: auto; }
  /* Écran moyen : le bouton WhatsApp flottant suffit, le menu garde sa place */
  @media (max-width: 1279px) {
    .nav-cta { display: none; }
  }

  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: var(--space-xl); }
  .portrait-frame { width: min(100%, 400px); }
  .coin { left: -48px; bottom: 28px; }
  .about-grid {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: var(--space-xl);
    align-items: start;
  }
  .portrait-frame--about {
    width: 100%;
    position: sticky;
    top: calc(var(--header-height) + 2rem);
  }
  .about-grid .prose { margin-inline: 0; }

  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .card { padding: 2.1rem 1.9rem; }
  .feature-list { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .article-list { grid-template-columns: repeat(3, 1fr); }
  .media-grid { grid-template-columns: repeat(3, 1fr); }
  .avis-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .scroller-track { grid-auto-columns: calc((100% - 2 * var(--space-sm)) / 3.25); }

  .floating-whatsapp,
  .ai-agent-bubble { right: 1.75rem; }
  .floating-whatsapp { bottom: 1.75rem; }
  .ai-agent-bubble { bottom: calc(1.75rem + 58px + 0.85rem); }
}

/* ---------- 14. Réduire les animations ----------
   Si le visiteur l'a demandé (réglage du téléphone ou de l'ordinateur) :
   aucune animation, aucun reflet, aucun mouvement. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover,
  .card:hover,
  .feature:hover { transform: none; }
  .is-speaking .gj-mouth { transform: scaleY(0.7); }
  .call-avatar.is-listening::before { opacity: 0.6; }
  .intro-splash { display: none; }
  .logo-float { transform: none; }
}
