/* Advimo, feuille de style du site public
   Direction artistique : papier crème, encre verte, cuivre pour ce qui accélère. */

:root {
  --papier: #F7F2EA;
  --chalk: #FFFDF8;
  --encre: #101F1C;
  --vert: #0A4F41;
  --vert-clair: #17705C;
  --sauge: #DCE8E1;
  --cuivre: #C8663C;
  --cuivre-fonce: #A94A26;
  --cuivre-sombre: #8E3C1F;
  --cuivre-pale: #F7E4D9;
  --cuivre-clair: #E7A987;
  --gris: #5E6B66;
  --gris-clair: #6B7873;
  --filet: #DED7CB;
  --filet-clair: #EFE9DE;
  --rouge: #A32C22;

  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --page: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--cuivre-fonce); text-decoration: none; }
a:hover { color: var(--cuivre-sombre); }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; margin: 0; text-wrap: pretty; }
h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.03; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
h3 { font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }

.num { font-variant-numeric: tabular-nums; }

/* Mise en page --------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 24px; }

.section { padding: 88px 0; }
.section--tight { padding: 60px 0; }
.section--chalk { background: var(--chalk); border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.section--vert { background: var(--vert); color: var(--chalk); }
.section--encre { background: var(--encre); color: var(--chalk); }

.section--vert h1, .section--vert h2, .section--vert h3,
.section--encre h1, .section--encre h2, .section--encre h3 { color: var(--chalk); }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gris-clair);
}
.section--vert .eyebrow, .section--encre .eyebrow { color: var(--cuivre-clair); }

.lead { font-size: 19px; line-height: 1.6; color: var(--gris); max-width: 62ch; }
.section--vert .lead, .section--encre .lead { color: rgba(255, 253, 248, 0.76); }

.stack { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.gap-20 { gap: 20px; } .gap-28 { gap: 28px; } .gap-40 { gap: 40px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.muted { color: var(--gris); }
.note { font-size: 13px; line-height: 1.55; color: var(--gris-clair); }
.section--vert .note, .section--encre .note { color: rgba(255, 253, 248, 0.55); }

/* En-tête -------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 242, 234, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--filet);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 24px; max-width: var(--page); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--encre); }
.brand:hover { color: var(--encre); }
.brand__mark { flex-shrink: 0; }
.brand__word { font-family: var(--serif); font-size: 27px; font-weight: 500; letter-spacing: -0.015em; line-height: 1; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: #35443F; font-size: 15px; }
.nav a:hover { color: var(--vert); }
.nav a[aria-current="page"] { color: var(--vert); font-weight: 600; }

.nav-toggle {
  display: none; background: var(--chalk); border: 1px solid var(--filet);
  border-radius: var(--r-sm); padding: 9px 12px; font: inherit; font-size: 14px;
  font-weight: 600; color: var(--encre); cursor: pointer;
}

/* Boutons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 13px 22px; border-radius: var(--r-sm); border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primaire { background: var(--cuivre-fonce); color: var(--chalk); }
.btn--primaire:hover { background: var(--cuivre-sombre); color: var(--chalk); }
.btn--vert { background: var(--vert); color: var(--chalk); }
.btn--vert:hover { background: #083E33; color: var(--chalk); }
.btn--ligne { border-color: var(--vert); color: var(--vert); background: transparent; }
.btn--ligne:hover { background: var(--sauge); color: var(--vert); }
.btn--clair { background: var(--chalk); color: var(--vert); }
.btn--clair:hover { background: #EFE7DA; color: var(--vert); }
.btn--lg { font-size: 16px; padding: 16px 26px; }

.lien-fleche { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

/* Cartes --------------------------------------------------------------- */

