/* =========================================================================
   Languedoc Isolation — refonte 2026
   Stack: HTML5 sémantique + CSS moderne (custom properties, grid, flex).
   Aucun framework, aucune dépendance.
   ========================================================================= */

/* --------- Police de marque (Dechorian) ---------
   Fichiers reconstruits depuis l'OTF officiel : l'ancien woff (export
   FontForge de Muse) était rejeté par le sanitizer des navigateurs,
   la police ne s'affichait que sur les postes l'ayant installée. */
@font-face {
  font-family: "Dechorian";
  src: url("../fonts/dechorian.woff2") format("woff2"),
       url("../fonts/dechorian.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --------- Manrope (texte courant) — AUTO-HÉBERGÉE ---------
   Avant : chargée depuis le CDN Google Fonts → rendu variable selon l'ordi
   (repli system-ui = SF sur Mac, Segoe sur Windows…) si Google est lent/bloqué,
   et IP visiteur envoyée à Google (non conforme RGPD).
   Maintenant servie depuis le site : rendu identique partout, zéro requête tierce.
   Police variable : un seul fichier par sous-ensemble couvre les graisses 300→700. */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------- Design tokens --------- */
:root {
  /* Palette — vert sapin Languedoc + accent bordeaux (charte officielle) */
  --c-brand:        #0D4725;
  --c-brand-2:      #14633a;
  --c-brand-soft:   #E9F1EC;
  --c-accent:       #7A1F22;   /* bordeaux profond, pour fonds clairs */
  --c-accent-2:     #F0959A;   /* corail clair, lisible sur fonds verts sombres */
  --c-ink:          #14181A;
  --c-ink-2:        #3A4348;
  --c-muted:        #6B7480;
  --c-line:         #E6E2DA;
  --c-bg:           #FAF8F4;
  --c-surface:      #FFFFFF;
  --c-surface-2:    #F2EFE9;
  --c-overlay:      rgba(13, 24, 17, .55);

  /* Typo
     --f-display : Dechorian pour les titres (capitales par design, poids 400)
     --f-body    : Manrope pour le texte courant */
  --f-display: "Dechorian", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Échelles */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(20, 30, 25, .06);
  --shadow-md: 0 12px 28px -10px rgba(20, 30, 25, .18);
  --shadow-lg: 0 28px 60px -22px rgba(20, 30, 25, .35);

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --gap-cards: 20px;     /* écart standard entre les cards d'une même grille */

  --t-fast: .25s cubic-bezier(.2,.7,.2,1);
  --t-base: .45s cubic-bezier(.2,.7,.2,1);
  --t-slow: .8s cubic-bezier(.2,.7,.2,1);
}

/* --------- Reset doux --------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--f-display); /* Dechorian, poids 400 = pas de gras */
  font-weight: 400;
  letter-spacing: -.005em;
  line-height: 1.15;
  margin: 0;
  color: var(--c-brand); /* titres en vert sapin par défaut */
  /* Tout en petites capitales uniformes (glyphes minuscules de Dechorian),
     sans grande capitale d'attaque. */
  text-transform: lowercase;
}
/* Sur les sections sombres, les titres restent en blanc (héritage de la couleur du parent) */
.hero h1, .page-hero h1, .page-hero h2,
.aides h1, .aides h2, .aides h3,
.service-cta h1, .service-cta h2,
.service-card h3, .related-body strong,
.visite-domicile h3,
.site-footer h1, .site-footer h2, .site-footer h3 { color: #fff; }

/* --------- Containers & utilitaires --------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-brand);
  font-weight: 600;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor;
}

/* --------- Boutons --------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform var(--t-fast), box-shadow var(--t-fast),
              background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast);
  white-space: nowrap;
}
.btn-primary { background: var(--c-brand); color: #fff; }
.btn-primary:hover { background: var(--c-brand-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--c-brand); transform: translateY(-2px); }
.btn-outline { border-color: var(--c-line); color: var(--c-ink); background: var(--c-surface); }
.btn-outline:hover { border-color: var(--c-brand); color: var(--c-brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-accent { background: var(--c-accent); color: #fff; }
.btn-accent:hover { background: #5C1719; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn .arrow { transition: transform var(--t-fast); }
.btn:hover .arrow { transform: translateX(4px); }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background var(--t-fast), backdrop-filter var(--t-fast),
              box-shadow var(--t-fast), padding var(--t-fast);
}
.site-header::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.45), transparent);
  pointer-events: none;
  transition: opacity var(--t-fast);
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--c-line);
  padding: 12px 0;
}
.site-header.is-stuck::before { opacity: 0; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img {
  height: 38px; width: auto;
  opacity: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.18));
  transition: filter var(--t-fast);
}
/* Header sticky : on remplace le drop-shadow par le filtre de teinte vert sapin */
.is-stuck .brand img {
  filter:
    brightness(0) saturate(100%)
    invert(15%) sepia(38%) saturate(1543%) hue-rotate(110deg) brightness(95%) contrast(95%);
}

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  position: relative;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: #fff;
  border-radius: 999px;
  transition: color var(--t-fast);
}
.is-stuck .main-nav a { color: var(--c-ink); }
.main-nav a::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: 6px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-base);
}
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }

/* Dropdown "Prestations" */
.has-dropdown { position: relative; }
.has-dropdown > a { display: inline-flex; align-items: center; gap: 6px; }
.has-dropdown > a .caret { transition: transform var(--t-fast); }
.has-dropdown:hover > a .caret,
.has-dropdown.is-open > a .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(640px, 86vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 14px;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border: 1px solid var(--c-line);
  border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(20, 30, 25, .25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base), visibility 0s linear var(--t-base);
}
.dropdown::before {
  /* zone tampon pour ne pas refermer en passant la souris */
  content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px;
}
.has-dropdown.is-open .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}
/* Sur les écrans qui ont un vrai hover (desktop), on ouvre aussi au survol/focus */
@media (hover: hover) and (min-width: 769px) {
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0s;
  }
}

.dropdown a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--c-ink) !important;
  transition: background var(--t-fast), transform var(--t-fast);
}
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--c-bg); transform: translateX(2px); }

