/* ==========================================================================
   EGIDIA — Feuille de style principale
   Aucune ressource externe (polices, CDN) : conformité RGPD / souveraineté.
   ========================================================================== */

/* ---------- Tokens de marque ---------- */
:root {
  /* Couleurs EGIDIA — ajuster ici avec les codes hexadécimaux officiels */
  --navy-950: #050f1f;
  --navy-900: #071a33;
  --navy-800: #0b2447;
  --navy-700: #12305c;
  --blue-600: #1f4fb8;
  --blue-500: #2f66d6;
  --blue-100: #e6eefb;
  --blue-50:  #f3f7fd;
  --orange-500: #f07b1f;
  --orange-400: #f5994d;
  --orange-100: #fdeedf;
  --white: #ffffff;

  --ink: #0d1b2e;
  --ink-soft: #46546a;
  --ink-mute: #6b778a;
  --line: #e2e8f1;
  --line-dark: rgba(255, 255, 255, 0.12);

  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
          BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Display", "Segoe UI Variable Display", "Segoe UI", system-ui,
          -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(7, 26, 51, 0.06);
  --shadow: 0 10px 30px -12px rgba(7, 26, 51, 0.18);
  --shadow-lg: 0 30px 60px -25px rgba(7, 26, 51, 0.35);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 10vw, 128px);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--orange-500);
  color: var(--navy-950);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.icon-sprite { display: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--orange-500);
  color: var(--navy-950);
  box-shadow: 0 8px 24px -10px rgba(240, 123, 31, 0.7);
}
.btn-primary:hover { background: var(--orange-400); color: var(--navy-950); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.06); }

.btn-dark {
  background: var(--navy-900);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-700); color: var(--white); }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(7, 26, 51, 0.0);
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled,
.site-header.is-solid,
.nav-open .site-header {
  background: rgba(7, 26, 51, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.18em;
}
.brand:hover { color: var(--white); }
.brand img { width: 36px; height: 36px; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-list a {
  display: inline-block;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: color .2s ease, background-color .2s ease;
}
.nav-list a:hover { color: var(--white); background: rgba(255, 255, 255, 0.07); }
.nav-list .btn { margin-left: 10px; min-height: 42px; padding: 9px 20px; color: var(--navy-950); }
.nav-list .btn:hover { background: var(--orange-400); color: var(--navy-950); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  color: var(--white);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--navy-900);
    border-top: 1px solid var(--line-dark);
    box-shadow: var(--shadow-lg);
    padding: 16px var(--gutter) 28px;
    display: none;
  }
  .nav-open .site-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a { display: block; padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .nav-list .btn { margin: 12px 0 0; width: 100%; min-height: 50px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(72px, 10vw, 128px);
  background:
    radial-gradient(1000px 520px at 85% 10%, rgba(47, 102, 214, 0.35), transparent 60%),
    radial-gradient(700px 400px at 10% 100%, rgba(240, 123, 31, 0.12), transparent 60%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: rgba(255, 255, 255, 0.82);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--orange-500); }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 600px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--orange-500);
  border-radius: 2px;
}
.hero .eyebrow, .on-dark .eyebrow { color: var(--orange-400); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  list-style: none;
  font-size: 0.92rem;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.78); }
.hero-trust svg { width: 18px; height: 18px; color: var(--orange-500); flex: none; }

/* Carte visuelle du hero */
.hero-card {
  position: relative;
  padding: 28px;
  background: linear-gradient(160deg, rgba(255,255,255,0.09), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.status-dot {
  display: inline-flex; align-items: center; gap: 8px;
  color: #8be0b0; letter-spacing: 0.06em;
}
.status-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #3ecf8e; box-shadow: 0 0 0 4px rgba(62, 207, 142, 0.18);
}
.hero-card-list { list-style: none; display: grid; gap: 12px; }
.hero-card-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: rgba(5, 15, 31, 0.45);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: var(--white);
  font-size: 0.95rem;
}
.hero-card-list .ico {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  border-radius: 10px;
  background: rgba(240, 123, 31, 0.14);
  color: var(--orange-500);
}
.hero-card-list .ico svg { width: 20px; height: 20px; }
.hero-card-list small { display: block; color: rgba(255,255,255,0.55); font-size: 0.8rem; }
.hero-card-list .check { margin-left: auto; width: 20px; height: 20px; color: #3ecf8e; flex: none; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 520px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-alt { background: var(--blue-50); }
.section-dark {
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(47, 102, 214, 0.28), transparent 60%),
    var(--navy-900);
  color: rgba(255,255,255,0.8);
}
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.125rem; color: var(--ink-soft); }
.section-dark .section-head p { color: rgba(255,255,255,0.72); }

/* Bandeau piliers */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  margin-top: calc(-1 * clamp(40px, 5vw, 56px));
  position: relative;
  z-index: 2;
}
.pillar { padding: 28px 26px; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar strong { display: block; color: var(--navy-900); font-size: 1.02rem; margin-bottom: 4px; }
.pillar span { color: var(--ink-soft); font-size: 0.93rem; line-height: 1.5; display: block; }
.pillar svg { width: 26px; height: 26px; color: var(--blue-600); margin-bottom: 14px; }
@media (max-width: 900px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar:nth-child(3) { border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); }
}

/* Cartes expertises */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.card::after {
  content: "";
  position: absolute; left: 30px; right: 30px; top: 0;
  height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--orange-500), var(--blue-600));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.card:hover::after { transform: scaleX(1); }
.card-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-600);
}
.card-icon svg { width: 26px; height: 26px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.card ul { list-style: none; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.card li { position: relative; padding-left: 20px; font-size: 0.92rem; color: var(--ink); }
.card li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--orange-500);
}

