/* =====================================================================
   DIAMOND SECURITY — Landing page
   Palette : noir profond + or (#d8a944, repris du logo)
   Typo    : Manrope (UI) + The Foriene Serif (titres, sur-mesure)
   ===================================================================== */

/* --------------------- Police de marque (titres) ------------------ */
@font-face {
  font-family: 'Foriene';
  src: url('../fonts/foriene-regular.woff2') format('woff2'),
       url('../fonts/foriene-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Foriene';
  src: url('../fonts/foriene-italic.woff2') format('woff2'),
       url('../fonts/foriene-italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ----------------------------- Tokens ----------------------------- */
:root {
  --black:        #0b0b0d;
  --ink:          #131419;
  --charcoal:     #1c1d23;
  --slate:        #2a2c34;

  --gold:         #d8a944;          /* or de marque */
  --gold-soft:    #e7c779;
  --gold-deep:    #b88b2e;

  --paper:        #f6f4ef;          /* fond clair chaud */
  --paper-2:      #ffffff;
  --line:         #e4e0d7;

  --text:         #1a1b1f;
  --text-soft:    #565862;
  --text-invert:  #f3f1ec;
  --text-invert-soft: #b9bbc4;

  --radius:       16px;
  --radius-lg:    24px;
  --radius-pill:  999px;

  --container:    1200px;
  --shadow-sm:    0 4px 18px rgba(11, 11, 13, .06);
  --shadow-md:    0 18px 50px rgba(11, 11, 13, .12);
  --shadow-gold:  0 12px 30px rgba(184, 139, 46, .28);

  --ease:         cubic-bezier(.22, .61, .36, 1);
  --font-ui:      'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Foriene', Georgia, 'Times New Roman', serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--paper-2);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: clip;            /* garde-fou : l'éclatement des lettres ne crée jamais de scroll horizontal */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 700; }

/* Curseur de marque (crest Diamond Security) — hotspot centré */
html, body { cursor: url('../img/cursor.svg') 18 18, auto; }

/* The Foriene n'a qu'une graisse : on désactive le faux-gras pour que
   les titres conservent le dessin original de la police (sur-mesure). */
.section-title,
.hero-title,
.mission-highlight,
.service-card h3,
.zone-card h3,
.zone-index,
.reason-num,
.vision-figure figcaption strong { font-synthesis: none; }

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

/* --------------------------- Typographie -------------------------- */
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: .2px;
  color: var(--text);
}
.section-title.light { color: var(--text-invert); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 16px;
}
.eyebrow.gold { color: var(--gold); }

.lead { font-size: 1.12rem; color: var(--text); }

p { color: var(--text-soft); margin: 0 0 1rem; }

/* ----------------------------- Boutons ---------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
  color: #2a1f06;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(184,139,46,.42); }

.btn-ghost {
  background: transparent;
  color: var(--text-invert);
  border-color: rgba(243, 241, 236, .35);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-2px); }

.btn-lg { padding: 17px 38px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ----------------------------- Header -----------------------------
   Navbar flottante : transparente collée en haut, puis « pilule »
   centrée, rétrécie et floutée au scroll (inspiré du composant fourni).
------------------------------------------------------------------- */
.site-header {
  position: fixed;            /* superposé au hero : aucun raccord, aucun fond */
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  max-width: 1920px;         /* encadré dès le repos */
  margin: 0 auto;
  background: transparent;    /* sans fond — s'intègre directement au hero */
  border: 1px solid transparent;
  border-radius: 0;
  transition: max-width .4s var(--ease), top .4s var(--ease),
              background .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease), border-radius .4s var(--ease);
}
/* État « flottant » : au scroll et menu fermé */
.site-header.scrolled:not(.is-open) {
  background: rgba(17, 18, 23, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-color: rgba(216, 169, 68, .22);
}
@media (min-width: 768px) {
  .site-header { top: 15px; }  /* léger espacement en haut au repos */
  .site-header.scrolled:not(.is-open) {
    top: 16px;                /* md:top-4 — se détache du haut */
    max-width: 896px;         /* md:max-w-4xl — rétrécit en pilule */
    border-radius: var(--radius-pill); /* pilule pleine, concentrique avec le bouton CTA */
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  }
}
/* Menu mobile ouvert : fond plein pour la lisibilité du panneau */
.site-header.is-open { background: #111217; }

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;               /* h-14 */
  padding: 0 16px;
  transition: height .35s var(--ease), padding .35s var(--ease);
}
@media (min-width: 768px) {
  .nav-bar { height: 72px; }  /* repos : barre plus aérée pour un logo plus grand */
  .site-header.scrolled:not(.is-open) .nav-bar { height: 56px; padding: 0 10px; } /* pilule : se compacte */
}

.brand { display: flex; align-items: center; }
.brand-logo { height: 52px; width: auto; transition: height .35s var(--ease); }
@media (min-width: 768px) {
  .brand-logo { height: 64px; }                          /* repos : logo agrandi */
  .site-header.scrolled .brand-logo { height: 44px; }    /* pilule : logo compact */
}

/* --- Navigation bureau --- */
.nav-desktop { display: none; align-items: center; gap: 6px; }
@media (min-width: 768px) { .nav-desktop { display: flex; } }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-invert-soft);
  border-radius: var(--radius-pill);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-link:hover { color: var(--text-invert); background: rgba(255, 255, 255, .06); }
