:root {
  /* CNSS official palette : bleu marine + or */
  --primary: #1450A0;
  --primary-dark: #0E3A84;
  --primary-darker: #142864;
  --primary-black: #0A1A42;
  --accent: #29ABE2;
  --accent-dark: #1A8CC0;
  --accent-light: #A8DEFF;
  --accent-text: #ffffff;
  --red: #D42020;

  --bg: #ffffff;
  --bg-alt: #F0F4FC;
  --bg-tint: #E6EDF8;

  --ink: #0A1A42;
  --ink-2: #1E2F60;
  --ink-3: #4A5880;
  --muted: #7A88AA;
  --line: #D8E2F4;
  --line-2: #C4D0E8;

  --shadow-sm: 0 1px 2px rgba(10,26,66,.06);
  --shadow-md: 0 6px 20px rgba(10,26,66,.1);
  --shadow-lg: 0 20px 50px rgba(10,26,66,.14);
  --shadow-xl: 0 30px 70px rgba(10,26,66,.18);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --step-1: 4px;
  --step-2: 8px;
  --step-3: 12px;
  --step-4: 16px;
  --step-5: 24px;
  --step-6: 32px;
  --step-7: 48px;
  --step-8: 64px;
  --step-9: 96px;

  --container: 1240px;
  --nav-h: 88px;
  --topbar-h: 42px;

  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-serif: var(--font-display);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 800;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { color: var(--ink-2); }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.muted { color: var(--ink-3); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff;
  padding: 12px 16px; border-radius: 0 0 8px 0;
  font-weight: 700; z-index: 999;
}
.skip-link:focus { left: 0; }

.ic, .ic-xs {
  width: 20px; height: 20px; display: inline-block; vertical-align: middle;
  fill: currentColor;
}
.ic-xs { width: 14px; height: 14px; }

/* ============ TOPBAR ============ */
.topbar {
  background: var(--primary-black);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  height: var(--topbar-h);
  display: flex; align-items: center;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--step-3);
}
.topbar-left, .topbar-right {
  display: flex; align-items: center; gap: var(--step-5);
  flex-shrink: 0;
}
.topbar-item {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
}
.topbar-item b { color: #fff; font-weight: 600; white-space: nowrap; }
.topbar-item .ic-xs { color: var(--accent); flex-shrink: 0; }
.topbar-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  color: rgba(255,255,255,.75);
  transition: color .2s, background .2s;
}
.topbar-social svg { width: 14px; height: 14px; }
.topbar-social:hover { color: var(--accent); }

@media (max-width: 720px) {
  .topbar-hide-sm { display: none; }
  .topbar { font-size: .72rem; }
  .topbar-left, .topbar-right { gap: var(--step-2); }
  .topbar-inner { gap: var(--step-2); }
}

/* ============ NAVBAR ============ */
.navbar {
  background: #fff;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.navbar.scrolled {  }
.nav-inner {
  display: flex; align-items: center; gap: var(--step-5);
  height: var(--nav-h);
  position: relative;
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink); font-family: var(--font-display);
  flex-shrink: 0;
}
.brand-mark {
  width: 44px; height: 44px; object-fit: contain;
  border-radius: 8px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--primary-darker); }
.brand-text small { font-size: .68rem; color: var(--muted); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }

.nav-links {
  display: flex; align-items: center; gap: var(--step-1);
  margin-left: var(--step-5);
}
.nav-links > a,
.nav-dropbtn {
  padding: 10px 14px;
  color: var(--ink-2);
  font-weight: 600; font-size: .93rem;
  border-radius: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  position: relative;
  transition: color .2s;
}
.nav-links > a:hover,
.nav-dropbtn:hover,
.nav-links > a.active,
.nav-dropdown.open .nav-dropbtn { color: var(--primary); }
.nav-links > a.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 3px; background: var(--accent); border-radius: 2px;
}

.nav-dropdown { position: relative; }
.nav-dropmenu {
  position: absolute; top: 100%; left: 0;
  min-width: 260px; background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow-lg);
  padding: 8px; margin-top: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s;
  z-index: 10;
}
.nav-dropdown:hover .nav-dropmenu,
.nav-dropdown.open .nav-dropmenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropmenu a {
  display: block; padding: 10px 14px;
  color: var(--ink-2); font-size: .9rem; font-weight: 500;
  border-radius: 6px;
}
.nav-dropmenu a:hover { background: var(--bg-tint); color: var(--primary); }

.nav-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 0;
  height: 100%;
}
.nav-call {
  display: flex; align-items: center; gap: 12px;
  padding: 0 var(--step-5);
  height: 100%;
  border-left: 1px solid var(--line);
}
.nav-call-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg-tint);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.nav-call-icon svg { width: 18px; height: 18px; }
.nav-call-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-call-text small { font-size: .7rem; color: var(--muted); font-weight: 500; }
.nav-call-text b { font-size: .95rem; color: var(--ink); font-weight: 700; }

.btn-cta {
  background: var(--primary-darker);
  color: #fff;
  padding: 0 28px;
  height: 100%;
  display: inline-flex; align-items: center;
  font-weight: 700; font-size: .92rem;
  letter-spacing: .02em;
  position: relative;
  isolation: isolate;
  transition: background .2s;
}
.btn-cta::before {
  content: ''; position: absolute; top: 0; left: -22px;
  width: 44px; height: 100%;
  background: var(--primary-darker);
  transform: skewX(-18deg);
  z-index: -1;
}
.btn-cta::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 8px; height: 100%;
  background: var(--accent);
  z-index: -1;
}
.btn-cta:hover { background: var(--primary-black); color: #fff; }
.btn-cta:hover::before { background: var(--primary-black); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; margin-left: auto;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--ink);
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-call { display: none; }
}
@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: var(--step-4);
    margin-left: 0;
    display: none;
    max-height: calc(100vh - var(--nav-h) - var(--topbar-h));
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > a, .nav-dropbtn { padding: 12px 16px; width: 100%; justify-content: space-between; }
  .nav-dropdown { width: 100%; }
  .nav-dropmenu {
    position: static; box-shadow: none; border: 0;
    opacity: 1; visibility: visible; transform: none;
    display: none; margin-top: 0; padding-left: 16px;
  }
  .nav-dropdown.open .nav-dropmenu { display: block; }
  .btn-cta { display: none; }
  .nav-right { gap: 0; }
  .nav-70ans { display: none !important; }
  .nav-celebration { display: block; }
}
@media (max-width: 480px) {
  .nav-celebration { font-size: .9rem; }
}
@media (min-width: 981px) {
  .nav-celebration { display: none; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-weight: 700; font-size: .95rem;
  border-radius: 8px;
  transition: transform .15s, background .2s, color .2s, box-shadow .2s;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1;
}
.btn:hover { }

.btn-lg { padding: 17px 32px; font-size: 1rem; }
.btn-sm { padding: 10px 18px; font-size: .85rem; }

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-accent {
  background: var(--accent);
  color: var(--accent-text);
}
.btn-accent:hover { background: var(--accent-dark); color: var(--accent-text); }

.btn-dark {
  background: var(--primary-darker);
  color: #fff;
}
.btn-dark:hover { background: var(--primary-black); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--primary-darker);
  border-color: var(--line-2);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-white {
  background: #fff; color: var(--primary-darker);
}
.btn-white:hover { background: var(--bg-tint); color: var(--primary-darker); }

/* Hero CTA button with yellow chip (Logisco-style) */
.btn-hero {
  background: var(--accent);
  color: var(--accent-text);
  padding: 10px 10px 10px 24px;
  border-radius: 999px;
  font-weight: 700; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 16px;
}
.btn-hero-check {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary-darker);
}
.btn-hero-check svg { width: 16px; height: 16px; }
.btn-hero:hover { background: var(--accent-dark); color: var(--accent-text); transform: translateY(-1px); }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: var(--bg-alt);
  overflow: hidden;
  padding: var(--step-8) 0 var(--step-9);
}
.hero::before {
  content: ''; position: absolute; top: 0; right: -10%;
  width: 60%; height: 100%;
  background: radial-gradient(circle at 60% 40%, rgba(20,80,160,.06), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--step-8);
  align-items: center;
}
.hero-content { max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem; font-weight: 600;
  color: var(--primary-darker);
  margin-bottom: var(--step-5);
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  color: var(--primary-darker);
  margin-bottom: var(--step-5);
}
.hero h1 .accent {
  background: linear-gradient(to bottom, transparent 60%, var(--accent) 60%);
  padding: 0 6px;
}
.hero-lede {
  font-size: 1.08rem; color: var(--ink-3);
  margin-bottom: var(--step-6);
  max-width: 480px;
}
.hero-actions {
  display: flex; align-items: center; gap: var(--step-4);
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 560px; margin-left: auto;
}
.hero-img-main {
  position: absolute; top: 0; right: 0;
  width: 78%; height: 78%;
  border-radius: 24px 200px 24px 24px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.hero-img-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-sub {
  position: absolute; bottom: 0; left: 0;
  width: 46%; height: 46%;
  border-radius: 200px 24px 24px 24px;
  overflow: hidden;
  border: 8px solid var(--bg-alt);
  box-shadow: var(--shadow-lg);
}
.hero-img-sub img { width: 100%; height: 100%; object-fit: cover; }
.hero-seal {
  display: none; /* kept for backward compat, not used */
}
.hero-logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%; height: 100%;
  min-height: 340px;
}
.hero-logo-frame::before {
  content: '';
  position: absolute;
  width: 70%; height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41,171,226,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-logo-gold {
  width: 90%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,.13));
  position: relative;
  z-index: 1;
  animation: floatLogo 5s ease-in-out infinite;
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo-gold { animation: none; }
}

