/* =========================================================
   SARL SIBAT — Plâtrerie · Peinture · Carrelage
   Palette choisie dans l'admin : html[data-palette]
   Thème clair / sombre choisi par le visiteur : html[data-theme]
   ========================================================= */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
}

:root,
[data-palette="orange"] {
  --primary: #e4572e;
  --primary-rgb: 228, 87, 46;
  --primary-strong: #c2441f;
  --primary-soft: #fdebe4;
  --on-primary: #ffffff;
  --accent: #8d9399;
  --ink: #1f2328;
  --text: #33383e;
  --muted: #5d646c;
  --bg: #ffffff;
  --surface: #f6f3ef;
  --card: #ffffff;
  --border: #e6e1da;
  --hero-from: #2b2f34;
  --hero-to: #3d4249;
  --hero-text: #ffffff;
  --footer: #22262b;
  --shadow: 0 10px 30px rgba(31, 35, 40, .08);
  --tile: rgba(255, 255, 255, .045);
  --badge-bg: #ffffff;
  color-scheme: light;
}
[data-palette="ardoise"] {
  --primary-rgb: 31, 95, 168;
  --primary: #1f5fa8; --primary-strong: #164a85; --primary-soft: #e3edf9; --accent: #f2a23a;
  --surface: #f2f5f9; --border: #dde4ee; --hero-from: #0f2a4a; --hero-to: #1b416e; --footer: #0f2238;
}
[data-palette="olive"] {
  --primary-rgb: 63, 125, 88;
  --primary: #3f7d58; --primary-strong: #2f6144; --primary-soft: #e4f0e8; --accent: #c9a44c;
  --surface: #f3f5ef; --border: #dfe5d8; --hero-from: #1f3328; --hero-to: #2e4a3a; --footer: #1a2a21;
}
[data-palette="terracotta"] {
  --primary-rgb: 166, 61, 47;
  --primary: #a63d2f; --primary-strong: #862f23; --primary-soft: #f6e4df; --accent: #d9a066;
  --surface: #f8f1ea; --border: #eadfd3; --hero-from: #3b231c; --hero-to: #5a3328; --footer: #2e1c17;
}

