/* ============================================
   LE PROJECTOIR — Style partagé pages formation
   Inspiré TraficMania · Charte navy + orange
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #1a1a1a; background: #fff; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

:root {
  --navy:   #1B3D6F;
  --navy-d: #122A50;
  --orange: #F5A623;
  --ora-d:  #D4891A;
  --light:  #F7F9FC;
  --border: #E8ECF0;
  --gray:   #6B7280;
  --dark:   #111827;
}

/* ── NAVBAR ── */
.navbar { position:sticky; top:0; z-index:900; background:#fff; border-bottom:2px solid var(--border); }
.nbi { max-width:960px; margin:0 auto; padding:0 24px; display:flex; align-items:center; justify-content:space-between; height:62px; }
.nbi img.logo { height:40px; }
.nav-links { display:flex; align-items:center; gap:24px; list-style:none; }
.nav-links a { font-size:.86rem; font-weight:600; color:var(--dark); transition:color .15s; }
.nav-links a:hover, .nav-links a.cur { color:var(--navy); }
.nav-toggle { display:none; flex-direction:column; gap:5px; cursor:pointer; border:none; background:none; padding:4px; }
.nav-toggle span { display:block; width:22px; height:2px; background:var(--dark); border-radius:2px; }

/* ── MEGA DROPDOWN ── */
.has-dd { position:relative; }
.dd-trigger { cursor:pointer; display:flex; align-items:center; gap:4px; }
.mega-dd {
  display:none; position:absolute;
  top:100%; left:50%; transform:translateX(-50%);
  background:#fff; border:2px solid var(--border);
  border-radius:12px; box-shadow:0 16px 48px rgba(27,61,111,0.15);
  padding:24px; grid-template-columns:repeat(3,190px);
  gap:0; z-index:500; min-width:570px;
}
/* Bridge invisible pour éviter le gap */
.has-dd::after {
  content:''; position:absolute;
  top:100%; left:-20px; right:-20px;
  height:16px;
}
.has-dd:hover .mega-dd,
.has-dd:focus-within .mega-dd,
.mega-dd:hover { display:grid; }
.dd-col { padding:0 18px; border-right:1px solid var(--border); }
.dd-col:last-child { border-right:none; }
.dd-col:first-child { padding-left:0; }
.dd-cat {
  font-size:.68rem; font-weight:800; text-transform:uppercase;
  letter-spacing:.1em; color:var(--navy); margin-bottom:12px;
}
.mega-dd a {
  display:block; font-size:.83rem; font-weight:600;
  color:#374151; padding:6px 0; transition:color .15s;
}
.mega-dd a:hover { color:var(--navy); }

@media(max-width:640px){
  .nav-links { display:none; }
  .nav-links.open { display:flex; flex-direction:column; position:fixed; top:62px; left:0; right:0; background:#fff; padding:20px 24px; border-bottom:2px solid var(--border); gap:14px; z-index:800; box-shadow:0 8px 24px rgba(0,0,0,.08); }
  .nav-toggle { display:flex; }
  .nav-cta { display:none; }
  .mega-dd { display:none !important; }
}

/* ── BOUTONS ── */
.btn { display:inline-block; padding:11px 24px; border-radius:6px; font-weight:700; font-size:.9rem; border:2px solid transparent; cursor:pointer; font-family:'Inter',sans-serif; transition:all .18s; }
.btn-navy   { background:var(--navy); color:#fff; border-color:var(--navy); }
.btn-navy:hover { background:var(--navy-d); }
.btn-orange { background:var(--orange); color:#fff; border-color:var(--orange); }
.btn-orange:hover { background:var(--ora-d); }
.btn-outline { background:transparent; color:var(--navy); border-color:var(--navy); }
.btn-outline:hover { background:var(--navy); color:#fff; }

/* ── LAYOUT ── */
.page { max-width:780px; margin:0 auto; padding:0 24px; }
.page-wide { max-width:960px; margin:0 auto; padding:0 24px; }

/* ── HERO FORMATION ── */
.hero-f { background:var(--light); border-bottom:2px solid var(--border); padding:52px 0 44px; }
.breadcrumb { display:flex; align-items:center; gap:8px; font-size:.76rem; color:var(--gray); margin-bottom:18px; }
.breadcrumb a { color:var(--gray); }
.breadcrumb a:hover { color:var(--navy); }
.breadcrumb .sep { color:#D1D5DB; }
.badge-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.badge { display:inline-block; font-size:.68rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; padding:4px 11px; border-radius:4px; }
.badge-org { background:var(--orange); color:#fff; }
.badge-gld { background:#FEF3C7; color:#92400E; }
.badge-blu { background:#DBEAFE; color:#1E40AF; }
.badge-grn { background:#D1FAE5; color:#065F46; }
.hero-f h1 { font-family:'Montserrat',sans-serif; font-weight:900; font-size:clamp(1.7rem,4vw,2.5rem); line-height:1.15; color:var(--navy); margin-bottom:14px; }
.hero-f h1 em { font-style:normal; color:var(--orange); }
.hero-sub { font-size:1.02rem; color:#4B5563; line-height:1.75; margin-bottom:22px; max-width:680px; }
.hero-meta { display:flex; flex-wrap:wrap; gap:14px; font-size:.82rem; color:var(--gray); margin-bottom:26px; }
.hero-meta span { display:flex; align-items:center; gap:5px; font-weight:500; }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; }

/* ── CONTENU ── */
.cs { padding:44px 0; border-bottom:1px solid var(--border); }
.cs:last-child { border-bottom:none; }
.cs h2 { font-family:'Montserrat',sans-serif; font-weight:800; font-size:1.45rem; color:var(--navy); margin-bottom:14px; line-height:1.2; }
.cs h3 { font-family:'Montserrat',sans-serif; font-weight:700; font-size:1.05rem; color:var(--navy); margin:22px 0 10px; }
.cs p { font-size:.93rem; color:#374151; margin-bottom:13px; }
.cs strong { color:var(--navy); }

.cl { list-style:none; display:flex; flex-direction:column; gap:9px; }
.cl li { display:flex; gap:10px; align-items:flex-start; font-size:.9rem; color:#374151; }
.cl li::before { content:'✔'; color:var(--orange); font-weight:800; flex-shrink:0; margin-top:2px; }

.hl { background:#FFF8ED; border:2px solid #FDE68A; border-left:4px solid var(--orange); border-radius:8px; padding:18px 22px; margin:18px 0; }
.hl p { font-size:.9rem; color:#374151; margin:0; }

.nb { background:var(--navy); border-radius:10px; padding:26px; margin:18px 0; }
.nb h3 { color:var(--orange); margin-bottom:10px; font-size:.95rem; }
.nb .cl li { color:rgba(255,255,255,.82); }
.nb .cl li::before { color:var(--orange); }

/* Programme */
.prog-item { border:1.5px solid var(--border); border-radius:8px; padding:14px 18px; margin-bottom:9px; display:flex; gap:12px; align-items:flex-start; transition:border-color .15s; }
.prog-item:hover { border-color:var(--navy); }
.prog-n { background:var(--light); color:var(--navy); font-family:'Montserrat',sans-serif; font-weight:800; font-size:.78rem; padding:3px 9px; border-radius:4px; flex-shrink:0; white-space:nowrap; }
.prog-t { font-weight:700; font-size:.9rem; color:var(--navy); margin-bottom:2px; }
.prog-d { font-size:.8rem; color:var(--gray); line-height:1.5; }

/* Auteur */
.author { background:var(--light); border:2px solid var(--border); border-radius:12px; padding:28px; display:flex; gap:22px; align-items:flex-start; }
.author-av { width:68px; height:68px; border-radius:50%; background:var(--navy); color:#fff; display:flex; align-items:center; justify-content:center; font-family:'Montserrat',sans-serif; font-weight:900; font-size:1.3rem; flex-shrink:0; }
.author-name { font-family:'Montserrat',sans-serif; font-weight:800; font-size:1rem; color:var(--navy); }
.author-title { font-size:.76rem; color:var(--gray); margin-bottom:12px; }
.author-tags { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:12px; }
.author-tag { background:#fff; border:1.5px solid var(--border); color:var(--navy); font-size:.68rem; font-weight:700; padding:2px 9px; border-radius:4px; }
.author p { font-size:.86rem; color:#4B5563; line-height:1.7; }

/* Prix */
.price-box { background:#fff; border:3px solid var(--navy); border-radius:12px; padding:32px; text-align:center; margin:28px 0; }
.price-label { font-size:.76rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:var(--gray); margin-bottom:6px; }
.price-main { font-family:'Montserrat',sans-serif; font-size:1rem; font-weight:700; color:var(--navy); margin-bottom:5px; }
.price-note { font-size:.78rem; color:var(--gray); margin-bottom:22px; }

/* FAQ */
.faq-item { border-bottom:1px solid var(--border); padding:18px 0; }
.faq-q { font-weight:700; font-size:.92rem; color:var(--navy); margin-bottom:6px; }
.faq-a { font-size:.88rem; color:#4B5563; line-height:1.7; }

/* Related */
.related-card { display:block; padding:14px 16px; border:1.5px solid var(--border); border-radius:8px; transition:border-color .15s; }
.related-card:hover { border-color:var(--navy); }
.related-cat { font-size:.66rem; font-weight:800; text-transform:uppercase; letter-spacing:.1em; color:var(--orange); margin-bottom:4px; }
.related-title { font-weight:700; font-size:.86rem; color:var(--navy); }
.related-sub { font-size:.74rem; color:var(--gray); margin-top:2px; }

/* Sticky CTA */
.sticky-cta { position:fixed; bottom:0; left:0; right:0; background:var(--navy); border-top:2px solid rgba(255,255,255,.1); padding:13px 24px; z-index:800; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.sticky-text { color:rgba(255,255,255,.8); font-size:.82rem; }
.sticky-text strong { color:#fff; }

/* Footer */
footer { background:#0F1F3D; padding:32px 0; margin-top:80px; }
.footer-in { max-width:960px; margin:0 auto; padding:0 24px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; }
footer img.logo { height:38px; filter:brightness(0) invert(1); opacity:.7; }
.footer-links { display:flex; gap:18px; flex-wrap:wrap; }
.footer-links a { font-size:.78rem; color:rgba(255,255,255,.42); transition:color .15s; }
.footer-links a:hover { color:var(--orange); }
.footer-copy { font-size:.72rem; color:rgba(255,255,255,.28); }

@media(max-width:640px){
  .author { flex-direction:column; }
  .sticky-cta { flex-direction:column; text-align:center; }
  .footer-in { flex-direction:column; align-items:flex-start; }
}
