:root{
  --bleu:#000091;
  --bleu-vif:#1212ff;
  --bleu-pale:#eeeefc;
  --bleu-pale-2:#dcdcf7;
  --rouge:#e1000f;
  --rouge-pale:#fdeaec;
  --fond:#ffffff;
  --fond-alt:#f7f7f9;
  --texte:#1b1b1f;
  --texte-mute:#63636b;
  --ligne:#e4e4e9;
  --radius-sm:8px;
  --radius:16px;
  --radius-lg:28px;
  --ombre:0 2px 4px rgba(20,20,40,0.04), 0 8px 24px rgba(20,20,40,0.06);
  --ombre-hover:0 6px 12px rgba(20,20,40,0.06), 0 16px 32px rgba(20,20,40,0.10);
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--fond);
  color:var(--texte);
  font-family:'Work Sans', sans-serif;
  line-height:1.6;
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  letter-spacing:-0.01em;
  color:var(--texte);
}
.mono{font-family:'IBM Plex Mono', monospace;}
a{color:inherit; text-decoration:none;}
img,svg{display:block; max-width:100%;}
::selection{background:var(--bleu); color:#fff;}

/* ---------- HEADER / NAV ---------- */
header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,0.85);
  backdrop-filter:blur(14px) saturate(1.4);
  border-bottom:1px solid var(--ligne);
}
.nav-wrap{
  max-width:1180px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 24px;
}
.brand{display:flex; align-items:center; gap:13px;}
.brand .badge-plate{
  width:46px; height:46px; background:var(--fond); border-radius:50%;
  border:1px solid var(--ligne); box-shadow:var(--ombre);
  display:flex; align-items:center; justify-content:center; padding:6px; flex-shrink:0;
}
.brand .badge-plate img{width:100%; height:100%; object-fit:contain;}
.brand-text{display:flex; flex-direction:column; line-height:1.15;}
.brand-text strong{font-family:'Space Grotesk',sans-serif; font-size:15px; letter-spacing:-0.01em; color:var(--texte);}
.brand-text span{font-size:10px; color:var(--bleu); letter-spacing:0.14em; font-family:'IBM Plex Mono',monospace; text-transform:uppercase;}

nav.tabs{display:flex; gap:2px; align-items:center;}
nav.tabs a{
  position:relative;
  color:var(--texte-mute);
  font-family:'Work Sans', sans-serif; font-weight:500;
  font-size:14px;
  padding:9px 15px;
  border-radius:999px;
  transition:color .2s, background .2s;
}
nav.tabs a:hover{color:var(--texte); background:var(--fond-alt);}
nav.tabs a.active{color:var(--bleu); background:var(--bleu-pale); font-weight:600;}
.burger{display:none; background:var(--fond-alt); border:1px solid var(--ligne); color:var(--texte); padding:9px 12px; border-radius:var(--radius-sm); cursor:pointer;}

@media (max-width:980px){
  nav.tabs{
    position:fixed; top:73px; left:0; right:0; bottom:0;
    background:var(--fond);
    flex-direction:column; align-items:stretch; padding:16px 24px;
    transform:translateX(100%); transition:transform .3s ease;
    overflow-y:auto;
    border-top:1px solid var(--ligne);
  }
  nav.tabs.open{transform:translateX(0);}
  nav.tabs a{padding:16px 6px; border-bottom:1px solid var(--ligne); font-size:16px; border-radius:0;}
  nav.tabs a.active{background:none;}
  .burger{display:block;}
}

/* ---------- LAYOUT ---------- */
main{max-width:1180px; margin:0 auto; padding:0 24px;}
section.panel{padding:60px 0 100px; animation:fade .45s ease;}
@keyframes fade{from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);}}

.eyebrow{
  font-family:'IBM Plex Mono', monospace; font-size:11.5px; letter-spacing:0.14em;
  color:var(--bleu); text-transform:uppercase; margin-bottom:16px; display:flex; align-items:center; gap:9px;
  font-weight:500;
}
.eyebrow::before{content:""; width:8px; height:8px; border-radius:50%; background:var(--rouge);}

