/* Klever Invest — feuille de style principale
   Design de référence : kleverinvest_bleu.html (validé client). */

/* ---------- Polices (auto-hébergées, aucun appel à Google) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/source-serif-4-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-serif-4-italic-latin.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --marine: #14293e;
  --marine-clair: #1b3550;
  --marine-fonce: #0e1f30;
  --bleu: #2a5d8f;
  --bleu-doux: #6e93b4;
  --bleu-pale: #8fb3d4;
  --fond: #ffffff;
  --fond-alt: #f4f7fa;
  --texte: #46525e;
  --texte-leger: #7a8794;
  --ligne: #e1e8ee;
  --blanc-casse: #f2f5f8;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gutter: 5rem;
  --section-y: 7.5rem;
  --radius-s: 2px;
  --radius: 4px;
  --nav-h: 5.2rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  background: var(--fond); color: var(--texte);
  font-family: var(--sans); font-weight: 400; font-size: 15px;
  overflow-x: hidden; line-height: 1.65;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
/* Icônes de cartes : inline comme dans la maquette (espace de ligne inclus) */
.pico, .vcico, .ccico { display: inline; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 400;
  background: var(--marine); color: #fff; padding: 0.7rem 1.2rem;
  font-size: 0.82rem; text-decoration: none; border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Logo ---------- */
.logo, .flogo { display: flex; align-items: center; text-decoration: none; }
.logo-mark { flex-shrink: 0; margin-right: 8px; }
.logo { --logo-cut: var(--fond); }
.lc { fill: var(--logo-cut); stroke: var(--logo-cut); }
.lcf { fill: var(--logo-cut); }
.logo .logo-mark { width: 28px; height: 35px; }
.logo-text {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600;
  letter-spacing: 0.2em; color: var(--marine); white-space: nowrap;
}
.logo-text .k { color: var(--bleu); }
.flogo { --logo-cut: var(--marine); }
.flogo .logo-mark { width: 20px; height: 25px; }
.flogo .logo-text { font-size: 1rem; letter-spacing: 0.18em; color: var(--blanc-casse); }
.flogo .logo-text .k { color: var(--bleu-pale); }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem var(--gutter); background: rgba(255,255,255,0.96);
  transition: padding 0.3s, box-shadow 0.3s;
}
.site-nav.scrolled {
  padding-top: 1rem; padding-bottom: 1rem; box-shadow: 0 1px 0 var(--ligne);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.nav-links { display: flex; gap: 2.2rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.82rem; letter-spacing: 0.02em;
  color: var(--texte); text-decoration: none; transition: color 0.25s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--bleu); }
.nav-links .nav-cta {
  border: 1px solid var(--bleu); color: var(--bleu);
  padding: 0.5rem 1.4rem; border-radius: var(--radius-s);
  transition: background 0.25s, color 0.25s;
}
.nav-links .nav-cta:hover { background: var(--bleu); color: #fff; }

.nav-toggle {
  display: none; position: relative; z-index: 210;
  width: 44px; height: 44px; margin: 0 -10px 0 auto;
  background: none; border: 0; cursor: pointer; color: var(--marine);
}
.nav-toggle-bar {
  position: absolute; left: 11px; right: 11px; height: 1.5px;
  background: currentColor; border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle-bar:nth-child(1) { top: 15px; }
.nav-toggle-bar:nth-child(2) { top: 21px; }
.nav-toggle-bar:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Typographie commune ---------- */
h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.2vw, 3.8rem);
  font-weight: 600; line-height: 1.12; color: var(--marine); margin-bottom: 1.8rem;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600; line-height: 1.18; color: var(--marine); margin-bottom: 1.4rem;
}
.eyebrow, .hero-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--bleu); margin-bottom: 1.1rem;
}
.hero-eyebrow { font-size: 0.72rem; margin-bottom: 2rem; }

