/* ============================================================
   BTPVISIBLE — DESIGN SYSTEM GLOBAL & MASTER COMPONENTS
   V3 — Fusion conservatrice V1 (base) + apports V2
   ============================================================ */

/* ---------- 1. VARIABLES GLOBALES ---------- */
/* V1 conservé intégralement — aucune couleur modifiée */
:root {
  --bleu:       #0D1F3C;
  --bleu-clair: #1A3560;
  --orange:     #F57C00;
  --jaune:      #FFC107;
  --blanc:      #F5F1EB;
  --gris:       #8C9BAB;
  --gris-clair: #DDE3EA;
  --texte:      #1A1A2E;
  
  --shadow:     0 4px 24px rgba(13,31,60,.18);
  --radius:     6px;
  
  --ff-titre:   'Barlow Condensed', sans-serif;
  --ff-corps:   'Barlow', sans-serif;
  --transition: 0.25s ease;
}

/* ---------- 2. RESET NATIVE ---------- */
/* V1 conservé intégralement */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--ff-corps); background: var(--blanc); color: var(--texte); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ---------- 3. UTILITAIRES GLOBAUX ---------- */
/* V1 conservé intégralement */
.container { width: min(1120px, 92%); margin-inline: auto; }

.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.8rem; border-radius: var(--radius); font-family: var(--ff-titre); font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; border: none; transition: transform var(--transition), box-shadow var(--transition); justify-content: center; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-secondary { background: transparent; color: var(--blanc); border: 2px solid var(--blanc); }
.btn-dark { background: var(--bleu); color: #fff; }

.tag { display: inline-block; background: var(--orange); color: #fff; font-family: var(--ff-titre); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .75rem; border-radius: 3px; margin-bottom: 1rem; }
.bg-beton { position: relative; background-color: var(--bleu); }
.bg-beton::before { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,.015) 2px, rgba(255,255,255,.015) 4px), repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,.01) 2px, rgba(255,255,255,.01) 4px); pointer-events: none; }

/* ---------- 4. HEADER & NAVIGATION ---------- */
/* V1 conservé intégralement */
.annonce-bar { background: var(--orange); color: #fff; text-align: center; font-family: var(--ff-titre); font-weight: 700; font-size: .9rem; letter-spacing: .05em; padding: .55rem 1rem; }
.annonce-bar strong { text-transform: uppercase; }

header { position: sticky; top: 0; z-index: 100; background: var(--bleu); border-bottom: 3px solid var(--orange); box-shadow: 0 2px 16px rgba(0,0,0,.35); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 0; flex-wrap: wrap; }
.logo { font-family: var(--ff-titre); font-weight: 900; font-size: 2rem; color: var(--blanc); letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.logo span { color: var(--orange); }

.nav-links { display: none; flex-direction: column; position: fixed; inset: 0; background: var(--bleu); justify-content: center; align-items: center; gap: 2.5rem; z-index: 200; list-style: none; }
.nav-links.open { display: flex; }
.nav-links a { font-family: var(--ff-titre); font-weight: 700; font-size: 1.8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--gris-clair); transition: color var(--transition); }
.nav-links a:hover { color: var(--orange); }
.close-menu { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; color: var(--blanc); font-size: 2rem; cursor: pointer; display: block; }
.hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: .3rem; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--blanc); border-radius: 2px; transition: var(--transition); }

/* ---------- 5. FOOTER ---------- */
/* V1 conservé intégralement */
footer { background: #0a1525; color: var(--gris); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-logo { font-family: var(--ff-titre); font-weight: 900; font-size: 2rem; color: var(--blanc); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .7rem; }
.footer-logo span { color: var(--orange); }
.footer-tagline { font-size: .9rem; line-height: 1.65; max-width: 320px; color: var(--gris); }
.footer-col h4 { font-family: var(--ff-titre); font-weight: 700; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blanc); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul li a { font-size: .9rem; color: var(--gris); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--orange); }
.footer-contact-item { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--gris); margin-bottom: .6rem; }
.footer-contact-item svg { width: 15px; height: 15px; fill: var(--orange); flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; display: flex; flex-direction: column; text-align: center; gap: .5rem; font-size: .8rem; }
.footer-bottom a { color: var(--gris); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--orange); }