/* ---------- HERO ---------- */
.hero{
  display:grid; grid-template-columns:1.15fr 0.85fr; gap:56px; align-items:center;
  padding:64px 0 48px;
}
.hero h1{font-size:52px; line-height:1.05; margin-bottom:20px; font-weight:700;}
.hero h1 em{
  font-style:normal; color:var(--bleu); position:relative; white-space:normal;
  background:linear-gradient(transparent 62%, var(--bleu-pale-2) 62%);
  padding:0 2px;
}
.hero p.lead{color:var(--texte-mute); font-size:17px; max-width:480px; margin-bottom:32px;}
.cta-row{display:flex; gap:12px; flex-wrap:wrap;}
.btn{
  display:inline-block; padding:14px 28px; font-family:'Work Sans',sans-serif;
  font-size:14px; font-weight:600; cursor:pointer; border:1.5px solid transparent;
  border-radius:999px; transition:all .2s;
}
.btn-or{background:var(--bleu); color:#fff;}
.btn-or:hover{background:var(--bleu-vif); transform:translateY(-1px); box-shadow:var(--ombre-hover);}
.btn-ghost{border-color:var(--ligne); color:var(--texte); background:var(--fond);}
.btn-ghost:hover{border-color:var(--bleu); color:var(--bleu);}

.hero-badge{display:flex; justify-content:center; position:relative;}
.hero-badge .glow{
  position:absolute; width:320px; height:300px;
  background:linear-gradient(135deg, var(--bleu-pale), var(--rouge-pale));
  border-radius:42% 58% 63% 37% / 47% 44% 56% 53%;
  animation:blob 8s ease-in-out infinite;
}
@keyframes blob{
  0%,100%{border-radius:42% 58% 63% 37% / 47% 44% 56% 53%;}
  50%{border-radius:58% 42% 40% 60% / 55% 60% 40% 45%;}
}
.hero-badge .plate-lg{
  width:250px; height:190px; background:var(--fond); border-radius:var(--radius);
  border:1px solid var(--ligne); box-shadow:var(--ombre-hover);
  display:flex; align-items:center; justify-content:center; padding:24px; position:relative;
}
.hero-badge .plate-lg img{width:100%; height:100%; object-fit:contain;}

.stat-row{
  display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:60px;
}
.stat{
  background:var(--fond-alt); border-radius:var(--radius); padding:24px 18px;
  border-bottom:3px solid var(--bleu);
}
.stat .num{font-family:'Space Grotesk',sans-serif; font-size:30px; font-weight:700; color:var(--bleu);}
.stat .lbl{font-size:12px; color:var(--texte-mute); margin-top:4px; font-weight:500;}

@media (max-width:800px){
  .hero{grid-template-columns:1fr; padding-top:36px;}
  .hero-badge{order:-1;}
  .hero h1{font-size:36px;}
  .stat-row{grid-template-columns:repeat(2,1fr);}
}

/* ---------- GENERIC BLOCKS ---------- */
.section-head{max-width:640px; margin-bottom:46px;}
.section-head h2{font-size:32px; margin-bottom:12px; font-weight:700;}
.section-head p{color:var(--texte-mute); font-size:16px;}

.grid-2{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
.grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:18px;}
@media (max-width:820px){.grid-2,.grid-3{grid-template-columns:1fr;}}

.card{
  background:var(--fond); border:1px solid var(--ligne); border-radius:var(--radius);
  padding:28px; box-shadow:var(--ombre); transition:transform .2s, box-shadow .2s;
}
.card:hover{transform:translateY(-3px); box-shadow:var(--ombre-hover);}
.card h3{font-size:17px; margin-bottom:10px; color:var(--bleu);}
.card p{color:var(--texte-mute); font-size:14.5px;}

/* Unités - présentation */
.unite{
  display:flex; gap:20px; padding:24px 0; border-bottom:1px solid var(--ligne);
}
.unite:last-child{border-bottom:none;}
.unite .tag{
  font-family:'IBM Plex Mono',monospace; font-size:11px; font-weight:600; color:var(--bleu);
  background:var(--bleu-pale); border-radius:999px;
  padding:6px 12px; height:fit-content; white-space:nowrap;
}
.unite h4{font-size:16.5px; margin-bottom:6px;}
.unite p{color:var(--texte-mute); font-size:14.5px;}

/* Formation - timeline */
.timeline{position:relative; padding-left:40px;}
.timeline::before{content:""; position:absolute; left:13px; top:6px; bottom:6px; width:2px; background:var(--ligne);}
.step{position:relative; padding-bottom:40px;}
.step:last-child{padding-bottom:0;}
.step::before{
  content:attr(data-n); position:absolute; left:-40px; top:0; width:28px; height:28px;
  border-radius:50%; color:#fff; background:var(--bleu); font-family:'IBM Plex Mono',monospace; font-size:11px; font-weight:600;
  display:flex; align-items:center; justify-content:center;
}
.step h4{font-size:16.5px; margin-bottom:6px;}
.step p{color:var(--texte-mute); font-size:14.5px; max-width:560px;}
.duree{font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--rouge); margin-left:10px; font-weight:500;}

/* Recrutement */
.req-list{list-style:none;}
.req-list li{
  display:flex; gap:12px; padding:12px 0; color:var(--texte-mute); font-size:14.5px;
  border-bottom:1px solid var(--ligne);
}
.req-list li::before{content:"→"; color:var(--bleu); font-weight:600;}

