/* =========================================================
   Advyso — feuille de style principale
   Layout : bandeau bordeaux pleine largeur côté droit (charte HR&IT),
   sections alternées blanc / sable clair, conteneur 1200 px.
   ========================================================= */

/* ---------- Polices hébergées localement (aucun appel à des tiers) ---------- */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/playfair-display-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/playfair-display-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/source-sans-3-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }

/* ---------- Jetons de la charte ---------- */
:root {
  /* Couleurs de marque */
  --wine: #8B344B;
  --wine-deep: #6E2639;
  --gold: #EDB73C;
  --sand: #D2B48C;
  --stone: #C8BFB4;

  /* Surfaces & texte (thème clair) */
  --bg: #FFFFFF;
  --bg-soft: #FAF6F2;
  --surface: #FFFFFF;
  --line: #E7DED6;
  --fg: #2A2024;
  --muted: #5E5156;
  --ink: #8B344B;          /* texte d'accent, liens */
  --ink-hover: #6E2639;
  --band: #8B344B;         /* bandeaux bordeaux */
  --band-2: #7A2B40;
  --on-band: #FFFFFF;
  --on-band-soft: #F3E2D6;
  --on-gold: #3A1420;
  --shadow: 0 10px 30px -12px rgba(110, 38, 57, .25);
  --focus: #EDB73C;

  /* Typographie */
  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Échelle */
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.15rem, 1.05rem + .4vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.2rem + .9vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 2.7rem);
  --step-4: clamp(2.2rem, 1.6rem + 3vw, 3.6rem);

  --radius: 14px;
  --container: 1200px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --header-h: 72px;
}

/* Mode sombre : suit automatiquement le réglage de l’appareil du visiteur */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A1215; --bg-soft: #221820; --surface: #2A1D23; --line: #3D2C33;
    --fg: #F2E8E4; --muted: #C4B3B9; --ink: #EBA3B6; --ink-hover: #F5C6D3;
    --band: #6E2639; --band-2: #5C1F30; --on-band: #FFFFFF; --on-band-soft: #EBD6CB;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1A1215; --bg-soft: #221820; --surface: #2A1D23; --line: #3D2C33;
  --fg: #F2E8E4; --muted: #C4B3B9; --ink: #EBA3B6; --ink-hover: #F5C6D3;
  --band: #6E2639; --band-2: #5C1F30; --on-band: #FFFFFF; --on-band-soft: #EBD6CB;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--ink-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--container); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