@media (max-width: 900px) {
  .hero { padding: var(--step-7) 0 var(--step-8); }
  .hero-inner { grid-template-columns: 1fr; gap: var(--step-7); }
  .hero-visual { max-width: 480px; margin-inline: auto; }
  .hero-content { max-width: 100%; }
}

/* ============ PARTNERS STRIP ============ */
.partners-strip {
  padding: var(--step-6) 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.partners-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--step-6); flex-wrap: wrap;
}
.partner-item {
  color: var(--muted);
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.1rem; letter-spacing: .02em;
  opacity: .7;
  transition: opacity .2s, color .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.partner-item:hover { opacity: 1; color: var(--primary-darker); }

/* ============ SECTIONS ============ */
.section {
  padding: var(--step-8) 0;
  position: relative;
}
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--primary-darker);
  color: rgba(255,255,255,.9);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.75); }

.section-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(41,171,226,.18);
  color: var(--primary-darker);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: var(--step-4);
}
.section-dark .section-eyebrow {
  background: rgba(41,171,226,.15);
  color: var(--accent);
}
.section-header {
  text-align: center;
  max-width: 720px; margin: 0 auto var(--step-7);
}
.section-header.left { text-align: left; margin-inline: 0; }
.section-header h2 { color: var(--primary-darker); margin-bottom: var(--step-4); }
.section-dark .section-header h2 { color: #fff; }
.section-header p { color: var(--ink-3); font-size: 1.05rem; }

/* ============ ABOUT SPLIT ============ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--step-8);
  align-items: center;
}
.about-content h2 {
  color: var(--primary-darker);
  margin-bottom: var(--step-4);
}
.about-lede {
  color: var(--ink-3);
  margin-bottom: var(--step-5);
}
.feature-list {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  background: var(--bg-alt);
  padding: var(--step-5);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent);
  margin-bottom: var(--step-6);
}
.feature-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: .93rem; font-weight: 600;
  color: var(--ink);
}
.feature-list .fl-icon {
  width: 22px; height: 22px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.feature-list .fl-icon svg { width: 22px; height: 22px; }

.about-cta {
  display: flex; align-items: center; gap: var(--step-5);
  flex-wrap: wrap;
}
.about-phone {
  display: flex; align-items: center; gap: 12px;
}
.about-phone-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-tint);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.about-phone-icon svg { width: 20px; height: 20px; }
.about-phone-text { display: flex; flex-direction: column; }
.about-phone-text small { font-size: .78rem; color: var(--muted); }
.about-phone-text b { font-size: 1rem; color: var(--ink); }

.about-visual {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 520px; margin-inline: auto;
}
.about-img-main {
  width: 100%; height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-stats-card {
  position: absolute; left: -20px; bottom: 40px;
  background: var(--accent);
  color: var(--accent-text);
  padding: var(--step-5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  font-family: var(--font-display);
  display: flex; align-items: center; gap: var(--step-4);
}
.about-stats-card strong {
  font-size: 3rem; font-weight: 900; line-height: 1;
  color: #fff;
}
.about-stats-card span {
  font-size: .82rem; font-weight: 700;
  color: rgba(255,255,255,.9);
  line-height: 1.3;
}
.about-stats-card .divider {
  width: 2px; height: 44px; background: rgba(255,255,255,.3);
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--step-6); }
  .feature-list { grid-template-columns: 1fr; }
}

/* ============ STATS DARK ============ */
.stats-band {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--step-5);
}
.stat-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  padding: var(--step-6);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; gap: var(--step-4);
  transition: background .2s, border-color .2s;
}
.stat-card:hover {
  background: rgba(41,171,226,.06);
  border-color: rgba(41,171,226,.25);
}
.stat-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 12px;
  background: rgba(41,171,226,.15);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.stat-icon svg { width: 26px; height: 26px; }
.stat-value {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 900;
  color: #fff; line-height: 1;
}
.stat-label {
  font-size: .82rem; color: rgba(255,255,255,.7);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .stats-band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats-band { grid-template-columns: 1fr; }
}

/* ============ SERVICE CARDS (image style) ============ */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--step-5);
}
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-tint);
}
.service-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-icon {
  position: absolute; bottom: -22px; right: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.service-card-icon svg { width: 26px; height: 26px; }
.service-card-body {
  padding: var(--step-6) var(--step-5) var(--step-5);
  flex: 1; display: flex; flex-direction: column;
}
.service-card-eyebrow {
  font-size: .72rem; font-weight: 700;
  color: var(--primary);
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 8px;
}
.service-card h3 {
  color: var(--primary-darker);
  margin-bottom: 8px;
  font-size: 1.2rem;
}
.service-card p {
  color: var(--ink-3); font-size: .92rem;
  flex: 1; margin-bottom: var(--step-4);
}
.service-card-link {
  display: inline-flex; align-items: center;
  padding: 10px 20px;
  background: var(--bg-alt);
  color: var(--primary-darker);
  font-weight: 700; font-size: .85rem;
  border-radius: 6px;
  align-self: flex-start;
  transition: background .2s, color .2s;
}
.service-card-link:hover { background: var(--primary-darker); color: #fff; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ============ NEWS CARDS ============ */
.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--step-5);
}
.news-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card-img {
  aspect-ratio: 16/10;
  background: var(--bg-tint);
  overflow: hidden;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: var(--step-5); flex: 1; display: flex; flex-direction: column; }
.news-card-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: .78rem; color: var(--muted);
  margin-bottom: 10px;
}
.news-card-tag {
  padding: 3px 10px;
  background: var(--bg-tint);
  color: var(--primary);
  border-radius: 4px;
  font-weight: 700;
}
.news-card h3 { color: var(--primary-darker); font-size: 1.05rem; margin-bottom: 8px; }
.news-card p { color: var(--ink-3); font-size: .9rem; flex: 1; }
.news-card-link {
  margin-top: var(--step-4);
  color: var(--primary-darker);
  font-weight: 700; font-size: .85rem;
}
.news-card-link:hover { color: var(--primary); }

@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .news-grid { grid-template-columns: 1fr; } }

/* ============ CTA BAND ============ */
.cta-band {
  background:
    linear-gradient(135deg, transparent 50%, rgba(41,171,226,.05) 50%),
    var(--primary-darker);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: var(--step-8) var(--step-7);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--step-5);
  position: relative;
  overflow: hidden;
  border-left: 6px solid var(--accent);
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: linear-gradient(to left, rgba(0,0,0,.6), transparent 60%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,.6), transparent 60%);
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2rem); max-width: 640px; position: relative; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 560px; position: relative; }
.cta-band .btn { position: relative; }
.cta-band-actions { position: relative; z-index: 1; text-align: right; }

@media (max-width: 720px) {
  .cta-band { grid-template-columns: 1fr; padding: var(--step-6) var(--step-5); text-align: center; }
  .cta-band-actions { text-align: center; }
}

