/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:         #1565c0;
  --blue-dark:    #0d47a1;
  --blue-mid:     #1976d2;
  --blue-light:   #dbeafe;
  --blue-xlight:  #eff6ff;
  --navy:         #1a2340;
  --navy-dark:    #0f1829;
  --navy-light:   #243059;
  --gold:         #f59e0b;
  --gray-50:      #f8fafc;
  --gray-100:     #f1f5f9;
  --gray-200:     #e2e8f0;
  --gray-300:     #cbd5e1;
  --gray-400:     #94a3b8;
  --gray-500:     #64748b;
  --gray-600:     #475569;
  --gray-700:     #334155;
  --gray-800:     #1e293b;
  --gray-900:     #0f172a;
  --white:        #ffffff;
  --radius-xs:    6px;
  --radius-sm:    10px;
  --radius:       14px;
  --radius-lg:    20px;
  --shadow-xs:    0 1px 2px rgba(0,0,0,.06);
  --shadow-sm:    0 2px 8px rgba(0,0,0,.08);
  --shadow:       0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.14);
  --shadow-blue:  0 8px 24px rgba(21,101,192,.25);
  --transition:   .22s ease;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --header-h:     204px; /* header : bandeau promo + logo (au-dessus) + barre de menu (desktop) */
}

html { scroll-behavior: smooth; font-size: 16px; }
body { overflow-x: clip; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--gray-900); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }

.accent { color: var(--blue-mid); }

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--blue-xlight);
  color: var(--blue-dark);
  border: 1px solid var(--blue-light);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .32rem .85rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .82rem 1.85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn--primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(21,101,192,.35);
}
.btn--outline {
  border: 2px solid rgba(255,255,255,.6);
  color: var(--white);
  backdrop-filter: blur(4px);
}
.btn--outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}
.btn--outline-blue {
  border: 2px solid var(--blue);
  color: var(--blue);
}
.btn--outline-blue:hover { background: var(--blue); color: var(--white); }
.btn--full { width: 100%; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: 0 4px 24px rgba(15,24,41,.10); }

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1rem;
  row-gap: 0;
  max-width: none;
  padding: .7rem 2rem 0;
}
/* Rangée 1 (barre marque) : logo à gauche, utilitaires à droite */
.logo { order: 1; }
.site-search { order: 2; }
.header-phone { order: 3; }
.lang-toggle { order: 4; }
.burger { order: 5; }
.nav { order: 6; }

/* Rangée 2 : barre de menu pleine largeur, SOUS le logo (style Traxxas) */
@media (min-width: 769px) {
  .header .nav {
    flex-basis: 100%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    margin-top: .65rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
  }
  .header .nav .nav__list {
    max-width: none;
    margin: 0;
    padding: .35rem 2rem;
    justify-content: center;
    gap: 0;
  }
}

/* ===== THÈME CLAIR DU HEADER (texte bleu) ===== */
html.promo-dismissed { --header-h: 166px; }

.header { background: rgba(255,255,255,.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--gray-200); }
.header.scrolled { box-shadow: 0 4px 24px rgba(15,24,41,.10); }
.header .logo__fallback { color: var(--navy); }
.header .logo__fallback span { color: var(--blue); }

/* Menu clair + séparateurs verticaux ; liens en bleu */
.header .nav { border-top: 1px solid var(--gray-200); }
.header .nav__list > .nav__item + .nav__item::before {
  content: none;
}
.header .nav__link { color: var(--blue-mid); font-weight: 600; margin: 0 .55rem; }
.header .nav__link:hover { color: var(--blue-dark); background: var(--blue-xlight); }
.header .nav__link--parent:hover { color: var(--blue-dark); }
.header .nav__link--active { color: var(--blue-dark); }
.header .nav__link--cta { background: var(--blue); color: #fff; margin-left: .7rem; }
.header .nav__link--cta:hover { background: var(--blue-dark); color: #fff; }
.header .nav__link--ext { color: var(--blue); }

/* Téléphone + langue en bleu */
.header .header-phone { color: var(--blue); border-color: var(--blue-light); }
.header .header-phone:hover { color: var(--blue-dark); border-color: var(--blue); background: var(--blue-xlight); }
.header .header-phone__icon { color: var(--blue); }
.header .lang-btn { color: var(--gray-500); }
.header .lang-btn.active { color: #fff; }

/* Recherche : pastille gris clair lisible sur fond blanc */
.header .site-search__form { background: var(--gray-100, #f1f4f9); border-color: var(--gray-200); }
.header .site-search__icon { color: var(--gray-500); }

/* ===== BANDEAU PROMOTIONNEL (injecté en haut du header) ===== */
.promo-bar { background: var(--navy-dark); color: rgba(255,255,255,.9); }
.promo-bar__inner { display: flex; align-items: center; justify-content: center; gap: 1.5rem; min-height: 40px; position: relative; font-size: .85rem; max-width: none; padding: .35rem 2.25rem; }
.promo-bar__msg { font-weight: 600; color: rgba(255,255,255,.9); text-align: center; }
.promo-bar__msg strong { font-weight: 800; color: #7cc4ff; }
.promo-bar__tel { display: inline-flex; align-items: center; gap: .4rem; color: #fff; font-weight: 700; white-space: nowrap; }
.promo-bar__tel:hover { color: #7cc4ff; }
.promo-bar__close { position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(255,255,255,.85); font-size: 1.25rem; line-height: 1; cursor: pointer; padding: 0 .25rem; }
.promo-bar__close:hover { color: #fff; }
html.promo-dismissed .promo-bar { display: none; }

/* Logo */
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo__img { height: 94px; width: auto; }
.logo__fallback {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}
.logo__fallback span { color: var(--blue); }

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: .35rem;
}
/* Lien externe vers la division institutionnelle */
.nav__link--ext { display: inline-flex; align-items: center; gap: .3rem; color: var(--blue); font-weight: 600; }
.nav__link--ext::after {
  content: '↗';
  font-size: .8em;
  opacity: .8;
}
.nav__link {
  padding: .45rem .75rem;
  border-radius: var(--radius-xs);
  font-size: .84rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}
.nav__link:hover { color: var(--blue); background: var(--blue-xlight); }
.nav__link--active { color: var(--blue); }
.nav__link--cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: .5rem 1.15rem;
  box-shadow: 0 2px 10px rgba(21,101,192,.3);
}
.nav__link--cta:hover { background: var(--blue-dark); box-shadow: 0 4px 16px rgba(21,101,192,.4); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  border-radius: var(--radius-xs);
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== SITE SEARCH ===== */
.site-search {
  position: relative;
  flex: 0 1 280px;
  max-width: 280px;
  margin-left: auto;
  min-width: 0;
}
.site-search__form { padding: .6rem 1rem; }
.site-search__icon { width: 18px; height: 18px; }
.site-search__input { font-size: .92rem; }
.site-search__form {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--gray-100, #f1f4f9);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: .4rem .8rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.site-search__form:focus-within {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,101,192,.12);
}
.site-search__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--gray-600);
}
.site-search__input {
  border: none;
  background: transparent;
  outline: none;
  font-size: .82rem;
  color: var(--navy);
  width: 100%;
  min-width: 0;
}
.site-search__input::placeholder { color: var(--gray-600); }

.site-search__results {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  width: 340px;
  max-width: 80vw;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm, 10px);
  box-shadow: 0 12px 40px rgba(15,24,41,.16);
  padding: .35rem;
  z-index: 200;
}
.site-search__results[hidden] { display: none; }
.site-search__result {
  display: block;
  padding: .55rem .7rem;
  border-radius: var(--radius-xs, 6px);
  cursor: pointer;
  text-decoration: none;
  color: var(--navy);
}
.site-search__result:hover,
.site-search__result.is-active { background: var(--blue-xlight); }
.site-search__result-title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  display: block;
}
.site-search__result-meta {
  font-size: .76rem;
  color: var(--gray-600);
  display: block;
  margin-top: .1rem;
}
.site-search__empty {
  padding: .8rem .7rem;
  font-size: .82rem;
  color: var(--gray-600);
  text-align: center;
}

/* ===== HERO ===== */
/* Décalage des ancres pour ne pas être masquées par l'en-tête fixe
   (sauts natifs, ex. index.html#contact depuis une autre page) */
section[id], [id].section { scroll-margin-top: calc(var(--header-h) + 1.25rem); }

.hero {
  padding-top: var(--header-h);
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

/* Rotating background photos — synced with the hero carousel slides */
.hero__bgs { position: absolute; inset: 0; z-index: 0; }
.hero__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed; /* le fond reste fixe pendant que le texte défile par-dessus (effet robert.ca) */
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__bg.active { opacity: 1; }

/* Dégradé marine élégant : appuyé du côté du texte (gauche), presque
   transparent au centre-droit pour que la photo reste bien visible,
   avec un léger retour sombre au bord droit pour l'équilibre. */
/* Recadrages mobiles des diapositives du hero : sur petit écran on montre
   le sujet (produit / personne), pas le décor. */
@media (max-width: 768px) {
  .hero__bg[data-slide="0"] { background-position: 22% 30% !important; }
  .hero__bg[data-slide="5"] { background-position: 50% 60% !important; }
  .hero__bg[data-slide="6"] { background-position: 75% 65% !important; }
  .hero__bg[data-slide="7"] { background-position: 78% top !important; }
}

.hero__bgs::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(10, 22, 44, .82) 0%,
    rgba(10, 22, 44, .55) 34%,
    rgba(10, 22, 44, .12) 62%,
    rgba(10, 22, 44, .05) 78%,
    rgba(10, 22, 44, .28) 100%);
  pointer-events: none;
}

/* Geometric shapes decoration */
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,78,216,.35) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 30%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,101,192,.25) 0%, transparent 70%);
  pointer-events: none;
}

