/* =========================================================
   Froid MULTI-SERVICES — Feuille de style principale
   HTML + CSS simple, sans framework, sans JavaScript.
   Pour changer les couleurs : modifier les variables ci-dessous.
   ========================================================= */

/* ---------- 1. Variables (couleurs, typo, espacements) ---------- */
:root {
  /* Bleus */
  --blue-950: #06182e;   /* bleu nuit (overlay, fonds sombres) */
  --blue-900: #0a2748;   /* bleu profond */
  --blue-700: #0b4f93;   /* bleu principal (boutons, titres) */
  --blue-600: #1466c4;   /* bleu survol */
  --cyan-400: #4cc3f0;   /* bleu clair / cyan : rappel du froid */
  --cyan-100: #dff3fc;   /* cyan très pâle (fonds d'icônes) */
  --blue-50:  #eef5fc;   /* fond bleu très léger */

  /* Neutres */
  --black:    #0b0f14;
  --text:     #2a323c;   /* gris anthracite pour les textes */
  --muted:    #5b6673;
  --line:     #e2e8f0;
  --gray-50:  #f5f7fa;   /* gris très clair pour les fonds */
  --white:    #ffffff;

  /* Typographie */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Divers */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(10, 39, 72, .06), 0 8px 24px rgba(10, 39, 72, .08);
  --shadow-lg: 0 18px 48px rgba(10, 39, 72, .16);
  --container: 1180px;
  --header-h: 76px;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px); /* les ancres ne passent pas sous le header */
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--blue-700); }

h1, h2, h3 {
  color: var(--black);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}

h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; }

/* Lien d'évitement (accessibilité clavier) */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--blue-700);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--cyan-400);
  outline-offset: 3px;
}

/* Conteneur centré */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Icônes SVG (sprite défini en haut de chaque page) */
.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 3. Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .icon { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }

/* Bleu profond */
.btn-primary { background: var(--blue-700); color: var(--white); box-shadow: 0 8px 20px rgba(11, 79, 147, .28); }
.btn-primary:hover { background: var(--blue-600); }

/* Noir avec accent cyan */
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark .icon { color: var(--cyan-400); }
.btn-dark:hover { background: #1b232d; }

/* Cyan (sur fonds sombres) */
.btn-cyan { background: var(--cyan-400); color: var(--blue-950); }
.btn-cyan:hover { background: #7fd6f6; }

/* Contour blanc (sur fonds sombres) */
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--blue-900); }

/* Contour bleu (sur fonds clairs) */
.btn-outline { border-color: var(--blue-700); color: var(--blue-700); background: var(--white); }
.btn-outline:hover { background: var(--blue-700); color: var(--white); }

.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
  max-width: 1480px; /* header plus large que le contenu pour loger le menu */
}

/* Logo texte */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--black);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-950));
  color: var(--cyan-400);
}
.logo-mark .icon { width: 22px; height: 22px; }
.logo span.logo-accent { color: var(--blue-700); }

/* Navigation */
.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 8px 8px;
  border-radius: 8px;
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.main-nav a:hover { color: var(--blue-700); background: var(--blue-50); }

.header-cta { min-height: 44px; padding: 10px 20px; font-size: .92rem; }

/* ---------- 5. Bouton fixe "Dépannage 24h/24" ---------- */
.sos-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 14px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(6, 24, 46, .35);
  border: 2px solid var(--cyan-400);
  transition: transform .2s, background-color .2s;
}
.sos-btn:hover { transform: translateY(-3px); background: var(--blue-900); }
.sos-btn .sos-dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cyan-400);
  color: var(--blue-950);
}
.sos-btn .icon { width: 18px; height: 18px; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Overlay bleu profond / noir */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(6, 24, 46, .94) 0%, rgba(10, 39, 72, .86) 45%, rgba(11, 79, 147, .55) 100%);
}
.hero-content { padding: 96px 24px 110px; }
.hero-inner { max-width: 760px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(76, 195, 240, .14);
  border: 1px solid rgba(76, 195, 240, .45);
  color: #bfeafb;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 22px;
}
.eyebrow .icon { width: 16px; height: 16px; color: var(--cyan-400); }

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--cyan-400); }
.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: rgba(255, 255, 255, .88);
  max-width: 660px;
  margin-bottom: 34px;
}
.hero-tags {
  margin: 34px 0 0;
  font-size: .92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .72);
  letter-spacing: .02em;
}

