/* YETI Group — direction A « Plan de masse » */

/* Polices auto-hébergées (SIL Open Font License) */
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/big-shoulders-display-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/big-shoulders-display-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/big-shoulders-display-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/archivo-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/archivo-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/archivo-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/archivo-latin-700-normal.woff2') format('woff2'); }

:root {
  --paper: #E6E7E3;
  --paper-2: #F2F3F0;
  --ink: #1A2340;
  --ink-2: #4A5268;
  --rule: rgba(26, 35, 64, .25);
  --action: #C9380C;
  --action-hover: #A82E08;
  --signal: #E4400F;
  --grid-major: rgba(36, 60, 120, .10);
  --grid-minor: rgba(36, 60, 120, .05);
  --grid-major-dark: rgba(230, 231, 227, .08);
  --grid-minor-dark: rgba(230, 231, 227, .04);

  --display: 'Big Shoulders Display', Impact, 'Arial Narrow', sans-serif;
  --body: 'Archivo', system-ui, sans-serif;

  --line: 1.5px;
  --wrap: 1280px;
  --gutter: 32px;
  --header-h: 84px;
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 68px; }
}

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

html { scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 16px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Papier millimétré */
.grid-paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}

/* ---------- Typographie ---------- */
.display {
  font-family: var(--display);
  text-transform: uppercase;
  margin: 0;
  letter-spacing: -.005em;
}
.display--xl { font-weight: 900; font-size: clamp(50px, 7vw, 108px); line-height: .88; }
.display--l  { font-weight: 900; font-size: clamp(52px, 7vw, 104px); line-height: .9; }
.display--m  { font-weight: 800; font-size: clamp(38px, 4.6vw, 60px); line-height: .95; }
.display--s  { font-weight: 800; font-size: 28px; line-height: 1.05; }

.lead { font-size: 19px; line-height: 1.55; max-width: 34em; }
.muted { color: var(--ink-2); }
.kicker { font-size: 15px; font-weight: 500; color: var(--ink-2); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--ink-2); margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: 600 16px/1.2 var(--body);
  text-decoration: none; cursor: pointer;
  border: var(--line) solid var(--ink);
  background: var(--paper); color: var(--ink);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--primary { background: var(--action); border-color: var(--action); color: #FFFFFF; }
.btn--primary:hover { background: var(--action-hover); border-color: var(--action-hover); color: #FFFFFF; }
.btn--on-dark { background: transparent; border-color: var(--paper); color: var(--paper); }
.btn--on-dark:hover { background: var(--paper); color: var(--ink); }
.btn svg { flex: none; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: var(--line) solid var(--ink);
}
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.site-header__logo img { height: 52px; width: auto; }
@media (max-width: 640px) { .site-header__logo img { height: 42px; } }

.site-nav { margin-left: auto; display: flex; gap: 28px; }
.site-nav a {
  text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 10px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--ink); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--action); }

.nav-toggle {
  display: none; margin-left: auto;
  align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
  font: 600 15px var(--body); color: var(--ink);
  background: transparent; border: var(--line) solid var(--ink); cursor: pointer;
}
.nav-toggle__bars { width: 18px; height: 12px; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 5px; }
.nav-toggle__bars::after { bottom: 0; }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .site-header__cta { display: none; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper);
    border-bottom: var(--line) solid var(--ink);
    padding: 4px var(--gutter) 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
  .site-nav a[aria-current="page"] { border-bottom: 1px solid var(--rule); color: var(--action); }
}

/* ---------- Sections ---------- */
.section { border-bottom: var(--line) solid var(--ink); }
.section__inner { padding-block: 88px; display: flex; flex-direction: column; gap: 44px; }
@media (max-width: 640px) { .section__inner { padding-block: 64px; gap: 32px; } }

.section__head { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: flex-end; justify-content: space-between; }
.section__head .display { max-width: 16ch; }
.section__head p { max-width: 32em; }