/* Dot grid overlay */
.hero__bg-dots { display: none; }

/* Bannière « depuis 1987 » (bande sombre lisible, style Robert) */
.anniv-bar { background: var(--navy-dark); color: rgba(255,255,255,.9); text-align: center; padding: .85rem 0; }
.anniv-bar p { margin: 0; font-size: .95rem; font-weight: 600; letter-spacing: .01em; }
.anniv-bar strong { color: #7cc4ff; font-weight: 800; }

.hero__content {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
  color: var(--white);
  max-width: 800px;
}
.hero .badge {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  border-color: rgba(255,255,255,.2);
}
.hero__title {
  margin-bottom: 1.5rem;
  font-size: clamp(3.5rem, 8.5vw, 6.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.04;
  color: #ffffff;
  /* Ombre portée sur le texte pour la lisibilité (sans assombrir la photo) */
  text-shadow: 0 2px 6px rgba(0,0,0,.55), 0 6px 30px rgba(0,0,0,.5);
}
.hero__title .accent {
  color: #8fd0ff;
  text-shadow: 0 2px 6px rgba(0,0,0,.55), 0 6px 30px rgba(0,0,0,.5);
}
.hero__subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  color: #ffffff;
  max-width: 640px;
  margin-bottom: 2.25rem;
  line-height: 1.7;
  text-shadow: 0 1px 4px rgba(0,0,0,.6), 0 3px 18px rgba(0,0,0,.5);
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.hero__stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.stat {
  padding: 0 2.5rem 0 0;
  border-right: 1px solid rgba(255,255,255,.15);
  margin-right: 2.5rem;
}
.stat:last-child { border-right: none; margin-right: 0; }
.stat__number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #60a5fa;
  line-height: 1.1;
}
.stat__label {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  margin-top: .3rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 0;
  border-bottom: 1px solid var(--navy-light);
}
.trust-bar__inner {
  display: flex;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .855rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
}
.trust-item__icon { font-size: 1rem; }

/* ===== SECTION BASE ===== */
.section { padding: 5.5rem 0; }
.section--alt { background: var(--gray-50); }

.section__header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section__title {
  margin-bottom: .75rem;
  color: var(--navy);
}
.section__subtitle {
  color: var(--gray-500);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ===== SERVICES GRID ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.4rem;
}

.service-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.85rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  border-color: var(--blue-light);
  box-shadow: 0 16px 48px rgba(21,101,192,.12);
  transform: translateY(-5px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  display: block;
}
.service-card h3 {
  margin-bottom: .6rem;
  font-size: 1.05rem;
  color: var(--navy);
}
.service-card p { color: var(--gray-500); font-size: .9rem; margin-bottom: 1rem; line-height: 1.6; }
.service-card__list { margin-bottom: 1.25rem; flex: 1; }
.service-card__list li {
  font-size: .86rem;
  color: var(--gray-600);
  padding: .28rem 0 .28rem 1.2rem;
  position: relative;
  border-bottom: 1px solid var(--gray-100);
}
.service-card__list li:last-child { border-bottom: none; }
.service-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 800;
  font-size: .8rem;
}
.service-card__link {
  color: var(--blue);
  font-weight: 600;
  font-size: .88rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: auto;
}
.service-card__link:hover { color: var(--blue-dark); gap: .55rem; }

/* Carte de service entièrement cliquable */
a.service-card { text-decoration: none; color: inherit; cursor: pointer; }
a.service-card:hover h3 { color: var(--blue); }

/* ===== TUILES DE CATÉGORIES (accueil, sans encadré) ===== */
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 1.75rem;
}
.cat-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  text-decoration: none; color: inherit;
}
.cat-tile__media {
  width: 100%; max-width: 240px; aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  padding: 1.75rem;
  border-radius: 26px;
  background: linear-gradient(160deg, var(--blue-xlight) 0%, #ffffff 75%);
  transition: transform .3s ease, box-shadow .3s ease;
}
.cat-tile__media img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  transition: transform .35s ease;
  /* Fond blanc des photos produits fondu dans le dégradé de la tuile */
  mix-blend-mode: multiply;
}
.cat-tile:hover .cat-tile__media {
  transform: translateY(-7px);
  box-shadow: 0 24px 54px -22px rgba(21, 101, 192, .45);
}
.cat-tile:hover .cat-tile__media img { transform: scale(1.07); }
.cat-tile h3 {
  margin-top: 1.15rem; font-size: 1.05rem; color: var(--navy); font-weight: 700;
  transition: color var(--transition);
}
.cat-tile:hover h3 { color: var(--blue); }
@media (max-width: 900px) { .cat-tiles { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.25rem; } }
@media (max-width: 560px) { .cat-tiles { grid-template-columns: 1fr 1fr; } }

/* ===== BANDE CONTACT COURTE ===== */
.contact-band {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2.5rem;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--blue) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem 3.25rem;
  box-shadow: 0 24px 60px -24px rgba(13,71,161,.55);
  position: relative;
  overflow: hidden;
}
.contact-band__text { position: relative; z-index: 1; }
.contact-band__tag {
  display: inline-block; background: rgba(255,255,255,.15); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 999px; margin-bottom: 1rem;
}
.contact-band__text h2 { color: #fff; text-align: left; font-size: clamp(1.6rem, 3.2vw, 2.15rem); margin: 0 0 .8rem; }
.contact-band__text h2 .accent { color: #7cc4ff; }
.contact-band__text p { color: rgba(255,255,255,.9); line-height: 1.65; margin: 0 0 1.15rem; max-width: 34rem; }
.contact-band__hours {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .9rem; font-weight: 600; color: #fff;
  background: rgba(255,255,255,.12); padding: .5rem .95rem; border-radius: 10px;
}
.contact-band__hours svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; flex: 0 0 auto; }
.contact-band__cta {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 1rem; text-align: center;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px; padding: 1.6rem 1.5rem;
}
.contact-band__cta-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.78); font-weight: 700; }
.contact-band__phone {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-size: 1.55rem; font-weight: 800; color: #fff; line-height: 1;
}
.contact-band__phone svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2; flex: 0 0 auto; }
.contact-band__phone:hover { opacity: .85; color: #fff; }
.contact-band__sep { height: 1px; background: rgba(255,255,255,.2); margin: .65rem -.25rem; }
.contact-band__find {
  display: block; background: #fff; color: var(--blue-dark);
  font-weight: 700; font-size: .9rem; padding: .65rem 1rem; border-radius: 10px;
  transition: background var(--transition), transform var(--transition);
}
.contact-band__find:hover { background: var(--blue-xlight); transform: translateY(-1px); }
@media (max-width: 760px) {
  .contact-band { grid-template-columns: 1fr; gap: 1.75rem; padding: 2rem 1.5rem; }
}

/* ===== WHY GRID ===== */
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.why-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--blue-light);
  transform: translateY(-3px);
}
.why-card__icon {
  font-size: 1.9rem;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--blue-xlight);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-card__body h3 { margin-bottom: .45rem; font-size: 1rem; color: var(--navy); }