/* ---------- 7. Sections génériques ---------- */
.section { padding: 96px 0; }
.section-gray  { background: var(--gray-50); }
.section-blue  { background: var(--blue-50); }
.section-dark  { background: var(--blue-950); color: rgba(255, 255, 255, .85); }
.section-dark h2,
.section-dark h3 { color: var(--white); }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-dark .section-head p { color: rgba(255, 255, 255, .75); }

/* Petit sur-titre au-dessus des h2 */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--blue-700);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue-700), var(--cyan-400));
}
.section-dark .kicker { color: var(--cyan-400); }

/* Section prioritaire : bandeau "Prestation prioritaire" */
.priority-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--black);
  color: var(--cyan-400);
  font-size: .7rem;
  letter-spacing: .08em;
  vertical-align: middle;
}

/* ---------- 8. Grilles & cartes ---------- */
.grid { display: grid; gap: 24px; }
/* minmax(0, 1fr) = colonnes de largeur strictement égale */
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.grid-5 .card { padding: 24px 20px; }
.grid-5 .card p { hyphens: auto; }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #c9dcf1;
}
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Pictogramme dans les cartes */
.card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--cyan-100);
  color: var(--blue-700);
}
.card-icon .icon { width: 26px; height: 26px; }

/* Variante carte mise en avant (fond bleu profond) */
.card-accent {
  background: linear-gradient(150deg, var(--blue-900), var(--blue-950));
  border-color: transparent;
}
.card-accent h3 { color: var(--white); }
.card-accent p { color: rgba(255, 255, 255, .78); }
.card-accent .card-icon { background: rgba(76, 195, 240, .16); color: var(--cyan-400); }

/* Cartes sur fond sombre */
.section-dark .card {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .1);
  box-shadow: none;
}
.section-dark .card p { color: rgba(255, 255, 255, .72); }
.section-dark .card-icon { background: rgba(76, 195, 240, .14); color: var(--cyan-400); }
.section-dark .card:hover { border-color: rgba(76, 195, 240, .5); }

/* ---------- 9. Intro / Notre entreprise ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }

.media {
  position: relative;
}
.media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}
/* Badge flottant sur l'image */
.media-badge {
  position: absolute;
  left: -20px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-radius: 16px;
  background: var(--black);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.media-badge strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  color: var(--cyan-400);
}
.media-badge span { font-size: .9rem; font-weight: 600; line-height: 1.3; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  display: grid;
  gap: 12px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  color: var(--black);
}
.check-list .icon {
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: var(--blue-700);
  color: var(--white);
  stroke-width: 3;
  margin-top: 2px;
}

/* Encart astreinte */
.callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--blue-50);
  border-left: 4px solid var(--blue-700);
  margin-bottom: 28px;
}
.callout .icon { color: var(--blue-700); width: 28px; height: 28px; margin-top: 2px; }
.callout p { margin: 0; color: var(--text); font-weight: 500; }

/* ---------- 10. Chiffres clés ---------- */
.stats {
  background: linear-gradient(90deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  padding: 44px 0;
}
.stats-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.stats-list li {
  padding: 8px 22px;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, .16);
}
.stats-list li:first-child { border-left: 0; }
.stat-value {
  display: block;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
}
.stat-value small { font-size: .55em; color: var(--cyan-400); }
.stat-label {
  display: block;
  margin-top: 6px;
  font-size: .92rem;
  color: rgba(255, 255, 255, .78);
}

/* ---------- 11. Bandeau image + texte (climatisation, dépannage) ---------- */
.feature-img img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  max-height: 440px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}
.section-intro-row { margin-bottom: 48px; }

/* ---------- 12. Certifications ---------- */
.cert-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}
.cert {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 2px solid var(--blue-700);
  box-shadow: var(--shadow);
}
.cert-seal {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-950));
  color: var(--cyan-400);
  box-shadow: 0 0 0 6px var(--cyan-100);
}
.cert-seal .icon { width: 34px; height: 34px; }
.cert strong { display: block; font-size: 1.35rem; color: var(--black); line-height: 1.2; }
.cert span { color: var(--muted); font-size: .95rem; }

/* ---------- 13. Méthode (timeline) ---------- */
.timeline {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  counter-reset: step;
  position: relative;
}
/* Ligne horizontale reliant les étapes */
.timeline::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 7%;
  right: 7%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-700), var(--cyan-400));
  opacity: .4;
}
.timeline li {
  position: relative;
  counter-increment: step;
  text-align: center;
  font-weight: 700;
  font-size: .95rem;
  color: var(--black);
  line-height: 1.35;
}
.timeline li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue-700);
  color: var(--blue-700);
  font-size: 1.2rem;
  font-weight: 800;
  position: relative;
  box-shadow: 0 0 0 6px var(--blue-50);
}
.timeline li:last-child::before { background: var(--blue-700); color: var(--white); }
.method-note {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
}

