/* =========================================================
   HABITAT TOITURE — Feuille de style
   Couleurs de la marque : noir, orange, blanc
   ========================================================= */

/* ----- Variables de couleurs, polices et espacements ----- */
:root {
  --black: #0E0E0E;
  --black-2: #161616;
  --black-3: #1F1F1F;
  --orange: #F26A1B;
  --orange-2: #FF8A3D;
  --white: #FFFFFF;
  --grey: #B8B8B8;
  --line: rgba(255, 255, 255, .10);
  --radius: 18px;
  --f-title: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ----- Réinitialisation de base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--f-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ----- Conteneur centré ----- */
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* ----- Typographie commune ----- */
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); }
.title {
  font-family: var(--f-title); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: .98; letter-spacing: .01em;
}
.accent { color: var(--orange); }
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__lead { color: var(--grey); font-size: 1.08rem; margin-top: 18px; }

/* ----- Boutons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .3s var(--ease), background .3s, box-shadow .3s, border-color .3s;
}
.btn--orange { background: var(--orange); color: var(--white); box-shadow: 0 10px 30px -10px rgba(242, 106, 27, .7); }
.btn--orange:hover { background: var(--orange-2); transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(242, 106, 27, .8); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn--sm { padding: 11px 20px; font-size: .9rem; }
.btn--block { width: 100%; }

/* ----- Barre de progression ----- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; }
.progress span { display: block; height: 100%; width: 0; background: var(--orange); }

/* ----- Écran de chargement ----- */
.loader {
  position: fixed; inset: 0; z-index: 300; background: var(--black);
  display: grid; place-items: center; transition: opacity .6s .2s, visibility .6s .2s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__roof { width: 180px; fill: none; stroke: var(--white); stroke-width: 7; }
.loader__roof path { stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 1.1s var(--ease) forwards; }
.loader__roof .orange { stroke: var(--orange); animation-delay: .25s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ----- En-tête ----- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 14px 0;
  transition: background .4s, padding .4s, border-color .4s; border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(14, 14, 14, .82); backdrop-filter: blur(14px) saturate(140%);
  padding: 8px 0; border-color: var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand__logo { width: 128px; height: auto; transition: width .4s; }
.header.is-scrolled .brand__logo { width: 108px; }
.nav { display: flex; gap: 30px; font-weight: 600; font-size: .95rem; }
.nav a { position: relative; opacity: .85; transition: opacity .3s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a.is-current { opacity: 1; }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); }
.nav__panel { display: contents; }
.nav__call-mobile { display: none; }
.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone { display: flex; align-items: center; gap: 10px; font-weight: 700; font-family: var(--f-title); font-size: 1.3rem; letter-spacing: .03em; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #3BD16F; box-shadow: 0 0 0 0 rgba(59, 209, 111, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(59, 209, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 209, 111, 0); } }

/* Bouton burger (mobile) */
.burger { display: none; width: 44px; height: 44px; border: 0; background: rgba(255,255,255,.06); border-radius: 12px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); transition: transform .35s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ----- HERO ----- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 140px 0 110px; }
.hero__media { position: absolute; inset: -6% 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 22s ease-in-out infinite alternate; will-change: transform; }
@keyframes kenburns { from { transform: scale(1.05) translate3d(0,0,0); } to { transform: scale(1.18) translate3d(-2%, -2%, 0); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,14,14,.96) 0%, rgba(14,14,14,.78) 45%, rgba(14,14,14,.35) 100%),
    linear-gradient(0deg, var(--black) 0%, transparent 35%);
}
.hero__lines { position: absolute; left: 0; right: 0; bottom: 8%; width: 100%; height: 40%; fill: none; stroke: rgba(255,255,255,.12); stroke-width: 3; }
.hero__lines path { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.4s .9s var(--ease) forwards; }
.hero__lines .orange { stroke: rgba(242,106,27,.45); }
.hero__content { position: relative; z-index: 2; }
.hero__title {
  font-family: var(--f-title); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: clamp(3.2rem, 9.5vw, 8.4rem); line-height: .9; letter-spacing: -.005em; margin: 6px 0 26px;
}
.hero__title .line { display: block; overflow: hidden; padding-right: .1em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.is-loaded .hero__title .line > span { transform: none; }
.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.hero__lead { max-width: 560px; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #DADADA; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 44px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__badges li {
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: .88rem; color: var(--grey);
  background: rgba(255,255,255,.04); backdrop-filter: blur(6px);
}
.hero__badges strong { color: var(--white); }

/* Indicateur de défilement */
.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.4); border-radius: 14px; z-index: 2; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--orange); border-radius: 2px; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ----- Bandeau défilant ----- */
.marquee { background: var(--orange); overflow: hidden; padding: 18px 0; transform: rotate(-1.5deg) scale(1.02); margin: -10px 0 0; position: relative; z-index: 3; }
.marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--f-title); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.3rem); white-space: nowrap; }
.marquee i { width: 12px; height: 12px; background: var(--black); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ----- Cartes de services ----- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; padding: 32px 28px 30px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--black-3), var(--black-2)); border: 1px solid var(--line);
  overflow: hidden; transform-style: preserve-3d; transition: transform .25s ease-out, border-color .35s;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(242,106,27,.16), transparent 45%);
}
.card:hover { border-color: rgba(242,106,27,.5); }
.card:hover::before { opacity: 1; }
.card__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: rgba(242,106,27,.12); margin-bottom: 22px; }
.card__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-family: var(--f-title); font-weight: 700; font-size: 1.6rem; text-transform: uppercase; line-height: 1.05; margin-bottom: 10px; }
.card p { color: var(--grey); font-size: .96rem; }
.card--urgent { background: linear-gradient(160deg, #F26A1B, #C24E0D); border-color: transparent; }
.card--urgent p { color: rgba(255,255,255,.9); }
.card--urgent .card__icon { background: rgba(0,0,0,.18); }
.card--urgent .card__icon svg { stroke: var(--white); }
.card__link { display: inline-block; margin-top: 16px; font-weight: 700; border-bottom: 2px solid currentColor; }

/* Photo de fond des cartes : discrète au repos, révélée au survol */
.card { display: flex; flex-direction: column; min-height: 300px; isolation: isolate; cursor: pointer; }
.card__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  opacity: .32; transform: scale(1.08); filter: grayscale(.4); transition: opacity .6s, transform 1.2s var(--ease), filter .6s;
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,14,14,.55) 0%, rgba(14,14,14,.82) 55%, rgba(14,14,14,.96) 100%);
}
.card:hover .card__bg, .card:focus-visible .card__bg { opacity: .62; transform: scale(1); filter: none; }
.card p { color: #CFCFCF; }
.card__icon { backdrop-filter: blur(6px); }
.card__cta {
  margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .95rem; color: var(--orange);
}
.card__cta i { font-style: normal; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(242,106,27,.15); transition: transform .35s var(--ease), background .35s, color .35s; }
.card:hover .card__cta i { transform: translateX(6px); background: var(--orange); color: var(--white); }
.card:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.card--urgent .card__bg { opacity: .35; mix-blend-mode: multiply; filter: grayscale(1); }
.card--urgent::after { background: linear-gradient(180deg, rgba(242,106,27,.55), rgba(194,78,13,.95)); }
.card--urgent .card__cta { color: var(--white); }
.card--urgent .card__cta i { background: rgba(0,0,0,.2); }

/* Sur téléphone (pas de survol) : photos plus visibles d'emblée */
@media (hover: none) {
  .card__bg { opacity: .55; filter: none; transform: scale(1); }
  .card::after { background: linear-gradient(180deg, rgba(14,14,14,.35) 0%, rgba(14,14,14,.78) 50%, rgba(14,14,14,.95) 100%); }
  .card--urgent .card__bg { opacity: .35; filter: grayscale(1); }
}

/* ----- Bouton retour en haut ----- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 54px; height: 54px; border: 0; border-radius: 50%;
  background: rgba(22,22,22,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--white);
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 30px -10px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .4s, transform .4s var(--ease), background .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--orange); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 2.5; }
.to-top__ring circle { stroke: rgba(255,255,255,.12); }
.to-top__ring .to-top__progress { stroke: var(--orange); stroke-dasharray: 138.2; stroke-dashoffset: 138.2; stroke-linecap: round; }
.to-top__arrow { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.to-top:hover .to-top__arrow { transform: translateY(-3px); }

/* ----- Section anatomie (défilement collant) ----- */
.anatomy { padding: clamp(80px, 11vw, 140px) 0; background: var(--black-2); position: relative; }
.anatomy__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 90px); }
.anatomy__visual { position: relative; }
.anatomy__frame {
  position: sticky; top: 110px; height: min(76vh, 680px); border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
}
.anatomy__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.12); transition: opacity .9s var(--ease), transform 1.6s var(--ease);
}
.anatomy__frame img.is-active { opacity: 1; transform: scale(1); }
.anatomy__counter {
  position: absolute; left: 20px; bottom: 18px; z-index: 2; font-family: var(--f-title); font-weight: 700; font-size: 1.1rem;
  padding: 8px 14px; border-radius: 10px; background: rgba(14,14,14,.7); backdrop-filter: blur(8px);
}
.anatomy__counter span { color: var(--orange); font-size: 1.5rem; }
.anatomy__steps { padding: 6vh 0 20vh; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .6s; border-left: 2px solid var(--line); padding-left: 34px; position: relative; }
.step::before { content: ""; position: absolute; left: -2px; top: 0; width: 2px; height: 0; background: var(--orange); transition: height .8s var(--ease); }
.step.is-active { opacity: 1; }
.step.is-active::before { height: 100%; }
.step__num { font-family: var(--f-title); font-weight: 800; font-style: italic; font-size: 4.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--orange); }
.step h3 { font-family: var(--f-title); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1; margin: 10px 0 14px; }
.step p { color: var(--grey); font-size: 1.05rem; max-width: 460px; }