.dropdown .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--dot, var(--c-brand));
  flex-shrink: 0;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot, var(--c-brand)) 18%, transparent);
}
.dropdown a > span:last-child {
  display: flex; flex-direction: column; gap: 2px;
}
.dropdown strong { font-size: 14.5px; font-weight: 600; }
.dropdown em {
  font-style: normal; font-size: 12.5px; color: var(--c-muted); font-weight: 400;
}

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn-ghost { padding: 10px 20px; font-size: 14px; }
.is-stuck .header-cta .btn-ghost { border-color: var(--c-brand); color: var(--c-brand); }
.is-stuck .header-cta .btn-ghost:hover { background: var(--c-brand); color: #fff; }

/* Burger (mobile) */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid currentColor;
  color: #fff;
  align-items: center; justify-content: center;
  transition: color var(--t-fast), background var(--t-fast);
}
.is-stuck .menu-toggle { color: var(--c-ink); border-color: var(--c-line); }
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 160px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero > .container { width: 100%; }
.hero-media {
  position: absolute; inset: 0; z-index: -2;
}
.hero-media video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.25) 35%, rgba(0,0,0,.4) 100%);
}
.hero-content { max-width: 880px; }
.hero h1 {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.hero h1 em {
  font-style: normal;
  font-weight: 300;
  display: block;
  color: rgba(255, 255, 255, .85);
}
.hero .since {
  margin-top: 14px;
  font-size: clamp(15px, 1.3vw, 17px);
  letter-spacing: .04em;
  opacity: .8;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

.hero-scroll {
  position: absolute;
  bottom: 36px;
  right: var(--gutter);
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 10px;
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.hero-scroll svg { width: 14px; height: 22px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(6px);} }

/* =========================================================================
   SECTIONS génériques
   ========================================================================= */
section { padding: clamp(80px, 9vw, 140px) 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-top: 14px;
}
.section-head p { color: var(--c-ink-2); font-size: clamp(15.5px, 1.3vw, 17px); line-height: 1.55; margin-top: 16px; }

/* =========================================================================
   ABOUT
   ========================================================================= */
/* Habillages textures (papier vert / papier blanc, tile 600px) */
.tex-light {
  background-color: var(--c-surface);
  background-image: url("../img/texture-blanche.webp");
  background-repeat: repeat;
  background-size: 200px;
}
.tex-dark {
  background-color: var(--c-brand);
  background-image: url("../img/texture-verte.webp");
  background-repeat: repeat;
  background-size: 200px;
  color: #fff;
}

.about {
  background-color: var(--c-surface);
  background-image: url("../img/texture-blanche.webp");
  background-repeat: repeat;
  background-size: 200px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-text h2 { font-size: clamp(30px, 4vw, 48px); }
.about-text p { color: var(--c-ink-2); font-size: clamp(15.5px, 1.3vw, 17px); }
.about-text p + p { margin-top: 16px; }
/* Colonne droite "à propos" : photo + check-list dans un même bloc structuré */
.about-side {
  display: flex; flex-direction: column;
  gap: 24px;
}
.about-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 4px 0;
}
.about-features li {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(14.5px, 1.2vw, 15.5px);
  color: var(--c-ink);
  font-weight: 500;
}
.about-features li::before {
  content: "";
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--c-brand);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 12 10 17 19 7'/></svg>");
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-position: center;
}

.about-stats {
  display: flex; gap: 40px; margin-top: 40px;
  border-top: 1px solid var(--c-line);
  padding-top: 32px;
}
.about-stats > div strong {
  display: block;
  font-family: var(--f-body); /* nombres en Manrope, pas en Dechorian */
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 600;
  color: var(--c-brand);
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.about-stats > div span {
  font-size: 12.5px;
  color: var(--c-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}
.about-media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 1193 / 1246;
  box-shadow: var(--shadow-lg);
}
.about-media video, .about-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1);
}
.about-media:hover img { transform: scale(1.04); }

/* =========================================================================
   SERVICES — grille de cards (style portrait full-bleed, héritage 2026)
   Image cover + dégradé sombre bas + texte blanc inline.
   ========================================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-cards);
}
.service-card {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #F5F5F5;
  box-shadow: 7px 7px 25px rgba(60, 60, 60, .12);
  isolation: isolate;
  transition: transform var(--t-base), box-shadow var(--t-base);
  color: #fff;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 14px 18px 40px rgba(20, 30, 25, .25);
}

/* Image de fond — full bleed avec léger zoom au survol */
.service-card .bg {
  position: absolute; inset: 0; z-index: 0;
}
.service-card .bg img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.service-card:hover .bg img { transform: scale(1.06); }

/* Dégradé du bas qui révèle le texte */
.service-card::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom,
              rgba(0,0,0,0) 0%,
              rgba(0,0,0,0) 30%,
              rgba(13, 24, 17, .9) 72%,
              rgba(13, 24, 17, .98) 100%);
  transition: opacity var(--t-base);
}

/* Contenu textuel en bas */
.service-card .body {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px 24px 22px;
  gap: 5px;
}
.service-card h3 {
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -.01em;
}
.service-card .lead {
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, .85);
  margin: 0;
}
.service-card ul {
  margin-top: 10px;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .92);
  font-weight: 500;
  letter-spacing: .005em;
}
.service-card ul li { display: flex; align-items: center; gap: 8px; }
.service-card ul li::before {
  content: ""; width: 5px; height: 5px;
  border-radius: 50%; background: var(--c-accent);
  flex-shrink: 0;
}

/* Petite flèche d'action en haut à droite, révélée au hover */
.service-card .arrow-cta {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center;
  opacity: 0;
  transform: translateY(-6px) scale(.92);
  transition: opacity var(--t-base), transform var(--t-base), background var(--t-fast);
}
.service-card:hover .arrow-cta {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.service-card .arrow-cta:hover { background: var(--c-accent); }
.service-card .arrow-cta svg { color: #fff; transition: color var(--t-fast); }
.service-card .arrow-cta:hover svg { color: var(--c-ink); }

/* =========================================================================
   AIDES — cartouche financière
   ========================================================================= */
.aides {
  background-color: var(--c-brand);
  background-image:
    radial-gradient(circle at 80% 30%, rgba(183, 66, 74, .25), transparent 55%),
    url("../img/texture-verte.webp");
  background-repeat: no-repeat, repeat;
  background-size: cover, 200px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.aides .container { position: relative; z-index: 1; }
.aides .section-head h2 { color: #fff; }
.aides .section-head p { color: rgba(255,255,255,.85); }
.aides .eyebrow { color: var(--c-accent-2); font-weight: 700; }
.aides-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin: -24px 0 48px;
}

.aides-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-cards);
}
.aides-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.aides-card:hover { transform: translateY(-3px); }
.aides-card:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); }
.aides-card .ico {
  width: 48px; height: 48px; flex: 0 0 48px;
  border-radius: 12px; background: rgba(255,255,255,.12);
  display: grid; place-items: center;
}
.aides-card strong { font-size: 16.5px; display: block; margin-bottom: 4px; font-weight: 600; }
.aides-card span { color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.45; }
.aides-widget {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 28px;
  min-height: 360px;
  color: var(--c-ink);
  box-shadow: var(--shadow-lg);
}

