/* Plan Service 85 — site public
   Charte : gris #4e4d4b, orange #f7a537. Police Manrope auto-hébergée (OFL), aucune ressource externe. */

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

:root {
  --ink: #2b2a29;
  --grey: #4e4d4b;
  --grey-soft: #7a7874;
  --orange: #f7a537;
  --orange-deep: #b86f0a;      /* orange lisible sur fond clair */
  --paper: #ffffff;
  --sand: #f6f3ee;
  --line: #e7e2da;
  --radius: 14px;
  --wrap: 1200px;
  --shadow: 0 18px 40px -18px rgba(43, 42, 41, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 17px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; margin: 0 0 18px; }
h3 { font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---- Barre du haut : transparente sur le bandeau, blanche au défilement ---- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 20;
  color: #fff;
  transition: background .35s var(--ease), box-shadow .35s, color .35s;
}
.topbar.is-solid { background: rgba(255,255,255,.94); backdrop-filter: blur(10px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; transition: min-height .35s; }
.topbar.is-solid .topbar-inner { min-height: 68px; }
.brand { position: relative; display: block; width: 150px; transition: width .35s; }
.brand img { width: 100%; transition: opacity .35s; }
.topbar.is-solid .brand { width: 118px; }
.brand-dark { position: absolute; inset: 0; opacity: 0; }
.topbar.is-solid .brand-light { opacity: 0; }
.topbar.is-solid .brand-dark { opacity: 1; }
.menu { display: flex; align-items: center; gap: 30px; }
.menu a { text-decoration: none; font-weight: 600; font-size: 15px; position: relative; }
.menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.menu a:not(.btn):hover::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: currentColor; margin: 6px 0; transition: transform .3s, opacity .3s; }
.menu-toggle { color: inherit; }

/* ---- Boutons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px;
  background: var(--orange); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none;
  border: 2px solid var(--orange); cursor: pointer;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); background: #ffb44f; box-shadow: 0 10px 24px -10px rgba(247,165,55,.8); }
.btn-small { padding: 9px 18px; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.7); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; box-shadow: none; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; box-shadow: none; }

/* ---- Bandeau d'accueil vidéo ---- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: var(--ink);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,19,18,.55) 0%, rgba(20,19,18,0) 28%),
    linear-gradient(15deg, rgba(20,19,18,.88) 10%, rgba(20,19,18,.35) 55%, rgba(20,19,18,.1) 100%);
}
.hero-inner { position: relative; padding-bottom: clamp(90px, 14vh, 150px); padding-top: 140px; }
.kicker { display: flex; align-items: center; gap: 14px; text-transform: uppercase; letter-spacing: .28em; font-size: 12px; font-weight: 700; margin: 0 0 22px; color: rgba(255,255,255,.85); }
.kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.hero h1 { font-size: clamp(38px, 6.4vw, 84px); font-weight: 800; max-width: 14ch; margin: 0 0 24px; letter-spacing: -.03em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.86); max-width: 560px; margin: 0 0 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px;
  border: 2px solid rgba(255,255,255,.6); border-radius: 14px;
}
.scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: #fff; animation: wheel 1.8s infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---- Chiffres clés ---- */
.facts { background: var(--ink); color: #fff; }
.facts-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 36px 28px; border-left: 1px solid rgba(255,255,255,.1); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { display: block; font-size: 38px; font-weight: 800; color: var(--orange); line-height: 1.1; letter-spacing: -.02em; }
.fact small { font-size: 20px; }
.fact span { font-size: 14px; color: rgba(255,255,255,.72); }

/* ---- Sections ---- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-tint { background: var(--sand); }
.section-dark { background: var(--ink); color: #fff; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--orange-deep); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); }
.section-dark .eyebrow { color: var(--orange); }
.subtitle { color: var(--grey-soft); font-size: 18px; margin: 0; }
.section-dark .subtitle { color: rgba(255,255,255,.7); }
.note { color: var(--grey-soft); margin: 40px 0 0; }

/* ---- Formules ---- */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.offer {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s;
}
.offer:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.offer-img { aspect-ratio: 16 / 10; overflow: hidden; }
.offer-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.offer:hover .offer-img img { transform: scale(1.05); }
.offer-body { padding: 28px 28px 32px; }
.offer-num { font-size: 13px; font-weight: 800; letter-spacing: .15em; color: var(--orange-deep); }
.offer h3 { font-size: 22px; margin: 6px 0 16px; }
.offer ul { list-style: none; margin: 0; padding: 0; }
.offer li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--grey); font-size: 16px; }
.offer li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--orange); }
.offer-accent { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }

/* ---- Méthode ---- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: repeating-linear-gradient(90deg, var(--orange) 0 8px, transparent 8px 16px); }
.steps li { position: relative; }
.steps span {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--orange); font-weight: 800; font-size: 20px; margin-bottom: 20px; position: relative;
}
.steps h3 { font-size: 18px; margin: 0 0 8px; }
.steps p { margin: 0; color: var(--grey-soft); font-size: 15px; }

/* ---- Réalisations ---- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip {
  font: inherit; font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--grey); transition: all .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery { columns: 3 320px; column-gap: 18px; }
.gallery figure {
  position: relative; margin: 0 0 18px; break-inside: avoid; border-radius: var(--radius); overflow: hidden;
  cursor: zoom-in; background: var(--sand);
}
.gallery figure.is-hidden { display: none; }
.gallery img { width: 100%; height: auto; transition: transform .8s var(--ease), filter .4s; }
.gallery figcaption {
  position: absolute; inset: auto 0 0; padding: 40px 18px 16px; color: #fff; font-weight: 600; font-size: 15px;
  background: linear-gradient(0deg, rgba(20,19,18,.75), rgba(20,19,18,0));
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease);
}
.gallery figure:hover img { transform: scale(1.04); }
.gallery figure:hover figcaption, .gallery figure:focus-visible figcaption { opacity: 1; transform: none; }
.gallery figure:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---- Visites 3D ---- */
.videos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.video-card {
  position: relative; display: block; padding: 0; border: 0; cursor: pointer; font: inherit; color: #fff; text-align: left;
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #000;
}
.video-card img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .8s var(--ease), opacity .4s; }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent 55%); }
.video-card:hover img { transform: scale(1.06); opacity: 1; }
.video-card:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.play {
  position: absolute; z-index: 1; top: 50%; left: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px;
  border-radius: 50%; background: rgba(247,165,55,.95); transition: transform .3s var(--ease);
}
.play::before { content: ""; position: absolute; left: 25px; top: 19px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent var(--ink); }
.video-card:hover .play { transform: scale(1.12); }
.video-title { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; font-weight: 700; font-size: 15px; line-height: 1.3; }

