/* Gabarit des fiches projet /realisations/{slug} (113 pages) — CSS strictement
   identique sur toutes les fiches source (verifie par hash), un seul fichier
   pour tout le lot. Le hero de cette page N'EST PAS .hero-v2 (contrairement a
   tout le reste du chantier) : c'est un .hero classique centre avec badge de
   categorie + 4 stats, propre a ce gabarit.
   CSS mort confirme non repris (present dans le head source mais aucune
   classe correspondante dans le body reel) : .similar-projects/.projects-grid/
   .project-card (variante de cette page — pas celle du gabarit listing),
   .hub-links-section et ses enfants (le bloc "LIENS VERS HUBS SEO" du body
   utilise en realite .seo-bottom avec des styles inline, jamais ces classes),
   .seo-content-realisation, .project-content et ses enfants (.project-intro/
   .project-details/.project-challenge/.project-solution/.project-highlights),
   .faq-grid et le motif <details>/<summary>/[open] (le body utilise des
   <div class="faq-item"> statiques, jamais <details>).
   Plusieurs blocs (.content-section, .faq-section/.faq-item, .keywords-section/
   .keyword-tag, .maillage-section) sont redefinis 2-3 fois dans la source avec
   des valeurs legerement differentes (patchs successifs) — la cascade finale
   ci-dessous reconcile ces couches en UNE version (propriete par propriete,
   la derniere declaration l'emporte a specificite egale), pas les 2-3 versions
   redondantes. */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #8a6248;
  --primary-light: #eee2d7;
  --primary-dark: #684735;
  --text: #2D2D2D;
  --text-light: #6B7280;
  --bg: #FFFFFF;
  --bg-light: #f3ede5;
  --success: #10B981;
  --radius: 12px;
}

/* line-height 1.6 (pas le 1.7 de la source) : la valeur de body est heritee
   par <header>/<footer> (siblings de <main> montes par load-components.js,
   header-styles.css ne fixe pas sa propre line-height sur les liens de nav) —
   1.7 ici rendait le header ~1.3px plus haut que sur le reste du site. 1.6
   est la valeur commune a toutes les autres pages migrees ; le texte reel des
   sections (.content-section p, .faq-item p...) garde son propre line-height
   explicite plus genereux, inchange par ce choix. */
body { font-family: 'Poppins', sans-serif; color: var(--text); line-height: 1.6; background: var(--bg); }