/* ---------- Hero ---------- */
.hero { border-bottom: var(--line) solid var(--ink); }
.hero__inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; padding-block: 88px 72px; }
.hero__text { flex: 1.4 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__figure { flex: 1 1 380px; min-width: 0; margin: 0; }
@media (max-width: 640px) { .hero__inner { padding-block: 48px 40px; gap: 40px; } }

/* Dessins techniques */
.drawing { width: 100%; height: auto; overflow: visible; }
.drawing .ink { stroke: var(--ink); }
.drawing .signal { stroke: var(--signal); }
.drawing .dim { stroke: var(--ink-2); stroke-width: 1; }
.drawing text { fill: var(--ink-2); stroke: none; font: 500 12px var(--body); }
.drawing .fill-paper { fill: var(--paper); }
.drawing .fill-ink { fill: var(--ink); }
.drawing .fill-signal { fill: var(--signal); }

/* Animation « tracé » : le héros se dessine au chargement, le panorama à l'arrivée dans l'écran */
@media (prefers-reduced-motion: no-preference) {
  .js .drawing[data-animate] [data-draw] { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .drawing[data-animate] .fade-in { opacity: 0; }
  .drawing.is-drawing [data-draw] { animation: draw 1.1s cubic-bezier(.6, .1, .2, 1) forwards; }
  .drawing.is-drawing .fade-in { animation: fade .6s ease forwards; animation-delay: 1.2s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* Apparition au défilement */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--reveal-delay, 0s);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Légende (filiales, activités) ---------- */
.legend-grid { display: flex; flex-wrap: wrap; border-top: var(--line) solid var(--ink); border-left: var(--line) solid var(--ink); }
.legend {
  flex: 1 1 460px; min-width: 0;
  display: flex; flex-direction: column;
  border-right: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink);
  background: var(--paper);
}
.legend__head { padding: 20px 24px; background: var(--ink); color: var(--paper); border-bottom: var(--line) solid var(--ink); }
.legend__head--signal { background: var(--action); color: #FFFFFF; }
.legend__list { margin: 0; }
.legend__row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px;
  padding: 16px 24px; border-bottom: 1px solid var(--rule);
}
.legend__row:last-child { border-bottom: 0; }
.legend__row dt { font-weight: 600; }
.legend__row dd { margin: 0; color: var(--ink-2); }
.legend__foot { margin-top: auto; border-top: var(--line) solid var(--ink); }
.legend__link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 16px 24px;
  font-weight: 600; text-decoration: none;
}
.legend__link:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 560px) {
  .legend__row { grid-template-columns: 1fr; gap: 2px; padding: 14px 20px; }
  .legend__head, .legend__link { padding-inline: 20px; }
}

/* Activités détaillées (pages filiales) */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); border-top: var(--line) solid var(--ink); border-left: var(--line) solid var(--ink); }
.service { padding: 28px 24px 32px; border-right: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink); display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.service__ref { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.service h3 { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 700; }
.service p { color: var(--ink-2); }
.service--wide { grid-column: 1 / -1; background: var(--paper-2); }
.service--wide p { max-width: 52em; font-size: 18px; color: var(--ink); }
.service--cta { grid-column: span 2; background: var(--ink); color: var(--paper); justify-content: space-between; gap: 20px; }
.service--cta p { color: #C9CCD6; }
@media (max-width: 760px) { .service--cta { grid-column: 1 / -1; } }

/* Autres domaines */
.others { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; border-top: var(--line) solid var(--ink); padding-top: 28px; }
.others h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.others p { color: var(--ink-2); }

/* Atouts : cartouche */
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-top: var(--line) solid var(--ink); border-left: var(--line) solid var(--ink); background: var(--paper-2); }
.spec__cell { padding: 28px 24px 32px; border-right: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink); display: flex; flex-direction: column; gap: 12px; }
.spec__cell h3 { margin: 0; }
.spec__cell p { color: var(--ink-2); }