.nav-link.active { color: var(--gold-soft); }

.header-cta { margin-left: 8px; padding: 9px 18px; font-size: .88rem; }

/* --- Bouton + icône hamburger animée --- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  color: var(--gold);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(216, 169, 68, .3);
  border-radius: 10px;
  cursor: pointer;
  transition: background .25s var(--ease);
}
.nav-toggle:hover { background: rgba(216, 169, 68, .12); }
@media (min-width: 768px) { .nav-toggle { display: none; } }

.menu-icon { width: 22px; height: 22px; transition: transform .3s var(--ease); }
.site-header.is-open .menu-icon { transform: rotate(-45deg); }
.menu-icon .mi-bend {
  stroke-dasharray: 12 63;
  transition: stroke-dasharray .3s ease-in-out, stroke-dashoffset .3s ease-in-out;
}
.site-header.is-open .menu-icon .mi-bend {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42px;
}

/* --- Menu mobile plein écran --- */
.mobile-menu {
  position: fixed;
  top: 64px; right: 0; bottom: 0; left: 0;
  z-index: 90;
  display: none;
  /* Fond sombre OPAQUE : pas de backdrop-filter (rendu cassé/blanc
     sur certains navigateurs mobiles). Le panneau couvre tout l'écran. */
  background: #0c0d12;
  border-top: 1px solid rgba(216, 169, 68, .16);
}
.site-header.is-open .mobile-menu { display: block; }
@media (min-width: 768px) { .mobile-menu { display: none !important; } }

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  /* Pas d'animation d'entrée : le contenu doit toujours être visible
     immédiatement. Une animation @keyframes partant d'opacity:0 pouvait
     rester bloquée sur sa 1re frame et laisser le panneau vide. */
}
.mobile-links { display: grid; gap: 6px; }
.mobile-links .nav-link {
  justify-content: flex-start;
  padding: 14px 16px;
  font-size: 1.05rem;
  border-radius: 12px;
}
.mobile-actions { display: flex; flex-direction: column; gap: 10px; }

/* ------------------------------ Hero ------------------------------ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--text-invert);
  overflow: hidden;
  background:
    /* Voile d'assombrissement haut (lisibilité du header) et bas (raccord section) */
    linear-gradient(180deg, rgba(8,9,12,.82) 0%, rgba(8,9,12,.10) 20%, transparent 42%, rgba(10,11,16,.55) 100%),
    /* Dégradé gauche → droite : sombre côté texte, agent visible à droite */
    linear-gradient(95deg, #0a0b10 0%, rgba(10,11,16,.92) 28%, rgba(10,11,16,.55) 52%, rgba(10,11,16,.12) 74%, rgba(10,11,16,.05) 100%),
    /* Photo de fond */
    url('../img/hero.jpg') center right / cover no-repeat;
}
/* ----------------------------------------------------------------
   Texture « grid » de marque par-dessus la photo du hero.
   Équivalent CSS du composant React BGPattern (variant: grid,
   mask: fade-edges) — le site étant statique HTML/CSS, on reproduit
   le motif sans dépendance React/Tailwind.
   Fine grille blanche homogène + lignes dorées périodiques (1 sur 4)
   pour apporter la direction artistique, estompée vers les bords
   pour rester légère et discrète sur l'ensemble du visuel. */
