:root {
  --bg: #08090b;
  --bg-alt: #0e1014;
  --line: rgba(255,255,255,.10);
  --text: #f2f3f5;
  --muted: #9aa1ab;
  --accent: #ff6a2b;
  --accent-soft: rgba(255,106,43,.14);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', var(--sans);
  --maxw: 1200px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* L'en-tête est fixe : sans cette marge, un lien vers une section place son
   titre juste dessous, à moitié caché. */
section[id] { scroll-margin-top: calc(var(--nav-h, 9rem) + 1rem); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: .75rem 1.25rem;
}
.skip:focus { left: 0; }

h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(2.1rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }

.eyebrow {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin: 0 0 1rem;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.wrap--narrow { max-width: 820px; }

.section { padding: clamp(5rem, 11vw, 9rem) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--flush { padding-bottom: clamp(4rem, 8vw, 7rem); }
.section__lead {
  color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 62ch; margin: 1.5rem 0 0;
}

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  padding: .95rem 1.75rem; border: 1px solid var(--accent); border-radius: 999px;
  cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s;
  font-family: var(--sans);
}
.btn:hover { transform: translateY(-2px); background: #ff8047; box-shadow: 0 10px 30px -10px var(--accent); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; box-shadow: none; }
.btn--sm { padding: .6rem 1.2rem; font-size: .85rem; }
.btn--wide { width: 100%; padding-block: 1.1rem; }

/* --- nav --- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(8,9,11,.85); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: .9rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav__logo img { height: clamp(116px, 12vw, 164px); width: auto; transition: height .3s; }
.nav.is-stuck .nav__logo img { height: clamp(76px, 7vw, 96px); }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--text);
  opacity: .85; transition: opacity .2s, color .2s;
}
.nav__links a:hover { opacity: 1; color: var(--accent); }
.nav__links a.btn { opacity: 1; color: #fff; }
.nav__links a.btn:hover { color: #fff; }

.nav__burger {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: 0; padding: .5rem; cursor: pointer;
}
.nav__burger span {
  width: 24px; height: 2px; background: var(--text); display: block;
  transition: transform .3s, opacity .3s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- hero --- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h, 9rem) + clamp(1.5rem, 5vh, 3.5rem)) var(--pad) clamp(4rem, 9vh, 7rem);
  overflow: hidden;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(8,9,11,.97) 0%, rgba(8,9,11,.58) 45%, rgba(8,9,11,.85) 100%),
    radial-gradient(120% 80% at 20% 100%, rgba(255,106,43,.18), transparent 60%);
}
.hero__content { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero__lead { color: #d5d9df; font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 56ch; margin: 1.75rem 0 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.hero__scroll {
  position: absolute; z-index: 2; bottom: 1.75rem; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px;
}
.hero__scroll::after {
  content: ''; position: absolute; left: 50%; top: 8px; width: 3px; height: 7px;
  background: #fff; border-radius: 2px; transform: translateX(-50%);
  animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll { 0%,100% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 14px); } }

/* --- strip --- */
.strip { background: var(--bg-alt); border-block: 1px solid var(--line); }
.strip__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 2.25rem var(--pad);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 1.5rem;
}
.strip__item { display: flex; flex-direction: column; }
.strip__item strong { font-family: var(--display); font-size: 1.35rem; }
.strip__item span { color: var(--muted); font-size: .9rem; }

/* --- cards --- */
.cards {
  /* min() empêche la colonne d'exiger 430 px sur un écran plus étroit :
     sans lui, les cartes débordent et le texte est coupé sur téléphone. */
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr));
  gap: 1.25rem; margin-top: 3.5rem;
}
.card {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line); border-radius: 18px; padding: 1.7rem 1.75rem;
  transition: transform .3s, border-color .3s;
  /* Format 16:9 comme les captations. Si un texte est plus long que prévu,
     la carte s'allonge plutôt que de le rogner. */
  aspect-ratio: 16 / 9;
  display: flex; flex-direction: column;
}
/* Captation en fond de carte : discrète au repos, elle s'anime au survol. */
.card__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .62; filter: grayscale(.35);
  transition: opacity .5s ease, filter .5s ease, transform .8s ease;
}
/* Captation tournée de soir : on la remonte pour qu'elle ne disparaisse pas
   dans le fond noir de la carte. */
.card__bg[data-nuit] { opacity: .95; filter: grayscale(.1) brightness(1.75) contrast(1.05); }
.card:hover .card__bg[data-nuit],
.card.is-focus .card__bg[data-nuit] { opacity: 1; filter: brightness(2) contrast(1.05); }
.card::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,9,11,.45) 0%, rgba(8,9,11,.72) 45%, rgba(8,9,11,.9) 100%);
  transition: background .4s ease;
}
/* is-focus est l'équivalent tactile du survol : la carte au centre de
   l'écran s'anime, faute de curseur pour désigner celle qu'on regarde. */