/* HERO (centre — fusion de la regle de base + du calque "hero-centre" toujours applique) */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; padding: 50px 20px; text-align: center; }
.hero .container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.2); padding: 6px 16px; border-radius: 50px; font-size: 14px; font-weight: 500; margin-bottom: 15px; }
.hero h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; line-height: 1.2; margin-bottom: 12px; max-width: 22ch; margin-inline: auto; }
.hero h1 span { color: #FFD700; }
.hero-subtitle { color: #FFF; font-size: 17px; opacity: 0.95; max-width: 700px; margin-bottom: 25px; margin-inline: auto; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; max-width: 800px; margin-inline: auto; justify-content: center; }
.stat-card { background: rgba(255,255,255,0.15); padding: 18px 15px; border-radius: var(--radius); text-align: center; }
.stat-icon { font-size: 22px; display: block; margin-bottom: 6px; }
.stat-value { font-size: 22px; font-weight: 700; display: block; }
.stat-label { font-size: 12px; opacity: 0.85; }
@media (max-width: 600px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* MAIN LAYOUT */
.main-content { max-width: 1200px; margin: 0 auto; padding: 40px 20px; display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
@media (max-width: 900px) { .main-content { grid-template-columns: 1fr; } }
article { min-width: 0; }

/* GALLERY */
.gallery { margin-bottom: 35px; position: relative; }
.gallery h2 { font-size: 22px; margin-bottom: 15px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 140px); gap: 8px; }
.gallery-item { border-radius: 8px; overflow: hidden; cursor: pointer; position: relative; }
.gallery-item.main { grid-column: 1 / 3; grid-row: 1 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .gallery-item.main { grid-column: 1 / 3; }
  .gallery-item img { height: 160px; }
  .gallery-item.main img { height: 250px; }
}

/* VISITE VIRTUELLE (presente sur ~90% des fiches, element conditionnel normal) */
.visite-virtuelle-box { display: flex; align-items: center; gap: 20px; background: linear-gradient(135deg, var(--primary-light) 0%, #eee2d7 100%); border: 2px solid var(--primary); border-radius: var(--radius); padding: 18px 24px; margin-top: 15px; }
.visite-virtuelle-box .vv-icon { width: 56px; height: 56px; min-width: 56px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(138, 98, 72, 0.15); }
.visite-virtuelle-box .vv-icon svg { width: 28px; height: 28px; fill: var(--primary); }
.visite-virtuelle-box .vv-content { flex: 1; }
.visite-virtuelle-box .vv-content h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.visite-virtuelle-box .vv-content p { font-size: 14px; color: var(--text-light); margin: 0; }
.btn-visite-360 { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: white; padding: 12px 24px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 14px; transition: all 0.3s; white-space: nowrap; box-shadow: 0 4px 12px rgba(138, 98, 72, 0.3); }
.btn-visite-360:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(138, 98, 72, 0.4); }
@media (max-width: 600px) { .visite-virtuelle-box { flex-direction: column; text-align: center; gap: 15px; } }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 9999; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox-content { position: relative; max-width: 90%; max-height: 90%; }
.lightbox-content img { max-width: 100%; max-height: 85vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: -40px; right: 0; background: none; border: none; color: white; font-size: 32px; cursor: pointer; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2); border: none; color: white; font-size: 24px; padding: 15px 20px; cursor: pointer; border-radius: 8px; }
.lightbox-nav.prev { left: -60px; }
.lightbox-nav.next { right: -60px; }
.lightbox-counter { position: absolute; bottom: -35px; left: 50%; transform: translateX(-50%); color: white; font-size: 14px; }
@media (max-width: 768px) { .lightbox-nav { display: none; } }

/* CONTENT SECTIONS (valeurs finales apres reconciliation des couches) */
.content-section { margin-bottom: 40px; }
.content-section h2 { font-size: 26px; margin-bottom: 20px; color: var(--text); }
.content-section h3 { font-size: 20px; margin: 25px 0 15px; color: var(--text); }
.content-section p { margin-bottom: 15px; line-height: 1.7; }
.content-section a { color: var(--primary); }

/* CHECKLIST */
.checklist { list-style: none; margin: 20px 0; }
.checklist li { padding: 12px 0 12px 35px; position: relative; border-bottom: 1px solid #eee; line-height: 1.6; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; font-size: 18px; }
.checklist li:last-child { border-bottom: none; }

/* FAQ (statique, div/h3/p — pas d'accordeon JS) */
.faq-section { margin: 35px 0; }
.faq-section h2 { font-size: 24px; margin-bottom: 20px; text-align: center; }
.faq-item { background: var(--bg-light); border: 2px solid #E5E7EB; border-radius: var(--radius); padding: 20px; margin-bottom: 15px; overflow: hidden; }
.faq-item h3 { font-size: 16px; color: var(--primary); margin-bottom: 10px; }
.faq-item p { font-size: 15px; margin: 0; line-height: 1.7; }

/* KEYWORDS TAGS */
.keywords-section { margin: 25px 0; }
.keywords-section h3 { font-size: 16px; margin-bottom: 12px; color: var(--text-light); }
.keywords-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.keyword-tag { display: inline-block; background: var(--primary-light); color: var(--primary); padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; margin: 4px 4px 4px 0; }

/* MAILLAGE */
.maillage-section { background: var(--bg-light); border-radius: var(--radius); padding: 25px; margin: 30px 0; }
.maillage-section h3 { font-size: 16px; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.maillage-group { margin-bottom: 12px; }
.maillage-label { font-weight: 500; color: var(--text-light); font-size: 14px; margin-right: 10px; }
.maillage-links { display: inline; }
.maillage-link { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; background: white; color: var(--primary); border-radius: 16px; font-size: 13px; text-decoration: none; margin: 3px 6px 3px 0; transition: all 0.3s; }
.maillage-link:hover { background: var(--primary); color: white; }

/* SIDEBAR */
.sidebar { position: sticky; top: 20px; height: fit-content; }
.sidebar-card { background: white; border-radius: var(--radius); box-shadow: 0 4px 20px rgba(0,0,0,0.1); margin-bottom: 20px; overflow: hidden; }
.sidebar-card-header { background: var(--primary); color: white; padding: 22px; text-align: center; }
.sidebar-card-header h3 { margin-bottom: 8px; font-size: 16px; }
.sidebar-card-header .price { font-size: 30px; font-weight: 700; }
.sidebar-card-header .loa { font-size: 14px; opacity: 0.9; }
.sidebar-card-body { padding: 22px; }
.sidebar-features { list-style: none; margin-bottom: 18px; }
.sidebar-features li { padding: 9px 0 9px 26px; position: relative; border-bottom: 1px solid #eee; font-size: 14px; }
.sidebar-features li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* Boutons propres a ce gabarit (sidebar) — remplacent le style .btn-moltow
   global sur cette page uniquement (chargee apres les bundles globaux, gagne
   par ordre de source a specificite egale, meme mecanisme que moltow-buttons.css). */
.btn-moltow { display: flex; align-items: center; justify-content: center; width: 100%; background: var(--primary); color: white; text-align: center; padding: 0 20px; border-radius: 16px; text-decoration: none; font-weight: 500; font-size: 15px; height: 46px; transition: all 0.3s; box-shadow: 0 4px 12px rgba(138, 98, 72, 0.3); }
.btn-moltow:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-moltow-secondary { display: flex; align-items: center; justify-content: center; width: 100%; background: white; color: var(--primary); text-align: center; padding: 0 20px; border-radius: 16px; text-decoration: none; font-weight: 500; font-size: 15px; border: 2px solid var(--primary); margin-top: 10px; height: 46px; }
.btn-moltow-icon { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: white; color: var(--primary); text-align: center; padding: 0 20px; border-radius: 16px; text-decoration: none; font-weight: 500; font-size: 15px; border: 2px solid var(--primary); margin-top: 10px; height: 46px; }

/* SEO bas de page (section .seo-bottom, entierement en styles inline dans le
   body source — aucune regle CSS necessaire ici). */
