/*
Theme Name: Hatoiture
Theme URI: https://hatoiture.com
Author: Hatoiture
Description: Thème sur mesure pour Hatoiture — spécialiste de la rénovation de toiture. Démoussage, nettoyage, hydrofuge, peinture et réfection de toiture.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: hatoiture
*/

/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --navy:      #0f2942;
  --navy-700:  #16375a;
  --navy-600:  #1e4d7b;
  --brand:     #e8622c;   /* terracotta / tuile */
  --brand-600: #cf4f1e;
  --brand-50:  #fdeee7;
  --ink:       #1a2230;
  --muted:     #5b6472;
  --line:      #e6e9ee;
  --bg:        #ffffff;
  --bg-soft:   #f6f8fb;
  --gold:      #f2b705;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow:    0 10px 30px rgba(15, 41, 66, .10);
  --shadow-sm: 0 4px 14px rgba(15, 41, 66, .08);
  --maxw:      1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; color: var(--navy); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 0 0 .5em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }
p  { margin: 0 0 1em; }

/* Visible uniquement pour les lecteurs d'écran. */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 78px 0; }
.section--soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: .78rem; color: var(--brand);
  margin-bottom: .6em;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
/* Bouton d'appel à l'action placé sous un titre de section centré. */
.center__cta { margin-top: 24px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; font-size: 1rem; padding: 14px 26px;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(232,98,44,.35); }
.btn--primary:hover { background: var(--brand-600); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-700); color: #fff; }
/* Bouton clair sur fond coloré (bandeau CTA terracotta). */
.btn--light { background: #fff; color: var(--brand-600); box-shadow: 0 8px 22px rgba(15,41,66,.18); }
.btn--light:hover { background: #fff; color: var(--brand); }

/* Groupe d'actions réutilisable hors hero. */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.actions--center { justify-content: center; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 74px; }
/* Le logotype est en capitales : un léger interlettrage positif l'aère. */
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy); font-size: 1.3rem; letter-spacing: .04em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 40px; height: 40px; flex: 0 0 auto; }
.brand b { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--navy); font-weight: 600; font-size: .97rem; }
.nav a:hover { color: var(--brand); text-decoration: none; }

/* Méga-menu « Toiture » — ouverture au survol / focus, sans JS. */
.has-mega { position: relative; display: flex; align-items: center; align-self: stretch; }
.nav-trigger { display: inline-flex; align-items: center; gap: 5px; }
.nav-trigger svg { width: 13px; height: 13px; transition: transform .2s ease; }
.has-mega:hover .nav-trigger svg,
.has-mega:focus-within .nav-trigger svg { transform: rotate(180deg); }
.mega-panel {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(12px);
  min-width: 540px; padding: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); z-index: 60;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
/* Pont invisible : comble l'espace entre le déclencheur et le panneau
   pour que le survol ne se coupe pas quand la souris descend cliquer. */
.mega-panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px;
}
.has-mega:hover .mega-panel,
.has-mega:focus-within .mega-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(8px);
}
.mega-panel__title {
  display: block; font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.mega-panel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.mega-panel__grid a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: 9px;
  color: var(--navy); font-weight: 600; font-size: .91rem;
}
.mega-panel__grid a::before {
  content: ""; flex: 0 0 auto; width: 6px; height: 6px;
  border-radius: 50%; background: var(--brand);
}
.mega-panel__grid a:hover { background: var(--brand-50); color: var(--brand); text-decoration: none; }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-cta .btn { font-size: 1rem; padding: 10px 26px; box-shadow: none; }
.header-phone { font-weight: 800; color: var(--navy); white-space: nowrap; }
.header-phone:hover { color: var(--brand); text-decoration: none; }
/* Lien Contact réservé au menu déplié : masqué tant que la nav est horizontale. */
.nav__contact { display: none; }
/* Bouton hamburger : caché sur grand écran, il remplace le bouton Contact
   sous 900px et reprend son gabarit pour ne pas déséquilibrer la barre. */
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  padding: 10px; border: 0; border-radius: var(--radius);
  background: var(--brand); color: #fff; cursor: pointer;
  transition: background .25s ease;
}
.menu-toggle:hover { background: var(--brand-600); }
.menu-toggle svg { width: 22px; height: 22px; display: block; }
.menu-toggle__cross { display: none; }
.nav-open .menu-toggle__bars { display: none; }
.nav-open .menu-toggle__cross { display: block; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(232,98,44,.35), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-600) 60%, #24608f 100%);
}

/* --- Ciel animé : halo solaire + deux couches de nuages --- */

