@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ══════════════════════════════
   BASE — page scrollable normale
══════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a2e;
  background: #0f0f1a;
  /* PAS de overflow:hidden, PAS de position:fixed — la page défile librement */
}

/* ─── Fond ambiant (décoratif, non-bloquant) ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(124,58,237,.13) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(255,120,60,.07) 0%, transparent 50%);
}

/* ══════════════════════════════
   NAV
══════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(13, 13, 26, .88);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid rgba(124,58,237,.15);
}

.logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #f0eeff;
  text-decoration: none;
}
.logo-text em {
  font-style: normal;
  color: #7c3aed;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-link:hover {
  color: #a78bfa;
  background: rgba(124,58,237,.12);
}

.nav-cta {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #9d5cf6);
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  box-shadow: 0 4px 14px rgba(124,58,237,.3);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  display: inline-block;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(124,58,237,.45);
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  text-align: center;
  position: relative;
  background: linear-gradient(160deg, #0f0f1a 0%, #1a1030 50%, #0f0f1a 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(124,58,237,.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(157,92,246,.12) 0%, transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #a78bfa;
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.3);
  border-radius: 999px;
  padding: 7px 18px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(42px, 8vw, 80px);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(15px, 2.5vw, 18px);
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #7c3aed, #9d5cf6);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(124,58,237,.4);
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(124,58,237,.5);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.btn-ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.45);
  color: #fff;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
  overflow: hidden;
  max-width: 400px;
  margin: 0 auto;
}
.stat {
  flex: 1;
  min-width: 0;
  padding: 14px 8px;
  text-align: center;
}
/* 2 premières cases plus étroites, Strasbourg plus large */
.stat:first-child,
.stat:nth-child(3) {
  flex: 0.8;
}
.stat:last-child {
  flex: 1.4;
}
.stat strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: clamp(13px, 3.5vw, 18px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
  word-break: break-word;
}
.stat span {
  font-size: clamp(9px, 2vw, 11px);
  color: rgba(255,255,255,.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.stat-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}

.loc-dot {
  color: #ef4444;
  font-size: 10px;
  vertical-align: middle;
  margin-right: 2px;
  line-height: 1;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.35);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: scroll-bob 2s ease-in-out infinite;
}
@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* ══════════════════════════════
   SECTIONS COMMUNES
══════════════════════════════ */
.section {
  padding: 80px 24px;
  position: relative;
}
.section-dark {
  background: #1a1a2e;
  color: #f0eeff;
}
.section-light {
  background: #f8f7ff;
}
.section-form {
  background: #f8f7ff;
}
.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #7c3aed;
  margin-bottom: 12px;
}
.section-dark .section-label {
  color: #a78bfa;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-dark .section-title {
  color: #f0eeff;
}

.section-sub {
  font-size: 16px;
  color: #666;
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 48px;
}
.section-dark .section-sub {
  color: #a0a0c0;
}

/* ══════════════════════════════
   CARTES POSSIBILITÉS
══════════════════════════════ */
.poss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.poss-card {
  background: #fff;
  border: 1px solid #ede8ff;
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: 0 4px 24px rgba(124,58,237,.06);
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}
.poss-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 110% -10%, rgba(124,58,237,.05) 0%, transparent 60%);
  pointer-events: none;
}
.poss-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124,58,237,.12);
  border-color: #c4b5fd;
}
.poss-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #f3f0ff;
  border-radius: 14px;
  border: 1px solid #ede8ff;
}
.poss-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
  line-height: 1.2;
}
.poss-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.65;
  margin-bottom: 14px;
}
.poss-example {
  font-size: 12px;
  color: #7c3aed;
  font-weight: 600;
  background: #f3f0ff;
  border: 1px solid #ede8ff;
  border-radius: 8px;
  padding: 8px 12px;
  line-height: 1.5;
}

/* Dernière carte (💡) — accent violet */
.poss-card:last-child {
  background: linear-gradient(135deg, #7c3aed 0%, #9d5cf6 100%);
  border-color: transparent;
  color: #fff;
}
.poss-card:last-child::before {
  background: radial-gradient(ellipse 80% 60% at 110% -10%, rgba(255,255,255,.12) 0%, transparent 60%);
}
.poss-card:last-child h3 { color: #fff; }
.poss-card:last-child p  { color: rgba(255,255,255,.85); }
.poss-card:last-child .poss-icon {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.25);
}
.poss-card:last-child .poss-example {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.25);
  color: #fff;
}
.poss-card:last-child:hover {
  box-shadow: 0 12px 40px rgba(124,58,237,.35);
  border-color: transparent;
}

