/* ═══════════════════════════════════════════════
   URBEX FRANCE — feuille de style partagée
═══════════════════════════════════════════════ */
:root {
    --bg:   #020206;
    --s1:   rgba(255,255,255,0.04);
    --s2:   rgba(255,255,255,0.07);
    --s3:   rgba(255,255,255,0.13);
    --b1:   rgba(255,255,255,0.08);
    --b2:   rgba(255,255,255,0.16);
    --b3:   rgba(255,255,255,0.28);
    --red:  #ff2847;
    --red2: #ff5472;
    --red3: #ff8098;
    --rg:   rgba(255,40,71,0.35);
    --rg2:  rgba(255,40,71,0.10);
    --blue: #4b9eff;
    --text: #ffffff;
    --t2:   rgba(255,255,255,0.62);
    --t3:   rgba(255,255,255,0.35);
    --mono: ui-monospace,'SF Mono',Menlo,monospace;
    --r-m:  16px;
    --r-l:  22px;
    --r-xl: 30px;
    --r-p:  9999px;
    --sh:   0 24px 64px rgba(0,0,0,0.65);
    --sh-s: 0 8px 28px rgba(0,0,0,0.4);
    --max:  1300px;
    --nav:  76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; background: none; border: none; outline: none; }

::selection { background: var(--rg); color: #fff; }

/* CANVAS + ORBS */
#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.orb-layer { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(100px); }
.orb-1 { width: 1100px; height: 800px; top: -30%; right: -15%; background: radial-gradient(circle, rgba(255,40,71,0.17), transparent 70%); animation: orb 22s ease-in-out infinite alternate; }
.orb-2 { width: 900px; height: 900px; bottom: -30%; left: -15%; background: radial-gradient(circle, rgba(75,158,255,0.12), transparent 70%); animation: orb 32s ease-in-out infinite alternate-reverse; }
.orb-3 { width: 600px; height: 600px; top: 40%; left: 30%; background: radial-gradient(circle, rgba(255,40,71,0.06), transparent 70%); animation: orb 42s ease-in-out infinite alternate; }
@keyframes orb { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(60px, -50px) scale(1.08); } }