/* Le ciel lui-même : lavis de couleur qui balaie lentement le hero. */
.hero__sky {
  display: none;
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(36,96,143,0) 0%,
    rgba(80,150,200,.38) 22%,
    rgba(232,98,44,.20) 48%,
    rgba(80,150,200,.38) 74%,
    rgba(36,96,143,0) 100%
  );
  background-size: 220% 100%;
  /* Animation du ciel désactivée. */
  animation: none;
}

/* Halo solaire qui respire doucement. */
.hero__sun {
  position: absolute; z-index: 0; pointer-events: none;
  top: -18%; right: 4%; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,196,140,.55) 0%, rgba(232,98,44,.28) 38%, transparent 70%);
  filter: blur(12px);
  animation: hatoiture-glow 9s ease-in-out infinite;
}

/* Calque SVG des nuages : bruit fractal, dégradé vers le bas pour
   dégager la zone de texte. */
.hero__clouds-svg {
  display: none;
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 92%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 92%);
}
.hero__cloud-layer { will-change: transform; }

/* Couche lointaine : diffuse, lente, en retrait. */
.hero__cloud-layer--far {
  opacity: .85;
  /* Animation des nuages désactivée. */
  animation: none;
}

/* Couche proche : plus contrastée et plus rapide → effet de profondeur. */
.hero__cloud-layer--near {
  opacity: .72;
  /* Animation des nuages désactivée. */
  animation: none;
}

/* La translation vaut exactement une tuile du motif : bouclage invisible. */
@keyframes hatoiture-cloud-far {
  from { transform: translateX(0); }
  to   { transform: translateX(900px); }
}
@keyframes hatoiture-cloud-near {
  from { transform: translateX(0); }
  to   { transform: translateX(600px); }
}

/* Voile dégradé en bas : ancre le texte et adoucit l'horizon. */
.hero__haze {
  position: absolute; z-index: 0; pointer-events: none; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to top, rgba(15,41,66,.55), transparent);
}

@keyframes hatoiture-glow {
  0%, 100% { opacity: .75; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.06); }
}
@keyframes hatoiture-sky {
  from { background-position:   0% 50%; }
  to   { background-position: 100% 50%; }
}

/* Accessibilité : on fige le ciel si l'utilisateur limite les animations. */
@media (prefers-reduced-motion: reduce) {
  .hero__cloud-layer, .hero__sun, .hero__sky, .hero__type, .hero__type-caret { animation: none; }
  .hero__type-caret { display: none; }
}

.hero .container { position: relative; z-index: 2; padding-top: 84px; padding-bottom: 96px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin: 0 0 .4em; }

/* Machine à écrire rotative : chaque mot est tapé, puis effacé.
   Le mot rejoue une rotation d'apparition à chaque changement. */
