/* SEDEB : feuille de style du site public
   Idée directrice : le vocabulaire visuel d'une déclaration en douane (cases numérotées, filets, tampon). */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/Archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bleu: #000792;      /* bleu du logo */
  --bleu-2: #0a14b8;
  --nuit: #070b4a;      /* fonds sombres */
  --jaune: #ffde59;     /* étoiles du logo */
  --jaune-2: #f6cd2a;
  --ciel: #e9edf8;
  --trait: #c3cbe6;     /* filets des cases */
  --papier: #f6f7fb;
  --encre: #141a33;
  --gris: #555c7a;
  --blanc: #fff;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --f: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 17px/1.6 var(--f); font-stretch: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); text-underline-offset: 3px; }
a:hover { color: var(--bleu-2); }
h1, h2, h3, h4 { margin: 0; font-stretch: 112%; font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; color: var(--encre); text-wrap: balance; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 20px; line-height: 1.25; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--jaune-2); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only, .hp { position: absolute !important; left: 0; width: 1px; height: 1px; padding: 0 !important; border: 0 !important; min-height: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--jaune); color: var(--nuit); padding: 10px 16px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border: 2px solid transparent;
  font: 700 16px/1.2 var(--f); font-stretch: 108%; text-decoration: none; cursor: pointer; border-radius: 2px; transition: background-color .15s, color .15s, border-color .15s; }
.btn--bleu { background: var(--bleu); color: var(--blanc); }
.btn--bleu:hover { background: var(--bleu-2); color: var(--blanc); }
.btn--jaune { background: var(--jaune); color: var(--nuit); }
.btn--jaune:hover { background: var(--jaune-2); color: var(--nuit); }
.btn--ligne { border-color: var(--bleu); color: var(--bleu); background: transparent; }
.btn--ligne:hover { background: var(--bleu); color: var(--blanc); }
.btn:disabled { opacity: .6; cursor: wait; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--blanc); border-bottom: 1px solid var(--trait); }
.topbar { background: var(--nuit); color: #cfd5f2; font-size: 14px; font-stretch: 90%; }
.topbar__inner { display: flex; align-items: center; gap: 28px; min-height: 38px; }
.topbar__inner span { margin-right: auto; }
.topbar a { color: var(--blanc); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: var(--jaune); }
.topbar svg { width: 16px; height: 16px; }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.navbar__logo img { width: 200px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { display: block; padding: 10px 14px; color: var(--encre); font-weight: 600; font-stretch: 100%; text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--bleu); border-bottom-color: var(--jaune-2); }
.nav__cta { margin-left: 12px; }
.burger { display: none; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; padding: 12px; }
.burger span { display: block; height: 2px; background: var(--bleu); margin: 5px 0; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Cases de formulaire (vocabulaire commun) */
.box { position: relative; background: var(--blanc); padding: 34px 22px 20px; min-width: 0; }
.box__n { position: absolute; top: 0; left: 0; min-width: 28px; height: 24px; padding: 0 6px; display: grid; place-items: center;
  border-right: 1px solid var(--trait); border-bottom: 1px solid var(--trait); font-size: 12px; font-weight: 700; color: var(--bleu); font-stretch: 85%; }
.box__l { position: absolute; top: 3px; left: 40px; font-size: 13px; font-weight: 600; font-stretch: 75%; color: var(--gris); letter-spacing: .01em; }
.box__v { display: block; font-weight: 600; font-stretch: 100%; color: var(--encre); }

/* Accueil : la déclaration */
.decl { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); }
.decl__form { display: grid; grid-template-columns: 1.45fr 1fr; gap: 1px; background: var(--trait); border: 2px solid var(--bleu); }
.box--main { padding: 56px clamp(22px, 4vw, 52px) 48px; }
.box--main h1 { font-size: clamp(36px, 4.6vw, 60px); font-stretch: 118%; font-weight: 850; line-height: 1.03; letter-spacing: -0.025em; color: var(--bleu); max-width: 15ch; }
.decl__lead { margin-top: 24px; font-size: 19px; max-width: 46ch; color: var(--encre); }
.decl__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.box--photo { margin: 0; padding: 34px 0 0; display: flex; flex-direction: column; }
.box--photo img { flex: 1; width: 100%; height: 100%; min-height: 300px; object-fit: cover; object-position: 30% 50%; }
.stamp { position: absolute; left: -46px; bottom: 34px; width: 150px; height: 150px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: var(--jaune); color: var(--bleu); border: 3px solid var(--bleu); box-shadow: inset 0 0 0 5px var(--jaune), inset 0 0 0 7px var(--bleu);
  transform: rotate(-12deg); font-stretch: 80%; font-weight: 700; font-size: 13px; line-height: 1.1; letter-spacing: .08em; }
.stamp strong { font-size: 40px; font-stretch: 125%; font-weight: 900; letter-spacing: .02em; line-height: 1; margin: 2px 0; }
@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: tampon .5s cubic-bezier(.16, 1, .3, 1) .45s both; }
  @keyframes tampon { from { opacity: 0; transform: rotate(-4deg) scale(1.7); } to { opacity: 1; transform: rotate(-12deg) scale(1); } }
}