/* LAYOUT */
.wrap { position: relative; z-index: 2; width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 1000; padding: 12px 0; background: rgba(2,2,6,0.60); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); border-bottom: 1px solid var(--b1); transition: background 0.3s; }
.nav.scrolled { background: rgba(2,2,6,0.88); }
.nav-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo { width: 40px; height: 40px; border-radius: 13px; border: 1px solid var(--b2); background: var(--s2); object-fit: contain; padding: 4px; filter: drop-shadow(0 0 6px rgba(255,40,71,0.5)); }
.brand-text strong { display: block; font-size: 0.94rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.brand-text small { display: block; font-size: 0.66rem; color: var(--t3); letter-spacing: 0.05em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: var(--r-p); font-size: 0.85rem; font-weight: 600; color: var(--t2); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: var(--s2); }
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-pill-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: var(--r-p); font-size: 0.84rem; font-weight: 700; cursor: pointer; transition: transform 0.18s, box-shadow 0.18s, background 0.18s; white-space: nowrap; }
.nav-pill-btn:hover { transform: translateY(-1px); }
.nav-pill-btn:active { transform: translateY(0); }
.npl-ghost { color: var(--text); background: var(--s2); border: 1px solid var(--b1); }
.npl-ghost:hover { background: var(--s3); border-color: var(--b2); }
.npl-red { color: #fff; background: linear-gradient(135deg, var(--red), #c91e35); box-shadow: 0 10px 28px var(--rg); }
.npl-red:hover { box-shadow: 0 14px 38px rgba(255,40,71,0.48); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--b2); background: var(--s2); color: var(--text); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; flex-shrink: 0; }
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: var(--r-p); background: currentColor; transition: all 0.25s ease; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-drawer { display: none; position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; padding: 16px; border-radius: 22px; border: 1px solid var(--b2); background: rgba(5,6,12,0.96); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); box-shadow: var(--sh); flex-direction: column; gap: 8px; animation: drawerIn 0.24s cubic-bezier(0.34,1.56,0.64,1) both; }
@keyframes drawerIn { from { opacity: 0; transform: translateY(-10px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.nav-drawer.open { display: flex; }
.nav-drawer .nav-links { flex-direction: column; align-items: stretch; gap: 4px; }
.nav-drawer .nav-links a { justify-content: center; min-height: 44px; font-size: 0.9rem; }
.nav-drawer .nav-right { flex-direction: column; gap: 8px; }
.nav-drawer .nav-pill-btn { width: 100%; justify-content: center; min-height: 44px; }

/* HERO */
.hero { position: relative; min-height: calc(100vh - var(--nav)); display: flex; align-items: center; padding: 60px 0 80px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg-img { position: absolute; inset: 0; background: url('/images/bg.png') center/cover no-repeat; transform-origin: center; will-change: transform; transition: transform 0.1s linear; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,2,6,0.35) 0%, rgba(2,2,6,0.55) 50%, rgba(2,2,6,0.90) 100%), linear-gradient(90deg, rgba(2,2,6,0.82) 0%, rgba(2,2,6,0.30) 55%, rgba(2,2,6,0.65) 100%); }
.hero::before { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,40,71,0.5), transparent); z-index: 0; animation: heroScan 5s linear infinite; }
@keyframes heroScan { 0% { top: 0%; opacity: 0; } 5% { opacity: 1; } 95% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.hero-grid { display: grid; grid-template-columns: 1fr min(380px, 36vw); gap: 40px; align-items: center; }
.hero-left { display: flex; flex-direction: column; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; margin-bottom: 28px; border-radius: var(--r-p); background: var(--rg2); border: 1px solid rgba(255,40,71,0.22); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red3); width: fit-content; font-family: var(--mono); }
.hero-kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--rg); animation: kpulse 1.8s ease-in-out infinite; }
@keyframes kpulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.65); } }
.hero-h1 { font-size: clamp(4rem, 10vw, 8.5rem); font-weight: 700; line-height: 0.92; letter-spacing: -0.055em; margin-bottom: 28px; }
.hero-h1 .grad { display: block; color: transparent; background: linear-gradient(120deg, #ffffff 0%, #ffdce6 40%, var(--red2) 100%); -webkit-background-clip: text; background-clip: text; }
.hero-desc { max-width: 580px; font-size: clamp(0.96rem, 1.8vw, 1.08rem); line-height: 1.85; color: var(--t2); margin-bottom: 34px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hbtn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--r-p); font-size: 0.92rem; font-weight: 700; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s; white-space: nowrap; }
.hbtn:hover { transform: translateY(-2px); }
.hbtn:active { transform: translateY(0); }
.hbtn-red { color: #fff; background: linear-gradient(135deg, var(--red), #c91e35); box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 16px 40px var(--rg); }
.hbtn-red:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 22px 52px rgba(255,40,71,0.52); }
.hbtn-ghost { color: var(--text); background: rgba(255,255,255,0.08); border: 1px solid var(--b2); backdrop-filter: blur(10px); }
.hbtn-ghost:hover { background: rgba(255,255,255,0.14); border-color: var(--b3); }
.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.metric { padding: 16px 18px; border-radius: var(--r-l); border: 1px solid var(--b1); background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); transition: border-color 0.2s, background 0.2s; }
.metric:hover { border-color: var(--b2); background: rgba(255,255,255,0.08); }
.metric-val { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.03em; color: var(--text); margin-bottom: 4px; line-height: 1.1; }
.metric-label { font-size: 0.72rem; font-weight: 600; color: var(--t3); letter-spacing: 0.05em; line-height: 1.4; }

/* SECTIONS */
.section { position: relative; padding: 110px 0; z-index: 2; }
.section-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; margin-bottom: 18px; border-radius: var(--r-p); background: var(--s1); border: 1px solid var(--b1); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t3); font-family: var(--mono); }
.section-kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--blue)); box-shadow: 0 0 10px var(--rg); }
.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 16px; }
.section-lead { font-size: 1.02rem; line-height: 1.85; color: var(--t2); max-width: 620px; }

/* FEATURE CARDS */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.feat-card { position: relative; overflow: hidden; padding: 30px; border-radius: var(--r-xl); border: 1px solid var(--b1); background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)); backdrop-filter: blur(22px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), var(--sh-s); transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), border-color 0.2s, box-shadow 0.3s; }
.feat-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(255,40,71,0.07), transparent 50%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.feat-card:hover { transform: translateY(-10px); border-color: rgba(255,40,71,0.22); box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 0 0 1px rgba(255,40,71,0.10), var(--sh); }
.feat-card:hover::after { opacity: 1; }
.feat-num { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; border: 1px solid var(--b2); background: var(--rg2); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; color: var(--red3); font-family: var(--mono); margin-bottom: 20px; }
.feat-card h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.feat-card p { font-size: 0.92rem; line-height: 1.8; color: var(--t2); }