/* ---------- 14. Réalisations ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .5s;
}
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 12px;
  background: linear-gradient(transparent, rgba(6, 24, 46, .85));
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
}
.gallery-note {
  margin: -24px 0 36px;
  font-size: .85rem;
  color: var(--muted);
}

/* Cartes texte compactes (réalisations) */
.mini-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--black);
  box-shadow: var(--shadow);
}
.mini-card .icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 10px;
  background: var(--cyan-100);
  color: var(--blue-700);
}

/* ---------- 15. Badges texte (références, fournisseurs, villes) ---------- */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.badges.center { justify-content: center; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--black);
  font-weight: 700;
  font-size: .95rem;
  box-shadow: 0 1px 2px rgba(10, 39, 72, .05);
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-400);
}
.badge-dark {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}
.badge-city { background: var(--white); }
.badge-city.main { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); }
.badge-city.main::before { background: var(--white); }

/* Deux colonnes références / fournisseurs */
.partners {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}
.partner-box {
  padding: 36px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--line);
}
.partner-box h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.partner-box > p { color: var(--muted); margin-bottom: 24px; }

/* ---------- 16. Avis clients (bloc sobre) ---------- */
.quote-box {
  max-width: 860px;
  margin: 0 auto;
  padding: 44px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}
.quote-box .stars {
  display: inline-flex;
  gap: 6px;
  color: var(--blue-700);
  margin-bottom: 18px;
}
.quote-box .stars .icon { width: 22px; height: 22px; }
.quote-box p { font-size: 1.15rem; color: var(--text); margin: 0; }

/* ---------- 17. Zone d'intervention ---------- */
.zone-deps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.dep {
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  text-align: center;
}
.dep strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  color: var(--cyan-400);
  margin-bottom: 6px;
}
.dep span { color: var(--white); font-weight: 700; }
.zone-cities-title {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}
.section-dark .badge {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  color: var(--white);
}
.section-dark .badge-city.main { background: var(--cyan-400); border-color: var(--cyan-400); color: var(--blue-950); }
.section-dark .badge-city.main::before { background: var(--blue-950); }
.zone-radius {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: rgba(255, 255, 255, .8);
  font-weight: 600;
}
.zone-radius .icon { color: var(--cyan-400); }

/* ---------- 18. Infos pratiques ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.contact-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.contact-card h3 .icon { color: var(--blue-700); }
.contact-card address { font-style: normal; line-height: 1.7; }
.contact-card .big-link {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--black);
  text-decoration: none;
  word-break: break-word;
}
.contact-card .big-link:hover { color: var(--blue-700); }
.contact-card .sub { display: block; margin-top: 6px; font-size: .92rem; color: var(--muted); }

.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .96rem;
}
.hours li:last-child { border-bottom: 0; }
.hours li span:last-child { font-weight: 700; color: var(--black); text-align: right; }
.hours li.oncall span:last-child { color: var(--blue-700); }

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 40px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 10%, rgba(76, 195, 240, .25), transparent 45%),
    linear-gradient(135deg, var(--blue-900), var(--blue-950));
  color: var(--white);
}
.cta-panel h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 6px; }
.cta-panel p { margin: 0; color: rgba(255, 255, 255, .78); }
.cta-panel .btn-group { justify-content: flex-end; max-width: 560px; }

/* ---------- 19. Footer ---------- */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, .7);
  padding: 72px 0 28px;
  font-size: .96rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.site-footer .logo { color: var(--white); margin-bottom: 18px; }
.site-footer .logo span.logo-accent { color: var(--cyan-400); }
.site-footer h3 {
  color: var(--white);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--cyan-400); }
.site-footer address { font-style: normal; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--cyan-400); margin-top: 4px; }

.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
}
.socials a:hover { border-color: var(--cyan-400); }
.socials .icon { width: 20px; height: 20px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .88rem;
}
.footer-bottom p { margin: 0; }
.credit strong { color: var(--white); }

/* ---------- 20. Page mentions légales ---------- */
.page-hero {
  position: relative;
  padding: 80px 0 64px;
  background:
    radial-gradient(circle at 85% 20%, rgba(76, 195, 240, .22), transparent 40%),
    linear-gradient(120deg, var(--blue-950), var(--blue-900));
  color: var(--white);
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 10px; }
.page-hero p { color: rgba(255, 255, 255, .78); margin: 0; }

