/* ========================================================================
   PROG FORME BRIGNOLES — système visuel partagé
   Dark / navy / néon teal — typographie sport stencil
   ======================================================================== */

:root{
  --bg:        #05080f;
  --bg-2:      #0a1322;
  --surface:   #0e1a2c;
  --surface-2: #122236;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.14);

  --teal:      #18e6c8;
  --teal-soft: #58f0d9;
  --teal-deep: #0fae98;
  --navy:      #1c4a86;
  --navy-soft: #2f6bbf;

  --orange:    #f5a524;
  --green:     #2bb36b;

  --ink:       #eef4fb;
  --muted:     #8ea4c0;
  --muted-2:   #5d728f;

  --maxw: 1280px;
  --gut: clamp(20px, 5vw, 64px);

  --ff-display:'Oswald', 'Arial Narrow', sans-serif;
  --ff-stencil:'Black Ops One', 'Oswald', sans-serif;
  --ff-body:   'Barlow', system-ui, sans-serif;

  --glow: 0 0 0 1px rgba(24,230,200,.4), 0 0 32px -6px rgba(24,230,200,.55);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  font-family:var(--ff-body);
  background:var(--bg);
  color:var(--ink);
  line-height:1.6;
  overflow-x:hidden;
  font-size:17px;
  -webkit-font-smoothing:antialiased;
}
body::before{ /* fond ambiance : halos teintés très subtils */
  content:"";
  position:fixed; inset:0; z-index:-2; pointer-events:none;
  background:
    radial-gradient(60vw 60vw at 82% -8%, rgba(28,74,134,.30), transparent 60%),
    radial-gradient(50vw 50vw at -5% 105%, rgba(24,230,200,.10), transparent 60%),
    var(--bg);
}
body::after{ /* grain léger */
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none; opacity:.05;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
::selection{ background:var(--teal); color:#03130f; }

/* ---- typographie ---- */
h1,h2,h3,h4{ font-family:var(--ff-display); font-weight:700; line-height:.98; text-transform:uppercase; letter-spacing:.01em; }
.display{ font-weight:700; letter-spacing:-.01em; }
.stencil{ font-family:var(--ff-stencil); text-transform:uppercase; }

.eyebrow{
  font-family:var(--ff-stencil); font-size:13px; letter-spacing:.22em;
  color:var(--teal); text-transform:uppercase; display:inline-flex; align-items:center; gap:12px;
}
.eyebrow::before{ content:""; width:30px; height:2px; background:var(--teal); box-shadow:0 0 12px var(--teal); }
.eyebrow.center{ justify-content:center; }
.eyebrow.center::after{ content:""; width:30px; height:2px; background:var(--teal); box-shadow:0 0 12px var(--teal); }

.lead{ font-size:clamp(17px,2vw,21px); color:var(--muted); line-height:1.7; }
.muted{ color:var(--muted); }
.teal{ color:var(--teal); }

/* ---- layout ---- */
.wrap{ max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gut); }
.section{ padding:clamp(72px,11vh,150px) 0; position:relative; }
.section.tight{ padding:clamp(54px,7vh,90px) 0; }
.grid{ display:grid; gap:28px; }
/* colonnes utilitaires (repli responsive plus bas) */
.cols-2{ grid-template-columns:repeat(2,1fr); }
.cols-3{ grid-template-columns:repeat(3,1fr); }
.gallery{ grid-template-columns:1.4fr 1fr 1fr; grid-auto-rows:240px; }

/* ====================== HEADER ====================== */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:90;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px var(--gut);
  transition:background .35s ease, padding .35s ease, border-color .35s;
  border-bottom:1px solid transparent;
}
.site-header.scrolled{
  background:rgba(7,13,24,.82);
  backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid var(--line);
  padding-block:11px;
}
.brand{ display:flex; align-items:center; gap:13px; flex-shrink:0; }
.brand .badge{
  width:42px; height:42px; border-radius:11px; overflow:hidden; background:#fff;
  display:grid; place-items:center; box-shadow:0 4px 18px rgba(0,0,0,.4);
}
.brand .badge img{ width:100%; height:100%; object-fit:contain; }
.brand .wm{ line-height:.9; }
.brand .wm b{ font-family:var(--ff-stencil); font-size:19px; letter-spacing:.02em; display:block; }
.brand .wm span{ font-family:var(--ff-display); font-size:11px; letter-spacing:.42em; color:var(--teal); }

