/* ==========================================================================
   BAC Consulting — Feuille de styles principale
   Palette et typographie reprises du site d'origine (Astra + Elementor).
   ========================================================================== */

:root {
  /* Couleurs de marque */
  --navy: #182258;
  --navy-dark: #101841;
  --blue: #046bd2;
  --blue-dark: #045cb4;
  --blue-light: #e8f1fb;

  /* Neutres */
  --white: #ffffff;
  --grey-bg: #f1f2f2;
  --grey-line: #d8dade;
  --text: #182258;
  --text-muted: #5b6478;

  /* Typographie */
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Gabarit */
  --container: 1200px;
  --container-wide: 1600px;
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --radius: 6px;
  --header-h: 92px;

  --shadow-sm: 0 2px 10px rgba(24, 34, 88, .07);
  --shadow-md: 0 8px 30px rgba(24, 34, 88, .12);
}

/* --- Reset ---------------------------------------------------------------- */

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.9;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

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

a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.25em; }
ul, ol { margin: 0 0 1.25em; padding-left: 1.3em; }
li { margin-bottom: .5em; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 3px; }

/* Lien d'évitement (accessibilité clavier) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: .8rem 1.4rem;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* --- Gabarit -------------------------------------------------------------- */

.container { width: min(100% - 3rem, var(--container)); margin-inline: auto; }
.container--wide { width: min(100% - 3rem, var(--container-wide)); margin-inline: auto; }

.section { padding-block: var(--section-y); }
.section--grey { background: var(--grey-bg); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.text-center { text-align: center; }

/* Titre de section : petit libellé + trait, comme sur le site d'origine */
.section-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--blue);
  margin-bottom: 2.5rem;
}

.rule {
  width: min(70%, 760px);
  height: 1px;
  background: var(--grey-line);
  border: 0;
  margin: 0 auto;
}

/* --- Boutons -------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .95rem;
  letter-spacing: .04em;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); color: #fff; }

.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--grey-bg); color: var(--navy); }

.btn--outline { background: transparent; border-color: currentColor; color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }

/* --- En-tête -------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 62px; width: auto; }

.nav { display: flex; align-items: center; gap: 1.6rem; }

.nav a {
  color: #fff;
  font-size: .93rem;
  padding: .4rem 0;
  position: relative;
  white-space: nowrap;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; font-weight: 500; }

/* Le bouton du menu garde ses propres couleurs malgré la règle .nav a */
.nav a.header-cta,
.header-cta { flex-shrink: 0; padding: .6rem 1.3rem; font-size: .88rem; color: var(--navy); }
.nav a.header-cta:hover { color: var(--navy); }
.nav a.header-cta::after { display: none; }

/* Bouton hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: .5rem; width: 44px; height: 44px;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px; background: #fff; margin: 5px auto;
  transition: transform .3s ease, opacity .3s ease;
}
.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); }

/* --- Bannière de page ----------------------------------------------------- */

.page-hero {
  position: relative;
  min-height: 420px;
  display: grid; place-items: center;
  text-align: center;
  color: #fff;
  padding-block: 5rem;
  background: var(--navy) center/cover no-repeat;
  isolation: isolate;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(16, 24, 65, .78), rgba(16, 24, 65, .68));
}
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { font-size: 1.15rem; opacity: .95; margin: 0; }

/* Accueil : bannière pleine hauteur avec logo filigrane */
.hero-home {
  position: relative;
  min-height: min(625px, 78vh);
  display: grid; place-items: center;
  text-align: center; color: #fff;
  background: var(--navy) center/cover no-repeat;
  isolation: isolate;
}
.hero-home::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(16, 24, 65, .55);
}
.hero-home__mark { width: min(220px, 40vw); margin: 0 auto 1rem; }
.hero-home__title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: .12em;
  color: #fff;
  margin: 0 0 .8rem;
  font-weight: 600;
}
.hero-home__tagline {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: clamp(.6rem, 1.3vw, .78rem);
  margin: 0;
  opacity: .92;
}

/* Bord bas en pointe, comme sur le site d'origine */
.hero-notch { position: relative; }
.hero-notch::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 42px;
  background: var(--white);
  clip-path: polygon(0 100%, 0 42%, 50% 0, 100% 42%, 100% 100%);
}

/* --- Grilles et cartes ---------------------------------------------------- */

