/**
 * NewtonDiag — Feuille de style principale
 * ─────────────────────────────────────────
 * CSS migré tel quel depuis l'index.html React + ajouts techniques.
 *
 * CHEMIN HOSTINGER : public_html/assets/css/style.css
 */

/* ══════════════════════════════════════════════════════════════════
   RESET & VARIABLES
   ══════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a3566;
  --midnight: #0d1f3c;
  --gold: #c9a96e;
  --gold-light: #d9bf8e;
  --ivory: #fffbee;
  --ivory-dark: #fff5d6;
  --text: #3a3d44;
  --text-light: #6b7280;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); }

/* G3. Accessibilité — Skip to content */
.skip-nav {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy); padding: 0.75rem 1.5rem;
  border-radius: 0 0 0.5rem 0.5rem; font-weight: 700; z-index: 999;
  text-decoration: none; font-size: 0.85rem; transition: top 0.2s;
}
.skip-nav:focus { top: 0; }

/* G3. Accessibilité — Focus states visibles */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.nav-link:focus-visible, .mobile-link:focus-visible, .dropdown-link:focus-visible { outline-offset: 4px; }

/* ══════════════════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════════════════ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.text-center { text-align: center; }

/* ══════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════════════════════════════════════ */
.serif { font-family: 'Playfair Display', serif; }
h1, h2 { font-family: 'Playfair Display', serif; }
.italic { font-style: italic; }
.gold { color: var(--gold); }
.navy { color: var(--navy); }
.white { color: var(--white); }

/* ══════════════════════════════════════════════════════════════════
   BACKGROUNDS
   ══════════════════════════════════════════════════════════════════ */
.bg-midnight { background: var(--midnight); }
.bg-navy { background: var(--navy); }
.bg-navy-grad { background: linear-gradient(135deg, var(--midnight) 0%, var(--navy) 100%); }
.bg-ivory { background: var(--ivory); }
.bg-white { background: var(--white); }

/* ══════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 2rem; border-radius: 9999px; font-weight: 600;
  font-size: 1rem; cursor: pointer; text-decoration: none;
  transition: all 0.2s ease; border: none; font-family: 'Inter', sans-serif;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-navy { background: var(--navy); color: var(--white); border: 2px solid var(--white); }
.btn-navy:hover { background: #152d58; }
.btn-navy-solid { background: var(--navy); color: var(--white); }
.btn-navy-solid:hover { background: #152d58; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.125rem; }
.btn-full { width: 100%; border-radius: 0.75rem; }

/* ══════════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════════ */
#header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 1rem; max-width: 1200px; margin: 0 auto;
}
.logo-img { height: 64px; width: auto; object-fit: contain; }
.nav-desktop { display: flex; align-items: center; gap: 1.5rem; }
.nav-link {
  color: #fffbee; font-weight: 500; text-decoration: none;
  font-size: 0.9rem; transition: color 0.2s; padding: 0.25rem 0.5rem;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-stars { color: var(--gold); font-size: 0.75rem; }

/* B4. Téléphone dans le header */
.nav-phone {
  background: rgba(201,169,110,0.15); border-radius: 9999px;
  padding: 0.35rem 0.85rem; font-size: 0.82rem; white-space: nowrap;
}
.nav-phone:hover { background: rgba(201,169,110,0.25); color: var(--gold); }
.phone-icon { margin-right: 0.25rem; }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fffbee; margin: 5px 0; transition: all 0.3s; }

/* Mobile menu */
.mobile-menu {
  display: none; flex-direction: column; gap: 0.25rem;
  padding: 1rem; border-top: 1px solid rgba(201,169,110,0.3);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  color: #fffbee; text-decoration: none; padding: 0.6rem 0.75rem;
  border-radius: 0.5rem; font-weight: 500; transition: all 0.2s;
}
.mobile-link:hover { color: var(--gold); background: rgba(255,255,255,0.05); }
.mobile-phone { color: var(--gold); font-weight: 600; margin-top: 0.5rem; }

