/* ==========================================================
   NYFFELS — Agence commerciale · Hauts-de-France
   Feuille de styles principale
   ========================================================== */

/* ---------- Variables ---------- */
:root {
  --orange: #F26B0A;
  --orange-text: #B4500A;      /* orange lisible sur fond clair (AA) */
  --orange-soft: #FDEBDD;
  --orange-light: #F7A35C;     /* orange lisible sur fond sombre */
  --ink: #1E2124;
  --ink-deep: #16181A;
  --ink-2: #272B2F;
  --line-dark: #3A3E43;
  --grey-700: #45494E;
  --grey-600: #5A5E63;
  --grey-400: #A9ACB0;
  --grey-300: #C9CBCD;
  --grey-200: #D6D7D8;
  --line: #E4E4E2;
  --paper: #F6F6F5;
  --white: #FFFFFF;

  --font-title: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container: 1240px;
  --radius: 16px;
  --section-y: clamp(64px, 10vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-text); }
a:hover { color: #8A3D07; }
h1, h2, h3, p { margin: 0; }
input, select, textarea, button { font: inherit; font-size: 16px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: var(--section-y) 0; }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--ink); color: var(--white); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typographie ---------- */
.eyebrow {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange-text);
}
.section--dark .eyebrow, .photo-section .eyebrow { color: var(--orange-light); }
.h2 {
  margin-top: 12px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(30px, 5.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.lead { margin-top: 18px; font-size: 18px; color: var(--grey-600); }
.section--dark .lead, .photo-section .lead { color: var(--grey-200); }
.accent { color: var(--orange); }
.head { max-width: 820px; }
.head--center { text-align: center; margin: 0 auto; }
.mt-xl { margin-top: clamp(32px, 5vw, 56px); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 26px;
  border-radius: 8px; border: 0; cursor: pointer;
  font-family: var(--font-title); font-weight: 700; font-size: 16px;
  text-decoration: none; text-align: center;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(242,107,10,.7); }
.btn--outline { border: 1.5px solid #5A5E63; color: var(--white); background: transparent; }
.btn--outline:hover { color: var(--white); border-color: var(--white); }
.btn--block { width: 100%; }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.header__logo img { height: clamp(38px, 8vw, 50px); width: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-family: var(--font-title); font-weight: 600; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--orange-text); }
.nav .nav__tel { color: var(--orange-text); }
.nav .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink-deep); color: var(--white); }
.hero__bg { position: absolute; inset: 0; background: url("../img/hero.jpg") 75% center / cover no-repeat; background-image: image-set("../img/hero.webp" type("image/webp"), "../img/hero.jpg" type("image/jpeg")); animation: zoom 18s ease-out both; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,24,26,.97) 0%, rgba(22,24,26,.88) 48%, rgba(22,24,26,.6) 100%); }
.hero__inner {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 5vw, 64px);
  padding-top: clamp(48px, 9vw, 104px); padding-bottom: clamp(56px, 9vw, 112px);
}
.hero__text { flex: 999 1 540px; min-width: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.06);
  font-size: 14px; font-weight: 500; color: var(--line);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; animation: pulse 1.8s ease-out infinite; }
.dot--dark { background: var(--ink); width: 10px; height: 10px; }
.hero h1 {
  font-family: var(--font-title); font-weight: 900;
  font-size: clamp(36px, 6.4vw, 68px); line-height: 1.03; letter-spacing: -.025em;
}
.hero__lead { margin-top: 28px; max-width: 580px; font-size: clamp(17px, 2.2vw, 19px); color: var(--grey-200); }
.checks { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 32px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--line); }
.checks li { display: flex; align-items: center; gap: 8px; }
.hero__form { flex: 1 1 380px; min-width: 0; max-width: 480px; }