.todo { background: #FFF3C4; color: #5A3B00; padding: 0 4px; border-radius: 3px; font-weight: 600; }

.eyebrow { display: flex; align-items: center; gap: 12px; font-size: var(--step--1); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--gold); flex: none; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--soft { background: var(--bg-soft); }
.section__head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 48px); }
.section__head h2 { font-size: var(--step-3); }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 62ch; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 8px; font: inherit; font-weight: 600; font-size: 1.0625rem; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--on-gold); }
.btn--gold:hover { background: #F4C85E; color: var(--on-gold); }
.btn--ghost-light { border-color: var(--sand); color: var(--on-band); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .08); color: var(--on-band); }
.btn--wine { background: var(--wine); color: #FFFFFF; }
.btn--wine:hover { background: var(--wine-deep); color: #FFFFFF; }
.btn--outline { border-color: var(--line); color: var(--fg); background: var(--surface); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: flex-end; gap: 8px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo svg { width: 34px; height: 30px; flex: none; }
.logo span { font-family: var(--f-body); font-weight: 300; font-size: 1.95rem; letter-spacing: -.02em; line-height: .9; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav__list a { display: inline-block; padding: 10px 0; color: var(--fg); text-decoration: none; font-weight: 600; position: relative; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 36px; border-radius: 999px; font-size: .875rem; font-weight: 600; letter-spacing: .06em; text-decoration: none; color: var(--muted); }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="page"] { background: var(--wine); color: #FFFFFF; }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px var(--gutter-r) 20px var(--gutter-l); }
  .js .nav:not(.is-open) { display: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__list a::after { display: none; }
  .lang { align-self: flex-start; }
}

/* ---------- Héros ---------- */
.hero { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero__shell { padding-left: max(var(--gutter-l), calc((100% - var(--container)) / 2 + 20px)); }
.hero__mark { font-family: var(--f-display); font-weight: 600; font-size: clamp(4rem, 13vw, 9.5rem); line-height: .82; color: var(--sand); margin: 0 0 -.16em clamp(18px, 5vw, 64px); position: relative; z-index: 2; letter-spacing: -.01em; }
.hero__band { position: relative; background: var(--band); color: var(--on-band); border-radius: 26px 0 0 26px; overflow: hidden; }
.hero__rule { position: absolute; left: 0; top: clamp(30px, 4vw, 44px); height: 6px; width: min(46%, 520px); background: var(--gold); transform-origin: left; animation: grow 1s .2s cubic-bezier(.2, .7, .2, 1) both; }
.hero__rule::after { content: ""; position: absolute; left: 100%; top: 2px; width: 40%; height: 2px; background: var(--gold); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .62fr); gap: 32px; padding: clamp(72px, 9vw, 112px) max(var(--gutter-r), calc((100vw - var(--container)) / 2 + 20px)) clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px); }
.hero__text { display: grid; gap: 18px; align-content: end; min-width: 0; }
.hero__kicker { font-size: var(--step--1); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.hero h1 { font-size: var(--step-4); color: var(--on-band); }
.hero__slogan { font-family: var(--f-display); font-style: italic; font-size: var(--step-2); line-height: 1.25; color: var(--gold); }
.hero__lede { font-size: var(--step-1); color: var(--on-band-soft); max-width: 56ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* Motif « code-barres » de la charte */
.barcode { position: relative; align-self: stretch; min-height: 220px; }
.barcode__art { position: absolute; inset: -20% -40% -20% 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 62% 100%); display: flex; gap: 6px; align-items: stretch; }
.barcode__art i { display: block; background: var(--gold); animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.barcode__art i:nth-child(1) { width: 4px; animation-delay: .25s; }
.barcode__art i:nth-child(2) { width: 9px; animation-delay: .3s; }
.barcode__art i:nth-child(3) { width: 3px; animation-delay: .35s; }
.barcode__art i:nth-child(4) { width: 14px; animation-delay: .4s; }
.barcode__art i:nth-child(5) { width: 54px; background: none; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 16px; gap: 6px; padding-top: 18%; animation-delay: .45s; }
.barcode__art i:nth-child(5)::before, .barcode__art i:nth-child(5)::after { content: ""; background: var(--gold); }
.barcode__art i:nth-child(6) { width: 3px; animation-delay: .5s; }
.barcode__art i:nth-child(7) { width: 7px; animation-delay: .55s; }
.barcode__art i:nth-child(8) { width: 2px; animation-delay: .6s; }
.barcode__art i:nth-child(9) { width: 5px; animation-delay: .65s; }
.barcode__art i:nth-child(10) { flex: 1; animation-delay: .7s; }
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .barcode { min-height: 90px; order: -1; margin-bottom: -8px; }
  .barcode__art { inset: -30px -40% 0 30%; }
}

/* ---------- Expertises (onglets) ---------- */
.tabs { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: start; }
.tabs__list { display: grid; gap: 8px; }
.tab { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); font: inherit; font-weight: 600; font-size: 1.0625rem; text-align: left; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.tab svg { width: 26px; height: 26px; flex: none; color: var(--ink); transition: color .2s ease; }
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--wine); border-color: var(--wine); color: #FFFFFF; }
.tab[aria-selected="true"] svg { color: var(--gold); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 20px; }
.js .panel + .panel { margin-top: 0; }
.panel__top { height: 8px; background: linear-gradient(90deg, var(--gold) 0 70%, var(--sand) 70% 100%); }
.panel__body { padding: clamp(24px, 4vw, 44px); display: grid; gap: 16px; }
.panel__kicker { font-size: var(--step--1); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.panel h3 { font-size: var(--step-2); }
.panel p { color: var(--muted); font-size: var(--step-1); max-width: 60ch; }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 28px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--ink); }
.panel.is-entering .panel__body > * { animation: fadeUp .45s cubic-bezier(.2, .7, .2, 1) both; }
.panel.is-entering .panel__body > *:nth-child(2) { animation-delay: .05s; }
.panel.is-entering .panel__body > *:nth-child(3) { animation-delay: .1s; }
.panel.is-entering .panel__body > *:nth-child(4) { animation-delay: .15s; }
@media (max-width: 860px) { .tabs { grid-template-columns: minmax(0, 1fr); } .tabs__list { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }

/* ---------- Démarche (frise) ---------- */
.steps { position: relative; list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.steps__track { position: absolute; left: 30px; right: 30px; top: 29px; height: 2px; background: var(--line); }
.steps__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--gold); transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.step-btn { position: relative; z-index: 1; display: grid; justify-items: start; gap: 12px; width: 100%; padding: 0 0 8px; background: none; border: 0; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.step-btn__num { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); font-family: var(--f-display); font-size: 1.4rem; color: var(--ink); transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease; }
.step-btn__label { font-weight: 600; line-height: 1.3; }
.step-btn:hover .step-btn__num { border-color: var(--ink); }
.step-btn.is-done .step-btn__num { border-color: var(--gold); }
.step-btn[aria-selected="true"] .step-btn__num { background: var(--gold); border-color: var(--gold); color: var(--on-gold); transform: scale(1.06); }
.step-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.step-panel + .step-panel { margin-top: 16px; }
.js .step-panel + .step-panel { margin-top: 0; }
.step-panel h3 { font-size: var(--step-2); color: var(--ink); margin-bottom: 10px; }
.step-panel p { color: var(--muted); font-size: var(--step-1); max-width: 62ch; }
.deliverable { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; align-items: baseline; gap: 2px 10px; margin-top: 16px; padding: 8px 14px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); font-size: .95rem; }
.deliverable b { color: var(--ink); font-weight: 600; }
.step-nav { display: flex; gap: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn[disabled] { opacity: .35; cursor: not-allowed; }
.icon-btn svg { width: 20px; height: 20px; }
.step-panel.is-entering > div:first-child { animation: fadeUp .45s cubic-bezier(.2, .7, .2, 1) both; }
.no-js-only { }
.js .no-js-only { display: none; }
@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .steps__track { display: none; }
  .step-panel { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Diagnostic (QCM) ---------- */
.quiz { max-width: 860px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.quiz__bar { height: 6px; background: var(--line); }
.quiz__bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .4s cubic-bezier(.2, .7, .2, 1); }
.quiz__body { padding: clamp(22px, 4.5vw, 48px); display: grid; gap: 22px; }
.quiz__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: var(--step--1); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.quiz__meta b { color: var(--ink); font-weight: 600; }
.quiz fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 12px; }
.quiz legend { font-family: var(--f-display); font-size: var(--step-2); line-height: 1.25; margin-bottom: 10px; padding: 0; text-wrap: balance; }
.option { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.option:hover { border-color: var(--ink); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option__dot { flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--stone); display: grid; place-items: center; transition: border-color .2s ease; }
.option__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--wine); transform: scale(0); transition: transform .2s ease; }
.option:has(input:checked) { border-color: var(--wine); background: var(--bg-soft); }
.option:has(input:checked) .option__dot { border-color: var(--wine); }
.option:has(input:checked) .option__dot::after { transform: scale(1); }
.option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.quiz__actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.quiz__step { animation: fadeUp .4s cubic-bezier(.2, .7, .2, 1) both; }

.result { display: grid; gap: 28px; animation: fadeUp .5s cubic-bezier(.2, .7, .2, 1) both; }
.result__top { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.score { font-family: var(--f-display); font-size: clamp(3.4rem, 9vw, 5rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.score small { font-size: .4em; color: var(--muted); }
.level { display: grid; gap: 8px; flex: 1 1 280px; min-width: 0; }
.level__pill { justify-self: start; padding: 6px 14px; border-radius: 999px; background: var(--gold); color: var(--on-gold); font-weight: 600; font-size: .95rem; }
.level p { color: var(--muted); font-size: var(--step-1); }
.gauge { position: relative; display: grid; grid-template-columns: 7fr 6fr 6fr; gap: 4px; padding-top: 18px; }
.gauge span { height: 10px; border-radius: 3px; background: var(--line); }
.gauge span.is-on { background: var(--sand); }
.gauge__marker { position: absolute; top: 0; width: 2px; height: 32px; background: var(--wine); transform: translateX(-1px); transition: left .6s cubic-bezier(.2, .7, .2, 1); }
.gauge__labels { display: grid; grid-template-columns: 7fr 6fr 6fr; gap: 4px; font-size: .85rem; color: var(--muted); margin-top: 6px; }
.result h3 { font-size: var(--step-1); font-family: var(--f-body); font-weight: 600; margin-bottom: 12px; }
.profile { display: grid; gap: 10px; }
.profile__row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 16px; align-items: center; }
.profile__bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.profile__bars span { height: 12px; border-radius: 3px; background: var(--line); }
.profile__bars span.is-on { background: var(--wine); }
.prio { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.prio li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); }
.link-btn { background: none; border: 0; padding: 6px 0; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink-hover); }
@media (max-width: 520px) { .profile__row { grid-template-columns: minmax(0, 1fr) 96px; } }

/* ---------- Pourquoi Advyso ---------- */
.why { background: var(--band); color: var(--on-band); }
.why .eyebrow { color: var(--gold); }
.why h2 { color: var(--on-band); }
.why__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 36px 32px; }
.why__item { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .22); }
.why__item svg { width: 34px; height: 34px; color: var(--gold); }
.why__item h3 { font-family: var(--f-body); font-weight: 600; font-size: 1.25rem; }
.why__item p { color: var(--on-band-soft); }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.contact__text { display: grid; gap: 18px; min-width: 0; }
.contact h2 { font-size: var(--step-3); }
.mail { font-family: var(--f-display); font-size: clamp(1.6rem, 1rem + 3.2vw, 3rem); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; line-height: 1.15; user-select: all; }
.mail:hover { color: var(--ink-hover); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.copy-status { font-weight: 600; color: var(--ink); min-height: 1.6em; }
.lines { display: grid; gap: 9px; justify-self: end; width: min(100%, 260px); }
.lines span { height: 2px; background: var(--wine); opacity: .85; transform-origin: left; }
@media (max-width: 760px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } .lines { display: none; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--wine-deep); color: #F3E2D6; border-top: 6px solid var(--gold); }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; padding-block: 40px; align-items: end; }
.site-footer .logo { color: #FFFFFF; }
.site-footer .logo:hover { color: #FFFFFF; }
.site-footer__slogan { font-family: var(--f-display); font-style: italic; font-size: 1.15rem; color: var(--gold); margin-top: 10px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #FFFFFF; }
.site-footer a:hover { color: var(--gold); }
.site-footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .9rem; color: #E3CBC0; }
@media (max-width: 700px) { .site-footer__inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pages légales ---------- */
.legal-hero { background: var(--band); color: var(--on-band); padding-block: clamp(40px, 6vw, 72px); }
.legal-hero h1 { font-size: var(--step-4); color: var(--on-band); }
.legal-hero p { color: var(--on-band-soft); margin-top: 12px; font-size: var(--step-1); }
.legal { max-width: 800px; padding-block: clamp(40px, 6vw, 72px); display: grid; gap: 40px; }
.legal section { display: grid; gap: 12px; }
.legal h2 { font-size: var(--step-2); color: var(--ink); }
.legal p, .legal li { color: var(--fg); max-width: 68ch; }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.facts { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; color: var(--muted); padding-right: 16px; }
.updated { font-size: .95rem; color: var(--muted); }
@media (max-width: 560px) { .facts { grid-template-columns: minmax(0, 1fr); } .facts dt { border-bottom: 0; padding-bottom: 0; } }

/* ---------- Page d'accueil des langues / 404 ---------- */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 40px var(--gutter-r) 40px var(--gutter-l); background: var(--bg-soft); }
.gate__card { width: min(100%, 560px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.gate__top { height: 8px; background: linear-gradient(90deg, var(--wine) 0 60%, var(--gold) 60% 100%); }
.gate__body { padding: clamp(28px, 6vw, 48px); display: grid; gap: 22px; }
.gate h1 { font-size: var(--step-2); }
.gate__langs { display: grid; gap: 10px; }
.gate__langs a { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--fg); }
.gate__langs a:hover { border-color: var(--wine); color: var(--ink); }
.gate__langs small { color: var(--muted); font-weight: 400; letter-spacing: .08em; }

/* ---------- Animations ---------- */
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeUp { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: fadeUp linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