.why-card__body p { color: var(--gray-500); font-size: .88rem; line-height: 1.6; }

/* ===== TEAM ===== */
.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.4rem;
}
.team-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
}
.team-card:hover {
  box-shadow: 0 12px 36px rgba(21,101,192,.12);
  border-color: var(--blue-light);
  transform: translateY(-4px);
}
.team-card__avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.team-card__avatar--1 { background: linear-gradient(135deg, var(--blue), var(--blue-mid)); }
.team-card__avatar--2 { background: linear-gradient(135deg, var(--navy), var(--navy-light)); }
.team-card__avatar--3 { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.team-card__avatar--4 { background: linear-gradient(135deg, #0891b2, #06b6d4); }

.team-card__name { font-size: 1.05rem; margin-bottom: .3rem; color: var(--navy); }
.team-card__title { color: var(--blue); font-size: .875rem; font-weight: 600; margin-bottom: .4rem; }
.team-card__permit {
  font-size: .75rem;
  color: var(--gray-400);
  background: var(--gray-100);
  display: inline-block;
  padding: .18rem .65rem;
  border-radius: 999px;
  margin-bottom: .85rem;
}
.team-card__bio { font-size: .875rem; color: var(--gray-500); line-height: 1.6; }

/* ===== REVIEWS SUMMARY BANNER ===== */
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--blue-xlight);
  border: 1px solid var(--blue-light);
  border-radius: var(--radius);
  padding: 1.25rem 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.reviews-summary__score {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.reviews-summary__number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.reviews-summary__stars { color: var(--gold); font-size: 1.1rem; letter-spacing: .05em; }
.reviews-summary__score p { font-size: .82rem; color: var(--gray-500); margin-top: .2rem; }
.reviews-summary__divider {
  width: 1px; height: 48px;
  background: var(--blue-light);
  flex-shrink: 0;
}
.reviews-summary__platforms { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.reviews-platform {
  display: flex; align-items: center; gap: .6rem;
}
.reviews-platform strong { font-size: 1rem; color: var(--navy); display: block; line-height: 1.2; }
.reviews-platform span { font-size: .78rem; color: var(--gray-400); }

/* ===== TESTIMONIALS ===== */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .85rem;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
/* new header layout */
.testimonial-card__header {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.testimonial-card__header > div:nth-child(2) { flex: 1; }
.testimonial-card__header strong { display: block; font-size: .92rem; color: var(--navy); }
.testimonial-card__location { font-size: .75rem; color: var(--gray-400); }
.testimonial-card__google, .testimonial-card__fb { margin-left: auto; flex-shrink: 0; }
.testimonial-card__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--blue-xlight);
  color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .82rem;
  flex-shrink: 0;
  border: 2px solid var(--blue-light);
}
.testimonial-card__stars { color: var(--gold); font-size: .9rem; letter-spacing: .04em; }
.testimonial-card p {
  color: var(--gray-700);
  font-size: .9rem;
  font-style: italic;
  flex: 1;
  line-height: 1.7;
}
.testimonial-card__date {
  font-size: .75rem;
  color: var(--gray-400);
  display: block;
  border-top: 1px solid var(--gray-100);
  padding-top: .75rem;
  margin-top: auto;
}
/* legacy __author kept for backwards compat */
.testimonial-card__author {
  display: flex; align-items: center; gap: .75rem;
  margin-top: auto; padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}
.testimonial-card__author strong { display: block; font-size: .9rem; color: var(--navy); }
.testimonial-card__author span { font-size: .78rem; color: var(--gray-400); }

/* ===== BRANCHES ===== */
.branches__grid {
  display: grid;
  /* 4 succursales : 4 colonnes si l'écran le permet, sinon 2×2, sinon 1 colonne
     (jamais de rangée de 3 qui isolerait la 4e succursale) */
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
@media (min-width: 1024px) { .branches__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px)  { .branches__grid { grid-template-columns: 1fr; } }
.branch-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.branch-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.branch-card__only {
  display: block;
  margin: .25rem 0 .3rem;
  color: var(--blue) !important;
  font-size: .8rem !important;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.branch-card--clickable { cursor: pointer; }
.branch-card--clickable:hover { transform: translateY(-4px); }
.branch-card:hover { border-color: var(--blue-light); box-shadow: var(--shadow); }
.branch-card:hover::after { transform: scaleX(1); }
.branch-card h3 { font-size: .97rem; margin-bottom: .65rem; color: var(--navy); }
.branch-card p { font-size: .875rem; color: var(--gray-500); margin-bottom: .4rem; line-height: 1.55; }
.branch-card__hours { color: var(--gray-400) !important; font-size: .82rem !important; }
.branch-card__phone {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .65rem;
  color: var(--blue);
  font-weight: 600;
  font-size: .9rem;
  transition: color var(--transition);
}
.branch-card__phone:hover { color: var(--blue-dark); }
.branch-card__fb {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .55rem;
  margin-left: 1rem;
  color: #1877f2;
  font-weight: 600;
  font-size: .85rem;
  transition: opacity var(--transition);
}
.branch-card__fb:hover { opacity: .75; }

/* ===== CONTACT ===== */
.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4.5rem;
  align-items: start;
}
.contact__info .section__title { text-align: left; margin-bottom: .85rem; }
.contact__info > p { color: var(--gray-500); margin-bottom: 1.75rem; font-size: .97rem; line-height: 1.7; }
.contact__details { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 1.75rem; }
.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .9rem 1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}
.contact__detail:hover { border-color: var(--blue-light); }
.contact__detail-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--blue-xlight);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact__detail strong { display: block; font-size: .75rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .15rem; }
.contact__detail a, .contact__detail span { color: var(--gray-800); font-weight: 600; font-size: .93rem; }
.contact__detail a:hover { color: var(--blue); }

.contact__ramq {
  background: var(--blue-xlight);
  border: 1px solid var(--blue-light);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
}
.contact__ramq strong { display: block; margin-bottom: .35rem; color: var(--blue-dark); font-size: .92rem; }
.contact__ramq p { margin: 0; color: var(--gray-500); font-size: .87rem; }

/* Form */
.contact-form {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.1rem; }
.form-group label { font-size: .83rem; font-weight: 600; color: var(--gray-700); letter-spacing: .01em; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .92rem;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: all var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(21,101,192,.1);
}
.form-group input.error, .form-group textarea.error {
  border-color: #ef4444;
  background: #fef2f2;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group--check {
  flex-direction: row;
  align-items: flex-start;
  gap: .65rem;
}
.form-group--check input {
  width: 18px; height: 18px;
  margin-top: 2px; flex-shrink: 0;
  accent-color: var(--blue);
  background: var(--gray-50);
}
.form-group--check label { font-size: .84rem; font-weight: 400; color: var(--gray-500); cursor: pointer; }
.form-note { font-size: .76rem; color: var(--gray-400); margin-top: .75rem; text-align: center; line-height: 1.5; }
.form-success {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  color: #15803d;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .92rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.65);
  padding-top: 4.5rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  /* La marque est plus large ; les colonnes de liens se répartissent et
     remplissent la largeur quel que soit leur nombre (pas de vide à droite). */
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer__inner > .footer__brand { flex: 2 1 300px; }
.footer__inner > .footer__links { flex: 1 1 150px; }
.footer__brand .logo__fallback { color: var(--white); }
.footer__brand .logo__fallback span { color: #60a5fa; }
.footer__brand p { font-size: .875rem; line-height: 1.75; margin-top: 1rem; }
.footer__disclaimer {
  font-size: .77rem;
  color: rgba(255,255,255,.35);
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-style: italic;
}
.footer__accred {
  display: inline-flex;
  margin-top: 1.25rem;
  background: var(--white);
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.footer__accred img { display: block; width: 96px; height: 96px; object-fit: contain; }
.footer__accred:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.footer__links h4 {
  color: var(--white);
  font-size: .85rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.footer__links ul { display: flex; flex-direction: column; gap: .55rem; }
.footer__links a { font-size: .875rem; transition: color var(--transition); }
.footer__links a:hover { color: #60a5fa; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.4rem 0;
  background: rgba(0,0,0,.2);
}
.footer__bottom p { font-size: .78rem; text-align: center; color: rgba(255,255,255,.4); }
.footer__legal { margin-bottom: .45rem; }
.footer__legal a { color: rgba(255,255,255,.62); text-decoration: underline; }
.footer__legal a:hover { color: #fff; }

/* ===== FAB ===== */
.fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 58px;
  height: 58px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 6px 24px rgba(21,101,192,.45);
  transition: all var(--transition);
  z-index: 90;
}
.fab:hover { background: var(--blue-dark); transform: scale(1.1) translateY(-2px); box-shadow: 0 10px 32px rgba(21,101,192,.5); }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .contact__wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact__info .section__title { text-align: left; }
  .site-search { flex-basis: 160px; }
}

@media (max-width: 768px) {
  /* En mobile, le header redevient une seule rangée (menu en panneau déroulant) */
  :root { --header-h: 92px; }
  html.promo-dismissed { --header-h: 56px; }
  .header__inner { display: flex; flex-wrap: nowrap; align-items: center; padding: .6rem 1rem; }
  .header__inner > .logo { align-self: center; }
  .logo__img { height: 48px; }
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-basis: auto;
    border-top: none;
    padding-top: 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.5rem 1.5rem;
    transform: translateY(-110%);
    opacity: 0;
    /* visibility retire les ~70 liens du menu fermé de l'ordre de tabulation
       et des lecteurs d'écran (le délai attend la fin de l'animation de fermeture) */
    visibility: hidden;
    transition: transform .32s ease, opacity .32s ease, visibility 0s .32s;
    box-shadow: var(--shadow-lg);
  }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; transition-delay: 0s; }
  .header .nav .nav__list { flex-direction: column; gap: .2rem; justify-content: flex-start; }
  .nav__link { display: block; padding: .7rem 1rem; border-radius: var(--radius-xs); }
  .header .nav__link--cta { margin-left: 0; }
  /* Pas de séparateurs verticaux en colonne */
  .header .nav__list > .nav__item + .nav__item::before { display: none; }
  /* Bandeau promo compact : on garde le message principal */
  .promo-bar__tip, .promo-bar__sep, .promo-bar__tel { display: none; }
  .promo-bar__inner { gap: .5rem; }
  .burger { display: flex; }

  /* Search takes the freed space between logo and burger */
  .site-search { flex: 1 1 auto; margin-left: .8rem; margin-right: .6rem; }
  .site-search__results { width: 300px; right: 0; }

  .hero__stats { gap: 1.5rem; }
  .stat { padding-right: 1.5rem; margin-right: 1.5rem; }

  .trust-bar__inner { gap: 1.25rem; }
  .trust-item { font-size: .82rem; }
  .form-row { grid-template-columns: 1fr; }

  .why-card { flex-direction: column; gap: .75rem; }
  .why-card__icon { width: 46px; height: 46px; font-size: 1.5rem; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__stats { flex-wrap: wrap; }
  .stat { border-right: none; padding-right: 0; margin-right: 0; width: 50%; }
  .footer__inner { grid-template-columns: 1fr; }
  .container { padding: 0 1rem; }
  .site-search__form { padding: .35rem .6rem; }
  .site-search__results { width: 270px; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__content > * {
  animation: fadeInUp .7s ease both;
}
.hero__content > *:nth-child(1) { animation-delay: 0s; }
.hero__content > *:nth-child(2) { animation-delay: .12s; }
.hero__content > *:nth-child(3) { animation-delay: .24s; }
.hero__content > *:nth-child(4) { animation-delay: .36s; }
.hero__content > *:nth-child(5) { animation-delay: .48s; }

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(21,101,192,.4); }
  70% { box-shadow: 0 0 0 12px rgba(21,101,192,0); }
  100% { box-shadow: 0 0 0 0 rgba(21,101,192,0); }
}
.fab { animation: pulse-ring 2.5s ease-out infinite; }
.fab:hover { animation: none; }

/* ===== HEADER PHONE ===== */
.header-phone {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--navy);
  font-weight: 700;
  font-size: .84rem;
  padding: .45rem .8rem;
  border-radius: var(--radius-xs);
  transition: color var(--transition);
  white-space: nowrap;
  border: 1.5px solid var(--gray-200);
}
.header-phone:hover { color: var(--blue); border-color: var(--blue-light); background: var(--blue-xlight); }
.header-phone__icon { color: var(--blue); font-size: .9rem; }
/* Sur écrans moyens, on masque le numéro pour laisser respirer le menu (rejoignable via Contactez-nous) ; il réapparaît sur grand écran. */
@media (max-width: 1200px) { .header-phone { display: none; } }

/* ===== NAV DROPDOWN ===== */
.nav__item { position: relative; list-style: none; }
.nav__link--parent::after { content: ' ▾'; font-size: .6rem; opacity: .65; }
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .5rem 0;
  padding-top: .75rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .1s ease, transform .1s ease;
  transition-delay: 0ms;
  z-index: 200;
  list-style: none;
}
.nav__item:hover > .nav__dropdown,
.nav__item:focus-within > .nav__dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
  transition-delay: 0ms;
  z-index: 300; /* le menu actif passe toujours par-dessus celui qui se ferme */
}
.nav__dropdown li a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem 1.2rem;
  font-size: .845rem;
  color: var(--gray-700);
  font-weight: 500;
  transition: all .15s;
}
.nav__dropdown li a:hover { background: var(--blue-xlight); color: var(--blue); padding-left: 1.5rem; }
.nav__dropdown__divider { border: none; border-top: 1px solid var(--gray-100); margin: .4rem 0; }