/* ============ PAGE HERO ============ */
.page-hero {
  position: relative;
  padding: var(--step-7) 0 var(--step-8);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--primary-darker);
  border-bottom: 4px solid var(--accent);
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: rgba(20,40,100,.78);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero .section-eyebrow {
  background: rgba(41,171,226,.15);
  color: var(--accent);
}
.page-hero h1 { color: #fff; margin-bottom: var(--step-3); max-width: 800px; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 700px; }
.breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: .85rem; color: rgba(255,255,255,.6);
  margin-bottom: var(--step-4);
}
.breadcrumbs a { color: rgba(255,255,255,.75); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: rgba(255,255,255,.4); }

/* ============ CONTENT / FORMS ============ */
.content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--step-6);
}
.content-card + .content-card { margin-top: var(--step-5); }
.content-card h3 { color: var(--primary-darker); margin-bottom: var(--step-3); }
.content-card > p { color: var(--ink-2); }

.grid { display: grid; gap: var(--step-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Simple info card (used on presentation/prestations) */
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--step-5);
  transition: border-color .2s, box-shadow .2s;
}
.info-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.info-card-eyebrow {
  font-size: .72rem; font-weight: 700;
  color: var(--primary); letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 8px;
}
.info-card h3 { color: var(--primary-darker); margin-bottom: 8px; font-size: 1.1rem; }
.info-card p { color: var(--ink-3); font-size: .92rem; }

/* Data table */
.data-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  font-size: .95rem;
}
.data-table th, .data-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.data-table th {
  background: var(--bg-alt);
  color: var(--primary-darker);
  font-weight: 700; font-size: .88rem;
  letter-spacing: .02em;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: var(--bg-alt); }

/* Forms */
.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--step-6);
}
.form-section + .form-section { margin-top: var(--step-6); padding-top: var(--step-5); border-top: 1px solid var(--line); }
.form-section-title {
  font-family: var(--font-display); font-weight: 800;
  color: var(--primary-darker); font-size: 1.05rem;
  margin-bottom: var(--step-4);
  display: flex; align-items: center; gap: 10px;
}
.form-section-title::before {
  content: ''; width: 4px; height: 20px; border-radius: 2px;
  background: var(--accent);
}
.form-row {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--step-4);
}
.form-row.cols-1 { grid-template-columns: 1fr; }
.form-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) {
  .form-row, .form-row.cols-3 { grid-template-columns: 1fr; }
}
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--step-4); }
.form-group label {
  font-size: .85rem; font-weight: 600;
  color: var(--ink-2);
}
.form-group label .req { color: var(--red); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20,80,160,.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group .err {
  color: var(--red); font-size: .82rem;
  display: none;
}
.form-group.invalid .err { display: block; }
.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea { border-color: var(--red); }
.form-actions { margin-top: var(--step-5); display: flex; gap: var(--step-3); flex-wrap: wrap; }

/* ============ AGENCIES ============ */
.agency-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: var(--step-6);
}
.agency-tab {
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--ink-2);
  font-weight: 600; font-size: .9rem;
  border: 1px solid transparent;
}
.agency-tab.active {
  background: var(--primary-darker);
  color: #fff;
}
.agency-tab:hover:not(.active) {
  background: var(--bg-tint);
  border-color: var(--line);
}
.agency-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--step-4);
}
@media (max-width: 900px) { .agency-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .agency-grid { grid-template-columns: 1fr; } }
.agency-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--step-5);
  transition: border-color .2s, box-shadow .2s;
}
.agency-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.agency-card-type {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(41,171,226,.2);
  color: var(--primary-darker);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 10px;
}
.agency-card h3 { color: var(--primary-darker); font-size: 1.05rem; margin-bottom: 6px; }
.agency-card p { color: var(--ink-3); font-size: .88rem; margin-bottom: 4px; }
.agency-card p b { color: var(--ink); }

.map-wrap {
  margin-top: var(--step-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 420px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ============ FOOTER ============ */
.footer {
  background: var(--primary-black);
  color: rgba(255,255,255,.8);
  padding-top: var(--step-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--step-6);
  padding-bottom: var(--step-7);
}
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: rgba(255,255,255,.55); }
.footer-col p { color: rgba(255,255,255,.6); font-size: .92rem; margin-top: var(--step-4); }
.footer-col h4 {
  color: #fff; font-size: .95rem; margin-bottom: var(--step-4);
  letter-spacing: .02em;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,.6); font-size: .92rem;
  transition: color .2s;
}
.footer-col ul a:hover { color: var(--accent); }
.contact-list li { color: rgba(255,255,255,.6); font-size: .92rem; }
.footer-social {
  display: flex; gap: 10px; margin-top: var(--step-4);
}
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.75);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.footer-social a svg { width: 15px; height: 15px; }
.footer-social a:hover { background: var(--accent); color: var(--accent-text); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: var(--step-4) 0;
}
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--step-4); flex-wrap: wrap;
}
.footer-bottom p { color: rgba(255,255,255,.5); font-size: .82rem; }
.partners { display: flex; gap: var(--step-4); }
.partners a {
  color: rgba(255,255,255,.55); font-size: .82rem;
  font-weight: 600; letter-spacing: .02em;
}
.partners a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* ============ UTILITIES ============ */
.scroll-top {
  position: fixed; right: 20px; bottom: 20px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary-darker);
  color: #fff;
  display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 90;
  transition: background .2s, transform .2s;
}
.scroll-top:hover { background: var(--primary-black); transform: translateY(-2px); }
.scroll-top.visible { display: inline-flex; }
.scroll-top svg { width: 20px; height: 20px; }

.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary-darker); color: #fff;
  padding: 14px 22px; border-radius: 8px;
  font-size: .9rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transition: all .3s;
  z-index: 999; max-width: 90vw;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--primary); }
.toast.error { background: var(--red); }

.loading-block {
  display: flex; align-items: center; justify-content: center;
  padding: var(--step-7); grid-column: 1/-1;
}
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--bg-tint);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center; padding: var(--step-7);
  color: var(--muted); grid-column: 1/-1;
}

.view { animation: fadeIn .3s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

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

/* ============ COMPAT / REMAINING COMPONENTS ============ */

/* Icon in info cards (feature grid) */
.info-card .card-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--bg-tint);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--step-3);
}
.info-card .card-icon svg { width: 24px; height: 24px; }

/* About-grid variant used inside presentation/prestations (image on the right) */
.split-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* Dark side box (mission-block) for "besoin d'aide" and similar */
.mission-block {
  background: var(--primary-darker);
  color: rgba(255,255,255,.9);
  border-radius: var(--radius-xl);
  padding: var(--step-6);
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--accent);
}
.mission-block::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom right, transparent 50%, rgba(0,0,0,.5));
  -webkit-mask-image: linear-gradient(to bottom right, transparent 50%, rgba(0,0,0,.5));
}
.mission-block h3 { color: #fff; margin-bottom: var(--step-3); position: relative; }
.mission-block p { color: rgba(255,255,255,.8); position: relative; }
.mission-block ul { list-style: none; padding: 0; position: relative; }
.mission-block ul li {
  padding: 10px 0 10px 24px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.85); font-size: .95rem;
  position: relative;
}
.mission-block ul li::before {
  content: ''; position: absolute; left: 0; top: 18px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
}
.mission-block ul li:last-child { border-bottom: 0; }

/* Alert info box */
.alert {
  display: flex; gap: var(--step-3);
  padding: var(--step-4) var(--step-5);
  border-radius: var(--radius);
  margin-bottom: var(--step-5);
  align-items: flex-start;
  font-size: .93rem;
}
.alert svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; }
.alert-info {
  background: rgba(41,171,226,.14);
  border-left: 4px solid var(--accent);
  color: var(--ink);
}
.alert-info svg { color: var(--accent-dark); }

/* Empty state icon */
.empty-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg-tint);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto var(--step-4);
}
.empty-icon svg { width: 30px; height: 30px; }

/* Footer white logo */
.brand-mark-white {
  filter: brightness(0) invert(1);
  opacity: .95;
}