/* ---------- 6. ANIMATIONS GLOBALES ---------- */
/* @keyframes conservé — utilisé ponctuellement ailleurs si besoin */
/* DÉCISION V3 : animation fadeUp sur hero-inner SUPPRIMÉE (règle : pas d'animations supplémentaires vs V1) */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 7. MASTER COMPONENT : FAQ ---------- */
/* V1 conservé intégralement */
.faq-container { max-width: 760px; margin: 0 auto; }
.faq-item { background: #ffffff; border: 1px solid var(--gris-clair); border-radius: 8px; margin-bottom: 0.75rem; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: box-shadow 0.3s ease; }
.faq-item[open] { box-shadow: 0 4px 16px rgba(13,31,60,0.1); }
.faq-item summary { padding: 1.2rem 3.5rem 1.2rem 1.4rem; font-family: var(--ff-titre); font-weight: 700; font-size: 1.05rem; color: var(--bleu); cursor: pointer; list-style: none; position: relative; line-height: 1.4; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); color: var(--orange); font-size: 1.8rem; font-family: var(--ff-titre); font-weight: 900; line-height: 1; transition: transform 0.3s ease; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-content { padding: 0 1.4rem 1.4rem; color: var(--texte); line-height: 1.65; font-size: 0.95rem; }
.faq-content ul { margin-top: 0.5rem; padding-left: 1.5rem; }
.faq-content p { margin-bottom: 0.7rem; }

/* ---------- 8. MEDIA QUERIES GLOBALES ---------- */
@media (min-width: 641px) {
  .nav-links { display: flex; flex-direction: row; position: static; background: transparent; gap: 2rem; padding: 0; }
  .nav-links a { font-size: 1rem; }
  .close-menu, .hamburger { display: none !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  /* V3 : hero padding augmenté à 641px+ — apport V2 (meilleure respiration) */
  .hero { padding: 6rem 0 5rem; }
  /* V3 : étape-num responsive — apport V2 */
  .etape-num { width: 3.5rem; height: 3.5rem; min-width: 3.5rem; font-size: 1.3rem; }
}

@media (min-width: 901px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  /* V3 : offre-grid 3 colonnes en desktop — apport V2 (plus contrôlé que auto-fit) */
  .offre-grid { grid-template-columns: repeat(3, 1fr); }
  /* V3 : hero-ghost visible uniquement desktop — compromis V1 (identité) / V2 (mobile propre) */
  .hero-ghost { display: block; }
}

/* ============================================================
   COMPOSANTS DE PAGE (Accueil & Tarifs)
   ============================================================ */

/* ---------- HERO SECTION ---------- */
/*
  MODIFICATIONS V3 vs V1 :
  - padding mobile : 5.5rem 0 4rem → 4rem 0 5rem (V2 : plus d'air bas)
  - ::after oblique : ajouté depuis V2 (transition visuelle entre hero et section suivante)
  - hero-ghost : masqué mobile par défaut, visible via media query 901px+ (V2)
  - h1 font-size : clamp(2.2rem,5vw,3.6rem) → clamp(2.6rem,6vw,4.2rem) (V2 : plus d'impact)
  - hero-sous-titre font-size : 1.05rem → 1.1rem (V2 : lisibilité)
  - hero-badges margin-top : 2rem → 3rem (V2 : plus d'air)
*/
.hero { padding: 4rem 0 5rem; position: relative; overflow: hidden; }

/* Séparation oblique bas du hero — apport V2 */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--blanc);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.hero-inner { position: relative; z-index: 1; max-width: 740px; }
.hero-surtitre { font-family: var(--ff-titre); font-weight: 700; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; color: var(--jaune); margin-bottom: 1.2rem; display: flex; align-items: center; gap: .7rem; }
.hero-surtitre::before { content: ''; display: inline-block; width: 32px; height: 3px; background: var(--orange); border-radius: 2px; }

/* font-size H1 augmentée — apport V2 (vs V1 : clamp(2.2rem,5vw,3.6rem)) */
h1 { font-family: var(--ff-titre); font-weight: 900; font-size: clamp(2.6rem, 6vw, 4.2rem); color: var(--blanc); line-height: 1.05; margin-bottom: 1.4rem; text-transform: uppercase; letter-spacing: .01em; }
h1 em { font-style: normal; color: var(--orange); }

/* font-size légèrement augmentée — apport V2 (vs V1 : 1.05rem) */
.hero-sous-titre { font-size: 1.1rem; color: var(--gris-clair); max-width: 620px; margin-bottom: 2.4rem; line-height: 1.7; }

/* margin-top augmenté — apport V2 (vs V1 : 2rem) */
.hero-badges { margin-top: 3rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.badge { display: flex; align-items: center; gap: .5rem; font-family: var(--ff-titre); font-size: .9rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gris-clair); }
.badge-icon { width: 22px; height: 22px; fill: var(--orange); flex-shrink: 0; }

/* ghost masqué mobile — compromis V1/V2 ; display:block réactivé via media query 901px+ */
.hero-ghost { display: none; position: absolute; right: -1rem; top: 50%; transform: translateY(-50%); font-family: var(--ff-titre); font-weight: 900; font-size: clamp(180px, 22vw, 340px); color: rgba(255,255,255,.04); line-height: 1; pointer-events: none; user-select: none; letter-spacing: -.02em; }

/* ---------- SECTION TITRES ---------- */
.section { padding: 5.5rem 0; }
.section-titre-bloc { text-align: center; margin-bottom: 3.5rem; }

/* font-size h2 augmentée — apport V2 (vs V1 : clamp(1.8rem,4vw,2.8rem)) */
h2 { font-family: var(--ff-titre); font-weight: 900; font-size: clamp(2rem, 4.5vw, 3rem); text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; color: var(--bleu); }
h2 .accent { color: var(--orange); }
.section-sous-titre { font-size: 1.05rem; color: var(--gris); max-width: 560px; margin: .8rem auto 0; line-height: 1.7; }

/* max-width V1 conservé (800px) + couleur variable V1 conservée (vs V2 : 700px / #444) */
.texte-centre { max-width: 800px; margin: 0 auto; text-align: center; font-size: 1.05rem; line-height: 1.7; color: var(--texte); }
.texte-centre p { margin-bottom: 1.2rem; }
.texte-centre strong { color: var(--bleu); }

/* ---------- CHIFFRES (Accueil) ---------- */
/*
  DÉCISION V3 :
  - fond : var(--bleu-clair) + border-bottom orange conservés (V1 — identité visuelle)
  - padding : 2.8rem 0 (compromis entre V1 : 3rem et V2 : 2.5rem)
  - font-size valeur : 3rem conservé (V1 — plus d'impact vs V2 : 2.8rem)
*/
/* ---------- CHIFFRES (Accueil) ---------- */
/* ---------- CHIFFRES (Accueil) ---------- */
.chiffres { background: var(--orange); padding: 2.8rem 0; }
.chiffres-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; }
.chiffre-valeur { font-family: var(--ff-titre); font-size: 3rem; font-weight: 900; color: var(--blanc); line-height: 1; margin-bottom: .5rem; }
.chiffre-label { font-size: .85rem; color: #fff; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; opacity: 0.9; }
/* ---------- GRILLE PROBLÈMES (Accueil) ---------- */
/*
  MODIFICATIONS V3 vs V1 :
  - border-top → border-left (apport V2 : meilleure lisibilité)
  - text-align: center → supprimé (apport V2 : lecture naturelle gauche-droite)
  - ::before déco coin arrondi (apport V2 : décor discret demandé)
  - hover translateY (apport V2 : interactivité légère)
  - icône : SVG nu → cercle bleu (apport V2 : hiérarchie visuelle)
  - padding réduit (apport V2 : moins dense)
*/
.pb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }

