/* ==========================================================================
   ANAPAB — Feuille de style principale
   ========================================================================== */

:root{
  --dark:#0b1220;
  --dark-2:#121b30;
  --navy:#16223d;
  --gold:#cda349;
  --gold-light:#e8c877;
  --red:#a92b2f;
  --green:#0f7a4a;
  --cream:#faf7f0;
  --paper:#fffdf9;
  --text:#232323;
  --muted:#6b6b6b;
  --line:#e8e2d4;
  --shadow: 0 20px 50px -20px rgba(11,18,32,0.35);
  --shadow-sm: 0 8px 24px -12px rgba(11,18,32,0.25);
  --radius: 16px;
  --maxw: 1180px;
  --ff-head: 'Playfair Display', Georgia, serif;
  --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--ff-body);
  color:var(--text);
  background:var(--cream);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--ff-head); font-weight:700; line-height:1.15; margin:0 0 .6em; color:var(--dark); }
p{ margin:0 0 1em; }
.container{ max-width:var(--maxw); margin:0 auto; padding:0 28px; }
section{ padding:96px 0; }
.section-tight{ padding:64px 0; }

/* ---------- Utility ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-size:.75rem; letter-spacing:.22em; text-transform:uppercase;
  color:var(--red); font-weight:700; margin-bottom:16px;
}
.eyebrow::before{ content:""; width:28px; height:2px; background:var(--gold); display:inline-block; }
.center{ text-align:center; }
.mx-auto{ margin-left:auto; margin-right:auto; }
.lead{ font-size:1.15rem; color:var(--muted); max-width:680px; }
.grid{ display:grid; gap:32px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.tag{
  display:inline-block; padding:6px 14px; border-radius:999px;
  background:rgba(205,163,73,.14); color:#8a6a1f; font-size:.78rem; font-weight:600;
  letter-spacing:.03em; margin-bottom:10px;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:15px 32px; border-radius:999px; font-weight:600; font-size:.95rem;
  border:1px solid transparent; cursor:pointer; transition:.25s ease; white-space:nowrap;
}
.btn-primary{ background:var(--gold); color:var(--dark); box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--gold-light); transform:translateY(-2px); }
.btn-outline{ border-color:rgba(255,255,255,.35); color:#fff; }
.btn-outline:hover{ background:rgba(255,255,255,.1); transform:translateY(-2px); }
.btn-dark{ background:var(--dark); color:#fff; }
.btn-dark:hover{ background:var(--navy); transform:translateY(-2px); }
.btn-block{ width:100%; justify-content:center; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:1000;
  background:rgba(11,18,32,.92); backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nav{ display:flex; align-items:center; justify-content:space-between; padding:16px 0; flex-wrap:nowrap; gap:8px; }
.brand{ display:flex; align-items:center; gap:12px; color:#fff; flex-shrink:0; padding-right:20px; border-right:1px solid rgba(255,255,255,.1); }
.brand-badge{
  width:46px; height:46px; border-radius:50%; object-fit:cover;
  flex-shrink:0; box-shadow:0 4px 14px rgba(205,163,73,.4);
}
.brand-text .name{ font-family:var(--ff-head); font-weight:700; font-size:1.05rem; line-height:1.1; }
.brand-text .sub{ font-size:.68rem; letter-spacing:.08em; text-transform:uppercase; color:var(--gold-light); }

.nav-links{ display:flex; gap:2px; align-items:center; flex-wrap:nowrap; }
.nav-links a{
  color:rgba(255,255,255,.82); font-size:.85rem; font-weight:500; padding:8px 10px; border-radius:8px;
  transition:.2s; white-space:nowrap;
}
.nav-links a:hover, .nav-links a.active{ color:#fff; }
.nav-cta{ display:flex; align-items:center; gap:10px; flex-shrink:0; padding-left:20px; border-left:1px solid rgba(255,255,255,.1); }
.burger{ display:none; background:none; border:none; color:#fff; font-size:1.5rem; cursor:pointer; padding:6px; line-height:1; flex-shrink:0; }

/* Scroll lock when mobile menu is open */
body.menu-open{ overflow:hidden; }