/* 4-card service grid */
.services-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) {
  .services-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .services-grid-4 { grid-template-columns: 1fr; }
}
.divider-flag {
  display: inline-block;
  width: 80px; height: 6px;
  background: linear-gradient(to right, var(--primary) 33.33%, var(--accent) 33.33% 66.66%, var(--red) 66.66%);
  border-radius: 3px;
  margin-bottom: var(--step-5);
}

/* Document card (documents page) */
.doc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--step-4) var(--step-5);
  display: flex; align-items: center; gap: var(--step-4);
  transition: border-color .2s, box-shadow .2s;
}
.doc-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.doc-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--bg-tint); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.doc-icon svg { width: 22px; height: 22px; }
.doc-body { flex: 1; min-width: 0; }
.doc-body h4 { color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
.doc-meta { font-size: .82rem; color: var(--muted); }
.doc-dl {
  padding: 8px 16px;
  background: var(--primary-darker); color: #fff;
  font-weight: 700; font-size: .82rem;
  border-radius: 6px;
  flex-shrink: 0;
}
.doc-dl:hover { background: var(--primary-black); color: #fff; }

/* Article content (single article page) */
.article-content {
  max-width: 780px; margin: 0 auto;
  font-size: 1.05rem; line-height: 1.75;
  color: var(--ink-2);
}
.article-content p { margin-bottom: var(--step-4); }
.article-content h2, .article-content h3 {
  color: var(--primary-darker);
  margin-top: var(--step-6); margin-bottom: var(--step-3);
}
.article-hero-img {
  width: 100%; max-height: 420px; object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--step-6);
}

/* ============================================================
   CAMPAIGN-STYLE HOME (c-* classes)
   ============================================================ */

.c-serif-h2, .c-heading h2 {
  font-family: var(--font-serif);
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* ---------- HERO ---------- */
.c-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--topbar-h) - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-color: var(--primary-darker);
}
.c-hero-logo {
  width: clamp(130px, 20vw, 230px);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.35));
  margin-bottom: var(--step-3);
}
.c-hero-h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.c-hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.c-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.c-hero-overlay {
  position: absolute; inset: 0;
  background: rgba(14, 58, 132, 0.72);
  z-index: 1;
}
.c-hero-flag {
  position: absolute; inset: 0;
  z-index: 2;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 1px, transparent 1px 28px);
  pointer-events: none;
}
.c-hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100% - 40px, var(--container));
  padding: var(--step-9) 0;
}
.c-hero-portrait { display: none; }
.c-hero-text {
  color: #fff;
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
}
.c-hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.95;
  margin-bottom: var(--step-5);
}
.c-hero-line1, .c-hero-line2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: uppercase;
}
.c-hero-mid {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  color: var(--accent-light);
  margin: 12px 0;
  position: relative;
  padding: 0 60px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.c-hero-mid::before, .c-hero-mid::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 44px; height: 1px;
  background: rgba(255,255,255,.35);
}
.c-hero-mid::before { left: 0; }
.c-hero-mid::after { right: 0; }
.c-hero-sub {
  font-family: var(--font-body);
  font-style: normal;
  color: rgba(255,255,255,.88);
  font-size: 1.08rem;
  max-width: 540px;
  margin: 0 auto var(--step-6);
  line-height: 1.65;
  font-weight: 400;
  text-align: center;
}

@media (max-width: 860px) {
  .c-hero { min-height: 60vh; }
  .c-hero-inner { padding: var(--step-8) 0; }
  .c-hero-text { max-width: 100%; }
}
@media (max-width: 480px) {
  .c-hero { min-height: 50vh; }
  .c-hero-inner { padding: var(--step-7) 0; }
}

/* ---------- BUTTONS (campaign) ---------- */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 38px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform .15s, background .2s, color .2s, box-shadow .2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.c-btn:hover { }
.c-btn-accent {
  background: var(--accent);
  color: var(--accent-text);
}
.c-btn-accent:hover { background: var(--accent-dark); color: #fff; }
.c-btn-dark {
  background: var(--primary-darker);
  color: #fff;
}
.c-btn-dark:hover { background: var(--primary-black); color: #fff; }
.c-btn-outline {
  background: transparent;
  color: var(--primary-darker);
  border-color: var(--line-2);
}
.c-btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- OVERLAP BLOCKS ---------- */
.c-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  z-index: 5;
  margin-top: -1px;
}
.c-block {
  display: flex;
  align-items: center;
  gap: var(--step-4);
  padding: var(--step-6) var(--step-6);
  color: #fff;
  min-height: 150px;
}
.c-block-accent { background: var(--accent); }
.c-block-accent .c-block-icon { color: #fff; }
.c-block-mid { background: var(--primary); }
.c-block-dark { background: var(--primary-darker); }
.c-block-icon {
  width: 54px; height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.c-block-icon svg { width: 26px; height: 26px; }
.c-block-body h3 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 6px;
  line-height: 1.2;
}
.c-block-body a {
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.c-block-body a:hover { color: #fff; }
.c-block-accent .c-block-body a { color: rgba(255,255,255,.95); }

@media (max-width: 780px) {
  .c-blocks { grid-template-columns: 1fr; }
}

/* ---------- HEADINGS (serif centered) ---------- */
.c-heading {
  text-align: center;
  margin-bottom: var(--step-7);
}
.c-heading h2 {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  color: var(--primary-darker);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 8px;
}
.c-heading-sub {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-3);
  font-size: 1.05rem;
}
.c-heading-light h2 { color: #fff; }
.c-heading-light .c-heading-sub { color: rgba(255,255,255,.8); }

.c-center { text-align: center; margin-top: var(--step-6); }

/* ---------- NEWS SECTION ---------- */
.c-news-section { background: var(--bg-alt); }
.c-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--step-5);
}
.c-news-grid .news-card {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.c-news-grid .news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.c-news-grid .news-card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-tint); }
.c-news-grid .news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.c-news-grid .news-card-body { padding: var(--step-5); flex: 1; display: flex; flex-direction: column; }
.c-news-grid .news-card h3 {
  font-family: var(--font-body);
  color: var(--primary-darker);
  font-size: 1rem; font-weight: 700;
  margin-bottom: 8px; order: 1;
}
.c-news-grid .news-card-meta { order: 2; margin-bottom: 0; margin-top: auto; }
.c-news-grid .news-card p { display: none; }
.c-news-grid .news-card-link { display: none; }
.c-news-grid .news-card-tag {
  background: transparent; color: var(--accent-dark);
  padding: 0; font-weight: 700; font-size: .78rem;
}
.c-news-grid .news-card-meta span:last-child { color: var(--accent-dark); font-size: .8rem; }

@media (max-width: 860px) { .c-news-grid { grid-template-columns: 1fr; } }

/* ---------- NEWSLETTER BAND ---------- */
.c-newsletter {
  background: var(--primary-darker);
  padding: var(--step-6) 0;
  position: relative;
  overflow: hidden;
}
.c-newsletter::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.02) 0 2px, transparent 2px 24px);
}
.c-newsletter-inner {
  position: relative;
  display: flex;
  gap: var(--step-3);
  max-width: 640px;
  align-items: stretch;
}
.c-newsletter-field { flex: 1; }
.c-newsletter-field input {
  width: 100%; height: 100%;
  padding: 15px 20px;
  border: 0; border-radius: 2px;
  background: #fff;
  font-size: .95rem;
}
.c-newsletter-field input:focus { outline: 2px solid var(--accent); }
.c-newsletter .c-btn { white-space: nowrap; }

@media (max-width: 620px) {
  .c-newsletter-inner { flex-direction: column; }
}