.pb-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--orange); /* V2 : border-left vs border-top V1 */
  position: relative;
  overflow: hidden;
  transition: transform var(--transition);
}

/* Décor coin discret — apport V2 */
.pb-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: var(--orange);
  opacity: .06;
  border-radius: 0 0 0 100%;
}

.pb-card:hover { transform: translateY(-4px); }

/* Icône en cercle bleu — apport V2 */
.pb-icon {
  width: 48px;
  height: 48px;
  background: var(--bleu);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.pb-icon svg { width: 24px; height: 24px; fill: var(--orange); }

.pb-probleme { font-family: var(--ff-titre); font-size: 1.3rem; font-weight: 900; color: var(--bleu); text-transform: uppercase; margin-bottom: .5rem; }
.pb-solution { font-size: .97rem; color: #444; line-height: 1.65; }

/* ---------- ÉTAPES MÉTHODE ---------- */
/*
  MODIFICATIONS V3 vs V1 :
  - fond section : #f0ece4 (apport V2 : séparation visuelle entre sections)
  - ligne verticale ::before (apport V2 : repère sobre)
  - padding 2rem 0 par étape + border-bottom séparateur (apport V2 : respiration)
  - etape-num en rem (apport V2 : plus proportionné)
  - h3 font-size : 1.2rem → 1.6rem (apport V2 : hiérarchie renforcée)
*/
.methode { background: #f0ece4; }

.etapes {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

/* Ligne verticale de repère — apport V2 */
.etapes::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gris-clair);
}

.etape {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}

/* Séparateur entre étapes — apport V2 */
.etape:not(:last-child) { border-bottom: 1px solid var(--gris-clair); }

/* Taille en rem — apport V2 (vs V1 : 45px fixe) */
.etape-num {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  background: var(--bleu);
  color: var(--blanc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-titre);
  font-size: 1.1rem;
  font-weight: 900;
  flex-shrink: 0;
  border: 2px solid var(--orange);
}

/* font-size h3 augmentée — apport V2 (vs V1 : 1.2rem) */
.etape-contenu h3 { font-family: var(--ff-titre); font-size: 1.6rem; font-weight: 900; color: var(--bleu); text-transform: uppercase; margin-bottom: .4rem; }
.etape-contenu p { font-size: .97rem; color: #555; line-height: 1.65; }
.etape-contenu ul { list-style: none; padding: 0; margin-top: .8rem; }
.etape-contenu ul li { position: relative; padding-left: 1.2rem; margin-bottom: .4rem; font-size: .95rem; color: #555; }
.etape-contenu ul li::before { content: '•'; position: absolute; left: 0; color: var(--orange); font-weight: bold; }

/* ---------- OFFRES (Accueil & Tarifs) ---------- */
/*
  MODIFICATIONS V3 vs V1 :
  - ::before texture diagonale (apport V2 : texture demandée)
  - offre-grid : 1fr mobile → repeat(3,1fr) à 901px+ via media query (apport V2 : plus contrôlé)
  - featured::before badge "⚡ Déclencheur au résultat" (apport V2 : demandé explicitement)
  - btn width: 100% dans carte (apport V2 : mobile)
  - offre-header margin-bottom : 3.5rem → 3rem (apport V2 : légère densité)
*/
.offre { background: var(--bleu); position: relative; overflow: hidden; padding: 5.5rem 0; }

/* Texture diagonale — apport V2 */
.offre::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 30px,
    rgba(255,255,255,.02) 30px,
    rgba(255,255,255,.02) 60px
  );
  pointer-events: none;
}

.offre-inner { position: relative; z-index: 1; }
.offre-header { text-align: center; margin-bottom: 3rem; }
.offre-header h2 { color: var(--blanc); }

.offre-tag { display: inline-flex; align-items: center; gap: .5rem; background: rgba(245,124,0,.15); border: 1px solid var(--orange); color: var(--orange); font-family: var(--ff-titre); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .9rem; border-radius: 3px; margin-bottom: 1.5rem; }

/* Mobile : 1 colonne — desktop : via media query 901px+ */
.offre-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }

.offre-carte { background: #fff; border-radius: 12px; padding: 2.5rem 2rem; box-shadow: 0 12px 48px rgba(0,0,0,.35); position: relative; }
.offre-carte.featured { border: 2px solid var(--orange); }

/* Badge "Déclencheur au résultat" — apport V2 */
.offre-carte.featured::before {
  content: '⚡ Déclencheur au résultat';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-family: var(--ff-titre);
  font-weight: 900;
  font-size: .8rem;
  letter-spacing: .12em;
  padding: .4rem 1.2rem;
  border-radius: 20px;
  white-space: nowrap;
}

.offre-carte h3 { font-family: var(--ff-titre); font-size: 1.6rem; font-weight: 900; color: var(--bleu); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5rem; }
.offre-carte .prix { font-family: var(--ff-titre); font-size: 3.2rem; font-weight: 900; color: var(--orange); line-height: 1; margin: 1.2rem 0 .3rem; }
.offre-carte .prix span { font-size: 1.1rem; color: var(--gris); font-weight: 500; }
.offre-carte-periode { font-size: .85rem; color: var(--gris); margin-bottom: 1rem; }
.offre-carte-desc { font-size: .92rem; color: #555; line-height: 1.6; margin-bottom: 1.2rem; }
.offre-garantie { display: flex; align-items: flex-start; gap: .5rem; background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.25); border-radius: 4px; padding: .8rem; font-size: .82rem; color: #16a34a; line-height: 1.5; margin-bottom: 1.2rem; }
.offre-garantie svg { flex-shrink: 0; margin-top: 1px; }
.offre-carte-liste { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.offre-carte-liste li { display: flex; gap: .6rem; font-size: .95rem; color: #333; line-height: 1.45; }
.offre-carte-liste li::before { content: '✓'; color: var(--orange); font-weight: 700; flex-shrink: 0; }

/* Bouton pleine largeur dans les cartes — apport V2 */
.offre-carte .btn { width: 100%; font-size: 1.05rem; padding: 1rem; }

/* ---------- CTA FINAL ---------- */
/*
  MODIFICATIONS V3 vs V1 :
  - ::before texture diagonale (apport V2 : texture demandée)
  - p margin-bottom : 1.2rem → 2.5rem (apport V2 : plus d'air avant le bouton)
  - btn-dark taille augmentée (apport V2 : CTA plus impactant)
*/
.cta-final { background: var(--orange); padding: 5rem 0; text-align: center; position: relative; overflow: hidden; }

/* Texture diagonale CTA — apport V2 */
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(0,0,0,.05) 20px,
    rgba(0,0,0,.05) 40px
  );
}

.cta-final-inner { position: relative; z-index: 1; }
.cta-final h2 { color: #fff; margin-bottom: .8rem; }

/* margin-bottom augmenté — apport V2 (vs V1 : 1.2rem) */
.cta-final p { color: rgba(255,255,255,.88); font-size: 1.1rem; max-width: 540px; margin: 0 auto 2.5rem; }

/* Taille CTA augmentée — apport V2 */
.cta-final .btn-dark { font-size: 1.2rem; padding: 1.1rem 2.5rem; }