/* ===== MÉGA-MENU PRODUITS ===== */
.nav__dropdown--mega .mega__grid { display: block; }
.nav__dropdown--mega .mega__col { min-width: 0; }
.nav__dropdown--mega .mega__title {
  display: block;
  font-weight: 800;
  color: var(--navy);
  font-size: .9rem;
  margin: 0 0 .55rem;
  padding: 0;
  background: none;
}
.nav__dropdown--mega .mega__title:hover { color: var(--blue); background: none; padding-left: 0; }
.nav__dropdown--mega .mega__title--mt { margin-top: 1.4rem; }
.nav__dropdown--mega .mega__links { list-style: none; margin: 0; padding: 0; }
.nav__dropdown--mega .mega__links li { margin: 0; }
.nav__dropdown--mega .mega__links a {
  display: block;
  padding: .28rem 0;
  color: var(--blue-mid);
  font-size: .85rem;
  font-weight: 500;
  background: none;
  transition: color .12s ease, transform .12s ease;
}
/* transform plutôt que padding : le glissement au survol ne change pas la
   largeur disponible, donc les libellés longs ne se replient plus sur 2 lignes */
.nav__dropdown--mega .mega__links a:hover { color: var(--blue); background: none; padding-left: 0; transform: translateX(.3rem); }
/* libellés déjà sur 2 lignes (marqués par script.js) : aucun glissement */
.nav__dropdown--mega .mega__links a.no-shift:hover { transform: none; }

/* Après un clic sur un lien du menu, on force la fermeture pour ne pas masquer
   le contenu (utile quand le lien pointe vers la même page : pas de rechargement).
   La classe est retirée par cat-hash.js dès que la souris quitte la zone. */
