/* =========================================================
   GAYRAUD — Transformation digitale & conseil
   Feuille de style unique du site (HTML/CSS pur)
   Toute la charte est pilotée par les variables ci-dessous.
   ========================================================= */

/* ---------- Police auto-hébergée ----------
   Mulish (SIL Open Font License, voir assets/fonts/OFL-Mulish.txt)
   Fichier variable unique, graisses 400 à 800, caractères latins (français inclus). */
@font-face {
  font-family: "Mulish";
  src: url("../fonts/mulish-latin.woff") format("woff");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Couleurs de la charte (extraites des supports d'offres) */
  --c-bg: #000000;            /* fond principal */
  --c-surface: #0f1014;       /* cartes */
  --c-surface-2: #16171d;     /* cartes survolées / bandeaux */
  --c-border: #23242c;        /* bordures discrètes */
  --c-text: #ffffff;          /* texte principal */
  --c-text-muted: #b9bac4;    /* texte secondaire */
  --c-violet: #7349fd;        /* accent principal (logo, boutons) */
  --c-violet-hover: #8763ff;
  --c-mauve: #b862ea;         /* fin du dégradé, intertitres */
  --c-magenta: #d21cf0;       /* accent IA */
  --gradient: linear-gradient(90deg, #724dff 0%, #9558f4 50%, #ba62ea 100%);

  /* Typographie */
  --font: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --fs-h1: 2.625rem; /* 42px */

  /* Espacements & formes */
  --container: 1160px;
  --gutter: 1rem;
  --radius: 18px;
  --radius-pill: 999px;
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --header-h: 72px;
}

@media (min-width: 768px) {
  :root { --gutter: 2rem; }
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 2px solid var(--c-mauve); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Utilitaires ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--c-surface); border-block: 1px solid var(--c-border); }
.muted { color: var(--c-text-muted); }
.accent { color: var(--c-mauve); }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--c-violet); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.eyebrow { display: inline-block; font-size: 1rem; /* 16px */ font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-mauve); margin-bottom: 0.9rem; }
.lead { font-size: var(--fs-lg); color: var(--c-text-muted); max-width: 810px; }
.section-head { max-width: 810px; margin-bottom: 2.5rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--c-violet); color: #fff; }
.btn--primary:hover { background: var(--c-violet-hover); }
.btn--ghost { border-color: var(--c-border); color: var(--c-text); background: transparent; }
.btn--ghost:hover { border-color: var(--c-violet); }
.btn--sm { min-height: 40px; padding: 0.5rem 1.1rem; font-size: var(--fs-sm); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
/* Logo d'en-tête : « G » du monogramme + « AYRAUD » (lettres 10 % plus petites que le G).
   La hauteur de l'image = hauteur du G. */
.brand__logo { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav__list { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; }
.nav__link { display: block; padding: 0.5rem 0.8rem; border-radius: 8px; text-decoration: none; color: var(--c-text-muted); font-weight: 600; font-size: 0.95rem; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--c-text); }
.nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--c-violet); border-radius: 0; }
.nav__cta { margin-left: 0.75rem; }
.nav-toggle { display: none; }

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px;
    border: 1px solid var(--c-border); background: transparent; color: var(--c-text); cursor: pointer;
  }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    content: ""; display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s;
  }
  .nav-toggle__bar::before { position: absolute; top: -6px; }
  .nav-toggle__bar::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1.25rem var(--gutter) 2rem;
    background: var(--c-bg); border-bottom: 1px solid var(--c-border);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; }
  .nav__link { padding: 0.85rem 0.25rem; font-size: 1.05rem; border-bottom: 1px solid var(--c-border); border-radius: 0; }
  .nav__link[aria-current="page"] { box-shadow: none; color: var(--c-mauve); }
  .nav__cta { margin: 0.5rem 0 0; }
}