/* ---------- Cartes formulaire ---------- */
.form-card {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius); border-top: 5px solid var(--orange);
  padding: clamp(24px, 4vw, 34px);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7);
}
.form-card__title { font-family: var(--font-title); font-weight: 800; font-size: 22px; line-height: 1.25; }
.form-card__sub { margin: 6px 0 20px; font-size: 15px; color: var(--grey-600); }
.form { display: flex; flex-wrap: wrap; gap: 14px; }
.field { flex: 1 1 100%; display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 13px; }
.field--half { flex: 1 1 200px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px;
  border: 1px solid #CFD0D1; border-radius: 8px; background: #FAFAF9; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; background: var(--white); }
.consent { flex: 1 1 100%; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--grey-600); font-weight: 400; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--orange); flex: none; }
.form__note { flex: 1 1 100%; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--grey-600); text-align: center; }
.hp { position: absolute; left: -9999px; }

/* ---------- Bandeau défilant ---------- */
.marquee { background: var(--orange); color: var(--ink); overflow: hidden; padding: 18px 0; }
.marquee__track {
  display: flex; width: max-content; gap: 40px;
  font-family: var(--font-title); font-weight: 800; font-size: clamp(15px, 3.4vw, 20px);
  text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
  animation: marquee 38s linear infinite;
}

/* ---------- Grilles & cartes ---------- */
.row { display: flex; flex-wrap: wrap; gap: 24px; }
.row > * { min-width: 0; }
.card {
  flex: 1 1 300px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -28px rgba(30,33,36,.45); }
.card--dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.card h3 { margin: 22px 0 10px; font-family: var(--font-title); font-weight: 800; font-size: 24px; }
.card p { color: var(--grey-600); }
.card.card--dark p { color: var(--grey-300); }
.icon-box { width: 56px; height: 56px; border-radius: 12px; background: var(--orange-soft); display: flex; align-items: center; justify-content: center; }
.icon-box--orange { background: var(--orange); }

/* ---------- Comparatif ---------- */
.compare { flex: 1 1 420px; border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); }
.compare--muted { background: var(--paper); border: 1px solid var(--line); color: var(--grey-700); }
.compare--muted h3 { color: var(--grey-600); }
.compare--strong { position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.compare--strong::before { content: ""; position: absolute; top: 0; right: 0; width: 120px; height: 6px; background: var(--orange); }
.compare h3 { margin-bottom: 24px; font-family: var(--font-title); font-weight: 800; font-size: 21px; }
.list { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.list li { display: flex; gap: 14px; }
.list svg { flex: none; margin-top: 2px; }
.compare .btn { margin-top: 30px; }

/* ---------- Apport d'affaires ---------- */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 5vw, 64px); }
.split__media { flex: 1 1 420px; min-width: 0; position: relative; }
.split__media::before { content: ""; position: absolute; right: -14px; bottom: -14px; width: 60%; height: 60%; background: var(--orange); border-radius: var(--radius); }
.split__media img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.split__body { flex: 1 1 480px; min-width: 0; }
.features { margin-top: 32px; display: flex; flex-direction: column; gap: 22px; }
.feature { display: flex; gap: 18px; }
.feature svg { flex: none; }
.feature h3 { font-family: var(--font-title); font-weight: 700; font-size: 18px; }
.feature p { margin-top: 2px; color: var(--grey-600); }

/* ---------- Étapes ---------- */
.step { flex: 1 1 240px; border-top: 3px solid var(--ink); padding-top: 24px; }
.step--last { border-color: var(--orange); }
.step__num { font-family: var(--font-title); font-weight: 900; font-size: 42px; color: var(--grey-200); }
.step--last .step__num { color: var(--orange); }
.step h3 { margin: 8px 0; font-family: var(--font-title); font-weight: 700; font-size: 20px; }
.step p { color: var(--grey-600); font-size: 15px; }

/* ---------- Sections photo ---------- */
.photo-section { position: relative; overflow: hidden; color: var(--white); padding: clamp(80px, 12vw, 140px) 0; }
.photo-section__bg { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; }
.photo-section__bg--city { background-image: url("../img/city.jpg"); background-image: image-set("../img/city.webp" type("image/webp"), "../img/city.jpg" type("image/jpeg")); }
.photo-section__bg--road { background-image: url("../img/road.jpg"); background-image: image-set("../img/road.webp" type("image/webp"), "../img/road.jpg" type("image/jpeg")); }
.photo-section__shade { position: absolute; inset: 0; background: rgba(22,24,26,.72); }
.photo-section__shade--deep { background: linear-gradient(180deg, rgba(22,24,26,.9) 0%, rgba(22,24,26,.78) 100%); }
.photo-section .container { position: relative; }
@media (min-width: 900px) and (hover: hover) { .photo-section__bg { background-attachment: fixed; } }