/* ---------- TRAIL (bicolor split + media) ---------- */
.c-trail {
  position: relative;
  padding: var(--step-8) 0 var(--step-9);
  overflow: hidden;
}
.c-trail-split {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr;
}
.c-trail-left {
  background: linear-gradient(135deg, var(--primary-darker), var(--primary-dark));
  position: relative;
}
.c-trail-right {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  position: relative;
}
.c-trail-left::after, .c-trail-right::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.04) 0 2px, transparent 2px 28px);
}
.c-trail-inner { position: relative; z-index: 2; }
.c-trail-media {
  max-width: 680px;
  margin: var(--step-7) auto 0;
  border: 10px solid #fff;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.c-trail-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- PRESTATIONS GALLERY (mosaic) ---------- */
.c-prestations { padding: var(--step-8) 0; }
.c-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 10px;
}
.c-gallery-item {
  position: relative;
  overflow: hidden;
  display: block;
}
.c-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.c-gallery-item:hover img { transform: scale(1.06); }
.c-gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,26,66,.85) 0%, rgba(10,26,66,.1) 45%, transparent 70%);
  opacity: .85;
  transition: opacity .3s;
}
.c-gallery-item:hover::after { opacity: 1; }
.c-gallery-label {
  position: absolute;
  left: 18px; bottom: 16px;
  z-index: 2;
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.c-gallery-lg {
  grid-column: span 2;
  grid-row: span 2;
}
.c-gallery-lg .c-gallery-label { font-size: 1.4rem; }

@media (max-width: 860px) {
  .c-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .c-gallery-lg { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 480px) {
  .c-gallery { grid-template-columns: 1fr; }
  .c-gallery-lg { grid-column: span 1; }
}

/* ---------- STATS BAND (serif numbers) ---------- */
.c-stats {
  position: relative;
  background: linear-gradient(120deg, var(--primary-black), var(--primary-darker));
  padding: var(--step-8) 0;
  overflow: hidden;
}
.c-stats-flag {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,.02) 0 2px, transparent 2px 26px),
    radial-gradient(ellipse at 80% 50%, rgba(41,171,226,.08), transparent 55%);
  pointer-events: none;
}
.c-stats-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--step-6);
  text-align: center;
}
.c-stat-num {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: #fff;
  line-height: 1;
  letter-spacing: .04em;
}
.c-stat-num span { color: var(--accent); }
.c-stat-label {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  margin-top: 10px;
}
.c-stat + .c-stat { position: relative; }
.c-stat:not(:last-child)::after {
  content: '';
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 60px;
  background: rgba(255,255,255,.12);
}
.c-stats-inner .c-stat { position: relative; }

@media (max-width: 700px) {
  .c-stats-inner { grid-template-columns: 1fr; gap: var(--step-5); }
  .c-stat:not(:last-child)::after { display: none; }
}

/* ============ FLAG CIRCLE ============ */
.flag-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.25);
  vertical-align: middle;
}
.flag-circle svg {
  width: 100%; height: 100%;
  display: block;
  flex-shrink: 0;
}
.flag-circle-footer {
  width: 44px; height: 44px;
  border: 2px solid rgba(255,255,255,.2);
}

/* ============ ARTICLE DETAIL LAYOUT ============ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--step-7);
  align-items: start;
}
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
}

/* Main article */
.article-main {}

.article-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--step-6);
  aspect-ratio: 16/9;
}
.article-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.article-body { }
.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--primary-darker);
  line-height: 1.25;
  margin-bottom: var(--step-3);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: var(--step-3);
  margin-bottom: var(--step-6);
  padding-bottom: var(--step-5);
  border-bottom: 1px solid var(--line);
}
.article-cat {
  padding: 4px 12px;
  background: var(--bg-tint);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 4px;
}
.article-date { font-size: .88rem; color: var(--muted); }
.article-content p {
  color: var(--ink-2);
  line-height: 1.85;
  margin-bottom: var(--step-4);
  font-size: 1.02rem;
}
.article-content h2, .article-content h3 {
  color: var(--primary-darker);
  margin-top: var(--step-6);
  margin-bottom: var(--step-3);
}

/* Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--step-5);
  position: sticky;
  top: calc(var(--nav-h) + var(--step-4));
}
.aside-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--step-5);
}
.aside-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: var(--step-3) var(--step-4);
  background: var(--primary-darker);
  border-radius: var(--radius-sm);
  margin: calc(-1 * var(--step-5)) calc(-1 * var(--step-5)) var(--step-4);
}

/* News list card */
.aside-news { padding-top: 0; overflow: hidden; }
.aside-news-list {
  list-style: none; padding: 0; margin: 0;
}
.aside-news-list li {
  border-bottom: 1px solid var(--line);
}
.aside-news-list li:last-child { border-bottom: 0; }
.aside-news-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--step-4) 0;
  color: var(--ink);
  transition: color .2s;
}
.aside-news-link:hover { color: var(--primary); }
.aside-news-cat {
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.aside-news-title {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Contact form card */
.aside-form {
  display: flex;
  flex-direction: column;
  gap: var(--step-3);
}
.aside-form input,
.aside-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-size: .9rem;
  background: var(--bg-alt);
  transition: border-color .15s;
}
.aside-form input:focus,
.aside-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.aside-form textarea { resize: vertical; }

/* CTA card */
.aside-cta {
  background: var(--primary-darker);
  border-color: transparent;
}
.aside-cta-text {
  color: rgba(255,255,255,.9);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Social links card */
.aside-social-links {
  display: flex;
  gap: var(--step-3);
  margin-top: var(--step-4);
}
.aside-social-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary-darker);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.aside-social-btn svg { width: 18px; height: 18px; }
.aside-social-btn:hover { background: var(--accent); color: #fff; }

/* ============ SPLASH SCREEN ============ */
.splash {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  animation: splashOut 0.55s ease-out 1.7s forwards;
  will-change: opacity;
}
.splash-logo {
  width: clamp(130px, 18vw, 200px);
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 8px 24px rgba(10,26,66,.12));
  animation:
    splashLogoIn  0.7s cubic-bezier(.2,.7,.3,1) 0.15s forwards,
    splashLogoOut 0.5s ease-in 1.35s forwards;
}
@keyframes splashLogoIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes splashLogoOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes splashOut {
  from { opacity: 1; }
  to   { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* Contenu principal : fade-in retardé pour se révéler après le splash */
body > .main {
  animation: pageReveal 0.55s ease-out 1.85s both;
}
@keyframes pageReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Respect des préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
  .splash { animation: splashOut 0.2s ease-out 0.1s forwards; }
  .splash-logo { animation: splashLogoIn 0.2s ease-out forwards; }
  body > .main { animation: pageReveal 0.2s ease-out 0.3s both; }
}

/* ============ PARTNERS ROW ============ */
.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
  padding: var(--step-7) var(--step-5);
  border-top: 1px solid var(--line);
}
.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  transition: color .2s, opacity .2s;
  opacity: .75;
  text-decoration: none;
}
.partner-item:hover {
  opacity: 1;
  color: var(--primary-darker);
}
.partner-item img {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}
.partner-item span {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
/* OIT logo est blanc : conversion en navy */
.partner-oit img {
  filter: brightness(0) saturate(100%) invert(14%) sepia(78%) saturate(650%) hue-rotate(195deg) brightness(92%) contrast(95%);
}
@media (max-width: 620px) {
  .partners-row { gap: 28px; }
  .partner-item img { height: 34px; }
}

/* ============ NAV 70 ANS (or brillant) ============ */
.nav-70ans {
  position: relative;
  height: 100%;
  padding: 0 26px 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  cursor: pointer;
  background:
    linear-gradient(135deg,
      #7a5810 0%,
      #a6801a 22%,
      #c9a020 45%,
      #a6801a 68%,
      #7a5810 100%);
  border-left: 1px solid rgba(255,255,255,.1);
  transition: filter .2s;
  isolation: isolate;
}
.nav-70ans:hover, .nav-70ans:focus { filter: brightness(1.06); outline: none; }
.nav-70ans-shine {
  position: absolute; inset: 0;
  background: linear-gradient(105deg,
    transparent 20%,
    rgba(255,255,255,0) 35%,
    rgba(255,255,255,.55) 50%,
    rgba(255,255,255,0) 65%,
    transparent 80%);
  background-size: 220% 100%;
  background-position: -60% 0;
  animation: goldShine 4.5s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 0;
}
@keyframes goldShine {
  0%   { background-position: -60% 0; }
  50%  { background-position: 160% 0; }
  100% { background-position: 160% 0; }
}
.nav-70ans-img {
  height: 52px; width: auto;
  position: relative; z-index: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.25));
}
.nav-70ans-caret {
  width: 12px; height: 8px;
  color: #fff;
  transition: transform .25s;
  position: relative; z-index: 1;
}
.nav-70ans:hover .nav-70ans-caret,
.nav-70ans:focus .nav-70ans-caret { transform: rotate(180deg); }