/* ---------- Héros ---------- */
.hero { position: relative; padding-block: clamp(4rem, 3rem + 6vw, 8rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, rgba(115, 73, 253, 0.28), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .hero__inner { grid-template-columns: 1.35fr 1fr; } }
.hero h1 { margin-bottom: 0.5em; }
.hero .lead { margin-bottom: 2rem; }
.hero__panel {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 1.75rem;
}
.hero__panel h2 { font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text-muted); margin-bottom: 1.25rem; }

/* Liste à puces colorées (style des supports) */
.dot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.dot-list li { position: relative; padding-left: 1.6rem; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 11px; height: 11px; border-radius: 50%; background: var(--c-violet); }
.dot-list li:nth-child(even)::before { background: var(--c-mauve); }
.dot-list strong { display: block; }
.dot-list span { color: var(--c-text-muted); font-size: 0.95rem; }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 1.75rem; display: flex; flex-direction: column;
}
.section--alt .card { background: var(--c-bg); }
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(115, 73, 253, 0.14); color: var(--c-violet); margin-bottom: 1.25rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card--offer { position: relative; overflow: hidden; }
.card--offer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--gradient); }
.card--offer .btn { margin-top: auto; align-self: flex-start; }
.card--offer ul { margin: 0 0 1.5rem; }
.card__meta { font-size: var(--fs-sm); color: var(--c-mauve); font-weight: 700; margin-bottom: 0.75rem; letter-spacing: .02em; }

/* Références clients */
.refs { display: grid; gap: 1rem; }
@media (min-width: 800px) { .refs { grid-template-columns: repeat(3, 1fr); } }
.ref { border-left: 3px solid var(--c-violet); padding: 0.25rem 0 0.25rem 1rem; }
.ref strong { display: block; font-size: 1.1rem; }
.ref span { color: var(--c-text-muted); font-size: 0.95rem; }

/* Frise / timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--c-border); }
.timeline > li { position: relative; padding: 0 0 2rem 2.25rem; }
.timeline > li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-bg); border: 3px solid var(--c-violet); }
.timeline__period { font-size: var(--fs-sm); font-weight: 700; color: var(--c-mauve); }

/* Bandeau CTA */
.cta-band {
  border-radius: calc(var(--radius) + 6px); padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  background: linear-gradient(180deg, #2a2d3a 0%, #0c0d11 100%); border: 1px solid var(--c-border);
  text-align: center;
}
.cta-band p { color: var(--c-text-muted); max-width: 58ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.5rem; }

/* Rendez-vous */
.booking-frame { width: 100%; min-height: 720px; border: 0; border-radius: var(--radius); background: #fff; }

/* Contenu texte long (pages légales) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2.25rem; }
.prose a { color: var(--c-mauve); }
.prose dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.2rem 1.5rem; }
@media (min-width: 640px) { .prose dl { grid-template-columns: 220px 1fr; } }
.prose dt { color: var(--c-text-muted); }
.prose dd { margin: 0 0 0.6rem; }
.todo { background: rgba(210, 28, 240, 0.12); border: 1px dashed var(--c-magenta); border-radius: 6px; padding: 0 0.35em; }

/* Page intérieure : en-tête de page */
.page-hero { padding-block: clamp(3rem, 2.5rem + 3vw, 5rem) 1rem; }
.page-hero .lead { margin-bottom: 0; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--c-border); padding-block: 3rem 2rem; margin-top: var(--section-y); position: relative; }
.site-footer::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--gradient); }
.site-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.12em; color: var(--c-text-muted); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--c-text); text-decoration: none; }
.site-footer a:hover { color: var(--c-mauve); }
.site-footer__tagline { font-size: var(--fs-sm); letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-text-muted); margin-top: 0.9rem; }
.site-footer__legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--c-border); font-size: var(--fs-sm); color: var(--c-text-muted); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.social { display: flex; gap: 0.6rem; }
.social a {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.5rem 0.9rem;
  border: 1px solid var(--c-border); border-radius: var(--radius-pill); font-weight: 600; font-size: 0.95rem;
}
.social a:hover { border-color: var(--c-violet); color: var(--c-text); }
.social svg { width: 18px; height: 18px; }