/* Publics */
.audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 40px; }
.audience__item { border-top: 4px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.audience__item h3 { margin: 0; font-size: 22px; font-weight: 700; }
.audience__item p { color: var(--ink-2); }

/* Étapes (vraie séquence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 28px 0 0; display: flex; flex-direction: column; gap: 10px; }
.steps li::before {
  content: counter(step);
  font: 900 72px/1 var(--display);
  color: var(--signal);
}
.steps li::after {
  content: ""; position: absolute; top: 36px; left: 56px; right: 16px;
  border-top: var(--line) dashed var(--ink);
}
.steps li:last-child::after { display: none; }
.steps h3 { margin: 0; font-size: 20px; font-weight: 700; }
.steps p { color: var(--ink-2); }
@media (max-width: 560px) {
  .steps { gap: 28px; }
  .steps li::after { display: none; }
}

/* Bandeau d'appel à l'action */
.cta-band { background-color: var(--ink); color: var(--paper); }
.cta-band.grid-paper {
  background-color: var(--ink);
  background-image:
    linear-gradient(var(--grid-major-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major-dark) 1px, transparent 1px),
    linear-gradient(var(--grid-minor-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor-dark) 1px, transparent 1px);
}
.cta-band__inner { padding-block: 88px; display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; justify-content: space-between; }
.cta-band__text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 20px; }
.cta-band__text .display { max-width: 16ch; }
.cta-band__text p { color: #C9CCD6; max-width: 34em; font-size: 18px; }
@media (max-width: 640px) { .cta-band__inner { padding-block: 64px; } }

/* ---------- Contact ---------- */
.contact__inner { padding-block: 72px 96px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.contact__aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact__direct { display: flex; flex-direction: column; gap: 4px; border-top: var(--line) solid var(--ink); padding-top: 20px; }
.contact__direct h2 { margin: 0 0 8px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.contact__direct dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; }
.contact__direct dt { color: var(--ink-2); }
.contact__direct dd { margin: 0; font-weight: 600; }
.contact__direct dd a { text-decoration: none; }
.contact__direct dd a:hover { text-decoration: underline; }
@media (max-width: 640px) { .contact__inner { padding-block: 48px 64px; } }

.form {
  flex: 1.6 1 560px; min-width: 0;
  background: var(--paper-2);
  border-top: var(--line) solid var(--ink); border-left: var(--line) solid var(--ink);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form > * { grid-column: span 1; }
.form .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: minmax(0, 1fr); } .form > * { grid-column: 1 / -1; } }

.field {
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
  padding: 14px 16px 16px;
  border-right: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink);
}
.field > label, .field > legend { font-size: 13px; color: var(--ink-2); padding: 0; }
.field input, .field textarea {
  font: 500 17px/1.4 var(--body); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px dashed rgba(26, 35, 64, .4);
  padding: 6px 0; min-height: 40px; width: 100%;
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input::placeholder, .field textarea::placeholder { color: #7D8496; }
.field input:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--action); }
.field:focus-within { background: #FFFFFF; }
.field[data-invalid] { background: #FBEDE7; }
.field__error { font-size: 14px; font-weight: 600; color: #A82E08; }
.field__error:empty { display: none; }

fieldset.field { margin: 0; min-inline-size: 0; }
fieldset.field > legend { float: left; width: 100%; margin-bottom: 10px; }
.chips { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px;
  border: var(--line) solid var(--ink); background: var(--paper);
  font-size: 15px; font-weight: 500;
  transition: background-color .15s ease, color .15s ease;
}
.chip:hover span { background: #FFFFFF; }
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--action); outline-offset: 2px; }

.form__route {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding: 14px 16px;
  border-right: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink);
  background: var(--paper);
}
.form__route-label { font-size: 13px; color: var(--ink-2); }
.form__route-value { font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.form__route-value::before { content: ""; width: 12px; height: 12px; background: var(--rule); }
.form__route[data-route="b"] .form__route-value::before { background: var(--ink); }
.form__route[data-route="t"] .form__route-value::before { background: var(--action); }
.form__route[data-route="g"] .form__route-value::before { background: var(--ink-2); }

.form__footer {
  display: flex; flex-wrap: wrap;
  border-right: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink);
}
.form__note { flex: 1 1 260px; display: flex; align-items: center; gap: 16px; padding: 14px 16px; font-size: 14px; color: var(--ink-2); }
.form__note img { height: 40px; width: auto; flex: none; }
.form__submit {
  flex: 0 1 280px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-left: var(--line) solid var(--ink);
  background: var(--action); color: #FFFFFF;
  font: 600 17px var(--body); padding: 20px 28px; min-height: 68px; cursor: pointer;
}
.form__submit:hover { background: var(--action-hover); }
@media (max-width: 640px) { .form__submit { flex: 1 1 100%; border-left: 0; border-top: var(--line) solid var(--ink); } }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--ink) url('../img/relief.svg') center top / cover no-repeat;
  color: #C9CCD6; font-size: 15px;
}
.site-footer__inner { padding-block: 72px 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.site-footer h2 { margin: 0 0 12px; font-size: 14px; font-weight: 500; color: #9DA3B4; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--paper); }
.site-footer a:hover { text-decoration: underline; }
.site-footer__brand { display: flex; flex-direction: column; gap: 10px; }
.site-footer__name { font: 800 30px/1 var(--display); text-transform: uppercase; color: var(--paper); }
.site-footer__base { border-top: 1px solid rgba(230, 231, 227, .15); }
.site-footer__base .wrap { padding-block: 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }

/* Bouton WhatsApp flottant (mobile) */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: none; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--action); color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(26, 35, 64, .25);
}
@media (max-width: 1000px) { .wa-float { display: inline-flex; } }

/* ---------- Panorama (transition vers le pied de page) ---------- */
.pano { padding-top: 72px; line-height: 0; overflow: hidden; border-top: var(--line) solid var(--ink); }
.pano__svg { width: 100%; height: clamp(210px, 23.6vw, 420px); }
.pano text { font: 500 13px var(--body); fill: var(--ink-2); }
.pano .pano__sign { font: 800 14px var(--display); fill: var(--ink); letter-spacing: .08em; }
.pano .pano__decal { font: 700 10px var(--body); fill: var(--action); }
@media (max-width: 700px) { .pano__labels { display: none; } .pano { padding-top: 40px; } }

/* Véhicules : circulation en boucle + léger rebond */
@media (prefers-reduced-motion: no-preference) {
  .js .pano .vehicle { opacity: 0; transition: opacity .6s ease 1.3s; }
  .pano .is-drawing .vehicle { opacity: 1; }
  .js .pano .vehicle--car { animation: car-loop 10s linear infinite -2.9s; }
  .js .pano .vehicle--truck { animation: truck-loop 13s linear infinite -4.9s; }
  .js .pano .bounce { animation: bounce .5s ease-in-out infinite; }
  .js .pano .vehicle--truck .bounce { animation-duration: .62s; animation-delay: -.2s; }
}
/* La voiture part vers la gauche, le camion vers la droite ; ~0,8–1 s de pause hors champ avant de revenir */
@keyframes car-loop {
  0%   { transform: translateX(520px); }
  92%  { transform: translateX(-1120px); }
  100% { transform: translateX(-1120px); }
}
@keyframes truck-loop {
  0%   { transform: translateX(-720px); }
  92%  { transform: translateX(1020px); }
  100% { transform: translateX(1020px); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-1.5px); }
}