/* Souveraineté — deux colonnes */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.commit-list { list-style: none; display: grid; gap: 14px; }
.commit-list li {
  display: flex; gap: 18px;
  padding: 22px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
.commit-list .num {
  flex: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--orange-500);
  padding-top: 2px;
  min-width: 26px;
}
.commit-list strong { display: block; color: var(--white); margin-bottom: 2px; }
.commit-list span { font-size: 0.95rem; color: rgba(255,255,255,0.7); }

.callout {
  margin-top: 28px;
  padding: 20px 22px;
  border-left: 3px solid var(--orange-500);
  background: rgba(240, 123, 31, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.97rem;
}
.section-dark .callout { color: rgba(255,255,255,0.85); }

/* Méthode */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--blue-600);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }
.step .dur {
  display: inline-block; margin-top: 16px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy-700);
  background: var(--orange-100);
  padding: 5px 10px; border-radius: 999px;
}
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Secteurs */
.sectors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  list-style: none;
}
.sectors li {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 600;
  color: var(--navy-900);
}
.sectors svg { width: 22px; height: 22px; color: var(--orange-500); flex: none; }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: var(--blue-100); box-shadow: var(--shadow); }
.faq summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 26px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy-900);
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  border-right: 2px solid var(--blue-600);
  border-bottom: 2px solid var(--blue-600);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq .answer { padding: 0 26px 24px; color: var(--ink-soft); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Bandeau CTA */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 64px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(240, 123, 31, 0.25), transparent 60%),
    linear-gradient(135deg, var(--navy-800), var(--navy-950));
  color: rgba(255,255,255,0.8);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { margin: 0; max-width: 560px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { list-style: none; display: grid; gap: 18px; margin-top: 32px; }
.contact-info li { display: flex; gap: 16px; align-items: flex-start; }
.contact-info .ico {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border-radius: 12px; background: var(--blue-50); color: var(--blue-600);
}
.contact-info .ico svg { width: 22px; height: 22px; }
.contact-info strong { display: block; font-size: 0.85rem; color: var(--ink-mute); font-weight: 500; }
.contact-info a, .contact-info span { color: var(--navy-900); font-weight: 600; text-decoration: none; }
.contact-info a:hover { color: var(--blue-600); }

.form-card {
  padding: clamp(26px, 4vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: 0.9rem; font-weight: 600; color: var(--navy-900); }
.field label .opt { font-weight: 400; color: var(--ink-mute); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cdd6e3;
  border-radius: 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(47, 102, 214, 0.15);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.checkbox { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 22px; font-size: 0.9rem; color: var(--ink-soft); }
.checkbox input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue-600); flex: none; }

.form-legal {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink-mute);
}
.form-legal p { margin: 0; }

.alert {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
}
.alert[hidden] { display: none; }
.alert-error { background: #fdecec; color: #8a1c1c; border: 1px solid #f5c2c2; }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.65);
  padding: 72px 0 32px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { margin-top: 18px; max-width: 320px; }
.site-footer h3 {
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white); margin-bottom: 18px;
}
.footer-links { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,0.72); text-decoration: none; }
.site-footer a:hover { color: var(--orange-400); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  padding-top: 28px;
  font-size: 0.85rem;
}
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- Pages légales ---------- */
.page-hero {
  padding: calc(var(--header-h) + 64px) 0 56px;
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(47, 102, 214, 0.3), transparent 60%),
    var(--navy-900);
  color: rgba(255,255,255,0.75);
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 12px; }
.page-hero p { margin: 0; }

.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: 0.88rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255,255,255,0.4); }
.breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange-400); }

.legal {
  max-width: 820px;
  padding: 64px 0 var(--section);
}
.legal h2 {
  font-size: 1.45rem;
  margin-top: 2.4em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
}
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.3em; margin-bottom: 1em; }
.legal li { margin-bottom: 0.4em; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 1em; }
.legal dt { font-weight: 600; color: var(--navy-900); }
.legal dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 10px; } }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.94rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--line); }
.legal th { background: var(--blue-50); color: var(--navy-900); }
.table-wrap { overflow-x: auto; }
.legal .updated { font-size: 0.9rem; color: var(--ink-mute); }

.todo {
  background: #fff4d6;
  color: #7a4b00;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* Page simple (merci / 404) */
.simple-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 40px) var(--gutter) 80px;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(47, 102, 214, 0.3), transparent 60%),
    var(--navy-900);
  color: rgba(255,255,255,0.78);
}
.simple-page h1 { color: var(--white); }
.simple-page .big {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--orange-500);
  margin-bottom: 12px;
}
.simple-page .seal {
  width: 72px; height: 72px; margin: 0 auto 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(62, 207, 142, 0.14);
  color: #3ecf8e;
}
.simple-page .seal svg { width: 34px; height: 34px; }
.simple-page p { max-width: 520px; margin: 0 auto 32px; }

/* ---------- Animations d'apparition (activées seulement avec JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Impression ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .skip-link { display: none !important; }
  .page-hero, .hero { background: none !important; color: #000; padding-top: 20px; }
  .page-hero h1, .hero h1 { color: #000; }
}

.site-footer-compact { padding: 8px 0 28px; }

/* ---------- Fond blanc forcé (pas de mode sombre automatique) ---------- */
html { color-scheme: light only; background: #ffffff; }
body { background: #ffffff; }

/* ---------- Bloc contact (mailto / tel) ---------- */
.contact-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.contact-card > p { color: var(--ink-soft); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn-outline {
  background: var(--white);
  color: var(--navy-900);
  border-color: #cdd6e3;
}
.btn-outline:hover { border-color: var(--navy-900); color: var(--navy-900); }
@media (max-width: 560px) { .contact-actions .btn { width: 100%; } }