.card:hover,
.card.is-focus { transform: translateY(-6px); border-color: rgba(255,106,43,.5); }
.card:hover .card__bg,
.card.is-focus .card__bg { opacity: 1; filter: none; transform: scale(1.06); }
.card:hover::after,
.card.is-focus::after {
  background: linear-gradient(180deg, rgba(8,9,11,.28) 0%, rgba(8,9,11,.62) 45%, rgba(12,7,4,.88) 100%);
}
.card h3 { color: var(--accent); margin-bottom: .7rem; }

/* Carte pleine largeur : texte à gauche, prestations à droite. Le format
   16:9 des autres cartes ne convient pas ici — le contenu décide. */
.card--large {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  flex-direction: row; gap: 2.5rem; align-items: flex-start;
  padding: 2.2rem 2rem;
}
.card--large .card__texte { flex: 1 1 58%; }
.card--large ul { flex: 0 1 34%; margin: 0; border-top: 0; padding-top: 0; }
.card__pour {
  font-size: .88rem !important; color: #8a919b !important;
  margin: 0 0 1.2rem !important; font-style: italic;
}
.card__lien {
  display: inline-block; font-family: var(--display);
  font-size: .95rem; font-weight: 500; color: var(--accent);
  text-decoration: none; border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.card__lien:hover { border-bottom-color: var(--accent); }
.card__lien:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 780px) {
  .card--large { flex-direction: column; gap: 1.25rem; }
  .card--large ul { border-top: 1px solid var(--line); padding-top: 1rem; }
  /* Cible tactile confortable : un lien de 26 px se rate au pouce. */
  .card__lien { padding-block: .6rem; }
}
.card p { color: #b9c0c9; font-size: .95rem; margin: 0 0 1rem; }
.card ul { list-style: none; padding: 0; margin: auto 0 0; border-top: 1px solid var(--line); padding-top: .95rem; }
.card li { font-size: .88rem; color: #c3c9d1; padding-left: 1.1rem; position: relative; margin-bottom: .45rem; }
.card li::before { content: ''; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }

/* --- galerie de réalisations --- */
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.5rem; }
.filters__btn {
  font: inherit; font-size: .88rem; font-weight: 500; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem 1.1rem; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.filters__btn:hover { color: var(--text); border-color: rgba(255,255,255,.35); }
.filters__btn.is-active { color: #fff; background: var(--accent); border-color: var(--accent); }

.gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr));
  gap: 1.15rem; margin-top: 2rem;
}
.clip { margin: 0; position: relative; }
.clip[hidden] { display: none; }
/* Couche transparente posée sur l'aperçu muet, pour rattraper le clic de
   qui veut lancer la vidéo avec le son. */
.clip__catch {
  position: absolute; inset: 0; z-index: 3;
  border: 0; background: transparent; cursor: pointer; padding: 0;
}
.clip__catch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.clip__btn {
  display: block; position: relative; width: 100%; padding: 0; cursor: pointer;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; text-align: left; color: inherit; font: inherit;
  transition: transform .3s, border-color .3s;
}
.clip__btn:hover { transform: translateY(-4px); border-color: rgba(255,106,43,.55); }
.clip__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Même logique que les cartes de services : sobre au repos, l'image
   reprend vie quand on s'y attarde. */
/* height: auto est indispensable : sans lui, l'attribut height="450" du HTML
   l'emporte et la vignette s'affiche en portrait au lieu du 16:9. */
.clip__btn img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  opacity: .6; filter: grayscale(.4);
  transition: transform .6s ease, opacity .45s ease, filter .45s ease;
}
/* is-focus est l'équivalent tactile du survol : la vignette au centre de
   l'écran s'allume, faute de curseur pour désigner celle qu'on regarde. */
.clip__btn:hover img,
.clip__btn:focus-visible img,
.clip.is-focus .clip__btn img { transform: scale(1.04); opacity: 1; filter: none; }
.clip__btn::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(8,9,11,.9) 0%, rgba(8,9,11,.35) 45%, rgba(8,9,11,.25) 100%);
  transition: background .45s ease;
}
.clip__btn:hover::after,
.clip__btn:focus-visible::after,
.clip.is-focus .clip__btn::after {
  background: linear-gradient(to top, rgba(8,9,11,.85) 0%, rgba(8,9,11,.1) 45%, transparent 100%);
}
.clip__play { display: none; }
.clip__meta {
  position: absolute; z-index: 2; left: 1.1rem; right: 1.1rem; bottom: .95rem;
  display: flex; flex-direction: column; gap: .15rem;
}
.clip__meta strong { font-family: var(--display); font-size: 1rem; font-weight: 600; line-height: 1.25; }
.clip__meta em {
  font-style: normal; font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
}
/* height: auto, sinon la hauteur par défaut de l'iframe (150 px) l'emporte
   sur aspect-ratio et le lecteur s'affiche écrasé. */
