/* ==========================================================================
   LES CONSTRUCTIONS UN POUR TOUS — Feuille de style principale
   --------------------------------------------------------------------------
   MODIFIER ICI : les couleurs, polices et espacements sont centralisés dans
   :root ci-dessous. Changer une valeur ici la met à jour partout sur le site.
   ========================================================================== */

/* -------------------- Variables (design tokens) -------------------- */
:root {
  /* Couleurs — MODIFIER ICI pour changer la palette du site */
  --anthracite: #151719;        /* fond sombre principal */
  --acier: #2A2D30;             /* fond sombre secondaire / cartes sur fond sombre */
  --blanc-casse: #F2F1ED;       /* fond clair principal */
  --texte-sur-sombre: #F2F1ED;  /* texte principal sur fond sombre */
  --texte-sur-sombre-secondaire: #B8BAB8; /* texte secondaire sur fond SOMBRE seulement */
  --texte-sur-clair: #151719;   /* texte principal sur fond clair */
  --texte-sur-clair-secondaire: #6B6E6B;  /* texte secondaire sur fond CLAIR seulement */
  --accent: #AC6E22;            /* or/bronze — boutons, icônes, traits, hover. À utiliser avec parcimonie */
  --accent-vif: #C98A32;        /* variante un peu plus claire, pour hover/focus */
  --blanc: #FFFFFF;
  --ligne-sombre: rgba(242, 241, 237, 0.14);
  --ligne-claire: rgba(21, 23, 25, 0.12);

  /* Typographie */
  --police-titres: 'Manrope', -apple-system, sans-serif;
  --police-texte: 'Inter', -apple-system, sans-serif;
  --fs-h1: clamp(2.25rem, 4.5vw + 1rem, 3.75rem);
  --fs-h2: clamp(1.75rem, 2.5vw + 1rem, 2.375rem);
  --fs-h3: clamp(1.2rem, 1vw + 1rem, 1.4rem);
  --fs-eyebrow: 0.8125rem;
  --lh-titres: 1.15;
  --lh-texte: 1.65;

  /* Espacement */
  --espace-1: 0.5rem;
  --espace-2: 1rem;
  --espace-3: 1.5rem;
  --espace-4: 2rem;
  --espace-5: 3rem;
  --espace-6: 4.5rem;
  --espace-7: 7rem;

  /* Divers */
  --rayon: 3px;
  --rayon-md: 6px;
  --conteneur-max: 1180px;
  --transition: 220ms ease;
  --ombre-legere: 0 1px 2px rgba(0,0,0,0.06);
}

/* -------------------- Réinitialisation de base -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, picture, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

body {
  font-family: var(--police-texte);
  color: var(--texte-sur-clair);
  background: var(--blanc-casse);
  line-height: var(--lh-texte);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--police-titres);
  line-height: var(--lh-titres);
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }

p { max-width: 62ch; }
p.intro-section { max-width: 46ch; }

/* Focus clavier visible partout (accessibilité) */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* -------------------- Mise en page -------------------- */
.conteneur {
  max-width: var(--conteneur-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) { .conteneur { padding-inline: 2rem; } }

.section { padding-block: var(--espace-6); }
@media (min-width: 1024px) { .section { padding-block: var(--espace-7); } }

.section--sombre { background: var(--anthracite); color: var(--texte-sur-sombre); }
.section--sombre .texte-secondaire { color: var(--texte-sur-sombre-secondaire); }
.section--clair { background: var(--blanc-casse); color: var(--texte-sur-clair); }
.section--clair .texte-secondaire { color: var(--texte-sur-clair-secondaire); }
.section--acier { background: var(--acier); color: var(--texte-sur-sombre); }

.eyebrow {
  display: block;
  font-family: var(--police-texte);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--espace-2);
}

.entete-section { max-width: 42rem; margin-bottom: var(--espace-5); }
.entete-section--centre { margin-inline: auto; text-align: center; }

/* -------------------- Boutons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border-radius: var(--rayon);
  font-family: var(--police-texte);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--principal {
  background: var(--accent);
  color: var(--anthracite); /* contraste vérifié : 4.3:1+ — voir notes de conception */
}
.btn--principal:hover { background: var(--accent-vif); }

.btn--secondaire-sombre {
  background: transparent;
  border-color: var(--ligne-sombre);
  color: var(--texte-sur-sombre);
}
.btn--secondaire-sombre:hover { border-color: var(--accent); color: var(--accent); }

