/* =============================================
   AQUA PRESTIGE — Feuille de styles principale
   ============================================= */

:root {
  --navy:    #0d1f35;
  --blue:    #1a4a7a;
  --gold:    #c9a84c;
  --gold-lt: #e8c97a;
  --white:   #ffffff;
  --off:     #f8f6f2;
  --gray:    #6b7280;
  --light:   #e5eef7;
  --dark-bg: #0a1929;
  --radius:  12px;
  --shadow:  0 8px 40px rgba(13, 31, 53, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── NAVBAR ─────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.35s, box-shadow 0.35s;
  padding: 0 40px;
}

#navbar.scrolled {
  background: rgba(10, 25, 41, 0.97);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--white);
  white-space: nowrap;
}
.logo strong { color: var(--gold); }
.logo-icon { font-size: 1.4rem; color: var(--gold); }

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

.btn-nav {
  padding: 10px 22px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.btn-nav:hover { background: var(--gold-lt); transform: translateY(-1px); }

.burger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
}

/* ─── HERO ───────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(8,24,48,0.68) 0%, rgba(10,30,60,0.45) 60%, rgba(8,24,48,0.65) 100%),
    url('https://images.unsplash.com/photo-1758448756167-88dc934c58e4?auto=format&fit=crop&w=1920&q=85') center/cover no-repeat;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 70%, rgba(26,74,122,0.6) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 38, 0.45);
}

/* Animated water ripple effect */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160'%3E%3Cpath fill='%23f8f6f2' fill-opacity='1' d='M0,96L48,101.3C96,107,192,117,288,112C384,107,480,85,576,85.3C672,85,768,107,864,117.3C960,128,1056,128,1152,117.3C1248,107,1344,85,1392,74.7L1440,64L1440,160L1392,160C1344,160,1248,160,1152,160C1056,160,960,160,864,160C768,160,672,160,576,160C480,160,384,160,288,160C192,160,96,160,48,160L0,160Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center / cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 40px;
  margin-left: calc((100vw - 1200px) / 2);
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(201, 168, 76, 0.2);
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: 100px;
  color: var(--gold-lt);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-content h1 em {
  font-style: italic;
  color: var(--gold-lt);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 14px 32px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,168,76,0.5); }

.btn-outline {
  padding: 14px 32px;
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollDown 1.5s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── CHIFFRES ───────────────────────────────── */
#chiffres {
  background: var(--navy);
  padding: 60px 0;
}

#chiffres .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 60px;
  gap: 6px;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.12);
}

/* ─── SECTION HEADER ─────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.section-header.light h2 { color: var(--white); }
.section-header.light .section-tag { color: var(--gold-lt); }

.section-sub {
  margin-top: 16px;
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── SERVICES ───────────────────────────────── */
#services {
  padding: 100px 0;
  background: var(--off);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(13,31,53,0.16);
  border-top-color: var(--gold);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--navy);
}

.service-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ─── CATALOGUE ──────────────────────────────── */
#catalogue {
  padding: 100px 0;
  background: var(--dark-bg);
}

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.pool-card {
  background: #111e2e;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(255,255,255,0.06);
}

.pool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.pool-img {
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #1a3a5c;
  background-image: linear-gradient(135deg, #1a3a5c 0%, #0d2640 100%);
  transition: background-size 0.5s ease;
}

.pool-card:hover .pool-img {
  background-size: 110%;
}

.pool-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.25) 100%);
}

