:root {
  --rouge: #e30613;
  --rouge-vif: #ff2a36;
  --noir: #0a0a0b;
  --noir-2: #141416;
  --noir-3: #1f1f23;
  --blanc: #ffffff;
  --gris: #f4f4f5;
  --texte: #18181b;
  --texte-doux: #5b5b63;
  --clair-doux: #a1a1aa;
  --bord: #e4e4e7;
  --rayon: 18px;
  --titre: "Archivo", system-ui, sans-serif;
  --corps: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--corps); color: var(--texte); background: var(--blanc); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; margin-bottom: 2.5rem; max-width: 18ch; }
h3 { font-size: 1.15rem; font-weight: 700; }

.conteneur { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-sombre { background: var(--noir); color: var(--blanc); }
.etiquette { font-family: var(--titre); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--rouge); margin: 0 0 1rem; }
.etiquette::before { content: ""; display: inline-block; width: 22px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 10px; }

/* Valeur manquante (config.js à compléter) */
.a-completer { background: repeating-linear-gradient(-45deg, #ffe9a8 0 6px, #fff4cc 6px 12px); color: #6b4e00; border-radius: 4px; padding: 0 .4em; font-size: .9em; font-style: normal; font-weight: 600; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font-family: var(--titre); font-weight: 700; font-size: 1rem; padding: .95rem 1.6rem; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s, border-color .2s; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn-rouge { background: var(--rouge); color: var(--blanc); box-shadow: 0 10px 30px -10px rgba(227, 6, 19, .7); }
.btn-rouge:hover { background: var(--rouge-vif); box-shadow: 0 14px 36px -10px rgba(255, 42, 54, .8); }
.btn-contour { border-color: rgba(255,255,255,.35); color: var(--blanc); background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.btn-contour:hover { border-color: var(--blanc); }
.btn-contour-sombre { border-color: var(--texte); color: var(--texte); }
.btn-contour-sombre:hover { background: var(--texte); color: var(--blanc); }
.btn-petit { padding: .6rem 1.15rem; font-size: .9rem; }

/* En-tête */
.entete { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.entete.defile { background: rgba(10,10,11,.86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.entete-in { display: flex; align-items: center; gap: 2rem; height: 76px; color: var(--blanc); }
.marque { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.marque-logo { width: auto; height: 56px; }
.marque-nom { font-family: var(--titre); font-weight: 800; font-size: 1.1rem; letter-spacing: .02em; }
.marque-nom b { color: var(--rouge); font-weight: 800; }
.nav { display: flex; gap: 1.8rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .8; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--blanc); transition: transform .25s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; background: radial-gradient(ellipse at 75% 40%, #1a0204 0%, var(--noir) 60%); color: var(--blanc); overflow: hidden; padding: 120px 0 70px; }
.hero-image { position: absolute; inset: 0; background: #000 url("assets/fond-fibre-hero.jpg") right -7% center / 70% auto no-repeat; filter: hue-rotate(135deg) saturate(1.25); }
.hero-fibre { opacity: .35; position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-voile { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,11,.92) 0%, rgba(10,10,11,.55) 45%, rgba(10,10,11,0) 75%), linear-gradient(0deg, var(--noir) 0%, transparent 25%); }
.hero-in { position: relative; }
.surtitre { display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 500; color: var(--clair-doux); border: 1px solid rgba(255,255,255,.14); padding: .4rem .9rem; border-radius: 999px; margin: 0 0 1.8rem; }
.point { width: 8px; height: 8px; border-radius: 50%; background: var(--rouge); box-shadow: 0 0 0 0 rgba(227,6,19,.7); animation: pouls 2s infinite; }
@keyframes pouls { 70% { box-shadow: 0 0 0 10px rgba(227,6,19,0); } 100% { box-shadow: 0 0 0 0 rgba(227,6,19,0); } }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.6rem); font-weight: 900; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--rouge); }
.hero-texte { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d4d4d8; max-width: 46ch; margin: 1.6rem 0 2.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-preuves { list-style: none; padding: 0; margin: 4rem 0 0; display: flex; flex-wrap: wrap; gap: 1rem 3rem; }
.hero-preuves li { display: flex; flex-direction: column; border-left: 2px solid var(--rouge); padding-left: 1rem; }
.hero-preuves strong { font-family: var(--titre); font-size: 1.35rem; }
.hero-preuves span { color: var(--clair-doux); font-size: .9rem; }

/* Prestations */
.prestas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.presta { position: relative; background: var(--noir); color: var(--blanc); border-radius: var(--rayon); padding: 2rem 1.8rem 2.2rem; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.presta::after { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; background: radial-gradient(circle, rgba(227,6,19,.35), transparent 65%); transition: opacity .3s; opacity: .6; }
.presta:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(0,0,0,.5); }
.presta:hover::after { opacity: 1; }
.presta-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--rouge); margin-bottom: 1.6rem; position: relative; z-index: 1; }
.presta-ic svg { width: 26px; height: 26px; fill: none; stroke: var(--blanc); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.presta h3 { font-size: 1.3rem; margin-bottom: .6rem; position: relative; z-index: 1; }
.presta p { margin: 0; color: var(--clair-doux); position: relative; z-index: 1; }
.presta-autre { background: var(--rouge); text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; }
.presta-autre::after { display: none; }
.presta-autre p { color: rgba(255,255,255,.88); }
.presta-autre h3 { font-size: 1.6rem; }
.presta-lien { margin-top: 1.4rem; font-family: var(--titre); font-weight: 800; }
.presta-autre:hover { background: var(--rouge-vif); }

/* Clients */
.clients { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--noir-3); border: 1px solid var(--noir-3); border-radius: var(--rayon); overflow: hidden; }
.client { background: var(--noir); padding: 2rem 1.5rem; transition: background .25s; }
.client:hover { background: var(--noir-2); }
.client h3 { margin-bottom: .7rem; }
.client h3::before { content: ""; display: block; width: 28px; height: 3px; background: var(--rouge); margin-bottom: 1.2rem; }
.client p { color: var(--clair-doux); margin: 0; font-size: .95rem; }

/* Galerie */
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 1rem; }
.galerie figure { margin: 0; position: relative; border-radius: var(--rayon); overflow: hidden; background: var(--noir-2); }
.galerie figure:first-child { grid-row: span 2; }
.galerie:has(> figure:nth-child(2):last-child) { grid-template-columns: 1.3fr 1fr; grid-auto-rows: 420px; }
.galerie:has(> figure:nth-child(2):last-child) figure:first-child { grid-row: auto; }
.galerie:has(> figure:nth-child(3):last-child) { grid-template-columns: 1.4fr 1fr; grid-auto-rows: 250px; }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.galerie figure:hover img { transform: scale(1.04); }
.galerie figcaption { position: absolute; inset: auto 0 0; padding: 2.5rem 1.2rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: var(--blanc); font-weight: 600; font-size: .95rem; }
.galerie .vide { display: grid; place-items: center; text-align: center; color: #71717a; border: 2px dashed #d4d4d8; background: var(--gris); font-size: .9rem; padding: 1rem; }

/* Atouts */
.atouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.atout { border-top: 1px solid var(--noir-3); padding-top: 1.6rem; }
.atout-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(227,6,19,.12); color: var(--rouge); font-size: 1.3rem; margin-bottom: 1.2rem; }
.atout h3 { margin-bottom: .5rem; }
.atout p { color: var(--clair-doux); margin: 0; }

/* Avis */
.avis-tete { display: flex; align-items: center; gap: 1.5rem 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.avis-tete h2 { margin: 0; font-size: clamp(3.5rem, 8vw, 5.5rem); font-weight: 900; }
.avis-tete h2 small { font-size: .4em; color: var(--texte-doux); }
.avis-tete p { margin: 0; color: var(--texte-doux); }
.avis-tete .btn { margin-left: auto; }
.etoiles { color: #fbbc04; font-size: 1.4rem; letter-spacing: 2px; }
.avis-liste { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.avis-carte { border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.6rem; margin: 0; }
.avis-carte blockquote { margin: .8rem 0 1rem; }
.avis-carte figcaption { font-weight: 600; font-size: .9rem; }
.avis-vide { grid-column: 1 / -1; color: var(--texte-doux); }

/* Zone */
.zone-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.zone h2 { margin-bottom: 1.2rem; }
.zone-texte { color: var(--clair-doux); max-width: 44ch; }
.vehicule img { border-radius: var(--rayon); margin-top: 2rem; }
.carte { border-radius: var(--rayon); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--noir-3); }
.carte iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.9) contrast(.9); }

/* Contact */
.contact-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); }
.contact-in > div > p { color: var(--texte-doux); max-width: 40ch; }
.coord { margin: 2rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .9rem 1.5rem; }
.coord dt { font-weight: 600; color: var(--texte-doux); font-size: .9rem; }
.coord dd { margin: 0; font-weight: 500; }
.coord a { text-decoration: none; color: var(--rouge); font-weight: 700; }
.form { min-width: 0; background: var(--gris); border-radius: var(--rayon); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.1rem; }
.form label { display: grid; gap: .4rem; font-weight: 600; font-size: .9rem; }
.form input:not([type=radio]), .form select, .form textarea { font: inherit; font-weight: 400; padding: .85rem 1rem; border: 1px solid var(--bord); border-radius: 12px; background: var(--blanc); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--rouge); outline-offset: 1px; border-color: transparent; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.choix { display: flex; flex-wrap: wrap; gap: .6rem; }
.choix label { display: flex; align-items: center; gap: .5rem; padding: .6rem 1rem; background: var(--blanc); border: 1px solid var(--bord); border-radius: 999px; cursor: pointer; }
.choix label:has(input:checked) { border-color: var(--rouge); color: var(--rouge); }
.choix input { accent-color: var(--rouge); }
.form .btn { justify-self: start; }
.petit { font-size: .82rem; color: var(--texte-doux); margin: 0; }

/* Pied */
.pied { background: var(--noir); color: var(--clair-doux); padding: 3rem 0; border-top: 3px solid var(--rouge); }
.pied-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; font-size: .9rem; }
.pied .marque { color: var(--blanc); }
.pied p { margin: 0; }