section { padding: var(--section-y) var(--gutter); }
.inner { max-width: 1280px; margin: 0 auto; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh; padding: 0;
  display: grid; grid-template-columns: 55% 45%; position: relative; overflow: hidden;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 9rem var(--gutter) 6rem; position: relative; z-index: 2; background: var(--fond);
}
.hero-sub {
  font-size: 1.02rem; line-height: 1.85;
  color: var(--texte); max-width: 48ch; margin-bottom: 1.6rem;
}
.hero-badges { display: flex; gap: 0.8rem; flex-wrap: wrap; list-style: none; margin-bottom: 3rem; }
.badge {
  font-size: 0.74rem; letter-spacing: 0.03em;
  border: 1px solid var(--ligne); background: var(--fond-alt);
  padding: 0.4rem 1rem; color: var(--marine); border-radius: var(--radius-s);
}
.hero-right {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--marine-clair) 0%, var(--marine) 55%, var(--marine-fonce) 100%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-cards {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr; align-content: center;
  gap: 1rem; padding: 5rem 3rem; z-index: 2; list-style: none;
}
.hcard {
  width: 100%; border: 1px solid rgba(255,255,255,0.14); border-radius: 3px;
  background: rgba(255,255,255,0.03);
  padding: 1.5rem 1.8rem; position: relative;
  opacity: 0; animation: hcardIn 0.6s ease forwards;
}
.hcard:nth-child(1) { animation-delay: .2s; }
.hcard:nth-child(2) { animation-delay: .35s; }
.hcard:nth-child(3) { animation-delay: .5s; }
.hcard:nth-child(4) { animation-delay: .65s; }
@keyframes hcardIn { to { opacity: 1; } }
.hcard-label { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bleu-doux); margin-bottom: 0.4rem; }
.hcard-val { font-family: var(--serif); font-size: min(1.7rem, 1.89vw); font-weight: 600; color: #fff; line-height: 1.15; white-space: nowrap; }
.hcard-val small { font-size: 1rem; }
.hcard-desc { font-size: 0.75rem; color: rgba(255,255,255,0.55); margin-top: 0.35rem; line-height: 1.5; }

/* ---------- Manifeste ---------- */
.manifeste { background: var(--fond); }
.manifeste-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.manifeste-text p { font-size: 0.98rem; line-height: 1.9; color: var(--texte); margin-bottom: 1.4rem; }
.manifeste-text p strong { color: var(--marine); font-weight: 600; }
.sectors {
  margin-top: 2.5rem; display: flex; flex-direction: row; gap: 1px;
  background: var(--ligne); border: 1px solid var(--ligne); list-style: none;
}
.sector {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.4rem 1.2rem; background: var(--fond); flex: 1;
  transition: background 0.25s;
}
.sector:hover { background: var(--fond-alt); }
.sdot { width: 6px; height: 6px; border-radius: 50%; background: var(--bleu); flex-shrink: 0; }
.sname { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--marine); }
.sdetail { font-size: 0.76rem; color: var(--texte-leger); line-height: 1.5; }

.mbox {
  border: 1px solid var(--ligne); border-radius: var(--radius); padding: 3.2rem;
  background: var(--fond-alt); position: relative;
}
.mbox-tag { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--bleu); margin-bottom: 1.6rem; }
.mbox-q {
  font-family: var(--serif);
  font-size: 1.3rem; font-style: italic; font-weight: 400;
  line-height: 1.55; color: var(--marine); margin-bottom: 2rem;
}
.mbox-line { width: 3rem; height: 2px; background: var(--bleu); margin-bottom: 2rem; border: 0; }
.mbox-body { font-size: 0.86rem; line-height: 1.9; color: var(--texte); }
.mbox-body strong { color: var(--marine); font-weight: 600; }

/* ---------- Prestations ---------- */
.prestations { background: var(--fond-alt); }
.ph { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; margin-bottom: 2.5rem; align-items: start; }
.ph-intro { font-size: 0.95rem; line-height: 1.9; color: var(--texte); }
.pg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.pi {
  background: var(--fond); border: 1px solid var(--ligne); border-radius: var(--radius);
  padding: 2.6rem 2.2rem; position: relative; transition: border-color 0.3s;
}
.pi:hover { border-color: var(--bleu-doux); }
.pico { width: 32px; height: 32px; color: var(--bleu); margin-bottom: 1.4rem; }
.pi h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--marine); margin-bottom: 1rem; line-height: 1.25; }

/* Listes à tiret (prestations + clientèle) */
.dash-list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.dash-list li { font-size: 0.82rem; color: var(--texte); line-height: 1.65; display: flex; align-items: flex-start; gap: 0.7rem; }
.dash-list li::before { content: '–'; color: var(--bleu-doux); flex-shrink: 0; }