.carte {
  background: var(--chalk); border: 1px solid var(--filet);
  border-radius: var(--r-md); padding: 26px 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.carte--sombre { background: rgba(255, 253, 248, 0.06); border-color: rgba(255, 253, 248, 0.16); color: var(--chalk); }
.carte--cuivre { background: #FDF6F1; border-color: #EFD9C9; }
.carte__num { font-family: var(--serif); font-size: 15px; font-weight: 500; color: var(--cuivre-fonce); }

.chiffre { font-size: clamp(34px, 4vw, 46px); font-weight: 600; letter-spacing: -0.025em; line-height: 1; font-variant-numeric: tabular-nums; }
.chiffre--cuivre { color: var(--cuivre-fonce); }
.chiffre--clair { color: var(--chalk); }

.badge {
  display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  background: var(--sauge); color: var(--vert); border-radius: 999px;
  padding: 8px 15px; font-size: 13.5px; font-weight: 600;
}
.badge--cuivre { background: var(--cuivre-pale); color: var(--cuivre-fonce); }
.badge--sombre { background: rgba(255, 253, 248, 0.12); color: var(--chalk); }

.filet { height: 1px; background: var(--filet); border: 0; margin: 0; }

/* Bandeau de preuve ---------------------------------------------------- */

.preuves { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; }
.preuve { display: flex; align-items: baseline; gap: 9px; font-size: 15px; color: var(--gris); }
.preuve strong { font-size: 19px; font-weight: 600; color: var(--encre); font-variant-numeric: tabular-nums; }
.section--vert .preuve, .section--encre .preuve { color: rgba(255, 253, 248, 0.7); }
.section--vert .preuve strong, .section--encre .preuve strong { color: var(--chalk); }

/* Héros ---------------------------------------------------------------- */

.hero { padding: 76px 0 68px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: start; }
.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
.hero__stat { display: flex; flex-direction: column; gap: 3px; }
.hero__stat b { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.hero__stat span { font-size: 13.5px; color: var(--gris-clair); }

/* Pipeline IA ---------------------------------------------------------- */

.pipeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.etape {
  background: rgba(255, 253, 248, 0.06); border: 1px solid rgba(255, 253, 248, 0.14);
  border-radius: var(--r-md); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px;
}
.etape__num { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--cuivre-clair); font-variant-numeric: tabular-nums; }
.etape__titre { font-size: 16px; font-weight: 600; color: var(--chalk); }
.etape__txt { font-size: 14px; line-height: 1.55; color: rgba(255, 253, 248, 0.68); }
.etape--humain { background: var(--cuivre-fonce); border-color: var(--cuivre-fonce); }
.etape--humain .etape__num { color: rgba(255, 253, 248, 0.8); }
.etape--humain .etape__txt { color: rgba(255, 253, 248, 0.85); }

/* Fil d'étapes --------------------------------------------------------- */

.fil { display: flex; flex-direction: column; }
.fil__item { display: flex; gap: 18px; }
.fil__rail { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.fil__pastille { width: 26px; height: 26px; border-radius: 999px; background: var(--vert); color: var(--chalk); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.fil__pastille--cuivre { background: var(--cuivre-fonce); }
.fil__trait { width: 2px; flex-grow: 1; background: var(--filet); min-height: 26px; }
.fil__corps { padding-bottom: 26px; display: flex; flex-direction: column; gap: 5px; }
.fil__corps h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; }

/* Simulateur ----------------------------------------------------------- */

.simu { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 0; border: 1px solid var(--filet); border-radius: var(--r-lg); overflow: hidden; background: var(--chalk); }
.simu__form { padding: 30px 32px; display: flex; flex-direction: column; gap: 22px; }
.simu__res { padding: 30px 32px; background: #FDF6F1; border-left: 1px solid #EFD9C9; display: flex; flex-direction: column; gap: 18px; }
.champ { display: flex; flex-direction: column; gap: 9px; }
.champ__label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.champ__label span { font-size: 14px; font-weight: 500; }
.champ__val { font-size: 15px; font-weight: 600; color: var(--vert); font-variant-numeric: tabular-nums; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--filet); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 999px; background: var(--vert); border: 4px solid var(--chalk); box-shadow: 0 1px 4px rgba(16, 31, 28, 0.28); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 999px; background: var(--vert); border: 4px solid var(--chalk); cursor: pointer; }

.ligne-res { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 15px; }
.ligne-res span { color: var(--gris); }
.ligne-res b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Tableaux et listes --------------------------------------------------- */

.tableau { width: 100%; border-collapse: collapse; background: var(--chalk); border: 1px solid var(--filet); border-radius: var(--r-md); overflow: hidden; }
.tableau th, .tableau td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--filet-clair); font-size: 15px; }
.tableau th { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gris-clair); background: var(--papier); }
.tableau tr:last-child td { border-bottom: 0; }
.tableau td.val { font-variant-numeric: tabular-nums; font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.liste li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.55; color: var(--gris); }
.liste li svg { flex-shrink: 0; margin-top: 3px; }
.section--vert .liste li, .section--encre .liste li { color: rgba(255, 253, 248, 0.76); }

/* FAQ ------------------------------------------------------------------ */

.faq { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--filet); }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-size: 17px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--cuivre-fonce); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { padding: 0 0 22px; color: var(--gris); max-width: 76ch; font-size: 15.5px; }

/* Pied de page --------------------------------------------------------- */

.site-footer { background: var(--encre); color: rgba(255, 253, 248, 0.7); padding: 56px 0 34px; }
.site-footer a { color: rgba(255, 253, 248, 0.7); }
.site-footer a:hover { color: var(--chalk); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.footer__col { display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.footer__col h4 { margin: 0 0 3px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cuivre-clair); }
.footer__bas { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 253, 248, 0.14); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 13px; color: rgba(255, 253, 248, 0.5); }

/* Adaptatif ------------------------------------------------------------ */

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .simu { grid-template-columns: minmax(0, 1fr); }
  .simu__res { border-left: 0; border-top: 1px solid #EFD9C9; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 44px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .pipeline { grid-template-columns: minmax(0, 1fr); }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--chalk); border-bottom: 1px solid var(--filet); padding: 8px 24px 18px;
  }
  .nav.est-ouvert { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--filet-clair); font-size: 16px; }
  .nav .btn { margin-top: 14px; border-bottom: 0; }
  .nav-toggle { display: inline-flex; }
  .site-header__inner { position: relative; flex-wrap: wrap; }
  .lead { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