/* Thème sombre (choix du visiteur, mémorisé) */
[data-theme="dark"] {
  --primary: #ff7a45;
  --primary-rgb: 255, 122, 69;
  --primary-strong: #ff9466;
  --primary-soft: rgba(255, 122, 69, .14);
  --on-primary: #14171b;
  --accent: #9aa3ad;
  --ink: #f1f3f5;
  --text: #d5d9de;
  --muted: #a3abb4;
  --bg: #14171b;
  --surface: #1b1f24;
  --card: #22272d;
  --border: #2f353c;
  --hero-from: #0d0f12;
  --hero-to: #1a1e23;
  --footer: #0d0f12;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --tile: rgba(255, 255, 255, .03);
  color-scheme: dark;
}
[data-theme="dark"][data-palette="ardoise"] { --primary-rgb: 91, 155, 224; --primary: #5b9be0; --primary-strong: #7fb2ea; --primary-soft: rgba(91, 155, 224, .15); }
[data-theme="dark"][data-palette="olive"] { --primary-rgb: 111, 180, 136; --primary: #6fb488; --primary-strong: #8cc8a1; --primary-soft: rgba(111, 180, 136, .15); }
[data-theme="dark"][data-palette="terracotta"] { --primary-rgb: 224, 122, 98; --primary: #e07a62; --primary-strong: #ea9580; --primary-soft: rgba(224, 122, 98, .15); }

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
/* « Moins d'animations » (réglage du système) : on supprime les mouvements (animations, déplacements,
   zooms) mais on garde les fondus doux d'ombre et de couleur, qui ne sont pas des mouvements. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .btn:hover, .card:hover, .js .card.reveal.visible:hover, .gallery a:hover img,
  .site-footer .reseaux a:hover { transform: none !important; }
  .card::after { transition: opacity .9s ease-in-out !important; transform: scaleX(1) !important; opacity: 0; }
  .card:hover::after { opacity: 1; }
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--on-primary); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 10px; border: 2px solid var(--primary);
  background: var(--primary); color: var(--on-primary); font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: background .2s, transform .2s, border-color .2s;
}
.btn:hover { background: var(--primary-strong); border-color: var(--primary-strong); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--hero-text); border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn-sm { padding: .5em 1em; font-size: .92rem; }
.btn-block { width: 100%; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s;
}
.site-header.defile { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-logo { display: inline-flex; width: 52px; flex-shrink: 0; }
[data-theme="dark"] .brand-logo { background: #fff; border-radius: 10px; padding: 4px 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-size: 1.35rem; font-weight: 800; letter-spacing: .06em; }
.brand-text small { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav { display: flex; align-items: center; gap: 18px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--primary); }
.nav .nav-cta { color: var(--on-primary); }
.nav-toggle { display: none; }

.theme-toggle {
  display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card); color: var(--ink); cursor: pointer; font: inherit;
}
.theme-toggle:hover { color: var(--primary); border-color: var(--primary); }
.theme-toggle .ico-soleil, [data-theme="dark"] .theme-toggle .ico-lune { display: none; }
[data-theme="dark"] .theme-toggle .ico-soleil { display: block; }
.theme-toggle-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1020px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--card); cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; left: -16px; right: -16px; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav .nav-cta { margin-top: 12px; border-bottom: 0; padding: 12px; }
  .theme-toggle { width: 100%; height: auto; padding: 12px; margin-top: 12px; display: flex; gap: 10px; justify-content: center; }
  .theme-toggle-texte { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-weight: 600; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--hero-text); isolation: isolate;
  background:
    linear-gradient(90deg, var(--tile) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(0deg, var(--tile) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(135deg, var(--hero-from), var(--hero-to));
  padding: clamp(56px, 9vw, 110px) 0 clamp(90px, 11vw, 140px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero:has(.hero-bg)::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, color-mix(in srgb, var(--hero-from) 94%, transparent) 30%, color-mix(in srgb, var(--hero-from) 55%, transparent));
}
.hero::before {
  content: ""; position: absolute; right: -8%; top: -30%; width: 55%; aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 35%, transparent), transparent 65%);
  pointer-events: none; z-index: -1;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--hero-text); }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; letter-spacing: .04em;
  text-transform: uppercase; color: #fff; background: color-mix(in srgb, var(--primary) 85%, transparent);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
[data-theme="dark"] .kicker { color: #14171b; }
.lead { font-size: 1.15rem; color: rgba(255, 255, 255, .85); max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.hero-trades { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-trades li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.hero-trades li::before { content: ""; width: 10px; height: 10px; background: var(--primary); transform: rotate(45deg); border-radius: 2px; }

.hero-card {
  background: #fff; color: #33383e; border-radius: 20px; padding: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .3); text-align: center; position: relative;
}
.hero-card::before {
  content: ""; position: absolute; inset: -10px 18px auto; height: 10px;
  background: var(--primary); border-radius: 10px 10px 0 0;
}
.hero-logo { width: 150px; margin: 0 auto 18px; }
.hero-card-text { padding: 12px; border-radius: 12px; background: #f6f3ef; margin: 0 0 18px; line-height: 1.5; }
.hero-card-text strong { letter-spacing: .04em; color: #1f2328; }
.hero-badges { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; align-items: center; }
.hero-badges img { max-height: 110px; width: auto; margin: auto; }

.hero-roof { position: absolute; bottom: -1px; left: 0; width: 100%; height: clamp(40px, 6vw, 90px); fill: var(--bg); stroke: none; }

/* Entrée du hero (légère) */
.js .hero-copy > * { animation: monte .7s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .08s; }
.js .hero-copy > :nth-child(3) { animation-delay: .16s; }
.js .hero-copy > :nth-child(4) { animation-delay: .24s; }
.js .hero-copy > :nth-child(5) { animation-delay: .32s; }
.js .hero-card { animation: monte .8s .2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes monte { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 420px; width: 100%; margin-inline: auto; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p:last-child { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; color: var(--primary); font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: currentColor; border-radius: 2px; }

/* Prestations */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 32px 28px;
  position: relative; overflow: hidden;
  /* Même nombre de couches d'ombre au repos et au survol, couleurs simples : interpolation continue */
  --ombre-repos: 0 10px 30px -10px rgba(31, 35, 40, .10), 0 2px 6px 0 rgba(var(--primary-rgb), 0);
  --ombre-survol: 0 26px 50px -14px rgba(31, 35, 40, .22), 0 10px 22px -8px rgba(var(--primary-rgb), .22);
  box-shadow: var(--ombre-repos);
  transition: transform .8s cubic-bezier(.4, 0, .2, 1), box-shadow .9s cubic-bezier(.4, 0, .2, 1), border-color .9s ease-in-out;
  will-change: transform, box-shadow;
}
.card::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.4, 0, .2, 1); }
.card:hover {
  transform: translateY(-5px); border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  box-shadow: var(--ombre-survol);
}
[data-theme="dark"] .card {
  --ombre-repos: 0 10px 30px -10px rgba(0, 0, 0, .45), 0 2px 6px 0 rgba(var(--primary-rgb), 0);
  --ombre-survol: 0 26px 50px -14px rgba(0, 0, 0, .7), 0 10px 22px -8px rgba(var(--primary-rgb), .25);
}
.card:hover::after { transform: scaleX(1); }
.card-icon {
  width: 60px; height: 60px; display: grid; place-items: center; border-radius: 16px;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 20px;
}
.card-icon svg { width: 30px; height: 30px; }
.card p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .95rem; }
.checks li::before {
  content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* L'entreprise */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.zone {
  display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--border);
  border-left: 4px solid var(--primary); border-radius: 12px; padding: 16px 18px; margin-top: 24px;
}
.zone svg { color: var(--primary); margin-top: 3px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.feature svg { width: 32px; height: 32px; color: var(--primary); margin-bottom: 12px; }
.feature h3 { font-size: 1.05rem; margin-bottom: .3em; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 480px) { .features { grid-template-columns: 1fr; } }

/* Réalisations */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--border); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.gallery a { display: block; overflow: hidden; }
.gallery a:hover img { transform: scale(1.05); }
.gallery figcaption { padding: 10px 14px; font-size: .9rem; color: var(--muted); }