/* En-têtes de section */
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { margin-top: 14px; color: var(--gris); font-size: 18px; max-width: 60ch; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--row > div { max-width: 700px; }

/* Le monde SEDEB : scène isométrique pilotée par le défilement (assets/js/world.js) */
.world { --hh: 122px; position: relative; background: #eef1f8; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.world.is-ready { height: 500vh; }
.world__stage { position: relative; }
.world.is-ready .world__stage { position: sticky; top: var(--hh); height: calc(100vh - var(--hh)); height: calc(100svh - var(--hh)); overflow: hidden; }
.world__svg { display: block; width: 100%; height: auto; }
.world.is-ready .world__svg { position: absolute; inset: 0; height: 100%; }
.w-txt { font-family: var(--f); font-weight: 900; letter-spacing: .12em; }
.w-veh, .w-trolley { will-change: transform; }
.world__spots { display: none; }
.world.is-ready .world__spots { display: block; position: absolute; inset: 0; pointer-events: none; }
.spot { position: absolute; left: 0; top: 0; pointer-events: auto; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 2px solid var(--bleu); border-radius: 50%;
  background: var(--blanc); color: var(--bleu); font: 800 26px/1 var(--f); cursor: pointer; display: grid; place-items: center; transition: background-color .2s, opacity .2s; }
.spot::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--bleu); opacity: 0; }
.spot em { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; font: 700 13px/1 var(--f); font-style: normal; font-stretch: 85%;
  background: var(--bleu); color: var(--blanc); padding: 5px 8px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.spot:hover, .spot.is-active { background: var(--jaune); }
.spot:hover em, .spot:focus-visible em, .spot.is-active em { opacity: 1; }
.spot.is-off { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .spot::after { animation: onde 2.4s ease-out infinite; }
  @keyframes onde { 0% { opacity: .7; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.5); } }
}
.world__panel { padding: 40px var(--gutter); max-width: var(--wrap); margin: 0 auto; display: grid; gap: 16px; }
.world.is-ready .world__panel { position: absolute; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); top: 28px; width: 400px; padding: 0; margin: 0; }
.world__card { background: var(--blanc); border: 2px solid var(--bleu); padding: 24px 26px 26px; }
.world.is-ready .world__card { display: none; }
.world.is-ready .world__card.is-active { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .world.is-ready .world__card.is-active { animation: carte .35s cubic-bezier(.16, 1, .3, 1); }
  @keyframes carte { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
.world__count { font-size: 14px; font-weight: 700; font-stretch: 85%; color: var(--gris); margin-bottom: 8px; }
.world__card h2 { font-size: clamp(26px, 2.6vw, 34px); color: var(--bleu); }
.world__card h3 { font-size: 24px; color: var(--bleu); }
.world__card p:not(.world__count) { margin-top: 10px; color: var(--encre); }
.world__card .btn { margin-top: 18px; }
.world__nav { display: none; }
.world.is-ready .world__nav { display: flex; flex-wrap: wrap; gap: 6px; }
.world__nav button { padding: 7px 11px; border: 1px solid var(--trait); background: var(--blanc); color: var(--encre); font: 600 13.5px/1.2 var(--f); font-stretch: 90%; cursor: pointer; border-radius: 2px; }
.world__nav button:hover { border-color: var(--bleu); color: var(--bleu); }
.world__nav button[aria-current] { background: var(--bleu); border-color: var(--bleu); color: var(--blanc); }
@media (max-width: 900px) {
  .world.is-ready .world__panel { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; }
  .world__card { padding: 16px 18px 18px; }
  .world__card h2, .world__card h3 { font-size: 20px; }
  .world__card p:not(.world__count) { font-size: 15px; margin-top: 6px; }
  .world__card .btn { margin-top: 12px; min-height: 42px; padding: 9px 16px; font-size: 15px; }
  .world.is-ready .world__nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .world__nav button { flex: none; }
  .spot { width: 38px; height: 38px; margin: -19px 0 0 -19px; font-size: 22px; }
}
@media (max-width: 640px) { .world { --hh: 108px; } }

/* Services : lignes d'article */
.services { padding: 0 0 clamp(64px, 8vw, 110px); }
.lines { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--bleu); }
.line { display: grid; grid-template-columns: 190px 1fr 56px; gap: 24px; align-items: center; padding: 30px 8px; border-bottom: 1px solid var(--trait); transition: background-color .15s; }
.line:hover { background: var(--blanc); }
.line__code { font-size: 26px; font-weight: 800; font-stretch: 70%; color: var(--bleu); letter-spacing: .01em; }
.line h3 { font-size: 24px; }
.line h3 a { color: var(--encre); text-decoration: none; }
.line h3 a:hover { color: var(--bleu); text-decoration: underline; }
.line p { margin-top: 8px; color: var(--gris); max-width: 64ch; }
.line__more { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--bleu); color: var(--bleu); border-radius: 50%; }
.line__more svg { width: 22px; height: 22px; }
.line__more:hover { background: var(--jaune); }

