/* ============================================================
   ADN-Enterprise / LMA Distribution — Feuille de style
   Palette : bleu marine profond + accent rouge (logo)
   Layouts multi-colonnes, site multi-pages, bilingue FR/EN
   ============================================================ */

:root {
  --navy:        #0d1b4c;
  --navy-700:    #13235e;
  --navy-900:    #091036;
  --red:         #e2001a;
  --red-600:     #c10016;
  --ink:         #1a1f2e;
  --muted:       #5a6472;
  --line:        #e4e8f0;
  --bg:          #ffffff;
  --bg-alt:      #f4f6fb;

  --radius:      14px;
  --radius-sm:   10px;
  --shadow-sm:   0 1px 3px rgba(13,27,76,.06), 0 1px 2px rgba(13,27,76,.04);
  --shadow-md:   0 10px 30px rgba(13,27,76,.10);
  --shadow-lg:   0 24px 60px rgba(13,27,76,.16);

  --container:   1180px;
  --gap:         clamp(1rem, 3vw, 2rem);

  --font-body:   "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head:   "Barlow Condensed", "Inter", system-ui, sans-serif;
}

*, *::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.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #dfe4f2; }
.narrow { max-width: 760px; }

.eyebrow {
  font: 600 .8rem/1 var(--font-body);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: .9rem;
}
.eyebrow-light { color: #ff5566; }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title {
  font-family: var(--font-head); font-weight: 700; line-height: 1.05;
  letter-spacing: .01em; font-size: clamp(1.7rem, 3.8vw, 2.6rem); color: var(--navy);
}
.section-dark .section-title { color: #fff; }
.section-intro { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }
.section-dark .section-intro { color: #b9c1da; }
.accent { color: var(--red); }
h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .98rem; border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(226,0,26,.25); }
.btn-primary:hover { background: var(--red-600); }
.btn-ghost { border-color: rgba(13,27,76,.2); color: var(--navy); background: transparent; }
.btn-ghost:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eef1f8; }
.btn-block { width: 100%; }
.btn-sm { padding: .6rem 1.1rem; font-size: .9rem; }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--navy); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ============================================================
   HEADER (multi-pages)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line); transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(13,27,76,.10); }