.grid { display: grid; gap: 1.75rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

/* Carte service : image de fond + voile sombre */
.card-service {
  position: relative;
  min-height: 300px;
  display: flex; flex-direction: column; justify-content: center;
  padding: 2rem 1.75rem;
  color: #fff; text-align: center;
  background: var(--navy) center/cover no-repeat;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}
.card-service::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(16, 24, 65, .72), rgba(16, 24, 65, .82));
  transition: background .3s ease;
}
.card-service:hover::before { background: linear-gradient(180deg, rgba(4, 107, 210, .78), rgba(16, 24, 65, .88)); }
.card-service h3 { color: #fff; font-size: 1.3rem; }
.card-service p { font-size: .93rem; line-height: 1.75; opacity: .94; }
.card-service .btn { margin-top: auto; align-self: center; }

/* Carte atout : alternance navy / blanc */
.card-atout {
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--grey-line);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-atout:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-atout--navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.card-atout--navy h3 { color: #fff; }
.card-atout__icon { width: 40px; height: 40px; margin: 0 auto 1.2rem; color: var(--navy); }
.card-atout--navy .card-atout__icon { color: #fff; }
.card-atout h3 { text-transform: uppercase; font-size: 1.15rem; letter-spacing: .02em; }
.card-atout p { font-size: .92rem; line-height: 1.8; margin: 0; }
.card-atout--navy p { opacity: .92; }

/* --- Bandeau de contact (dégradé bleu) ------------------------------------ */

.cta-band {
  background: linear-gradient(196deg, var(--navy) 0%, var(--blue) 68%);
  color: #fff; text-align: center;
  padding-block: clamp(4rem, 8vw, 6.5rem);
}
.cta-band__label {
  text-transform: uppercase; letter-spacing: .04em;
  font-weight: 700; font-family: var(--font-display);
  text-decoration: underline; text-underline-offset: 6px;
  margin-bottom: 1.2rem; font-size: 1.4rem;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4.5vw, 3.25rem); max-width: 20ch; margin-inline: auto; }
.cta-band p { font-size: .95rem; margin-bottom: 1.8rem; }

/* --- Bandeau signature ---------------------------------------------------- */

.brand-band {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7rem);
  text-align: center; color: #fff;
  background: var(--navy) center/cover no-repeat;
  isolation: isolate;
}
.brand-band::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(16, 24, 65, .55);
}
.brand-band h2 { color: #fff; font-size: clamp(1.8rem, 4.5vw, 3rem); margin: 0; font-weight: 700; }
.brand-band h2 span { display: block; font-weight: 400; }

/* --- Statistiques --------------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.stats__intro {
  background: #3d4557; color: #fff;
  padding: clamp(2.5rem, 5vw, 4rem);
  display: flex; flex-direction: column; justify-content: center;
}
.stats__intro h2 { color: #fff; text-transform: uppercase; font-size: 1.5rem; }
.stats__intro p { margin: 0; font-size: .95rem; }

.stats__figures {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem);
  color: #fff;
  background: var(--navy) center/cover no-repeat;
  isolation: isolate;
}
.stats__figures::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(24, 34, 88, .85);
}
.stat-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
}
.stat-row:last-child { border-bottom: 0; }
.stat-row__label { font-size: .85rem; line-height: 1.5; max-width: 20ch; }
.stat-row__value { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 400; white-space: nowrap; }
.stat-row__value small { display: block; font-size: .85rem; text-align: center; }

/* --- Liste des accompagnements -------------------------------------------- */

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.check-list li {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0;
}
.check-list__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  color: var(--navy);
}
.check-list__icon svg { width: 22px; height: 22px; }

/* --- Blocs texte / image en alternance ------------------------------------ */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.split--reverse .split__media { order: 2; }

@media (max-width: 780px) {
  .split--reverse .split__media { order: 0; }
}

/* --- Onglets (page Nos services) ------------------------------------------ */

.tabs { margin-top: 2.5rem; }

.tabs__list {
  display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: center;
  list-style: none; padding: 0; margin: 0 0 2.5rem;
  border-bottom: 1px solid var(--grey-line);
}
.tabs__btn {
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-size: .95rem; font-weight: 600;
  color: var(--text-muted);
  padding: .9rem 1.4rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color .2s ease, border-color .2s ease;
}
.tabs__btn:hover { color: var(--blue); }
.tabs__btn[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }

.tabs__panel[hidden] { display: none; }

/* --- Sommaire (pages juridiques) ------------------------------------------ */

.toc {
  background: var(--grey-bg);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 3rem;
}
.toc h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1rem; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2.5rem; }
.toc li { margin-bottom: .45em; break-inside: avoid; }
.toc a { color: var(--text); font-size: .95rem; }
.toc a:hover { color: var(--blue); }

@media (max-width: 700px) { .toc ol { columns: 1; } }

/* Bloc d'article juridique */
.article-block { margin-bottom: 3.5rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.article-block h2 {
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--blue);
  margin-bottom: 1.2rem;
}
.article-block h3 { color: var(--blue); margin-top: 2rem; font-size: 1.2rem; }
.article-block ul li { margin-bottom: .6em; }

.callout {
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--navy); }

/* --- Étapes numérotées ---------------------------------------------------- */

.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.5rem; }
.steps li { display: flex; gap: 1.25rem; align-items: flex-start; margin: 0; }
.steps__num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--blue); color: #fff;
  border-radius: 50%;
  font-family: var(--font-display); font-weight: 700;
}

/* --- Formulaires ---------------------------------------------------------- */

.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(1.75rem, 4vw, 3rem);
}

.form-row { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
.form-row--2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-row--3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.field { display: flex; flex-direction: column; gap: .4rem; }
.field > label,
.fieldset__legend {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy);
}
.field .req { color: #c0392b; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field input[type="file"],
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  padding: .75rem .9rem;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  background: #fff;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(4, 107, 210, .15);
  outline: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field small { color: var(--text-muted); font-size: .82rem; }

fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }

.choice-row { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: .5rem; }
.choice {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .95rem; cursor: pointer;
}
.choice input { width: 18px; height: 18px; accent-color: var(--blue); cursor: pointer; }

.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; line-height: 1.7; }
/* Les liens en corps de texte restent repérables sans la couleur seule */
.consent a,
.article-block p a,
.toc a:hover,
.callout a { text-decoration: underline; text-underline-offset: 2px; }
.consent input { margin-top: .35rem; width: 18px; height: 18px; accent-color: var(--blue); flex-shrink: 0; }

.form-price {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  background: var(--grey-bg);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  margin: 1.75rem 0;
  font-family: var(--font-display); font-weight: 600;
}
.form-price__amount { font-size: 1.5rem; color: var(--blue); }

.form-note { font-size: .85rem; color: var(--text-muted); margin-top: 1.25rem; }

/* Champ leurre anti-robot : hors écran, jamais visible ni tabulable */
.hp-field {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Retour d'envoi du formulaire */
.form-status {
  margin: 1.25rem 0 0;
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  font-size: .95rem;
  border-left: 4px solid transparent;
}
.form-status[hidden] { display: none; }
.form-status.is-pending { background: var(--grey-bg); border-left-color: var(--text-muted); color: var(--text); }
.form-status.is-success { background: #e8f5ec; border-left-color: #2e7d4f; color: #1b5e35; }
.form-status.is-error { background: #fdecea; border-left-color: #c0392b; color: #96271b; }

/* Bouton d'envoi pendant la requête */
form button[type="submit"][disabled] { opacity: .6; cursor: progress; transform: none; }

/* Message d'erreur de validation */
.field-error { color: #c0392b; font-size: .85rem; display: none; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #c0392b; }
.field.has-error .field-error { display: block; }

/* --- Fiche horaires / contact --------------------------------------------- */

.hours { list-style: none; padding: 0; margin: 0; }
.hours li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--grey-line);
  margin: 0;
  font-size: .95rem;
}
.hours li:last-child { border-bottom: 0; }
.hours dt, .hours .day { font-weight: 600; font-family: var(--font-display); }

/* --- Page de confirmation ------------------------------------------------- */

.confirm { text-align: center; max-width: 720px; margin-inline: auto; }
.confirm__icon {
  width: 88px; height: 88px; margin: 0 auto 1.75rem;
  display: grid; place-items: center;
  background: var(--blue); color: #fff;
  border-radius: 50%;
}
.confirm__icon svg { width: 44px; height: 44px; }

/* --- Pied de page --------------------------------------------------------- */

.site-footer { background: var(--navy); color: #fff; padding-block: 3.5rem 2rem; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
}
.footer-logo img { height: 74px; width: auto; }
.site-footer h3 {
  color: #fff; font-size: 1rem; margin-bottom: 1rem;
  text-transform: none;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55em; }
.site-footer a { color: rgba(255, 255, 255, .82); font-size: .92rem; }
.site-footer a:hover { color: #fff; }

.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .85rem; color: rgba(255, 255, 255, .7);
}

/* Bouton retour en haut */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--blue); color: #fff;
  border: 0; border-radius: var(--radius);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease, background-color .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--blue-dark); }

