/* Carrosserie Saint-André : feuille de style du site (écrite à la main, sans outil).
   Style sobre et sombre d'atelier : noir profond, gris anthracite, rouge du logo en touches seulement.
   Police libre (SIL OFL, voir assets/fonts/OFL.txt) : Exo 2 (l'italique ne sert qu'au logo).
   Les photos ne sont jamais trop agrandies, pour rester nettes.
   Animations discrètes, coupées si le visiteur a demandé « moins d'animations ». */

@font-face { font-family: "Exo 2"; src: url("../fonts/exo2-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url("../fonts/exo2-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url("../fonts/exo2-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url("../fonts/exo2-900-italic.woff2") format("woff2"); font-weight: 900; font-style: italic; font-display: swap; }

:root {
    --bg: #070708;
    --bg-2: #0c0c0e;
    --panel: #121215;
    --panel-2: #18181c;
    --red: #d9252c;        /* rouge du logo */
    --red-dark: #b31d23;
    --white: #ffffff;
    --text: #d9d9de;
    --muted: #8c8c96;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --font: "Exo 2", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.7 var(--font); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--white); }
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--white); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.small { font-size: .875rem; }
.kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--muted); font-weight: 600; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--red); }

/* Le logo (redessiné d'après la camionnette) */
.logo { display: block; width: 150px; height: auto; overflow: visible; }
.logo-car { fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; }
.logo-main { fill: var(--red); font: italic 900 50px var(--font); letter-spacing: -1px; }
.logo-sub { fill: #fff; font: italic 900 19px var(--font); letter-spacing: 1px; }
.logo-swoosh { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }

/* Boutons */
.button { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border: 1px solid var(--red); border-radius: 4px; background: var(--red); color: #fff; font: 600 1rem/1.2 var(--font); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background .25s, border-color .25s, color .25s; }
.button:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button-line { background: transparent; border-color: var(--line-2); }
.button-line:hover { background: #fff; border-color: #fff; color: var(--bg); }

/* En-tête */
.top { position: sticky; top: 0; z-index: 20; background: rgba(7, 7, 8, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 30px; min-height: 76px; }
.top .logo { width: 128px; }
.menu { display: flex; gap: 30px; margin-left: auto; }
.menu a { color: var(--text); text-decoration: none; font-weight: 400; font-size: .98rem; transition: color .2s; }
.menu a:hover { color: #fff; }
.top-call { padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 4px; color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; transition: border-color .2s, background .2s; }
.top-call:hover { border-color: var(--red); background: var(--red); }
.phone-short { display: none; }

/* Haut de page */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, #0b0b0d 100%); }
.hero::before { content: ""; position: absolute; right: -10%; top: -30%; width: 60%; height: 140%; background: radial-gradient(closest-side, rgba(217, 37, 44, .10), transparent); pointer-events: none; }
.hero-inner { position: relative; display: grid; gap: 44px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.lead { max-width: 34em; color: #b7b7bf; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.hero-list { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 34px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.hero-list li + li::before { content: "·"; margin: 0 12px; color: #4a4a52; }
.hero-visual { position: relative; justify-self: center; width: min(100%, 360px); }
.hero-visual img { width: 100%; aspect-ratio: 382 / 510; object-fit: cover; border-radius: 6px; border: 1px solid var(--line-2); box-shadow: 0 40px 80px rgba(0, 0, 0, .6); }
.hero-badge { position: absolute; left: -22px; bottom: 28px; margin: 0; padding: 14px 18px; border-radius: 6px; border-left: 3px solid var(--red); background: var(--panel-2); box-shadow: 0 20px 40px rgba(0, 0, 0, .55); }
.hero-badge strong { display: block; color: #fff; font-weight: 600; }
.hero-badge span { color: var(--muted); font-size: .88rem; }

/* Bandeau d'infos */
.infobar { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.infobar-inner { display: grid; }
.infobar-inner > div { display: flex; flex-direction: column; gap: 2px; padding: 18px 0; }
.infobar-inner > div + div { border-top: 1px solid var(--line); }
.info-label { color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.infobar a, .infobar span:not(.info-label) { color: #fff; font-weight: 600; text-decoration: none; }

.open-status { display: inline-flex; align-items: center; gap: 8px; }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.open-status.is-open::before { background: #2fb56c; box-shadow: 0 0 0 0 rgba(47, 181, 108, .6); animation: pouls 2s infinite; }
@keyframes pouls { 70% { box-shadow: 0 0 0 8px rgba(47, 181, 108, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 181, 108, 0); } }

.js .rise { opacity: 0; transform: translateY(16px); animation: entre .8s var(--ease) forwards; }
.js .hero-text .rise:nth-child(2) { animation-delay: .08s; }
.js .hero-text .rise:nth-child(3) { animation-delay: .16s; }
.js .hero-text .rise:nth-child(4) { animation-delay: .24s; }
.js .hero-text .rise:nth-child(5) { animation-delay: .32s; }
.js .hero-visual.rise { animation-delay: .2s; }
@keyframes entre { to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .service.reveal { transition-delay: calc(var(--i) * 60ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Prestations */
.services { padding: 96px 0; background: var(--bg); }
.section-head { margin-bottom: 36px; }
.services-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.service { display: flex; flex-direction: column; padding: 28px 24px; background: var(--bg-2); color: var(--text); text-decoration: none; transition: background .3s; }
.service:hover { background: var(--panel-2); }
.service-icon { width: 34px; height: 34px; margin-bottom: 18px; color: var(--red); }
.service-icon svg { width: 100%; height: 100%; }
.service p { color: var(--muted); font-size: .95rem; }
.service-more { margin-top: auto; color: #fff; font-weight: 600; font-size: .9rem; }
.service-more::after { content: " →"; color: var(--red); transition: margin .25s; }
.service:hover .service-more::after { margin-left: 4px; }

/* L'atelier */
.atelier { padding: 96px 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.atelier-inner { display: grid; gap: 44px; align-items: center; }
.atelier-text p:not(.kicker) { color: #b0b0b8; }
.atelier-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.atelier-photos figure { position: relative; margin: 0; overflow: hidden; border-radius: 6px; border: 1px solid var(--line); }
.atelier-photos figure:last-child { margin-bottom: 44px; }
.atelier-photos img { width: 100%; aspect-ratio: 382 / 510; object-fit: cover; transition: transform 1s var(--ease); }
.atelier-photos .fig-van img { aspect-ratio: 4 / 5; object-position: 70% 50%; }
.atelier-photos figure:hover img { transform: scale(1.03); }
.atelier-photos figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); color: #fff; font-size: .88rem; font-weight: 600; }

/* Devis photo */
.devis { padding: 96px 0; background: var(--bg); border-top: 1px solid var(--line); }
.devis-inner { display: grid; gap: 40px; align-items: start; }
.devis-steps { display: grid; gap: 14px; margin: 24px 0; padding: 0; list-style: none; }
.devis-steps li { display: flex; align-items: center; gap: 14px; color: #cfcfd5; }
.devis-steps span { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--red); font-weight: 700; font-size: .95rem; }
.devis-note { color: var(--muted); }
.devis-note a { color: #fff; }
.devis-box { padding: 28px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.form { display: grid; gap: 16px; }
.form label { display: block; font-weight: 600; font-size: .92rem; color: #e6e6ea; }
.form input:not([type="file"]):not([type="checkbox"]), .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 13px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--bg-2); color: #fff; font: 1rem/1.4 var(--font); transition: border-color .2s; }
.form input::placeholder, .form textarea::placeholder { color: #5d5d66; }
.form select { color-scheme: dark; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); }
.form-row { display: grid; gap: 16px; }
.check { display: flex !important; align-items: center; gap: 10px; font-weight: 400 !important; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-zone { display: flex !important; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; border: 1px dashed var(--line-2); border-radius: 6px; background: var(--bg-2); text-align: center; cursor: pointer; transition: border-color .2s; }
.drop-zone:hover, .drop input:focus-visible + .drop-zone { border-color: var(--red); }
.drop-icon { width: 32px; height: 32px; color: var(--red); }
.drop-zone strong { color: #fff; font-weight: 600; }
.drop-zone span:last-child { color: var(--muted); font-weight: 400; font-size: .86rem; }
.drop.is-full .drop-zone { display: none !important; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.thumbs:empty { display: none; }
.thumbs li { position: relative; width: 84px; height: 84px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; border: 1px solid var(--line-2); }
.thumbs button { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--red); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 4px 0 0; }
.optional { font-weight: 400; font-size: .84rem; color: var(--muted); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 0 0 16px; padding: 14px 16px; border-radius: 4px; background: var(--bg-2); color: #fff; }
.notice ul { margin: 0; padding-left: 18px; }
.notice-ok { border-left: 3px solid #2fb56c; }
.notice-error { border-left: 3px solid var(--red); }

/* Contact */
.contact { padding: 96px 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.contact-inner { display: grid; gap: 36px; }
.open-status-big { margin: 0 0 16px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 4px; font-size: .9rem; }
.address { font-size: 1.1rem; color: #fff; }
.phone a { color: #fff; font-weight: 700; font-size: 1.9rem; text-decoration: none; }
.mail a { color: var(--text); }
.hours { width: 100%; max-width: 420px; border-collapse: collapse; margin-top: 14px; }
.hours caption { text-align: left; font-weight: 600; color: #fff; padding-bottom: 8px; }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; color: var(--muted); }
.hours .today > * { color: #fff; font-weight: 600; }
.hours .today th { box-shadow: inset 3px 0 0 var(--red); padding-left: 10px; }
.map { min-height: 360px; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; background: var(--panel); }

/* Pied de page */
.bottom { padding: 34px 0 38px; background: #040405; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
.bottom-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.bottom .logo { width: 128px; }
.bottom a { color: #fff; }
.bottom p { margin: 0 0 4px; }

/* Téléphone */
@media (max-width: 819px) {
    .menu { display: none; }
    .top-inner { min-height: 66px; }
    .top .logo { width: 110px; }
    .top-call { margin-left: auto; }
    .phone-long { display: none; }
    .phone-short { display: inline; }
    .hero-inner { padding-top: 40px; padding-bottom: 56px; }
    h1 { font-size: 2rem; }
    .hero-actions .button { flex: 1 1 100%; }
    .hero-visual { width: min(84%, 300px); }
    .hero-badge { left: -14px; }
    .phone a { font-size: 1.7rem; }
}

/* Tablette et ordinateur */
@media (min-width: 640px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
    .infobar-inner { grid-template-columns: 1fr 1.6fr 1fr; }
    .infobar-inner > div { padding: 20px 26px; }
    .infobar-inner > div:first-child { padding-left: 0; }
    .infobar-inner > div + div { border-top: 0; border-left: 1px solid var(--line); }
}
@media (min-width: 960px) {
    .hero-inner { grid-template-columns: 1.2fr .8fr; gap: 64px; padding-top: 88px; padding-bottom: 96px; }
    .services-grid { grid-template-columns: repeat(5, 1fr); }
    .atelier-inner { grid-template-columns: 1fr 1fr; gap: 64px; }
    .devis-inner { grid-template-columns: .85fr 1.15fr; gap: 64px; }
    .devis-box { padding: 34px 36px; }
    .contact-inner { grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal, .js .rise { opacity: 1; transform: none; }
}