/* ── Dropdown (B1 — délai 300ms + zone tampon) ── */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 0.5rem); left: 0;
  background: var(--white); border: 1px solid var(--gold);
  border-radius: 0.5rem; min-width: 220px; padding: 0.5rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 200;
}
.nav-dropdown::after {
  content: ''; position: absolute;
  top: 100%; left: 0; width: 100%; height: 0.75rem;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-link {
  display: block; padding: 0.6rem 1rem; color: var(--navy);
  text-decoration: none; font-size: 0.9rem; transition: all 0.15s;
}
.dropdown-link:hover { background: var(--ivory); color: var(--gold); }
.chevron { font-size: 0.7rem; margin-left: 0.25rem; }

/* G1. Bandeau sticky mobile */
.mobile-sticky-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 99; background: var(--navy); padding: 0.6rem 0.75rem;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.2);
  gap: 0.5rem;
}
.mobile-bar-btn {
  flex: 1; text-align: center; padding: 0.65rem; border-radius: 9999px;
  font-weight: 600; font-size: 0.85rem; text-decoration: none;
  transition: all 0.2s;
}
.mobile-bar-call { background: var(--white); color: var(--navy); }
.mobile-bar-whatsapp { background: #25d366; color: var(--white); }
.mobile-bar-devis { background: var(--gold); color: var(--navy); }

/* ══════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13,31,60,0.45), rgba(13,31,60,0.3));
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 2rem 1rem; max-width: 900px; }
.hero-title { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--white); margin-bottom: 1.25rem; line-height: 1.2; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero-sub { font-size: clamp(1rem, 2vw, 1.3rem); color: rgba(255,255,255,0.92); margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-badges { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 0.4rem; color: rgba(255,255,255,0.88); font-size: 0.85rem; }
.hero-badge .check { color: var(--gold); }

/* ══════════════════════════════════════════════════════════════════
   GRIDS & CARDS
   ══════════════════════════════════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* Diagnostic cards (8 cartes homepage) */
.diag-card {
  background: var(--navy); border: 2px solid transparent;
  border-radius: 1rem; padding: 1.5rem; text-align: center;
  transition: all 0.3s; cursor: pointer; text-decoration: none; display: block;
}
.diag-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.2); }
.diag-icon {
  width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem;
  background: rgba(201,169,110,0.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; transition: background 0.3s;
}
.diag-card:hover .diag-icon { background: rgba(201,169,110,0.3); }
.diag-title { color: var(--white); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.25rem; }
.diag-subtitle { color: var(--gold); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 0.75rem; }
.diag-desc { color: rgba(255,255,255,0.72); font-size: 0.78rem; line-height: 1.5; }

/* Category cards */
.cat-card {
  background: #1e3d6e; border: 2px solid rgba(201,169,110,0.2);
  border-radius: 1rem; padding: 1.5rem; text-align: center;
  text-decoration: none; display: block; transition: all 0.3s;
}
.cat-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.25); }
.cat-title { color: var(--white); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.25rem; transition: color 0.2s; }
.cat-card:hover .cat-title { color: var(--gold); }
.cat-count { color: var(--gold); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 0.75rem; }
.cat-list { list-style: none; text-align: left; }
.cat-list li { display: flex; align-items: center; gap: 0.35rem; color: rgba(255,255,255,0.7); font-size: 0.78rem; margin-bottom: 0.25rem; }
.cat-list li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.more-items { color: var(--gold); font-size: 0.75rem; padding-left: 1rem; }

/* ══════════════════════════════════════════════════════════════════
   PRICING
   ══════════════════════════════════════════════════════════════════ */
.price-card {
  background: rgba(255,255,255,0.05); backdrop-filter: blur(8px);
  border: 2px solid rgba(201,169,110,0.3); border-radius: 1rem;
  padding: 2rem; transition: all 0.3s; height: 100%;
}
.price-card.popular { border-color: var(--gold); transform: translateY(-8px); }
.price-card:hover { border-color: var(--gold); }
.badge-pop { background: var(--gold); color: var(--navy); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; padding: 0.2rem 0.75rem; border-radius: 9999px; display: inline-block; margin-bottom: 1rem; }
.price-title { color: var(--white); font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }
.price-amount { color: var(--gold); font-size: 1.6rem; font-weight: 700; text-align: center; margin-bottom: 1.5rem; }
.price-features { list-style: none; margin-bottom: 2rem; }
.price-features li { display: flex; align-items: flex-start; gap: 0.5rem; color: rgba(255,255,255,0.8); font-size: 0.85rem; margin-bottom: 0.75rem; }
.price-features li::before { content: '✓'; color: var(--gold); font-weight: 700; margin-top: 0.1rem; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════════
   TABLE
   ══════════════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; border-radius: 1rem; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 0.875rem; }
