/* =========================================================
   Bille — voyance et guidance spirituelle
   Couleurs et polices reprises du site d'origine :
   bleu #428bca, marine #263746 / #2e4455 / #385167,
   Raleway (titres), Roboto (texte), Poppins (navigation).
   ========================================================= */

:root {
  --bg: #0e161e;
  --bg-2: #121d27;
  --surface: #182633;
  --navy: #263746;
  --navy-2: #2e4455;
  --slate: #385167;
  --accent: #428bca;
  --accent-soft: #8cbbe6;
  --accent-deep: #2d6aa3;
  --text: #eef3f8;
  --muted: #b2c1cf;
  --line: rgba(140, 187, 230, .16);
  --line-strong: rgba(140, 187, 230, .32);
  --flame: #ffc778;
  --flame-2: #ff8f3f;
  --head: "Raleway", system-ui, sans-serif;
  --body: "Roboto", system-ui, sans-serif;
  --nav: "Poppins", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --radius: 18px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17.5px; line-height: 1.7; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 3000; padding: 10px 16px; background: var(--accent); color: #fff; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }

.img-missing { visibility: hidden; }

/* ---------- Écran de chargement ---------- */
.loader { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 40%, #182a3a 0%, var(--bg) 70%); transition: transform 1s var(--ease) .05s; }
.loader.is-done { transform: translateY(-100%); }
.loader-inner { width: min(520px, 86vw); text-align: center; }
.loader-brand { font-family: var(--head); font-weight: 600; font-size: clamp(56px, 12vw, 92px); line-height: 1; letter-spacing: .04em; color: var(--text); }
.loader-line { height: 1px; margin: 28px auto 20px; background: rgba(140, 187, 230, .14); overflow: hidden; }
.loader-line span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, transparent, var(--accent-soft), var(--flame)); animation: fill 1.5s var(--ease) forwards; }
.loader-sub { font-family: var(--nav); font-weight: 500; font-size: 12.5px; letter-spacing: .42em; text-transform: uppercase; color: var(--muted); padding-left: .42em; }
@keyframes fill { to { width: 100%; } }

/* ---------- Halo qui suit le curseur ---------- */
.halo { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: 1; opacity: 0; background: radial-gradient(circle, rgba(255, 199, 120, .10) 0%, rgba(66, 139, 202, .08) 35%, transparent 68%); transition: opacity .6s; will-change: transform; }
.halo.is-on { opacity: 1; }