.nav__item--dropdown.nav-force-closed > .nav__dropdown {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

@media (min-width: 769px) {
  /* L'item Produits passe en statique : le méga-menu s'ancre alors sur la
     barre .nav (pleine largeur 100vw) plutôt que sur l'item étroit. */
  .nav__item--dropdown:has(> .nav__dropdown--mega) { position: static; }
  .nav__dropdown--mega {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    border: none;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    border-radius: 0;
    box-shadow: 0 22px 34px rgba(15,24,41,.12);
    padding: 2rem 0 2.25rem;
  }
  /* Pont invisible : prolonge la zone de survol vers le haut pour combler
     l'écart entre le lien « Produits » et le panneau (évite la fermeture
     pendant que la souris descend). */
  .nav__dropdown--mega::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
  }
  .nav__dropdown--mega .mega__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem 2rem;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
  }
}
@media (min-width: 769px) and (max-width: 1080px) {
  .nav__dropdown--mega .mega__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
@media (max-width: 768px) {
  .header-phone { display: none; }
  .nav__dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--blue-light);
    border-radius: 0;
    opacity: 1;
    pointer-events: all;
    transform: none;
    padding: 0 0 0 .5rem;
    margin: .25rem 0 .5rem .5rem;
    display: none;
  }
  .nav__item--dropdown.open > .nav__dropdown { display: block; }
  .nav__item--dropdown > .nav__link--parent { width: 100%; }
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel { position: relative; }
.hero-slide { display: none; animation: fadeInUp .5s ease both; }
.hero-slide.active { display: block; }
.hero-dots {
  display: flex;
  gap: .6rem;
  margin-top: 2rem;
  align-items: center;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 5px;
  background: rgba(255,255,255,.3);
  border: none;
  cursor: pointer;
  transition: all .3s ease;
  padding: 0;
}
.hero-dot.active { width: 28px; background: rgba(255,255,255,.9); }

/* ===== NEWSLETTER FOOTER ===== */
.footer__newsletter { margin-top: 1.5rem; }
.footer__newsletter h4 {
  color: var(--white);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .5rem;
}
.footer__newsletter p { font-size: .8rem; margin-bottom: .85rem; color: rgba(255,255,255,.5); }
.newsletter-form { display: flex; gap: .5rem; }
.newsletter-form input[type="email"] {
  flex: 1;
  padding: .6rem .9rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-family: var(--font);
  font-size: .84rem;
  transition: border-color var(--transition);
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,.35); }
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--blue-light); }
.newsletter-form .btn--sm { padding: .55rem 1rem; font-size: .82rem; border-radius: var(--radius-xs); flex-shrink: 0; }

/* ===== ACCREDITATION BADGE ===== */
.trust-item--accred { border-left: 1px solid rgba(255,255,255,.15); padding-left: 2rem; }
.trust-item--accred strong { color: var(--gold); }
@media (max-width: 768px) { .trust-item--accred { border-left: none; padding-left: 0; } }

/* ===== SVG ICONS — service cards & why cards ===== */
.service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--blue-xlight);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--blue);
  flex-shrink: 0;
  transition: background var(--transition);
}
.service-card:hover .service-card__icon { background: var(--blue); color: var(--white); }
.service-card__icon svg { width: 28px; height: 28px; stroke: currentColor; }
.why-card__icon svg { width: 26px; height: 26px; stroke: currentColor; color: var(--blue); }
.trust-item__svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }

/* ===== TRUST BAR ===== */
.trust-item {
  display: flex;
  align-items: center;
  gap: .55rem;
}

/* ===== FAB SVG ===== */
.fab svg { width: 26px; height: 26px; stroke: currentColor; }
.fab span { font-size: .7rem; font-weight: 800; letter-spacing: .03em; }

/* ===== PHONE ICON ===== */
.header-phone__icon { display: flex; align-items: center; }
.header-phone__icon svg { width: 16px; height: 16px; stroke: var(--blue); }

/* ===== CONTACT ICONS ===== */
.contact__detail-icon { display: flex; align-items: center; justify-content: center; }
.contact__detail-icon svg { width: 22px; height: 22px; stroke: currentColor; }

/* ===== PHOTOS EN ACTION ===== */
.action-photos {
  padding: 4rem 0;
  background: var(--white);
  overflow: hidden;
}
.action-photos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.action-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.action-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.action-photo:hover img { transform: scale(1.06); }
.action-photo__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(to top, rgba(10,20,50,.85) 0%, transparent 100%);
  color: var(--white);
  font-size: .88rem;
  font-weight: 600;
}
@media (max-width: 768px) {
  .action-photos__grid { grid-template-columns: 1fr; gap: 1rem; }
  .action-photo { aspect-ratio: 16/9; }
}

/* ===== DEPISTAGE EN LIGNE ===== */
.depistage-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--gray-50) 100%);
  color: var(--gray-800);
  position: relative;
  overflow: hidden;
}
.depistage-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15,24,41,.045) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.depistage-section .section__header .badge { background: var(--blue-xlight); border-color: var(--blue-light); color: var(--blue); }
.depistage-section .section__title { color: var(--navy); }
.depistage-section .section__subtitle { color: var(--gray-600); }
.depistage-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}
.depistage-intro p {
  color: var(--gray-700);
  font-size: .93rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.depistage-risk-legend { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }
.depistage-risk-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-size: .86rem;
  color: var(--gray-700);
}
.depistage-risk-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}
.depistage-risk-dot--low  { background: #22c55e; }
.depistage-risk-dot--mid  { background: #f59e0b; }
.depistage-risk-dot--high { background: #ef4444; }
.depistage-card {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-lg);
}
.depistage-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .65rem;
}
.depistage-questions { display: flex; flex-direction: column; gap: .75rem; }
.depistage-question {
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
  transition: border-color .2s;
}
.depistage-question.unanswered { border-color: #ef4444; }
.depistage-question__row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.depistage-question__letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: .75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.depistage-question__text {
  flex: 1;
  font-size: .875rem;
  color: var(--gray-800);
  line-height: 1.5;
  margin-bottom: .6rem;
}
.depistage-question__options {
  display: flex;
  gap: 1.25rem;
  padding-left: 2.1rem;
}
.depistage-question__options--scale {
  gap: .75rem;
}
.depistage-question__options--scale .depistage-option {
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  min-width: 2.2rem;
  background: #ffffff;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  border-radius: .5rem;
  padding: .4rem .5rem;
  font-size: .9rem;
  font-weight: 600;
  transition: background .15s, color .15s;
}
.depistage-question__options--scale .depistage-option:has(input:checked) {
  background: var(--blue);
  color: #fff;
}
/* On masque le cercle radio : la case entière indique déjà la sélection */
.depistage-question__options--scale .depistage-option input {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
.depistage-question__options--scale .depistage-option span { line-height: 1.6; }
.depistage-scale-hint {
  font-size: .78rem;
  color: var(--gray-600);
  margin: -.25rem 0 1rem;
  line-height: 1.5;
}
.depistage-option {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .84rem;
  color: var(--gray-700);
  cursor: pointer;
}
.depistage-option input { accent-color: var(--blue); cursor: pointer; }
.depistage-submit {
  width: 100%;
  margin-top: 1.25rem;
}
.depistage-result {
  margin-top: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  text-align: center;
  animation: fadeInUp .4s ease;
}
.depistage-result--warning { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.35); color: #b91c1c; }
.depistage-result--low  { background: rgba(34,197,94,.10); border: 1px solid rgba(34,197,94,.4); }
.depistage-result--mid  { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.45); }
.depistage-result--high { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.4); }
.depistage-result__score {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: .25rem;
}
.depistage-result__level {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .6rem;
}
.depistage-result p { font-size: .875rem; color: var(--gray-600); line-height: 1.6; }
@media (max-width: 900px) {
  .depistage-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ===== DEPISTAGE — bannière d'accès au test (page d'accueil) ===== */
.depistage-promo { padding: 3.5rem 0; }
.depistage-promo__card {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 2.25rem 2.5rem;
  border-radius: var(--radius-lg, 18px);
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(15,24,41,.18);
  transition: transform var(--transition), box-shadow var(--transition);
}
.depistage-promo__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.depistage-promo__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgba(15,24,41,.26);
}
.depistage-promo__icon {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.10);
  color: var(--white);
  position: relative;
}
.depistage-promo__text { flex: 1; min-width: 0; position: relative; }
.depistage-promo__text .badge {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  margin-bottom: .6rem;
}
.depistage-promo__text h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 .4rem;
  line-height: 1.2;
}
.depistage-promo__text p {
  font-size: .95rem;
  color: rgba(255,255,255,.78);
  line-height: 1.6;
  margin: 0;
}
.depistage-promo__btn {
  flex-shrink: 0;
  position: relative;
  white-space: nowrap;
}