/* =========================================================================
   AGENCES
   ========================================================================= */
/* Section Implantation : carte d'Occitanie en fond très atténuée */
.agences-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.agences-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/map-occitanie.webp") no-repeat center / contain;
  opacity: .08;
  pointer-events: none;
}

/* Départements desservis — texte courant, sans bloc */
.depts-strip {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 6px 12px;
  margin: 6px 0 12px;
  font-size: clamp(15.5px, 1.3vw, 17px);
  color: var(--c-ink-2);
  line-height: 1.55;
}
.depts-label { font-weight: 400; }
.depts-list {
  display: inline-flex; flex-wrap: wrap; align-items: baseline;
  gap: 0 10px;
}
.depts-list li {
  font-weight: 700;
  color: var(--c-brand);
  position: relative;
  padding-right: 10px;
}
.depts-list li:not(:last-child)::after {
  content: "•";
  position: absolute; right: 0;
  color: var(--c-accent);
  font-weight: 400;
}
.agences-note {
  font-size: 15.5px;
  color: var(--c-ink-2);
  margin: 0 0 36px;
  max-width: 720px;
  line-height: 1.55;
}

.agences-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-cards);
}
.agence-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.agence-card:hover { transform: translateY(-3px); border-color: var(--c-brand); box-shadow: var(--shadow-md); }
.agence-card .city {
  font-family: var(--f-display);
  font-size: clamp(18px, 1.55vw, 21px);
  font-weight: 400;
  color: var(--c-brand);
  letter-spacing: -.015em;
  white-space: nowrap;
  /* Dechorian sans majuscule d'attaque, comme les autres titres */
  text-transform: lowercase;
}
.agence-card address {
  font-style: normal; color: var(--c-ink-2); font-size: 15.5px; line-height: 1.55;
}
.agence-card a[href^="tel:"] {
  font-size: 15.5px;
  padding-top: 6px;
  font-weight: 600; color: var(--c-ink);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color var(--t-fast);
}
/* Seul le 1er numéro pousse le bloc téléphone en bas de la card */
.agence-card a[href^="tel:"]:first-of-type { margin-top: auto; }
.agence-card a[href^="tel:"]:hover { color: var(--c-brand); }

/* =========================================================================
   AVIS / CERTIFS
   ========================================================================= */
/* =========================================================================
   CERTIFICATIONS — bandeau discret (intégré entre 2 sections)
   ========================================================================= */
.certifs-strip {
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 22px 0;
}
.certifs-strip .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 28px;
}
.certifs-label {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-muted);
}
.certifs-strip-list {
  display: flex; align-items: center; gap: 36px;
}
.certifs-strip-list img {
  width: auto;
  opacity: .92;
  transition: opacity var(--t-fast);
}
.certifs-strip-list img:hover { opacity: 1; }
.certifs-strip-list li:nth-child(1) img { height: 64px; } /* Qualibat — portrait, plus de hauteur pour équilibrer */
.certifs-strip-list li:nth-child(2) img,
.certifs-strip-list li:nth-child(3) img { height: 46px; } /* Qualibois / QualiPV — paysage */

@media (max-width: 768px) {
  .certifs-strip .container { justify-content: center; flex-direction: column; gap: 18px; }
  .certifs-strip-list { gap: 24px; flex-wrap: wrap; justify-content: center; }
  .certifs-strip-list li:nth-child(1) img { height: 56px; }
  .certifs-strip-list li:nth-child(2) img,
  .certifs-strip-list li:nth-child(3) img { height: 40px; }
}

.reviews-widget { background: #fff; border-radius: var(--r-xl); padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--c-line); min-height: 320px; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact {
  background-color: var(--c-surface);
  background-image: url("../img/texture-blanche.webp");
  background-repeat: repeat;
  background-size: 200px;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; }
.contact-info p { color: var(--c-ink-2); font-size: clamp(15.5px, 1.3vw, 17px); }
.contact-info .info-list { margin-top: 32px; display: grid; gap: 18px; }
.contact-info .info-list a, .contact-info .info-list address {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 22px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  font-style: normal;
  color: var(--c-ink);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.contact-info .info-list a:hover { border-color: var(--c-brand); }
.contact-info .info-list .ico { color: var(--c-brand); flex-shrink: 0; }
.contact-info .socials { display: flex; gap: 18px; margin-top: 28px; align-items: center; }
.contact-info .socials a {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-brand);
  transition: transform var(--t-fast), color var(--t-fast), opacity var(--t-fast);
}
.contact-info .socials a svg { width: 24px; height: 24px; }
.contact-info .socials a:hover { transform: translateY(-2px); color: var(--c-brand-2); }
.contact-info .socials img { width: 22px; height: 22px; }

.contact-form-wrap { background: transparent; border: 0; border-radius: 0; padding: 0; min-height: 480px; }

/* Carte d'Occitanie sous les infos siège, à gauche du formulaire */
.contact-map {
  margin: 36px 0 0;
  padding: 0;
}
.contact-map img {
  width: 100%;
  max-width: 420px;
  height: auto;
  opacity: .9;
  filter: saturate(.95);
}

/* =========================================================================
   INSTAGRAM FEED — bandeau juste avant le footer
   ========================================================================= */
/* Full-bleed avant le footer, collé sans marge basse */
.instagram-feed {
  background: var(--c-bg);
  padding: clamp(70px, 7vw, 100px) 0 0;
  margin-bottom: 0;
}
.instagram-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 32px;
}
.instagram-head h2 {
  flex: 1 1 auto;
  font-size: clamp(28px, 3.2vw, 40px);
  margin-top: 8px;
}
.instagram-head .eyebrow { width: 100%; }
.instagram-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-brand);
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: color var(--t-fast), gap var(--t-fast);
}
.instagram-link:hover { color: var(--c-brand-2); gap: 12px; }

/* Widget full-bleed (toute la largeur du navigateur, pas de container) */
.instagram-widget {
  width: 100%;
  min-height: 200px;
  margin-bottom: 0;
}

/* =========================================================================
   FOOTER — minimal et structuré, esprit legacy
   ========================================================================= */
.site-footer {
  background-color: var(--c-brand);
  background-image: url("../img/texture-verte.webp");
  background-repeat: repeat;
  background-size: 200px;
  color: rgba(255,255,255,.82);
  padding: 72px 0 28px;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.18), rgba(0,0,0,.35));
  pointer-events: none;
}
.site-footer > .container { position: relative; z-index: 1; }
.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