/* Barre utilitaire */
.topbar { background: var(--navy); color: #c7cfe6; overflow: hidden; transition: max-height .3s ease, opacity .25s ease; max-height: 48px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 40px; }
.topbar-tag { display: inline-flex; align-items: center; font-family: var(--font-head); font-size: .92rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #b6bfdd; }
.topbar-tag::before { content: ""; width: 8px; height: 8px; background: var(--red); margin-right: .7rem; flex: none; }
.topbar-right { display: flex; align-items: center; gap: 1.6rem; }
.topbar-link { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; color: #dfe4f2; }
.topbar-link svg { width: 14px; height: 14px; color: #ff5e6c; }
.topbar-link:hover { color: #fff; }


/* Barre principale */
.header-inner { display: flex; align-items: center; gap: 1.25rem; height: 74px; transition: height .25s ease; }

.brand-logo { height: 49px; width: auto; }
.header-spacer { flex: 1; }

.nav { display: flex; align-items: center; gap: 0; }
.nav-link {
  position: relative; padding: .5rem .15rem; margin: 0 .7rem; font-weight: 500; font-size: .96rem;
  color: var(--navy); transition: color .18s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--red); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-link:hover { color: var(--red); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--red); }

.header-tools { display: flex; align-items: center; gap: .7rem; }

/* Language switch */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  border: 0; background: #fff; color: var(--muted);
  padding: .4rem .7rem; font-size: .8rem; font-weight: 700; letter-spacing: .04em; transition: background .15s ease, color .15s ease;
}
.lang-switch button.active { background: var(--navy); color: #fff; }

.nav-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--navy); color: #fff !important; margin-left: .9rem;
  padding: .58rem 1.15rem; border-radius: 9px; font-weight: 600; font-size: .92rem;
  box-shadow: 0 6px 16px rgba(13,27,76,.20); transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.nav-cta::after { display: none; }
.nav-cta .cta-arrow { width: 15px; height: 15px; transition: transform .2s ease; }
.nav-cta:hover { background: var(--red); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(226,0,26,.28); }
.nav-cta:hover .cta-arrow { transform: translateX(3px); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.nav-toggle span { display: block; height: 2px; width: 22px; margin-inline: auto; background: var(--navy); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.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); }

/* ============================================================
   HERO (2 colonnes)
   ============================================================ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background-color: #0a1430;
  border-bottom: 3px solid var(--red);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(640px 380px at 86% 2%, rgba(226,0,26,.20), transparent 60%),
    radial-gradient(150% 130% at 26% 38%, transparent 44%, rgba(4,8,26,.66) 100%),
    linear-gradient(100deg, rgba(6,11,34,.95) 0%, rgba(8,14,44,.82) 30%, rgba(9,16,48,.48) 62%, rgba(9,16,48,.18) 100%),
    url("../assets/img/hero-bg.jpg") center/cover no-repeat;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr;
  align-items: center;
  padding: clamp(3.5rem, 9vw, 7rem) 0;
}
.hero-body { position: relative; max-width: 660px; }
.hero-body .hero-lead { text-shadow: 0 2px 18px rgba(4,8,26,.55); }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .65rem; color: #ff6470; }
.hero .eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--red); }
.hero-title {
  font-family: var(--font-head); font-weight: 700; line-height: 1.02; letter-spacing: .005em;
  font-size: clamp(2.2rem, 5vw, 3.9rem); color: #fff; margin-bottom: 1.2rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.hero-lead { font-size: clamp(1.02rem, 1.8vw, 1.22rem); color: #c6cde2; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero .btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.hero-trust { display: inline-block; margin-top: 1.6rem; font-size: .9rem; color: #aab3cf; border-bottom: 1px solid transparent; }
.hero-trust:hover { color: #fff; border-bottom-color: rgba(255,255,255,.4); }
.hero-trust strong { color: #fff; }

/* Panneau visuel du hero (colonne droite) */
.hero-panel {
  background: rgba(9,16,48,.55); color: #fff; border-radius: 18px; padding: 2rem 1.9rem;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
}
.hero-panel::before { content: ""; position: absolute; top: 0; right: 0; width: 90px; height: 90px; background: var(--red); border-bottom-left-radius: 100%; opacity: .9; }
.hero-panel .panel-logo { background: #fff; border-radius: 10px; padding: .9rem 1.1rem; width: fit-content; margin-bottom: 1.4rem; }
.hero-panel .panel-logo img { height: 34px; }
.hero-panel h2 { color: #fff; font-size: 1.5rem; margin-bottom: 1rem; }
.panel-list { display: grid; gap: .85rem; }
.panel-list li { display: flex; gap: .65rem; align-items: flex-start; font-size: .98rem; color: #cdd4ea; }
.panel-list li svg { flex: none; width: 20px; height: 20px; color: #ff5566; margin-top: 2px; }
.panel-list li strong { color: #fff; font-weight: 600; }

/* ============================================================
   REFERENCES (bandeau confiance)
   ============================================================ */
.refs { padding: 2rem 0; border-bottom: 1px solid var(--line); background: #fff; }
.refs-label { text-align: center; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.refs-img { max-width: 920px; margin-inline: auto; opacity: .9; filter: saturate(.9); }
.refs-grid {
  list-style: none; padding: 0; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: .75rem; max-width: 1100px;
}
.refs-grid li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .9rem 1rem; display: grid; place-items: center; min-height: 92px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.refs-grid li:hover { border-color: rgba(13,27,76,.18); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.refs-grid img { width: auto; height: auto; max-width: 100%; max-height: 56px; object-fit: contain; display: block; }
@media (max-width: 420px) { .refs-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   SPLIT (lignes alternées texte / visuel)
   ============================================================ */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split.reverse .split-media { order: -1; }
.split + .split { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.split-body h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1rem; }
.split-body p { color: var(--muted); margin-bottom: 1rem; }
.split-media {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-sm);
}
.split-media.navy { background: var(--navy); color: #fff; border-color: transparent; }

/* Liste à puces "check" */
.check-list { display: grid; gap: .7rem; margin-top: .5rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink); }
.check-list li svg { flex: none; width: 20px; height: 20px; color: var(--red); margin-top: 3px; }
.section-dark .check-list li, .split-media.navy .check-list li { color: #dfe4f2; }
.section-dark .check-list li svg, .split-media.navy .check-list li svg { color: #ff5566; }

/* ============================================================
   GRIDS & CARDS
   ============================================================ */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d4dbec; }
.card h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .98rem; }

.value-card { position: relative; padding-top: 2.3rem; }
.card-num { position: absolute; top: 1.2rem; right: 1.4rem; font-family: var(--font-head); font-weight: 700; font-size: 2.3rem; color: #eef1f8; line-height: 1; }

/* Icône SVG */
.icon-box {
  width: 54px; height: 54px; display: grid; place-items: center; color: var(--navy);
  background: rgba(13,27,76,.06); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 1.2rem; transition: background .2s ease, color .2s ease;
}
.icon-box svg { width: 26px; height: 26px; display: block; }
.card:hover .icon-box { background: var(--navy); color: #fff; }

/* Logo sur fond clair (plaque blanche) */
.logo-plate { background: #fff; border-radius: 10px; padding: .7rem 1rem; width: fit-content; box-shadow: var(--shadow-sm); margin-bottom: 1.2rem; }
.logo-plate img { height: 38px; width: auto; display: block; }

/* Entity cards (le groupe) */
.entity {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.entity-logo { height: 38px; width: auto; display: block; margin-bottom: 1.3rem; }
.entity:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.entity-badge {
  width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: #fff; background: var(--navy);
}
.entity-badge.lma { background: var(--red); }
.entity h3 { font-size: 1.45rem; margin-bottom: .15rem; }
.entity .entity-tag { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.entity p { color: var(--muted); font-size: .97rem; margin-bottom: 1rem; }
.entity .arrow { color: var(--red); font-weight: 700; font-size: .92rem; }

/* Client cards */
.client-card {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.6rem 1.4rem;
  position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.client-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); }
.client-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.client-card h3 { color: #fff; font-size: 1.3rem; font-weight: 600; margin-bottom: .35rem; }
.client-card p { color: #aeb8d6; font-size: .94rem; }

/* ============================================================
   STATS
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.kpi-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: var(--radius-sm); padding: 1.3rem 1.4rem;
}
.section-dark .stat { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); border-left-color: var(--red); }
.stat-num { display: block; font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--navy); line-height: 1; }
.section-dark .stat-num { color: #fff; }
.stat-label { color: var(--muted); font-size: .9rem; }
.section-dark .stat-label { color: #b9c1da; }

/* ============================================================
   PAGE HERO (sous-pages)
   ============================================================ */
.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; border-bottom: 3px solid var(--red); }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(700px 320px at 90% -20%, rgba(226,0,26,.25), transparent 60%); pointer-events: none; }
.page-hero-inner { position: relative; z-index: 1; padding: 2.25rem 0; min-height: 480px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; }
.page-hero h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.04; }
.page-hero .eyebrow { color: #ff5566; }
.page-hero p { color: #b9c1da; margin-top: 1rem; max-width: 60ch; }
.breadcrumb { font-size: .85rem; color: #8b96ba; margin-bottom: 1rem; }
.breadcrumb a:hover { color: #fff; }

/* ============================================================
   BRANDS (page marques)
   ============================================================ */
.brand-group { margin-top: clamp(2rem, 4vw, 3rem); }
.brand-group h3 { display: flex; align-items: center; gap: .8rem; font-size: 1.3rem; margin-bottom: 1.1rem; }
.brand-group h3 .icon-inline { width: 30px; height: 30px; color: var(--red); }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.brand-chip {
  display: block; padding: .4rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.brand-chip img { display: block; width: 100%; height: auto; border-radius: 6px; }
.brand-chip:hover { transform: translateY(-3px); border-color: var(--red); box-shadow: var(--shadow-md); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.7rem, 3vw, 2.6rem); box-shadow: var(--shadow-md); }
.form-head { margin-bottom: 1.7rem; }
.form-head h2 { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--navy); line-height: 1.1; }
.form-head p { color: var(--muted); font-size: .95rem; margin-top: .35rem; }
.field { margin-bottom: 1.15rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: .8rem; letter-spacing: .03em; text-transform: uppercase; color: var(--navy); margin-bottom: .5rem; }
.req { color: var(--red); }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 11px;
  font: inherit; font-size: .98rem; color: var(--ink); background-color: #f6f8fc;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: #cdd6ea; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); background-color: #fff; box-shadow: 0 0 0 3px rgba(13,27,76,.1); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%230d1b4c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.field textarea { resize: vertical; min-height: 130px; }
.contact-form .cf-turnstile { margin-top: .2rem; }
.contact-form .btn-block { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; width: 100%; margin-top: .5rem; padding: .95rem 1.6rem; font-size: 1rem; border-radius: 11px; }
.contact-form .btn-block svg { width: 18px; height: 18px; }
.form-note { margin-top: .9rem; font-size: .92rem; font-weight: 500; min-height: 1.2em; }
.form-note.ok { color: #128a3a; }
.form-note.err { color: var(--red); }

.contact-cards { display: grid; gap: 1rem; }
.contact-card { background: var(--navy); color: #dfe4f2; border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.contact-card h3 { color: #fff; font-size: 1.25rem; margin-bottom: .9rem; }
.contact-card .info-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #ff5566; font-weight: 600; display: block; margin-top: .7rem; }
.contact-card a:hover { color: #fff; text-decoration: underline; }
.contact-media { margin-top: 1rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-700) 100%); color: #fff; border-radius: 18px; padding: clamp(2rem, 5vw, 3.2rem); display: grid; grid-template-columns: 1.5fr auto; gap: 1.5rem; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { color: #b9c1da; margin-top: .5rem; }
.cta-band .btn { align-self: center; }

/* ============================================================
   FOOTER (multi-colonnes)
   ============================================================ */
.site-footer { background: var(--navy-900); color: #aeb8d6; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 2.2rem; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.footer-wordmark { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: #fff; letter-spacing: .03em; }
.footer-brand p { margin-top: .8rem; max-width: 42ch; font-size: .93rem; }
.footer-snafam { display: inline-block; margin-top: .7rem; font-size: .82rem; color: #8b96ba; }
.footer-snafam:hover { color: #fff; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col a, .footer-col p { display: block; font-size: .93rem; margin-bottom: .55rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .container { padding-block: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-size: .84rem; color: #7e89ad; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { order: -1; }
  .page-hero-inner { grid-template-columns: 1fr; align-items: start; }
  .page-hero-inner { min-height: auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .topbar { display: none; }
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: .2rem;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: 1rem 1.25rem 1.5rem; transform: translateY(-130%); transition: transform .3s ease; visibility: hidden;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav-link { padding: .85rem 1rem; font-size: 1.05rem; margin: 0; }
  .nav-link::after { display: none; }
  .nav-cta { margin-left: 0; margin-top: .5rem; justify-content: center; }
  .nav-toggle { display: flex; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .entity { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* ---- Page SNAFAM : logo + rappel couleur (#176054) ---- */
.snafam-brand { margin: .3rem 0 1.4rem; }
.snafam-plate { display: inline-block; background: #176054; border-radius: 12px; padding: .9rem 1.3rem; box-shadow: 0 10px 24px rgba(23,96,84,.35); }
.snafam-logo { height: 46px; width: auto; display: block; }
.btn-snafam { background: #176054; color: #fff; box-shadow: 0 8px 20px rgba(23,96,84,.28); }
.btn-snafam:hover { background: #124e44; }


/* ============================================================
   CHIFFRES CLES (compteurs animés)
   ============================================================ */
.kpi-band {
  position: relative; overflow: hidden; color: #fff;
  padding: clamp(3.25rem, 7vw, 5.5rem) 0;
  background: linear-gradient(135deg, #081132 0%, #0d1b4c 55%, #112a66 100%);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 3px solid var(--red);
}
.kpi-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 320px at 85% -10%, rgba(226,0,26,.22), transparent 60%),
    radial-gradient(520px 360px at 6% 110%, rgba(40,90,200,.20), transparent 60%);
}
.kpi-band .container { position: relative; z-index: 1; }
.kpi-band .section-title { color: #fff; }
.kpi-row { display: flex; flex-wrap: wrap; justify-content: center; }
.kpi { position: relative; flex: 1 1 180px; min-width: 160px; text-align: center; padding: .8rem 1.4rem; }
.kpi + .kpi::before {
  content: ""; position: absolute; left: 0; top: 16%; bottom: 16%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.22), transparent);
}
.kpi-value {
  font-family: var(--font-head); font-weight: 700; line-height: 1; letter-spacing: .01em;
  font-size: clamp(2.5rem, 4.6vw, 3.7rem); color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,.3);
  white-space: nowrap;
}
.kpi-suffix, .kpi-prefix { color: var(--red); }
.kpi-label { margin-top: .8rem; font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; color: #9fabd0; }
@media (max-width: 760px) {
  .kpi { flex-basis: 42%; padding-block: 1.1rem; }
  .kpi + .kpi::before { display: none; }
}
@media (max-width: 460px) { .kpi { flex-basis: 100%; } }


/* ============================================================
   BANDEAU CONTACT — pills tel/email (rendues dans le bandeau page-hero-rphoto)
   ============================================================ */
.cb-side { display: flex; flex-direction: column; align-items: flex-end; gap: .9rem; }
.cb-phone { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; width: 340px; max-width: 100%; background: rgba(0,0,0,.42); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: .45rem .5rem .45rem 1.3rem; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cb-num { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--red); letter-spacing: .03em; }
.cb-ic { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; flex: none; }
.cb-ic svg { width: 22px; height: 22px; color: #fff; }
.cb-mail {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; color: #fff;
  width: 340px; max-width: 100%;
  background: rgba(0,0,0,.42); border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  padding: .45rem .5rem .45rem 1.3rem; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: border-color .2s ease, background .2s ease;
}
.cb-mail .cb-mailtext { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; }
.cb-mail:hover { background: rgba(0,0,0,.55); border-color: rgba(255,255,255,.32); color: #fff; }
@media (max-width: 820px) {
  .cb-side { align-items: flex-start; }
}


/* ============================================================
   BILINGUE — blocs FR/EN (corps des pages légales)
   Pilotés par l'attribut lang de <html> (posé par i18n.js).
   ============================================================ */
[data-lang-block="en"] { display: none; }
html[lang="en"] [data-lang-block="fr"] { display: none; }
html[lang="en"] [data-lang-block="en"] { display: revert; }

/* ============================================================
   PAGES LÉGALES (mentions, confidentialité, cookies, CGV)
   ============================================================ */
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(1.8rem, 5vw, 4rem); align-items: start; }
.legal-toc { position: sticky; top: 96px; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; background: var(--bg-alt); }
.legal-toc h2 { font: 600 .78rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.legal-toc a { display: block; font-size: .9rem; color: var(--navy); padding: .35rem 0; border-bottom: 1px solid var(--line); }
.legal-toc a:last-child { border-bottom: 0; }
.legal-toc a:hover { color: var(--red); }

.legal-body { max-width: 760px; min-width: 0; }
.legal-updated { font-size: .85rem; color: var(--muted); margin-bottom: 2.2rem; }
.legal-body section { scroll-margin-top: 100px; }
.legal-body section + section { margin-top: 2.4rem; }
.legal-body h2 { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.15; margin-bottom: .9rem; }
.legal-body h2 .num { color: var(--red); margin-right: .5rem; }
.legal-body h3 { font-size: 1.05rem; color: var(--navy); margin: 1.5rem 0 .5rem; }
.legal-body p { margin-bottom: 1rem; color: #39424f; }
.legal-body p:last-child { margin-bottom: 0; }
.legal-body ul.bullets { list-style: disc; padding-left: 1.3rem; margin: 0 0 1rem; }
.legal-body ul.bullets li { margin-bottom: .45rem; color: #39424f; }
.legal-body a.tlink { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.legal-body a.tlink:hover { color: var(--red-600); }
.legal-callout { border-left: 4px solid var(--navy); background: var(--bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1rem 1.2rem; margin: 1.2rem 0; font-size: .95rem; color: #39424f; }

/* Liste de définitions (identité de l'éditeur / hébergeur) */
.deflist { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 1rem; }
.deflist > div { display: grid; grid-template-columns: 210px 1fr; gap: 1rem; padding: .8rem 1.2rem; border-bottom: 1px solid var(--line); }
.deflist > div:last-child { border-bottom: 0; }
.deflist > div:nth-child(odd) { background: var(--bg-alt); }
.deflist dt { font-weight: 600; color: var(--navy); }
.deflist dd { color: #39424f; }
@media (max-width: 560px) { .deflist > div { grid-template-columns: 1fr; gap: .15rem; } }

/* Tableau des cookies */
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 1rem; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
.cookie-table th, .cookie-table td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.cookie-table thead th { background: var(--navy); color: #fff; font-weight: 600; letter-spacing: .02em; }
.cookie-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.cookie-table td:first-child { font-weight: 600; color: var(--navy); white-space: nowrap; }

/* Visionneuse PDF (CGV) */
.pdf-actions { display: flex; gap: .8rem 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.4rem; }
.pdf-note { font-size: .9rem; color: var(--muted); }
.pdf-frame { width: 100%; height: min(82vh, 1000px); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); background: #525659; }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; top: auto; }
}

/* ============================================================
   FOOTER — liens légaux (remplace l'ancienne tagline)
   ============================================================ */
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 0; }
.footer-legal a, .footer-cookie-btn { font-size: .84rem; color: #7e89ad; line-height: 1; padding: 0 .85rem; border-left: 1px solid rgba(255,255,255,.14); }
.footer-legal > *:first-child { padding-left: 0; border-left: 0; }
.footer-cookie-btn { background: none; border-top: 0; border-right: 0; border-bottom: 0; }
.footer-legal a:hover, .footer-cookie-btn:hover { color: #fff; }

/* ============================================================
   BANDEAU COOKIES (RGPD)
   ============================================================ */
.cookie-banner {
  position: fixed; left: 50%; bottom: clamp(.8rem, 2vw, 1.5rem);
  transform: translateX(-50%); width: min(100% - 1.6rem, 940px);
  z-index: 1200; display: none;
}
.cookie-banner.is-open { display: block; animation: cookieUp .4s ease both; }
@media (prefers-reduced-motion: reduce) { .cookie-banner.is-open { animation: none; } }
@keyframes cookieUp { from { opacity: 0; transform: translate(-50%, 22px); } to { opacity: 1; transform: translate(-50%, 0); } }
.cookie-card {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: clamp(1.05rem, 2.4vw, 1.5rem) clamp(1.1rem, 2.6vw, 1.7rem);
  display: grid; grid-template-columns: 1fr auto; gap: 1rem 1.6rem; align-items: center;
}
.cookie-text h3 { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.2rem; margin-bottom: .25rem; }
.cookie-text p { font-size: .9rem; line-height: 1.55; color: #39424f; margin: 0; max-width: 64ch; }
.cookie-text a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 680px) {
  .cookie-card { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1 1 auto; }
}

/* ============================================================
   PAGE-HERO avec photo de fond (distribution) — fondus marine
   ============================================================ */
.page-hero.page-hero-photo {
  background:
    linear-gradient(90deg, rgba(9,16,54,.86) 0%, rgba(11,21,64,.56) 32%, rgba(13,27,76,.22) 64%, rgba(13,27,76,.30) 100%) center / cover no-repeat,
    linear-gradient(180deg, rgba(9,16,54,.45) 0%, rgba(9,16,54,0) 20%, rgba(9,16,54,0) 72%, rgba(9,16,54,.80) 100%) center / cover no-repeat,
    var(--hero-img) center 38% / cover no-repeat,
    var(--navy);
}
.page-hero-photo .breadcrumb,
.page-hero-photo .eyebrow,
.page-hero-photo h1,
.page-hero-photo > .container > div > p,
.page-hero-photo .panel-list li { text-shadow: 0 2px 14px rgba(4,8,28,.92), 0 1px 3px rgba(4,8,28,.7); }
/* Flou léger des bords gauche & droit du bandeau (centre net) */
.page-hero-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 12%, transparent 88%, #000 100%);
          mask-image: linear-gradient(90deg, #000 0, transparent 12%, transparent 88%, #000 100%);
}
/* Groupe : photo collée à droite — pas de flou à droite */
.page-hero-rphoto::after {
  -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 14%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0, transparent 14%, transparent 100%);
}
/* Groupe : voile marine allégé côté droit (image moins sombre, fondus conservés)
   + feather progressif sur le bord DROIT de la photo, 240px,
   courbe TRES douce, fin EXACTEMENT a rgb(13,27,76) = var(--navy)
   => aucun saut de couleur a la jonction avec la bande marine */
.page-hero-photo.page-hero-rphoto {
  --rfeather-w: 240px;
  background:
    linear-gradient(90deg, rgba(13,27,76,.90) 0%, rgba(13,27,76,.60) 30%, rgba(13,27,76,.18) 58%, rgba(13,27,76,.10) 100%) center / cover no-repeat,
    linear-gradient(180deg, rgba(13,27,76,.25) 0%, rgba(13,27,76,0) 25%, rgba(13,27,76,0) 80%, rgba(13,27,76,.42) 100%) center / cover no-repeat,
    linear-gradient(90deg, rgba(13,27,76,0) 0%, rgba(13,27,76,.04) 20%, rgba(13,27,76,.10) 40%, rgba(13,27,76,.22) 58%, rgba(13,27,76,.40) 73%, rgba(13,27,76,.65) 85%, rgba(13,27,76,.88) 94%, rgba(13,27,76,1) 100%) right max(20px, calc(50vw - 590px)) center / var(--rfeather-w) 100% no-repeat,
    var(--hero-img) right max(20px, calc(50vw - 590px)) center / auto 100% no-repeat,
    var(--navy);
}
/* Contact : feather droit elargi pour masquer les objets visibles au sol */
.page-hero-rfade-wide.page-hero-rphoto { --rfeather-w: 840px; }
