/* =====================================================================
   NexSupport — feuille de style du site
   Dépend de tokens.css. Aucune couleur en dur ici.
   ===================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  margin: 0 0 var(--sp-3);
  text-wrap: balance;
}
h1 { font-size: var(--fs-hero); line-height: var(--lh-tight); }
.hero h1 { max-width: 20ch; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); letter-spacing: 0; }
p  { margin: 0 0 var(--sp-4); text-wrap: pretty; }
a  { color: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }

/* --- Accessibilité ---------------------------------------------------- */
.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md); font-size: var(--fs-sm); text-decoration: none;
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--sp-4); }

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

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

.section { padding-block: clamp(3rem, 7vw, 6.5rem); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(2.25rem, 4vw, 3.25rem); }

.section-head { max-width: 44rem; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: var(--fs-md); margin-bottom: 0; }

.kicker {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: var(--ls-wide); text-transform: uppercase;
  color: var(--accent); margin: 0 0 var(--sp-4);
}
.kicker::before {
  content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px;
}
.section-head--center .kicker { justify-content: center; }

/* --- Boutons ---------------------------------------------------------- */
.btn {
  --btn-bg: var(--orange);
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding: 0 var(--sp-5);
  border: 1px solid transparent; border-radius: var(--r-md);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-base), background var(--t-fast);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 18px; height: 18px; flex: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--white); }

.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); }
.btn--on-dark {
  --btn-bg: transparent; --btn-fg: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--on-dark:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--block { width: 100%; }

/* --- En-tête ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--sp-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  text-decoration: none; color: var(--white); flex: none;
}
.brand__mark { width: 44px; height: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.22rem;
  letter-spacing: var(--ls-tight); color: var(--white);
}
.brand__name span { color: var(--orange); }
.brand__desc {
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: #A8B0BA; margin-top: 5px;
}

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: var(--sp-5); }
.nav__link {
  font-size: var(--fs-sm); font-weight: 500; color: #D9DEE5; text-decoration: none;
  padding-block: var(--sp-2); position: relative;
  transition: color var(--t-fast);
}
.nav__link:hover { color: var(--white); }
.nav__link[aria-current="page"] { color: var(--white); }
.nav__link { white-space: nowrap; }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--orange); border-radius: 2px;
}
.header-cta { flex: none; }
.nav__list > li > .btn { display: none; } /* visible seulement dans le menu mobile */

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r-md); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--white); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--white);
  transition: transform var(--t-fast), top var(--t-fast);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* --- Héros ------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5.5rem);
}
.hero h1 { margin-bottom: var(--sp-5); }
.hero__lead {
  font-size: var(--fs-md); color: var(--text-muted);
  max-width: 34rem; margin-bottom: var(--sp-6);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__note {
  display: flex; align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-5); font-size: var(--fs-sm); color: var(--text-subtle);
}
.hero__note svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

.hero__media { position: relative; }
.hero__frame {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: var(--bg-alt); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.1;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; left: var(--sp-4); bottom: var(--sp-4);
  display: flex; align-items: center; gap: var(--sp-3);
  background: rgba(31, 35, 41, 0.92); backdrop-filter: blur(6px);
  color: var(--white); border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm);
  box-shadow: var(--shadow-md);
}
.hero__badge svg { width: 20px; height: 20px; color: var(--orange); flex: none; }
.hero__badge strong { font-weight: 600; }
.hero__badge span { color: #A8B0BA; display: block; font-size: var(--fs-xs); }

/* --- Bandeau de réassurance ------------------------------------------- */
.assure { border-block: 1px solid var(--border); background: var(--white); }
.assure__list {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4); padding-block: var(--sp-6);
}
.assure__item { display: flex; align-items: flex-start; gap: var(--sp-3); }
.assure__item svg { width: 26px; height: 26px; color: var(--accent); flex: none; margin-top: 2px; }
.assure__item h3 { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; margin: 0 0 2px; }
.assure__item p { font-size: var(--fs-sm); color: var(--text-subtle); margin: 0; line-height: 1.45; }

/* --- Cartes de service ------------------------------------------------ */
.cards { display: grid; gap: var(--sp-4); }
.cards--services { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-5);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #D3CCBD; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--r-md);
  background: rgba(255, 122, 0, 0.1); color: var(--orange-700);
  margin-bottom: var(--sp-4);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.card p { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--sp-4); }