/* ----- Chiffres clés ----- */
.stats { border-block: 1px solid var(--line); background: var(--black); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 46px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--f-title); font-weight: 800; font-style: italic; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--orange); }
.stat > span { color: var(--grey); font-size: .92rem; margin-top: 8px; display: block; }

/* ----- Galerie (maçonnerie) ----- */
.masonry { columns: 3 280px; column-gap: 16px; }
.shot {
  --sp: 0; /* progression : 0 = loin du centre de l'écran, 1 = pile au centre (calculé en JS) */
  break-inside: avoid; margin-bottom: 16px; position: relative; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: var(--black-3);
}
/* Image : zoom léger quand la photo arrive au milieu de l'écran */
.shot img {
  width: 100%; height: auto; transform: scale(calc(1 + .08 * var(--sp))); filter: saturate(calc(.85 + .25 * var(--sp)));
  transition: transform .5s ease-out, filter .5s;
}
/* Voile sombre au centre pour que la légende reste lisible */
.shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.1) 100%);
  opacity: calc(.75 + .25 * var(--sp)); transition: opacity .5s;
}
/* Légende centrée qui descend légèrement au centre de l'écran */
.shot figcaption {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 20px; text-align: center; pointer-events: none;
  transform: translateY(calc(18px * var(--sp))); transition: transform .5s ease-out;
}
.shot__label {
  font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--orange);
  display: inline-flex; align-items: center; gap: 8px;
}
.shot__label::before, .shot__label::after { content: ""; width: calc(10px + 14px * var(--sp)); height: 2px; background: var(--orange); transition: width .5s; }
.shot__title {
  font-family: var(--f-title); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1; text-shadow: 0 4px 24px rgba(0,0,0,.6); max-width: 90%;
}
/* Sur PC : la souris déclenche l'effet complet */
@media (hover: hover) {
  .shot:hover { --sp: 1 !important; }
}