.hero-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    /* grille blanche fine (homogène) */
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    /* accents dorés : grille 4× plus large → lignes or régulières */
    linear-gradient(rgba(216,169,68,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216,169,68,.10) 1px, transparent 1px);
  background-size:
    44px 44px, 44px 44px,
    176px 176px, 176px 176px;
  /* fade-edges : plein au centre, estompé sur les bords */
  -webkit-mask-image: radial-gradient(ellipse 110% 95% at center, #000 52%, rgba(0,0,0,.4) 80%, transparent 100%);
  mask-image: radial-gradient(ellipse 110% 95% at center, #000 52%, rgba(0,0,0,.4) 80%, transparent 100%);
  opacity: .65;
}
.hero-content { position: relative; z-index: 2; max-width: 1000px; padding: 116px 24px 120px; }

/* Sur mobile : on recadre la photo et on renforce le voile sombre
   pour garder le texte parfaitement lisible par-dessus l'agent. */
@media (max-width: 768px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(8,9,12,.85) 0%, rgba(8,9,12,.45) 30%, rgba(10,11,16,.55) 60%, rgba(8,9,12,.82) 100%),
      linear-gradient(100deg, rgba(10,11,16,.78) 0%, rgba(10,11,16,.45) 60%, rgba(10,11,16,.25) 100%),
      url('../img/hero.jpg') 72% center / cover no-repeat;
  }
}
.hero-eyebrow {
  font-size: .82rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.45rem);
  line-height: 1.1;
  letter-spacing: .2px;
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-invert-soft);
  max-width: 60ch;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badge {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(216,169,68,.22);
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: .95rem;
  backdrop-filter: blur(6px);
}
.badge-icon {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  color: var(--gold);
  flex-shrink: 0;
}
.badge-icon svg { width: 20px; height: 20px; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 26px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(216,169,68,.45);
  border-radius: 14px;
  z-index: 2;
}
.hero-scroll span {
  position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  80%,100% { opacity: 0; transform: translateY(14px); }
}

/* ---------------------------- Sections ---------------------------- */
/* overflow-x: clip → empêche l'éclatement horizontal des lettres de titre
   (effet [data-assemble]) de créer un débordement / défilement latéral
   sur mobile (qui poussait le header et le bouton burger trop à droite). */
.section { padding: clamp(64px, 9vw, 120px) 0; overflow-x: clip; }
.section.light { background: var(--paper); }
.section.dark {
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(216,169,68,.12), transparent 60%),
    linear-gradient(160deg, #0a0b10, #15161c 60%, #0a0b10);
  color: var(--text-invert);
}
.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-intro { font-size: 1.08rem; margin-top: 6px; }
.section.dark .section-intro,
.section.dark p { color: var(--text-invert-soft); }

/* --------------------------- 2. Vision ---------------------------- */
.vision-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.vision-text .section-title { margin-bottom: 22px; }  /* aération sous le titre */
.mission-highlight {
  position: relative;
  margin: 32px 0 0;
  padding: 20px 24px 20px 30px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  background: linear-gradient(100deg, rgba(216,169,68,.10), transparent);
  border-radius: var(--radius);
}
.mission-bar {
  position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 4px; border-radius: 4px;
  background: linear-gradient(var(--gold-soft), var(--gold-deep));
}
.vision-figure {
  position: relative;
  margin: 0;                 /* annule la marge par défaut du <figure> (40px) */
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.vision-figure img { width: 100%; height: 100%; object-fit: cover; }
.vision-figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 24px 20px;
  display: flex; flex-direction: column;
  background: linear-gradient(transparent, rgba(8,8,10,.92));
  color: var(--text-invert);
}
.vision-figure figcaption strong { font-size: 1.05rem; }
.vision-figure figcaption span { font-size: .9rem; color: var(--text-invert-soft); }

/* ----------------------- 3. Zones d'interv. ----------------------- */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 54px;
}
.zone-card {
  position: relative;
  padding: 34px 26px 30px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.zone-card::before {
  content: '';
  position: absolute; left: 0; top: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold-deep));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.zone-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.zone-card:hover::before { transform: scaleX(1); }
.zone-index {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 600;
  color: var(--gold-deep);
  display: block; margin-bottom: 10px;
}
.zone-card h3 { font-size: 1.45rem; font-family: var(--font-display); font-weight: 600; margin-bottom: 8px; }
.zone-card p { font-size: .94rem; margin: 0; }