/* Pourquoi nous */
.why { background: var(--nuit); color: #dfe3f7; padding: clamp(64px, 8vw, 110px) 0 0; overflow: hidden; }
.why__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); }
.why h2 { color: var(--blanc); font-size: clamp(32px, 4.2vw, 52px); max-width: 12ch; }
.why__intro { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.why__intro img { width: min(100%, 440px); margin-top: auto; }
.why__points { padding-bottom: clamp(64px, 8vw, 110px); }
.why__point { padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.why__point:first-child { border-top: 0; padding-top: 0; }
.why__point h3 { color: var(--jaune); font-size: 24px; }
.why__point p { margin-top: 8px; font-size: 18px; max-width: 46ch; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0 0; border: 1px solid rgba(255, 255, 255, .25); }
.figures div { padding: 18px 20px; display: flex; flex-direction: column-reverse; gap: 4px; }
.figures div + div { border-left: 1px solid rgba(255, 255, 255, .25); }
.figures dt { font-size: 15px; font-stretch: 85%; color: #b9c0e6; }
.figures dd { margin: 0; white-space: nowrap; font-size: clamp(30px, 3.4vw, 46px); font-weight: 850; font-stretch: 125%; color: var(--blanc); line-height: 1; }

/* Étapes (vraie séquence : numérotée) */
.steps { padding: clamp(64px, 8vw, 110px) 0; }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--trait); border: 2px solid var(--bleu); counter-reset: etape; }
.steps__list li { position: relative; background: var(--blanc); padding: 48px 20px 26px; counter-increment: etape; }
.steps__list li::before { content: counter(etape); position: absolute; top: 0; left: 0; width: 34px; height: 30px; display: grid; place-items: center;
  background: var(--bleu); color: var(--blanc); font-weight: 800; font-size: 15px; }
.steps__list h3 { font-size: 18px; }
.steps__list p { margin-top: 8px; font-size: 15.5px; color: var(--gris); }

/* Véhicules SEDEB : camion sur la route des étapes, avion dans le ciel de la section « Pourquoi » */
.road { position: relative; height: 92px; margin-bottom: 14px;
  background: linear-gradient(var(--bleu), var(--bleu)) left bottom / 100% 3px no-repeat,
              repeating-linear-gradient(90deg, var(--jaune-2) 0 22px, transparent 22px 44px) left calc(100% - 12px) / 100% 3px no-repeat; }
.truck { position: absolute; left: 0; bottom: 3px; width: 150px; padding: 0; border: 0; background: none; cursor: pointer;
  transform: translateX(var(--x, 0px)); will-change: transform; }
.truck svg { display: block; width: 100%; height: auto; overflow: visible; }
.truck .v-wheel { transform: rotate(var(--w, 0deg)); }
.truck:focus-visible { outline-offset: 6px; }
.truck__toot { position: absolute; right: -18px; top: -22px; padding: 4px 10px; background: var(--blanc); border: 2px solid var(--bleu); color: var(--bleu);
  font-weight: 800; font-size: 14px; font-stretch: 90%; white-space: nowrap; border-radius: 14px 14px 14px 2px; opacity: 0; transform: scale(.4); transform-origin: left bottom; pointer-events: none; }
.truck__puff { position: absolute; left: -10px; bottom: 16px; width: 14px; height: 14px; border-radius: 50%; background: #c9cfe6; opacity: 0; pointer-events: none;
  box-shadow: -14px -6px 0 2px #dfe3f2, -30px -14px 0 4px #eceff8; }
.truck.is-honk .v-body { animation: klaxon .5s ease-in-out; }
.truck.is-honk .truck__toot { animation: bulle 1.4s ease-out; }
.truck.is-honk .truck__puff { animation: fumee 1s ease-out; }
@keyframes klaxon { 0%, 100% { transform: none; } 25% { transform: translateY(-5px) rotate(-1.5deg); } 50% { transform: translateY(0); } 75% { transform: translateY(-3px); } }
@keyframes bulle { 0% { opacity: 0; transform: scale(.4); } 15%, 75% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1) translateY(-8px); } }
@keyframes fumee { 0% { opacity: 0; transform: none; } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-30px, -18px) scale(1.6); } }
.steps__list li { transition: background-color .3s; }
.steps__list li::before { transition: background-color .3s, color .3s; }
.steps__list li.is-on { background: #fffbea; }
.steps__list li.is-on::before { background: var(--jaune); color: var(--bleu); }
.steps__ok { position: absolute; right: 12px; top: 8px; padding: 3px 8px; border: 2px solid var(--bleu); color: var(--bleu); font-size: 12px; font-weight: 800;
  font-stretch: 80%; letter-spacing: .04em; transform: rotate(-8deg) scale(1.6); opacity: 0; transition: opacity .25s, transform .35s cubic-bezier(.16, 1, .3, 1); }
.steps__list li.is-done .steps__ok { opacity: 1; transform: rotate(-8deg) scale(1); }

.why { position: relative; padding-top: clamp(150px, 15vw, 200px); }
.sky { position: absolute; left: 0; right: 0; top: 12px; height: 120px; pointer-events: none; }
.sky__trail { width: 100%; height: 100%; display: block; }
.sky__trail path { fill: none; stroke: rgba(255, 255, 255, .4); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: var(--trail, 1); }
.plane { position: absolute; left: 0; top: 12px; z-index: 2; width: 190px; padding: 0; border: 0; background: none; cursor: pointer;
  transform: translate(var(--x, -200px), var(--y, 60px)) rotate(var(--r, 0deg)); will-change: transform; }
.plane svg { display: block; width: 100%; height: auto; overflow: visible; transform-origin: 50% 50%; }
.plane.is-loop svg { animation: looping 1.1s cubic-bezier(.45, 0, .2, 1); }
@keyframes looping { 0% { transform: none; } 50% { transform: translateY(-46px) rotate(-180deg); } 100% { transform: rotate(-360deg); } }
@media (max-width: 1080px) {
  .road { position: sticky; top: 122px; z-index: 5; background-color: var(--papier); }
}
@media (max-width: 640px) {
  .truck { width: 112px; }
  .road { height: 72px; top: 108px; }
  .plane { width: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  .truck.is-honk .v-body, .truck.is-honk .truck__puff, .plane.is-loop svg { animation: none; }
}

/* Articles */
.news { padding: 0 0 clamp(64px, 8vw, 110px); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: var(--blanc); border: 1px solid var(--trait); display: flex; flex-direction: column; }
.post-card__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ciel); border-bottom: 1px solid var(--trait); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 20px 22px 26px; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; font-stretch: 85%; color: var(--gris); }
.post-card__cat { color: var(--bleu); font-weight: 700; }
.post-card h3 { margin-top: 10px; font-size: 19px; font-stretch: 104%; }
.post-card h3 a { color: var(--encre); text-decoration: none; }
.post-card h3 a:hover { color: var(--bleu); text-decoration: underline; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; } /* carte entièrement cliquable */
.post-card { position: relative; }
.post-card p:last-child { margin-top: 10px; font-size: 15.5px; color: var(--gris); }
.post-card:hover { border-color: var(--bleu); }