/* ----- Pourquoi nous ----- */
.why { background: var(--black-2); }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.why__img { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4/5; }
.why__img img { width: 100%; height: 100%; object-fit: cover; }
.why__tag {
  position: absolute; right: 18px; bottom: 18px; padding: 16px 20px; border-radius: 14px; background: var(--orange);
  font-family: var(--f-title); text-transform: uppercase; font-size: 1.05rem; line-height: 1.1;
}
.why__tag strong { font-size: 1.5rem; font-style: italic; }
.checks { margin: 28px 0 36px; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 40px; font-size: 1.05rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--orange);
  -webkit-mask: none; box-shadow: 0 0 0 4px rgba(242,106,27,.15);
}
.checks li::after { content: ""; position: absolute; left: 9px; top: 7px; width: 7px; height: 12px; border: solid var(--white); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* ----- Avis ----- */
.reviews { position: relative; overflow: hidden; padding: clamp(100px, 14vw, 170px) 0; isolation: isolate; }
/* Photo aérienne en fond, légèrement en mouvement au défilement, assombrie pour garder le texte lisible */
.reviews__bg { position: absolute; inset: -15% 0; z-index: -2; }
.reviews__bg img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.reviews::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 320px at 50% 45%, rgba(242,106,27,.22), transparent 70%),
    linear-gradient(180deg, var(--black-2) 0%, rgba(14,14,14,.72) 25%, rgba(14,14,14,.72) 75%, var(--black) 100%);
}
.reviews .eyebrow { justify-content: center; }
.reviews__title { margin-bottom: 26px; }
.reviews__inner { text-align: center; }
.reviews__stars { color: var(--orange); font-size: 2.4rem; letter-spacing: .15em; }
.reviews__score { font-family: var(--f-title); font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; font-style: italic; }
.reviews__score strong { color: var(--orange); }
.reviews__sub { color: var(--grey); margin: 6px 0 26px; }