@media (max-width: 960px){
  .hero-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
  .hero-stats .stat { padding:14px 10px; min-width:0; }
  .hero-stats .stat b { font-size:1.8rem; }
  .hero-stats .stat span { font-size:.7rem; }

  .nav-links { display:none; flex-direction:column; width:100%; background:var(--dark); position:absolute; top:100%; left:0; }
  .nav-links.open { display:flex; }
  .nav-links a { width:100%; padding:16px 24px; border-bottom:1px solid rgba(255,255,255,.08); }
  .nav-links a:not(.btn):hover, .nav-links a:not(.btn).active{ color:#fff; }
  .burger{ display:block; z-index:1001; position:relative; background:none; border:none; color:#fff; font-size:1.8rem; cursor:pointer; padding:4px; line-height:1; }
  .nav-cta .btn-primary{ display:none; }
  .nav-cta { border-left: none; padding-left: 0; }
  .brand { border-right: none; padding-right: 0; }
}
@media (min-width: 961px){
  .mobile-cta { display:none !important; }
}

/* Intermediate breakpoint: compress nav-link padding to stay on one line */
@media (min-width: 961px) and (max-width: 1180px){
  .nav-links a{ font-size:.78rem; padding:7px 7px; }
  .nav-links{ gap:0; }
  .brand-text .name{ font-size:.95rem; }
  .brand-text .sub{ font-size:.62rem; }
  .nav-cta{ gap:6px; }
  .nav-cta .btn{ padding:10px 16px; font-size:.78rem; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative; color:#fff; overflow:hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(205,163,73,.25), transparent 60%),
    radial-gradient(800px 400px at 5% 110%, rgba(169,43,47,.25), transparent 60%),
    linear-gradient(160deg, var(--dark) 0%, var(--navy) 60%, #1c2947 100%);
  padding:140px 0 120px;
}
.hero::after{
  content:""; position:absolute; inset:0; opacity:.06; pointer-events:none;
  background-image:
    repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 40px);
}
.hero-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:60px; align-items:center; position:relative; z-index:2; }
.hero h1{ color:#fff; font-size:clamp(2.2rem, 4.2vw, 3.4rem); margin-bottom:.4em; }
.hero h1 em{ font-style:normal; color:var(--gold-light); }
.hero p.lead{ color:rgba(255,255,255,.78); }
.hero-cta{ display:flex; gap:16px; margin-top:36px; flex-wrap:wrap; }
.hero-stats{ display:flex; gap:16px; margin-top:56px; flex-wrap:wrap; align-items:stretch; }
.hero-stats .stat b{ display:block; font-family:var(--ff-head); font-size:2rem; color:var(--gold-light); line-height:1.1; margin-bottom:4px; }
.hero-stats .stat span{ font-size:.85rem; color:rgba(255,255,255,.75); letter-spacing:.02em; line-height:1.3; display:block; }

.hero-visual{
  position:relative; aspect-ratio:1/1; border-radius:50%;
  background:linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center;
}
.hero-visual .ring{
  position:absolute; inset:14px; border-radius:50%; border:1px dashed rgba(205,163,73,.5);
}
.hero-visual .emblem{
  width:60%; aspect-ratio:1/1; border-radius:50%; background:radial-gradient(circle at 35% 30%, #223056, var(--dark));
  display:flex; align-items:center; justify-content:center; box-shadow:0 30px 60px -20px rgba(0,0,0,.6);
  border:2px solid var(--gold);
}
.hero-visual .emblem span{
  font-family:var(--ff-head); color:var(--gold-light); font-size:1.6rem; text-align:center; letter-spacing:.06em;
}

/* ---------- Cards ---------- */
.card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  padding:34px; box-shadow:var(--shadow-sm); transition:.25s ease;
}
.card:hover{ transform:translateY(-6px); box-shadow:var(--shadow); }
.card .icon{
  width:52px; height:52px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(145deg, rgba(205,163,73,.18), rgba(169,43,47,.1)); font-size:1.4rem; margin-bottom:18px;
}
.card h3{ font-size:1.15rem; }
.card p{ color:var(--muted); font-size:.95rem; margin-bottom:0; }

/* ---------- Section variants ---------- */
.section-dark{ background:var(--dark); color:#fff; }
.section-dark h2{ color:#fff; }
.section-dark .lead{ color:rgba(255,255,255,.7); }
.section-alt{ background:var(--paper); }

.split{ display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:center; }
.split img, .split .image-frame{ border-radius:var(--radius); box-shadow:var(--shadow); }
.image-frame{
  aspect-ratio:4/3; background:linear-gradient(145deg, var(--navy), var(--dark));
  display:flex; align-items:center; justify-content:center; color:var(--gold-light); position:relative; overflow:hidden;
}
.image-frame::before{
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at 30% 20%, rgba(205,163,73,.25), transparent 55%);
}
.image-frame span{ font-family:var(--ff-head); font-size:1.1rem; letter-spacing:.05em; z-index:1; text-align:center; padding:0 30px;}

/* ---------- Timeline ---------- */
.timeline{ position:relative; padding-left:34px; }
.timeline::before{ content:""; position:absolute; left:9px; top:6px; bottom:6px; width:2px; background:var(--line); }
.timeline-item{ position:relative; padding-bottom:36px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item::before{
  content:""; position:absolute; left:-34px; top:2px; width:20px; height:20px; border-radius:50%;
  background:var(--paper); border:3px solid var(--gold);
}
.timeline-item h4{ margin-bottom:4px; font-size:1.05rem; }
.timeline-item p{ color:var(--muted); margin:0; font-size:.93rem; }

/* ---------- Bureau cards ---------- */
.bureau-card{
  text-align:center; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  padding:34px 22px; box-shadow:var(--shadow-sm); transition:.25s;
}
.bureau-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow); }
.bureau-avatar{
  width:88px; height:88px; border-radius:50%; margin:0 auto 18px; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(145deg,var(--gold),#8a6a1f); color:var(--dark); font-family:var(--ff-head); font-weight:700; font-size:1.4rem;
  box-shadow:0 8px 20px -6px rgba(205,163,73,.5);
}
.bureau-card .role{ color:var(--red); font-weight:700; font-size:.8rem; text-transform:uppercase; letter-spacing:.05em; margin-bottom:6px; }
.bureau-card p{ color:var(--muted); font-size:.9rem; margin-bottom:0; }

/* ---------- Pricing / cotisation table ---------- */
.table-wrap{ overflow-x:auto; border-radius:var(--radius); box-shadow:var(--shadow-sm); }
table{ width:100%; border-collapse:collapse; background:var(--paper); }
th,td{ padding:18px 22px; text-align:left; border-bottom:1px solid var(--line); font-size:.95rem; }
th{ background:var(--dark); color:#fff; font-family:var(--ff-head); font-weight:700; }
tr:last-child td{ border-bottom:none; }
tr:hover td{ background:rgba(205,163,73,.06); }

/* ---------- Membership types ---------- */
.member-type{
  border:1px solid var(--line); border-radius:var(--radius); padding:36px 30px; background:var(--paper);
  box-shadow:var(--shadow-sm); position:relative; transition:.25s;
}
.member-type.featured{ border-color:var(--gold); box-shadow:var(--shadow); }
.member-type.featured::before{
  content:"Recommandé"; position:absolute; top:-13px; right:24px; background:var(--gold); color:var(--dark);
  font-size:.7rem; font-weight:700; padding:5px 14px; border-radius:999px; letter-spacing:.04em; text-transform:uppercase;
}
.member-type h3{ font-size:1.3rem; }
.member-type .price{ font-family:var(--ff-head); font-size:2.1rem; color:var(--dark); margin:14px 0; }
.member-type .price span{ font-size:.9rem; color:var(--muted); font-family:var(--ff-body); }
.member-type ul{ margin:22px 0; }
.member-type ul li{ padding:8px 0; border-top:1px solid var(--line); font-size:.92rem; color:var(--muted); display:flex; gap:10px; }
.member-type ul li::before{ content:"✓"; color:var(--green); font-weight:700; }

/* ---------- Quote / testimonial ---------- */
.quote-block{
  border-left:4px solid var(--gold); padding:10px 0 10px 30px; font-family:var(--ff-head); font-size:1.3rem;
  color:var(--dark); font-style:italic; margin:0;
}

/* ---------- CTA banner ---------- */
.cta-banner{
  background:linear-gradient(135deg, var(--red), #7a1d20);
  color:#fff; border-radius:24px; padding:64px; text-align:center; position:relative; overflow:hidden;
}
.cta-banner::before{
  content:""; position:absolute; inset:0; opacity:.15;
  background:radial-gradient(600px 300px at 80% 0%, #fff, transparent 60%);
}
.cta-banner h2{ color:#fff; position:relative; z-index:1; }
.cta-banner p{ color:rgba(255,255,255,.85); position:relative; z-index:1; }
.cta-banner .hero-cta{ justify-content:center; position:relative; z-index:1; }

/* ---------- Forms ---------- */
.form-card{ background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:40px; box-shadow:var(--shadow-sm); }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.field{ margin-bottom:20px; }
.field label{ display:block; font-size:.85rem; font-weight:600; margin-bottom:8px; color:var(--dark); }
.field input, .field select, .field textarea{
  width:100%; padding:13px 16px; border:1px solid var(--line); border-radius:10px; font-family:var(--ff-body);
  font-size:.95rem; background:#fff; transition:.2s;
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color:var(--gold); box-shadow:0 0 0 3px rgba(205,163,73,.2); }
.field textarea{ resize:vertical; min-height:120px; }
.form-note{ font-size:.82rem; color:var(--muted); margin-top:14px; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--dark); color:rgba(255,255,255,.75); padding-top:80px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:50px; padding-bottom:50px; border-bottom:1px solid rgba(255,255,255,.1); }
.footer-brand .brand{ margin-bottom:16px; }
.footer-brand p{ color:rgba(255,255,255,.6); font-size:.9rem; max-width:320px; }
.footer-col h4{ color:#fff; font-size:.95rem; margin-bottom:18px; font-family:var(--ff-body); font-weight:700; letter-spacing:.02em; }
.footer-col ul li{ margin-bottom:12px; }
.footer-col ul li a{ color:rgba(255,255,255,.65); font-size:.9rem; transition:.2s; }
.footer-col ul li a:hover{ color:var(--gold-light); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding:26px 0; font-size:.82rem; color:rgba(255,255,255,.5); flex-wrap:wrap; gap:12px;}
.social-row{ display:flex; gap:12px; }
.social-row a{
  width:38px; height:38px; border-radius:50%; border:1px solid rgba(255,255,255,.2); display:flex; align-items:center;
  justify-content:center; transition:.2s;
}
.social-row a:hover{ background:var(--gold); color:var(--dark); border-color:var(--gold); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero{
  background:linear-gradient(160deg, var(--dark), var(--navy));
  color:#fff; padding:90px 0 70px; position:relative; overflow:hidden;
}
.page-hero::after{
  content:""; position:absolute; inset:0; opacity:.08;
  background-image:repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 40px);
}
.page-hero h1{ color:#fff; position:relative; z-index:1; font-size:clamp(1.9rem,3.6vw,2.8rem); }
.page-hero .breadcrumb{ position:relative; z-index:1; font-size:.85rem; color:var(--gold-light); margin-bottom:16px; letter-spacing:.03em; }
.page-hero p{ position:relative; z-index:1; color:rgba(255,255,255,.75); max-width:640px; }

/* ---------- News cards ---------- */
.news-card{ background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); transition:.25s; }
.news-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow); }
.news-thumb{ aspect-ratio:16/10; background:linear-gradient(145deg,var(--navy),var(--dark)); display:flex; align-items:center; justify-content:center; color:var(--gold-light); font-family:var(--ff-head); }
.news-body{ padding:26px; }
.news-thumb img{ width:100%; height:100%; object-fit:cover; }
.news-date{ font-size:.75rem; text-transform:uppercase; letter-spacing:.06em; color:var(--red); font-weight:700; margin-bottom:8px; }
.news-body h3{ font-size:1.1rem; }
.news-body p{ color:var(--muted); font-size:.9rem; }
.news-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.btn-sm{ padding:9px 18px; font-size:.8rem; gap:6px; }
/* .btn-outline par defaut est pense pour un fond sombre (hero) : illisible sur le fond clair
   d'une news-card (blanc sur blanc). Variante propre au contexte, jamais une redefinition
   globale de .btn-outline qui casserait son usage existant ailleurs sur le site. */
.news-actions .btn-outline{ border-color:var(--line); color:var(--dark); }
.news-actions .btn-outline:hover{ background:var(--cream); border-color:var(--dark); }

/* ---------- Map / contact ---------- */
.contact-info-item{ display:flex; gap:16px; align-items:flex-start; margin-bottom:26px; }
.contact-info-item .ico{
  width:46px; height:46px; border-radius:12px; background:rgba(205,163,73,.15); color:#8a6a1f;
  display:flex; align-items:center; justify-content:center; font-size:1.2rem; flex-shrink:0;
}
.contact-info-item h4{ font-size:1rem; margin-bottom:4px; }
.contact-info-item p{ color:var(--muted); font-size:.92rem; margin-bottom:0; }
.map-frame{
  aspect-ratio:16/9; border-radius:var(--radius); background:linear-gradient(145deg,var(--navy),var(--dark));
  display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,.6); font-size:.9rem;
}

/* ---------- Objectives list ---------- */
.obj-list{ display:grid; gap:18px; }
.obj-item{ display:flex; gap:20px; align-items:flex-start; background:var(--paper); border:1px solid var(--line); border-radius:14px; padding:24px 26px; box-shadow:var(--shadow-sm); }
.obj-item .num{ font-family:var(--ff-head); font-size:1.6rem; color:var(--gold); font-weight:700; flex-shrink:0; }
.obj-item p{ margin:0; color:var(--text); }

/* ---------- Back to top ---------- */
.to-top{
  position:fixed; right:24px; bottom:24px; width:48px; height:48px; border-radius:50%; background:var(--gold);
  color:var(--dark); display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-sm);
  opacity:0; pointer-events:none; transition:.3s; z-index:900; border:none; cursor:pointer; font-size:1.1rem;
}
.to-top.show{ opacity:1; pointer-events:auto; }

/* ---------- Reveal animation ---------- */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px){
  .hero-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
  .hero-stats .stat { padding:14px 10px; min-width:0; }
  .hero-stats .stat b { font-size:1.8rem; }
  .hero-stats .stat span { font-size:.7rem; }

  .hero-grid{ grid-template-columns:1fr; }
  .hero-visual{ max-width:340px; margin:0 auto; }
  .split{ grid-template-columns:1fr; gap:40px; }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .grid-2{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .form-row{ grid-template-columns:1fr; }
  .cta-banner{ padding:44px 26px; }
}
@media (max-width: 600px){
  section{ padding:64px 0; }
  .grid-4, .grid-3{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .hero{ padding:120px 0 80px; }
}

/* Fixes for images */
.news-thumb img, .image-frame img, .map-frame img { width:100%; height:100%; object-fit:cover; }
.hero-visual .emblem img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.bureau-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }

.hero-stats .stat{ background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); border-radius:12px; padding:20px; flex:1; min-width:140px; text-align:center; transition:transform .3s ease, background .3s ease; }
.hero-stats .stat:hover{ transform:translateY(-4px); background:rgba(255,255,255,.08); }


@media (max-width: 480px) {
  .hero-stats { grid-template-columns:1fr; }
  .hero-stats .stat { padding:18px; }
  .hero-stats .stat b { font-size:2rem; }
  .hero-stats .stat span { font-size:.85rem; }
}


/* Premium Animations */
/* Buttons */
.btn { position:relative; overflow:hidden; transition:transform .3s cubic-bezier(.25,.8,.25,1), box-shadow .3s cubic-bezier(.25,.8,.25,1), background .3s, border-color .3s, color .3s; }
.btn::before { content:""; position:absolute; top:0; left:-100%; width:50%; height:100%; background:linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent); transform:skewX(-20deg); transition:0s; }
.btn:hover::before { left:200%; transition:.7s ease; }
.btn:hover { transform:translateY(-3px); box-shadow:0 8px 20px -8px rgba(0,0,0,0.4); }
.btn:active { transform:scale(0.97); transition:transform .15s; box-shadow:none; }

/* Cards */
.card, .bureau-card, .news-card, .member-type { transition:transform .4s cubic-bezier(.25,.8,.25,1), box-shadow .4s cubic-bezier(.25,.8,.25,1); }
.card .icon { transition:transform .4s cubic-bezier(.25,.8,.25,1); }
.card:hover .icon { transform:scale(1.1); }

/* Nav Links Underline */
.nav-links a { position:relative; background:transparent !important; overflow:hidden; }
.nav-links a::after { content:""; position:absolute; bottom:2px; left:50%; width:0; height:2px; background:var(--gold-light); transition:width .3s ease, left .3s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width:80%; left:10%; }
@media (max-width:960px){
  .nav-links a::after { bottom:8px; }
}

/* To-top bounce */
@keyframes bounceToTop { 0%, 100% { transform:translateY(0); } 50% { transform:translateY(-6px); } }
.to-top.show { animation:bounceToTop 2s infinite ease-in-out; opacity:1; pointer-events:auto; }
.to-top:hover { transform:scale(1.15) rotate(360deg) !important; transition:transform .4s ease; animation:none; }

/* Images Zoom */
.news-thumb, .image-frame, .bureau-avatar, .map-frame { overflow:hidden; }
.news-thumb img, .image-frame img, .bureau-avatar img, .map-frame img { transition:transform .4s cubic-bezier(.25,.8,.25,1); }
.news-card:hover .news-thumb img, .image-frame:hover img, .bureau-card:hover .bureau-avatar img, .bureau-avatar:hover img, .map-frame:hover img { transform:scale(1.06); }

/* Form Success Pulse */
@keyframes pulseSuccess { 0% { transform:scale(0.98); box-shadow:0 0 0 0 rgba(15,122,74,0.4); } 70% { transform:scale(1); box-shadow:0 0 0 10px rgba(15,122,74,0); } 100% { transform:scale(1); box-shadow:0 0 0 0 rgba(15,122,74,0); } }
.form-success { animation:pulseSuccess .6s cubic-bezier(.25,.8,.25,1) forwards; }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}


/* Logo Animations */
@keyframes slowRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes slowRotateReverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes glowPulse { 0%,100% { box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); } 50% { box-shadow: 0 30px 70px -15px rgba(205,163,73,.5); } }

