/* ==========================================================
   Garage Martin (démo TOMASLORA TECH)
   Mise à jour : alternance gris clair #EEF1F4 (cartes blanches) et anthracite #1C2733
   (navigation, hero, tarifs, horaires, pied de page, barre mobile).
   Gris clair : #1C2733 13,35:1 · #4A5563 6,69:1 · #A51717 6,77:1 · #166534 6,29:1
   · #B91C1C 5,71:1 · bordure #6B7785 4,02:1 · #166534 / blanc 7,13:1
   Anthracite : bordure #8A96A3 / #1C2733 5,03:1 · / #222F3D 4,52:1 · #FF9A8F / #222F3D 6,66:1
   Contrastes des nouveaux couples (clair) : #1C2733 / blanc 15,14:1 · / #F4F6F8 13,97:1
   · #4A5563 / blanc 7,58:1 · / #F4F6F8 7,00:1 · #A51717 / blanc 7,68:1 · / #F4F6F8 7,09:1
   · / #FBE9E9 6,56:1 · #15803D / blanc 5,02:1 · / #F4F6F8 4,63:1 · #B91C1C / blanc 6,47:1
   · / #F4F6F8 5,97:1 · bordure #6B7785 / blanc 4,56:1 · sombre : #C3CCD6 / #1C2733 9,32:1
   Les couples « sombre » ci-dessous restent valables pour ces zones.
   Direction : sombre, premium, épurée, orientée prise de rendez-vous.
   Une seule famille (Plus Jakarta Sans), casse normale partout,
   chiffres tabulaires pour les prix et les horaires. Cartes sombres
   à bordure fine, rayon 10–12 px, séparations par lignes fines.
   Le rouge #C81E1E est réservé aux boutons d'action et aux petits
   accents décoratifs : jamais en texte sur fond sombre (2,96:1 sur
   #161D26, 2,64:1 sur #1C2733).

   Contrastes mesurés (WCAG 2.2 ; texte ≥ 4,5:1, composants ≥ 3:1) :
   Texte #F2F5F8 : sur #0F1419 16,92:1 · #161D26 15,50:1 · #1C2733 13,83:1
                   · #0B1015 17,46:1 · #2A1A20 15,15:1 (créneau coché)
   Accent #FF9A8F / #2A1A20 8,11:1
   Texte doux #CDD5DE : sur #0F1419 12,49:1 · #161D26 11,45:1 · #1C2733 10,21:1 · #0B1015 12,89:1
   Texte atténué #A9B4C0 : sur #0F1419 8,79:1 · #161D26 8,06:1 · #1C2733 7,19:1 · #0B1015 9,08:1
   Accent #FF9A8F (icônes, « aujourd'hui ») : sur #0F1419 9,05:1 · #161D26 8,30:1 · #1C2733 7,40:1
   Ouvert #86EFAC : sur #0F1419 13,18:1 · #161D26 12,08:1 · #1C2733 10,78:1
   Fermé  #FCA5A5 : sur #0F1419 9,75:1 · #161D26 8,94:1 · #1C2733 7,98:1
   Boutons : blanc / #C81E1E 5,74:1 · blanc / #A51717 (survol) 7,68:1
   Lien d'évitement : #0F1419 / blanc 18,51:1
   Badge démo (commun au portfolio) : blanc / #0B1F33 16,69:1 · #FF8A1F / #0B1F33 7,08:1
   Bordure des champs #7A8694 : sur #0F1419 4,99:1 · #161D26 4,58:1 (≥ 3:1)
   Contour de focus blanc 3 px : ≥ 15:1 sur tous les fonds sombres.
   ========================================================== */