/* Les 3 colonnes : même hauteur, premier élément collé en haut, dernier en bas */
.footer-brand-block,
.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Colonne 1 — logo + socials */
.footer-brand-block { gap: 22px; }
.footer-brand img { height: 88px; width: auto; }
.footer-socials { display: flex; gap: 18px; align-items: center; }
.footer-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .9);
  transition: transform var(--t-fast), opacity var(--t-fast), color var(--t-fast);
}
.footer-socials a svg { width: 24px; height: 24px; }
.footer-socials a:hover {
  color: #fff;
  transform: translateY(-2px);
  opacity: 1;
}

/* Colonne 2 — nav verticale (premier lien aligné avec le top du logo,
   dernier lien aligné avec le bas des socials) */
.footer-nav {
  font-size: 15px; font-weight: 500;
}
.footer-nav a {
  position: relative;
  padding: 2px 0;
  color: rgba(255, 255, 255, .82);
  transition: color var(--t-fast), padding-left var(--t-fast);
  width: fit-content;
}
.footer-nav a::before {
  content: ""; position: absolute; left: -16px; top: 50%;
  width: 0; height: 1px; background: currentColor;
  transition: width var(--t-fast);
}
.footer-nav a:hover { color: #fff; padding-left: 14px; }
.footer-nav a:hover::before { width: 10px; }

/* Colonne 3 — contact (téléphone en gros, en bas comme le legacy) */
.footer-contact {
  text-align: right;
  align-items: flex-end;
}
.footer-contact-top { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.footer-label {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--c-accent-2);
  margin-bottom: 4px;
}
.footer-contact address {
  font-style: normal;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .78);
}
.footer-contact .phone {
  color: #fff;
  font-family: var(--f-body); /* numéro en Manrope, pas en Dechorian */
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -.005em;
  transition: color var(--t-fast);
  align-self: flex-end;
}
.footer-contact .phone:hover { color: var(--c-accent-2); }

.footer-bottom {
  padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  font-size: 12.5px; color: rgba(255,255,255,.5);
}
.footer-bottom a { display: inline-flex; align-items: center; gap: 8px; transition: opacity var(--t-fast); }
.footer-bottom .by-paper34 img { height: 13px; opacity: .65; transition: opacity var(--t-fast); }
.footer-bottom .by-paper34:hover img { opacity: 1; }

/* =========================================================================
   PAGES SERVICE — header
   ========================================================================= */
.page-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  padding: 140px 0 80px;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
/* Voile sombre plus prononcé pour que l'intro reste lisible */
.page-hero::before {
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.35));
}
/* Intro en blanc directement sur la photo, juste sous le lead */
.page-hero-intro {
  margin-top: 22px;
  max-width: 720px;
}
.page-hero-intro p {
  font-size: clamp(15.5px, 1.3vw, 17px);
  color: rgba(255, 255, 255, .9);
  line-height: 1.6;
  margin: 0;
}
.page-hero-intro p + p { margin-top: 12px; }
/* Container colonne : breadcrumb en haut, titre+lead en bas, espace vide au milieu */
.page-hero .container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.page-hero .breadcrumb {
  margin: 0;
  /* alignement à gauche, identique au reste du contenu */
}
.page-hero-title { display: block; }
.page-hero h1 { margin: 0; }
.page-hero .lead { margin-top: 14px; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.2));
}
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero h1 { font-size: clamp(38px, 5vw, 60px); max-width: 880px; }
.page-hero .lead { margin-top: 18px; font-size: clamp(16px, 1.4vw, 18px); max-width: 720px; opacity: .9; line-height: 1.55; }
.page-hero .breadcrumb {
  display: flex; gap: 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 20px; opacity: .8;
}
.page-hero .breadcrumb a { transition: opacity var(--t-fast); opacity: .9; }
.page-hero .breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.page-hero .breadcrumb span { opacity: .6; }

/* =========================================================================
   PAGE SERVICE — sections internes
   ========================================================================= */
.service-intro {
  padding: clamp(48px, 5vw, 72px) 0;
  background-color: var(--c-surface);
  background-image: url("../img/texture-blanche.webp");
  background-repeat: repeat;
  background-size: 200px;
}
/* Container reste à la largeur globale (1240 px), comme toutes les autres sections */
.service-intro p {
  font-size: clamp(15.5px, 1.3vw, 17.5px);
  color: var(--c-ink-2);
  line-height: 1.6;
  max-width: 760px; /* lecture confortable, alignée à gauche */
}
.service-intro p + p { margin-top: 14px; }

/* Bandeau qualifications spécifiques au métier (entre intro et blocs) */
.page-qualifs {
  padding: 28px 0;
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.page-qualifs .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.page-qualifs-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-muted);
  white-space: nowrap;
}
.qualifs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0; padding: 0; list-style: none;
}
.qualifs-list li {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  background: var(--c-brand-soft);
  border: 1px solid color-mix(in srgb, var(--c-brand) 18%, transparent);
  border-radius: 999px;
  font-size: 13.5px;
}
.qualif-code {
  font-weight: 700;
  color: var(--c-brand);
  letter-spacing: -.005em;
}
.qualif-label {
  font-weight: 500;
  color: var(--c-ink-2);
}

@media (max-width: 768px) {
  .page-qualifs { padding: 22px 0; }
  .page-qualifs .container { flex-direction: column; align-items: flex-start; gap: 14px; }
  .qualifs-list li { font-size: 12.5px; padding: 6px 12px; }
}

/* Schéma illustratif (placé entre intro/qualifs et les blocs) */
.page-illustration {
  padding: clamp(48px, 5vw, 72px) 0 0;
  background: var(--c-bg);
  text-align: center;
}
.page-illustration .container { max-width: 1100px; }
.page-illustration-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 28px;
}
.page-illustration img {
  width: 100%;
  height: auto;
  max-width: 1000px;
  margin: 0 auto;
  display: block;
}

/* Sous-services : alternance image / texte (esprit éditorial du legacy) */
.service-blocks {
  padding: clamp(70px, 8vw, 110px) 0;
  background: var(--c-bg);
}
.service-blocks-grid {
  display: flex; flex-direction: column;
  gap: clamp(48px, 6vw, 80px);
}

/* Bloc avec image : 2 colonnes côte à côte, alternance gauche/droite */
.service-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.service-block.has-image {
  grid-template-columns: 1fr 1fr;
}
/* Inversion sur les blocs pairs (2, 4...) — image à droite */
.service-block.has-image:nth-child(even) .service-block-media { order: 2; }