/* CTA en bas de la page de test */
.depistage-cta {
  margin-top: 3rem;
  text-align: center;
  position: relative;
}
.depistage-cta > p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.depistage-cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.depistage-cta .btn--outline {
  border-color: var(--blue-light);
  color: var(--blue);
}
.depistage-cta .btn--outline:hover { background: var(--blue-xlight); }

@media (max-width: 768px) {
  .depistage-promo__card {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
    padding: 2rem 1.5rem;
  }
  .depistage-promo__btn { width: 100%; }
}

/* ===== BRANCH CARD ENHANCEMENTS ===== */
.branch-card {
  position: relative;
}
.branch-card__link {
  display: inline-flex;
  align-items: center;
  margin-top: 1.1rem;
  padding: .55rem 1.15rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-xlight);
  border: 1px solid var(--blue-light);
  border-radius: 999px;
  transition: all var(--transition);
}
.branch-card__link:hover,
.branch-card--clickable:hover .branch-card__link {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 6px 16px -5px rgba(21,101,192,.55);
}
.branch-card h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.branch-card__pin {
  width: 18px;
  height: 18px;
  color: var(--blue);
  flex-shrink: 0;
}

/* ===== PAGE HERO ICON (no emoji) ===== */
.page-hero__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  color: var(--white);
}
.page-hero__icon svg { width: 36px; height: 36px; stroke: currentColor; }

/* ===== LANGUAGE TOGGLE ===== */
.lang-toggle {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-btn {
  padding: .3rem .7rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--transition);
  letter-spacing: .04em;
}
.lang-btn.active {
  background: var(--blue);
  color: var(--white);
}
.lang-btn:hover:not(.active) { background: var(--gray-100); color: var(--gray-700); }
@media (max-width: 768px) { .lang-toggle { display: none; } }

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
.article-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.article-card:hover {
  border-color: var(--blue-light);
  box-shadow: 0 16px 48px rgba(21,101,192,.12);
  transform: translateY(-4px);
}
.article-card__img {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.article-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.article-card:hover .article-card__img img { transform: scale(1.06); }
.article-card__tag {
  position: absolute;
  top: .75rem; left: .75rem;
  background: var(--blue);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.article-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.article-card__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .75rem;
  color: var(--gray-400);
  margin-bottom: .85rem;
}
.article-card__meta svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2; fill: none; }
.article-card__body h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: .65rem; line-height: 1.35; }
.article-card__body p { font-size: .875rem; color: var(--gray-500); line-height: 1.65; flex: 1; margin-bottom: 1.25rem; }
.article-card__read {
  font-size: .83rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: auto;
  transition: gap var(--transition);
}
.article-card:hover .article-card__read { gap: .6rem; }

/* ===== ARTICLE PAGE ===== */
.article-hero { padding-top: var(--header-h); background: var(--navy-dark); color: var(--white); padding-bottom: 3rem; }
.article-hero__meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.article-hero__tag { background: var(--blue); color: var(--white); font-size: .75rem; font-weight: 700; padding: .2rem .7rem; border-radius: 999px; }
.article-hero__info { font-size: .82rem; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: .5rem; }
.article-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: var(--white); margin-bottom: .85rem; }
.article-hero__lead { font-size: 1.1rem; color: rgba(255,255,255,.8); line-height: 1.7; max-width: 640px; }
.article-cover { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radius); margin: 2.5rem 0; }
.article-body { max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem; }
.article-body h2 { font-size: 1.5rem; color: var(--navy); margin: 2rem 0 .85rem; }
.article-body h3 { font-size: 1.1rem; color: var(--navy); margin: 1.5rem 0 .6rem; }
.article-body p { color: var(--gray-700); line-height: 1.8; margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { margin: 0 0 1.25rem 1.5rem; color: var(--gray-700); line-height: 1.8; }
.article-body li { margin-bottom: .4rem; }
.article-body strong { color: var(--gray-900); }
.article-callout {
  background: var(--blue-xlight);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.article-callout p { margin: 0; color: var(--blue-dark); font-weight: 500; }
.article-related { background: var(--gray-50); padding: 3.5rem 0; }

/* ===== PRODUCT COMPARATOR ===== */
.compare-btn {
  padding: .5rem .9rem;
  font-size: .82rem;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--gray-300);
  color: var(--gray-600);
  background: none;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: all var(--transition);
  font-weight: 500;
}
.compare-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-xlight); }
.compare-btn.selected { border-color: var(--blue); color: var(--white); background: var(--blue); }
.compare-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Compare bar (sticky bottom) */
#compare-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy);
  color: var(--white);
  z-index: 200;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -8px 32px rgba(0,0,0,.25);
}
#compare-bar.visible { transform: translateY(0); }
.compare-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.compare-bar__label { font-size: .82rem; color: rgba(255,255,255,.6); white-space: nowrap; }
.compare-slots { display: flex; gap: .85rem; flex: 1; flex-wrap: wrap; }
.compare-slot {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255,255,255,.1);
  border: 1px dashed rgba(255,255,255,.25);
  border-radius: var(--radius-xs);
  padding: .5rem 1rem;
  min-width: 180px;
  font-size: .85rem;
}
.compare-slot.filled { border-style: solid; border-color: var(--blue-light); background: rgba(21,101,192,.25); }
.compare-slot__name { flex: 1; }
.compare-slot__remove {
  background: none; border: none; color: rgba(255,255,255,.5);
  cursor: pointer; font-size: 1.1rem; padding: 0; line-height: 1;
  transition: color var(--transition);
}
.compare-slot__remove:hover { color: var(--white); }
.compare-bar__actions { display: flex; gap: .75rem; align-items: center; }
.btn--compare-go {
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius-xs);
  padding: .6rem 1.4rem;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background var(--transition);
}
.btn--compare-go:hover { background: var(--blue-dark); }
.btn--compare-go:disabled { opacity: .45; cursor: not-allowed; }
.compare-bar__clear {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  background: none; border: none; cursor: pointer;
  font-family: var(--font);
  transition: color var(--transition);
}
.compare-bar__clear:hover { color: var(--white); }