/* ---------- Valeurs ---------- */
.valeurs { background: var(--fond); position: relative; overflow: hidden; }
.vleft > p { font-size: 0.92rem; line-height: 1.85; color: var(--texte); margin-bottom: 2.5rem; }
.vlist {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--ligne); border: 1px solid var(--ligne); margin-top: 2rem; list-style: none;
}
.valeur { padding: 1.8rem 1.4rem; background: var(--fond); transition: background 0.25s; }
.valeur:hover { background: var(--fond-alt); }
.vhead { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 0.7rem; }
.vnum { font-family: var(--serif); font-size: 1.2rem; color: var(--bleu-doux); line-height: 1.65; }
.valeur h3 { font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--marine); line-height: 1.35; }
.valeur p { font-size: 0.78rem; line-height: 1.8; color: var(--texte); margin-bottom: 2.5rem; }
.vright {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--ligne); border: 1px solid var(--ligne); margin-top: 4rem; list-style: none;
}
.vc { background: var(--fond); padding: 2.2rem; transition: background 0.25s; }
.vc:hover { background: var(--fond-alt); }
.vcico { width: 28px; height: 28px; color: var(--bleu); margin-bottom: 1.1rem; }
.vc h3 { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; color: var(--marine); margin-bottom: 0.6rem; }
.vc p { font-size: 0.78rem; color: var(--texte); line-height: 1.8; }

/* ---------- Clientèle ---------- */
.clientele { background: var(--fond-alt); }
.cg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; }
.cc {
  border: 1px solid var(--ligne); border-radius: var(--radius); background: var(--fond);
  padding: 2.6rem 2.2rem; transition: border-color 0.3s; position: relative;
}
.cc:hover { border-color: var(--bleu-doux); }
.ccico { width: 36px; height: 36px; color: var(--bleu); margin-bottom: 1.6rem; }
.cc h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--marine); margin-bottom: 0.4rem; line-height: 1.2; }
.ccsub { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--bleu); margin-bottom: 1.4rem; }
.cc > p { font-size: 0.84rem; line-height: 1.85; color: var(--texte); margin-bottom: 1.8rem; }
.cc .dash-list li { font-size: 0.8rem; line-height: 1.65; }