.service-block-media {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
}
.service-block-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.service-block.has-image:hover .service-block-media img { transform: scale(1.04); }

/* Bloc texte */
.service-block-body {
  display: flex; flex-direction: column; gap: 14px;
}
.service-block .num {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-brand);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.service-block h3 {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 400;
  line-height: 1.15;
}
.service-block p { color: var(--c-ink-2); font-size: clamp(15.5px, 1.4vw, 17px); line-height: 1.6; }
.service-block .list-label {
  font-weight: 600;
  color: var(--c-ink);
  font-size: 14.5px;
  letter-spacing: .005em;
  margin-top: 4px;
}
.service-block ul {
  margin-top: 2px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 15px; color: var(--c-ink);
}
.service-block ul li {
  display: flex; gap: 12px;
  padding-left: 0;
  line-height: 1.55;
}
.service-block ul li::before {
  content: "";
  flex-shrink: 0;
  width: 14px; height: 14px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--c-brand-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D4725' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 12 10 17 19 7'/></svg>");
  background-size: 9px 9px;
  background-repeat: no-repeat;
  background-position: center;
}
/* Puce « spéciale » — sert au flocage coupe-feu : protection passive incendie,
   nature distincte de l'isolation thermique. On la détache des solutions
   thermiques par un tiret bordeaux et un fin séparateur pointillé. */
.service-block ul li.li-special {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--c-line);
  font-weight: 600;
  color: var(--c-accent);
}
.service-block ul li.li-special::before {
  border-radius: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A1F22' stroke-width='3' stroke-linecap='round'><line x1='4' y1='12' x2='20' y2='12'/></svg>");
  background-size: 14px 14px;
  margin-top: 9px;
}
.service-block .objective {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
  color: var(--c-brand);
  font-weight: 500;
  font-size: 15px;
}
.service-block .objective strong { font-weight: 700; }

/* Adresse mise en avant dans un bloc (ex. showroom Incandescent) */
.service-block .block-address {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 6px;
  font-style: normal;
  font-size: 15px; line-height: 1.5; color: var(--c-ink);
}
.service-block .block-address svg { color: var(--c-brand); flex-shrink: 0; margin-top: 1px; }
.service-block .block-address strong { color: var(--c-brand); font-weight: 700; }

/* Logos de marques (Incandescent + Seguin sur le bloc Chauffage)
   Sur fond clair, le blanc des SVG disparaît : on place les logos
   sur un panneau sombre pour préserver leurs couleurs originales. */
.block-brands {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 22px;
  padding: 18px 24px;
  background: var(--c-brand);
  background-image: url("../img/texture-verte.webp");
  background-repeat: repeat;
  background-size: 200px;
  border-radius: var(--r-md);
}
.block-brands img {
  height: 38px; width: auto;
  opacity: 1;
}
@media (max-width: 540px) {
  .block-brands { gap: 18px; padding: 14px 18px; justify-content: center; }
  .block-brands img { height: 32px; }
}

/* Bloc sans image — encadré sobre, pleine largeur */
.service-block:not(.has-image) {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  padding: clamp(32px, 4vw, 48px);
}

/* Conclusion — point final, pas de numérotation */
.service-block.is-conclusion {
  margin-top: clamp(20px, 3vw, 40px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--c-line);
}
.service-block.is-conclusion:not(.has-image) {
  border: none;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}
.service-block.is-conclusion h3 {
  font-size: clamp(22px, 2vw, 28px);
}
.service-block.is-conclusion .list-label { display: none; }
.service-block.is-conclusion ul { display: none; }
.service-block.is-conclusion .objective {
  margin-top: 12px;
  padding-top: 12px;
}
.service-block.is-conclusion p {
  font-size: clamp(16px, 1.4vw, 18px);
  max-width: 760px;
}

/* DÉCOUVRIR AUSSI — navigation rapide vers les autres métiers */
/* =========================================================================
   GALERIE DES POSES — carrousel horizontal défilant
   ========================================================================= */
.galerie {
  padding: clamp(60px, 7vw, 100px) 0 clamp(50px, 6vw, 80px);
  background: var(--c-surface);
  overflow: hidden;
}
.galerie .section-head { margin-bottom: 36px; }
.galerie-track {
  display: flex;
  gap: 18px;
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;            /* Firefox */
  cursor: grab;
}
.galerie-track::-webkit-scrollbar { display: none; }  /* Safari/Chrome */
.galerie-track.is-grabbing { cursor: grabbing; scroll-snap-type: none; }
.galerie-item {
  flex: 0 0 auto;
  position: relative;
  width: clamp(260px, 30vw, 380px);
  aspect-ratio: 3/4;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  scroll-snap-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base);
  isolation: isolate;
}
.galerie-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.galerie-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.galerie-item:hover img { transform: scale(1.05); }
/* Dégradé + légende en bas */
.galerie-item figcaption {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(to top, rgba(13,24,17,.82) 0%, rgba(13,24,17,.45) 18%, transparent 38%);
}
.galerie-item figcaption strong {
  font-size: 16px; font-weight: 700; letter-spacing: -.005em;
}
.galerie-item figcaption span {
  font-size: 13px; color: var(--c-accent-2); font-weight: 600;
  letter-spacing: .04em; margin-top: 2px;
}

@media (max-width: 768px) {
  .galerie-item { width: 72vw; }
}

.related-services {
  padding: clamp(60px, 7vw, 100px) 0;
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
}
.related-services .section-head { margin-bottom: 36px; }
.related-services .section-head h2 { font-size: clamp(26px, 3vw, 36px); }

.related-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.related-card {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  isolation: isolate;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base);
  color: #fff;
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Image plein bleed */
.related-img {
  position: absolute; inset: 0; z-index: 0;
}
.related-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.related-card:hover .related-img img { transform: scale(1.06); }

/* Dégradé bas pour la lisibilité */
.related-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom,
              rgba(0,0,0,0) 0%,
              rgba(0,0,0,0) 35%,
              rgba(13, 24, 17, .92) 80%,
              rgba(13, 24, 17, .98) 100%);
}