.btn--secondaire-clair {
  background: transparent;
  border-color: var(--ligne-claire);
  color: var(--texte-sur-clair);
}
.btn--secondaire-clair:hover { border-color: var(--accent); color: var(--accent); }

.btn--pleine-largeur { width: 100%; }

/* -------------------- En-tête / navigation -------------------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 23, 25, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ligne-sombre);
  transition: padding var(--transition);
}
.entete__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}
.entete.est-compact .entete__barre { padding-block: 0.65rem; }

.entete__logo { display: flex; align-items: center; gap: 0.6rem; }
.entete__logo img { height: 40px; width: auto; transition: height var(--transition); }
.entete.est-compact .entete__logo img { height: 32px; }
.entete__logo-texte {
  font-family: var(--police-titres);
  font-weight: 800;
  font-size: 1rem;
  color: var(--texte-sur-sombre);
  line-height: 1.1;
}
.entete__logo-texte span { display: block; font-size: 0.7rem; font-weight: 500; color: var(--texte-sur-sombre-secondaire); }

.nav-principale { display: none; }
.nav-principale ul { display: flex; gap: var(--espace-4); align-items: center; }
.nav-principale a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--texte-sur-sombre-secondaire);
  transition: color var(--transition);
  position: relative;
}
.nav-principale a:hover, .nav-principale a.actif { color: var(--texte-sur-sombre); }
.nav-principale a.actif::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
}

.entete__actions { display: flex; align-items: center; gap: var(--espace-3); }
.entete__tel {
  display: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--texte-sur-sombre);
}
.entete__cta { display: none; }

.bouton-menu {
  background: none; border: none; color: var(--texte-sur-sombre);
  padding: 0.4rem; display: flex;
}
.bouton-menu svg { width: 26px; height: 26px; }

@media (min-width: 1024px) {
  .nav-principale { display: block; }
  .entete__tel { display: block; }
  .entete__cta { display: inline-flex; }
  .bouton-menu { display: none; }
}

/* Menu mobile plein écran */
.menu-mobile {
  position: fixed; inset: 0;
  background: var(--anthracite);
  z-index: 200;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 280ms ease;
  overflow-y: auto;
}
.menu-mobile.est-ouvert { transform: translateX(0); }
.menu-mobile__entete { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--espace-5); }
.menu-mobile__fermer { background: none; border: none; color: var(--texte-sur-sombre); padding: 0.4rem; }
.menu-mobile__fermer svg { width: 26px; height: 26px; }
.menu-mobile ul { display: flex; flex-direction: column; gap: var(--espace-3); }
.menu-mobile a { font-family: var(--police-titres); font-size: 1.6rem; font-weight: 700; color: var(--texte-sur-sombre); }
.menu-mobile__pied { margin-top: var(--espace-5); display: flex; flex-direction: column; gap: var(--espace-2); }

/* Barre fixe mobile (Appeler | Soumission) */
.barre-mobile {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 90;
  display: grid; grid-template-columns: 1fr 1.4fr;
  background: var(--anthracite);
  border-top: 1px solid var(--ligne-sombre);
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  gap: 0.6rem;
}
.barre-mobile a {
  display: flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.7rem; border-radius: var(--rayon); font-weight: 600; font-size: 0.9rem;
}
.barre-mobile__appel { border: 1.5px solid var(--ligne-sombre); color: var(--texte-sur-sombre); }
.barre-mobile__soumission { background: var(--accent); color: var(--anthracite); }
.barre-mobile svg { width: 18px; height: 18px; }
body { padding-bottom: 68px; }
@media (min-width: 1024px) {
  .barre-mobile { display: none; }
  body { padding-bottom: 0; }
}

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--texte-sur-sombre);
  overflow: hidden;
}
.hero__fond { position: absolute; inset: 0; z-index: 0; }
.hero__fond img { width: 100%; height: 100%; object-fit: cover; }
.hero__fond::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(21,23,25,0.94) 15%, rgba(21,23,25,0.72) 55%, rgba(21,23,25,0.35) 100%),
              linear-gradient(0deg, rgba(21,23,25,0.9) 0%, rgba(21,23,25,0.25) 45%);
}
.hero__contenu {
  position: relative; z-index: 1;
  padding-block: var(--espace-6) var(--espace-5);
  max-width: 40rem;
}
.hero h1 { margin-bottom: var(--espace-3); }
.hero__soustitre { font-size: 1.05rem; color: var(--texte-sur-sombre-secondaire); margin-bottom: var(--espace-4); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: var(--espace-4); }
.hero__territoire {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--texte-sur-sombre-secondaire);
}
.hero__territoire span:not(:last-child)::after { content: '·'; margin-left: 0.75rem; color: var(--accent); }

