/* Palette: acier / anthracite + un accent de sécurité. Polices système, aucune ressource externe. */
:root {
  --ink: #14181c;
  --steel-900: #1b2025;
  --steel-800: #252b32;
  --steel-700: #333b44;
  --steel-500: #6b7682;
  --steel-300: #aeb6bf;
  --steel-100: #e9ecef;
  --paper: #f6f7f8;
  --white: #ffffff;
  --accent: #ffb400;
  --accent-dark: #c98f00;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
  --radius: 4px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 1.0625rem; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.ph { color: var(--steel-500); font-style: italic; }
.on-dark .ph, .dark .ph { color: var(--steel-300); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--steel-900); color: var(--white); border-bottom: 3px solid var(--accent); }
.header-in { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand img { height: 54px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: .25rem; }
.nav a { display: block; padding: .6rem .8rem; text-decoration: none; font-size: .95rem; font-weight: 600; letter-spacing: .02em; border-radius: var(--radius); color: var(--steel-100); }
.nav a:hover { background: var(--steel-700); color: var(--white); }
.header-tools { display: flex; align-items: center; gap: 1rem; font-size: .9rem; }
.phone { font-weight: 700; white-space: nowrap; color: var(--accent); }
.lang { display: flex; gap: .15rem; font-size: .8rem; font-weight: 700; }
.lang span { padding: .25rem .5rem; border-radius: var(--radius); color: var(--steel-500); position: relative; }
.lang a { padding: .25rem .5rem; border-radius: var(--radius); color: var(--steel-100); text-decoration: none; }
.lang a:hover { background: var(--steel-700); color: var(--white); }
.lang .is-current { background: var(--accent); color: var(--ink); }
.lang small { display: block; font-size: .6rem; font-weight: 500; letter-spacing: .04em; text-transform: lowercase; margin-top: -.15rem; text-align: center; }
.nav-toggle { display: none; background: none; border: 2px solid var(--steel-500); color: var(--white); border-radius: var(--radius); padding: .45rem .7rem; font: inherit; font-weight: 700; cursor: pointer; }

/* Boutons */
.btn { display: inline-block; font: inherit; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; font-size: .95rem; padding: .95rem 1.6rem; background: var(--accent); color: var(--ink); border: 2px solid var(--accent); border-radius: var(--radius); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: #ffc633; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--steel-300); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; background: var(--steel-900); color: var(--white); overflow: hidden; isolation: isolate; }
.hero .slides { position: absolute; inset: 0; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,24,28,.92) 0%, rgba(20,24,28,.65) 55%, rgba(20,24,28,.35) 100%); }
.hero-in { padding: 5rem 0 6rem; max-width: 760px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.7rem); font-weight: 800; margin-bottom: .5em; }
.hero .lead { font-size: 1.2rem; color: var(--steel-100); max-width: 40em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero-dots { position: absolute; left: 0; right: 0; top: 1.4rem; }
.hero-dots .wrap { display: flex; justify-content: flex-end; }

/* Slideshows */
.slides { position: relative; overflow: hidden; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.slide:first-child { opacity: 1; }
.slides.is-ready .slide { opacity: 0; }
.slides.is-ready .slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.dots { display: flex; gap: .5rem; align-items: center; }
.dots button { width: 34px; height: 6px; padding: 0; border: 0; background: rgba(255,255,255,.35); cursor: pointer; border-radius: 2px; }
.dots button[aria-current="true"] { background: var(--accent); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border: 0; border-radius: var(--radius); background: rgba(20,24,28,.7); color: var(--white); font-size: 1.4rem; cursor: pointer; }
.slider-btn:hover { background: var(--accent); color: var(--ink); }
.slider-btn.prev { left: .6rem; }
.slider-btn.next { right: .6rem; }

/* Bandeau de preuves */
.proof { background: var(--steel-800); color: var(--white); border-top: 3px solid var(--accent); }
.proof ul { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof li { padding: 2.2rem 1.5rem; border-left: 1px solid var(--steel-700); }
.proof li:first-child { border-left: 0; }
.proof strong { display: block; font-size: 2.4rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: .5rem; letter-spacing: -.02em; }
.proof span { display: block; color: var(--steel-100); }
.proof small { display: block; margin-top: .4rem; color: var(--steel-300); font-size: .85rem; line-height: 1.4; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.alt { background: var(--white); }
.section.dark { background: var(--steel-900); color: var(--white); }
.section-head { max-width: 46rem; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
.section-head p { color: var(--steel-500); font-size: 1.1rem; }
.dark .section-head p { color: var(--steel-300); }
.kicker { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: .6rem; }
.dark .kicker { color: var(--accent); }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { background: var(--white); border: 1px solid var(--steel-100); border-top: 4px solid var(--steel-800); padding: 1.8rem; border-radius: var(--radius); transition: transform .25s, box-shadow .25s, border-top-color .25s; }
.alt .card { background: var(--paper); }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20,24,28,.12); border-top-color: var(--accent); }
.card .icon { width: 54px; height: 54px; margin-bottom: 1.1rem; color: var(--steel-800); }
.card h3 { font-size: 1.3rem; font-weight: 800; }
.card p { color: var(--steel-700); margin: 0; }
.thread { margin-top: 1.4rem; display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; background: var(--steel-900); color: var(--white); padding: 1.8rem 2rem; border-left: 8px solid var(--accent); border-radius: var(--radius); }
.thread h3 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.thread p { margin: 0; color: var(--steel-300); }

/* Méthode */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; position: relative; }
.step { position: relative; padding: 1.6rem 1.4rem 1.4rem; background: var(--steel-800); border-radius: var(--radius); border-bottom: 4px solid var(--steel-700); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-size: 2.6rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: .8rem; }
.step h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: .4rem; }
.step p { color: var(--steel-300); margin: 0; font-size: .98rem; }
.method-note { margin-top: 2rem; color: var(--steel-300); max-width: 46rem; }

/* Réalisations */
.flagship { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; background: var(--white); border: 1px solid var(--steel-100); border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px rgba(20,24,28,.1); }
.flagship-media { background: var(--steel-900); padding: 0; }
.flagship-media .slides { aspect-ratio: 16 / 9; }
.video-slot { position: relative; margin: 0; aspect-ratio: 16 / 9; border-top: 3px solid var(--accent); background: var(--steel-900); }
.video-slot img { width: 100%; height: 100%; object-fit: cover; }
.video-slot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem 1rem; background: rgba(20,24,28,.82); color: var(--steel-100); font-size: .85rem; }
.flagship-body { padding: 2.2rem 2rem 2.2rem 0; }
.tag { display: inline-block; background: var(--accent); color: var(--ink); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 2px; margin-bottom: 1rem; }
.flagship-body h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; }
.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 1.2rem; justify-content: start; padding: 1rem 0; margin: 1rem 0; border-block: 1px solid var(--steel-100); }
.facts dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-500); font-weight: 700; }
.facts dd { margin: 0; font-weight: 800; }
.checks li { position: relative; padding-left: 1.7rem; margin-bottom: .5rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .9rem; height: .5rem; border-left: 3px solid var(--accent-dark); border-bottom: 3px solid var(--accent-dark); transform: rotate(-45deg); }
.dark .checks li::before { border-color: var(--accent); }
.cards.two { grid-template-columns: repeat(2, 1fr); margin-top: 1.6rem; }
.case { background: var(--white); border: 1px solid var(--steel-100); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 220px 1fr; transition: box-shadow .25s, transform .25s; }
.case:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,24,28,.12); }
.case img { width: 100%; height: 100%; object-fit: cover; min-height: 170px; }
.case div { padding: 1.4rem 1.5rem; }
.case h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .2rem; }
.case .where { color: var(--steel-500); font-size: .9rem; font-weight: 600; margin-bottom: .6rem; }
.case p:last-child { margin: 0; color: var(--steel-700); }