/* Bloc rendez-vous + formulaire */
.rdv { background: var(--ciel); padding: clamp(64px, 8vw, 110px) 0; border-top: 1px solid var(--trait); }
.rdv__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.rdv__intro > p { margin-top: 14px; font-size: 18px; color: var(--gris); max-width: 44ch; }
.rdv__slot { margin-top: 32px; background: var(--blanc); border: 2px solid var(--bleu); padding: 26px 26px 22px; }
.rdv__slot--cal { padding: 0; }
.rdv__slot-title { font-weight: 800; font-stretch: 112%; font-size: 20px; color: var(--bleu); }
.rdv__slot > p:not(.rdv__slot-title):not(.rdv__line) { margin: 6px 0 16px; color: var(--gris); }
.rdv__line { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--trait); color: var(--encre); font-weight: 600; text-decoration: none; }
a.rdv__line:hover { color: var(--bleu); }
.rdv__line svg { width: 20px; height: 20px; color: var(--bleu); flex: none; }
.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-size: 14.5px; font-weight: 600; font-stretch: 90%; color: var(--encre); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; font: 400 16px/1.4 var(--f); color: var(--encre); background: var(--blanc);
  border: 1px solid #aeb7d8; border-radius: 2px; padding: 12px 14px; min-height: 48px; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--bleu); outline-offset: 0; border-color: var(--bleu); }