.hero__type {
  display: inline-flex;
  align-items: baseline;
  color: var(--brand);
  transform-origin: bottom left;
  white-space: nowrap;
}
.hero__type.is-rotating {
  animation: hatoiture-type-slide-down .55s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes hatoiture-type-slide-down {
  from { opacity: 0; transform: translateY(-.5em); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Curseur clignotant. */
.hero__type-caret {
  display: inline-block;
  width: .06em;
  align-self: stretch;
  margin-left: .06em;
  background: currentColor;
  animation: hatoiture-caret 1s steps(1) infinite;
}
@keyframes hatoiture-caret {
  0%, 50%  { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
.hero p { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 520px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero .trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.hero .trust .item { display: flex; align-items: center; gap: 9px; font-size: .93rem; color: rgba(255,255,255,.92); font-weight: 600; }
.hero .trust svg { flex: 0 0 auto; }

/* Vidéo de présentation (colonne droite du hero) — format portrait 9/16 */
.hero-video {
  max-width: 400px; margin: 0 auto; width: 100%;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 8px solid var(--brand);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  background: rgba(0,0,0,.25);
}
.hero-video__player {
  display: block; width: 100%; aspect-ratio: 3 / 4;
  object-fit: cover; object-position: center; background: var(--navy);
}

/* ============================================================
   Problems / causes
   ============================================================ */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand); margin-bottom: 16px;
}
.card p { color: var(--muted); margin: 0; }

/* ============================================================
   Cartes prestations
   ============================================================ */
.service {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  width: 100%;
  padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,41,66,.05);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease, border-color .35s ease;
}
.service .slide-card__media { border-radius: 0; }
.service:hover .slide-card__media img { transform: scale(1.06); }

/* Voile navy en bas du visuel : la transition vers le texte est plus douce. */
.service .slide-card__media::after {
  content: ""; position: absolute; inset: auto 0 0; height: 45%;
  background: linear-gradient(180deg, transparent, rgba(15,41,66,.35));
  pointer-events: none;
}

.service__body {
  position: relative;
  display: flex; flex-direction: column; flex: 1 1 auto;
  padding: 26px 26px 26px;
}

/* Liseré terracotta qui se déploie sur l'arête supérieure au survol. */
.service::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), #ffb27f);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.7,.3,1);
}
.service:hover {
  transform: translateY(-6px);
  border-color: rgba(232,98,44,.35);
  box-shadow: 0 22px 46px rgba(15,41,66,.13);
}
.service:hover::before { transform: scaleX(1); }

/* Le texte est isolé du conteneur flex pour que le numéro puisse flotter :
   les lignes contournent le chiffre puis reprennent toute la largeur. */
.service__text { display: block; }
.service__text::after { content: ""; display: block; clear: both; }

/* Numéro en filigrane, contour seul, dans l'angle supérieur droit. */
.service__num {
  float: right; margin: -2px -2px 6px 18px; pointer-events: none;
  font-size: 3.2rem; font-weight: 800; line-height: 1; letter-spacing: -.05em;
  color: rgba(15,41,66,.08);
  transition: color .35s ease, -webkit-text-stroke-color .35s ease;
}
@supports (-webkit-text-stroke: 1px red) {
  .service__num { color: transparent; -webkit-text-stroke: 1.5px rgba(15,41,66,.15); }
  .service:hover .service__num { -webkit-text-stroke-color: rgba(232,98,44,.45); }
}
.service:hover .service__num { color: rgba(232,98,44,.16); }

.service h3 { font-size: 1.18rem; margin-bottom: .45em; }
.service p { color: var(--muted); margin: 0 0 20px; }

/* Points clés, avec pastille cochée. */
.service .ticks {
  list-style: none; margin: auto 0 0; padding: 16px 0 0;
  border-top: 1px solid var(--line);
}
.service .ticks li {
  position: relative; padding-left: 28px; margin-bottom: 9px;
  font-size: .93rem; font-weight: 500; color: var(--ink);
}
.service .ticks li:last-child { margin-bottom: 0; }
.service .ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3l2.3 2.3 4.5-5' fill='none' stroke='%23e8622c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
}

/* ============================================================
   Cartes « pourquoi rénover » (risques)
   ============================================================ */
.causes { margin-top: 48px; }
.cause {
  position: relative; overflow: hidden;
  padding: 30px 26px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,41,66,.05);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease, border-color .35s ease;
}
/* Lueur d'angle qui se révèle au survol. */
.cause::before {
  content: ""; position: absolute; top: -70px; right: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,98,44,.17), transparent 70%);
  opacity: 0; transition: opacity .45s ease;
}
.cause:hover {
  transform: translateY(-6px);
  border-color: rgba(232,98,44,.32);
  box-shadow: 0 22px 44px rgba(15,41,66,.13);
}
.cause:hover::before { opacity: 1; }

/* Tuile pictogramme : en veille au repos, elle « s'allume » au survol. */
.cause__icon {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 16px;
  margin-bottom: 18px;
  background: var(--brand-50); color: var(--brand);
  border: 1px solid rgba(232,98,44,.2);
  transition: background .35s ease, color .35s ease, border-color .35s ease,
              transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease;
}
.cause__icon svg { width: 25px; height: 25px; }
.cause:hover .cause__icon {
  background: linear-gradient(145deg, var(--brand), #ff9057);
  color: #fff; border-color: transparent;
  transform: rotate(-5deg) scale(1.06);
  box-shadow: 0 12px 26px rgba(232,98,44,.34);
}

.cause h3 { position: relative; z-index: 1; font-size: 1.1rem; margin-bottom: .45em; }
.cause p { position: relative; z-index: 1; color: var(--muted); margin: 0; font-size: .96rem; }

/* ============================================================
   Slider prestations
   ============================================================ */
.slider { position: relative; margin-top: 44px; }
.slider__viewport {
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none;
}
.slider__viewport::-webkit-scrollbar { display: none; }
.slider__viewport:focus-visible {
  outline: 3px solid var(--brand); outline-offset: 4px; border-radius: var(--radius);
}
/* Le rembourrage laisse respirer le soulèvement et l'ombre des cartes au survol. */
.slider__track { display: flex; list-style: none; margin: 0; padding: 12px 0 36px; }
.slider__slide {
  flex: 0 0 calc(100% / 3); scroll-snap-align: start;
  padding: 0 12px; display: flex;
}
.slide-card {
  display: flex; flex-direction: column; width: 100%;
  padding: 0; overflow: hidden;
}
.slide-card__media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--bg-soft); flex: 0 0 auto;
}
.slide-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.slide-card:hover .slide-card__media img { transform: scale(1.06); }
.slide-card__media--empty {
  display: grid; place-items: center; font-size: 2.4rem;
  background: linear-gradient(160deg, var(--navy-600), var(--navy));
  color: rgba(255,255,255,.85);
}
.slide-card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1 1 auto; }
.slide-card h3 { font-size: 1.12rem; }
.slide-card p { color: var(--muted); flex: 1 1 auto; margin: 0; }
.slide-card__link {
  margin-top: 16px; font-weight: 700; font-size: .93rem; color: var(--brand-600);
}
.slide-card__link:hover { text-decoration: none; color: var(--brand); }