/* Secteurs */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.sector { background: var(--white); border: 1px solid var(--steel-100); border-bottom: 4px solid var(--steel-800); padding: 1.6rem 1.4rem; border-radius: var(--radius); transition: border-bottom-color .25s, transform .25s; }
.sector:hover { border-bottom-color: var(--accent); transform: translateY(-3px); }
.sector svg { width: 44px; height: 44px; color: var(--steel-800); margin-bottom: 1rem; }
.sector h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .3rem; }
.sector p { margin: 0; color: var(--steel-700); font-size: .98rem; }

/* Sécurité */
.safety { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.safety-note { margin-top: 1.4rem; padding: 1.2rem 1.4rem; border-left: 6px solid var(--accent); background: var(--steel-800); color: var(--white); border-radius: var(--radius); }
.safety-note strong { color: var(--accent); }

/* Références */
.refs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.refs li { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 96px; padding: 1rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .95rem; color: var(--steel-700); background: var(--paper); border: 1px solid var(--steel-100); border-radius: var(--radius); }
.refs-note { margin-top: 1rem; color: var(--steel-500); font-size: .9rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; }
.contact-list { display: grid; gap: 1.1rem; }
.contact-list dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.contact-list dd { margin: 0; color: var(--steel-100); }
.form { background: var(--steel-800); padding: 2rem; border-radius: var(--radius); border-top: 4px solid var(--accent); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .3rem; color: var(--steel-100); }
.form input, .form select, .form textarea { width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 2px solid transparent; border-radius: var(--radius); padding: .7rem .8rem; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.form textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--steel-300); margin: 0; }
.form-status { margin: 0; padding: .7rem .9rem; border-radius: var(--radius); background: var(--steel-900); color: var(--accent); font-weight: 600; }
.form-status[hidden] { display: none; }