.nav{ display:flex; align-items:center; gap:4px; }
.nav a{
  position:relative; font-family:var(--ff-display); text-transform:uppercase;
  font-size:15px; letter-spacing:.06em; color:var(--muted);
  padding:10px 15px; border-radius:9px; transition:color .2s, background .2s;
}
.nav a:hover{ color:var(--ink); }
.nav a.active{ color:var(--ink); }
.nav a.active::after{
  content:""; position:absolute; left:15px; right:15px; bottom:4px; height:2px;
  background:var(--teal); box-shadow:0 0 10px var(--teal);
}
.nav .has-sub{ position:relative; }
.nav .has-sub > a::before{ content:"▾"; font-size:10px; margin-left:6px; opacity:.6; }
.submenu{
  position:absolute; top:calc(100% + 6px); left:0; min-width:240px;
  background:rgba(11,20,35,.96); backdrop-filter:blur(16px);
  border:1px solid var(--line-2); border-radius:14px; padding:8px;
  display:flex; flex-direction:column; gap:2px;
  opacity:0; visibility:hidden; transform:translateY(8px); transition:.22s;
  box-shadow:0 24px 50px -16px rgba(0,0,0,.7);
}
.nav .has-sub:hover .submenu{ opacity:1; visibility:visible; transform:translateY(0); }
.submenu a{ padding:11px 14px; border-radius:9px; font-size:14.5px; color:var(--muted); }
.submenu a:hover{ background:var(--surface-2); color:var(--teal); }
.submenu a::after{ display:none; }

.header-cta{ display:flex; align-items:center; gap:14px; flex-shrink:0; }
.header-cta .tel{ font-family:var(--ff-display); font-size:15px; letter-spacing:.04em; color:var(--muted); display:flex; align-items:center; gap:7px; }
.header-cta .tel:hover{ color:var(--ink); }

.burger{ display:none; width:44px; height:44px; border:1px solid var(--line-2); border-radius:11px; background:transparent; cursor:pointer; flex-direction:column; gap:5px; align-items:center; justify-content:center; }
.burger span{ width:20px; height:2px; background:var(--ink); transition:.3s; }
.burger.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity:0; }
.burger.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.mobile-nav{
  position:fixed; inset:0; z-index:80; background:rgba(5,9,16,.98);
  backdrop-filter:blur(10px); padding:96px var(--gut) 40px;
  display:flex; flex-direction:column; gap:6px;
  transform:translateX(100%); transition:transform .4s cubic-bezier(.6,0,.2,1); overflow-y:auto;
}
.mobile-nav.open{ transform:translateX(0); }
.mobile-nav a{ font-family:var(--ff-display); text-transform:uppercase; font-size:24px; letter-spacing:.04em; padding:13px 0; border-bottom:1px solid var(--line); color:var(--ink); }
.mobile-nav a.sub{ font-size:17px; color:var(--muted); padding-left:18px; }
.mobile-nav a.active{ color:var(--teal); }