/* ══════════════════════════════
   GALERIE PORTFOLIO
══════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  background: #2a2a40;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.16,1,.3,1), opacity .3s;
}
.gallery-item:hover img {
  transform: scale(1.04);
  opacity: .9;
}
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 16px;
  background: linear-gradient(0deg, rgba(10,10,20,.75) 0%, transparent 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  transform: translateY(4px);
  opacity: 0;
  transition: opacity .3s, transform .3s;
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════
   ÉTAPES PROCESS
══════════════════════════════ */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}
.step {
  background: #fff;
  border: 1px solid #ede8ff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(124,58,237,.05);
}
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #ede8ff;
  line-height: 1;
  margin-bottom: 14px;
}
.step h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.step p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}
.step-arrow {
  font-size: 24px;
  color: #c4b5fd;
  font-weight: 300;
  text-align: center;
}

/* ══════════════════════════════
   FORMULAIRE DE DEVIS
══════════════════════════════ */
.devis-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 680px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  text-transform: none;
  letter-spacing: 0;
}
.form-group label .req { color: #7c3aed; }
.form-group label .opt { color: #aaa; font-weight: 400; font-size: 12px; }

.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid #e5e0ff;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: 'Space Grotesk', sans-serif;
  color: #1a1a2e;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #7c3aed;
}

.form-hint {
  font-size: 13px;
  color: #7c3aed;
  background: #f3f0ff;
  border: 1px solid #ede8ff;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 6px;
  line-height: 1.5;
}

/* ─── Zone de dépôt de fichier ─── */
.file-drop {
  border: 2px dashed #c4b5fd;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  background: #f9f7ff;
  transition: border-color .2s, background .2s;
}
.file-drop:hover, .file-drop.drag-over {
  border-color: #7c3aed;
  background: #f3f0ff;
}
.file-drop-inner svg {
  color: #a78bfa;
  margin-bottom: 10px;
}
.file-drop-inner p {
  font-size: 14px;
  color: #555;
  margin: 0;
}
.file-link {
  color: #7c3aed;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.file-hint {
  font-size: 12px !important;
  color: #aaa !important;
  margin-top: 6px !important;
}
.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f3f0ff;
  border: 1px solid #ede8ff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #333;
}
.file-item button {
  border: none;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
  transition: color .2s;
}
.file-item button:hover { color: #7c3aed; }

/* ─── Bouton de soumission ─── */
.form-submit {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #7c3aed, #9d5cf6);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(124,58,237,.3);
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124,58,237,.4);
}
.btn-submit:active { transform: translateY(0) scale(.98); }
.btn-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}
.form-legal {
  font-size: 12px;
  color: #aaa;
  text-align: center;
  line-height: 1.5;
}

/* ─── Message de succès ─── */
.form-success {
  text-align: center;
  padding: 48px 24px;
  max-width: 480px;
  margin: 0 auto;
}
.success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #7c3aed, #9d5cf6);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(124,58,237,.3);
}
.form-success h3 {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 10px;
}
.form-success p {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ══════════════════════════════
   LIGHTBOX
══════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(10,10,20,.9);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 70vh;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
  cursor: zoom-out;
}
.lightbox-caption {
  color: rgba(255,255,255,.7);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.12);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer {
  background: #0f0f1a;
  padding: 48px 24px;
  text-align: center;
}
.footer-inner {
  max-width: 480px;
  margin: 0 auto;
}
.footer-brand {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.footer-brand em {
  font-style: normal;
  color: #7c3aed;
}
.footer-sub {
  color: rgba(255,255,255,.4);
  font-size: 14px;
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  color: #a78bfa;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.footer-links a:hover { text-decoration: underline; }
.footer-links span { color: rgba(255,255,255,.3); font-size: 14px; }
.footer-copy {
  color: rgba(255,255,255,.25);
  font-size: 12px;
}

/* ══════════════════════════════
   ACCESSIBILITÉ
══════════════════════════════ */
:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ══════════════════════════════
   RESPONSIVE MOBILE (≤ 720px)
══════════════════════════════ */
@media (max-width: 720px) {
  .section        { padding: 56px 16px; }
  .poss-grid      { grid-template-columns: 1fr; gap: 16px; }
  .gallery-grid   { grid-template-columns: 1fr 1fr; gap: 10px; }
  .steps          { grid-template-columns: 1fr; gap: 16px; }
  .step-arrow     { display: none; }
  .form-row       { grid-template-columns: 1fr; }
  .hero           { padding: 80px 16px 48px; }
  .hero-stats     { max-width: 100%; }
  .nav            { padding: 0 14px; }
  .nav-link       { display: none; }
}

/* ══════════════════════════════
   REDUCED MOTION
══════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