/* Variante « riche » du carrousel (page Prestations) : catégorie, texte
   et liste de points clés dans chaque carte. */
.slide-card--rich p { flex: 0 0 auto; }
.slide-card__tag {
  align-self: flex-start;
  font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-50);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 12px;
}
.slide-card__points {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: flex; flex-direction: column; gap: 9px;
  flex: 1 1 auto;
}
.slide-card__points li {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: .92rem; color: var(--ink); line-height: 1.4;
}
.slide-card__points li svg {
  flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; color: var(--brand);
}
.slide-card--rich .slide-card__link {
  padding-top: 16px; border-top: 1px solid var(--line);
}

/* Barre de pilotage groupée sous le carrousel : flèches + progression.
   Les flèches ne chevauchent plus les cartes. */
.slider__controls {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-top: 2px;
}

.slider__nav {
  flex: 0 0 auto;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 10px rgba(15,41,66,.07);
  transition: background .25s ease, color .25s ease, border-color .25s ease,
              transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease;
}
.slider__nav:hover {
  background: var(--brand); color: #fff; border-color: var(--brand);
  transform: scale(1.08); box-shadow: 0 10px 24px rgba(232,98,44,.32);
}
.slider__nav:active { transform: scale(.95); }
.slider__nav:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* Progression segmentée : le segment actif se remplit au rythme de la lecture auto. */
.slider__dots { display: flex; align-items: center; gap: 7px; }
.slider__dot {
  position: relative; overflow: hidden;
  width: 46px; height: 4px; padding: 0; border: 0; border-radius: 99px;
  background: #d5dde7; cursor: pointer; transition: background .25s ease;
}
.slider__dot:hover { background: #b6c3d3; }
.slider__dot:focus-visible { outline: 3px solid var(--brand); outline-offset: 5px; }
.slider__dot.is-active::after {
  content: ""; position: absolute; inset: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), #ffb27f);
  transform-origin: left;
  animation: slider-progress 5s linear forwards;
}
@keyframes slider-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* La lecture auto se met en pause au survol et au focus : la barre se fige aussi. */
.slider:hover .slider__dot.is-active::after,
.slider:focus-within .slider__dot.is-active::after { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .slider__viewport { scroll-behavior: auto; }
  /* Sans lecture auto, le segment actif reste simplement plein. */
  .slider__dot.is-active::after { animation: none; }
}

/* ============================================================
   Steps
   ============================================================ */
/* Halo diffus derrière le parcours, pour décoller la frise du fond. */
.steps-section { position: relative; overflow: hidden; }
.steps-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(760px 300px at 50% 0%, rgba(232,98,44,.09), transparent 68%);
}
.steps-section .container { position: relative; z-index: 1; }

.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; margin-top: 54px; }
.step { position: relative; padding-top: 4px; }

/* Rail dégradé reliant une étape à la suivante : la progression se lit
   d'un coup d'œil. Masqué après la dernière étape de chaque rangée. */
.step::after {
  content: ""; position: absolute; z-index: 0;
  top: 33px; left: 74px; right: -26px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(232,98,44,.5), rgba(232,98,44,.12));
}
.step:last-child::after { display: none; }

/* Tuile pictogramme : elle remplace la pastille chiffrée, le numéro
   passant dans le libellé « Étape 01 » juste en dessous. */
