/* Feuille commune aux sites de démonstration.
   Chaque site redéfinit les variables de :root (couleurs, polices). */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --text: #1b2430;
  --muted: #5b6573;
  --brand: #0b5cad;
  --brand-dark: #08427c;
  --accent: #f2a900;
  --on-brand: #ffffff;
  --radius: 14px;
  --font-title: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --shadow: 0 10px 30px rgba(20, 30, 45, .08);
  --shadow-lg: 0 22px 50px -12px rgba(20, 30, 45, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
figure, blockquote { margin: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
p, li { text-wrap: pretty; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
section { padding: clamp(56px, 9vw, 96px) 0; }
.alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
  margin-bottom: .8em;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* Bandeau démo */
.demo-banner {
  background: #111; color: #fff; text-align: center;
  font-size: .85rem; padding: 8px 16px;
}
.demo-banner a { color: #ffd166; }

/* En-tête */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-title); font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand); color: var(--on-brand);
}
.logo-mark svg { width: 22px; height: 22px; }
.nav { display: flex; gap: 26px; font-weight: 600; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--muted); padding: 10px 0; background: linear-gradient(var(--brand), var(--brand)) 0 85% / 0 2px no-repeat; transition: color .2s ease, background-size .25s var(--ease); }
.nav a:hover { color: var(--text); background-size: 100% 2px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 13px 24px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; font-size: 1rem; cursor: pointer; font-family: inherit;
  transition: transform .2s var(--ease), background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.btn-primary {
  background: var(--brand); color: var(--on-brand);
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--brand) 70%, transparent);
}
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn-ghost { border-color: color-mix(in srgb, currentColor 35%, transparent); }
.btn-ghost:hover { border-color: currentColor; background: color-mix(in srgb, currentColor 6%, transparent); }
.btn-accent { background: var(--accent); color: #1b1b1b; box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn svg { width: 18px; height: 18px; }
.header .btn { min-height: 44px; padding: 9px 18px; font-size: .95rem; }

/* Héros */
.hero { padding: clamp(48px, 8vw, 96px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .95rem; font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 18px; height: 18px; color: var(--brand); }
.stars { color: var(--accent); letter-spacing: 2px; }

/* Visuels (emplacements pour les vraies photos) */
.visual {
  position: relative; border-radius: calc(var(--radius) * 1.4); overflow: hidden;
  aspect-ratio: 4 / 4.4; box-shadow: var(--shadow);
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  color: var(--on-brand); display: grid; place-items: center;
}
.visual svg.illu { width: 72%; opacity: .95; }
.photo-tag {
  position: absolute; left: 14px; bottom: 14px; font-size: .75rem; font-weight: 600;
  background: rgba(0,0,0,.45); color: #fff; padding: 5px 10px; border-radius: 999px;
}
.badge-float {
  position: absolute; right: 14px; top: 14px; background: var(--bg); color: var(--text);
  border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); font-weight: 700; font-size: .9rem;
}
.badge-float small { display: block; color: var(--muted); font-weight: 500; }

/* Photos */
.visual img, .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot img { transition: transform .6s var(--ease); }
.shot:hover img { transform: scale(1.05); }
.badge-float { animation: float-in .7s .35s var(--ease) both; }
@keyframes float-in { from { opacity: 0; transform: translateY(10px); } }
.photo-credit { font-size: .8rem; color: var(--muted); margin-top: 14px; }

/* Cartes services */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.card {
  background: var(--bg); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--text) 6%, transparent);
  transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease;
}
.grid-3 .card:hover, .review:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--brand) 25%, transparent);
}
.card .icon { transition: background-color .25s ease, color .25s ease; }
.grid-3 .card:hover .icon { background: var(--brand); color: var(--on-brand); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); margin-bottom: 16px;
}
.card .icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); margin: 0; }

