/* AUTO DISTRIB — feuille de style
   Palette : Carbone #0F1419 · Papier #F6F4EF · Orange signal #FF5A1F · Acier #6B7684 */

:root {
  --ink: #0F1419;
  --ink-2: #1A222C;
  --ink-3: #26303C;
  --paper: #F6F4EF;
  --white: #FFFFFF;
  --accent: #FF5A1F;
  --accent-dark: #C7400D;
  --steel: #6B7684;
  --steel-light: #A9B2BD;
  --line: #E3DFD6;
  --radius: 16px;
  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 18px 40px -22px rgba(15, 20, 25, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 108px) 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--ink); color: var(--paper); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 10px 16px; border-radius: 8px; }

/* Sur-titre : la barre orange reprend la traverse du logo */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 4px; border-radius: 2px; background: var(--accent); }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--steel-light); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--steel); max-width: 60ch; }
.section--dark .lead, .hero .lead, .page-hero .lead { color: var(--steel-light); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .18s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: #FF7240; }
.btn--ghost { border-color: rgba(255, 255, 255, .28); color: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--ink-3); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* En-tête */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, .88);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: .01em; line-height: 1; white-space: nowrap; }
.brand__name span { color: var(--accent-dark); }
.footer .brand__name span, .on-dark .brand__name span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  padding: 10px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 500; font-size: .97rem; color: var(--ink);
  transition: background-color .18s ease;
}
.nav a:not(.btn):hover { background: rgba(15, 20, 25, .07); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav a[aria-current="page"]:hover { background: var(--ink); }
.nav .btn { min-height: 44px; margin-left: 10px; padding: 0 20px; }
.burger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); cursor: pointer; align-items: center; justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .burger { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px 20px 22px; background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 16px; font-size: 1.05rem; }
  .nav .btn { margin: 10px 0 0; min-height: 50px; }
}

/* Hero (accueil) */
.hero {
  position: relative; overflow: hidden; background: var(--ink); color: var(--paper);
  padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 120px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 420px at 88% 8%, rgba(255, 90, 31, .20), transparent 65%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .028) 0 2px, transparent 2px 26px);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 20px; }
.hero__panel {
  background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .09); border-radius: 22px; padding: 10px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
.hero__row {
  display: grid; grid-template-columns: 52px 1fr 20px; gap: 16px; align-items: center;
  padding: 18px 16px; border-radius: 14px; text-decoration: none; color: var(--paper);
  transition: background-color .18s ease;
}
.hero__row + .hero__row { border-top: 1px solid rgba(255, 255, 255, .07); }
.hero__row:hover { background: rgba(255, 255, 255, .05); }
.hero__row strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.hero__row small { color: var(--steel-light); font-size: .9rem; line-height: 1.4; display: block; }
.hero__row > svg { width: 20px; height: 20px; color: var(--accent); transition: transform .18s ease; }
.hero__row:hover > svg { transform: translateX(4px); }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255, 90, 31, .14); color: var(--accent); flex: none;
}
.icon svg { width: 24px; height: 24px; }
.card .icon { background: #FFE9DF; color: var(--accent-dark); }
@media (max-width: 920px) { .hero__grid { grid-template-columns: 1fr; } }

/* Hero des pages internes */
.page-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); padding: clamp(48px, 7vw, 92px) 0; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 320px at 92% 0%, rgba(255, 90, 31, .18), transparent 65%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .028) 0 2px, transparent 2px 26px);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 18ch; }
.page-hero--legal h1 { max-width: none; font-size: clamp(1.9rem, 4vw, 2.8rem); }

