/* ===============================================
   DLM Conseil — Design system v3 (socle commun)
   Marine + or, papier chaud, éditorial, pilule flottante
   Chargé par toutes les pages ; home.css ne sert qu'à l'accueil
   =============================================== */

/* ===== TOKENS ===== */
:root {
  --ink: #0a1826;
  --navy-50: #f0f4f8;
  --navy-100: #d9e2ec;
  --navy-200: #bcccdc;
  --navy-300: #9fb3c8;
  --navy-400: #829ab1;
  --navy-500: #627d98;
  --navy-600: #486581;
  --navy-700: #334e68;
  --navy-800: #243b53;
  --navy-900: #102a43;

  --gold-100: #fef3c7;
  --gold-300: #f2cf63;
  --gold-400: #e6b92e;
  --gold-500: #d4a012;
  --gold-600: #b8860b;
  --gold-700: #8a5f08;

  --paper: #f6f3ec;
  --paper-2: #ece7da;
  --white: #ffffff;
  --cream: #fdfcfa;
  --text: #1f3347;
  --muted: #4d6175;
  --line: rgba(16, 42, 67, 0.12);
  --line-strong: rgba(16, 42, 67, 0.22);

  --gray-50: #faf9f7;
  --gray-100: #f2efe8;
  --gray-200: #e4e0d6;
  --gray-300: #cfcabd;
  --gray-400: #a09a8c;
  --gray-500: #6b665b;
  --gray-600: #55514a;
  --gray-700: #3f3c37;
  --gray-800: #292723;
  --gray-900: #1a1917;

  --haccp-primary: #0d9488;
  --haccp-ink: #0f766e;
  --haccp-bg: #e6f7f4;
  --duerp-primary: #475569;
  --duerp-ink: #334155;
  --duerp-bg: #eef1f5;
  --decoupe-primary: #c2410c;
  --decoupe-ink: #b23a0a;
  --decoupe-bg: #fdeee3;
  --vigne-primary: #7c2d12;
  --vigne-ink: #7c2d12;
  --vigne-bg: #f6e8d8;
  --permis-primary: #152e47;
  --permis-ink: #152e47;
  --permis-bg: #e3eaf1;

  --primary: var(--navy-900);
  --accent: var(--gold-500);
  --success: #047857;
  --warning: #b45309;

  --font-head: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: var(--font-head);

  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 10vw, 148px);
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --shadow-sm: 0 1px 2px rgba(10, 24, 38, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(10, 24, 38, 0.22);
  --shadow-lg: 0 24px 60px -24px rgba(10, 24, 38, 0.35);
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-full: 999px;
  --header-h: 112px;
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html.menu-open, html.menu-open body { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy-900);
}
h1 { font-size: clamp(2.4rem, 5.6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); letter-spacing: -0.02em; }
h4 { font-size: 1.125rem; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
::selection { background: var(--gold-400); color: var(--ink); }

.container, .container-sm, .container-md, .container-lg, .container-xl {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-sm { max-width: 760px; }
.container-md { max-width: 960px; }
.container-lg { max-width: 1120px; }
.container-narrow { max-width: 860px; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }
.skip-to-content {
  position: fixed; top: -80px; left: 16px; z-index: 500;
  background: var(--gold-500); color: var(--ink); padding: 12px 20px;
  border-radius: var(--radius-full); font-weight: 700; transition: top 0.25s var(--ease);
}
.skip-to-content:focus { top: 14px; }

section { padding-block: var(--section-y); position: relative; }

/* utilitaires hérités */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-white { color: #fff; }
.text-gold { color: var(--gold-500); }
.text-primary, .text-navy { color: var(--navy-900); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 40px; }
.bg-white { background: var(--white); }
.bg-gray { background: var(--paper-2); }
.bg-cream { background: var(--paper); }
.bg-navy { background: var(--navy-900); color: #fff; }

/* ===== BOUTONS ===== */
.btn {
  --b-bg: var(--navy-900); --b-fg: #fff; --b-bd: transparent;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.005em; line-height: 1.2; text-align: center;
  color: var(--b-fg); background: var(--b-bg); border: 1.5px solid var(--b-bd);
  border-radius: var(--radius-full);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  background: var(--b-hover, var(--gold-500));
  transform: translateY(101%); border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  transition: transform 0.5s var(--ease), border-radius 0.5s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); border-radius: 0; }
.btn i { transition: transform 0.35s var(--ease); font-size: 0.9em; }
.btn:hover i.fa-arrow-right, .btn:hover i.fa-external-link-alt { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }
.btn-lg { min-height: 58px; padding: 0 34px; font-size: 1rem; }
.btn-sm { min-height: 46px; padding: 0 22px; font-size: 0.88rem; }
.btn-block { width: 100%; }

.btn-primary { --b-bg: var(--gold-500); --b-fg: var(--ink); --b-hover: #fff; }
.btn-primary:hover { box-shadow: 0 14px 34px -12px rgba(212, 160, 18, 0.7); }
.btn-accent { --b-bg: var(--gold-500); --b-fg: var(--ink); --b-hover: #fff; }
.btn-secondary { --b-bg: var(--navy-900); --b-fg: #fff; --b-hover: var(--gold-500); }
.btn-secondary:hover { color: var(--ink); }
.btn-outline { --b-bg: transparent; --b-fg: var(--navy-900); --b-bd: var(--line-strong); --b-hover: var(--navy-900); }
.btn-outline:hover { color: #fff; border-color: var(--navy-900); }
.btn-outline-light { --b-fg: #fff; --b-bd: rgba(255, 255, 255, 0.45); --b-hover: #fff; }
.btn-outline-light:hover { color: var(--ink); border-color: #fff; }
.btn-haccp { --b-bg: var(--haccp-ink); --b-hover: var(--ink); }
.btn-duerp { --b-bg: var(--duerp-ink); --b-hover: var(--ink); }
.btn-decoupe { --b-bg: var(--decoupe-ink); --b-hover: var(--ink); }
.btn-vigne { --b-bg: var(--vigne-ink); --b-hover: var(--ink); }
.btn-permis { --b-bg: var(--permis-ink); --b-hover: var(--gold-500); }
.btn-permis:hover { color: var(--ink); }

/* ===== EN-TÊTE : barre fine + pilule flottante ===== */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 200; view-transition-name: site-header; }
.top-bar {
  background: var(--ink); color: rgba(255, 255, 255, 0.8);
  font-size: 0.8125rem; line-height: 1.2; max-height: 40px; overflow: hidden;
  transition: max-height 0.5s var(--ease), opacity 0.35s var(--ease);
}
.site-header.scrolled .top-bar { max-height: 0; opacity: 0; }
.top-bar-content { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.top-bar-left { display: flex; align-items: center; gap: 10px; }
.top-bar-left i { color: var(--gold-400); }
.top-bar strong { color: #fff; font-weight: 600; }
.top-bar-right { display: flex; align-items: center; gap: 4px; }
.top-bar a { white-space: nowrap; color: rgba(255, 255, 255, 0.85); display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--radius-full); transition: color 0.25s, background 0.25s; }
.top-bar a:hover { color: var(--gold-300); background: rgba(255, 255, 255, 0.08); }

/* pages sans navigation (mentions, CGV…) : la barre devient la pilule */
.site-header:not(:has(.main-header)) .top-bar { background: transparent; max-height: none; opacity: 1; overflow: visible; padding-top: 12px; }
.site-header:not(:has(.main-header)) .top-bar-content { position: relative; isolation: isolate; padding: 8px 14px 8px 24px; border-radius: var(--radius-full); color: var(--text); }
.site-header:not(:has(.main-header)) .top-bar-content::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 10px 40px -14px rgba(10, 24, 38, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.7); }
.site-header:not(:has(.main-header)) .top-bar strong { color: var(--navy-900); }
.site-header:not(:has(.main-header)) .top-bar a { color: var(--navy-800); }
.site-header:not(:has(.main-header)) .top-bar a:hover { color: var(--ink); background: var(--navy-50); }
.site-header:not(:has(.main-header)) .top-bar-left i { color: var(--gold-600); }
.header-spacer { height: 88px; }

.main-header { padding-top: 10px; }
.header-inner {
  position: relative; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 66px; padding: 8px 10px 8px 26px; border-radius: var(--radius-full);
}
.header-inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 12px 40px -16px rgba(10, 24, 38, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.scrolled .header-inner::before { background: rgba(255, 255, 255, 0.94); box-shadow: 0 14px 44px -14px rgba(10, 24, 38, 0.55), inset 0 0 0 1px rgba(16, 42, 67, 0.06); }
.logo, .footer-logo { display: inline-flex; flex-direction: column; line-height: 1; position: relative; z-index: 3; }
.logo-text, .logo-name { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.04em; color: var(--navy-900); transition: color 0.3s; }
.logo-tagline { margin-top: 4px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 8px; }
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: var(--radius-full);
  font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; letter-spacing: -0.01em; color: var(--navy-800);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-link:hover { background: rgba(16, 42, 67, 0.07); }
.nav-link.active::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--gold-500);
}
.nav-cta { background: var(--navy-900); color: #fff; margin-left: 6px; padding-inline: 20px; }
.nav-cta:hover { background: var(--gold-500); color: var(--ink); }
.menu-toggle {
  display: none; position: relative; z-index: 3; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy-900); align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  transition: background 0.3s;
}
.menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform 0.45s var(--ease), opacity 0.25s; }
.menu-toggle.active { background: var(--gold-500); }
.menu-toggle.active span { background: var(--ink); }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1099px) {
  .menu-toggle { display: inline-flex; }
  .header-inner { padding-left: 22px; }
  .nav-menu {
    position: fixed; inset: 0; z-index: 2;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
    padding: 110px var(--gutter) 40px;
    background: var(--ink); overflow-y: auto;
    clip-path: circle(0 at calc(100% - 44px) 44px); visibility: hidden;
    transition: clip-path 0.75s var(--ease-io), visibility 0s linear 0.75s;
  }
  .nav-menu.active { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; transition: clip-path 0.75s var(--ease-io); }
  .nav-menu li { width: 100%; overflow: hidden; }
  .nav-link {
    display: flex; width: 100%; padding: 8px 0; border-radius: 0;
    font-size: clamp(1.9rem, 8.4vw, 3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.12; color: #fff;
    opacity: 0; transform: translateY(100%);
    transition: transform 0.7s var(--ease), opacity 0.5s var(--ease), color 0.25s;
  }
  .nav-menu.active .nav-link { opacity: 1; transform: none; transition-delay: calc(0.18s + var(--i, 1) * 0.05s); }
  .nav-link:hover { background: none; color: var(--gold-300); }
  .nav-link.active { color: var(--gold-300); }
  .nav-link.active::after { left: auto; right: 0; bottom: auto; top: 50%; margin: -4px 0 0; width: 8px; height: 8px; }
  .nav-menu li:nth-child(1) { --i: 1; } .nav-menu li:nth-child(2) { --i: 2; } .nav-menu li:nth-child(3) { --i: 3; }
  .nav-menu li:nth-child(4) { --i: 4; } .nav-menu li:nth-child(5) { --i: 5; } .nav-menu li:nth-child(6) { --i: 6; } .nav-menu li:nth-child(7) { --i: 7; }
  .nav-cta { margin: 24px 0 0; width: auto; display: inline-flex; background: var(--gold-500); color: var(--ink); font-size: 1.15rem; padding: 14px 28px; border-radius: var(--radius-full); letter-spacing: -0.01em; }
  .nav-cta:hover { background: #fff; color: var(--ink); }
  .nav-menu li:last-child { overflow: visible; }
  html.menu-open .logo-text { color: #fff; }
  html.menu-open .logo-tagline { color: rgba(255, 255, 255, 0.7); }
  html.menu-open .header-inner::before { opacity: 0; }
}
@media (max-width: 640px) {
  .main-header .logo-text, .main-header .logo-tagline { display: block; }
  .main-header .logo-tagline { margin-top: 2px; font-size: 0.6875rem; }
  .top-bar-right { display: none; }
  .top-bar-content { justify-content: center; }
  .top-bar { font-size: 0.75rem; }
  .site-header:not(:has(.main-header)) .top-bar-right { display: flex; }
  .site-header:not(:has(.main-header)) .top-bar-left { display: none; }
  .site-header:not(:has(.main-header)) .top-bar-content { justify-content: center; padding: 6px 10px; }
  .site-header:not(:has(.main-header)) .top-bar a { padding: 10px 12px; min-height: 44px; font-size: 0.8125rem; }
}

/* ===== EN-TÊTES DE SECTION ===== */
.section-header {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 20px 64px;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-header .section-badge { grid-column: 1 / -1; }
.section-header .section-subtitle { margin: 0; }
.section-badge {
  display: inline-flex; align-items: center; gap: 10px; align-self: start; justify-self: start; width: fit-content;
  font-family: var(--font-head); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-700);
}
.section-badge::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-badge i { display: none; }
.section-title { font-size: clamp(2rem, 4.6vw, 4rem); letter-spacing: -0.04em; line-height: 1.03; }
.section-subtitle { font-size: clamp(1rem, 1.2vw, 1.125rem); color: var(--muted); max-width: 52ch; line-height: 1.7; }
@media (max-width: 860px) {
  .section-header { grid-template-columns: 1fr; gap: 16px; }
}

/* ===== BANDEAU DÉFILANT (décor, aria-hidden) ===== */
.marquee { overflow: hidden; background: var(--gold-500); color: var(--ink); padding: 0; border-block: 1px solid rgba(10, 24, 38, 0.15); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 28px; padding: 20px 28px 20px 0;
  font-family: var(--font-head); font-weight: 800; font-size: clamp(1.1rem, 2vw, 1.6rem); letter-spacing: -0.03em; white-space: nowrap;
}
.marquee-item::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== EN-TÊTE DE PAGE (catalogue, formations, à propos) ===== */
.page-hero, .about-hero, .legal-hero, .articles-hub-hero, .article-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background-color: var(--ink);
  padding: calc(var(--header-h) + clamp(48px, 7vw, 110px)) 0 clamp(56px, 8vw, 110px);
}
.page-hero::before, .about-hero::before, .legal-hero::before, .articles-hub-hero::before, .article-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(212, 160, 18, 0.28), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(72, 101, 129, 0.5), transparent 65%);
}
.page-hero::after, .about-hero::after, .articles-hub-hero::after, .article-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.page-hero h1, .about-hero h1, .legal-hero h1, .articles-hub-hero h1, .article-hero h1 { color: #fff; font-size: clamp(2.3rem, 5.6vw, 5rem); letter-spacing: -0.045em; line-height: 1.02; max-width: 18ch; }
.page-hero-subtitle, .about-hero p, .legal-hero p, .articles-hub-hero p, .article-hero-lead { margin-top: 22px; max-width: 60ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.65; color: rgba(255, 255, 255, 0.8); }
.breadcrumb, .article-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 28px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); }
.breadcrumb a, .article-breadcrumb a { color: rgba(255, 255, 255, 0.85); padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.25); transition: color 0.25s, border-color 0.25s; }
.breadcrumb a:hover, .article-breadcrumb a:hover { color: var(--gold-300); border-color: var(--gold-300); }
.breadcrumb i, .article-breadcrumb i, .article-breadcrumb .separator { font-size: 0.65rem; opacity: 0.6; }
.breadcrumb span:last-child, .article-breadcrumb .current { color: #fff; font-weight: 600; }
.page-hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.page-hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: var(--radius-full);
  font-size: 0.9rem; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.page-hero-badge i { color: var(--gold-300); }

/* ===== CARTES FORMATION (base verticale, réutilisée en bas de pages) ===== */
.formations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.formation-card {
  --ac: var(--navy-900); --ac-bg: var(--navy-50);
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border-radius: var(--radius-xl); border: 1px solid var(--line);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), border-color 0.4s;
}
.formation-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.formation-card-haccp, .formation-card-xl.formation-card-haccp { --ac: var(--haccp-ink); --ac-bg: var(--haccp-bg); }
.formation-card-duerp, .formation-card-xl.formation-card-duerp { --ac: var(--duerp-ink); --ac-bg: var(--duerp-bg); }
.formation-card-decoupe, .formation-card-xl.formation-card-decoupe { --ac: var(--decoupe-ink); --ac-bg: var(--decoupe-bg); }
.formation-card-vigne, .formation-card-xl.formation-card-vigne { --ac: var(--vigne-ink); --ac-bg: var(--vigne-bg); }
.formation-card-permis, .formation-card-xl.formation-card-permis { --ac: var(--permis-ink); --ac-bg: var(--permis-bg); }
.formation-card-image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.formation-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.formation-card:hover .formation-card-image img { transform: scale(1.06); }
.formation-card-badge {
  position: absolute; top: 16px; left: 16px; padding: 7px 14px; border-radius: var(--radius-full);
  font-family: var(--font-head); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  background: #fff; color: var(--ac);
}
.formation-card-content { display: flex; flex-direction: column; gap: 14px; padding: 26px 26px 8px; flex: 1; }
.formation-card-category { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: var(--radius-full); background: var(--ac-bg); color: var(--ac); font-size: 0.8125rem; font-weight: 700; }
.formation-card-title { font-size: clamp(1.4rem, 2vw, 1.8rem); letter-spacing: -0.035em; }
.formation-card-title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.5s var(--ease); }
.formation-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.formation-card:hover .formation-card-title a { background-size: 100% 2px; }
.formation-card-description { color: var(--muted); font-size: 0.97rem; line-height: 1.65; }
.formation-card-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 6px; }
.formation-meta-item { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; color: var(--navy-700); }
.formation-meta-item i { color: var(--ac); font-size: 0.9em; }
.formation-card-footer { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 26px 26px; margin-top: 12px; border-top: 1px solid var(--line); }
.formation-price { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.04em; color: var(--ac); line-height: 1; }
.formation-price span { font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }

/* ===== QUALIOPI + CONTACT BAS DE PAGE ===== */
.qualiopi-section { background: var(--paper); padding-block: clamp(56px, 8vw, 110px); }
.qualiopi-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 5vw, 72px); border-radius: var(--radius-2xl);
  background: radial-gradient(70% 90% at 100% 0%, rgba(212, 160, 18, 0.22), transparent 60%), var(--navy-900);
  color: #fff;
}
.qualiopi-info h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.6rem); letter-spacing: -0.045em; margin-bottom: 18px; }
.qualiopi-info > p { color: rgba(255, 255, 255, 0.78); max-width: 46ch; margin-bottom: 28px; }
.qualiopi-contact-items { display: grid; gap: 4px; margin-bottom: 32px; }
.qualiopi-contact-item { display: flex; align-items: flex-start; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.82); font-size: 0.97rem; }
.qualiopi-contact-item i { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(212, 160, 18, 0.18); color: var(--gold-300); font-size: 0.85rem; }
.qualiopi-contact-item strong { color: #fff; font-weight: 700; }
.qualiopi-contact-item a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.35); transition: color 0.25s, border-color 0.25s; }
.qualiopi-contact-item a:hover { color: var(--gold-300); border-color: var(--gold-300); }
.qualiopi-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-xl); background: #fff; color: var(--text); }
.qualiopi-card img { width: min(100%, 340px); }
.qualiopi-card .qualiopi-text { font-size: 0.9rem; color: var(--muted); max-width: 36ch; }
.qualiopi-card .qualiopi-text strong { display: block; color: var(--navy-900); }
.btn-qualiopi-download {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px;
  background: var(--navy-900); color: #fff; border-radius: var(--radius-full); font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.btn-qualiopi-download:hover { background: var(--gold-500); color: var(--ink); transform: translateY(-2px); }
@media (max-width: 900px) { .qualiopi-grid { grid-template-columns: 1fr; } }

.cta-section { background: var(--navy-900); color: #fff; text-align: center; overflow: hidden; }
.cta-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 50% 120%, rgba(212, 160, 18, 0.35), transparent 70%); pointer-events: none; }
.cta-content { position: relative; max-width: 900px; margin: 0 auto; }
.cta-content h2 { color: #fff; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.045em; margin-bottom: 20px; }
.cta-content p { color: rgba(255, 255, 255, 0.78); max-width: 56ch; margin: 0 auto 32px; font-size: 1.1rem; }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ===== FORMULAIRES ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-label { font-family: var(--font-head); font-size: 0.875rem; font-weight: 700; color: var(--navy-900); }
.form-input, .form-select, .form-textarea {
  width: 100%; min-height: 54px; padding: 14px 18px; border: 1.5px solid var(--line-strong); border-radius: 16px;
  background: var(--cream); color: var(--text); font-size: 1rem; transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.form-textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.form-input::placeholder, .form-textarea::placeholder { color: #6e7f90; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--navy-900); background: #fff; box-shadow: 0 0 0 4px rgba(212, 160, 18, 0.28); }
.form-checkbox { display: flex; align-items: flex-start; gap: 14px; font-size: 0.875rem; color: var(--muted); line-height: 1.55; }
.form-checkbox input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--navy-900); }
.form-checkbox a { color: var(--navy-900); border-bottom: 1px solid currentColor; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ===== PIED DE PAGE ===== */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: rgba(255, 255, 255, 0.72); padding: clamp(64px, 8vw, 112px) 0 0; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(55% 60% at 90% 0%, rgba(212, 160, 18, 0.16), transparent 65%); }
.footer-grid::after {
  content: "DLM Conseil"; content: "DLM Conseil" / "";
  grid-column: 1 / -1; display: block; margin-top: clamp(8px, 2vw, 32px); text-align: center;
  font-family: var(--font-head); font-weight: 800; font-size: clamp(3.2rem, 16.6vw, 14rem); letter-spacing: -0.07em; line-height: 0.9; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; pointer-events: none; user-select: none;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 4vw, 64px); padding-bottom: clamp(40px, 5vw, 72px); }