.legal {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}
.legal-block {
  padding: 30px 32px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.legal-block h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.legal-block h2 .icon { color: var(--blue-700); }
.legal-block p:last-child,
.legal-block address:last-child { margin-bottom: 0; }
.legal-block address { font-style: normal; line-height: 1.8; }
.legal-back { text-align: center; margin-top: 16px; }

/* =========================================================
   21. RESPONSIVE
   ========================================================= */

/* Écrans moyens : la nav passe sous le logo */
@media (max-width: 1420px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0 16px;
    padding-top: 12px;
  }
  .header-cta { margin-left: auto; }
  .main-nav {
    order: 3;
    margin: 12px -24px 0;
    width: calc(100% + 48px);
    border-top: 1px solid var(--line);
  }
  /* Nav défilable horizontalement (sans JavaScript) */
  .main-nav ul {
    overflow-x: auto;
    scrollbar-width: none;
    padding: 8px 20px;
    gap: 2px;
  }
  .main-nav ul::-webkit-scrollbar { display: none; }
  html { scroll-padding-top: 140px; }
}

/* Tablette */
@media (max-width: 1024px) {
  .section { padding: 80px 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse > :first-child { order: 0; }
  .media { max-width: 640px; }
  .media-badge { left: 16px; }
  .feature-img img { max-height: 380px; }

  .stats-list { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .stats-list li:nth-child(4) { border-left: 0; }

  .timeline { grid-template-columns: repeat(4, 1fr); row-gap: 32px; }
  .timeline::before { display: none; }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: 1fr; }
  .zone-deps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid .contact-card:last-child { grid-column: 1 / -1; }
  .cta-panel { grid-template-columns: 1fr; }
  .cta-panel .btn-group { justify-content: flex-start; max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }

  .logo { font-size: 1rem; }
  .logo-mark { width: 36px; height: 36px; }
  .header-cta { padding: 8px 14px; min-height: 40px; font-size: .85rem; }
  .main-nav { margin-left: -16px; margin-right: -16px; width: calc(100% + 32px); }
  .main-nav ul { padding: 6px 12px; }

  .hero { min-height: auto; }
  .hero-content { padding: 64px 16px 80px; }
  .hero .btn-group .btn { width: 100%; }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 { grid-template-columns: 1fr; }
  .card { padding: 24px; }

  .stats { padding: 32px 0; }
  .stats-list { grid-template-columns: 1fr 1fr; }
  .stats-list li { border-left: 0; padding: 4px 8px; }
  .stats-list li:last-child { grid-column: 1 / -1; }

  .media-badge { left: 12px; bottom: 12px; padding: 12px 16px; }
  .media-badge strong { font-size: 1.6rem; }

  .cert-wrap { grid-template-columns: 1fr; }
  .cert { padding: 22px; }

  .timeline { grid-template-columns: 1fr; gap: 12px; }
  .timeline li {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
  }
  .timeline li::before { margin: 0; width: 44px; height: 44px; flex-shrink: 0; font-size: 1rem; }

  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery figcaption { font-size: .8rem; padding: 20px 10px 8px; }

  .partner-box { padding: 26px 22px; }
  .badge { font-size: .88rem; padding: 8px 14px; }
  .quote-box { padding: 30px 22px; }
  .zone-deps { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dep { padding: 16px 10px; }

  .contact-grid { grid-template-columns: 1fr; }
  .cta-panel { padding: 28px 22px; }
  .cta-panel .btn { width: 100%; }
  .btn-group .btn { flex: 1 1 auto; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer { padding-bottom: 96px; } /* espace pour le bouton fixe */
  .footer-bottom { flex-direction: column; }

  /* Bouton fixe plus compact et non intrusif */
  .sos-btn { right: 12px; bottom: 12px; padding: 8px 14px 8px 8px; font-size: .88rem; }
  .sos-btn .sos-dot { width: 30px; height: 30px; }

  .legal-block { padding: 24px 20px; }
}

/* Petits téléphones : logo et bouton du header sur une seule ligne */
@media (max-width: 480px) {
  .header-inner { flex-wrap: wrap; gap: 0 10px; }
  .logo-mark { display: none; }
  .logo { font-size: .98rem; }
  .header-cta { padding: 8px 12px; font-size: .8rem; }
}

/* Respect des préférences "réduire les animations" */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