/* Texte blanc en bas — ligne unique, dot et flèche alignés au centre du texte */
.related-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 18px 20px;
  font-size: 15px; font-weight: 600;
}
.related-body .related-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--dot, var(--c-brand));
  flex-shrink: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot, var(--c-brand)) 35%, transparent);
}
.related-body strong { flex: 1; font-weight: 700; color: #fff; letter-spacing: -.005em; }
.related-body .arrow {
  color: #fff;
  opacity: .85;
  transition: transform var(--t-fast), opacity var(--t-fast);
  flex-shrink: 0;
}
.related-card:hover .arrow { transform: translateX(4px); opacity: 1; }

@media (max-width: 1024px) {
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* CTA d'appel en fin de page */
.service-cta {
  background-color: var(--c-brand);
  background-image: url("../img/texture-verte.webp");
  background-repeat: repeat;
  background-size: 200px;
  color: #fff;
  padding: clamp(60px, 7vw, 90px) 0;
  text-align: center;
}
.service-cta h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  margin-bottom: 14px;
}
.service-cta p {
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: clamp(15.5px, 1.4vw, 17px);
  color: rgba(255, 255, 255, .85);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .service-block.has-image { grid-template-columns: 1fr; }
  .service-block.has-image:nth-child(even) .service-block-media { order: 0; }
  .service-block-media { aspect-ratio: 16/10; }
}

/* Page contact */
.page-contact { padding-top: 80px; }

/* Bandeau vert haut de page contact (juste sous le header) */
.contact-promise {
  background-color: var(--c-brand);
  background-image: url("../img/texture-verte.webp");
  background-repeat: repeat;
  background-size: 200px;
  color: #fff;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.contact-promise .container {
  display: flex;
  justify-content: center;
}
.contact-promise ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  margin: 0; padding: 0; list-style: none;
}
.contact-promise li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .005em;
}
.contact-promise svg { color: var(--c-accent-2); flex-shrink: 0; stroke-width: 2.6; }

/* Card "Visite à domicile" — vert sapin avec coins arrondis */
.visite-domicile {
  margin-top: 32px;
  padding: 24px 26px;
  background-color: var(--c-brand);
  background-image: url("../img/texture-verte.webp");
  background-repeat: repeat;
  background-size: 220px;
  color: #fff;
  border-radius: var(--r-lg);
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.visite-domicile-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  display: grid; place-items: center;
  color: var(--c-accent-2);
}
.visite-domicile h3 {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -.005em;
  margin: 0 0 6px;
  color: #fff;
}
.visite-domicile p {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
  margin: 0;
}

@media (max-width: 768px) {
  .contact-promise { padding: 12px 0; }
  .contact-promise ul { gap: 6px 0; flex-direction: column; align-items: flex-start; }
  .contact-promise li { font-size: 13.5px; }
  .visite-domicile { padding: 22px 20px; gap: 14px; }
  .visite-domicile-icon { width: 40px; height: 40px; }
  .visite-domicile-icon svg { width: 22px; height: 22px; }
}

/* Hero contact : titre + intro, fond crème simple */
.contact-hero {
  padding: clamp(60px, 7vw, 100px) 0 clamp(40px, 5vw, 60px);
  background: var(--c-bg);
}
.contact-hero-inner { max-width: 760px; }
.contact-hero h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 400;
  margin-top: 14px;
  color: var(--c-brand);
  letter-spacing: -.015em;
}
.contact-hero .lead {
  margin-top: 22px;
}
.contact-hero .lead p {
  font-size: clamp(16.5px, 1.5vw, 19px);
  color: var(--c-ink);
  line-height: 1.55;
  margin: 0;
}
.contact-hero .lead p + p { margin-top: 12px; }

/* Section "Les agences près de vous" */
.contact-agences {
  padding: clamp(50px, 6vw, 80px) 0 clamp(60px, 7vw, 90px);
  background: var(--c-bg);
}

/* Section formulaire + infos */
.contact-page {
  background-color: var(--c-surface);
  background-image: url("../img/texture-blanche.webp");
  background-repeat: repeat;
  background-size: 200px;
  padding: clamp(60px, 7vw, 90px) 0 clamp(70px, 8vw, 110px);
}
.contact-page .contact-info h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-top: 12px;
}