.step__icon {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 19px;
  background: linear-gradient(150deg, #fff, var(--brand-50));
  border: 1px solid rgba(232,98,44,.26);
  color: var(--brand);
  box-shadow: 0 6px 18px rgba(15,41,66,.08), 0 0 0 8px var(--bg-soft);
  transition: background .35s ease, color .35s ease, border-color .35s ease,
              transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease;
}
.step__icon svg { width: 27px; height: 27px; }
.step:hover .step__icon {
  background: linear-gradient(150deg, var(--brand), #ff9057);
  color: #fff; border-color: transparent;
  transform: translateY(-5px) rotate(-4deg);
  box-shadow: 0 16px 32px rgba(232,98,44,.36), 0 0 0 8px var(--bg-soft);
}

.step__label {
  display: block; margin: 20px 0 7px;
  font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--brand);
}
.step h3 { font-size: 1.12rem; margin-bottom: .4em; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Révélation au scroll — armée par js/reveal.js, donc sans JS tout reste visible. */
.reveal-armed { opacity: 0; transform: translateY(24px); }
.reveal-armed.is-in {
  opacity: 1; transform: none;
  transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.3,1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-armed { opacity: 1; transform: none; }
}

/* ============================================================
   Feature split
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
/* Alternance texte/image sur la page prestations : une rangée sur deux
   place l'image à gauche sans changer l'ordre du HTML (accessibilité). */
.split--reverse .srv-detail__media { order: -1; }
/* Décalage pour que l'ancre ne se cache pas sous l'en-tête collant. */
.srv-detail { position: relative; margin-bottom: 84px; scroll-margin-top: 96px; }
.srv-detail:last-child { margin-bottom: 0; }
.srv-detail .checklist { margin-bottom: 26px; }
.srv-detail__cta { margin-top: 4px; }
.srv-detail__text { position: relative; }

/* Numéro d'ordre en filigrane, façon édito. */
.srv-detail__index {
  display: none; line-height: .9; margin-bottom: 6px;
  font-size: 3.4rem; font-weight: 800; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.6px rgba(232,98,44,.4);
}
@supports not (-webkit-text-stroke: 1px red) {
  .srv-detail__index { color: var(--brand-50); }
}

/* Cadre image + étiquette flottante. */
.srv-detail__media { position: relative; }
.srv-detail__tag {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(15,41,66,.72); color: #fff;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--ink); }
.checklist li svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; color: var(--brand); }
.media-frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--navy-600), var(--navy));
  min-height: 340px; display: grid; place-items: center; color: rgba(255,255,255,.4);
  border: 1px solid var(--line); position: relative;
}
/* Cadre contenant une vraie photo : l'image remplit le cadre. */
.media-frame--filled { background: none; border: 6px solid var(--brand); }
.media-frame--filled img {
  width: 100%; height: 100%; min-height: 340px;
  object-fit: cover; display: block;
}

/* ============================================================
   Stats band
   ============================================================ */
.stats {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #0a1d31 0%, var(--navy) 46%, var(--navy-700) 100%);
}

/* Halos diffus : chaleur terracotta en haut à gauche, bleu profond en bas à droite. */
.stats__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 340px at 10% -10%, rgba(232,98,44,.30), transparent 62%),
    radial-gradient(560px 320px at 92% 110%, rgba(30,77,123,.55), transparent 66%);
}

/* Filets lumineux qui détachent le bandeau des sections voisines. */
.stats::before,
.stats::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16) 18%, rgba(232,98,44,.6) 50%, rgba(255,255,255,.16) 82%, transparent);
}
.stats::before { top: 0; }
.stats::after  { bottom: 0; }

.stats .container { position: relative; z-index: 1; }
.stats .grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }

/* Cartes en verre dépoli. */
.stat {
  position: relative;
  padding: 28px 24px 26px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), border-color .35s ease, box-shadow .35s ease;
}
/* Reflet fin sur l'arête supérieure de la carte. */
.stat::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
}
.stat:hover {
  transform: translateY(-6px);
  border-color: rgba(232,98,44,.5);
  box-shadow: 0 20px 44px rgba(0,0,0,.30);
}

/* Petite barre terracotta qui s'étire au survol. */
.stat__spark {
  display: block; width: 34px; height: 3px; margin-bottom: 18px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), #ffb27f);
  transition: width .35s cubic-bezier(.2,.7,.3,1);
}
.stat:hover .stat__spark { width: 58px; }

.stat .big {
  font-size: clamp(2.1rem, 4.4vw, 3.15rem);
  font-weight: 800; line-height: 1; letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 28%, rgba(255,255,255,.60));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.stat .lbl {
  margin-top: 12px;
  color: rgba(255,255,255,.62);
  font-weight: 600; font-size: .8rem; line-height: 1.45;
  letter-spacing: .09em; text-transform: uppercase;
}