/* CTA BLOCK */
.cta-wrap { position: relative; overflow: hidden; padding: 60px 48px; border-radius: var(--r-xl); border: 1px solid var(--b2); background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04)); backdrop-filter: blur(28px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), var(--sh); text-align: center; }
.cta-wrap::before { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; top: -100px; left: -80px; background: radial-gradient(circle, rgba(255,40,71,0.20), transparent 70%); filter: blur(20px); pointer-events: none; }
.cta-wrap::after { content: ''; position: absolute; width: 280px; height: 280px; border-radius: 50%; bottom: -100px; right: -80px; background: radial-gradient(circle, rgba(75,158,255,0.16), transparent 70%); filter: blur(20px); pointer-events: none; }
.cta-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-p); background: var(--rg2); border: 1px solid rgba(255,40,71,0.22); font-size: 0.70rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red3); font-family: var(--mono); margin-bottom: 20px; }
.cta-wrap h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 16px; max-width: 780px; margin-left: auto; margin-right: auto; }
.cta-wrap p { font-size: 1rem; line-height: 1.85; color: var(--t2); max-width: 640px; margin: 0 auto 28px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border-radius: var(--r-l); border: 1px solid var(--b1); background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025)); backdrop-filter: blur(18px); overflow: hidden; transition: border-color 0.2s, background 0.2s; }
.faq-item[open] { border-color: rgba(255,40,71,0.22); }
.faq-item:hover { border-color: var(--b2); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 24px; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex-shrink: 0; font-size: 1.4rem; font-weight: 300; color: var(--red3); line-height: 1; transition: transform 0.25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 22px; font-size: 0.92rem; line-height: 1.8; color: var(--t2); }

/* FOOTER */
.footer { position: relative; z-index: 2; padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--b1); background: rgba(2,2,6,0.70); backdrop-filter: blur(16px); }
.footer-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { font-size: 0.86rem; color: var(--t3); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 0.86rem; font-weight: 600; color: var(--t2); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ═══════════════════════════════════════════════
   PAGES RÉGIONALES / VILLES
═══════════════════════════════════════════════ */
.crumb { font-size: 0.78rem; color: var(--t3); margin-bottom: 22px; font-family: var(--mono); letter-spacing: 0.04em; }
.crumb a { color: var(--t2); transition: color 0.2s; }
.crumb a:hover { color: var(--red3); }
.crumb span { color: var(--red3); }

.page-hero { position: relative; padding: 70px 0 50px; isolation: isolate; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.045em; margin-bottom: 22px; max-width: 14ch; }
.page-hero h1 .grad { color: transparent; background: linear-gradient(120deg, #ffffff 0%, #ffdce6 40%, var(--red2) 100%); -webkit-background-clip: text; background-clip: text; }
.page-hero .lead { max-width: 680px; font-size: clamp(1rem, 1.8vw, 1.12rem); line-height: 1.85; color: var(--t2); margin-bottom: 30px; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.03em; margin: 44px 0 16px; line-height: 1.15; }
.prose h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; margin: 30px 0 12px; }
.prose p { font-size: 1rem; line-height: 1.9; color: var(--t2); margin-bottom: 18px; }
.prose ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 18px 0 24px; }
.prose ul li { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-radius: var(--r-m); background: var(--s1); border: 1px solid var(--b1); font-size: 0.94rem; color: var(--t2); line-height: 1.55; }
.prose ul li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 0.45em; background: linear-gradient(135deg, var(--red), var(--blue)); box-shadow: 0 0 10px var(--rg); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--red3); text-decoration: underline; text-underline-offset: 3px; }

/* GRILLE DE LIENS RÉGIONS (maillage interne) */
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.region-card { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--r-l); border: 1px solid var(--b1); background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025)); transition: transform 0.2s, border-color 0.2s, background 0.2s; }
.region-card:hover { transform: translateY(-4px); border-color: rgba(255,40,71,0.25); background: linear-gradient(145deg, rgba(255,40,71,0.08), rgba(255,255,255,0.03)); }
.region-card strong { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.region-card small { font-size: 0.76rem; color: var(--t3); }

/* RESPONSIVE */
@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-h1 { font-size: clamp(3.2rem, 9vw, 6rem); }
    .hero-right { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .hero-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .feature-grid { grid-template-columns: 1fr; gap: 14px; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-right .nav-pill-btn { display: none; }
    .nav-right .nav-pill-btn.mobile-show { display: flex; }
}
@media (max-width: 680px) {
    .section { padding: 80px 0; }
    .section-head { margin-bottom: 40px; }
    .hero-metrics { grid-template-columns: 1fr 1fr; }
    .cta-wrap { padding: 40px 24px; }
    .cta-btns .hbtn { width: 100%; justify-content: center; }
    .hero-btns .hbtn { width: 100%; justify-content: center; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 480px) {
    .wrap { width: calc(100% - 20px); }
    .hero-metrics { grid-template-columns: 1fr; }
    .metric { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}