/* ---------- Contact ---------- */
.contact { background: var(--fond); border-top: 1px solid var(--ligne); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7rem; align-items: start; }
.cleft > p { font-size: 0.92rem; line-height: 1.9; color: var(--texte); margin-bottom: 2.8rem; }
.cinfos { display: flex; flex-direction: column; gap: 1.6rem; font-style: normal; }
.cinfo { display: flex; gap: 1.3rem; align-items: flex-start; }
.ciico { width: 18px; height: 18px; color: var(--bleu); flex-shrink: 0; margin-top: 3px; }
.citext strong { display: block; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--marine); font-weight: 600; margin-bottom: 0.2rem; }
.citext span { font-size: 0.88rem; color: var(--texte); overflow-wrap: anywhere; }
.citext a { color: var(--bleu); text-decoration: none; }
.citext a:hover { text-decoration: underline; }
.cncef {
  margin-top: 2.8rem; padding: 1.5rem 2rem;
  border: 1px solid var(--ligne); border-radius: var(--radius); background: var(--fond-alt);
  font-size: 0.78rem; color: var(--texte); line-height: 1.7;
}
.cncef strong { color: var(--marine); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--marine);
  padding: 2.5rem var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 2rem;
}
.flinks { display: flex; gap: 2.2rem; list-style: none; flex-wrap: wrap; }
.flinks a { font-size: 0.74rem; letter-spacing: 0.02em; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.25s; }
.flinks a:hover { color: #fff; }
.flegal { font-size: 0.7rem; color: rgba(255,255,255,0.6); line-height: 1.6; text-align: right; }
.flegal a, .flegal button {
  color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.25s;
  background: none; border: 0; font: inherit; cursor: pointer; padding: 0;
}
.flegal a:hover, .flegal button:hover { color: #fff; }
.flegal-links { margin-top: 0.35rem; }
.flegal-links span[aria-hidden] { margin: 0 0.45rem; }

/* ---------- Pages légales ---------- */
.legal-page { padding: calc(var(--nav-h) + 4.5rem) var(--gutter) var(--section-y); background: var(--fond); }
.legal-inner { max-width: 780px; margin: 0 auto; }
.legal-page h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 1rem; }
.legal-updated { font-size: 0.8rem; color: var(--texte-leger); margin-bottom: 3.5rem; }
.legal-block { padding: 2.2rem 0; border-top: 1px solid var(--ligne); }
.legal-block h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.legal-block h3 { font-family: var(--serif); font-size: 1.05rem; color: var(--marine); margin: 1.4rem 0 0.5rem; }
.legal-block p, .legal-block li { font-size: 0.92rem; line-height: 1.85; }
.legal-block p + p { margin-top: 0.8rem; }
.legal-block ul { padding-left: 1.2rem; margin-top: 0.6rem; }
.legal-block a { color: var(--bleu); }
.legal-block strong { color: var(--marine); font-weight: 600; }
.legal-dl { display: grid; grid-template-columns: 14rem 1fr; gap: 0.6rem 2rem; font-size: 0.92rem; line-height: 1.7; }
.legal-dl dt { color: var(--marine); font-weight: 600; }
.to-validate { background: #fff4d6; color: #6b4e00; padding: 0 0.3em; border-radius: 2px; }
.legal-actions, .legal-block .mt { margin-top: 1.2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 0.75rem 1.6rem; border-radius: var(--radius-s); cursor: pointer;
  text-decoration: none; border: 1px solid var(--bleu); transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-primary { background: var(--bleu); color: #fff; }
.btn-primary:hover { background: var(--marine); border-color: var(--marine); }
.btn-outline { background: transparent; color: var(--bleu); }
.btn-outline:hover { background: var(--fond-alt); }

/* ---------- Alignement des rangées de cartes (subgrid) ----------
   Chaque carte d'une même rangée partage les lignes de sa grille parente :
   titres, sous-titres, textes et listes restent alignés quelle que soit
   la longueur des intitulés. */
.hcard, .pi, .cc, .vc, .valeur {
  display: grid; grid-template-rows: subgrid; row-gap: 0; align-content: start;
}
.hcard  { grid-row: span 3; }
.pi     { grid-row: span 3; }
.vc     { grid-row: span 3; }
.cc     { grid-row: span 5; }
.valeur { grid-row: span 2; }
.hero-cards { grid-auto-rows: auto; }

/* ---------- Bandeau cookies ---------- */
.consent {
  position: fixed; z-index: 300; left: 1.5rem; bottom: 1.5rem;
  width: min(440px, calc(100vw - 3rem));
  background: var(--fond); border: 1px solid var(--ligne); border-radius: var(--radius);
  box-shadow: 0 18px 50px -12px rgba(20,41,62,0.28);
  padding: 1.6rem 1.7rem;
}
.consent[hidden] { display: none; }
.consent-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--marine); margin-bottom: 0.5rem; }
.consent p { font-size: 0.82rem; line-height: 1.7; }
.consent p a { color: var(--bleu); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-top: 1.2rem; }

/* ---------- Page 404 ---------- */
.notfound { min-height: 80vh; display: flex; align-items: center; padding-top: calc(var(--nav-h) + 3rem); }
.notfound p { margin-bottom: 2rem; }

/* ---------- Apparition au défilement (actif seulement si JS) ---------- */
.js .fu { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .fu.vis { opacity: 1; transform: none; }
.js .fu.d1 { transition-delay: 0.08s; }
.js .fu.d2 { transition-delay: 0.16s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .fu { opacity: 1; transform: none; transition: none; }
  .hcard { opacity: 1; animation: none; }
}

/* =================== Responsive =================== */

/* Petits écrans d'ordinateur */
@media (max-width: 1200px) {
  :root { --gutter: 3.5rem; }
  .vc { padding: 1.8rem; }
  .hero-cards { padding: 4rem 2rem; }
  .hcard { padding: 1.3rem 1.4rem; }
}

/* Tablette : menu burger, colonnes empilées */
@media (max-width: 1024px) {
  :root { --gutter: 2.5rem; --section-y: 5.5rem; --nav-h: 4.6rem; }
  .site-nav, .site-nav.scrolled { padding-top: 1.1rem; padding-bottom: 1.1rem; }

  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 205;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: calc(var(--nav-h) + 1.5rem) var(--gutter) 2.5rem;
    background: var(--fond);
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .site-nav.open { backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* Bandeau opaque sous logo + bouton : les liens défilent dessous */
  .site-nav.open::before {
    content: ''; position: absolute; inset: 0; z-index: 207; background: var(--fond);
  }
  .site-nav.open .nav-links {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
  }
  .nav-links li { border-bottom: 1px solid var(--ligne); }
  .nav-links li:last-child { border-bottom: 0; margin-top: 2rem; }
  .nav-links a {
    display: block; padding: 1.15rem 0;
    font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
    color: var(--marine); letter-spacing: 0;
  }
  .nav-links .nav-cta {
    display: block; text-align: center; padding: 0.95rem 1.4rem;
    font-family: var(--sans); font-size: 0.9rem; font-weight: 500;
    background: var(--bleu); color: #fff;
  }
  .site-nav .logo { position: relative; z-index: 210; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-left { padding: calc(var(--nav-h) + 4rem) var(--gutter) 4rem; }
  .hero-badges { margin-bottom: 0; }
  .hero-right { min-height: 0; }
  .hero-cards { position: relative; inset: auto; padding: 3rem var(--gutter); }
  .hcard { padding: 1.5rem 1.6rem; }
  .hcard-val { font-size: 1.7rem; }

  .manifeste-grid, .ph, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .ph { gap: 0.5rem; }
  .pg, .cg { grid-template-columns: 1fr; }
  .vlist { grid-template-columns: 1fr; }
  .valeur { display: grid; grid-template-columns: 3rem 1fr; grid-template-rows: auto; grid-row: auto; column-gap: 1rem; }
  .vhead { display: contents; }
  .vnum { grid-row: 1 / span 2; }
  .valeur h3 { margin-bottom: 0.5rem; }
  .valeur p { margin-bottom: 0; }
  .vright { grid-template-columns: 1fr 1fr; }

  .site-footer { flex-direction: column; gap: 1.6rem; text-align: center; }
  .flinks { justify-content: center; gap: 0.8rem 1.8rem; }
  .flegal { text-align: center; }
}

/* Écrans bas (mobile en paysage) : menu compact */
@media (max-width: 1024px) and (max-height: 520px) {
  .nav-links { padding-top: calc(var(--nav-h) + 0.5rem); padding-bottom: 1.5rem; }
  .nav-links a { padding: 0.65rem 0; font-size: 1.15rem; }
  .nav-links li:last-child { margin-top: 1.2rem; }
  .nav-links .nav-cta { padding: 0.75rem 1.4rem; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --gutter: 1.4rem; --section-y: 4.5rem; }
  body { font-size: 16px; }
  h1 { font-size: clamp(2.05rem, 9vw, 2.5rem); margin-bottom: 1.4rem; }
  h2 { font-size: clamp(1.7rem, 7.2vw, 1.9rem); }
  .hero-left { padding-top: calc(var(--nav-h) + 2.8rem); padding-bottom: 3rem; }
  .hero-sub { font-size: 1rem; }
  .hero-cards { grid-template-columns: 1fr; gap: 0.8rem; padding: 2.4rem var(--gutter); }
  .hcard-val { font-size: 1.5rem; }
  .hcard-desc { font-size: 0.8rem; }

  .sectors { flex-direction: column; }
  .mbox { padding: 2rem 1.5rem; }
  .mbox-q { font-size: 1.15rem; }
  .pi, .cc { padding: 2rem 1.5rem; }
  .vright { grid-template-columns: 1fr; margin-top: 3rem; }
  .vc { padding: 1.8rem 1.5rem; }
  .valeur { padding: 1.5rem 1.3rem; grid-template-columns: 2.4rem 1fr; }

  .manifeste-text p, .ph-intro, .vleft > p, .cleft > p { font-size: 0.96rem; }
  .dash-list li, .cc .dash-list li { font-size: 0.88rem; }
  .sdetail, .valeur p, .vc p, .mbox-body, .cc > p { font-size: 0.86rem; }
  .cncef { padding: 1.3rem 1.3rem; font-size: 0.82rem; }

  .flinks { gap: 0.6rem 1.3rem; }
  .flegal { font-size: 0.74rem; }

  .legal-dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .legal-dl dd { margin-bottom: 0.9rem; }

  .consent { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; width: auto; padding: 1.3rem 1.3rem; }
}

/* Très petits écrans */
@media (max-width: 360px) {
  .hero-eyebrow { letter-spacing: 0.06em; font-size: 0.68rem; }
}

/* Bandeau cookies en paysage sur écran bas : barre pleine largeur, texte à gauche, boutons à droite */
@media (max-height: 520px) and (orientation: landscape) {
  .consent {
    left: 0.75rem; right: 0.75rem; bottom: 0.75rem; width: auto; padding: 0.9rem 1.2rem;
    display: grid; grid-template-columns: 1fr auto; column-gap: 1.5rem; align-items: center;
  }
  .consent-title { margin-bottom: 0.2rem; }
  .consent p { line-height: 1.5; }
  .consent p a { white-space: nowrap; }
  .consent-actions { grid-column: 2; grid-row: 1 / span 2; grid-template-columns: 1fr; gap: 0.5rem; margin-top: 0; }
  .consent-actions .btn { padding: 0.6rem 1.4rem; }
}