thead tr { background: var(--navy); color: var(--white); }
th { padding: 1rem 1.25rem; text-align: left; font-weight: 600; }
th:not(:first-child) { text-align: center; }
td { padding: 0.75rem 1.25rem; border-bottom: 1px solid #f0f0f0; color: var(--text); }
td:not(:first-child) { text-align: center; }
tr:nth-child(even) td { background: var(--ivory); }
tr:hover td { background: rgba(201,169,110,0.08); }
.check-green { color: #16a34a; font-weight: 700; font-size: 1.1rem; }
.cross-red { color: #dc2626; font-weight: 700; font-size: 1.1rem; }
td:first-child { font-weight: 500; color: var(--navy); }
.table-note { font-size: 0.78rem; color: var(--text-light); margin-top: 0.75rem; text-align: center; }

/* ══════════════════════════════════════════════════════════════════
   REVIEWS CAROUSEL
   ══════════════════════════════════════════════════════════════════ */
.carousel-wrap { overflow: hidden; width: 100%; cursor: default; }
.carousel-track { display: flex; gap: 1.25rem; width: max-content; will-change: transform; }
.review-card {
  width: 320px; flex-shrink: 0; background: var(--white);
  border-radius: 1rem; padding: 1.5rem; border: 1px solid rgba(201,169,110,0.15);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07); transition: box-shadow 0.2s;
}
.review-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.12); }
.stars { color: var(--gold); font-size: 1rem; margin-bottom: 0.75rem; }
.review-text { color: #2d3a5c; font-size: 0.85rem; font-style: italic; line-height: 1.6; margin-bottom: 1rem; }
.review-footer { border-top: 1px solid rgba(201,169,110,0.2); padding-top: 0.75rem; display: flex; justify-content: space-between; align-items: center; }
.review-author { font-weight: 700; color: var(--navy); font-size: 0.85rem; }
.review-date { font-size: 0.75rem; color: var(--text-light); }

/* ══════════════════════════════════════════════════════════════════
   SECTION TITLES
   ══════════════════════════════════════════════════════════════════ */
.section-title { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1rem; }
.section-sub { color: var(--text-light); font-size: 1.05rem; margin-bottom: 3rem; }
.section-sub.white { color: rgba(255,255,255,0.75); }
.link-gold { color: var(--gold); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; font-weight: 600; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 1rem; transition: color 0.2s; }
.link-gold:hover { color: var(--gold-light); }

/* ══════════════════════════════════════════════════════════════════
   SEO SECTION
   ══════════════════════════════════════════════════════════════════ */
.seo-section { background: var(--white); padding: 4rem 0; }
.seo-title { font-size: 1.6rem; color: var(--navy); margin-bottom: 1.5rem; text-align: center; }
.seo-text { color: #4a4f5a; line-height: 1.8; font-size: 0.95rem; max-width: 860px; margin: 0 auto; }
.seo-text p { margin-bottom: 1rem; }
.seo-text strong { color: var(--navy); }

/* ══════════════════════════════════════════════════════════════════
   FAQ CARDS & ACCORDION
   ══════════════════════════════════════════════════════════════════ */
.faq-card { background: var(--ivory); border: 1px solid rgba(201,169,110,0.15); border-radius: 0.75rem; padding: 1.25rem; margin-bottom: 1rem; }
.faq-q { font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.faq-a { font-size: 0.875rem; color: var(--text); line-height: 1.6; }

/* FAQ accordion style (C8) */
.faq-accordion { border: 1px solid rgba(201,169,110,0.15); border-radius: 0.75rem; overflow: hidden; margin-bottom: 0.75rem; }
.faq-accordion summary {
  padding: 1rem 1.25rem; font-weight: 700; color: var(--navy);
  cursor: pointer; background: var(--ivory); list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.2s;
}
.faq-accordion summary:hover { background: var(--ivory-dark); }
.faq-accordion summary::after { content: '+'; font-size: 1.25rem; color: var(--gold); font-weight: 700; transition: transform 0.2s; }
.faq-accordion[open] summary::after { content: '−'; }
.faq-accordion .faq-answer { padding: 1rem 1.25rem; font-size: 0.875rem; color: var(--text); line-height: 1.65; background: var(--white); }

/* ══════════════════════════════════════════════════════════════════
   PAGE CARDS (diagnostic detail pages)
   ══════════════════════════════════════════════════════════════════ */
.page-card { overflow: hidden; border-radius: 1rem; background: var(--white); box-shadow: 0 2px 16px rgba(0,0,0,0.06); border: 1px solid rgba(201,169,110,0.1); transition: all 0.3s; height: 100%; text-decoration: none; display: block; }
.page-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.12); transform: translateY(-4px); }
.card-header { height: 7rem; background: linear-gradient(135deg, var(--midnight), var(--navy)); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.card-body { padding: 1.25rem; }
.card-title { font-weight: 700; color: var(--navy); margin-bottom: 0.25rem; font-size: 0.95rem; }
.card-sub { color: var(--gold); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 0.6rem; }
.card-desc { color: var(--text); font-size: 0.8rem; line-height: 1.55; }

/* ══════════════════════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════════════════════ */
.form-section { background: var(--ivory); padding: 5rem 0; }
.form-card { background: var(--white); border-radius: 1rem; padding: 2rem; box-shadow: 0 4px 24px rgba(0,0,0,0.08); border: 1px solid rgba(201,169,110,0.15); }
.form-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--navy); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--navy); margin-bottom: 0.35rem; }
.req { color: #dc2626; margin-left: 0.2rem; }
input, select, textarea {
  width: 100%; padding: 0.65rem 0.85rem; border: 1px solid rgba(26,53,102,0.2);
  border-radius: 0.5rem; font-size: 0.875rem; font-family: 'Inter', sans-serif;
  transition: all 0.2s; color: var(--text); background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,110,0.15); }