/* ----- Contact ----- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.info { padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--black-2); transition: border-color .3s, transform .3s var(--ease); }
.info:hover { border-color: var(--orange); transform: translateY(-3px); }
.info span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--orange); font-weight: 700; margin-bottom: 6px; }
.info strong { font-size: 1.02rem; word-break: break-word; }
.form { padding: 34px; border-radius: 24px; background: var(--white); color: var(--black); display: grid; gap: 16px; box-shadow: 0 40px 80px -40px rgba(242,106,27,.6); }
.form h3 { font-family: var(--f-title); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: #444; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1.5px solid #E1E1E1; background: #FAFAFA; color: var(--black);
  font-size: 1rem; transition: border-color .25s, box-shadow .25s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242,106,27,.15); }
.form .is-invalid { border-color: #E0342B; }
.form label small { font-weight: 400; color: #888; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .85rem; color: #666; text-align: center; }
.map { margin-top: 60px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); height: 380px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

/* ----- Pied de page ----- */
.footer { background: #080808; border-top: 3px solid var(--orange); padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; }
.footer__motto { color: var(--grey); margin-top: 14px; font-size: .95rem; }
.footer h4 { font-family: var(--f-title); text-transform: uppercase; font-size: 1.3rem; margin-bottom: 14px; color: var(--orange); }
.footer li { color: var(--grey); margin-bottom: 8px; font-size: .95rem; }
.footer li a:hover { color: var(--orange); }
.footer__legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: .85rem; color: #8A8A8A; }
.flag { display: flex; width: 54px; height: 8px; border-radius: 2px; overflow: hidden; }
.flag i { flex: 1; } .flag i:nth-child(1) { background: #2B4BB5; } .flag i:nth-child(2) { background: #fff; } .flag i:nth-child(3) { background: #E0342B; }

/* ----- Bouton d'appel flottant ----- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: var(--orange); display: none; place-items: center; box-shadow: 0 12px 30px -8px rgba(242,106,27,.8);
  animation: ring 3s infinite;
}
@keyframes ring { 0%, 90%, 100% { transform: rotate(0); } 92% { transform: rotate(-12deg); } 94% { transform: rotate(12deg); } 96% { transform: rotate(-8deg); } 98% { transform: rotate(8deg); } }

/* ----- Visionneuse photo ----- */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.94); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .35s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 12px; }
.lightbox__caption { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: var(--grey); }
.lightbox__close, .lightbox__nav { position: absolute; border: 0; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; border-radius: 50%; width: 52px; height: 52px; font-size: 2rem; line-height: 1; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--orange); }

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

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablette */
@media (max-width: 1024px) {
  .nav { gap: 20px; }
  .header__phone { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile : menu plein écran, sections empilées */
@media (max-width: 860px) {
  .burger { display: block; }
  .header__actions .btn { display: none; }
  /* Menu mobile : fond flouté plein écran + panneau centré */
  .nav {
    position: fixed; inset: 0; z-index: -1; display: grid; place-items: center; padding: 20px;
    background: rgba(8, 8, 8, .45); backdrop-filter: blur(18px) saturate(120%); -webkit-backdrop-filter: blur(18px) saturate(120%);
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__panel {
    width: min(360px, 100%); display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 30px 22px; border-radius: 26px; background: rgba(24, 24, 24, .88); border: 1px solid var(--line);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
    transform: scale(.9) translateY(24px); transition: transform .55s var(--ease);
  }
  .nav.is-open .nav__panel { transform: none; }
  .nav__panel a {
    width: 100%; text-align: center; padding: 10px 0; opacity: 0; transform: translateY(12px);
    font-family: var(--f-title); font-size: 1.9rem; font-style: italic; font-weight: 800; text-transform: uppercase;
    transition: opacity .4s, transform .4s var(--ease), color .3s;
  }
  .nav__panel a::after { bottom: 4px; left: 30%; width: 40%; }
  .nav.is-open .nav__panel a { opacity: 1; transform: none; }
  .nav.is-open .nav__panel a:nth-child(2) { transition-delay: .05s; } .nav.is-open .nav__panel a:nth-child(3) { transition-delay: .1s; }
  .nav.is-open .nav__panel a:nth-child(4) { transition-delay: .15s; } .nav.is-open .nav__panel a:nth-child(5) { transition-delay: .2s; }
  .nav.is-open .nav__panel a:nth-child(6) { transition-delay: .25s; }
  .nav__call-mobile {
    display: block; margin-top: 14px; padding: 14px 0 !important; border-radius: 999px; background: var(--orange);
    font-size: 1.25rem !important; color: var(--white) !important; box-shadow: 0 12px 30px -10px rgba(242, 106, 27, .8);
  }
  .nav__call-mobile::after { display: none; }
  /* Quand le menu est ouvert, l'en-tête perd son flou (sinon le menu resterait coincé dedans) */
  .menu-open .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; }
  .menu-open .fab, .menu-open .to-top { opacity: 0; pointer-events: none; }
  .fab { display: grid; }
  .to-top { right: 21px; bottom: 90px; }
  .card { min-height: 260px; }

  .anatomy__grid { grid-template-columns: 1fr; }
  .anatomy__visual { position: sticky; top: 62px; z-index: 2; background: var(--black-2); padding: 14px 0 18px; margin-inline: -20px; padding-inline: 20px; box-shadow: 0 20px 30px -10px var(--black-2); }
  .anatomy__frame { position: relative; top: 0; height: 42vh; }
  .anatomy__steps { padding: 0 0 10vh; }
  .step { min-height: 55vh; padding-left: 22px; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .why__grid, .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* Petit mobile */
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .contact__cards, .form__row { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .hero { padding-top: 120px; }
  .hero__ctas .btn { width: 100%; }
  .footer__legal { flex-direction: column; text-align: center; }
}

/* Accessibilité : moins d'animations si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero__title .line > span { opacity: 1; transform: none; }
}