/* Révélation au scroll — activée par js/stats.js uniquement (sans JS, tout reste visible). */
.stats[data-animate] .stat { opacity: 0; transform: translateY(18px); }
.stats[data-animate].is-visible .stat {
  opacity: 1; transform: translateY(0);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1),
              border-color .35s ease, box-shadow .35s ease;
}
.stats[data-animate].is-visible .stat:nth-child(2) { transition-delay: .09s; }
.stats[data-animate].is-visible .stat:nth-child(3) { transition-delay: .18s; }
.stats[data-animate].is-visible .stat:nth-child(4) { transition-delay: .27s; }
.stats[data-animate].is-visible .stat:hover { transform: translateY(-6px); transition-delay: 0s; }

/* ============================================================
   Testimonials
   ============================================================ */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.quote .stars { color: var(--gold); margin-bottom: 10px; letter-spacing: 2px; }
.quote p { font-style: italic; color: var(--ink); }
.quote .who { font-weight: 700; color: var(--navy); font-style: normal; margin-top: 12px; }
.quote .who span { display: block; font-weight: 500; color: var(--muted); font-size: .9rem; }

/* ============================================================
   En-tête des pages internes (page-hero)
   ============================================================ */
.page-hero {
  position: relative; overflow: hidden;
  padding: 74px 0 66px; text-align: center; color: #fff;
  background: linear-gradient(135deg, #0a1d31 0%, var(--navy) 48%, var(--navy-700) 100%);
}
.page-hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(620px 300px at 15% -10%, rgba(232,98,44,.28), transparent 62%),
    radial-gradient(560px 320px at 90% 120%, rgba(30,77,123,.5), transparent 66%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  color: #fff; margin: 10px auto 0; max-width: 16ch;
  font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.02em;
}
.page-hero .lead { color: rgba(255,255,255,.8); max-width: 620px; margin: 16px auto 0; }
.page-hero .eyebrow { color: var(--brand); }
.page-hero .actions { justify-content: center; }

/* Sommaire en pastilles cliquables. */
.page-hero__nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: 34px auto 0; max-width: 700px;
}
.page-hero__nav a {
  padding: 9px 17px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.9); font-size: .88rem; font-weight: 600;
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}
.page-hero__nav a:hover {
  background: var(--brand); border-color: var(--brand); color: #fff;
  text-decoration: none; transform: translateY(-2px);
}

/* Bandeau de réassurance. */
.page-hero__trust {
  list-style: none; margin: 30px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px;
}
.page-hero__trust li {
  display: flex; align-items: center; gap: 8px;
  font-size: .92rem; font-weight: 600; color: rgba(255,255,255,.85);
}
.page-hero__trust svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--brand); }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background: linear-gradient(120deg, var(--brand), var(--brand-600));
  color: #fff; border-radius: var(--radius-lg); padding: 46px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 560px; margin: 0 auto 22px; }

/* ============================================================
   Contact / devis form
   ============================================================ */
.devis-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.devis-form .full { grid-column: 1 / -1; }
.devis-form label { font-weight: 600; font-size: .9rem; color: var(--navy); display: block; margin-bottom: 6px; }
.devis-form input, .devis-form select, .devis-form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; background: #fff;
}
.devis-form textarea { min-height: 120px; resize: vertical; }
.form-note { padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.form-note.ok { background: #e7f7ec; color: #1a7f42; border: 1px solid #b7e6c6; }
.form-note.err { background: #fdeaea; color: #b02525; border: 1px solid #f3c2c2; }

/* Bouton flottant WhatsApp — présent sur toutes les pages. */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 26px rgba(37,211,102,.45);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: wa-pulse 2.4s ease-out infinite;
}
.wa-float:hover {
  transform: scale(1.08); text-decoration: none; color: #fff;
  box-shadow: 0 14px 32px rgba(37,211,102,.55);
}
.wa-float svg { width: 34px; height: 34px; }
@keyframes wa-pulse {
  0%   { box-shadow: 0 10px 26px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.45); }
  70%  { box-shadow: 0 10px 26px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 26px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }

/* Utilitaire : masque un élément sur mobile (téléphones / petites tablettes). */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}
@media (max-width: 600px) {
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .wa-float svg { width: 30px; height: 30px; }
}

/* ============================================================
   Page Contact — coordonnées + formulaire
   ============================================================ */
.contact-split { gap: 56px; }
.contact-info__list {
  margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px;
}
.contact-info__item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.contact-info__item:hover {
  border-color: rgba(232,98,44,.35); box-shadow: var(--shadow); transform: translateY(-2px);
}
.contact-info__icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand);
}
.contact-info__icon svg { width: 22px; height: 22px; }
.contact-info__label {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 2px;
}
.contact-info__value {
  font-size: 1.05rem; font-weight: 700; color: var(--navy); text-decoration: none;
}
a.contact-info__value:hover { color: var(--brand); text-decoration: none; }