/* --- Bandeau cookies ------------------------------------------------------ */

.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 200;
  background: var(--navy); color: #fff;
  padding: 1.1rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1rem;
  font-size: .88rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .2);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; max-width: 70ch; }
.cookie-bar a { color: #fff; text-decoration: underline; }
.cookie-bar .btn { padding: .5rem 1.5rem; font-size: .85rem; }

/* --- Animations d'apparition ---------------------------------------------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --- Points de rupture ---------------------------------------------------- */

@media (max-width: 1100px) {
  .nav { gap: 1.1rem; }
  .nav a { font-size: .87rem; }
}

@media (max-width: 980px) {
  :root { --header-h: 76px; }

  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    padding: 1rem 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav a { padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 1.05rem; min-height: 48px; display: flex; align-items: center; }
  .nav a::after { display: none; }

  .header-cta { display: none; }
  .nav .header-cta { display: block; margin-top: 1.25rem; border-bottom: 0; }

  .logo img { height: 50px; }
}

@media (max-width: 760px) {
  /* Sections resserrees : la page reste parcourable au pouce */
  :root { --section-y: clamp(2.5rem, 8vw, 3.5rem); }

  .container, .container--wide { width: min(100% - 2rem, var(--container)); }

  /* Bannieres plus basses pour amener le contenu plus vite */
  .page-hero { min-height: 260px; padding-block: 3rem; }
  .page-hero p { font-size: 1rem; }
  .hero-home { min-height: 62vh; }
  .hero-home__mark { width: min(130px, 34vw); }
  .hero-notch::after { height: 24px; }

  /* Cartes : moins de vide interne */
  .grid { gap: 1.25rem; }
  .card-service { min-height: 240px; padding: 1.75rem 1.25rem; }
  .card-atout { padding: 1.75rem 1.35rem; }
  .card-atout h3 { font-size: 1.05rem; }

  .split { gap: 2rem; }

  /* Statistiques : libelle au-dessus de la valeur */
  .stats__intro, .stats__figures { padding: 2.25rem 1.5rem; }
  .stat-row { flex-direction: column; align-items: flex-start; gap: .2rem; padding-block: 1.1rem; }
  .stat-row__label { max-width: none; }
  .stat-row__value small { text-align: left; }

  .cta-band__label { font-size: 1.1rem; }
  .cta-band h2 { max-width: none; }

  /* Sommaire : une seule colonne, liens plus hauts */
  .toc { padding: 1.35rem 1.25rem; }
  .toc ol { columns: 1; }
  .toc li { margin-bottom: 0; }
  .toc a { display: block; padding: .55rem 0; }

  .article-block { margin-bottom: 2.5rem; }

  /* Formulaires : pleine largeur, moins de marges perdues */
  .form-card { padding: 1.5rem 1.25rem; }
  .form-row { gap: 1rem; margin-bottom: 1rem; }
  .form-row--2, .form-row--3 { grid-template-columns: 1fr; }

  /* Champs et zones tactiles confortables au doigt */
  .field input, .field select, .field textarea { padding: .85rem .9rem; }
  .choice-row { gap: .5rem; flex-direction: column; }
  .choice { min-height: 48px; padding: .5rem .75rem; border: 1px solid var(--grey-line); border-radius: var(--radius); width: 100%; }
  .choice input { width: 22px; height: 22px; }
  .consent { padding: .5rem 0; }
  .consent input { width: 22px; height: 22px; margin-top: .2rem; }
  .form-price { flex-direction: column; align-items: flex-start; gap: .25rem; }

  /* Boutons : pleine largeur, plus faciles a viser */
  .btn { display: block; width: 100%; padding: .95rem 1.25rem; }
  .btn + .btn { margin-top: .75rem; margin-left: 0; }
  .card-service .btn, .cta-band .btn { display: inline-block; width: auto; }

  /* Pied de page : texte lisible et liens espaces */
  .site-footer { padding-block: 2.5rem 1.5rem; }
  .footer-grid { gap: 2rem; }
  .site-footer a { font-size: .95rem; display: inline-block; padding: .45rem 0; }
  .site-footer li { margin-bottom: 0; }
  .footer-bottom { flex-direction: column; gap: .5rem; font-size: .9rem; }
  .footer-bottom p { margin: 0; }

  /* Bandeau cookies : boutons cote a cote, pleine largeur */
  .cookie-bar { padding: 1rem; gap: .75rem; }
  .cookie-bar p { font-size: .85rem; }
  .cookie-bar .btn { width: auto; flex: 1; min-width: 120px; }

  .to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; }
}