/* ====================== BOUTONS ====================== */
.btn{
  --b:var(--teal);
  display:inline-flex; align-items:center; gap:10px; cursor:pointer;
  font-family:var(--ff-display); text-transform:uppercase; letter-spacing:.07em; font-size:15px;
  padding:15px 28px; border-radius:11px; border:1px solid transparent; transition:.22s; white-space:nowrap;
}
.btn .arr{ transition:transform .25s; }
.btn:hover .arr{ transform:translateX(4px); }
.btn-primary{ background:var(--teal); color:#022017; box-shadow:0 10px 30px -8px rgba(24,230,200,.6); font-weight:700; }
.btn-primary:hover{ background:var(--teal-soft); transform:translateY(-2px); box-shadow:0 16px 40px -8px rgba(24,230,200,.7); }
.btn-ghost{ border-color:var(--line-2); color:var(--ink); }
.btn-ghost:hover{ border-color:var(--teal); color:var(--teal); background:rgba(24,230,200,.06); }
.btn-lg{ padding:18px 34px; font-size:16px; }

/* ====================== HERO accueil ====================== */
.hero{ position:relative; min-height:100svh; display:flex; align-items:center; overflow:hidden; }
#hero-canvas{ position:absolute; inset:0; z-index:0; }
.hero-veil{ position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(100deg, var(--bg) 8%, rgba(5,8,15,.55) 40%, transparent 65%),
             linear-gradient(0deg, var(--bg) 2%, transparent 30%); }
.hero-inner{ position:relative; z-index:2; width:100%; }
.hero h1{ font-size:clamp(56px,10.5vw,158px); line-height:.86; letter-spacing:-.01em; }
.hero h1 .out{ color:transparent; -webkit-text-stroke:2px var(--teal); text-stroke:2px var(--teal); }
.hero .sub{ max-width:540px; margin-top:26px; }
.hero .cta-row{ display:flex; gap:16px; margin-top:36px; flex-wrap:wrap; }
.hero .scroll-cue{ position:absolute; bottom:26px; left:50%; transform:translateX(-50%); z-index:2;
  font-family:var(--ff-display); text-transform:uppercase; font-size:12px; letter-spacing:.3em; color:var(--muted-2);
  display:flex; flex-direction:column; align-items:center; gap:10px; }
.hero .scroll-cue i{ width:1px; height:46px; background:linear-gradient(var(--teal),transparent); animation:cue 2s infinite; }
@keyframes cue{ 0%{opacity:.2;transform:scaleY(.4);transform-origin:top} 50%{opacity:1;transform:scaleY(1)} 100%{opacity:.2;transform:scaleY(.4);transform-origin:bottom} }

/* page hero 3D (split : texte + haltère manipulable) */
.phero3d{ position:relative; min-height:78vh; display:grid; grid-template-columns:1.05fr .95fr; align-items:center; gap:clamp(20px,4vw,56px); padding:clamp(96px,12vh,140px) 0 clamp(40px,7vh,72px); overflow:hidden; }
.phero3d::before{ content:""; position:absolute; right:-6%; top:42%; transform:translateY(-50%); width:60vw; height:60vw; max-width:760px; max-height:760px; z-index:0; pointer-events:none;
  background:radial-gradient(closest-side, rgba(24,230,200,.16), rgba(28,74,134,.10) 45%, transparent 72%); }
.phero3d .col{ position:relative; z-index:2; }
.prop-stage{ position:relative; z-index:1; width:100%; aspect-ratio:1/1; max-height:74vh; touch-action:none; cursor:grab; }
.prop-stage:active{ cursor:grabbing; }
.prop-stage canvas{ width:100%; height:100%; display:block; }
.prop-hint{ position:absolute; left:50%; bottom:6px; transform:translateX(-50%); z-index:3; display:inline-flex; align-items:center; gap:9px;
  font-family:var(--ff-display); text-transform:uppercase; letter-spacing:.12em; font-size:12px; color:var(--muted-2); pointer-events:none; white-space:nowrap; }
.prop-hint svg{ width:18px; height:18px; }
@media(max-width:860px){
  .phero3d{ grid-template-columns:1fr; text-align:left; }
  .prop-stage{ aspect-ratio:4/3; max-height:46vh; order:-1; }
  .phero3d::before{ top:24%; }
}

/* page hero (non-3d) */
.phero{ position:relative; min-height:62vh; display:flex; align-items:flex-end; overflow:hidden; padding-bottom:clamp(40px,7vh,72px); }
.phero .bg{ position:absolute; inset:0; z-index:0; }
.phero .bg img{ width:100%; height:100%; object-fit:cover; filter:saturate(.85) contrast(1.05); }
.phero .bg::after{ content:""; position:absolute; inset:0;
  background:linear-gradient(0deg, var(--bg) 4%, rgba(5,8,15,.45) 50%, rgba(5,8,15,.65)),
             radial-gradient(80vw 50vh at 50% 0%, rgba(28,74,134,.4), transparent 70%); }
.phero .inner{ position:relative; z-index:1; }
.phero h1{ font-size:clamp(44px,8vw,104px); line-height:.9; }
.phero .crumbs{ font-family:var(--ff-display); text-transform:uppercase; letter-spacing:.12em; font-size:13px; color:var(--muted); margin-bottom:18px; display:flex; gap:10px; }
.phero .crumbs a:hover{ color:var(--teal); }
.phero .crumbs .sep{ color:var(--muted-2); }

/* ====================== CARTES / SECTIONS ====================== */
.card{ background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:30px; transition:.25s; }
.card:hover{ border-color:var(--line-2); transform:translateY(-4px); }
.card .num{ font-family:var(--ff-stencil); font-size:14px; color:var(--teal); letter-spacing:.1em; }
.card h3{ font-size:24px; margin:14px 0 10px; }

.section-head{ max-width:760px; }
.section-head h2{ font-size:clamp(34px,5vw,68px); margin:18px 0 0; }
.section-head.center{ margin-inline:auto; text-align:center; }

/* media block + image */
.imgframe{ position:relative; border-radius:18px; overflow:hidden; border:1px solid var(--line); background:var(--surface); }
.imgframe img{ width:100%; height:100%; object-fit:cover; transition:transform .8s ease; }
.imgframe:hover img{ transform:scale(1.05); }
.imgframe .tag{ position:absolute; left:14px; bottom:14px; z-index:2; background:rgba(5,9,16,.7); backdrop-filter:blur(8px);
  border:1px solid var(--line-2); border-radius:999px; padding:7px 15px; font-family:var(--ff-display); text-transform:uppercase; font-size:12px; letter-spacing:.1em; }

/* placeholder image */
.ph{ position:relative; background:
   repeating-linear-gradient(135deg, #0e1a2c 0 14px, #0c1727 14px 28px);
   border:1px solid var(--line); border-radius:18px; display:grid; place-items:center; color:var(--muted-2);
   font-family:'Barlow',monospace; font-size:13px; letter-spacing:.08em; text-transform:uppercase; min-height:240px; }

/* split feature */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(32px,5vw,80px); align-items:center; }
.split.rev .media{ order:2; }

/* stat strip */
.stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:18px; overflow:hidden; }
.stats .s{ background:var(--bg-2); padding:30px 24px; }
.stats .s b{ font-family:var(--ff-display); font-size:clamp(38px,5vw,60px); line-height:1; color:var(--teal); display:block; }
.stats .s span{ font-size:14px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; }