/* ------------------------- 4. Prestations ------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(216,169,68,.4); }
.service-icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(140deg, #16171c, #2a2c34);
  color: var(--gold);
  margin-bottom: 22px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.service-card > p { font-size: .96rem; margin-bottom: 18px; }
.service-points { margin: 0 0 20px; display: grid; gap: 9px; }
.service-points li {
  position: relative;
  padding-left: 26px;
  font-size: .9rem;
  color: var(--text);
}
.service-points li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-soft), var(--gold-deep));
}
.service-note {
  font-size: .82rem;
  font-style: italic;
  color: var(--text-soft);
  background: rgba(216,169,68,.10);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 18px;
}
.service-link {
  margin-top: auto;
  font-weight: 700;
  font-size: .92rem;
  color: var(--gold-deep);
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.service-link:hover { color: var(--text); }

/* carte CTA dans la grille */
.service-cta {
  justify-content: center;
  background: linear-gradient(150deg, #101116, #20222b);
  border: none;
  color: var(--text-invert);
  text-align: left;
}
.service-cta h3 { color: var(--text-invert); }
.service-cta p { color: var(--text-invert-soft); }
.service-cta .btn { margin-top: 8px; align-self: flex-start; }

/* --- Présentation de l'entreprise : prose lisible --- */
.presentation-prose { max-width: 820px; margin: 30px auto 0; }
.presentation-prose p { margin: 0 0 16px; font-size: 1.04rem; color: var(--text-soft); }
.presentation-prose p:last-child { margin-bottom: 0; }
.presentation-prose strong { color: var(--text); }

/* --- Prestations : accordéon (texte intégral des onglets) --- */
.services-acc { max-width: 920px; margin: 52px auto 0; display: grid; gap: 14px; }
.service-acc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.service-acc[open] { border-color: rgba(216,169,68,.45); box-shadow: var(--shadow-sm); }
.service-acc summary {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none;
}
.service-acc summary::-webkit-details-marker { display: none; }
.service-acc summary:hover { background: rgba(216,169,68,.06); }
.service-acc-ic {
  flex: none; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(150deg, #16171c, #2a2c34); color: var(--gold);
}
.service-acc-ic svg { width: 22px; height: 22px; }
.service-acc-title {
  flex: 1; font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600; color: var(--text); line-height: 1.2;
}
.service-acc-chevron { flex: none; color: var(--gold-deep); transition: transform .3s var(--ease); }
.service-acc-chevron svg { width: 22px; height: 22px; display: block; }
.service-acc[open] .service-acc-chevron { transform: rotate(180deg); }

.service-acc-body { padding: 0 24px 26px; border-top: 1px solid var(--line); }
.service-acc-body > *:first-child { margin-top: 18px; }
.service-acc-body h4 {
  font-size: .95rem; letter-spacing: .01em;
  color: var(--gold-deep); margin: 22px 0 10px;
}
.service-acc-body p { font-size: .96rem; margin: 0 0 12px; color: var(--text-soft); }
.acc-list { display: grid; gap: 9px; margin: 0 0 14px; }
.acc-list li { position: relative; padding-left: 22px; font-size: .95rem; color: var(--text-soft); }
.acc-list li::before {
  content: ''; position: absolute; left: 5px; top: .55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.acc-list.check li::before {
  content: '✓'; left: 0; top: 0; width: auto; height: auto;
  background: none; color: var(--gold-deep); font-weight: 700;
}
.acc-list strong { color: var(--text); font-weight: 600; }

/* CTA sous l'accordéon */
.services-cta {
  max-width: 920px; margin: 26px auto 0; padding: 24px 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  background: linear-gradient(150deg, #101116, #20222b);
  border-radius: var(--radius); color: var(--text-invert-soft);
}
.services-cta p { margin: 0; color: var(--text-invert-soft); max-width: 60ch; }

/* --------------------- 5. Pourquoi nous choisir ------------------- */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.reason-card {
  padding: 34px 28px;
  border: 1px solid rgba(216,169,68,.18);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.025);
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.reason-card:hover { transform: translateY(-6px); border-color: var(--gold); background: rgba(216,169,68,.06); }
.reason-num {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 600;
  color: var(--gold);
  display: block; margin-bottom: 16px;
}
.reason-card h3 { font-size: 1.2rem; color: var(--text-invert); margin-bottom: 12px; }
.reason-card p { font-size: .94rem; color: var(--text-invert-soft); margin: 0; }

/* ------------------------- 6. Qualités ---------------------------- */
.qualites-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.qualites-list { display: grid; gap: 14px; }
.quality {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 22px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.quality:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.quality-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--gold-soft), var(--gold-deep));
  color: #2a1f06; font-weight: 800; font-size: .85rem;
}
.quality strong { display: block; font-size: 1rem; color: var(--text); }
.quality span { font-size: .88rem; color: var(--text-soft); }

/* ------------------------- 7. Conformité -------------------------- */
.conformite { background: var(--paper); }
.conformite-inner {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 36px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(30px, 4vw, 48px);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.conformite-icon {
  width: 96px; height: 96px;
  display: grid; place-items: center;
  border-radius: 20px;
  background: linear-gradient(140deg, #16171c, #2a2c34);
  color: var(--gold);
}
.conformite-icon svg { width: 46px; height: 46px; }
.legal-fineprint {
  font-size: .82rem;
  font-style: italic;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-bottom: 0;
}

/* --------------------------- 8. CTA band -------------------------- */
.cta-band { text-align: center; }
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta-inner .section-title { margin-bottom: 18px; }
.cta-inner p { font-size: 1.1rem; margin-bottom: 30px; }

/* --------------------------- 9. Contact --------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}
.contact-text .section-title { margin-bottom: 18px; }
.contact-assurances { margin-top: 26px; display: grid; gap: 12px; }
.contact-assurances li {
  display: flex; align-items: center; gap: 12px;
  font-size: .96rem; color: var(--text);
}
.contact-assurances span {
  color: var(--gold-deep); font-weight: 800;
}

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.5vw, 40px);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label {
  font-size: .82rem; font-weight: 600;
  color: var(--text); margin-bottom: 7px;
  letter-spacing: .01em;
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-ui);
  font-size: .96rem;
  color: var(--text);
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(216,169,68,.18);
}
.field input:user-invalid,
.field select:user-invalid,
.field input.error { border-color: #c0563f; }

.checkbox {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .86rem; color: var(--text-soft);
  margin: 4px 0 22px;
  cursor: pointer;
}
.checkbox input {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: var(--gold-deep);
  cursor: pointer;
}
.form-feedback {
  margin: 16px 0 0;
  font-size: .9rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-feedback.ok { color: #2f7d4f; }
.form-feedback.ko { color: #c0563f; }

/* ---------------------------- Footer ------------------------------ */
.site-footer {
  background: var(--black);
  color: var(--text-invert-soft);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo { height: 68px; width: auto; margin-bottom: 16px; }
.footer-tagline { font-size: .95rem; color: var(--text-invert-soft); margin: 0; }
.footer-nav h4,
.footer-zones h4 {
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: .95rem; transition: color .25s var(--ease); }
.footer-nav a:hover { color: var(--text-invert); }
.footer-zones p { font-size: .95rem; margin: 0; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 26px;
  font-size: .82rem;
}
.footer-bottom p { margin: 0; }
.footer-copy { font-style: italic; color: var(--gold); }
.footer-legal { max-width: 56ch; color: #7c7e88; }

/* ---------------- Texte qui s'assemble au scroll ------------------ */
.assemble-ready { perspective: 700px; }
.assemble-word { display: inline-block; }
.assemble-char {
  display: inline-block;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* ------------------------ Reveal au scroll ------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------- Responsive -------------------------- */
@media (max-width: 1024px) {
  .zones-grid, .reasons-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .vision-grid { grid-template-columns: 1fr; }
  /* En colonne unique : la card image remplit toute la largeur (mêmes
     marges G/D que le texte et la citation) et adopte un ratio paysage. */
  .vision-figure {
    width: 100%;
    justify-self: stretch;
    max-height: none;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 860px) {
  .qualites-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .zones-grid, .reasons-grid, .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .conformite-inner { grid-template-columns: 1fr; gap: 22px; margin: 0 16px; padding: 28px 22px; }
  .hero-actions .btn { width: 100%; }
  .hero-content { padding: 90px 22px 110px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .footer-grid { border-bottom: none; padding-bottom: 24px; }
}

/* --------------------- Accessibilité : reduce motion -------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