@media (max-width: 420px) {
  /* Titres calibres pour les petits ecrans */
  .hero-home__title { letter-spacing: .06em; }
  .hero-home__tagline { letter-spacing: .12em; line-height: 1.6; }
  .section-title { margin-bottom: 1.75rem; }
  .steps li { gap: .9rem; }
  .steps__num { width: 38px; height: 38px; font-size: .9rem; }
  .check-list li { padding: .9rem 1rem; font-size: .95rem; }
  .check-list__icon { width: 38px; height: 38px; }
}

/* --- Bannieres allegees sur mobile ---------------------------------------- */
/* Sous 760px on sert une version 960px de chaque grande image de fond :
   le poids chute fortement sans difference visible a cette taille d'ecran. */
@media (max-width: 760px) {
  [style*="Business-people-working-909566-scaled.jpg"] { background-image: url("../img/Business-people-working-909566-scaled-mobile.webp") !important; }
  [style*="Businessmen-shaking-hands-749244-scaled.jpg"] { background-image: url("../img/Businessmen-shaking-hands-749244-scaled-mobile.webp") !important; }
  [style*="Human-hands-with-pens-over-438434.jpg"] { background-image: url("../img/Human-hands-with-pens-over-438434-mobile.webp") !important; }
  [style*="Writing-on-sticky-notes-999419.jpg"] { background-image: url("../img/Writing-on-sticky-notes-999419-mobile.webp") !important; }
  [style*="hero-accueil.jpg"] { background-image: url("../img/hero-accueil-mobile.webp") !important; }
  [style*="pexels-andrea-piacquadio-845451-scaled.jpg"] { background-image: url("../img/pexels-andrea-piacquadio-845451-scaled-mobile.webp") !important; }
  [style*="pexels-antoni-shkraba-5816300-scaled.jpg"] { background-image: url("../img/pexels-antoni-shkraba-5816300-scaled-mobile.webp") !important; }
  [style*="pexels-ekaterina-bolovtsova-4049786.jpg"] { background-image: url("../img/pexels-ekaterina-bolovtsova-4049786-mobile.webp") !important; }
  [style*="pexels-ekaterina-bolovtsova-6077447.jpg"] { background-image: url("../img/pexels-ekaterina-bolovtsova-6077447-mobile.webp") !important; }
  [style*="pexels-liza-summer-6348128.jpg"] { background-image: url("../img/pexels-liza-summer-6348128-mobile.webp") !important; }
  [style*="pexels-mikhail-nilov-7735699-scaled.jpg"] { background-image: url("../img/pexels-mikhail-nilov-7735699-scaled-mobile.webp") !important; }
  [style*="pexels-mikhail-nilov-8297031-scaled.jpg"] { background-image: url("../img/pexels-mikhail-nilov-8297031-scaled-mobile.webp") !important; }
  [style*="pexels-sora-shimazaki-5668837-scaled.jpg"] { background-image: url("../img/pexels-sora-shimazaki-5668837-scaled-mobile.webp") !important; }
  [style*="scott-graham-5fNmWej4tAA-unsplash-1.jpg"] { background-image: url("../img/scott-graham-5fNmWej4tAA-unsplash-1-mobile.webp") !important; }
  [style*="shutterstock_2189748789-scaled.jpg"] { background-image: url("../img/shutterstock_2189748789-scaled-mobile.webp") !important; }
}

/* --- Impression ----------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .to-top, .cookie-bar, .cta-band { display: none; }
  body { font-size: 12pt; }
  .reveal { opacity: 1; transform: none; }
}