.contact-form__legal { font-size: 13.5px; color: var(--gris); }
.contact-form button { justify-self: start; }
.contact-form__status { font-weight: 600; color: var(--bleu); min-height: 1.6em; }

/* Pied de page */
.site-footer { background: var(--nuit); color: #c4cbec; padding: 64px 0 0; font-size: 15.5px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr .9fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer__brand img { width: 210px; }
.footer__brand p { margin-top: 18px; max-width: 34ch; }
.footer__title { color: var(--blanc); font-weight: 800; font-stretch: 108%; margin-bottom: 12px; }
.footer__col ul, .footer__legal ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { padding: 4px 0; }
.site-footer a { color: #e6e9fa; text-decoration: none; }
.site-footer a:hover { color: var(--jaune); text-decoration: underline; }
.footer__social { display: inline-flex; align-items: center; gap: 8px; }
.footer__social svg { width: 18px; height: 18px; }
.footer__news { gap: 12px; }
.footer__news-row { display: flex; gap: 8px; }
.footer__news input[type=email] { flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); color: var(--blanc); font: 16px var(--f); border-radius: 2px; }
.footer__news input::placeholder { color: #9aa2cf; }
.footer__news .contact-form__status { color: var(--jaune); }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px var(--gutter) 28px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 14px; }
.footer__legal ul { display: flex; gap: 24px; flex-wrap: wrap; }

/* Pages de service */
.page-hero { padding: clamp(28px, 4vw, 52px) 0 0; }
.page-hero__form { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1px; background: var(--trait); border: 2px solid var(--bleu); }
.page-hero__main { padding: 50px clamp(22px, 4vw, 52px) 44px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 60px); font-stretch: 116%; font-weight: 850; line-height: 1.04; letter-spacing: -0.02em; color: var(--bleu); max-width: 16ch; }
.page-hero__lead { margin-top: 20px; font-size: 19px; max-width: 48ch; }
.page-hero__main .btn { margin-top: 28px; }
.page-hero__side { display: flex; flex-direction: column; gap: 1px; background: var(--trait); }
.page-hero__side .box--img { flex: 1; padding: 34px 0 0; display: flex; align-items: flex-end; justify-content: center; background: var(--ciel); overflow: hidden; }
.page-hero__side .box--img img { width: min(100%, 340px); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-stretch: 90%; color: var(--gris); margin-bottom: 18px; }
.breadcrumb a { color: var(--gris); }