/* ---- Équipe ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.since {
  position: absolute; right: -18px; bottom: 36px; background: var(--orange); color: var(--ink);
  padding: 20px 26px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.since strong { display: block; font-size: 24px; font-weight: 800; }
.since span { font-size: 14px; }
.team { display: grid; gap: 4px; margin-top: 32px; }
.member { padding: 18px 0; border-top: 1px solid var(--line); }
.member strong { display: block; font-size: 18px; }
.member span { color: var(--grey-soft); font-size: 15px; }

/* ---- Contact ---- */
.contact { position: relative; padding: clamp(90px, 12vw, 160px) 0; overflow: hidden; background: var(--ink); }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,19,18,.6), rgba(20,19,18,.1)); }
.contact-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.contact-info { color: #fff; }
.contact-info h2 { font-size: clamp(32px, 4vw, 48px); }
.contact-info > p { color: rgba(255,255,255,.82); margin: 0 0 28px; max-width: 460px; }
.contact-info .eyebrow { color: var(--orange); }
.contact-card { background: var(--paper); border-radius: 20px; padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); }
.contact-lines { display: grid; gap: 0; max-width: 460px; }
.contact-lines a, .contact-lines address {
  display: block; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.2); text-decoration: none; font-style: normal; font-weight: 600; font-size: 18px;
}
.contact-lines a:hover { color: var(--orange); }
.contact-lines span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.65); }

/* Formulaire de contact */
.contact-form h3 { font-size: 22px; margin: 0 0 20px; }
.contact-form label { display: block; font-size: 13px; font-weight: 700; color: var(--grey); margin-bottom: 14px; }
.contact-form label small { font-weight: 500; color: var(--grey-soft); }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: 16px; font-weight: 500; color: var(--ink);
  background: var(--sand); border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, background .2s;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 3px rgba(247,165,55,.25); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-legal { font-size: 13px; color: var(--grey-soft); margin: 4px 0 18px; }
.contact-form .btn { width: 100%; }
.contact-form .btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.form-status { margin: 14px 0 0; font-weight: 600; font-size: 15px; min-height: 1.4em; }
.form-status.is-ok { color: #2f7d3a; }
.form-status.is-error { color: #b3261e; }

/* ---- Pied de page ---- */
.footer { background: #1f1e1d; color: rgba(255,255,255,.65); padding: 36px 0; font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer img { width: 120px; }
.footer p { margin: 0; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--orange); }

/* ---- Visionneuse (photos et vidéos) ---- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(16,15,14,.96); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; animation: fade .25s; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; max-width: min(1400px, 90vw); }
.lightbox img, .lightbox video { max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 8px; background: #000; }
.lightbox figcaption { text-align: center; margin-top: 14px; color: rgba(255,255,255,.8); }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.08); border: 0; color: #fff; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font-size: 30px; line-height: 1; transition: background .2s;
}
.lightbox button:hover { background: var(--orange); color: var(--ink); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; margin-top: -26px; }
.lb-next { right: 20px; top: 50%; margin-top: -26px; }
@keyframes fade { from { opacity: 0; } }

/* ---- Apparition au défilement ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---- Page texte (mentions légales) ---- */
.page-top { background: var(--ink); color: #fff; padding: 150px 0 60px; }
.page-top h1 { font-size: clamp(32px, 5vw, 52px); margin: 0; }
.page { padding: 56px 24px 100px; max-width: 820px; }
.page h2 { font-size: 22px; margin: 40px 0 10px; }
.todo { background: #fff1d6; padding: 0 4px; border-radius: 3px; }

/* ---- Adaptations ---- */
@media (max-width: 1024px) {
  .offers { grid-template-columns: 1fr 1fr; }
  .offer-accent { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .videos { grid-template-columns: repeat(2, 1fr); }
  .facts-inner { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .menu {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 8px;
    background: var(--ink); color: #fff; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .menu.open { opacity: 1; visibility: visible; }
  .menu a { font-size: 24px; padding: 10px; }
  .menu .btn { margin-top: 16px; font-size: 18px; }
  .topbar.menu-open { color: #fff; background: transparent; box-shadow: none; }
  .topbar.menu-open .brand-light { opacity: 1; }
  .topbar.menu-open .brand-dark { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .split, .contact-inner { grid-template-columns: 1fr; }
  .since { right: 16px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .offers, .videos { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .kicker { letter-spacing: .14em; font-size: 11px; gap: 10px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .scroll-hint { display: none; }
  .fact { padding: 26px 16px; }
  .fact strong { font-size: 30px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; margin: 0; }
  .lightbox figure { max-width: 96vw; }
  .gallery figcaption { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint::after { animation: none; }
  .hero-video { display: none; }
  .hero { background: var(--ink) url("../media/videos/hero.webp") center / cover; }
}