/* Reveal au scroll */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--t-base), transform .9s var(--t-base); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .agences-grid { grid-template-columns: repeat(2, 1fr); }
  .aides-cards { grid-template-columns: repeat(2, 1fr); }
  /* Footer : on passe directement en colonne unique sous 1024px (logo, contact, nav empilés) */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
    text-align: center;
    justify-items: center;
  }
  .footer-brand-block,
  .footer-nav,
  .footer-contact {
    height: auto;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .footer-brand-block { order: 1; gap: 18px; }
  .footer-contact { order: 2; }
  .footer-contact-top { align-items: center; }
  .footer-contact .phone { align-self: center; }
  .footer-nav {
    order: 3;
    flex-direction: column; gap: 6px;
  }
  .footer-nav a { width: auto; padding: 6px 0; }
  .footer-nav a:hover { padding-left: 0; }
  .footer-nav a:hover::before { width: 0; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { aspect-ratio: 16/10; }
}

/* Le bloc footer dans le mobile menu (hidden desktop) */
.main-nav-foot { display: none; }

@media (max-width: 768px) {
  /* ===== TYPO + TAP TARGETS ===== */
  .btn { padding: 14px 24px; font-size: 15px; min-height: 46px; }
  .container { padding-inline: 20px; }

  /* ===== HERO ===== */
  .hero { padding: 100px 0 120px; }
  .hero h1 { font-size: clamp(38px, 9vw, 52px); }
  .hero .since { margin-top: 12px; }
  .hero-actions { gap: 10px; }
  .hero-scroll { display: none; }

  /* ===== Sections génériques ===== */
  section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: clamp(28px, 7vw, 36px); }

  /* ===== À propos ===== */
  .about-text h2 { font-size: clamp(28px, 7vw, 36px); }
  .about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding-top: 24px;
    margin-top: 28px;
  }
  .about-stats > div strong {
    font-size: clamp(24px, 6.5vw, 30px);
    margin-bottom: 4px;
  }
  .about-stats > div span { font-size: 11px; letter-spacing: .06em; }
  .about-features li { font-size: 14.5px; }

  /* ===== Bandeau certifs ===== */
  .certifs-strip .container { justify-content: center; flex-direction: column; gap: 16px; text-align: center; }
  .certifs-strip-list { gap: 22px; flex-wrap: wrap; justify-content: center; }
  .certifs-strip-list li:nth-child(1) img { height: 52px; }
  .certifs-strip-list li:nth-child(2) img,
  .certifs-strip-list li:nth-child(3) img { height: 38px; }

  /* ===== Cards prestations ===== */
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { aspect-ratio: 16 / 11; }
  .service-card .body { padding: 22px; }
  .service-card h3 { font-size: 22px; }
  .service-card .lead { font-size: 15px; }
  .service-card ul { font-size: 14px; }

  /* ===== Aides ===== */
  .aides-cards { grid-template-columns: 1fr; }
  .aides-card { padding: 20px; }
  .aides-card strong { font-size: 16px; }
  .aides-card span { font-size: 13.5px; }
  .aides-actions { flex-direction: column; align-items: stretch; }
  .aides-actions .btn { justify-content: center; }

  /* ===== Implantation ===== */
  .agences-grid { grid-template-columns: 1fr; }
  .agence-card .city { font-size: 19px; }
  .depts-strip { font-size: 15.5px; }

  /* ===== Contact ===== */
  .contact-hero { padding-top: 80px; }
  .contact-hero h1 { font-size: clamp(36px, 9vw, 48px); }
  .contact-hero .lead p { font-size: clamp(15.5px, 4.2vw, 17px); }
  .contact-grid { gap: 36px; }

  /* ===== Pages services ===== */
  .page-hero { min-height: auto; padding: 120px 0 56px; }
  .page-hero h1 { font-size: clamp(32px, 8vw, 44px); }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .related-card { aspect-ratio: 1 / 1; } /* carré sur mobile */
  .related-body { padding: 14px 16px; font-size: 14px; }
  .related-body strong { font-size: 14px; }
  .service-block-media { aspect-ratio: 16/10; }

  /* ===== HEADER mobile ===== */
  .header-cta .btn { display: none; }
  .menu-toggle { display: inline-flex; }

  /* ===== MENU BURGER FULLSCREEN ===== */
  .main-nav {
    --menu-pad: 24px;
    position: fixed;
    inset: 0;
    z-index: 90;
    background-color: var(--c-brand);
    background-image: url("../img/texture-verte.webp");
    background-repeat: repeat;
    background-size: 220px;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 96px var(--menu-pad) 40px;

    transform: translateY(-100%);
    visibility: hidden;
    transition: transform .42s cubic-bezier(.2,.7,.2,1), visibility 0s linear .42s;

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .menu-open .main-nav {
    transform: translateY(0);
    visibility: visible;
    transition: transform .42s cubic-bezier(.2,.7,.2,1), visibility 0s;
  }

  /* Items du menu */
  .main-nav > a,
  .main-nav .has-dropdown > a {
    color: #fff !important;
    font-size: 22px;
    font-weight: 500;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    width: 100%;
    border-radius: 0;
  }
  .main-nav a::after { display: none; }
  .main-nav .has-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .main-nav .is-active { color: var(--c-accent-2) !important; font-weight: 700; }

  /* Dropdown intégré, expand inline (max-height = animation simple et fiable) */
  .has-dropdown { width: 100%; }
  .dropdown {
    position: static;
    transform: none !important;
    display: block; /* on revient en block, pas en grid pour éviter les bugs grid-template-rows */
    width: auto;
    background: rgba(0, 0, 0, .18);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    /* Background plein largeur : on étend le dropdown jusqu'aux bords du menu */
    margin: 0 calc(-1 * var(--menu-pad));
    padding: 0 var(--menu-pad);
    max-height: 0;
    overflow: hidden;
    opacity: 1; /* géré par .is-open via display interne */
    visibility: visible;
    pointer-events: auto;
    gap: 0;
    transition:
      max-height .42s cubic-bezier(.2, .7, .2, 1),
      padding .35s ease;
  }
  .has-dropdown.is-open .dropdown {
    max-height: 700px;
    padding: 6px var(--menu-pad) 8px;
  }

  .dropdown a {
    color: rgba(255, 255, 255, .92) !important;
    padding: 16px 0 !important;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
    background: transparent !important;
    transform: translateY(-6px) !important;
    opacity: 0;
    transition: opacity .3s ease, transform .4s cubic-bezier(.2, .7, .2, 1);
  }
  .dropdown a:last-child { border-bottom: 0 !important; }
  .dropdown a:hover { background: transparent !important; }
  .has-dropdown.is-open .dropdown a {
    opacity: 1;
    transform: translateY(0) !important;
  }
  .has-dropdown.is-open .dropdown a:nth-child(1) { transition-delay: .10s; }
  .has-dropdown.is-open .dropdown a:nth-child(2) { transition-delay: .16s; }
  .has-dropdown.is-open .dropdown a:nth-child(3) { transition-delay: .22s; }
  .has-dropdown.is-open .dropdown a:nth-child(4) { transition-delay: .28s; }
  .has-dropdown.is-open .dropdown a:nth-child(5) { transition-delay: .34s; }
  .has-dropdown.is-open .dropdown a:nth-child(6) { transition-delay: .40s; }

  .dropdown .dot { box-shadow: none; }
  .dropdown strong { color: #fff !important; font-size: 16px; }
  .dropdown em { color: rgba(255, 255, 255, .65); font-size: 12.5px; }

  /* Caret du toggle "Prestations" qui pivote */
  .has-dropdown.is-open > a .caret { transform: rotate(180deg); }

  /* Plus de ligne de séparation entre Contact et le footer du menu */
  .main-nav > a:last-of-type { border-bottom: 0; }

  /* Footer du menu : téléphone + socials alignés à gauche, taille identique au footer */
  .main-nav-foot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .14);
  }
  /* Téléphone dans le burger : grande typo display, sans icône, aligné à gauche */
  /* Sélecteur plus spécifique pour battre la règle globale .main-nav a (font-size 14.5) */
  .main-nav .phone-mobile,
  .main-nav-foot .phone-mobile {
    display: inline-block;
    color: #fff !important;
    font-family: var(--f-body);
    font-size: clamp(32px, 8vw, 40px) !important;
    font-weight: 700;
    letter-spacing: -.01em;
    padding: 0 !important;
    background: transparent !important;
    border-bottom: 0 !important;
    border-radius: 0;
    line-height: 1.05;
    transition: color var(--t-fast);
  }
  .main-nav .phone-mobile:hover,
  .main-nav .phone-mobile:active { color: var(--c-accent-2) !important; }

  /* Réseaux sociaux dans le burger : icônes nues, identique au footer, alignées à gauche */
  .mobile-socials {
    display: flex; gap: 22px; justify-content: flex-start; align-items: center;
    margin: 0; padding: 0; list-style: none;
  }
  .mobile-socials a {
    display: inline-flex; align-items: center; justify-content: center;
    color: rgba(255, 255, 255, .9) !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 0 !important;
    border-radius: 0;
    padding: 0 !important;
    transition: transform var(--t-fast), color var(--t-fast);
  }
  .mobile-socials a svg { width: 28px; height: 28px; }
  .mobile-socials a:hover,
  .mobile-socials a:active {
    color: #fff !important;
    transform: translateY(-2px);
    background: transparent !important;
  }

  /* Burger : blanc par-dessus le hero, noir une fois sticky, blanc quand le menu est ouvert */
  .menu-toggle {
    width: 44px; height: 44px;
    z-index: 110; /* au-dessus du menu */
    position: relative;
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
    transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
  }
  .is-stuck .menu-toggle {
    color: var(--c-ink);
    border-color: var(--c-line);
  }
  .menu-open .menu-toggle,
  .menu-open .is-stuck .menu-toggle {
    color: #fff !important;
    border-color: rgba(255, 255, 255, .55) !important;
  }
  .menu-open .brand img {
    /* Restaurer le logo blanc par-dessus le menu vert */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25)) !important;
  }
  /* Le header reste visible au-dessus, sans fond opaque quand le menu est ouvert */
  .menu-open .site-header {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }
  .menu-open .site-header::before { opacity: 0 !important; }

  /* Lock scroll body */
  body.menu-open { overflow: hidden; }

  /* ===== FOOTER mobile — tout centré, ordre : logo · contact · nav ===== */
  .site-footer { padding: 56px 0 24px; text-align: center; }
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
    padding-bottom: 32px;
    justify-items: center;
  }
  /* 1. Bloc logo + socials */
  .footer-brand-block {
    order: 1;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    gap: 22px;
  }
  .footer-brand img { height: 96px; }
  .footer-socials { gap: 26px; justify-content: center; }
  .footer-socials a svg { width: 28px; height: 28px; }

  /* 2. Bloc contact (adresse + téléphone) — sous le logo */
  .footer-contact {
    order: 2;
    align-items: center;
    text-align: center;
    height: auto;
    justify-content: flex-start;
    gap: 8px;
  }
  .footer-contact-top { align-items: center; text-align: center; gap: 4px; }
  .footer-label { text-align: center; }
  .footer-contact .phone { align-self: center; font-size: 24px; margin-top: 4px; }

  /* 3. Nav verticale, en dernier, centrée */
  .footer-nav {
    order: 3;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    height: auto;
    justify-content: flex-start;
  }
  .footer-nav a {
    font-size: 16px;
    padding: 8px 0;
    text-align: center;
    width: auto;
  }

  /* Copyright + Paper34 */
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding-top: 20px;
    font-size: 12px;
  }

  /* ===== Certifs grid (page service) ===== */
  .certifs-list { grid-template-columns: 1fr; max-width: 360px; }
}