.content { padding: clamp(56px, 7vw, 96px) 0; }
.content__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 56px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; margin: 32px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--bleu); font-weight: 700; }
.prose strong { font-weight: 700; color: var(--encre); }
.prose blockquote { margin: 28px 0; padding: 18px 22px; background: var(--ciel); font-size: 19px; }
.prose img { margin: 28px 0; border: 1px solid var(--trait); }
.prose a { font-weight: 600; }
.aside-card { position: sticky; top: 140px; background: var(--blanc); border: 2px solid var(--bleu); padding: 26px; }
.aside-card h2 { font-size: 22px; color: var(--bleu); }
.aside-card p { margin: 10px 0 20px; color: var(--gris); }
.aside-card .btn { width: 100%; }
.aside-card a.rdv__line { margin-top: 12px; }

.offer { background: var(--blanc); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); padding: clamp(56px, 7vw, 96px) 0; }
.offer__grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 1px; background: var(--trait); border: 2px solid var(--bleu); }
.offer__grid > div { background: var(--blanc); padding: 30px 26px; }
.offer__grid h3 { color: var(--bleu); }
.offer__grid p { margin-top: 10px; color: var(--gris); }
.checks { list-style: none; padding: 0 !important; }
.checks li { position: relative; padding-left: 32px; }
.checks li svg { position: absolute; left: 0; top: 4px; width: 20px; height: 20px; color: var(--bleu); }

.cta-band { background: var(--bleu); color: var(--blanc); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 44px; }
.cta-band p { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; font-stretch: 112%; max-width: 30ch; line-height: 1.2; }

/* Blog */
.blog-hero { padding: clamp(36px, 5vw, 64px) 0 32px; }
.blog-hero h1 { font-size: clamp(36px, 5vw, 60px); font-stretch: 116%; font-weight: 850; color: var(--bleu); letter-spacing: -0.02em; }
.blog-hero p { margin-top: 12px; font-size: 18px; color: var(--gris); max-width: 60ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { padding: 9px 16px; border: 1px solid var(--trait); background: var(--blanc); color: var(--encre); text-decoration: none; font-weight: 600; font-size: 15px; font-stretch: 92%; border-radius: 2px; }
.chip:hover { border-color: var(--bleu); color: var(--bleu); }
.chip.is-active { background: var(--bleu); border-color: var(--bleu); color: var(--blanc); }
.news--list { padding-top: 16px; }
.news__empty { color: var(--gris); }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 48px; justify-content: center; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--trait); background: var(--blanc); text-decoration: none; font-weight: 700; }
.pagination span[aria-current] { background: var(--bleu); color: var(--blanc); border-color: var(--bleu); }