/* ---------- Session 2 : offres détaillées & parcours ---------- */
.section--tight { padding-block: 1.5rem clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.h-small { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.12em; color: var(--c-text-muted); margin-bottom: 1.1rem; }

/* Cartes de téléchargement */
.doc-card {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
  text-decoration: none; transition: border-color .2s, background-color .2s;
}
.doc-card:hover { border-color: var(--c-violet); background: var(--c-surface-2); }
.doc-card__icon { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(115, 73, 253, 0.14); color: var(--c-violet); }
.doc-card__icon svg, .doc-card__dl svg { width: 24px; height: 24px; }
.doc-card__body { flex: 1; min-width: 0; }
.doc-card__body strong { display: block; }
.doc-card__body span { color: var(--c-text-muted); font-size: var(--fs-sm); }
.doc-card__dl { flex: none; color: var(--c-mauve); }

/* Cartes de phase avec livrables */
.card__label { font-size: var(--fs-sm); font-weight: 700; color: var(--c-text); margin: 0.5rem 0 0.4rem; }
.card--phase ul { margin: 0; padding-left: 1.1em; color: var(--c-text-muted); font-size: 0.95rem; }
.card--phase li + li { margin-top: 0.25rem; }

/* Fiche format de mission */
.facts { display: grid; gap: 1rem; margin: 2.5rem 0 2rem; padding: 1.5rem; border: 1px solid var(--c-border); border-radius: var(--radius); }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(4, 1fr); } .facts dd { max-width: 243.5px; } }
.facts dt { font-size: var(--fs-sm); font-weight: 700; color: var(--c-mauve); text-transform: uppercase; letter-spacing: 0.08em; }
.facts dd { margin: 0.2rem 0 0; }

/* Étapes numérotées (IA) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.steps li { display: flex; gap: 1rem; padding: 1.25rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.steps strong { display: block; }
.steps span:not(.step__num) { color: var(--c-text-muted); font-size: 0.95rem; }
.step__num { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--gradient); }

/* Frise détaillée */
.timeline__milestone > h3 { margin-bottom: 0.25rem; }
.timeline--nested { margin-top: 1.75rem; }
.timeline--nested::before { background: rgba(115, 73, 253, 0.35); }
.timeline--nested > li::before { width: 12px; height: 12px; left: 2px; top: 7px; border-width: 2px; border-color: var(--c-mauve); }
.timeline--nested h4 { font-size: 1.1rem; margin: 0.1rem 0 0.15rem; }
.timeline__org { color: var(--c-text); font-weight: 600; margin-bottom: 0.5rem; }
.timeline--nested ul { margin: 0; padding-left: 1.1em; color: var(--c-text-muted); font-size: 0.95rem; }
.timeline--nested ul li + li { margin-top: 0.2rem; }

/* Compétences, formation, langues */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { padding: 0.35rem 0.85rem; border: 1px solid var(--c-border); border-radius: var(--radius-pill); font-size: 0.95rem; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.plain-list strong { display: block; }
.plain-list span { color: var(--c-text-muted); font-size: 0.95rem; }

/* ---------- Session 3 : agenda intégré ---------- */
.booking-frame { display: block; height: 760px; min-height: 0; box-shadow: 0 0 0 1px var(--c-border); }
@media (max-width: 699px) { .booking-frame { height: 1100px; border-radius: 12px; } }
.booking-fallback { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.25rem; color: var(--c-text-muted); font-size: var(--fs-base); }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* Encart de consentement avant chargement de l'agenda Google */
.booking-consent {
  display: grid; place-items: center; min-height: 360px; padding: 2rem 1.25rem;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); text-align: center;
}
.booking-consent__inner { max-width: 560px; }
.booking-consent .card__icon { margin: 0 auto 1.25rem; }
.booking-consent h2 { font-size: 1.4rem; }
.booking-consent p { color: var(--c-text-muted); }
.booking-consent a { color: var(--c-mauve); }
.booking-consent .btn { margin-top: 0.75rem; }