:root {
    color-scheme: light;

    --bg: #EEF1F4;
    --bg-deep: #E3E8ED;
    --surface: #FFFFFF;
    --surface-2: #E3E8ED;
    --text: #1C2733;
    --text-soft: #2F3B48;
    --muted: #4A5563;
    --accent: #A51717;
    --primary: #C81E1E;
    --primary-hover: #A51717;
    --primary-tint: #FBE9E9;
    --open: #166534;
    --closed: #B91C1C;
    --white: #FFFFFF;
    --line: rgba(28, 39, 51, 0.12);
    --line-strong: rgba(28, 39, 51, 0.28);
    --field-border: #6B7785;
    --focus: #1C2733;
    --hover: rgba(28, 39, 51, 0.06);
    --coche: #FBE9E9;

    --font: 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", sans-serif;
    --radius: 12px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --nav-h: 72px;
    --barre-h: 0px;          /* hauteur de la barre d'action mobile */
    --pad-section: 64px;
    --transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;

    /* Flèche des listes déroulantes (SVG en data URI, autorisé par img-src data:) */
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234A5563' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Zones anthracite : navigation, hero, tarifs, horaires, pied de page, barre mobile */
.navbar, .footer, .barre-action, .lightbox-modal, .hero, .tarifs, .cta-banner {
    color-scheme: dark;
    --bg: #1C2733;
    --bg-deep: #141C25;
    --surface: #222F3D;
    --surface-2: #2A3644;
    --text: #F2F5F8;
    --text-soft: #CDD5DE;
    --muted: #C3CCD6;
    --accent: #FF9A8F;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.26);
    --focus: #FFFFFF;
    --hover: rgba(255, 255, 255, 0.08);
    --open: #86EFAC;
    --closed: #FCA5A5;
    --primary-tint: rgba(200, 30, 30, 0.18);
    --field-border: #8A96A3;
    --coche: #2A1A20;
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23CDD5DE' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    color: var(--text);
}
/* Sections anthracite en alternance avec les sections gris clair */
.section.tarifs, .section.cta-banner { background: var(--bg); }

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: var(--barre-h);
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
strong { color: var(--text); }

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

/* ===== Typographie ===== */
h1, h2, h3 {
    color: var(--text);
    font-weight: 700;
    overflow-wrap: break-word;
}
h1 { letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.8vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
h3 { font-size: 1.1rem; letter-spacing: -0.005em; line-height: 1.3; }

.chiffres, .tarif-prix, .table-horaires, .hero-horaires, .phone-link, .hero-tel { font-variant-numeric: tabular-nums; }

/* ===== Focus visible (blanc, très contrasté sur fond sombre) ===== */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.lien-evitement {
    position: absolute; left: 16px; top: -100px; z-index: 20000;
    background: var(--white); color: var(--bg); padding: 12px 18px; border-radius: var(--radius-xs);
    font-weight: 700; text-decoration: none;
}
.lien-evitement:focus { top: 12px; }

.visuellement-cache {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ===== Boutons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 22px; border-radius: var(--radius-sm);
    border: 1px solid transparent; font-weight: 700; font-size: 1rem; line-height: 1.2;
    text-decoration: none; cursor: pointer; text-align: center; transition: var(--transition);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--hover); border-color: var(--text-soft); }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 1.05rem; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 0.95rem; }
.btn-block { width: 100%; min-height: 56px; }

/* ===== Navigation ===== */
.navbar {
    position: sticky; top: 0; z-index: 1000; height: var(--nav-h);
    background: var(--bg); border-bottom: 1px solid var(--line);
}
.nav-container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); min-height: 44px; border-radius: var(--radius-xs); }
.brand-logo {
    width: 40px; height: 40px; border-radius: var(--radius-sm); flex-shrink: 0;
    background: var(--primary); color: var(--white);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; }
.brand-tagline { font-size: 0.78rem; color: var(--muted); }

.nav-menu { display: flex; gap: 2px; }
.nav-link {
    display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px;
    color: var(--text-soft); text-decoration: none; font-weight: 500; font-size: 0.95rem;
    border-radius: var(--radius-xs); transition: var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--hover); }