.card__link {
  margin-top: auto; font-size: var(--fs-sm); font-weight: 600;
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.card__link svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.card__link:hover svg { transform: translateX(3px); }
.card--feature { background: var(--ink); border-color: var(--ink); color: var(--white); }
.card--feature h3 { color: var(--white); }
.card--feature p { color: #C6CDD6; }
.card--feature .card__link { color: var(--white); }
.card--feature .card__icon { background: rgba(255, 122, 0, 0.16); color: var(--orange); }

/* --- Comment ça marche ------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); counter-reset: step; }
.step { position: relative; padding-top: var(--sp-5); border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem;
  color: var(--orange); display: block; margin-bottom: var(--sp-3);
}
.step h3 { font-family: var(--font-body); font-size: var(--fs-base); font-weight: 600; margin-bottom: var(--sp-2); }
.step p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }

/* --- Publics ---------------------------------------------------------- */
.audiences { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink);
}
.chip svg { width: 16px; height: 16px; color: var(--orange-700); }

/* --- Offres ----------------------------------------------------------- */
.offer { display: flex; flex-direction: column; }
.offer__eyebrow {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--ls-wide);
  text-transform: uppercase; color: var(--text-subtle); margin-bottom: var(--sp-2);
}
.offer ul { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.offer li { display: flex; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-muted); }
.offer li svg { width: 18px; height: 18px; color: var(--orange-700); flex: none; margin-top: 2px; }
.offer .btn { margin-top: auto; }

/* --- Bandeau d'appel à l'action --------------------------------------- */
.cta-band { background: var(--ink); color: var(--white); }
.cta-band__inner {
  display: grid; grid-template-columns: 1.4fr auto; gap: var(--sp-6);
  align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem);
}
.cta-band h2 { color: var(--white); margin-bottom: var(--sp-2); }
.cta-band p { color: #C6CDD6; margin: 0; max-width: 40rem; }
.cta-band__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* --- Pied de page ----------------------------------------------------- */
.site-footer { background: var(--ink-800); color: #C6CDD6; padding-block: var(--sp-9) var(--sp-5); }
.site-footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--sp-6); padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--line-dark);
}
.site-footer .brand { margin-bottom: var(--sp-4); }
.site-footer p { font-size: var(--fs-sm); color: #98A2AE; max-width: 24rem; }
.site-footer h3 {
  font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--white);
  margin-bottom: var(--sp-4);
}
.site-footer ul { display: grid; gap: var(--sp-2); }
.site-footer a { font-size: var(--fs-sm); color: #C6CDD6; text-decoration: none; transition: color var(--t-fast); }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between;
  padding-top: var(--sp-5); font-size: var(--fs-xs); color: #8C97A3;
}
.site-footer__bottom ul { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* --- Pages intérieures ------------------------------------------------ */
.page-hero { background: var(--ink); color: var(--white); padding-block: clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { color: var(--white); margin-bottom: var(--sp-3); }
.page-hero p { color: #C6CDD6; max-width: 42rem; margin: 0; font-size: var(--fs-md); }
.breadcrumb { font-size: var(--fs-xs); color: #98A2AE; margin-bottom: var(--sp-4); }
.breadcrumb a { color: #C6CDD6; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.prose { max-width: 68ch; }
.prose h2 { margin-top: var(--sp-7); }
.prose h3 { margin-top: var(--sp-6); }
.prose ul { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.prose li { padding-left: var(--sp-5); position: relative; color: var(--text-muted); }
.prose li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--orange);
}
.prose strong { color: var(--text); font-weight: 600; }

.callout {
  border-left: 3px solid var(--orange); background: var(--surface);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--sp-4) var(--sp-5); margin-block: var(--sp-5);
  font-size: var(--fs-sm); color: var(--text-muted);
}

/* --- Formulaire ------------------------------------------------------- */
.form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field .hint { font-size: var(--fs-xs); color: var(--text-subtle); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: var(--fs-base); color: var(--text);
  background: var(--surface); border: 1px solid #CFC8B8; border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4); min-height: 48px; width: 100%;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: var(--ring);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.checkbox { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--text-muted); }
.checkbox input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--orange-700); }

/* --- Barre d'action mobile -------------------------------------------- */
.mobile-bar { display: none; }

/* --- Média queries ---------------------------------------------------- */
@media (max-width: 1024px) {
  .cards--services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .assure__list { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__frame { aspect-ratio: 16 / 10; }
  .audiences { grid-template-columns: 1fr; }
  .cta-band__inner { grid-template-columns: 1fr; }
  .cards--2 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--ink); border-bottom: 1px solid var(--line-dark);
    padding: var(--sp-4) var(--gutter) var(--sp-6);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity var(--t-base), transform var(--t-base);
    box-shadow: var(--shadow-lg);
  }
  .nav[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    display: block; padding-block: var(--sp-4); font-size: var(--fs-md);
    border-bottom: 1px solid var(--line-dark);
  }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav .btn { margin-top: var(--sp-4); }

  .cards--services, .steps { grid-template-columns: 1fr; }
  .assure__list { grid-template-columns: 1fr; gap: var(--sp-3); }
  .site-footer__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }

  /* Barre d'action fixe en bas d'écran (mobile) */
  .mobile-bar {
    display: flex; gap: var(--sp-2);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: var(--sp-3) var(--gutter) calc(var(--sp-3) + env(safe-area-inset-bottom));
    background: rgba(245, 242, 236, 0.96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
  }
  .mobile-bar .btn { flex: 1; }
  body { padding-bottom: 84px; }
}