.territory { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 48px; }
.territory__text { flex: 1 1 420px; min-width: 0; }
.territory__text .h2 { font-size: clamp(30px, 5.4vw, 50px); }
.depts { flex: 1 1 460px; min-width: 0; display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.glass {
  background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18); border-radius: 12px;
}
.dept { flex: 1 1 100px; padding: 18px; }
.dept strong { display: block; font-family: var(--font-title); font-weight: 900; font-size: 30px; color: var(--orange); line-height: 1.3; }
.dept span { font-weight: 600; }

.rare { flex: 1 1 280px; border-radius: var(--radius); padding: clamp(24px, 4vw, 34px); }
.rare h3 { margin-bottom: 10px; display: flex; align-items: center; gap: 12px; font-family: var(--font-title); font-weight: 800; font-size: 21px; }
.rare p { color: var(--grey-200); }
.rare--orange { background: var(--orange); color: var(--ink); }
.rare--orange p { color: var(--ink); font-weight: 500; }
.rare--orange a { display: inline-block; margin-top: 16px; color: var(--ink); font-family: var(--font-title); font-weight: 800; }

/* ---------- Dirigeant ---------- */
.founder { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 5vw, 64px); }
.founder__photo { flex: 1 1 300px; min-width: 0; max-width: 440px; position: relative; margin-left: 16px; }
.founder__photo::before { content: ""; position: absolute; left: -16px; bottom: -16px; width: 55%; height: 55%; background: var(--orange); border-radius: var(--radius); }
.founder__placeholder {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: var(--grey-200); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-weight: 700; color: var(--grey-600); text-align: center; padding: 20px;
}
.founder__photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.founder__text { flex: 999 1 480px; min-width: 0; }
.founder blockquote { margin: 16px 0 0; font-family: var(--font-title); font-weight: 800; font-size: clamp(24px, 3.6vw, 36px); line-height: 1.22; letter-spacing: -.015em; }
.founder__name { margin-top: 28px; font-weight: 600; font-size: 18px; }
.founder__role { color: var(--grey-600); }
.founder__bio { margin-top: 24px; max-width: 560px; color: var(--grey-600); }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin: 0 auto; }
.faq__list { margin-top: 44px; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 24px; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-family: var(--font-title); font-weight: 700; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 26px; line-height: 1; color: var(--orange-text); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--grey-600); }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact__inner { position: relative; display: flex; flex-wrap: wrap; gap: clamp(40px, 5vw, 64px); }
.contact__text { flex: 1 1 360px; min-width: 0; }
.contact__links { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
.contact__link { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line-dark); border-radius: 10px; color: var(--white); text-decoration: none; font-weight: 600; font-size: 17px; }
a.contact__link:hover { color: var(--white); border-color: var(--orange); }
.contact__form { flex: 1 1 520px; min-width: 0; background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.contact__form .form { gap: 18px; }
.contact__form .field { font-size: 14px; }

/* ---------- Pied de page ---------- */
.footer { background: var(--ink-deep); color: var(--grey-400); padding: 56px 0 40px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; }
.footer__brand { flex: 1 1 320px; }
.footer__brand img { height: 54px; width: auto; }
.footer__brand p { margin-top: 20px; max-width: 380px; font-size: 15px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; }
.footer a { color: var(--line); text-decoration: none; }
.footer a:hover { color: var(--orange); }
.footer__bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid #2C2F33; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; }

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

/* ---------- Formes animées ---------- */
.stripe { position: absolute; top: -20%; height: 140%; background: var(--orange); opacity: .08; transform: skewX(-24deg); animation: drift 14s ease-in-out infinite; pointer-events: none; }

/* ---------- Animations ---------- */
@keyframes up { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242,107,10,.7); } 100% { box-shadow: 0 0 0 14px rgba(242,107,10,0); } }
@keyframes zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes drift { 50% { transform: skewX(-24deg) translateX(40px); } }