.nav-70ans-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 8px 8px;
  padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s, visibility .18s, transform .18s;
  z-index: 200;
}
.nav-70ans:hover .nav-70ans-menu,
.nav-70ans:focus-within .nav-70ans-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-70ans-menu a {
  display: block;
  padding: 11px 14px;
  color: var(--ink-2);
  font-size: .92rem;
  font-weight: 600;
  border-radius: 5px;
}
.nav-70ans-menu a:hover { background: var(--bg-tint); color: var(--primary); }

/* ============ CHRONOLOGIE PAGE ============ */
.chr-page { padding: var(--step-8) 0 var(--step-9); background: #fff; }
.chr-container { max-width: 1200px; }
.chr-header { max-width: 720px; margin: 0 0 var(--step-8); }
.chr-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(201,160,32,.15);
  color: #8a6510;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  border-radius: 3px;
  margin-bottom: var(--step-4);
}
.chr-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  color: #a6801a;
  letter-spacing: -.01em;
  margin-bottom: var(--step-4);
  opacity: 0;
  animation: chrIntro .6s ease-out forwards;
}
.chr-sub {
  color: var(--ink-2);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  opacity: 0;
  animation: chrIntro .6s ease-out .15s forwards;
}
@keyframes chrIntro {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.chr-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 3/1;
  min-height: 340px;
  margin-top: var(--step-6);
}
.chr-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  filter: drop-shadow(0 4px 10px rgba(138,101,16,.15));
}

/* Ligne : dessin progressif */
.chr-line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.chr-canvas.chr-run .chr-line {
  animation: chrDraw 2.6s cubic-bezier(.5,.05,.3,1) .3s forwards;
}
@keyframes chrDraw {
  to { stroke-dashoffset: 0; }
}

/* Flèche : fade + petit décalage à la fin du tracé */
.chr-head {
  opacity: 0;
  transform: scale(.5);
  transform-origin: center;
  transform-box: fill-box;
}
.chr-canvas.chr-run .chr-head {
  animation: chrHead .4s cubic-bezier(.2,1.4,.4,1) 2.6s forwards;
}
@keyframes chrHead {
  from { opacity: 0; transform: scale(.4); }
  to   { opacity: 1; transform: scale(1); }
}

/* Badges de dates positionnés en pourcentage sur le canvas
   avec offset vertical + tige gold connectant à la courbe */
.chr-item {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0;
  opacity: 0;
}
.chr-item--up {
  flex-direction: column-reverse;   /* badge en haut, stem au-dessous */
  transform: translate(-50%, calc(-100% - 4px));
}
.chr-item--down {
  flex-direction: column;           /* stem en haut, badge dessous */
  transform: translate(-50%, 4px);
}
.chr-canvas.chr-run .chr-item {
  animation: chrItemIn .45s cubic-bezier(.2,.9,.35,1) forwards;
  animation-delay: calc(2.9s + var(--i) * .12s);
}
.chr-canvas.chr-run .chr-item--up {
  animation-name: chrItemInUp;
}
@keyframes chrItemIn {
  from { opacity: 0; transform: translate(-50%, 4px) scale(.55); }
  to   { opacity: 1; transform: translate(-50%, 4px) scale(1); }
}
@keyframes chrItemInUp {
  from { opacity: 0; transform: translate(-50%, calc(-100% - 4px)) scale(.55); }
  to   { opacity: 1; transform: translate(-50%, calc(-100% - 4px)) scale(1); }
}

.chr-stem {
  display: block;
  width: 3px;
  height: 28px;
  border-radius: 2px;
  background: linear-gradient(180deg, #a6801a 0%, #c9a020 100%);
  box-shadow: 0 1px 2px rgba(138,101,16,.2);
}
.chr-item--up .chr-stem {
  background: linear-gradient(0deg, #a6801a 0%, #c9a020 100%);
}

.chr-badge {
  padding: 8px 16px;
  background: var(--primary-darker);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .04em;
  border-radius: 4px;
  cursor: default;
  transition: transform .28s cubic-bezier(.2,.9,.35,1), background .2s, box-shadow .28s;
  box-shadow: 0 2px 8px rgba(10,26,66,.2);
  user-select: none;
  white-space: nowrap;
}
.chr-item--up:hover .chr-badge,
.chr-item--up.active .chr-badge {
  transform: translateY(-12px) scale(1.06);
  background: #a6801a;
  box-shadow: 0 -12px 24px rgba(138,101,16,.3);
}
.chr-item--down:hover .chr-badge,
.chr-item--down.active .chr-badge {
  transform: translateY(12px) scale(1.06);
  background: #a6801a;
  box-shadow: 0 12px 24px rgba(138,101,16,.3);
}

.chr-desc {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  max-width: 260px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  color: var(--ink-2);
  font-size: .82rem;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 3;
}
.chr-item--up .chr-desc {
  bottom: calc(100% - 24px);
  border-bottom: 3px solid #a6801a;
}
.chr-item--down .chr-desc {
  top: calc(100% - 24px);
  border-top: 3px solid #a6801a;
}
.chr-item--up:hover .chr-desc,
.chr-item--up.active .chr-desc {
  opacity: 1;
  transform: translateX(-50%) translateY(-14px);
}
.chr-item--down:hover .chr-desc,
.chr-item--down.active .chr-desc {
  opacity: 1;
  transform: translateX(-50%) translateY(14px);
}

.chr-scroll {
  overflow: visible;
}
.chr-hint {
  display: none;
}

@media (max-width: 780px) {
  .chr-page { padding: var(--step-6) 0 var(--step-8); }
  .chr-header { padding: 0 var(--step-4); margin-bottom: var(--step-5); }

  .chr-scroll {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding: var(--step-7) var(--step-4);
    margin: 0 calc(-1 * var(--step-4));
    scrollbar-width: thin;
    scrollbar-color: rgba(201,160,32,.4) transparent;
  }
  .chr-scroll::-webkit-scrollbar { height: 4px; }
  .chr-scroll::-webkit-scrollbar-track { background: transparent; }
  .chr-scroll::-webkit-scrollbar-thumb {
    background: rgba(201,160,32,.4);
    border-radius: 4px;
  }

  .chr-canvas {
    aspect-ratio: unset;
    width: 960px;
    min-width: 960px;
    height: 340px;
    min-height: 340px;
  }

  .chr-badge { font-size: .82rem; padding: 6px 10px; }
  .chr-desc { width: 180px; font-size: .75rem; padding: 10px 12px; }
  .chr-stem { height: 22px; }

  .chr-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: var(--step-4) 0 0;
    padding: 0 var(--step-4);
    color: var(--muted);
    font-size: .78rem;
    font-style: italic;
  }
  .chr-hint svg {
    width: 18px; height: 18px;
    color: #a6801a;
    animation: chrHintSwipe 1.6s ease-in-out infinite;
  }
  @keyframes chrHintSwipe {
    0%, 100% { transform: translateX(0); opacity: .6; }
    50%      { transform: translateX(6px); opacity: 1; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .chr-line { stroke-dashoffset: 0; animation: none !important; }
  .chr-head { opacity: 1; transform: none; animation: none !important; }
  .chr-item { opacity: 1 !important; animation: none !important; }
  .chr-title, .chr-sub { opacity: 1; animation: none !important; transform: none; }
  .nav-70ans-shine { animation: none; }
}

/* ============ GALERIE PAGE ============ */
.gal-page { background: var(--bg-alt); }

.gal-scroll-wrap {
  width: 100%;
}
.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 10px;
}
.gal-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: block;
}
.gal-item:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s cubic-bezier(.2,.7,.3,1), filter .3s;
}
.gal-item:hover img {
  transform: scale(1.05);
  filter: brightness(.9);
}
.gal-item-caption {
  position: absolute;
  bottom: 10px; left: 12px;
  color: rgba(255,255,255,.65);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity .3s;
  z-index: 2;
}
.gal-item:hover .gal-item-caption { opacity: 1; }

@media (max-width: 900px) {
  .gal-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}

@media (max-width: 640px) {
  .gal-scroll-wrap {
    overflow-y: auto;
    max-height: 70vh;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    scrollbar-width: thin;
    scrollbar-color: var(--line-2) transparent;
  }
  .gal-scroll-wrap::-webkit-scrollbar { width: 4px; }
  .gal-scroll-wrap::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
  .gal-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
    gap: 6px;
  }
}