/* Pied de page */
.site-footer { background: var(--ink); color: var(--steel-300); padding: 3rem 0 1.5rem; font-size: .92rem; border-top: 3px solid var(--accent); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 2rem; }
.site-footer img { height: 52px; width: auto; margin-bottom: 1rem; }
.site-footer h2 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: .8rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.foot-links li { margin-bottom: .35rem; }
.legal-ids li { margin-bottom: .25rem; }
.social { display: inline-flex; align-items: center; gap: .5rem; margin-top: .6rem; }
.social svg { width: 26px; height: 26px; }
.foot-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--steel-700); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem; }

/* Pages secondaires */
.page-head { background: var(--steel-900); color: var(--white); padding: 3rem 0; border-bottom: 3px solid var(--accent); }
.page-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0; font-weight: 800; }
.prose { max-width: 46rem; padding: 3rem 0 4rem; }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; font-weight: 800; }
.back { display: inline-block; margin-bottom: 1rem; margin-right: 1.2rem; color: var(--accent); text-decoration: none; font-weight: 700; }

/* Apparitions au défilement (activées par le JS uniquement pour ce qui est hors écran) */
.reveal.pre { opacity: 0; transform: translateY(26px); }
.reveal { transition: opacity .7s ease, transform .7s ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.pre { transition: none; opacity: 1; transform: none; }
  .slide { transition: none; }
}

/* Tablette */
@media (max-width: 1020px) {
  .cards, .steps, .sectors { grid-template-columns: repeat(2, 1fr); }
  .flagship { grid-template-columns: 1fr; gap: 0; }
  .flagship-body { padding: 1.8rem; }
  .safety, .contact { grid-template-columns: 1fr; gap: 2rem; }
  .refs { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 860px) {
  .js .nav-toggle { display: block; margin-left: auto; }
  .header-in { flex-wrap: wrap; gap: .6rem 1rem; padding-block: .6rem; }
  .nav { order: 5; flex-basis: 100%; margin: 0; }
  .js .nav { display: none; }
  .js .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  .header-tools { order: 3; }
  .phone { font-size: .85rem; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .cards, .steps, .sectors, .cards.two, .refs, .proof ul, .foot-grid, .form { grid-template-columns: 1fr; }
  .proof li { border-left: 0; border-top: 1px solid var(--steel-700); padding: 1.4rem 0; }
  .proof li:first-child { border-top: 0; }
  .thread { grid-template-columns: 1fr; gap: .6rem; }
  .case { grid-template-columns: 1fr; }
  .case img { min-height: 140px; max-height: 190px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .hero-in { padding: 3.5rem 0 5rem; }
  .brand img { height: 46px; }
  .form { padding: 1.3rem; }
}

/* Vidéo de présentation */
.intro-video { margin: 0; max-width: 960px; margin-inline: auto; border-top: 4px solid var(--accent); background: var(--steel-900); box-shadow: 0 18px 40px rgba(20,24,28,.18); }
.intro-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--steel-900); }

/* Galerie */
.section-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
.gallery .slides { aspect-ratio: 16 / 9; max-height: 78vh; background: #0f1215; border-radius: var(--radius); }
.gallery .slide { transition: none; }
.gallery .slide:not(:first-child) { visibility: hidden; }
.gallery .slides.is-ready .slide { visibility: hidden; }
.gallery .slides.is-ready .slide.is-active { visibility: visible; }
.gallery .slide img, .gallery .slide video { width: 100%; height: 100%; object-fit: contain; background: #0f1215; display: block; }
.gallery .counter { text-align: center; margin: .8rem 0 0; font-weight: 700; color: var(--steel-500); }
@media (max-width: 640px) { .gallery .slides { aspect-ratio: 3 / 4; max-height: 70vh; } }
.refs img { max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