.anim-up { animation: up .9s var(--ease) both; }
.d1 { animation-delay: .12s; } .d2 { animation-delay: .26s; } .d3 { animation-delay: .38s; } .d4 { animation-delay: .5s; }

/* Apparition au défilement (navigateurs compatibles ; sinon le contenu s'affiche normalement) */
@supports (animation-timeline: view()) {
  .reveal { animation: up linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav { gap: 20px; }
  .nav .nav__tel { display: none; }
}
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .hero__shade { background: rgba(22,24,26,.86); }
  .hero__form { max-width: none; }
  .checks { flex-direction: column; gap: 10px; }
  .card:hover { transform: none; }
  .founder__photo { max-width: 340px; }
  .faq details { padding: 0 18px; }
  .faq summary { font-size: 16px; }
  .footer { padding-bottom: 100px; }
  .mobile-bar {
    display: flex; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar a { flex: 1 1 0; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; text-decoration: none; font-family: var(--font-title); font-weight: 800; font-size: 15px; }
  .mobile-bar__call { border: 1.5px solid var(--ink); color: var(--ink); }
  .mobile-bar__cta { flex-grow: 1.4 !important; background: var(--orange); color: var(--ink); }
}
@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .nav .btn { padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Page de remerciement ---------- */
.thanks { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; background: var(--ink); color: var(--white); }
.thanks__box { max-width: 560px; }
.thanks__icon { width: 80px; height: 80px; margin: 0 auto 28px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; }
.thanks h1 { font-family: var(--font-title); font-weight: 900; font-size: clamp(32px, 6vw, 48px); line-height: 1.1; }
.thanks p { margin: 18px 0 32px; font-size: 18px; color: var(--grey-300); }

/* ==========================================================
   Ajouts version PHP (fonts auto-hébergées, menu mobile,
   formulaires améliorés, pages légales)
   ========================================================== */

/* ---------- Polices auto-hébergées (variable fonts, subset latin) ---------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Lien d'évitement ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 20px; background: var(--orange); color: var(--ink);
  font-weight: 700; text-decoration: none; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- En-tête au défilement ---------- */
.header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(30,33,36,.35); }

/* ---------- Menu burger (mobile) ---------- */
.nav-toggle { display: none; }

/* ---------- Erreurs de formulaire ---------- */
.field__error { display: block; font-weight: 400; font-size: 12px; color: #C0270C; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #C0270C; outline-color: #C0270C;
}
.form__status { flex: 1 1 100%; margin: 0; font-size: 14px; font-weight: 600; color: #C0270C; min-height: 0; }
.form__status:empty { display: none; }
.form .btn[disabled] { opacity: .6; cursor: wait; transform: none !important; box-shadow: none; }

/* ---------- Apparition au défilement : fallback JS ----------
   Contenu jamais masqué sans JS : les états initiaux sont sous .js seulement. */
.js .reveal.is-pending { opacity: 0; transform: translateY(32px); }
.js .reveal.is-visible { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal.is-pending, .js .reveal.is-visible { opacity: 1; transform: none; transition: none; }
}

/* ---------- Pages légales ---------- */
.legal .container { max-width: 860px; }
.legal h1.h2 { margin-top: 12px; }
.legal__update { margin-top: 14px; font-size: 14px; color: var(--grey-600); }
.legal h2 { margin: 44px 0 12px; font-family: var(--font-title); font-weight: 800; font-size: 24px; }
.legal p { color: var(--grey-700); }

/* ---------- Responsive : burger sous 760px ---------- */
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px;
    border: 1px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Sans JS la nav garde le comportement d'origine (liens cachés, bouton visible). */
  .js .nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 70;
    flex-direction: column; align-items: stretch; gap: 4px;
    max-height: calc(100vh - 100%); max-height: calc(100dvh - 100%); overflow-y: auto;
    padding: 12px 20px 24px;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(30,33,36,.45);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .js .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .js .nav a:not(.btn) { display: block; padding: 14px 8px; font-size: 18px; }
  .js .nav .nav__tel { display: block; padding: 14px 8px; font-size: 18px; }
  .js .nav .btn { margin-top: 10px; }
  .js body.menu-open, body.menu-open { overflow: hidden; }
}