/* ============ LIGHTBOX ============ */
.gal-lightbox {
  position: fixed; inset: 0;
  background: rgba(6,12,28,.97);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gal-lightbox[hidden] { display: none !important; }

.gal-lb-track {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  padding: 64px 88px;
  box-sizing: border-box;
}
.gal-lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  transition: opacity .25s;
  user-select: none;
  display: block;
}

/* Bouton fermer */
.gal-lb-close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px;
  color: rgba(255,255,255,.75);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  transition: background .2s, color .2s;
  z-index: 2;
}
.gal-lb-close svg { width: 20px; height: 20px; }
.gal-lb-close:hover { background: rgba(255,255,255,.14); color: #fff; }

/* Boutons précédent / suivant */
.gal-lb-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.75);
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: background .2s, color .2s;
}
.gal-lb-nav svg { width: 22px; height: 22px; }
.gal-lb-nav:hover { background: rgba(255,255,255,.16); color: #fff; }
.gal-lb-prev { left: 20px; }
.gal-lb-next { right: 20px; }

/* Description bas gauche */
.gal-lb-desc {
  position: absolute;
  bottom: 22px; left: 28px;
  color: rgba(255,255,255,.65);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  pointer-events: none;
}

/* Compteur bas droite */
.gal-lb-counter {
  position: absolute;
  bottom: 22px; right: 28px;
  color: rgba(255,255,255,.4);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  pointer-events: none;
}

@media (max-width: 640px) {
  .gal-lb-track { padding: 56px 56px; }
  .gal-lb-prev { left: 8px; }
  .gal-lb-next { right: 8px; }
}

.nav-cel-label {
  background: linear-gradient(90deg, #8a6510 0%, #c9a020 35%, #f4d97a 50%, #c9a020 65%, #8a6510 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  background-size: 200% auto;
  animation: celShine 3.5s linear infinite;
}
@keyframes celShine {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.nav-celebration-btn {
  color: var(--ink);
}
@media (prefers-reduced-motion: reduce) {
  .nav-cel-label { animation: none; }
}

.chr-tip {
  position: fixed;
  bottom: -120px;
  left: 16px; right: 16px;
  background: var(--primary-darker);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  font-size: .88rem;
  line-height: 1.55;
  box-shadow: 0 -4px 24px rgba(10,26,66,.3);
  z-index: 9999;
  transition: bottom .3s cubic-bezier(.2,.9,.35,1);
  pointer-events: none;
  border-top: 3px solid #c9a020;
}
.chr-tip--show {
  bottom: 24px;
  pointer-events: auto;
}
.chr-tip strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #c9a020;
  margin-bottom: 6px;
}
@media (min-width: 781px) {
  .chr-tip { display: none !important; }
}

/* ============ MOPILA ============ */
:root {
  --mp-gold: #C9A020;
  --mp-gold-light: #E4BC3C;
  --mp-gold-dark: #7A5810;
}

.nav-mopila > .nav-dropbtn { letter-spacing: .04em; font-weight: 800; }
.nav-mopila > .nav-dropbtn:hover { color: var(--mp-gold); }

.mp-hero .page-hero-overlay { background: linear-gradient(105deg, rgba(10,26,66,.92) 0%, rgba(20,40,100,.78) 100%); }
.mp-hero-tag {
  display: inline-block;
  padding: 5px 12px;
  margin-bottom: var(--step-3);
  border: 1px solid rgba(201,160,32,.55);
  border-radius: 999px;
  background: rgba(201,160,32,.14);
  color: var(--mp-gold-light);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mp-profilbar {
  position: relative;
  z-index: 40;
  background: var(--primary-darker);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mp-profilbar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.mp-profil { position: relative; }
.mp-profil-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 60px;
  padding: 14px 18px;
  color: rgba(255,255,255,.9);
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.3;
  background: var(--primary-darker);
  border-bottom: 3px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  touch-action: manipulation;
}
.mp-profil-btn:hover,
.mp-profil-btn:focus-visible { background: var(--primary-black); color: #fff; }
.mp-profil-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.mp-profil-caret { flex: none; width: 18px; height: 18px; opacity: .7; transition: transform .22s ease; }
.mp-profil-caret svg { width: 100%; height: 100%; }
.mp-profil.is-open .mp-profil-caret { transform: rotate(180deg); }

.mp-profil.is-active > .mp-profil-btn {
  color: var(--mp-gold-light);
  background: var(--primary-black);
  border-bottom-color: var(--mp-gold);
}

.mp-profil-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 5;
  overflow: hidden;
  max-height: 0;
  background: var(--primary-black);
  box-shadow: var(--shadow-lg);
  transition: max-height .26s ease;
}
.mp-profil.is-open .mp-profil-menu { max-height: 320px; }
.mp-profil-menu-inner { padding: var(--step-4); display: grid; gap: 10px; }
.mp-profil-resume { color: rgba(255,255,255,.72); font-size: .85rem; line-height: 1.5; }
.mp-profil-menu a {
  color: rgba(255,255,255,.88);
  font-size: .88rem;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05);
}
.mp-profil-menu a:hover { background: rgba(201,160,32,.18); color: var(--mp-gold-light); }
.mp-profil-empty {
  color: rgba(255,255,255,.5);
  font-size: .8rem;
  font-style: italic;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,.1);
}

@media (max-width: 900px) {
  .mp-profilbar-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .mp-profilbar-inner { grid-template-columns: 1fr; gap: 0; }
  .mp-profil-menu { position: static; box-shadow: none; }
  .mp-profil-btn { min-height: 56px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .mp-profil.is-active > .mp-profil-btn { border-bottom-color: var(--mp-gold); }
}

.mp-cover {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--bg-tint);
  box-shadow: var(--shadow-md);
}
.mp-cover-img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .mp-cover { aspect-ratio: 4 / 3; } }

.mp-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: var(--step-7);
  margin-top: var(--step-7);
}
.mp-intro-main h2 { color: var(--primary-darker); margin-bottom: var(--step-4); }
.mp-intro-main p + p { margin-top: var(--step-4); }
.mp-lede { font-size: 1.08rem; color: var(--ink-2); }
.mp-intro-side { display: grid; gap: var(--step-4); align-content: start; }
.mp-side-card {
  padding: var(--step-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.mp-side-card h3 { color: var(--primary-darker); margin-bottom: var(--step-3); }
.mp-side-card p { font-size: .92rem; margin-bottom: var(--step-4); }
.mp-side-card-dark { background: var(--primary-darker); border-color: transparent; }
.mp-side-card-dark h3 { color: #fff; }
.mp-contact { list-style: none; padding: 0; display: grid; gap: 8px; }
.mp-contact li { color: rgba(255,255,255,.8); font-size: .92rem; }
@media (max-width: 900px) { .mp-intro-grid { grid-template-columns: 1fr; gap: var(--step-6); } }

.mp-timeline { list-style: none; padding: 0; display: grid; gap: var(--step-5); position: relative; }
.mp-timeline::before {
  content: '';
  position: absolute;
  left: 9px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--line-2);
}
.mp-timeline-item { position: relative; padding-left: 40px; }
.mp-timeline-dot {
  position: absolute;
  left: 2px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--mp-gold);
}
.mp-timeline-date {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mp-gold-dark);
  margin-bottom: 4px;
}
.mp-timeline-body h3 { color: var(--primary-darker); margin-bottom: 6px; }
.mp-timeline-body p { color: var(--ink-3); font-size: .95rem; }

.mp-profil-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--step-5);
}
.mp-profil-card {
  display: block;
  padding: var(--step-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.mp-profil-card:hover {
  border-color: var(--mp-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}
.mp-profil-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--bg-tint);
  color: var(--primary);
  margin-bottom: var(--step-4);
}
.mp-profil-card-icon svg { width: 24px; height: 24px; }
.mp-profil-card h3 { color: var(--primary-darker); margin-bottom: 8px; font-size: 1.08rem; }
.mp-profil-card p { font-size: .9rem; color: var(--ink-3); margin-bottom: var(--step-4); }
.mp-profil-card-more { font-size: .85rem; font-weight: 700; color: var(--primary); }

.mp-subcat { display: grid; gap: 8px; max-width: 460px; margin-bottom: var(--step-6); }
.mp-subcat > label { font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.mp-select { position: relative; }
.mp-select select {
  width: 100%;
  min-height: 48px;
  padding: 12px 44px 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  appearance: none;
  font-size: .95rem;
}
.mp-select select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.mp-select select:disabled { background: var(--bg-alt); color: var(--muted); cursor: not-allowed; }
.mp-select-caret {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--ink-3);
  pointer-events: none;
}
.mp-select-caret svg { width: 100%; height: 100%; }
.mp-subcat-note { font-size: .8rem; color: var(--muted); }

.mp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: var(--step-7);
  align-items: start;
}
.mp-main, .mp-aside { min-width: 0; }
@media (max-width: 980px) {
  .mp-layout { grid-template-columns: minmax(0, 1fr); gap: var(--step-6); }
  .mp-aside { order: -1; }
}