/* ---------- Icône bougie (flamme qui vacille) ---------- */
.candle { width: 26px; height: 40px; flex: none; overflow: visible; }
.candle .wax { fill: #f3e9d8; }
.candle .wick { stroke: #3a2a1c; stroke-width: 1.4; }
.candle .glow { fill: url(#flameGlow); opacity: .9; transform-box: fill-box; transform-origin: center; animation: glow 3.2s ease-in-out infinite; }
.candle .flame { fill: url(#flameFill); transform-box: fill-box; transform-origin: 50% 100%; animation: idle 2.8s ease-in-out infinite; }
.has-flame:hover .candle .flame, .has-flame:focus-visible .candle .flame, .has-flame:focus-within .candle .flame { animation: flicker .5s steps(2, jump-none) infinite, sway 1.1s ease-in-out infinite; }
.has-flame:hover .candle .glow, .has-flame:focus-within .candle .glow { animation: glow .7s ease-in-out infinite; }
@keyframes idle { 0%, 100% { transform: scale(1, 1) skewX(0); } 50% { transform: scale(.96, 1.05) skewX(-2deg); } }
@keyframes flicker { 0% { transform: scale(.9, 1.12) skewX(5deg); } 100% { transform: scale(1.06, .9) skewX(-6deg); } }
@keyframes sway { 0%, 100% { translate: 0 0; } 50% { translate: .8px -.6px; } }
@keyframes glow { 0%, 100% { opacity: .65; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent; font-family: var(--nav); font-weight: 500; font-size: 15.5px; letter-spacing: .01em; cursor: pointer; transition: background .25s, border-color .25s, color .25s, transform .25s, box-shadow .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(66, 139, 202, .7); }
.btn-primary:hover { background: #529ad8; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(14, 22, 30, .35); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--accent-soft); color: #fff; }
.btn-wa { background: #1f8f5a; color: #fff; }
.btn-wa:hover { background: #24a468; }

/* ---------- En-tête ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: background .35s, border-color .35s, box-shadow .35s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled, .menu-open .site-header { background: rgba(14, 22, 30, .92); backdrop-filter: blur(14px); border-color: var(--line); box-shadow: 0 12px 30px -20px rgba(0, 0, 0, .8); }
.topbar { border-bottom: 1px solid var(--line); background: rgba(14, 22, 30, .55); max-height: 46px; overflow: hidden; transition: max-height .35s var(--ease), opacity .35s; }
.is-scrolled .topbar { max-height: 0; opacity: 0; border-color: transparent; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 45px; font-family: var(--nav); font-size: 13.5px; }
.topbar-note { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar-note .ico { width: 16px; height: 16px; color: var(--accent-soft); }
.topbar-phones { display: flex; gap: 22px; }
.topbar-phones a { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; color: var(--text); transition: color .2s; }
.topbar-phones a span { color: var(--accent-soft); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; }
.topbar-phones a:hover { color: var(--flame); }
.header-row { display: flex; align-items: center; gap: 22px; height: 78px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.logo { height: 46px; width: auto; overflow: visible; }
.logo .ring { fill: none; stroke: var(--accent-soft); stroke-width: 1.2; opacity: .55; }
.logo .moon { fill: var(--accent-soft); }
.logo .star { fill: var(--flame); transform-box: fill-box; transform-origin: center; transition: transform .8s var(--ease); }
.brand:hover .logo .star { transform: rotate(180deg) scale(1.25); }
.logo .word { font-family: var(--head); font-weight: 600; font-size: 31px; letter-spacing: .05em; fill: var(--text); }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav a { position: relative; padding: 8px 12px; font-family: var(--nav); font-size: 15px; color: rgba(238, 243, 248, .86); white-space: nowrap; transition: color .2s; }
.main-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: var(--accent-soft); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { transform: scaleX(1); }
.nav-extra { display: none; }
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--nav); font-size: 13px; flex: none; }
.lang .ico { width: 16px; height: 16px; margin: 0 4px 0 6px; color: var(--accent-soft); }
.lang a { padding: 5px 10px; border-radius: 999px; font-weight: 500; letter-spacing: .06em; color: var(--muted); transition: background .2s, color .2s; }
.lang a:hover { color: #fff; }
.lang a[aria-current="page"] { background: var(--accent); color: #fff; }
.burger { display: none; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(14, 22, 30, .6); color: var(--text); cursor: pointer; align-items: center; justify-content: center; margin-left: 4px; }
.burger .ico { width: 24px; height: 24px; }
.burger .ico-close, .menu-open .burger .ico-open { display: none; }
.menu-open .burger .ico-close { display: block; }

/* ---------- Barre d'appel mobile ---------- */
.callbar { display: none; }

/* ---------- Accueil ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 170px 0 90px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; transform: scale(1.1); transition: transform 3.4s var(--ease); }
.is-loaded .hero-bg, .motion-done .hero-bg { transform: scale(1); }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(14, 22, 30, .96) 0%, rgba(14, 22, 30, .82) 45%, rgba(14, 22, 30, .35) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(14, 22, 30, 0) 30%); }
.hero-sky { position: absolute; right: -4%; top: 12%; width: min(640px, 60vw); z-index: -1; opacity: .85; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--nav); font-size: 13px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--accent-soft); }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.hero h1 { margin: 22px 0 22px; font-size: clamp(40px, 5.6vw, 70px); font-weight: 600; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent-soft), var(--flame)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(18px, 1.6vw, 20.5px); color: #d5dfe8; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 26px; margin-top: 38px; padding: 0; list-style: none; max-width: 620px; }
.hero-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.hero-points .ico { color: var(--flame); margin-top: 1px; }
.hero-points strong { display: block; color: var(--text); font-weight: 500; }

.callcard { position: relative; padding: 30px 28px; border: 1px solid var(--line-strong); border-radius: 24px; background: linear-gradient(160deg, rgba(38, 55, 70, .82), rgba(18, 29, 39, .9)); backdrop-filter: blur(10px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.callcard h2 { font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.callcard > p { color: var(--muted); font-size: 15.5px; margin-bottom: 18px; }
.phone-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.phone-row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(14, 22, 30, .5); transition: border-color .25s, background .25s, transform .25s; }
.phone-row:hover { border-color: var(--accent-soft); background: rgba(66, 139, 202, .12); transform: translateX(4px); }
.phone-row .candle { width: 20px; height: 32px; }
.phone-row .country { display: block; font-family: var(--nav); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-soft); line-height: 1.3; }
.phone-row .num { display: block; font-family: var(--nav); font-size: 19px; font-weight: 500; color: var(--text); white-space: nowrap; line-height: 1.35; }
.phone-row .go { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; flex: none; }
.phone-row .go .ico { width: 18px; height: 18px; }

/* ---------- Constellations ---------- */
.sky-line { fill: none; stroke: var(--accent-soft); stroke-width: 1; stroke-linecap: round; opacity: .55; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 1)); transition: stroke-dashoffset .5s linear; }
.sky-star { fill: #fff; transform-box: fill-box; transform-origin: center; animation: twinkle 3.6s ease-in-out infinite; }
.sky-star.warm { fill: var(--flame); }
.sky-star:nth-of-type(3n) { animation-delay: -1.2s; }
.sky-star:nth-of-type(3n+1) { animation-delay: -2.4s; }
@keyframes twinkle { 0%, 100% { opacity: .9; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.js .hero-sky .sky-line { --p: 0; }
.is-loaded .hero-sky .sky-line, .motion-done .hero-sky .sky-line { --p: 1; transition: stroke-dashoffset 2.6s var(--ease) .5s; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 120px 0; overflow-x: clip; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--nav); font-size: 13px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--accent-soft); }
.kicker .candle { width: 16px; height: 26px; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 16px; font-size: clamp(32px, 4vw, 48px); font-weight: 600; }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 18.5px; }

/* Approche */
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 70px; align-items: center; }
.about-media { position: relative; }
.about-frame { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line); background: var(--surface); }
.about-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-inset { position: absolute; right: -28px; bottom: -34px; width: 46%; border-radius: 18px; overflow: hidden; border: 6px solid var(--bg); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .9); aspect-ratio: 1 / 1; background: var(--surface); }
.about-inset img { width: 100%; height: 100%; object-fit: cover; }
.about-sky { position: absolute; left: -60px; top: -50px; width: 260px; pointer-events: none; }
.about-text h2 { margin: 16px 0 24px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; }
.about-text p { color: #d2dce6; margin-bottom: 16px; }
.quote { margin: 28px 0; padding: 22px 26px; border-left: 2px solid var(--flame); background: rgba(38, 55, 70, .45); border-radius: 0 16px 16px 0; font-family: var(--head); font-size: 21px; font-weight: 500; line-height: 1.45; color: var(--text); }
.checks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .ico { color: var(--accent-soft); margin-top: 3px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 90px; }
.pillar { position: relative; padding: 32px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: border-color .3s, transform .3s; }
.pillar:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.pillar-num { font-family: var(--head); font-size: 46px; font-weight: 300; color: var(--accent); line-height: 1; }
.pillar h3 { margin: 18px 0 10px; font-size: 22px; font-weight: 600; }
.pillar p { color: var(--muted); }

/* Services : cartes qui se retournent */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.svc { perspective: 1400px; cursor: pointer; }
.svc-inner { display: grid; height: 100%; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.svc-face { grid-area: 1 / 1; display: flex; flex-direction: column; padding: 34px 30px 30px; border-radius: var(--radius); border: 1px solid var(--line); backface-visibility: hidden; -webkit-backface-visibility: hidden; min-height: 330px; }
.svc-front { background: linear-gradient(165deg, var(--surface), #13202b); }
.svc-back { transform: rotateY(180deg); background: radial-gradient(circle at 50% 30%, rgba(255, 199, 120, .16), transparent 55%), linear-gradient(165deg, var(--navy-2), var(--navy)); border-color: var(--line-strong); align-items: center; justify-content: center; text-align: center; gap: 16px; }
.svc:hover .svc-inner, .svc:focus-within .svc-inner, .svc.is-flipped .svc-inner { transform: rotateY(180deg); }
.svc-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: rgba(66, 139, 202, .14); color: var(--accent-soft); border: 1px solid var(--line); }
.svc-icon .ico { width: 28px; height: 28px; }
.svc-front h3 { margin: 26px 0 12px; font-size: 23px; font-weight: 600; }
.svc-front p { color: var(--muted); }
.svc-turn { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--nav); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-soft); }
.svc-turn .ico { width: 16px; height: 16px; }
.svc-back .candle { width: 34px; height: 52px; }
.svc-back h3 { font-size: 22px; font-weight: 600; }
.svc-back p { color: #d5dfe8; max-width: 280px; }
.svc-back .btn { min-height: 46px; padding: 10px 20px; font-size: 14.5px; }

/* Déroulement */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 80px; }
.steps-sky { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 60px; overflow: visible; pointer-events: none; }
.step { position: relative; padding-top: 84px; }
.step-dot { position: absolute; top: 12px; left: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-strong); font-family: var(--nav); font-size: 15px; color: var(--flame); }
.step h3 { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.step p { color: var(--muted); }

/* Univers : galerie 3 x 2 */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: radial-gradient(circle at 50% 40%, #2a3c4d, #101921); border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.92) brightness(.92); }
.tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), inset 0 0 60px 10px rgba(14, 22, 30, .75); transition: box-shadow .6s; }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 40px 20px 16px; font-size: 15px; line-height: 1.45; color: #f1f4f7; background: linear-gradient(0deg, rgba(10, 16, 22, .92), rgba(10, 16, 22, 0)); }
.tile:hover img { transform: scale(1.05); filter: saturate(1.05) brightness(1); }
.tile:hover::after { box-shadow: inset 0 0 0 1px rgba(255, 199, 120, .35), inset 0 0 70px 6px rgba(255, 143, 63, .18); }
.gallery-note { margin-top: 22px; color: var(--muted); font-size: 15px; text-align: center; }

/* Questions */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 14px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .3s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 22px 26px; cursor: pointer; font-family: var(--head); font-size: 20px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { margin-left: auto; color: var(--accent-soft); transition: transform .35s var(--ease); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { padding: 0 26px 24px; color: var(--muted); }

/* Contact */
.contact { position: relative; isolation: isolate; }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .45; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(14, 22, 30, .78) 30%, rgba(14, 22, 30, .86) 100%); }
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 40px; }
.num-card { display: flex; flex-direction: column; gap: 6px; padding: 28px 26px; border-radius: 22px; border: 1px solid var(--line-strong); background: linear-gradient(160deg, rgba(46, 68, 85, .9), rgba(24, 38, 51, .92)); transition: transform .3s, border-color .3s; }
.num-card:hover { transform: translateY(-4px); border-color: var(--accent-soft); }
.num-head { display: flex; align-items: center; gap: 12px; }
.num-card .country { font-family: var(--nav); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-soft); }
.num-card .region { display: block; font-size: 13px; color: var(--muted); letter-spacing: .04em; text-transform: none; }
.num-card .num { font-family: var(--nav); font-size: clamp(21px, 2.1vw, 25px); font-weight: 500; white-space: nowrap; margin: 6px 0 14px; color: #fff; }
.num-actions { display: flex; gap: 10px; margin-top: auto; }
.num-actions .btn { flex: 1 1 0; min-height: 46px; padding: 10px 14px; font-size: 14.5px; }

.form-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; padding: 44px; border-radius: 26px; border: 1px solid var(--line); background: rgba(18, 29, 39, .88); backdrop-filter: blur(8px); }
.form-intro h3 { font-size: 26px; font-weight: 600; margin-bottom: 14px; }
.form-intro p { color: var(--muted); margin-bottom: 14px; }
.form-intro .checks li { color: #d2dce6; font-size: 16px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--nav); font-size: 14px; color: var(--muted); padding: 0; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(14, 22, 30, .75); color: var(--text); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent-soft) 50%), linear-gradient(135deg, var(--accent-soft) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field select option { background: var(--bg-2); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-soft); box-shadow: 0 0 0 3px rgba(66, 139, 202, .25); }
.field.has-error input, .field.has-error textarea { border-color: #e08a7b; }
.err { min-height: 0; font-size: 13.5px; color: #f0a596; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-family: var(--nav); font-size: 14px; color: var(--muted); transition: background .2s, border-color .2s, color .2s; }
.choice input:checked + span { background: rgba(66, 139, 202, .22); border-color: var(--accent-soft); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.form-submit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-note { font-size: 14px; color: var(--muted); flex: 1 1 240px; }
.form-status { grid-column: 1 / -1; font-size: 15px; color: var(--accent-soft); min-height: 1px; }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; padding: 80px 0 34px; background: #0a1117; border-top: 1px solid var(--line); overflow-x: clip; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand p { margin-top: 18px; color: var(--muted); font-size: 15.5px; max-width: 330px; }
.footer-brand .lang { margin-top: 22px; }
.site-footer h4 { font-family: var(--nav); font-size: 13px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer li a { color: #d2dce6; transition: color .2s; font-size: 15.5px; }
.site-footer li a:hover { color: var(--flame); }
.foot-phone { display: block; line-height: 1.35; }
.foot-phone small { display: block; font-family: var(--nav); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer-note { margin-top: 50px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.footer-bottom a { color: var(--text); border-bottom: 1px solid var(--line-strong); }
.footer-bottom a:hover { color: var(--flame); border-color: var(--flame); }

/* ---------- Apparitions ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in, .motion-done [data-reveal] { opacity: 1; transform: none; }
.js [data-reveal="2"] { transition-delay: .12s; }
.js [data-reveal="3"] { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav a { padding: 8px 9px; font-size: 14.5px; }
  .header-row { gap: 14px; }
  .topbar-note { display: none; }
  .topbar-row { justify-content: center; }
}

@media (max-width: 1040px) {
  body { padding-bottom: 74px; }
  .topbar { display: none; }
  .burger { display: inline-flex; }
  .header-row { height: 72px; }
  .header-row > .lang { margin-left: auto; }
  .main-nav { position: fixed; top: 72px; left: 0; right: 0; bottom: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 18px 20px 110px; background: rgba(12, 19, 26, .98); overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; }
  .menu-open .main-nav { transform: none; visibility: visible; transition: transform .45s var(--ease); }
  .main-nav a { padding: 15px 4px; font-size: 19px; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .nav-extra { display: grid; gap: 12px; margin-top: 24px; }
  .nav-extra .lang { justify-self: start; }
  .nav-extra .lang a { padding: 8px 14px; font-size: 14px; border: 0; }
  .nav-extra .phone-row { padding: 12px 14px; }
  .nav-extra .phone-row .num { font-size: 18px; }
  .nav-title { font-family: var(--nav); font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-soft); margin-top: 6px; }
  .menu-open { overflow: hidden; }

  .callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(10, 17, 23, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line-strong); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 6px 4px; border-radius: 14px; background: var(--accent); color: #fff; line-height: 1.15; text-align: left; }
  .callbar a:nth-child(2) { background: var(--accent-deep); }
  .callbar a:nth-child(3) { background: var(--slate); }
  .callbar .ico { width: 18px; height: 18px; }
  .callbar strong { display: block; font-family: var(--nav); font-weight: 500; font-size: 14px; }
  .callbar small { display: block; font-size: 11.5px; opacity: .85; letter-spacing: .02em; }

  .hero { padding: 120px 0 70px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 80px; }
  .about-media { max-width: 520px; margin-inline: auto; width: 100%; }
  .about-inset { right: -10px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers { grid-template-columns: minmax(0, 1fr); }
  .num-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
  .num-card .num { margin: 0; }
  .num-actions { flex: 1 1 100%; }
  .form-wrap { grid-template-columns: minmax(0, 1fr); padding: 32px 26px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 32px); }
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 40px; }
  .hero-sky { width: 92vw; right: -20vw; top: 8%; opacity: .5; }
  .hero-points { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { flex: 1 1 100%; }
  .callcard { padding: 24px 18px; }
  .pillars { grid-template-columns: minmax(0, 1fr); margin-top: 70px; }
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-face { min-height: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 34px; margin-top: 50px; }
  .steps-sky { display: none; }
  .step { padding: 0 0 0 58px; }
  .step-dot { top: -4px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile figcaption { padding: 30px 12px 10px; font-size: 13.5px; }
  .about-sky { display: none; }
  .quote { font-size: 19px; padding: 18px 20px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .form-wrap { padding: 26px 18px; }
  .faq summary { font-size: 18px; padding: 18px 20px; }
  .faq details p { padding: 0 20px 20px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .logo { height: 40px; }
}

@media (max-width: 400px) {
  .header-row > .lang a { padding: 5px 7px; }
  .header-row > .lang .ico { display: none; }
  .callbar a { gap: 5px; }
  .callbar .ico { display: none; }
  .phone-row .num { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .halo { display: none; }
}

/* Déroulement : les étapes se relient comme une constellation au défilement */
.steps-head { margin: 110px 0 0; }
.steps { list-style: none; padding: 0; --p: 0; }
.step::after { content: ""; position: absolute; top: 31px; left: 50px; right: -14px; height: 1px; background: linear-gradient(90deg, var(--flame), var(--accent-soft)); transform-origin: left; transform: scaleX(var(--seg, 0)); transition: transform .4s linear; opacity: .7; }
.step:nth-child(1)::after { --seg: clamp(0, calc(var(--p) * 2), 1); }
.step:nth-child(2)::after { --seg: clamp(0, calc(var(--p) * 2 - 1), 1); }
.step:last-child::after { display: none; }
.step-dot { box-shadow: 0 0 0 6px rgba(14, 22, 30, .9), 0 0 24px rgba(255, 199, 120, .25); }
@media (max-width: 720px) {
  .steps-head { margin-top: 84px; }
  .step::after { top: 40px; left: 18px; right: auto; bottom: -30px; width: 1px; height: auto; transform: scaleY(var(--seg, 0)); transform-origin: top; background: linear-gradient(180deg, var(--flame), var(--accent-soft)); }
}