input.error, select.error { border-color: #dc2626; background: #fef2f2; }
.error-msg { color: #dc2626; font-size: 0.75rem; margin-top: 0.25rem; }
.checkboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.checkbox-item { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.checkbox-item input[type="checkbox"] { width: auto; accent-color: var(--gold); }
.checkbox-item label { margin: 0; font-weight: 400; cursor: pointer; }
.radio-group { display: flex; gap: 1.5rem; }
.radio-item { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.radio-item input { width: auto; accent-color: var(--gold); }
.submit-note { font-size: 0.78rem; color: var(--text-light); margin-bottom: 0.75rem; }
.success-box { text-align: center; padding: 3rem 1rem; }
.success-box .icon { font-size: 4rem; margin-bottom: 1rem; }
.error-box { text-align: center; padding: 2rem 1rem; }

/* Honeypot */
.ohnohoney { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ══════════════════════════════════════════════════════════════════
   SIDEBAR (devis)
   ══════════════════════════════════════════════════════════════════ */
.sidebar-card { background: var(--navy); border-radius: 1rem; padding: 1.5rem; color: var(--white); }
.sidebar-title { color: var(--gold); font-weight: 700; font-size: 1.1rem; margin-bottom: 1.25rem; }
.sidebar-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.sidebar-item .check { color: var(--gold); font-weight: 700; margin-top: 0.1rem; flex-shrink: 0; }
.sidebar-item-title { font-weight: 600; font-size: 0.85rem; }
.sidebar-item-desc { color: rgba(255,255,255,0.65); font-size: 0.75rem; margin-top: 0.15rem; }
.sidebar-divider { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1rem; margin-top: 1rem; }
.sidebar-label { color: var(--gold); font-weight: 600; font-size: 0.85rem; margin-bottom: 0.5rem; }
.sidebar-link { display: flex; align-items: center; gap: 0.5rem; color: var(--white); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.sidebar-link:hover { color: var(--gold); }
.sidebar-hours { background: var(--white); border-radius: 0.75rem; padding: 1rem; margin-top: 1rem; }
.hours-title { font-weight: 600; color: var(--navy); font-size: 0.85rem; margin-bottom: 0.25rem; }
.hours-val { color: var(--text-light); font-size: 0.85rem; }

/* ══════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════ */
footer { background: var(--midnight); color: var(--ivory); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 2rem; }
.footer-logo { height: 56px; width: auto; object-fit: contain; margin-bottom: 0.75rem; }
.footer-desc { font-size: 0.8rem; opacity: 0.75; line-height: 1.6; margin-bottom: 0.75rem; }
.footer-stars { color: var(--gold); font-size: 0.9rem; }
.footer-head { color: var(--gold); font-weight: 600; font-size: 0.95rem; margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,251,238,0.8); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.6rem; font-size: 0.82rem; }
.footer-contact a { color: rgba(255,251,238,0.8); text-decoration: none; transition: color 0.2s; }
.footer-contact a:hover { color: var(--gold); }
.footer-icon { color: var(--gold); flex-shrink: 0; margin-top: 0.1rem; }
/* I1. QR code agrandi (150×150 desktop, 120×120 mobile) */
.footer-qr { width: 150px; height: 150px; border-radius: 0.5rem; margin-top: 0.75rem; }
.footer-qr-note { font-size: 0.7rem; opacity: 0.6; margin-top: 0.3rem; }
.footer-bottom { border-top: 1px solid rgba(201,169,110,0.2); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; opacity: 0.7; flex-wrap: wrap; gap: 0.5rem; }

/* ══════════════════════════════════════════════════════════════════
   PAGE HERO (sub-pages)
   ══════════════════════════════════════════════════════════════════ */
.page-hero { background: linear-gradient(135deg, var(--midnight), var(--navy)); padding: 5rem 0; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.78); font-size: 1.1rem; max-width: 700px; margin: 0 auto 2rem; }

/* ══════════════════════════════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════════════════════════════ */
.cta-section { background: var(--navy); padding: 4rem 0; text-align: center; }
.cta-title { font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--white); margin-bottom: 1.5rem; }

/* ══════════════════════════════════════════════════════════════════
   CONTACT INFO CARDS
   ══════════════════════════════════════════════════════════════════ */
.info-card { background: var(--white); border: 1px solid rgba(201,169,110,0.15); border-radius: 0.75rem; padding: 1rem; display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; box-shadow: 0 1px 8px rgba(0,0,0,0.04); }
.info-icon { width: 2.5rem; height: 2.5rem; background: rgba(26,53,102,0.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.info-label { font-size: 0.7rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; }
.info-val { font-weight: 600; color: var(--navy); text-decoration: none; transition: color 0.2s; }
.info-val:hover { color: var(--gold); }
.zone-card { background: var(--white); border: 1px solid rgba(201,169,110,0.15); border-radius: 0.75rem; padding: 1.25rem; box-shadow: 0 1px 8px rgba(0,0,0,0.04); }
.zone-title { font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.zone-text { font-size: 0.82rem; color: var(--text); line-height: 1.7; }
.qr-block { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(201,169,110,0.15); }
.qr-block img { width: 100px; height: 100px; border-radius: 0.5rem; border: 1px solid rgba(201,169,110,0.2); }
.qr-text strong { display: block; color: var(--navy); font-size: 0.85rem; margin-bottom: 0.25rem; }
.qr-text small { color: var(--text-light); font-size: 0.75rem; }

/* ══════════════════════════════════════════════════════════════════
   BREADCRUMB (B5)
   ══════════════════════════════════════════════════════════════════ */
.breadcrumb-nav { background: var(--ivory); padding: 0.75rem 0; border-bottom: 1px solid rgba(201,169,110,0.12); }
.breadcrumb-list { display: flex; align-items: center; flex-wrap: wrap; list-style: none; gap: 0.25rem; }
.breadcrumb-item { font-size: 0.8rem; color: var(--text-light); }
.breadcrumb-item a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
.breadcrumb-item a:hover { color: var(--gold); }
.breadcrumb-sep { margin: 0 0.35rem; color: var(--gold); font-weight: 600; }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* ══════════════════════════════════════════════════════════════════
   DIAGNOSTIC INDIVIDUAL PAGES
   ══════════════════════════════════════════════════════════════════ */
.diag-detail-section { padding: 3rem 0; }
.diag-detail-content { max-width: 820px; margin: 0 auto; }
.diag-detail-content h2 { font-family: 'Playfair Display', serif; color: var(--navy); font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.diag-detail-content h3 { color: var(--navy); font-size: 1.1rem; margin: 1.5rem 0 0.75rem; font-weight: 600; }
.diag-detail-content p { color: var(--text); line-height: 1.75; margin-bottom: 1rem; font-size: 0.95rem; }
.diag-detail-content ul { list-style: none; margin-bottom: 1.5rem; }
.diag-detail-content ul li { padding: 0.35rem 0; padding-left: 1.25rem; position: relative; color: var(--text); font-size: 0.92rem; }
.diag-detail-content ul li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* Validity badge */
.validity-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--ivory); border: 1px solid rgba(201,169,110,0.2);
  border-radius: 9999px; padding: 0.5rem 1.25rem; font-size: 0.85rem;
  color: var(--navy); font-weight: 600; margin: 1rem 0;
}
.validity-badge .badge-icon { color: var(--gold); font-size: 1.1rem; }

/* Internal links section */
.internal-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.internal-links a {
  display: inline-block; padding: 0.4rem 0.85rem; border-radius: 9999px;
  background: rgba(26,53,102,0.06); color: var(--navy); font-size: 0.8rem;
  text-decoration: none; font-weight: 500; transition: all 0.2s;
}
.internal-links a:hover { background: var(--gold); color: var(--navy); }

/* ══════════════════════════════════════════════════════════════════
   PROCESS STEPS (comment-ca-marche)
   ══════════════════════════════════════════════════════════════════ */
.step-card {
  background: var(--white); border: 1px solid rgba(201,169,110,0.12);
  border-radius: 1rem; padding: 2rem 1.5rem; text-align: center;
  position: relative; transition: all 0.3s;
}
.step-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.step-number {
  width: 3rem; height: 3rem; background: var(--gold); color: var(--navy);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.2rem; margin: 0 auto 1rem;
  font-family: 'Playfair Display', serif;
}
.step-title { font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; font-size: 1.05rem; }
.step-desc { color: var(--text); font-size: 0.85rem; line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════════
   GLOSSARY
   ══════════════════════════════════════════════════════════════════ */
.glossary-term { background: var(--white); border: 1px solid rgba(201,169,110,0.12); border-radius: 0.75rem; padding: 1.25rem; margin-bottom: 1rem; }
.glossary-term dt { font-weight: 700; color: var(--navy); font-size: 1rem; margin-bottom: 0.35rem; }
.glossary-term dd { color: var(--text); font-size: 0.875rem; line-height: 1.65; }

/* ══════════════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.55s ease forwards; }

/* Scroll-reveal animations */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.revealed {
  opacity: 1; transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .hamburger { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .checkboxes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-btns { flex-direction: column; align-items: center; }
  .price-card.popular { transform: none; }
  .devis-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-qr { width: 120px; height: 120px; }
  /* G1. Afficher le bandeau mobile */
  .mobile-sticky-bar { display: flex; }
  body { padding-bottom: 60px; }
}
@media (min-width: 769px) {
  .devis-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; }
  .contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
}
@media (min-width: 1025px) {
  .grid-3-diag { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
@media (max-width: 1024px) {
  .grid-3-diag { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 640px) {
  .grid-3-diag { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════
   H2. EXIT INTENT POPUP
   ══════════════════════════════════════════════════════════════════ */
.exit-popup-overlay {
  position: fixed; inset: 0; background: rgba(13,31,60,0.55);
  z-index: 998; backdrop-filter: blur(3px);
}
.exit-popup-box {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--white); border-radius: 1rem; padding: 2.5rem 2rem;
  max-width: 420px; width: 90%; z-index: 999;
  box-shadow: 0 16px 48px rgba(0,0,0,0.25); text-align: center;
  border: 2px solid rgba(201,169,110,0.2);
  animation: popIn 0.3s ease;
}
@keyframes popIn { from { opacity:0; transform: translate(-50%, -48%) scale(0.95); } to { opacity:1; transform: translate(-50%, -50%) scale(1); } }
.exit-popup-close {
  position: absolute; top: 0.75rem; right: 1rem; background: none;
  border: none; font-size: 1.25rem; color: var(--text-light);
  cursor: pointer; transition: color 0.2s;
}
.exit-popup-close:hover { color: var(--navy); }

/* Diagnostic detail sidebar responsive */
@media (max-width: 768px) {
  .diag-detail-content + div,
  section .container > div[style*="grid-template-columns: 1fr 320px"] {
    display: block;
  }
  section .container > div[style*="grid-template-columns: 1fr 320px"] > div:last-child {
    margin-top: 2rem;
    position: static;
  }
}

/* ══════════════════════════════════════════════════════════════════
   H6. CHATBOT PRÉ-QUALIFICATION (autonome)
   ══════════════════════════════════════════════════════════════════ */
.nd-chat { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 97; font-family: 'Inter', sans-serif; }

/* Bulle flottante */
.nd-chat-fab {
  width: 56px; height: 56px; border-radius: 50%; border: none;
  background: var(--navy); color: var(--white); font-size: 1.5rem;
  cursor: pointer; box-shadow: 0 4px 16px rgba(13,31,60,0.35);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s; position: relative;
}
.nd-chat-fab:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(13,31,60,0.45); }
.nd-chat-fab-badge {
  position: absolute; top: -4px; right: -4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #dc2626; color: var(--white); font-size: 0.65rem;
  font-weight: 700; display: none; align-items: center; justify-content: center;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }

/* Fenêtre */
.nd-chat-window {
  position: absolute; bottom: 70px; right: 0;
  width: 360px; max-height: 500px; border-radius: 1rem;
  background: var(--white); box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  border: 1px solid rgba(201,169,110,0.15);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.96);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
}
.nd-chat-window.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

/* Header */
.nd-chat-header {
  background: var(--navy); color: var(--white); padding: 0.75rem 1rem;
  display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0;
}
.nd-chat-close {
  margin-left: auto; background: none; border: none;
  color: rgba(255,255,255,0.7); font-size: 1.1rem; cursor: pointer;
  transition: color 0.2s;
}
.nd-chat-close:hover { color: var(--white); }

/* Body */
.nd-chat-body {
  flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem;
  min-height: 280px; max-height: 360px;
}

/* Messages */
.nd-msg { max-width: 88%; padding: 0.65rem 0.85rem; border-radius: 0.75rem; font-size: 0.82rem; line-height: 1.55; animation: fadeUp 0.3s ease; }
.nd-msg a { color: var(--navy); font-weight: 600; }
.nd-msg-bot { background: var(--ivory); color: var(--text); align-self: flex-start; border-bottom-left-radius: 0.25rem; }
.nd-msg-user { background: var(--navy); color: var(--white); align-self: flex-end; border-bottom-right-radius: 0.25rem; }

/* Options */
.nd-options { display: flex; flex-wrap: wrap; gap: 0.4rem; animation: fadeUp 0.3s ease; padding: 0.25rem 0; }
.nd-opt-btn {
  background: var(--white); border: 1.5px solid var(--gold); color: var(--navy);
  padding: 0.45rem 0.85rem; border-radius: 9999px; font-size: 0.78rem;
  font-weight: 500; cursor: pointer; transition: all 0.15s;
  font-family: 'Inter', sans-serif; text-align: left;
}
.nd-opt-btn:hover { background: var(--gold); color: var(--navy); }

/* Footer */
.nd-chat-footer { border-top: 1px solid rgba(201,169,110,0.12); flex-shrink: 0; }

/* Mobile */
@media (max-width: 768px) {
  .nd-chat { bottom: 5rem; right: 0.75rem; }
  .nd-chat-window { width: calc(100vw - 1.5rem); right: 0; bottom: 65px; max-height: 65vh; }
  .nd-chat-fab { width: 50px; height: 50px; font-size: 1.3rem; }
}

/* ══════════════════════════════════════════════════════════════════
   RGPD — BANDEAU CONSENTEMENT COOKIES (CNIL)
   ══════════════════════════════════════════════════════════════════ */
.rgpd-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--midnight); color: var(--white);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
  animation: slideUp 0.4s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.rgpd-inner {
  max-width: 1200px; margin: 0 auto; padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.rgpd-text { flex: 1; min-width: 280px; }
.rgpd-text strong { color: var(--gold); font-size: 0.95rem; }
.rgpd-text p { font-size: 0.78rem; line-height: 1.55; color: rgba(255,255,255,0.8); margin-top: 0.35rem; }
.rgpd-actions { display: flex; gap: 0.75rem; align-items: center; flex-shrink: 0; }
.rgpd-accept { white-space: nowrap; }
.rgpd-refuse {
  background: none; border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.7);
  padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.78rem; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: all 0.2s; white-space: nowrap;
}
.rgpd-refuse:hover { border-color: var(--white); color: var(--white); }

@media (max-width: 640px) {
  .rgpd-inner { flex-direction: column; text-align: center; gap: 1rem; padding: 1rem; }
  .rgpd-actions { width: 100%; justify-content: center; }
}