.footer-brand .logo-text, .footer-brand .logo-name, .footer-logo .logo-name { color: #fff; font-size: 1.8rem; }
.footer-brand .logo-tagline, .footer-logo .logo-tagline { color: rgba(255, 255, 255, 0.6); }
.footer-logo-img { width: 44px; height: auto; margin-bottom: 10px; border-radius: 10px; }
.footer-logo { flex-direction: column; align-items: flex-start; }
.footer-description { margin-top: 20px; max-width: 40ch; font-size: 0.95rem; line-height: 1.7; }
.footer-certifications { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.footer-cert { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--radius-full); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; font-size: 0.8125rem; font-weight: 600; }
.footer-cert i { color: var(--gold-400); }
.footer-title { margin-bottom: 18px; font-family: var(--font-head); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-400); }
.footer-links { display: grid; gap: 2px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.98rem; color: rgba(255, 255, 255, 0.78); transition: color 0.25s, transform 0.35s var(--ease); }
.footer-links a:hover { color: #fff; transform: translateX(6px); }
.footer-newsletter p { font-size: 0.95rem; margin-bottom: 12px; }
.footer-newsletter p a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.3); display: inline-block; padding: 4px 0; }
.footer-newsletter p i { color: var(--gold-400); margin-right: 8px; }
.newsletter-form { display: flex; gap: 8px; padding: 6px; margin-bottom: 20px; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); transition: border-color 0.3s; }
.newsletter-form:focus-within { border-color: var(--gold-400); }
.newsletter-input { flex: 1; min-width: 0; min-height: 46px; padding: 0 16px; background: none; border: 0; color: #fff; font-size: 1rem; }
.newsletter-input::placeholder { color: rgba(255, 255, 255, 0.55); }
.newsletter-input:focus { outline: none; }
.newsletter-btn { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-500); color: var(--ink); transition: transform 0.35s var(--ease), background 0.3s; }
.newsletter-btn:hover { background: #fff; transform: rotate(-45deg); }
.footer-social { display: flex; gap: 10px; }
.footer-social-link { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; transition: background 0.3s, color 0.3s, transform 0.35s var(--ease); }
.footer-social-link:hover { background: var(--gold-500); color: var(--ink); border-color: var(--gold-500); transform: translateY(-4px); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding: 20px 0 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.875rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255, 255, 255, 0.78); transition: color 0.25s; }
.footer-legal a:hover { color: var(--gold-300); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand, .footer-newsletter { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; } .footer-bottom { padding-bottom: 28px; } }