.hero-visual .emblem { animation: slowRotate 25s linear infinite, glowPulse 4s ease-in-out infinite alternate; transition: transform 0.3s ease; }
.hero-visual .emblem:hover { transform: scale(1.05); animation: slowRotate 15s linear infinite, glowPulse 2s ease-in-out infinite alternate; }
.hero-visual .ring { animation: slowRotateReverse 40s linear infinite; }

/* Advanced Reveals */
.reveal, .reveal-fade, .reveal-up, .reveal-left, .reveal-right, .reveal-scale, .reveal-stagger-child {
  opacity: 0; transition: opacity 0.7s cubic-bezier(.25,.8,.25,1), transform 0.7s cubic-bezier(.25,.8,.25,1);
}

.reveal-up { transform: translateY(30px); }
.reveal-fade { transform: none; }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.9); }
.reveal-stagger-child { transform: translateY(30px); }

.reveal.in, .reveal-fade.in, .reveal-up.in, .reveal-left.in, .reveal-right.in, .reveal-scale.in, .reveal-stagger-child.in {
  opacity: 1; transform: translate(0) scale(1);
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  .hero-visual .emblem, .hero-visual .ring { animation: none !important; }
  .reveal, .reveal-fade, .reveal-up, .reveal-left, .reveal-right, .reveal-scale, .reveal-stagger-child {
    transition-duration: 0.4s; transform: none !important; opacity: 0;
  }
  .reveal.in, .reveal-fade.in, .reveal-up.in, .reveal-left.in, .reveal-right.in, .reveal-scale.in, .reveal-stagger-child.in {
    opacity: 1; transform: none !important;
  }
}