/* Certifications */
.certs-section { background: var(--bg); }
.certs { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.cert-logos { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; }
.cert-logos figure {
  margin: 0; background: var(--badge-bg); border: 1px solid var(--border); border-radius: 18px; padding: 28px 20px 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 14px; box-shadow: var(--shadow);
}
.cert-logos img { max-height: 170px; width: auto; }
.cert-logos figcaption { font-weight: 700; color: #33383e; font-size: .9rem; }
@media (max-width: 900px) { .certs { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 420px) { .cert-logos { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 20px; }
.info-block, .contact-form {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 28px; box-shadow: var(--shadow);
}
.info-block h3 { display: flex; align-items: center; gap: 10px; }
.info-block h3::before { content: ""; width: 8px; height: 22px; background: var(--primary); border-radius: 4px; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.info-list address { font-style: normal; }
.info-list a { color: var(--ink); font-weight: 700; text-decoration: none; font-size: 1.05rem; overflow-wrap: anywhere; }
.info-list a:hover { color: var(--primary); }
.reseaux { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.reseaux a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); color: inherit; }
.reseaux a:hover { color: var(--primary); border-color: var(--primary); }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 9px 4px; border-bottom: 1px dashed var(--border); text-align: left; font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours .today th, .hours .today td { color: var(--primary); font-weight: 800; }
.hours .closed { color: var(--muted); }

.contact-form { display: grid; gap: 16px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .contact-form .row { grid-template-columns: 1fr; } .info-block, .contact-form { padding: 22px 18px; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.field.invalid input, .field.invalid textarea { border-color: #d93025; }
.consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .88rem; color: var(--muted); }
.consent label span { flex: 1; min-width: 0; }
.consent a { color: var(--primary); font-weight: 600; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); flex-shrink: 0; }
.captcha-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.captcha-img { display: inline-grid; place-items: center; border-radius: 10px; border: 1.5px solid var(--border); width: 184px; height: 60px; background: #f4efe8; overflow: hidden; }
.captcha-img svg { width: 180px; height: 56px; stroke: none; }
.captcha-refresh {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--bg); color: var(--ink);
}
.captcha-refresh:hover { color: var(--primary); border-color: var(--primary); }
.captcha-refresh.spin svg { animation: spin .5s linear; }
@keyframes spin { to { transform: rotate(360deg); } }
.captcha-row input { flex: 1 1 120px; width: auto !important; letter-spacing: .2em; font-weight: 800 !important; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { padding: 14px 16px; border-radius: 10px; font-weight: 600; white-space: pre-line; }
.form-status.ok { background: #e6f4ea; color: #1e6b34; border: 1px solid #b7dfc2; }
.form-status.error { background: #fdecea; color: #a5281b; border: 1px solid #f5c2bd; }
.form-status.info { background: var(--primary-soft); color: var(--ink); border: 1px solid var(--border); }
.contact-form button[disabled] { opacity: .65; cursor: wait; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--footer); color: rgba(255, 255, 255, .75); padding: 48px 0 20px; font-size: .95rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand .brand-logo { width: 64px; background: #fff; border-radius: 12px; padding: 6px 8px; }
.footer-brand p { margin: 0; }
.footer-brand strong { color: #fff; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-social { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-social > span { font-weight: 700; color: #fff; font-size: .9rem; letter-spacing: .04em; }
.site-footer .reseaux { margin: 0; }
.site-footer .reseaux a {
  border-color: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .85);
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.site-footer .reseaux a:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); transform: translateY(-2px); }
.copyright { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: rgba(255, 255, 255, .55); }

/* ---------- Page Mentions légales ---------- */
.legal-page { max-width: 820px; }
.legal-page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal-page h2 { font-size: 1.3rem; margin-top: 1.8em; color: var(--primary); }
.legal-page mark { background: #fff3b0; color: #5c3b00; padding: 0 .2em; border-radius: 3px; }
.legal-maj { color: var(--muted); font-size: .9rem; margin-top: 2em; }

/* ---------- Visionneuse / popup ---------- */
.dialog-close {
  position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--surface); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(10, 12, 15, .9);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; color: #fff;
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-overlay img { max-height: 80vh; max-width: 100%; border-radius: 12px; }
.lightbox-overlay p { margin-top: 12px; }

.popup { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; }
.popup[hidden] { display: none; }
.popup-fond { position: absolute; inset: 0; background: rgba(10, 12, 15, .6); }
.popup-boite {
  position: relative; width: min(520px, 100%); max-height: 88vh; overflow: auto; background: var(--card); color: var(--text);
  border-radius: 18px; padding: 34px 28px 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); border-top: 6px solid var(--primary);
  animation: monte .35s ease both;
}
.popup-boite h2 { font-size: 1.5rem; padding-right: 36px; }
.popup-image img { border-radius: 12px; margin-bottom: 16px; width: 100%; }

/* Bouton d'appel flottant (mobile) */
.call-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  display: none; place-items: center; background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 25px rgba(0, 0, 0, .3);
}
.call-fab svg { width: 26px; height: 26px; }
@media (max-width: 1020px) { .call-fab { display: grid; } }

/* Apparition au défilement (uniquement si JavaScript est actif) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
/* Les cartes gardent leur transition fluide (ombre comprise) après l'apparition */
.js .card.reveal {
  transition: opacity .6s ease, transform .8s cubic-bezier(.4, 0, .2, 1), box-shadow .9s cubic-bezier(.4, 0, .2, 1), border-color .9s ease-in-out;
}
.js .card.reveal.visible:hover { transform: translateY(-5px); }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