.contact-band {
  margin-top: 26px; padding: 22px 24px; border-radius: 16px;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.contact-band strong { display: block; font-size: 1.08rem; }
.contact-band p { margin: 4px 0 0; color: rgba(255,255,255,.8); font-size: .94rem; }
.contact-band .btn { flex: 0 0 auto; }

.contact-form-card { position: relative; }

@media (max-width: 860px) {
  .contact-split { gap: 36px; }
  .contact-band { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 56px 0 26px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; }
/* Bandeau logo : pleine largeur, au-dessus des colonnes de liens. */
.footer-brand {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding-bottom: 26px; margin-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,.13);
}
/* Réseaux sociaux : pastilles rondes sous le logo. */
.footer-social { display: flex; list-style: none; padding: 0; margin: 0; gap: 12px; }
.site-footer .footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07);
  color: #fff;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.site-footer .footer-social a:hover {
  background: var(--brand); border-color: var(--brand);
  transform: translateY(-2px); text-decoration: none;
}
.footer-social svg { width: 19px; height: 19px; }
/* Sélecteur descendant nécessaire : .site-footer a impose sinon sa couleur. */
.site-footer .brand--footer { color: #fff; font-size: 1.6rem; gap: 13px; }
.site-footer .brand--footer:hover { color: #fff; text-decoration: none; }
.brand--footer .mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand--footer b { color: var(--brand); }

/* ---- Newsletter ---- */
.newsletter {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px 44px;
  align-items: center;
  padding: 28px 32px; margin-bottom: 38px;
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
}
.newsletter__intro h4 { margin: 0 0 6px; font-size: 1.15rem; }
.newsletter__intro p { margin: 0; font-size: .92rem; color: rgba(255,255,255,.68); }

/* Le champ et le bouton sur une ligne ; messages et mention en dessous. */
.newsletter__form { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.newsletter__form input[type="email"] {
  flex: 1 1 210px; min-width: 0;
  padding: 13px 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08); color: #fff;
  font-family: inherit; font-size: 1rem;
  transition: border-color .25s ease, background .25s ease;
}
.newsletter__form input[type="email"]::placeholder { color: rgba(255,255,255,.45); }
.newsletter__form input[type="email"]:focus {
  outline: none; border-color: var(--brand); background: rgba(255,255,255,.12);
}
.newsletter__form .btn { flex: 0 0 auto; padding: 13px 26px; }

.newsletter__msg,
.newsletter__note { flex: 1 0 100%; margin: 0; font-size: .84rem; }
.newsletter__msg { font-weight: 600; }
.newsletter__msg--ok { color: #7fe0a4; }
.newsletter__msg--err { color: #ffab8f; }
.newsletter__note { color: rgba(255,255,255,.5); }
.site-footer .newsletter__note a { color: rgba(255,255,255,.7); text-decoration: underline; }

.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }

/* Coordonnées : pictogrammes blancs tracés, à la place des émojis en couleur. */
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 11px; }
.contact-ico { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; color: #fff; }
/* Dans un bouton, l'icône suit la couleur du texte et reste centrée. */
.btn .contact-ico { width: 19px; height: 19px; margin-top: 0; color: inherit; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: center; text-align: center; flex-wrap: wrap; gap: 10px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  /* Empilé, le texte et le bouton du hero se centrent. */
  .hero .container > div { text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero .actions, .hero .trust { justify-content: center; }
  .grid-3, .steps, .stats .grid-4 { grid-template-columns: repeat(2,1fr); }
  /* Sur deux colonnes, le rail s'arrête en fin de rangée. */
  .steps { gap: 40px 26px; }
  .step:nth-child(2n)::after { display: none; }
  .split, .devis-form { grid-template-columns: 1fr; }
  /* Empilé, l'image repasse toujours au-dessus du texte. */
  .split--reverse .srv-detail__media { order: 0; }
  .srv-detail { margin-bottom: 52px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-template-columns: 1fr; gap: 20px; padding: 26px 22px; }
  /* Le bouton Contact cède sa place au hamburger ; le lien Contact
     réapparaît à l'intérieur du menu déplié. */
  .header-cta__contact { display: none; }
  .menu-toggle { display: flex; }
  .nav__contact { display: block; }

  /* Panneau déroulant sous la barre, ouvert par .nav-open sur l'en-tête.
     Fond navy comme le pied de page : le menu se détache nettement de la
     barre blanche et du contenu qui défile derrière. */
  .nav { display: none; }
  .nav-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 10px 20px 18px;
    background: var(--navy);
    box-shadow: 0 18px 38px rgba(15,41,66,.28);
    max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .nav-open .nav > a,
  .nav-open .nav .nav-trigger {
    padding: 13px 2px; border-bottom: 1px solid rgba(255,255,255,.13); font-size: 1.02rem;
  }
  /* Sélecteurs descendants nécessaires : .nav a impose sinon sa couleur. */
  .nav-open .nav a { color: rgba(255,255,255,.88); }
  .nav-open .nav a:hover { color: #fff; }
  .nav-open .nav > a:last-child { border-bottom: 0; }
  /* Empilé, « Toiture » reste un simple lien vers les prestations. */
  .nav-open .has-mega { display: block; align-self: stretch; }
  .nav-open .mega-panel { display: none; }
  .nav-open .nav-trigger { display: flex; justify-content: space-between; }
  /* Le Contact reste l'accent du menu. Terracotta pur sur navy tombe sous
     le seuil de contraste : on prend la variante claire du dégradé. */
  .nav-open .nav .nav__contact { color: #ff9057; font-weight: 700; }
  .nav-open .nav .nav__contact:hover { color: #ffa877; }

  .slider__slide { flex-basis: 50%; }
}
@media (max-width: 560px) {
  .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  /* Empilé, le contenu du footer se centre. */
  .footer-grid { text-align: center; }
  .footer-contact li { justify-content: center; }

  /* Sur une seule colonne, les cartes « causes » se centrent :
     pictogramme, titre et texte alignés au milieu. */
  .cause { text-align: center; }
  .cause__icon { margin-left: auto; margin-right: auto; }

  /* Empilé, le parcours devient une frise verticale : tuile à gauche,
     texte à droite, rail descendant d'une étape à l'autre. */
  .steps { grid-template-columns: 1fr; gap: 0; margin-top: 38px; }
  .step {
    display: grid; grid-template-columns: 60px 1fr;
    column-gap: 20px; padding: 0 0 32px;
  }
  .step__icon { grid-column: 1; grid-row: 1 / span 3; }
  .step__label, .step h3, .step p { grid-column: 2; }
  .step__label { margin: 2px 0 5px; }
  .step::after {
    top: 76px; bottom: -4px; left: 29px; right: auto;
    width: 2px; height: auto;
    background: linear-gradient(180deg, rgba(232,98,44,.5), rgba(232,98,44,.12));
  }
  .step:nth-child(2n)::after { display: block; }
  .step:last-child { padding-bottom: 0; }
  .step:last-child::after { display: none; }
  /* Les chiffres restent en 2x2 : plus lisible qu'une colonne unique. */
  .stats .grid-4 { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .stat { padding: 22px 16px 20px; }
  .stat .lbl { font-size: .72rem; letter-spacing: .07em; }
  .slider__slide { flex-basis: 100%; }
  /* Champ et bouton passent l'un sous l'autre plutôt que d'être écrasés. */
  .newsletter__form input[type="email"] { flex: 1 1 100%; }
  .newsletter__form .btn { width: 100%; justify-content: center; }
  .slider__nav { width: 42px; height: 42px; }
  .slider__controls { gap: 14px; }
  .slider__dot { width: 30px; }
  .hero-video { max-width: 320px; }
  .section { padding: 54px 0; }
  .cta-band { padding: 32px 20px; }
}

/* -------------------------------------------------------------------------
 * Contenu des pages statiques (page.php) : colonne de lecture lisible
 * pour mentions légales, politique de confidentialité, à propos, etc.
 * ---------------------------------------------------------------------- */
.entry {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink);
  font-size: 1.02rem;
}
.entry h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 1.8em; }
.entry h3 { font-size: 1.2rem; margin-top: 1.5em; }
.entry h2:first-child,
.entry h3:first-child { margin-top: 0; }
.entry p { margin: 0 0 1.1em; color: var(--muted); }
.entry ul,
.entry ol { margin: 0 0 1.3em; padding-left: 1.3em; color: var(--muted); }
.entry li { margin: 0 0 .5em; }
.entry ul { list-style: none; padding-left: 0; }
.entry ul li {
  position: relative; padding-left: 1.6em;
}
.entry ul li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
}
.entry a { color: var(--brand); text-decoration: underline; }
.entry strong { color: var(--navy); }
.entry hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.entry table { width: 100%; border-collapse: collapse; margin: 0 0 1.3em; }
.entry th,
.entry td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); }
.entry th { background: var(--bg-soft); color: var(--navy); }