/* ---------- Language Toggle ---------- */
.lang-toggle {
  display: flex; align-items: center; gap: 2px;
  background: rgba(255,255,255,.08); border-radius: 999px;
  padding: 4px 6px; flex-shrink: 0;
}
.lang-btn {
  background: transparent; border: none; cursor: pointer;
  font-family: var(--ff-body); font-size: .78rem; font-weight: 700;
  color: rgba(255,255,255,.5); padding: 4px 8px; border-radius: 999px;
  letter-spacing: .08em; transition: background .2s, color .2s;
  line-height: 1;
}
.lang-btn.active {
  background: rgba(205,163,73,.25); color: var(--gold-light);
}
.lang-btn:hover:not(.active) { color: rgba(255,255,255,.9); }

/* Compact on mobile */
@media (max-width: 960px) {
  .lang-toggle { padding: 3px 5px; }
  .lang-btn { font-size: .72rem; padding: 3px 7px; }
}

/* Nom du titulaire d'un poste du Bureau (page /bureau, donnee lue en base au Jour 11).
   La maquette n'affichait aucun nom : ce style reprend les variables existantes et
   n'introduit ni couleur ni graisse nouvelles. */
.bureau-card .titulaire{
  font-family:var(--ff-head); font-size:.95rem; color:var(--dark);
  margin:2px 0 10px;
}