/* list with ticks */
.ticks{ list-style:none; display:grid; gap:14px; }
.ticks li{ position:relative; padding-left:34px; color:var(--muted); }
.ticks li::before{ content:""; position:absolute; left:0; top:9px; width:16px; height:16px; border-radius:5px; background:var(--teal); box-shadow:0 0 14px -2px var(--teal);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center/contain no-repeat;
  background:var(--teal); }
.ticks li strong{ color:var(--ink); font-weight:600; }

/* tag chips */
.chips{ display:flex; flex-wrap:wrap; gap:10px; }
.chip{ font-family:var(--ff-display); text-transform:uppercase; font-size:13px; letter-spacing:.06em; color:var(--muted);
  border:1px solid var(--line-2); border-radius:999px; padding:8px 16px; }
.chip.on{ background:var(--teal); color:#022017; border-color:var(--teal); }

/* ====================== FOOTER ====================== */
.site-footer{ border-top:1px solid var(--line); background:var(--bg-2); padding:72px 0 36px; margin-top:40px; }
.foot-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1.2fr; gap:40px; }
.site-footer h4{ font-family:var(--ff-display); font-size:14px; letter-spacing:.16em; color:var(--muted-2); margin-bottom:18px; }
.site-footer .flink{ display:block; color:var(--muted); padding:6px 0; font-size:15px; }
.site-footer .flink:hover{ color:var(--teal); }
.foot-brand .badge{ width:64px; height:64px; border-radius:14px; overflow:hidden; background:#fff; margin-bottom:16px; }
.foot-brand .badge img{ width:100%; height:100%; object-fit:contain; }
.socials{ display:flex; gap:10px; margin-top:18px; }
.socials a{ width:42px; height:42px; border:1px solid var(--line-2); border-radius:11px; display:grid; place-items:center; color:var(--muted); transition:.2s; }
.socials a:hover{ color:var(--teal); border-color:var(--teal); transform:translateY(-2px); }
.socials svg{ width:19px; height:19px; }
.foot-bottom{ display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:54px; padding-top:24px; border-top:1px solid var(--line); color:var(--muted-2); font-size:13px; }

/* ====================== REVEAL ANIM ====================== */
[data-reveal]{ opacity:0; transform:translateY(28px); transition:opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in{ opacity:1; transform:none; }
[data-reveal][data-d="1"]{ transition-delay:.08s; }
[data-reveal][data-d="2"]{ transition-delay:.16s; }
[data-reveal][data-d="3"]{ transition-delay:.24s; }
[data-reveal][data-d="4"]{ transition-delay:.32s; }

/* ====================== RESPONSIVE ====================== */
@media (max-width:1040px){
  .nav,.header-cta .tel{ display:none; }
  .burger{ display:flex; }
  .foot-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:900px){
  .cols-3{ grid-template-columns:repeat(2,1fr); }
  .gallery{ grid-template-columns:1fr 1fr; grid-auto-rows:200px; }
}
@media (max-width:760px){
  body{ font-size:16px; }
  .split{ grid-template-columns:1fr; }
  .split.rev .media{ order:0; }
  .stats{ grid-template-columns:repeat(2,1fr); }
  .foot-grid{ grid-template-columns:1fr; }
}
@media (max-width:640px){
  /* navbar : plus que le burger à droite, le CTA passe dans le menu */
  .site-header{ padding-inline:18px; }
  .header-cta{ gap:0; }
  .header-cta .btn{ display:none; }
  .brand{ gap:11px; }
  .brand .wm b{ font-size:17px; }
  .brand .wm span{ font-size:10px; letter-spacing:.3em; }
  /* grilles : tout en une colonne */
  .cols-2,.cols-3{ grid-template-columns:1fr; }
  .gallery{ grid-template-columns:1fr; grid-auto-rows:220px; }
  .gallery .imgframe{ grid-column:auto !important; grid-row:auto !important; }
}
/* CTA "essai gratuit" dans le menu mobile */
.mobile-nav .m-cta{
  margin-top:22px; justify-content:center; font-size:16px; padding:16px 24px;
  border-bottom:none !important;
}