/* Article */
.post-hero { padding: clamp(32px, 5vw, 60px) 0 28px; }
.post-hero .wrap { max-width: 980px; }
.post-hero__cat { display: inline-block; font-weight: 700; font-stretch: 90%; color: var(--bleu); text-decoration: none; border-bottom: 2px solid var(--jaune-2); margin-bottom: 14px; }
.post-hero h1 { font-size: clamp(30px, 4.4vw, 50px); font-stretch: 110%; line-height: 1.1; letter-spacing: -0.015em; }
.post-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 22px; font-size: 15px; color: var(--gris); }
.post-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-hero__meta svg { width: 16px; height: 16px; }
.post-cover { max-width: 980px; margin: 0 auto; padding: 0 var(--gutter); }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--trait); }
.post-layout { max-width: 1100px; margin: 0 auto; padding: 48px var(--gutter) clamp(56px, 7vw, 96px); display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
.post-layout--solo { grid-template-columns: minmax(0, 760px); justify-content: center; }
.post-toc { position: sticky; top: 140px; border-top: 2px solid var(--bleu); padding-top: 14px; font-size: 15px; }
.post-toc p { font-weight: 800; font-stretch: 108%; margin-bottom: 10px; }
.post-toc ol { margin: 0; padding-left: 18px; }
.post-toc li { margin-bottom: 8px; }
.post-toc a { color: var(--gris); text-decoration: none; }
.post-toc a:hover { color: var(--bleu); text-decoration: underline; }
.post-content { font-size: 18px; line-height: 1.7; }
.post-content > * { max-width: 70ch; }
.post-author { margin-top: 48px; display: flex; gap: 22px; align-items: flex-start; background: var(--blanc); border: 2px solid var(--bleu); padding: 24px; }
.post-author img { width: 72px; height: 72px; flex: none; }
.post-author__name { font-weight: 800; font-stretch: 108%; }
.post-author p { margin: 0 0 8px; font-size: 16px; }
.post-author .btn { margin-top: 8px; }
.news--related { padding-top: 0; }
.preview-bar { background: var(--jaune); color: var(--nuit); padding: 12px var(--gutter); text-align: center; font-weight: 600; }

/* Pages légales, 404 */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter); }
.legal h1 { font-size: clamp(32px, 4.4vw, 48px); font-stretch: 112%; color: var(--bleu); margin-bottom: 32px; }
.legal h2 { font-size: 24px; margin: 36px 0 12px; }
.legal p, .legal ul { margin: 0 0 14px; }

/* Responsive */
@media (max-width: 1080px) {
  .burger { display: block; }
  .site-header nav { position: absolute; left: 0; right: 0; top: 100%; }
  .nav { display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--blanc); border-top: 1px solid var(--trait); padding: 8px var(--gutter) 20px; max-height: calc(100vh - 120px); overflow-y: auto; box-shadow: 0 16px 24px rgba(7, 11, 74, .12); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--trait); }
  .nav__cta { margin: 16px 0 0; }
  .nav__cta .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .steps__list { grid-template-columns: repeat(2, 1fr); }
  .steps__list li:last-child { grid-column: 1 / -1; }
  .content__grid { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .post-layout { grid-template-columns: 1fr; gap: 32px; }
  .post-toc { position: static; }
}
@media (max-width: 900px) {
  .topbar__inner span { display: none; }
  .topbar__inner { justify-content: center; gap: 20px; }
  .decl__form, .page-hero__form { grid-template-columns: 1fr; }
  .box--photo img { min-height: 220px; max-height: 300px; }
  .stamp { left: auto; right: 16px; bottom: -40px; width: 120px; height: 120px; }
  .stamp strong { font-size: 32px; }
  .box--c, .box--d { order: 5; }
  .box--photo { order: 4; }
  .why__grid, .rdv__grid { grid-template-columns: 1fr; }
  .why__intro img { display: none; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .offer__grid { grid-template-columns: 1fr; }
  .line { grid-template-columns: 1fr 48px; gap: 6px 16px; padding: 24px 0; }
  .line__code { grid-column: 1 / -1; font-size: 20px; }
  .page-hero__side { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .topbar__inner a:last-child { display: none; }
  .navbar { min-height: 70px; }
  .navbar__logo img { width: 160px; }
  .box--main { padding: 48px 20px 36px; }
  .box--a, .box--b { grid-column: 1 / -1; }
  .decl__cta .btn { width: 100%; }
  .figures { grid-template-columns: 1fr; }
  .figures div + div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .25); }
  .steps__list { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .contact-form button { width: 100%; }
  .post-author { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