.pool-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 5px 14px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pool-badge.new     { background: #22c55e; color: #fff; }
.pool-badge.premium { background: linear-gradient(135deg, #b8860b, #daa520); color: #fff; }
.pool-badge.eco     { background: #16a34a; color: #fff; }

.pool-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.pool-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pool-ref {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pool-price {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

.pool-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--white);
}

.pool-info p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}

.pool-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.pool-specs li {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.pool-specs li span { color: rgba(255,255,255,0.45); }
.pool-specs li strong { color: rgba(255,255,255,0.9); }

.btn-pool {
  display: inline-block;
  margin-top: 4px;
  padding: 11px 24px;
  background: transparent;
  border: 1.5px solid rgba(201,168,76,0.5);
  color: var(--gold-lt);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
}

.btn-pool:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

/* ─── REALISATIONS ───────────────────────────── */
#realisations {
  padding: 100px 0;
  background: var(--off);
}

.real-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 300px 300px;
  gap: 16px;
}

.real-item {
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-color: #1a4a7a;
  background-image: linear-gradient(135deg, #1a4a7a 0%, #0d2640 100%);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.real-item.large {
  grid-row: 1 / 3;
}

.real-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,20,38,0.85) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s;
}

.real-item:hover .real-overlay { opacity: 1; }

.real-overlay span {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ─── TEMOIGNAGES ────────────────────────────── */
#temoignages {
  padding: 100px 0;
  background: var(--navy);
}

.temoignages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.temoignage {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.temoignage p {
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.client {
  display: flex;
  align-items: center;
  gap: 14px;
}

.client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.client strong {
  display: block;
  color: var(--white);
  font-size: 0.9rem;
}

.client span {
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
}

/* ─── CONTACT ────────────────────────────────── */
#contact {
  padding: 100px 0;
  background: var(--off);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.contact-left .section-tag { display: block; margin-bottom: 12px; }

.contact-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.3;
}

.contact-left > p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-infos {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.ci-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 2px;
}

.contact-info-item span {
  color: var(--gray);
  font-size: 0.88rem;
}

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  background: #fdfdfd;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,74,122,0.12);
}

.btn-submit {
  padding: 15px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  font-family: 'Inter', sans-serif;
}

.btn-submit:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

.form-success {
  text-align: center;
  color: #16a34a;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px;
  background: #f0fdf4;
  border-radius: 8px;
}

/* ─── FOOTER ─────────────────────────────────── */
footer {
  background: var(--dark-bg);
  padding-top: 72px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo-footer { margin-bottom: 16px; }

.footer-brand p {
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 280px;
  margin-top: 12px;
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links ul li,
.footer-links ul a {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links ul a:hover { color: var(--gold-lt); }

.footer-bottom {
  padding: 24px 40px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--gold-lt); }

/* ─── VISUALISEUR IA ─────────────────────────── */
#visualiseur {
  padding: 100px 0;
  background: var(--off);
}

#visualiseur .section-header h2 {
  color: var(--navy);
}
#visualiseur .section-header h2 em {
  font-style: italic;
  color: var(--blue);
}

.viz-intro {
  max-width: 580px;
  margin: 16px auto 0;
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

.viz-wrapper {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 12px 60px rgba(13,31,53,0.1);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 48px;
}

/* Steps */
.viz-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.viz-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.viz-step-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--navy);
}

/* Upload zone */
.upload-zone {
  border: 2px dashed #d1dce9;
  border-radius: 14px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
  overflow: hidden;
  background: #f9fbfd;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--blue);
  background: rgba(26,74,122,0.04);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px;
  text-align: center;
  pointer-events: none;
}

.upload-label {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
}

.upload-label span {
  color: var(--blue);
  text-decoration: underline;
  cursor: pointer;
}

.upload-hint {
  color: var(--gray);
  font-size: 0.8rem;
}

.upload-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.upload-change {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 7px 16px;
  background: rgba(13,31,53,0.75);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s;
  z-index: 2;
}
.upload-change:hover { background: var(--navy); }

/* Model select */
.model-select-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.model-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.model-opt-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  border: 3px solid transparent;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.model-opt:hover .model-opt-img {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,74,122,0.2);
}

.model-opt.selected .model-opt-img {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.3), 0 8px 24px rgba(201,168,76,0.25);
  transform: translateY(-3px);
}