/* -------------------- Confiance (4 blocs) -------------------- */
.confiance { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--espace-4); }
.confiance__bloc { border-top: 2px solid var(--accent); padding-top: var(--espace-2); }
.confiance__chiffre { font-family: var(--police-titres); font-size: 1.9rem; font-weight: 800; display: block; }
.confiance__label { font-size: 0.85rem; color: var(--texte-sur-sombre-secondaire); }
@media (min-width: 768px) { .confiance { grid-template-columns: repeat(4, 1fr); } }

/* -------------------- Grille de services -------------------- */
.grille-services { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--ligne-claire); border: 1px solid var(--ligne-claire); }
.carte-service {
  background: var(--blanc-casse);
  padding: var(--espace-4);
  position: relative;
  transition: background var(--transition);
}
.carte-service::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.carte-service:hover { background: var(--blanc); }
.carte-service:hover::before { transform: scaleX(1); }
.carte-service__titre { font-size: 1.1rem; margin-bottom: 0.6rem; }
.carte-service__texte { font-size: 0.92rem; color: var(--texte-sur-clair-secondaire); margin-bottom: var(--espace-2); }
.carte-service__lien { font-size: 0.85rem; font-weight: 600; color: var(--accent); }
@media (min-width: 640px) { .grille-services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grille-services { grid-template-columns: repeat(3, 1fr); } }

/* -------------------- Section identité "Un Pour Tous" -------------------- */
.identite { text-align: left; }
.identite__titre { font-size: clamp(2.5rem, 8vw, 5rem); color: var(--accent); margin-bottom: var(--espace-3); }
.identite__texte { font-size: 1.1rem; max-width: 42rem; }
.identite__texte p + p { margin-top: var(--espace-2); }

/* -------------------- Pourquoi nous -------------------- */
.pourquoi { display: grid; gap: var(--espace-5); }
.pourquoi__image { border-radius: var(--rayon-md); overflow: hidden; }
.pourquoi__liste { display: grid; gap: var(--espace-3); }
.pourquoi__item { display: flex; gap: var(--espace-3); align-items: baseline; }
.pourquoi__num { font-family: var(--police-titres); color: var(--accent); font-weight: 800; font-size: 0.95rem; }
.pourquoi__item h3 { margin-bottom: 0.3rem; }
.pourquoi__item p { font-size: 0.92rem; }
@media (min-width: 900px) { .pourquoi { grid-template-columns: 1fr 1fr; align-items: center; } }

/* -------------------- Processus (timeline) -------------------- */
.timeline { display: grid; gap: var(--espace-4); counter-reset: etape; }
.timeline__etape { position: relative; padding-left: 3.25rem; }
.timeline__etape::before {
  counter-increment: etape;
  content: counter(etape, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--police-titres); font-weight: 800; font-size: 1.1rem;
  color: var(--accent);
  width: 2.4rem; height: 2.4rem;
  border: 1.5px solid var(--ligne-sombre);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.timeline__etape:not(:last-child)::after {
  content: '';
  position: absolute; left: 1.2rem; top: 2.6rem; bottom: -1.9rem;
  width: 1px; background: var(--ligne-sombre);
}
.timeline__etape h3 { margin-bottom: 0.25rem; }
.timeline__etape p { font-size: 0.92rem; }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(3, 1fr); gap: var(--espace-5) var(--espace-4); } .timeline__etape:nth-child(3)::after { display: none; } }

/* -------------------- Réalisations (état "à venir") -------------------- */
.realisations-apercu {
  border: 1px dashed var(--ligne-claire);
  border-radius: var(--rayon-md);
  padding: var(--espace-5);
  text-align: center;
}
.realisations-apercu__icone { color: var(--accent); margin-bottom: var(--espace-2); }
.realisations-apercu h3 { margin-bottom: var(--espace-1); }
.realisations-apercu p { margin-inline: auto; margin-bottom: var(--espace-3); }