.discord-box{
  margin-top:36px; padding:32px; border-radius:var(--radius-lg); background:var(--bleu);
  color:#fff;
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
}
.discord-box h3{color:#fff; font-size:19px; margin-bottom:6px;}
.discord-box p{color:rgba(255,255,255,0.75); font-size:14px;}
.discord-box .btn-or{background:#fff; color:var(--bleu);}
.discord-box .btn-or:hover{background:var(--bleu-pale);}

/* Grades */
.grade-list{border:1px solid var(--ligne); border-radius:var(--radius); overflow:hidden;}
.grade-row{
  display:grid; grid-template-columns:60px 1fr 1fr; gap:16px; align-items:center;
  padding:16px 22px; border-bottom:1px solid var(--ligne);
}
.grade-row:last-child{border-bottom:none;}
.grade-row:nth-child(odd){background:var(--fond-alt);}
.grade-row.two-col{grid-template-columns:60px 1fr;}
.grade-row .echelon{font-family:'IBM Plex Mono',monospace; color:var(--bleu); font-size:13px; font-weight:600;}
.grade-row .nom{font-family:'Space Grotesk',sans-serif; font-size:14.5px; font-weight:600;}
.grade-row .desc{color:var(--texte-mute); font-size:13px;}
.grade-header{
  display:grid; grid-template-columns:60px 1fr 1fr; gap:16px; padding:14px 22px;
  font-family:'IBM Plex Mono',monospace; font-size:10.5px; letter-spacing:0.1em; text-transform:uppercase; color:#fff;
  background:var(--bleu);
}
@media (max-width:700px){
  .grade-row, .grade-header{grid-template-columns:40px 1fr;}
  .grade-row .desc, .grade-header span:last-child{display:none;}
}

/* Règlement */
.regle{padding:22px 0; border-bottom:1px solid var(--ligne); display:flex; gap:22px; align-items:flex-start;}
.regle:last-child{border-bottom:none;}
.regle .art{
  font-family:'IBM Plex Mono',monospace; color:var(--rouge); background:var(--rouge-pale);
  font-size:12px; font-weight:600; min-width:56px; text-align:center; border-radius:999px; padding:6px 4px;
}
.regle h4{font-size:16px; margin-bottom:4px;}
.regle p{color:var(--texte-mute); font-size:14px;}

/* Habilitations */
.doc-list{display:flex; flex-direction:column; gap:12px;}
.doc-row{
  background:var(--fond); border:1px solid var(--ligne); border-radius:var(--radius);
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:18px 22px; transition:transform .2s, box-shadow .2s, border-color .2s;
}
.doc-row:hover{transform:translateY(-2px); box-shadow:var(--ombre-hover); border-color:var(--bleu-pale-2);}
.doc-row .doc-info{display:flex; align-items:center; gap:16px;}
.doc-row .doc-icon{
  width:42px; height:42px; border-radius:12px; background:var(--bleu-pale);
  display:flex; align-items:center; justify-content:center;
  font-family:'IBM Plex Mono',monospace; font-size:10px; font-weight:700; color:var(--bleu); flex-shrink:0;
}
.doc-row h4{font-size:15px; margin-bottom:2px; text-transform:none; letter-spacing:0; font-family:'Work Sans',sans-serif; font-weight:600;}
.doc-row .doc-type{font-family:'IBM Plex Mono',monospace; font-size:10.5px; color:var(--texte-mute); letter-spacing:0.05em; text-transform:uppercase;}
.doc-row .doc-open{font-family:'Work Sans',sans-serif; font-size:13px; font-weight:600; color:var(--bleu); white-space:nowrap;}

/* Contact */
.contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:50px;}
@media (max-width:820px){.contact-grid{grid-template-columns:1fr;}}
.contact-item{margin-bottom:26px;}
.contact-item .lbl{font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--bleu); letter-spacing:0.08em; text-transform:uppercase; margin-bottom:5px; font-weight:600;}
.contact-item .val{font-size:15px;}

form.fake{display:flex; flex-direction:column; gap:14px;}
form.fake input, form.fake textarea{
  background:var(--fond-alt); border:1.5px solid var(--ligne); color:var(--texte); border-radius:var(--radius-sm);
  padding:13px 15px; font-family:'Work Sans',sans-serif; font-size:14px; transition:border-color .2s;
}
form.fake input:focus, form.fake textarea:focus{outline:none; border-color:var(--bleu);}
form.fake label{font-size:11px; letter-spacing:0.06em; text-transform:uppercase; color:var(--texte-mute); font-weight:600; margin-bottom:-8px;}
form.fake textarea{resize:vertical; min-height:110px;}

footer{
  background:var(--bleu); color:rgba(255,255,255,0.8);
  padding:30px 24px; text-align:center; font-size:12.5px; margin-top:40px;
}
footer .mono{color:#fff; font-weight:600;}