.model-opt span {
  font-size: 0.72rem;
  color: var(--gray);
  text-align: center;
  font-weight: 500;
  line-height: 1.3;
  transition: color 0.2s;
}

.model-opt.selected span { color: var(--gold); font-weight: 700; }

/* Generate button */
.viz-generate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid #eef2f7;
}

.btn-generate {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 48px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 32px rgba(13,31,53,0.25);
  position: relative;
  overflow: hidden;
}

.btn-generate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-generate:hover:not(:disabled)::before { opacity: 1; }
.btn-generate:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(13,31,53,0.35); }
.btn-generate:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-gen-icon {
  font-size: 1.1rem;
  position: relative;
  animation: spin-star 4s linear infinite;
}
@keyframes spin-star {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25%       { transform: rotate(90deg) scale(1.2); }
  50%       { transform: rotate(180deg) scale(1); }
  75%       { transform: rotate(270deg) scale(1.2); }
}

.viz-notice {
  font-size: 0.82rem;
  color: var(--gray);
}

/* Résultat */
.viz-result {
  margin-top: 48px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 60px rgba(13,31,53,0.12);
}

/* Loader */
.viz-loader {
  background: var(--navy);
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.loader-ring {
  width: 72px;
  height: 72px;
  border: 4px solid rgba(255,255,255,0.1);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loader-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.loader-step {
  color: rgba(255,255,255,0.3);
  font-size: 0.9rem;
  transition: color 0.4s, transform 0.4s;
}
.loader-step.active {
  color: var(--white);
  font-weight: 600;
  transform: scale(1.05);
}

/* Output */
.viz-output {
  background: var(--white);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.viz-output-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.output-badge {
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: var(--navy);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
}

.output-model {
  color: var(--gray);
  font-size: 0.9rem;
}

.viz-canvas-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0d1f35;
}

#vizCanvas {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  object-fit: cover;
}

.viz-watermark {
  position: absolute;
  bottom: 14px;
  right: 16px;
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.viz-output-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-cta-result {
  flex: 1;
  min-width: 240px;
  padding: 15px 28px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  color: var(--navy);
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 6px 24px rgba(201,168,76,0.35);
}
.btn-cta-result:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(201,168,76,0.5); }

.btn-download {
  padding: 15px 24px;
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-download:hover { background: var(--gold); color: var(--navy); }

.btn-restart {
  padding: 15px 24px;
  background: transparent;
  border: 1.5px solid #d1dce9;
  color: var(--gray);
  border-radius: 10px;
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-restart:hover { border-color: var(--navy); color: var(--navy); }

.viz-disclaimer {
  font-size: 0.75rem;
  color: #aab;
  text-align: center;
  font-style: italic;
}

/* Responsive visualiseur */
@media (max-width: 900px) {
  .model-select-grid { grid-template-columns: repeat(4, 1fr); }
  .viz-wrapper { padding: 28px 20px; }
}
@media (max-width: 560px) {
  .model-select-grid { grid-template-columns: repeat(3, 1fr); }
  .viz-output-actions { flex-direction: column; }
  .btn-cta-result { min-width: unset; }
}

/* ─── SCROLL ANIMATIONS ──────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
  .hero-content { margin-left: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .catalogue-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .burger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(10,25,41,0.98);
    padding: 24px 32px 32px;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .hero-content { margin-left: 24px; padding-right: 24px; }
  .hero-content h1 { font-size: 2.2rem; }
  .stat { padding: 16px 28px; }
  .stat-divider { display: none; }
  #chiffres .container { gap: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .catalogue-grid { grid-template-columns: 1fr; }
  .real-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .real-item.large { grid-row: auto; }
  .temoignages-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; padding: 20px 24px; }
}

@media (max-width: 480px) {
  #chiffres .container { flex-direction: column; }
  .hero-cta { flex-direction: column; }
  .hero-cta a { text-align: center; }
  .contact-form { padding: 24px 20px; }
}