/* -------------------- Résidentiel / Commercial -------------------- */
.panneaux { display: grid; grid-template-columns: 1fr; gap: 1px; }
.panneau {
  position: relative; min-height: 22rem;
  display: flex; align-items: flex-end;
  padding: var(--espace-4);
  color: var(--texte-sur-sombre);
}
.panneau__fond { position: absolute; inset: 0; background: var(--acier); }
.panneau__fond::after { content:''; position:absolute; inset:0; background: linear-gradient(0deg, rgba(21,23,25,0.88), rgba(21,23,25,0.35)); }
.panneau__contenu { position: relative; z-index: 1; max-width: 24rem; }
.panneau__contenu p { font-size: 0.92rem; color: var(--texte-sur-sombre-secondaire); margin-bottom: var(--espace-2); }
@media (min-width: 768px) { .panneaux { grid-template-columns: 1fr 1fr; } }

/* -------------------- Territoire -------------------- */
.territoire__villes { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--espace-3); }
.territoire__ville {
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--ligne-sombre);
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.03em;
}
.territoire__ville--principale { border-color: var(--accent); color: var(--accent); }

/* -------------------- FAQ (accordéon natif) -------------------- */
.faq-liste { border-top: 1px solid var(--ligne-claire); max-width: 46rem; }
.faq-item { border-bottom: 1px solid var(--ligne-claire); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.15rem;
  font-family: var(--police-titres); font-weight: 700; font-size: 1.02rem;
  list-style: none; cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem; color: var(--accent); flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__reponse { padding-bottom: 1.25rem; font-size: 0.95rem; color: var(--texte-sur-clair-secondaire); max-width: 40rem; }

/* -------------------- CTA final -------------------- */
.cta-final { text-align: center; }
.cta-final .entete-section { margin-inline: auto; }
.cta-final__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: var(--espace-3); }
.cta-final__tel { font-family: var(--police-titres); font-weight: 700; font-size: 1.1rem; color: var(--accent); }

/* -------------------- Pied de page -------------------- */
.pied {
  background: var(--anthracite); color: var(--texte-sur-sombre-secondaire);
  padding-block: var(--espace-5) var(--espace-4);
  font-size: 0.9rem;
}
.pied__grille { display: grid; gap: var(--espace-4); margin-bottom: var(--espace-5); }
.pied__marque img { height: 44px; margin-bottom: var(--espace-2); }
.pied__marque p { color: var(--texte-sur-sombre-secondaire); font-size: 0.88rem; }
.pied h4 { font-family: var(--police-texte); color: var(--texte-sur-sombre); font-size: 0.9rem; margin-bottom: var(--espace-2); }
.pied ul { display: grid; gap: 0.6rem; }
.pied a:hover { color: var(--texte-sur-sombre); }
.pied__bas {
  border-top: 1px solid var(--ligne-sombre); padding-top: var(--espace-3);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.8rem;
}
@media (min-width: 768px) { .pied__grille { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* -------------------- Sélecteur de langue -------------------- */
.lang-switch { display: flex; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; }
.lang-switch a { padding: 0.2rem 0.4rem; color: var(--texte-sur-sombre-secondaire); }
.lang-switch a.actif { color: var(--accent); }

/* -------------------- Animation d'apparition (discrète) --------------------
   Le contenu est visible par défaut (opacite 1) : si le JS ne s'execute pas,
   rien ne reste caché. L'état "masqué avant apparition" n'est activé que par
   JS (classe .js sur <html>), qui se charge ensuite de révéler chaque section. */
.apparition { transition: opacity 600ms ease, transform 600ms ease; }
html.js .apparition { opacity: 0; transform: translateY(14px); }
html.js .apparition.est-visible { opacity: 1; transform: translateY(0); }

/* -------------------- Formulaires (base, réutilisé sur la page Soumission) -------------------- */
.champ { margin-bottom: var(--espace-3); }
.champ label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.4rem; }
.champ input, .champ select, .champ textarea {
  width: 100%; padding: 0.85rem 1rem;
  border: 1.5px solid var(--ligne-claire); border-radius: var(--rayon);
  background: var(--blanc); font-size: 1rem;
}
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--accent); outline: none; }
.champ__erreur { color: #B3311F; font-size: 0.82rem; margin-top: 0.35rem; display: none; }
.champ.est-invalide input, .champ.est-invalide textarea { border-color: #B3311F; }
.champ.est-invalide .champ__erreur { display: block; }