.appel-flottant { display: none; }

/* Pages simples (mentions, merci) */
.page { padding: 140px 0 80px; }
.page .conteneur { max-width: 760px; }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 2rem; }
.page h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; max-width: none; }
.page-entete { background: var(--noir); }

/* Apparition */
.revele { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.revele.vu { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .clients { grid-template-columns: repeat(2, 1fr); }
  .client:last-child { grid-column: span 2; }
  .atouts { grid-template-columns: repeat(2, 1fr); }
  .avis-liste { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero-image { background-size: 190% auto; background-position: 72% 88%; opacity: .75; }
  .entete-in { gap: 1rem; }
  .entete-in > .btn { margin-left: auto; }
  .burger { display: block; }
  .nav { position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0; background: var(--noir); padding: .5rem 16px 1.5rem; transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility 0s .3s; z-index: -1; }
  .nav.ouvert { transform: none; visibility: visible; transition: transform .3s; }
  .nav a { padding: 1rem 0; border-bottom: 1px solid var(--noir-3); font-size: 1.1rem; }
  .zone-in, .contact-in { grid-template-columns: 1fr; }
  .prestas { grid-template-columns: 1fr 1fr; }
  .galerie { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .appel-flottant { display: grid; place-items: center; position: fixed; right: 16px; bottom: 16px; width: 58px; height: 58px; border-radius: 50%; background: var(--rouge); color: var(--blanc); box-shadow: 0 10px 30px -6px rgba(227,6,19,.7); z-index: 40; }
  .appel-flottant svg { width: 24px; height: 24px; fill: currentColor; }
}
@media (max-width: 560px) {
  .marque-nom { font-size: 1rem; }
  .entete-in > .btn { display: none; }
  .clients, .atouts, .avis-liste, .deux, .prestas { grid-template-columns: minmax(0, 1fr); }
  .client:last-child { grid-column: auto; }
  .galerie, .galerie:has(> figure:nth-child(2):last-child), .galerie:has(> figure:nth-child(3):last-child) { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .galerie figure:first-child { grid-row: auto; }
  .hero-actions .btn { width: 100%; }
  .avis-tete .btn { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .revele { opacity: 1; transform: none; transition: none; }
  .point { animation: none; }
}

/* Arrivée sur le formulaire depuis l'adresse e-mail */
.form.signale { animation: signale 1.4s ease; }
@keyframes signale { 0%, 100% { box-shadow: 0 0 0 0 rgba(227,6,19,0); } 25% { box-shadow: 0 0 0 4px rgba(227,6,19,.55); } }

/* Lien d'évitement (clavier) */
.evitement { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--rouge); color: var(--blanc); padding: .7rem 1.1rem; border-radius: 10px; font-weight: 700; text-decoration: none; transition: top .2s; }
.evitement:focus { top: 12px; }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; }

/* Pages courtes : merci, 404 */
.page-simple { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.page-simple-logo { margin: 0 auto 2rem; width: 200px; height: auto; }
.page-simple h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
.page-simple p { color: var(--clair-doux); margin: 1.2rem auto 2rem; max-width: 40ch; }
.page-simple-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