.mp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--step-5);
}
.mp-tab {
  flex: none;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink-3);
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .2s ease, border-color .2s ease;
  touch-action: manipulation;
}
.mp-tab:hover { color: var(--primary); }
.mp-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.mp-tab.is-active { color: var(--primary-darker); border-bottom-color: var(--mp-gold); }
@media (max-width: 820px) {
  .mp-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border-bottom: 0;
  }
  .mp-tab {
    padding: 11px 12px;
    text-align: center;
    white-space: normal;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: #fff;
  }
  .mp-tab:last-child { grid-column: 1 / -1; }
  .mp-tab.is-active {
    background: var(--primary-darker);
    border-color: var(--primary-darker);
    color: var(--mp-gold-light);
  }
}

.mp-panel { animation: mpFade .25s ease; }
.mp-panel[hidden] { display: none; }
@keyframes mpFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.mp-panel-block + .mp-panel-block { margin-top: var(--step-6); padding-top: var(--step-6); border-top: 1px solid var(--line); }
.mp-panel-block h3 { color: var(--primary-darker); margin-bottom: var(--step-3); }
.mp-panel-block > p { margin-bottom: var(--step-4); }
.mp-note { font-size: .88rem; color: var(--ink-3); margin-top: var(--step-3); }

.mp-pending {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px dashed var(--line-2);
  border-left: 3px solid var(--mp-gold);
  border-radius: var(--radius);
  background: var(--bg-alt);
  font-size: .88rem;
  color: var(--ink-3);
  margin-top: var(--step-4);
}
.mp-pending svg { flex: none; width: 20px; height: 20px; color: var(--mp-gold-dark); margin-top: 1px; }

.mp-pieces { list-style: none; padding: 0; display: grid; gap: 10px; }
.mp-pieces li { display: flex; gap: 12px; align-items: flex-start; }
.mp-pieces-dot { flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--mp-gold); }
.mp-pieces span:last-child { color: var(--ink-2); font-size: .95rem; }

.mp-period { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--step-4); }
.mp-period-item {
  display: grid;
  gap: 4px;
  padding: var(--step-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.mp-period-key { font-size: .82rem; color: var(--ink-3); }
.mp-period-val { font-family: var(--font-display); font-weight: 800; color: var(--primary-darker); }
@media (max-width: 620px) { .mp-period { grid-template-columns: 1fr; } }

.mp-dates { list-style: none; padding: 0; display: grid; gap: var(--step-3); }
.mp-dates li { display: flex; gap: 12px; align-items: flex-start; }
.mp-dates-icon { flex: none; width: 22px; height: 22px; color: var(--primary); margin-top: 2px; }
.mp-dates-icon svg { width: 100%; height: 100%; }
.mp-dates b { display: block; color: var(--primary-darker); font-family: var(--font-display); }
.mp-dates span { font-size: .9rem; color: var(--ink-3); }

.mp-steps { list-style: none; padding: 0; display: grid; gap: var(--step-5); counter-reset: mp; }
.mp-step { display: flex; gap: var(--step-4); align-items: flex-start; }
.mp-step-dot {
  flex: none;
  width: 16px; height: 16px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--mp-gold);
}
.mp-step h4 { color: var(--primary-darker); margin-bottom: 4px; }
.mp-step p { font-size: .93rem; color: var(--ink-3); }

.mp-garanties { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--step-4); }
.mp-garantie {
  padding: var(--step-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.mp-garantie-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--bg-tint);
  color: var(--primary);
  margin-bottom: var(--step-3);
}
.mp-garantie-icon svg { width: 22px; height: 22px; }
.mp-garantie h4 { color: var(--primary-darker); margin-bottom: 6px; }
.mp-garantie p { font-size: .89rem; color: var(--ink-3); }

.mp-download {
  display: flex;
  align-items: center;
  gap: var(--step-4);
  flex-wrap: wrap;
  padding: var(--step-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}
.mp-download-icon { flex: none; width: 40px; height: 40px; color: var(--primary); }
.mp-download-icon svg { width: 100%; height: 100%; }
.mp-download-body { flex: 1 1 200px; display: grid; gap: 2px; }
.mp-download-body b { color: var(--primary-darker); font-family: var(--font-display); }
.mp-download-body span { font-size: .85rem; color: var(--ink-3); }
.mp-download .btn { display: inline-flex; align-items: center; gap: 8px; }
.mp-download .btn svg { width: 18px; height: 18px; }
.mp-download .btn:disabled { opacity: .45; cursor: not-allowed; }
.mp-download.is-disabled .mp-download-icon { color: var(--muted); }

.mp-sim { display: grid; gap: var(--step-5); }
.mp-duree { display: grid; gap: 6px; }
.mp-duree-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--step-4); }
@media (max-width: 360px) { .mp-duree-row { grid-template-columns: minmax(0, 1fr); } }
.mp-duree.invalid input { border-color: var(--red); }
.mp-duree.invalid .err { display: block; }
.mp-sim .form-group { display: grid; gap: 6px; }
.mp-sim label { font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.mp-sim input[type="number"],
.mp-sim input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
}
.mp-sim input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.mp-input-suffix { position: relative; }
.mp-input-suffix input { padding-right: 66px; }
.mp-input-suffix > span {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: .85rem;
  color: var(--muted);
  pointer-events: none;
}
.mp-field-help { font-size: .78rem; color: var(--muted); }
.mp-sim .err { display: none; font-size: .8rem; color: var(--red); }
.mp-sim .form-group.invalid input { border-color: var(--red); }
.mp-sim .form-group.invalid .err { display: block; }

.mp-sim-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--step-4); }
@media (max-width: 620px) { .mp-sim-results { grid-template-columns: minmax(0, 1fr); } }
.mp-sim-result {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: var(--step-5);
  border-radius: var(--radius-lg);
  background: var(--primary-darker);
  border-left: 4px solid var(--mp-gold);
}
.mp-sim-result-label { font-size: .82rem; color: rgba(255,255,255,.7); letter-spacing: .04em; text-transform: uppercase; }
.mp-sim-result-taux {
  justify-self: start;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(201,160,32,.18);
  color: var(--mp-gold-light);
  font-size: .78rem;
  font-weight: 700;
}
.mp-sim-result-value { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--mp-gold-light); font-weight: 900; }
.mp-sim-result-detail { font-size: .82rem; color: rgba(255,255,255,.65); }

.mp-aside { display: grid; gap: var(--step-4); align-content: start; }
.mp-figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-tint);
  box-shadow: var(--shadow-md);
}
.mp-figure-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mp-figure figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--step-5) var(--step-4) var(--step-4);
  display: grid;
  gap: 4px;
  background: linear-gradient(to top, rgba(10,26,66,.92), rgba(10,26,66,0));
  color: #fff;
}
.mp-figure figcaption b { font-family: var(--font-display); font-size: 1.05rem; }
.mp-aside-card {
  padding: var(--step-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.mp-aside-icon {
  display: inline-flex;
  width: 36px; height: 36px;
  color: var(--primary);
  margin-bottom: var(--step-3);
}
.mp-aside-icon svg { width: 100%; height: 100%; }
.mp-aside-card h3 { color: var(--primary-darker); margin-bottom: 8px; font-size: 1.05rem; }
.mp-aside-card p { font-size: .9rem; color: var(--ink-3); margin-bottom: var(--step-4); }

@media (prefers-reduced-motion: reduce) {
  .mp-panel { animation: none; }
  .mp-profil-menu, .mp-profil-caret, .mp-profil-card { transition: none; }
}