.clip iframe {
  width: 100%; height: auto; aspect-ratio: 16 / 9; display: block;
  border: 1px solid var(--line); border-radius: 14px; background: #000;
}
.gallery__more { margin: 2.5rem 0 0; }
.gallery__more a {
  font-family: var(--display); font-size: .95rem; font-weight: 500;
  color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.gallery__more a:hover { border-bottom-color: var(--accent); }

/* --- team --- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 3.5rem; max-width: 760px; }
.member { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.member img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; filter: grayscale(.35); transition: filter .4s, transform .6s; }
.member:hover img { filter: none; transform: scale(1.03); }
.member__meta {
  position: absolute; inset: auto 0 0; padding: 2.5rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(8,9,11,.95), transparent);
}
.member__meta h3 { font-size: 1.15rem; }
.member__meta p { margin: .25rem 0 0; font-size: .85rem; color: var(--muted); }

/* --- faq --- */
.faq { margin-top: 3rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.4rem 2.5rem 1.4rem 0;
  font-family: var(--display); font-size: 1.08rem; font-weight: 500; position: relative;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: ''; position: absolute; right: .4rem; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s;
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq details p { margin: 0 0 1.5rem; color: var(--muted); max-width: 68ch; }

/* --- form --- */
.form { margin-top: 3rem; display: flex; flex-direction: column; gap: 1.35rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; }
.form label {
  display: flex; flex-direction: column; gap: .55rem;
  font-size: .84rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 500;
}
.form__lab i { color: var(--accent); font-style: normal; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1.05rem; text-transform: none; letter-spacing: normal;
  color: var(--text); background: rgba(255,255,255,.05);
  border: 1px solid var(--line); border-radius: 12px; padding: 1.15rem 1.15rem;
  transition: border-color .2s, background .2s;
}
.form textarea { min-height: 170px; }
.btn--wide { padding-block: 1.35rem; font-size: 1.02rem; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent); background: rgba(255,255,255,.07);
}
.form select option { background: var(--bg-alt); }
.form input:user-invalid { border-color: #e05252; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .95rem; color: var(--muted); margin: 0; min-height: 1.4em; }
.form__note.is-error { color: #ff8b8b; }
.form__note.is-success { color: #7fdca4; }
.form__legal { font-size: .8rem; color: #6f7681; margin: 0; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }

/* --- footer --- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); }
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 3rem; justify-content: space-between;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer__brand img { height: 110px; width: auto; margin-bottom: 1.25rem; }
.footer__brand p { color: var(--muted); font-size: .95rem; margin: 0; }
.footer__contact h3 { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.footer__contact p { margin: 0 0 .4rem; }
.footer__contact a { text-decoration: none; transition: color .2s; }
.footer__contact a:hover { color: var(--accent); }
.footer__bar {
  border-top: 1px solid var(--line); max-width: var(--maxw); margin: 0 auto;
  padding: 1.5rem var(--pad); display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; font-size: .82rem; color: var(--muted);
}

/* --- reveal ---
   L'effet ne s'applique que si le JavaScript répond : sans lui, le contenu
   reste visible plutôt que de laisser une page vide. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* --- responsive --- */
@media (max-width: 900px) {
  .strip__inner { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  /* En une seule colonne, le 16:9 écraserait le texte : la carte reprend
     la hauteur dont elle a besoin. */
  .card { aspect-ratio: auto; padding: 1.9rem 1.6rem; }
  .filters { gap: .5rem; }
  .filters__btn { font-size: .82rem; padding: .45rem .9rem; }
}
@media (max-width: 780px) {
  .nav__burger { display: flex; }
  .nav { background: rgba(8,9,11,.85); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--bg-alt); border-bottom: 1px solid var(--line);
    padding: .5rem var(--pad) 1.5rem;
    transform: translateY(-140%); transition: transform .35s ease; visibility: hidden;
  }
  .nav__links.is-open { transform: none; visibility: visible; }
  .nav__links a { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__links a.btn { margin-top: 1.25rem; border-bottom: 1px solid var(--accent); justify-content: center; }
  .form__row { grid-template-columns: 1fr; }
  .hero { min-height: 92svh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll::after { animation: none; }
  * { transition-duration: .01ms !important; }
}