/* Réalisations */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.shot {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  display: grid; place-items: center; color: var(--on-brand);
}
.shot svg { width: 42%; opacity: .9; }
.shot figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; font-weight: 700; font-size: .95rem;
  background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff;
}
.shot:nth-child(6n+1) { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.shot:nth-child(6n+2) { background: linear-gradient(135deg, var(--brand-dark), #2b2f36); }
.shot:nth-child(6n+3) { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 70%, var(--accent)), var(--brand)); }
.shot:nth-child(6n+4) { background: linear-gradient(135deg, #2b2f36, var(--brand)); }
.shot:nth-child(6n+5) { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--accent) 60%, var(--brand))); }
.shot:nth-child(6n+6) { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; counter-reset: step; }
.step { padding: 24px 0 0; border-top: 3px solid var(--brand); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-title); font-weight: 800; font-size: 1.6rem; color: var(--brand);
  display: block; margin-bottom: 6px;
}
.step p { color: var(--muted); margin: 0; }

/* Avis */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.review { position: relative; background: var(--bg); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--text) 6%, transparent); transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease; }
.review::after { content: "\201D"; position: absolute; right: 20px; top: 4px; font: 700 4.5rem/1 Georgia, serif; color: color-mix(in srgb, var(--brand) 14%, transparent); pointer-events: none; }
.review p { margin: 10px 0 14px; }
.review .who { font-weight: 700; font-size: .95rem; }
.review .who small { display: block; color: var(--muted); font-weight: 500; }
.note-demo { font-size: .85rem; color: var(--muted); margin-top: 18px; }

/* Zone + contact */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.towns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.towns li {
  padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand-dark);
}
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.contact-list svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
form.card { display: grid; gap: 14px; }
label { font-weight: 600; font-size: .9rem; display: grid; gap: 6px; }
input, select, textarea {
  font: inherit; padding: 12px 14px; border-radius: 10px; color: var(--text); background: var(--bg);
  border: 1.5px solid color-mix(in srgb, var(--text) 18%, transparent);
}
input, select, textarea { min-height: 48px; transition: border-color .2s ease, box-shadow .2s ease; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--text) 32%, transparent); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
input[aria-invalid="true"] { border-color: #c62828; box-shadow: 0 0 0 4px rgba(198, 40, 40, .14); }
textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; }
.form-ok { display: none; font-weight: 700; color: var(--brand); margin: 0; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 10%, transparent); }

/* FAQ */
details { border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent); padding: 18px 0; }
summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary { padding: 4px 0; min-height: 44px; align-items: center; }
summary:hover { color: var(--brand); }
summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 1.2rem; line-height: 1; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); transition: transform .25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 10px 0 0; }
.faq { max-width: 760px; margin-top: 28px; }

/* Pied de page */
.footer { background: #12161c; color: #c8ced6; padding: 44px 0; font-size: .92rem; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer strong { color: #fff; }

/* Barre d'action fixe sur téléphone : appeler + devis */
.call-bar { display: none; }

/* Accessibilité */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px;
}
.btn:focus-visible { border-radius: 999px; }
section[id] { scroll-margin-top: 84px; }
summary, button, select { cursor: pointer; }
.form-ok:not(:empty) { display: block; }
button[aria-busy="true"] { opacity: .7; cursor: progress; }
/* Apparition au défilement (activée par demo.js ; sans JS tout reste visible) */
.js .reveal:not(.in) { opacity: 0; }
.js .reveal.in { animation: reveal .6s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  .js .reveal:not(.in) { opacity: 1; }
  .js .reveal.in { animation: none; }
  .shot:hover img { transform: none; }
  .badge-float { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .btn:hover, .ex:hover { transform: none; }
}

@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 32px; }
  .visual { aspect-ratio: 16 / 11; }
  .grid-3, .gallery, .steps, .reviews { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  body:has(.call-bar) .footer { padding-bottom: 104px; }
  .call-bar {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px);
    border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  }
  .call-bar .btn { min-height: 48px; padding: 12px 14px; white-space: nowrap; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid-3, .gallery, .steps, .reviews { grid-template-columns: 1fr; }
  .header .btn span { display: none; }
  .header .btn { width: 44px; padding: 0; }
}