@media (max-width: 480px) {
  /* Très petit écran */
  .container { padding-inline: 16px; }
  .main-nav { padding: 88px 20px 36px; }
  /* On garde 2 colonnes carrées même sur très petit écran */
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .related-body { padding: 12px 14px; font-size: 13px; }
}

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

/* =========================================================================
   PAGES LÉGALES — mentions légales, données personnelles
   Page administrative : pas de photo, lecture confortable, colonne étroite.
   ========================================================================= */
.legal-head {
  padding: calc(var(--header-h, 76px) + 48px) 0 32px;
  background: var(--c-surface-2);
  background-image: url("../img/texture-blanche.webp");
  background-repeat: repeat;
  background-size: 300px;
  border-bottom: 1px solid var(--c-line);
}
/* Le fil d'Ariane est prévu pour les héros photo (texte blanc) :
   ici le fond est clair, on le repasse en couleurs sombres. */
.legal-head .breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--c-muted);
  margin-bottom: 18px;
}
.legal-head .breadcrumb a { color: var(--c-brand); }
.legal-head .breadcrumb a:hover { text-decoration: underline; }
.legal-head h1 { font-size: clamp(32px, 4.4vw, 52px); }
.legal-head .lead {
  margin-top: 10px;
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--c-ink-2);
}

.legal { padding: clamp(40px, 5vw, 64px) 0 clamp(60px, 7vw, 90px); }

/* Sommaire cliquable */
.legal-toc {
  display: flex; flex-wrap: wrap; gap: 10px;
  max-width: 820px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.legal-toc a {
  padding: 8px 14px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-surface);
  font-size: 14px; color: var(--c-ink-2);
  transition: all var(--t-fast);
}
.legal-toc a:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
  transform: translateY(-2px);
}

/* Corps du texte : colonne étroite pour le confort de lecture */
.legal-body { max-width: 820px; }
.legal-body h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  margin-top: clamp(40px, 4.5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--c-line);
}
.legal-body h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.legal-body h3 {
  font-size: clamp(17px, 1.6vw, 20px);
  margin-top: 30px;
  color: var(--c-ink);
}
.legal-body p {
  margin-top: 12px;
  font-size: 16px; line-height: 1.7; color: var(--c-ink-2);
}
.legal-body ul {
  margin-top: 14px;
  display: flex; flex-direction: column; gap: 9px;
  font-size: 16px; line-height: 1.6; color: var(--c-ink-2);
}
.legal-body ul li { display: flex; gap: 12px; }
.legal-body ul li::before {
  content: "";
  flex-shrink: 0;
  width: 6px; height: 6px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--c-brand);
}
.legal-body a { color: var(--c-brand); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: var(--c-accent); }

/* Fiche d'identité de l'entreprise */
.legal-facts {
  margin-top: 22px;
  display: grid; grid-template-columns: 250px 1fr;
  gap: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-surface);
}
.legal-facts dt {
  padding: 13px 18px;
  font-size: 14px; font-weight: 600; color: var(--c-brand);
  background: var(--c-brand-soft);
  border-bottom: 1px solid var(--c-line);
}
.legal-facts dd {
  padding: 13px 18px;
  margin: 0;
  font-size: 15px; color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}
.legal-facts dt:last-of-type, .legal-facts dd:last-of-type { border-bottom: none; }

.legal-address {
  padding: 18px 22px;
  border-left: 3px solid var(--c-brand);
  background: var(--c-brand-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  line-height: 1.7;
}
.legal-updated {
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
  font-size: 14px; color: var(--c-muted); font-style: italic;
}

/* Lien vers les mentions légales dans le bas de page */
.footer-bottom .footer-legal-link { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom .footer-legal-link:hover { color: #fff; }

@media (max-width: 720px) {
  .legal-facts { grid-template-columns: 1fr; }
  .legal-facts dt { padding-bottom: 4px; border-bottom: none; background: transparent; }
  .legal-facts dd { padding-top: 0; }
  .legal-toc a { font-size: 13.5px; padding: 7px 12px; }
}