/* Comparison modal overlay */
#compare-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#compare-modal.open { display: flex; }
.compare-modal__box {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.compare-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gray-100);
  position: sticky; top: 0; background: var(--white); z-index: 1;
}
.compare-modal__head h3 { font-size: 1.15rem; color: var(--navy); }
.compare-modal__close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-400); padding: .25rem; }
.compare-modal__close:hover { color: var(--gray-700); }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table td, .compare-table th { padding: .9rem 1.5rem; border-bottom: 1px solid var(--gray-100); text-align: left; vertical-align: top; }
.compare-table th { color: var(--gray-400); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; background: var(--gray-50); white-space: nowrap; width: 160px; }
.compare-table td { font-size: .9rem; color: var(--gray-700); }
.compare-table td:first-child { font-weight: 600; color: var(--navy); }
.compare-table td ul { list-style: none; }
.compare-table td ul li::before { content: '✓ '; color: var(--blue); font-weight: 800; font-size: .8rem; }
.compare-img { width: 100%; height: 140px; object-fit: contain; background: #f0f4f8; border-radius: var(--radius-sm); padding: .75rem; margin-bottom: .75rem; mix-blend-mode: multiply; }
.compare-product-name { font-size: 1rem; font-weight: 700; color: var(--navy); }
.compare-product-cat { font-size: .78rem; color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* =====================================================================
   MOBILE — REFONTE DE L'APPARENCE (août 2026)
   Règles regroupées en fin de feuille pour primer sur les précédentes.
   Tout ce qui suit ne touche que les écrans ≤ 768 px (sauf mention).
   ===================================================================== */

/* Bandeau « depuis 1987 » : message long sur ordinateur, court sur mobile */
.promo-bar__msg--short { display: none; }

/* Voile derrière le panneau de menu mobile (créé par script.js) */
.nav-backdrop { position: fixed; inset: 0; background: rgba(10,22,44,.45); opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 90; }
.nav-backdrop.open { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }

/* Tuiles de catégories (accueil) : médias toujours carrés, même avec une photo portrait (tous écrans) */
.cat-tile__media { min-height: 0; overflow: hidden; position: relative; }
.cat-tile__media img { width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
/* Badge d'agrément : le visuel carré reste dans la pastille ronde */
.footer__accred { overflow: hidden; }
.footer__accred img { border-radius: 50%; }

@media (max-width: 768px) {
  /* ---------- En-tête compact ---------- */
  :root { --header-h: 90px; }
  html.promo-dismissed { --header-h: 54px; }
  .promo-bar__msg--long { display: none; }
  .promo-bar__msg--short { display: inline; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .promo-bar__inner { min-height: 36px; padding: .3rem 1rem; font-size: .8rem; }
  .header { max-width: 100vw; }
  .header__inner { padding: .5rem .75rem .5rem 1rem; gap: .45rem; }
  .logo__img { height: 42px; }
  .site-search { flex: 1 1 auto; min-width: 0; max-width: none; margin: 0; }
  .site-search__form { padding: .5rem .75rem; gap: .35rem; min-height: 40px; }
  .site-search__icon { width: 16px; height: 16px; }
  .site-search__input { font-size: 16px; }   /* 16 px : évite le zoom automatique d'iOS */
  .site-search__results { position: fixed; left: .75rem; right: .75rem; top: calc(var(--header-h) + .35rem); width: auto; max-width: none; max-height: calc(100dvh - var(--header-h) - 1.5rem); }
  .site-search__result { padding: .75rem .7rem; }
  .site-search__result-title { font-size: .98rem; }
  .site-search__result-meta { font-size: .84rem; }
  /* Bascule FR/EN : visible en mobile, compacte */
  /* Sur mobile : un seul bouton, celui de l'AUTRE langue (« EN » quand le site est en français) */
  .lang-toggle { display: flex; flex-shrink: 0; border: none; border-radius: 0; }
  .lang-btn { padding: .5rem .4rem; font-size: .84rem; font-weight: 700; color: var(--blue); min-height: 40px; letter-spacing: .05em; }
  .lang-btn.active { display: none; }
  .lang-btn:hover:not(.active) { background: none; color: var(--blue-dark); }
  .burger { padding: .7rem .45rem; margin-right: -.2rem; min-width: 42px; min-height: 44px; align-items: center; justify-content: center; }
  .burger span { width: 24px; height: 2.5px; }

  /* ---------- Panneau de menu : défilable, lignes pleine largeur, accordéons, CTA ---------- */
  .nav { top: var(--header-h); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: .35rem 1rem 1.5rem; border-bottom: none; }
  .header .nav .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { width: 100%; border-bottom: 1px solid var(--gray-100); }
  .nav__item:last-child { border-bottom: none; }
  .header .nav__link { display: flex; align-items: center; width: 100%; margin: 0; font-size: 1.02rem; padding: .85rem .5rem; min-height: 50px; border-radius: 0; text-align: left; }
  .nav__link--parent { justify-content: space-between; }
  .nav__link--parent::after { content: ''; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .6; margin: 0 .5rem 0 .5rem; transition: transform .2s ease; flex-shrink: 0; }
  .nav__item--dropdown.open > .nav__link--parent::after { transform: rotate(-135deg); }
  .nav__item--dropdown.open > .nav__link--parent { color: var(--blue-dark); }
  .nav__dropdown { margin: 0 0 .6rem; padding: 0 0 0 .85rem; border-left: 2px solid var(--blue-light); }
  .nav__dropdown li a { padding: .7rem .5rem; font-size: .97rem; min-height: 46px; }
  .nav__dropdown li a:hover { padding-left: .5rem; }
  .nav__dropdown--mega .mega__grid { display: block; }
  .nav__dropdown--mega .mega__col + .mega__col { margin-top: .9rem; }
  .nav__dropdown--mega .mega__title { font-size: 1rem; padding: .45rem 0 .2rem; margin: 0 0 .25rem; }
  .nav__dropdown--mega .mega__title--mt { margin-top: .9rem; }
  .nav__dropdown--mega .mega__links a { padding: .55rem 0; font-size: .95rem; min-height: 42px; display: flex; align-items: center; }
  .nav__dropdown--mega .mega__links a:hover { transform: none; }
  .header .nav__link--cta { margin: 1rem 0 .25rem; border-radius: var(--radius-sm); justify-content: center; font-size: 1rem; min-height: 52px; }

  /* ---------- Rythme général, typographie, boutons ---------- */
  .container { padding: 0 1.1rem; }
  .section { padding: 3.25rem 0; }
  .section__header { margin-bottom: 1.9rem; }
  .section__subtitle { font-size: 1rem; }
  h2, .section__title { font-size: clamp(1.55rem, 6.2vw, 1.95rem); }
  .badge { font-size: .78rem; }
  .btn { min-height: 46px; padding: .8rem 1.3rem; font-size: .98rem; white-space: normal; line-height: 1.3; text-align: center; }
  .btn--sm { min-height: 42px; font-size: .9rem; }
  :where(a[href^="tel:"]) { display: inline-block; padding: .25rem 0; }
  .breadcrumb { font-size: .86rem; flex-wrap: wrap; row-gap: .1rem; }
  .breadcrumb a { display: inline-flex; align-items: center; min-height: 36px; }

  /* ---------- Accueil : hero ---------- */
  .hero { min-height: 0; }
  .hero__bg { background-attachment: scroll; }
  /* Recadrage tablette : le sujet de la diapositive 2 est au bord droit de la photo */
  .hero__bg[data-slide="2"] { background-position: right center !important; }
  .hero__bg[data-slide="0"] { background-position: 32% 30% !important; }
  .hero__content { padding: 2.75rem 0 3rem; }
  .hero__title { font-size: clamp(2.4rem, 11vw, 3.2rem); line-height: 1.06; margin-bottom: 1rem; }
  .hero__subtitle { font-size: 1.12rem; margin-bottom: 1.5rem; line-height: 1.55; }
  .hero__actions { margin-bottom: 1.25rem; }
  .hero-dots { margin-top: 1.25rem; }
  .trust-bar__inner { gap: .55rem 1.25rem; justify-content: flex-start; }
  .trust-item { font-size: .86rem; }

  /* ---------- Accueil : tuiles, services, témoignages, succursales, contact ---------- */
  .cat-tiles { gap: 1.25rem .9rem; }
  .cat-tile__media { padding: 1rem; border-radius: 18px; }
  .cat-tile h3 { font-size: .92rem; margin-top: .7rem; line-height: 1.25; }
  .services__grid { gap: 1rem; }
  .service-card { padding: 1.35rem 1.25rem; }
  .service-card p { font-size: .95rem; }
  .service-card__list li { font-size: .92rem; }
  .testimonials__grid { gap: 1rem; }
  .testimonial-card p { font-size: .98rem; line-height: 1.65; }
  .testimonial-card__date { font-size: .82rem; }
  .branches__grid { gap: 1rem; }
  .branch-card { padding: 1.35rem 1.25rem; }
  .branch-card h3 { font-size: 1.1rem; }
  .branch-card p { font-size: .95rem; }
  .branch-card__hours { font-size: .88rem !important; }
  .branch-card__phone { display: inline-flex; align-items: center; font-size: 1.05rem; min-height: 44px; padding: .35rem 0; }
  .branch-card__fb { display: inline-flex; align-items: center; min-height: 40px; padding: .35rem 0; }
  .branch-card__link { display: flex; justify-content: center; width: 100%; min-height: 46px; font-size: .95rem; }
  .contact-band { grid-template-columns: 1fr; padding: 1.75rem 1.35rem; gap: 1.25rem; border-radius: 16px; }
  .contact-band__text h2 { font-size: 1.5rem; }
  .contact-band__cta-label { font-size: .82rem; }
  .contact-band__phone { display: inline-flex; align-items: center; min-height: 48px; padding: .35rem 0; font-size: 1.35rem; }
  .depistage-promo { padding: 2.25rem 0; }
  .expert-cta { padding: 3rem 0; }
  .expert-cta__actions { flex-direction: column; align-items: stretch; gap: .75rem; }
  .expert-cta__actions .btn { width: 100%; }

  /* ---------- Pied de page ---------- */
  .footer { padding-top: 2.75rem; }
  .footer__inner { gap: 1.75rem; padding-bottom: 2rem; }
  .footer__inner > .footer__links { flex: 1 1 100%; }
  .footer__links h4 { margin-bottom: .5rem; }
  .footer__links ul { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 1rem; }
  .footer__links li a { display: inline-block; padding: .4rem 0; font-size: .95rem; }
  .footer__newsletter p, .footer__brand p { font-size: .9rem; }
  .footer__bottom p { font-size: .84rem; line-height: 1.6; }
  .footer__bottom .footer__legal a { display: inline-block; padding: .4rem 0; }

  /* ---------- Pages succursales ---------- */
  .page-hero__badges { flex-direction: row; flex-wrap: wrap; gap: .5rem; }
  .page-hero__badge { width: auto; font-size: .9rem; padding: .5rem .9rem; min-height: 40px; display: inline-flex; align-items: center; }
  a.page-hero__badge { background: var(--white); color: var(--blue-dark); font-weight: 700; border-color: var(--white); display: inline-flex; padding: .5rem .9rem; }
  html .branch-info-grid { gap: 1rem; margin-top: 1.5rem; }
  html .branch-info-card { padding: 1.35rem 1.2rem; }
  html .branch-info-card h3 { font-size: 1.12rem; }
  html .branch-info-card p, html .branch-info-card li { font-size: 1rem; line-height: 1.6; color: var(--gray-600); }
  html .branch-info-card p[style*="gray-400"] { color: var(--gray-500) !important; }
  html .branch-map-link { display: flex; align-items: center; min-height: 44px; padding: .3rem 0; margin-top: .25rem; font-size: 1rem; }
  html .branch-info-card a[href^="tel:"] { font-weight: 600; padding: .3rem 0; }
  .map-embed iframe, .section iframe[src*="openstreetmap"] { height: 280px; }
}

@media (max-width: 480px) {
  .footer__inner { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(2.3rem, 11vw, 3rem); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

/* =====================================================================
   TABLETTE / iPad (769 px à 1080 px) — bande d'écran dédiée (août 2026)
   ---------------------------------------------------------------------
   Trois familles d'écrans distinctes :
     · Téléphone  : ≤ 768 px  (bloc « MOBILE » ci-dessus)
     · Tablette   : 769–1080 px (ce bloc — iPad portrait 810/820/834 px)
     · Ordinateur : > 1080 px
   Les demandes « sur iPad » se règlent ici sans toucher aux deux autres.
   ===================================================================== */
@media (min-width: 769px) and (max-width: 1080px) {
  /* Le hero de l'accueil reste imposant mais proportionné à l'écran */
  .hero__title { font-size: clamp(3rem, 7.5vw, 4.6rem); }
  .hero__subtitle { font-size: 1.3rem; }
  .section { padding: 4.25rem 0; }
}
/* iPad en portrait (769–900 px) : le menu doit tenir sur UNE ligne */
@media (min-width: 769px) and (max-width: 900px) {
  .header .nav .nav__list { padding: .35rem .5rem; }
  .header .nav__link { margin: 0 .1rem; padding: .45rem .5rem; font-size: .78rem; }
  .header .nav__link--cta { margin-left: .3rem; padding: .5rem .8rem; }
  .nav__link--ext { gap: .2rem; }
  .logo__img { height: 72px; }
  .site-search { flex-basis: 200px; }
  .hero__stats { gap: 0 1.5rem; }
  .stat { padding-right: 1.5rem; margin-right: 1.5rem; }
  .contact-band { grid-template-columns: 1fr; gap: 1.75rem; padding: 2.25rem 2rem; }
  .footer__inner > .footer__links { flex: 1 1 180px; }
}

/* Tablette : le fond « fixe » (parallaxe) cause un zoom extrême sur iPad
   (bogue iOS) et le hero pleine hauteur recadre trop les photos larges.
   → fond défilant + hero à hauteur de contenu, photos bien visibles. */
@media (min-width: 769px) and (max-width: 1080px) {
  .hero { min-height: 0; }
  .hero__content { padding: 4rem 0 3.25rem; }
  .hero__bg { background-attachment: scroll; }
  .hero__stats { padding-top: 1.75rem; }
  /* Recadrage tablette : le sujet de la diapositive 2 est au bord droit de la photo */
  .hero__bg[data-slide="2"] { background-position: right center !important; }
}
/* Tablette : le méga-menu Produits (3 colonnes) est plus haut que l'écran —
   on borne sa hauteur et on le rend défilable au doigt. */
@media (min-width: 769px) and (max-width: 1080px) {
  .nav__dropdown--mega {
    max-height: calc(100vh - var(--header-h) - 12px);
    max-height: calc(100dvh - var(--header-h) - 12px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 2rem;
  }
}
/* Écrans tactiles de grande taille (iPad Pro en paysage, > 1080 px) : même garde-fou */
@media (hover: none) and (min-width: 769px), (pointer: coarse) and (min-width: 769px) {
  .nav__dropdown--mega {
    max-height: calc(100vh - var(--header-h) - 12px);
    max-height: calc(100dvh - var(--header-h) - 12px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
}
/* Tout écran tactile (iPad paysage et iPad Pro inclus, > 1080 px) :
   jamais de fond fixe — iOS le zoome démesurément. */
@media (hover: none), (pointer: coarse) {
  .hero__bg { background-attachment: scroll; }
}

/* ===== Bloc informatif repliable sur téléphone (« En savoir plus ») ===== */
.collapse-toggle { display: none; align-items: center; background: transparent; }
.collapse-toggle:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.collapse-toggle .collapse-toggle__less { display: none; }
.collapse-band { text-align: center; }
@media (max-width: 768px) {
  .m-collapse:not(.m-collapse-open) .m-collapsed { display: none !important; }
  .collapse-toggle { display: inline-flex; margin-top: .25rem; }
  .m-collapse-open .collapse-toggle { margin-top: 1.25rem; }
  .m-collapse-open .collapse-toggle__more { display: none; }
  .m-collapse-open .collapse-toggle__less { display: inline; }
  /* Bande bleue pleine largeur qui délimite le bloc repliable du reste de la page */
  .collapse-band { background: var(--blue-xlight); border-top: 1.5px solid var(--blue-light); border-bottom: 1.5px solid var(--blue-light); padding: .9rem 1rem; width: 100vw; margin-left: calc(50% - 50vw); margin-top: .75rem; }
  .collapse-band .collapse-toggle, .m-collapse-open .collapse-band .collapse-toggle { margin-top: 0; }
}

/* ===== Accueil sur téléphone : fond marine uni (sans photo) et texte centré ===== */
@media (max-width: 768px) {
  .hero__bgs { display: none; }
  .hero { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%); }
  .hero__content { text-align: center; }
}

/* ===== Accueil téléphone : carrousel de photos pleine largeur, en flux normal
       juste sous le bloc marine (aucun espace possible) — défile tout seul
       et se glisse au doigt ===== */
.hero-photos-mobile { display: none; }
@media (max-width: 768px) {
  .hero-photos-mobile { display: block; font-size: 0; background: var(--navy-dark); }
  .hero__mobile-photos {
    display: flex; gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none;
  }
  .hero__mobile-photos::-webkit-scrollbar { display: none; }
  .hero__mobile-photos img {
    flex: 0 0 100%; width: 100%; height: 75vw; object-fit: cover;
    scroll-snap-align: start; scroll-snap-stop: always;
  }
}

/* Accueil téléphone : moins de blanc entre le carrousel de photos et la premiere section */
@media (max-width: 768px) {
  .hero-photos-mobile + .section { padding-top: 1.5rem; }
}

/* Libelle different sur telephone (ex. bouton du hero de l'accueil) */
.lbl-mobile { display: none; }
@media (max-width: 768px) {
  .lbl-desktop { display: none; }
  .lbl-mobile { display: inline; }
}

/* ===== Lien d'évitement (accessibilité clavier/lecteur d'écran) ===== */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--blue-dark); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 10px 0; font-weight: 700; }
.skip-link:focus { left: 0; }

/* ===== Contrastes : textes informatifs en gris lisible (AA) ===== */
.branch-card__hours { color: var(--gray-500) !important; }
.team-card__permit { color: var(--gray-600); }

/* ===== Mouvement réduit : couper les animations décoratives ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