/* ===== PROGRESSION + REVEALS + TRANSITIONS ===== */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 300; height: 3px; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); pointer-events: none; }

html.js .fade-in, html.js .fade-in-up { opacity: 0; transform: translateY(36px); }
html.js .fade-in-left { opacity: 0; transform: translateX(-48px); }
html.js .fade-in-right { opacity: 0; transform: translateX(48px); }
html.js .fade-in, html.js .fade-in-up, html.js .fade-in-left, html.js .fade-in-right { transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); }
html.js .fade-in.visible, html.js .fade-in-up.visible, html.js .fade-in-left.visible, html.js .fade-in-right.visible { opacity: 1; transform: none; }
.stagger-1 { transition-delay: 0s !important; } .stagger-2 { transition-delay: 0.1s !important; } .stagger-3 { transition-delay: 0.2s !important; } .stagger-4 { transition-delay: 0.3s !important; } .stagger-5 { transition-delay: 0.4s !important; }

@media (hover: hover) and (pointer: fine) {
  .spot { position: relative; }
  .spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 160, 18, 0.16), transparent 60%); }
  .spot:hover::after { opacity: 1; }
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.25s var(--ease) both vt-out; }
::view-transition-new(root) { animation: 0.45s var(--ease) both vt-in; }
::view-transition-group(site-header) { animation: none; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  html.js .fade-in, html.js .fade-in-up, html.js .fade-in-left, html.js .fade-in-right { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  @view-transition { navigation: none; }
}
@media print {
  .site-header, .scroll-progress, .marquee { display: none !important; }
  body { background: #fff; }
}