.nav-link.active { color: var(--text); box-shadow: inset 0 -2px 0 var(--primary); border-radius: var(--radius-xs) var(--radius-xs) 0 0; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-nav { min-height: 44px; padding: 10px 18px; font-size: 0.95rem; }
.hamburger {
    display: none; width: 44px; height: 44px; border-radius: var(--radius-xs);
    border: 1px solid var(--line-strong); background: transparent; color: var(--text);
    font-size: 1.1rem; cursor: pointer;
}
.hamburger:hover { background: var(--hover); }

/* ===== Hero ===== */
.hero {
    padding: 48px 0 64px;
    background:
        radial-gradient(900px 480px at 80% -10%, rgba(200, 30, 30, 0.05), transparent 70%),
        var(--bg);
}
.hero-container { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.sub-title { color: var(--text-soft); font-weight: 600; font-size: 0.92rem; margin-bottom: 16px; }
.sub-title::before, .section-subtitle::before {
    content: ""; display: inline-block; width: 18px; height: 2px; margin-right: 10px;
    background: var(--primary); vertical-align: middle; position: relative; top: -2px;
}
.hero h1 { font-size: clamp(2.1rem, 1.35rem + 3.2vw, 3.6rem); max-width: 16ch; }
.hero-texte { color: var(--muted); font-size: 1.08rem; margin-top: 20px; max-width: 56ch; }

/* Barre de réservation */
.resa { margin-top: 32px; max-width: 640px; }
.resa-titre { font-size: 1rem; font-weight: 600; color: var(--text-soft); letter-spacing: 0; margin-bottom: 10px; }
.resa-barre {
    display: flex; flex-direction: column; gap: 8px; padding: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.resa-champ {
    flex: 1; min-width: 0; position: relative;
    background: var(--bg); border: 1px solid var(--field-border); border-radius: var(--radius-xs);
}
.resa-champ:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Le libellé est posé sur la liste : toute la zone (≥ 58 px de haut) est cliquable */
.resa-champ label {
    position: absolute; left: 14px; top: 8px; pointer-events: none;
    font-size: 0.8rem; font-weight: 600; color: var(--muted); line-height: 1.2;
}
.resa-champ select {
    appearance: none; -webkit-appearance: none; display: block; width: 100%; min-height: 58px;
    padding: 26px 40px 8px 14px; border: 0; border-radius: var(--radius-xs);
    background: transparent var(--chevron) no-repeat right 14px center;
    font-weight: 600; font-size: 1rem; color: var(--text); cursor: pointer;
}
.resa-champ select:focus { outline: none; }
.resa-bouton { width: 100%; }

.hero-infos { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-top: 18px; font-size: 0.95rem; }
.hero-tel {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
    color: var(--text); font-weight: 600; text-decoration: none; border-radius: var(--radius-xs);
}
.hero-tel i { color: var(--muted); font-size: 0.85rem; }
.hero-tel:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-horaires { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 0.88rem; color: var(--muted); }
.hero-horaires li span:last-child { color: var(--text-soft); }

.hero-visuel { min-width: 0; }
.hero-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.hero-badges {
    list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px;
    margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
    font-size: 0.92rem; color: var(--text-soft); font-weight: 500;
}
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges i, .hero-adresse i { color: var(--accent); font-size: 0.85rem; }
.hero-adresse { margin-top: 10px; font-size: 0.88rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }

/* ===== Statut ouvert / fermé ===== */
.statut { display: inline-flex; align-items: center; gap: 10px; color: var(--text-soft); min-height: 44px; }
.statut-point { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.statut.est-ouvert .statut-point { background: var(--open); box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.16); }
.statut.est-ouvert .statut-texte strong { color: var(--open); }
.statut.est-ferme .statut-point { background: var(--closed); }
.statut.est-ferme .statut-texte strong { color: var(--closed); }
.statut-grand { font-size: 1rem; margin: 16px 0 8px; }

/* ===== Sections ===== */
.section { padding: var(--pad-section) 0; }
.section + .section, .hero + .section, .section + .urgent-bar { border-top: 1px solid var(--line); }
.section-claire { background: var(--surface); }
.section-header { max-width: 720px; margin-bottom: 40px; }
.section-subtitle { color: var(--text-soft); font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }
.section-intro { color: var(--muted); font-size: 1.05rem; margin-top: 14px; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }

/* ===== Cartes prestations ===== */
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; transition: var(--transition);
}
.card:hover { border-color: var(--line-strong); }
.card-icon, .feature-icon, .info-icon, .urgent-icone {
    width: 44px; height: 44px; border-radius: var(--radius-sm); flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-tint); color: var(--accent); font-size: 1.05rem;
}
.card-service .card-icon { margin-bottom: 18px; }
.card-service h3 { margin-bottom: 8px; }
.card-service p { color: var(--muted); font-size: 0.95rem; }

/* ===== Tarifs : liste épurée, prix alignés à droite ===== */
.tarifs-liste { list-style: none; border-top: 1px solid var(--line); }
.tarif-ligne {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "desc desc" "prix bouton";
    gap: 12px 16px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line);
}
.tarif-desc { grid-area: desc; min-width: 0; }
.tarif-desc h3 { display: flex; align-items: baseline; gap: 12px; }
.tarif-desc h3 i { color: var(--muted); font-size: 0.9rem; width: 18px; text-align: center; flex-shrink: 0; }
.tarif-precision { color: var(--muted); font-size: 0.92rem; margin-top: 4px; padding-left: 30px; }
.tarif-prix { grid-area: prix; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; color: var(--muted); font-size: 0.85rem; }
.tarif-prix strong { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.tarif-ligne .btn { grid-area: bouton; }
.tarifs-note { margin-top: 24px; color: var(--muted); font-size: 0.92rem; display: flex; gap: 10px; align-items: baseline; }
.tarifs-note i { color: var(--accent); }

/* ===== Photos encadrées ===== */
.cadre-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.cadre-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* ===== Devis ===== */
.devis-grid, .pourquoi-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.devis-texte > p:not(.section-subtitle) { color: var(--muted); margin-top: 16px; }
.check-list { list-style: none; margin: 22px 0 28px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: baseline; color: var(--text-soft); }
.check-list i { color: var(--accent); font-size: 0.85rem; }
.devis-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Pourquoi nous choisir ===== */
.features-list { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 28px; column-gap: 32px; }
.feature { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--line); }
.feature h3 { margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ===== Galerie ===== */
.gallery-card { min-width: 0; }
.gallery-img {
    display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; background: var(--surface); cursor: zoom-in;
}
.gallery-img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s ease; }
.gallery-img:hover img { transform: scale(1.03); }
.gallery-card figcaption { padding: 14px 2px 0; }
.gallery-card h3 { font-size: 1rem; }
.gallery-card p { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }

/* ===== Horaires & accès ===== */
.cta-container { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.table-horaires { width: 100%; border-collapse: collapse; margin-top: 12px; }
.table-horaires th, .table-horaires td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-horaires tr:first-child th, .table-horaires tr:first-child td { border-top: 1px solid var(--line); }
.table-horaires th { text-align: left; font-weight: 600; color: var(--text-soft); width: 34%; }
.table-horaires td { text-align: right; color: var(--text); }
.plage { white-space: nowrap; }
.table-horaires tr.aujourdhui th, .table-horaires tr.aujourdhui td { background: var(--surface-2); }
.table-horaires tr.aujourdhui th { box-shadow: inset 3px 0 0 var(--primary); color: var(--text); }
.table-horaires tr.aujourdhui th::after { content: " (aujourd'hui)"; color: var(--accent); font-weight: 600; font-size: 0.8rem; }

.cta-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.cta-box h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.cta-box h3 i { color: var(--accent); font-size: 1rem; }
.cta-box p { color: var(--muted); margin: 10px 0 20px; }
.phone-link {
    display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 16px; width: fit-content;
    color: var(--text); font-weight: 700; font-size: 1.25rem; text-decoration: none; border-radius: var(--radius-xs);
}
.phone-link i { color: var(--muted); font-size: 1rem; }
.phone-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ===== Contact / rendez-vous ===== */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.info-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-item:first-child { border-top: 1px solid var(--line); }
.info-item h3 { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.highlight { font-size: 1.1rem; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.sub-text { color: var(--muted); font-size: 0.9rem; }
.lien-discret { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; border-radius: var(--radius-xs); }
.lien-discret:hover { text-decoration: underline; text-underline-offset: 3px; }
.info-encart {
    display: flex; gap: 12px; align-items: baseline; margin-top: 24px; padding: 16px 18px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text-soft);
}
.info-encart i { color: var(--accent); }

.contact-form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
.contact-form-card h3 { font-size: 1.35rem; }
.form-sub { color: var(--muted); font-size: 0.9rem; margin: 6px 0 24px; }
.form-ligne { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 16px; }
.form-group { margin-bottom: 18px; min-width: 0; }
.form-group label, .creneaux legend { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; color: var(--text-soft); }
.form-group input:not([type="radio"]), .form-group select, .form-group textarea {
    display: block; width: 100%; min-height: 48px; padding: 12px 14px;
    background: var(--bg); color: var(--text); border: 1px solid var(--field-border); border-radius: var(--radius-xs);
    transition: border-color 0.2s ease;
}
.form-group select {
    appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
    background: var(--bg) var(--chevron) no-repeat right 14px center;
}
select option { background: var(--surface); color: var(--text); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:not([type="radio"]):hover, .form-group select:hover, .form-group textarea:hover { border-color: var(--text-soft); }
.form-group input:focus-visible, .form-group select:focus-visible, .form-group textarea:focus-visible { outline-offset: 2px; border-color: var(--text); }
.form-group input:user-invalid, .form-group select:user-invalid, .form-group textarea:user-invalid { border-color: var(--closed); }
.aide { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }
select.preselection { animation: surbrillance 1.6s ease; }
@keyframes surbrillance { 0%, 60% { box-shadow: 0 0 0 4px rgba(200, 30, 30, 0.35); } 100% { box-shadow: none; } }

.creneaux { border: 0; min-width: 0; }
.creneaux-choix { display: flex; gap: 10px; flex-wrap: wrap; }
.radio {
    flex: 1 1 120px; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px;
    border: 1px solid var(--field-border); border-radius: var(--radius-xs); background: var(--bg);
    cursor: pointer; font-weight: 500; color: var(--text);
}
.radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.radio:has(input:checked) { border-color: var(--accent); background: var(--coche); }
.radio:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.radio input:focus-visible { outline: none; }
.champ-piege { display: none !important; }

/* ===== Urgence ===== */
.urgent-bar { padding: 48px 0; }
.urgent-container {
    display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; padding: 24px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.urgent-text { flex: 1 1 260px; min-width: 0; }
.urgent-text h2 { font-size: 1.3rem; letter-spacing: -0.01em; }
.urgent-text p { color: var(--muted); margin-top: 4px; }
.urgent-container .btn { flex: 1 1 100%; }

/* ===== Pied de page ===== */
.footer { background: var(--bg-deep); border-top: 1px solid var(--line); }
.footer-container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; padding: 36px 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-links a {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
    color: var(--text-soft); text-decoration: none; font-size: 0.95rem; border-radius: var(--radius-xs);
}
.footer-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 0 88px; font-size: 0.88rem; color: var(--muted); }
.footer-bottom a { color: var(--text-soft); display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; border-radius: 4px; }
.footer-bottom a:hover { color: var(--text); }

/* ===== Barre d'action fixe (mobile) ===== */
.barre-action { display: none; }

/* ===== Lightbox ===== */
.lightbox-modal {
    position: fixed; inset: 0; z-index: 20000; background: rgba(8, 11, 15, 0.95);
    display: flex; align-items: center; justify-content: center; padding: 72px 16px 24px;
}
.lightbox-modal[hidden] { display: none; }
.lightbox-figure { max-width: 1000px; width: 100%; text-align: center; }
.lightbox-content { max-width: 100%; max-height: 78vh; margin: 0 auto; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-caption { color: var(--text); margin-top: 14px; font-weight: 600; }
.lightbox-close {
    position: absolute; top: 14px; right: 16px; width: 48px; height: 48px; border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong); background: transparent; color: var(--text);
    font-size: 1.3rem; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.12); }

/* ===== Modales ===== */
.site-modal { position: fixed; z-index: 10000; inset: 0; background-color: rgba(8, 11, 15, 0.78); overflow: auto; padding: 16px; }
.site-modal[hidden] { display: none; }
.modal-boite {
    background-color: var(--surface); color: var(--text-soft); margin: 8vh auto; padding: 28px 24px;
    border: 1px solid var(--line); border-radius: var(--radius);
    max-width: 640px; position: relative; line-height: 1.6;
}
.modal-boite p { margin-bottom: 10px; }
.modal-close {
    position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; font-size: 1.2rem; border-radius: var(--radius-xs);
    cursor: pointer; color: var(--muted); background: none; border: 0;
}
.modal-close:hover { color: var(--text); background: var(--surface-2); }
.modal-titre { margin: 0 48px 16px 0; font-size: 1.45rem; letter-spacing: -0.015em; display: flex; align-items: center; gap: 12px; }
.modal-titre i { color: var(--accent); font-size: 1.05rem; }
.zone-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px; margin: 14px 0 16px; }
.zone-list li { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
.zone-list i { color: var(--accent); font-size: 0.85rem; }
.modal-note { color: var(--muted); }

/* ===== Toast ===== */
.toast-notification {
    position: fixed; top: calc(var(--nav-h) + 12px); right: 20px; left: auto; max-width: 420px; z-index: 30000;
    background: var(--surface-2); color: var(--text); padding: 16px 20px; border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    display: flex; align-items: center; gap: 12px; font-weight: 600;
    opacity: 0; transform: translateY(-12px); transition: opacity 0.4s ease, transform 0.4s ease;
}
.toast-notification.show { opacity: 1; transform: translateY(0); }
.toast-icone { font-size: 1.2rem; color: var(--open); }

/* ===== Retour en haut ===== */
.back-to-top {
    position: fixed; bottom: calc(24px + var(--barre-h)); right: 24px; width: 48px; height: 48px; z-index: 9999;
    background-color: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, border-color 0.2s ease;
}
.back-to-top:hover { border-color: var(--text-soft); }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ===== Badge démo (commun aux démos du portfolio) ===== */
.demo-badge {
    position: fixed; left: 16px; bottom: calc(16px + var(--barre-h)); z-index: 10001; background: #0B1F33; color: #fff;
    font: 600 13px/1.3 system-ui, sans-serif; padding: 12px 16px; border-radius: 999px;
    text-decoration: none; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5); min-height: 44px;
    display: inline-flex; align-items: center;
}
.demo-badge b { font-weight: 600; }
.demo-badge span { color: #FF8A1F; margin-left: 4px; }
.demo-badge:focus-visible { outline: 3px solid #FF8A1F; outline-offset: 3px; }

/* ==========================================================
   Responsive (mobile d'abord : les règles ci-dessus visent le téléphone)
   ========================================================== */
@media (max-width: 640px) {
    .brand-tagline { display: none; }
    .toast-notification { left: 16px; right: 16px; max-width: none; }
    .back-to-top { right: 16px; }
    .demo-badge { padding: 10px 14px; font-size: 12px; }
    .demo-badge b { display: none; }
    .demo-badge span { margin-left: 0; }
    .demo-badge span::before { content: "Démo · "; color: #fff; }
}

@media (max-width: 420px) {
    .container { padding: 0 16px; }
    .footer-container { padding: 32px 16px; }
    .nav-container { gap: 8px; }
    .brand { gap: 8px; }
    .brand-name { font-size: 1rem; width: min-content; }
    .btn-nav { padding: 10px 14px; font-size: 0.92rem; gap: 6px; }
    .btn-nav i { display: none; }
    .tarif-precision { padding-left: 0; }
}

@media (min-width: 641px) {
    :root { --pad-section: 80px; }
    .form-ligne { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .features-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-form-card { padding: 32px; }
    .modal-boite { padding: 32px; }
    .urgent-container { padding: 28px 32px; flex-wrap: nowrap; }
    .urgent-container .btn { flex: 0 0 auto; }
    .resa-barre { flex-direction: row; align-items: stretch; }
    .resa-bouton { width: auto; flex-shrink: 0; }
}

@media (min-width: 768px) {
    /* Tarifs en trois colonnes : prestation | prix (à droite) | action */
    .tarif-ligne { grid-template-columns: minmax(0, 1fr) auto 128px; grid-template-areas: "desc prix bouton"; gap: 0 32px; }
    .tarif-prix { justify-content: flex-end; flex-wrap: nowrap; white-space: nowrap; }
    .tarif-ligne .btn { width: 100%; }
}

@media (max-width: 768px) {
    /* Barre d'action fixe en bas : Appeler / Rendez-vous */
    :root { --barre-h: calc(68px + env(safe-area-inset-bottom, 0px)); }
    .barre-action {
        display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
        background: var(--bg); border-top: 1px solid var(--line-strong);
    }
    .barre-action .btn { min-height: 48px; padding: 10px 12px; }
    .footer-bottom { padding-bottom: 80px; }
}

.btn-nav-court { display: none; }

@media (max-width: 1100px) {
    .btn-nav-long { display: none; }
    .btn-nav-court { display: inline; }
    .nav-link { padding: 8px 9px; }
}

@media (max-width: 991px) {
    .hamburger { display: inline-flex; align-items: center; justify-content: center; }
    .nav-menu {
        display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
        background: var(--bg); padding: 8px 20px 16px; border-bottom: 1px solid var(--line-strong);
        box-shadow: 0 16px 24px -12px rgba(0, 0, 0, 0.6);
    }
    .nav-menu.active { display: flex; }
    .nav-link { padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav-link.active { box-shadow: inset 3px 0 0 var(--primary); padding-left: 14px; border-radius: 0; }
}

@media (min-width: 992px) {
    .hero { padding: 88px 0 96px; }
    .hero-container { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; }
    .hero-photo img { aspect-ratio: 4 / 3.4; }
    .devis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
    .devis-image img { aspect-ratio: 4 / 3; }
    .pourquoi-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; }
    .pourquoi-image img { aspect-ratio: 4 / 5; }
    .cta-container { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; }
    .cta-box { margin-top: 54px; }
    .contact-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; }
    .contact-info { position: sticky; top: calc(var(--nav-h) + 24px); }
}