/* Grilles et cartes */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.section--white .card { background: var(--paper); }
.card h3 { margin-top: 20px; }
.card p { color: var(--steel); font-size: 1rem; }
.card p:last-child { margin-bottom: 0; }
a.card { text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--ink); }
.card__more { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.card__more svg { width: 18px; height: 18px; color: var(--accent-dark); transition: transform .18s ease; }
a.card:hover .card__more svg { transform: translateX(4px); }

/* Étapes */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.section--dark .steps { border-color: rgba(255, 255, 255, .25); }
.step { counter-increment: step; padding: 26px 24px 8px 0; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.section--dark .step + .step { border-color: rgba(255, 255, 255, .12); }
.step::before {
  content: "0" counter(step); display: block;
  font: 800 2.6rem/1 var(--font-display); color: var(--accent); margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.step p { color: var(--steel); font-size: .98rem; }
.section--dark .step p { color: var(--steel-light); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section--dark .step:nth-child(n+3) { border-top-color: rgba(255, 255, 255, .12); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding-left: 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .section--dark .step + .step { border-top-color: rgba(255, 255, 255, .12); }
}

/* Deux colonnes texte + liste */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.checks li:first-child { border-top: 1px solid var(--line); }
.checks svg { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--ink); color: var(--accent); }
.checks strong { display: block; }
.checks span { color: var(--steel); font-size: .98rem; }
.section--dark .checks li { border-color: rgba(255, 255, 255, .12); }
.section--dark .checks svg { background: var(--accent); color: var(--ink); }
.section--dark .checks span { color: var(--steel-light); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  border-right: 3px solid var(--accent-dark); border-bottom: 3px solid var(--accent-dark);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--steel); padding: 0 44px 22px 0; margin: 0; }

/* Bandeau d'appel à l'action */
.cta {
  position: relative; overflow: hidden; background: var(--accent); color: var(--ink);
  border-radius: 26px; padding: clamp(32px, 6vw, 64px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(15, 20, 25, .06) 0 2px, transparent 2px 26px);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { margin: 0 0 8px; max-width: 20ch; }
.cta p { margin: 0; max-width: 48ch; font-weight: 500; }

/* Contact */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.info { list-style: none; margin: 0; padding: 0; }
.info li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info .icon { background: var(--ink); color: var(--accent); }
.info small { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); font-weight: 600; }
.info a { font-weight: 600; text-underline-offset: 4px; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 4vw, 40px); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } .field { grid-column: 1 / -1; } }
label { font-weight: 600; font-size: .93rem; }
label em { font-style: normal; font-weight: 400; color: var(--steel); }
input, select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #CFCAC0; border-radius: 12px;
  font: 400 1rem var(--font-body); color: var(--ink); background: var(--paper);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 90, 31, .28); background: var(--white); }
.form__note { font-size: .88rem; color: var(--steel); margin: 16px 0 0; }
.form__status { margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; background: #FFE9DF; font-size: .95rem; }
.form__status[hidden] { display: none; }

/* Pages légales */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.4rem; margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.08rem; margin-top: 1.6em; }
.prose p, .prose li { color: #353E49; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--accent-dark); font-weight: 500; text-underline-offset: 3px; }
.prose address { font-style: normal; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 0 0 1em; }
.todo { background: #FFF1A8; padding: 1px 6px; border-radius: 4px; color: var(--ink); }
.updated { font-size: .9rem; color: var(--steel); }

/* Pied de page */
.footer { background: var(--ink); color: var(--steel-light); padding: clamp(48px, 7vw, 80px) 0 28px; font-size: .96rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer a.brand { display: inline-flex; padding: 0; color: var(--paper); margin-bottom: 16px; }
.footer a.brand:hover { color: var(--paper); }
.footer h4 { font: 600 .78rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--paper); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 4px; }
.footer a { text-decoration: none; display: inline-block; padding: 5px 0; transition: color .15s ease; }
.footer a:hover { color: var(--accent); }
.footer address { font-style: normal; line-height: 1.7; }
.footer__bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem;
}

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Charte graphique (page interne) */
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 800px) { .swatches { grid-template-columns: repeat(2, 1fr); } }
.swatch { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.swatch i { display: block; height: 110px; }
.swatch div { padding: 12px 14px; font-size: .88rem; line-height: 1.45; }
.swatch code { color: var(--steel); }
.logo-tile { border-radius: var(--radius); border: 1px solid var(--line); padding: 44px 28px; display: grid; place-items: center; background: var(--white); }
.logo-tile.on-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.logo-tile.on-accent { background: var(--accent); border-color: var(--accent); }
.logo-tile .brand svg { width: 64px; height: 64px; }
.logo-tile .brand__name { font-size: 1.9rem; }
.logo-tile.on-accent .brand__name span { color: var(--white); }
.type-sample { border-top: 1px solid var(--line); padding: 22px 0; }
.type-sample small { color: var(--steel); display: block; margin-bottom: 6px; }
