/* =====================================================================
   AVICOLEX Compagnie SARL — feuille de style du site public
   Couleur de marque : le bleu de l'application AVICOLEX (#003489).
   Titres : Lora (serif). Texte : Inter. Polices hébergées sur le site.
   ===================================================================== */

@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora-var.woff') format('woff');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora-italic-var.woff') format('woff');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-medium.woff') format('woff');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-semibold.woff') format('woff');
  font-weight: 600 700;
  font-display: swap;
}

:root {
  /* Bleus de la marque (mêmes valeurs que l'application) */
  --blue-950: #001a50;
  --blue-900: #00246c;
  --blue-700: #003489;
  --blue-600: #0a43a3;
  --blue-500: #3566bf;
  --blue-100: #dde8fd;
  --blue-50: #eef3fe;

  /* Maïs : une seule touche chaude, réservée à la chaîne de valeur */
  --maize: #e2a91c;

  --ink: #13213f;
  --ink-soft: #3f4d6b;
  --muted: #5d6a85;
  --line: #d8e0ee;
  --paper: #ffffff;
  --mist: #f3f6fb;

  --serif: 'Lora', 'Times New Roman', Times, serif;
  --sans: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-600); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--blue-950);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.55rem); }
h3 { font-size: 1.3rem; line-height: 1.3; }
h4 { font-size: 1.08rem; line-height: 1.35; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { font-weight: 600; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--blue-700);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; color: #fff; }

.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;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.measure { max-width: 68ch; }
.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------------
   Boutons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--blue-700); color: #fff; }
.btn-primary:hover { background: var(--blue-900); color: #fff; }
.btn-light { background: #fff; color: var(--blue-900); }
.btn-light:hover { background: var(--blue-50); color: var(--blue-950); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }
.btn-outline { background: transparent; color: var(--blue-700); border-color: var(--blue-700); }
.btn-outline:hover { background: var(--blue-50); color: var(--blue-900); }
.btn:disabled, .btn[aria-disabled='true'] { opacity: 0.6; cursor: not-allowed; }
.on-dark :focus-visible { outline-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------------------------------------------------------------------
   En-tête et navigation
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(10px); }
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(0, 26, 80, 0.06); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--blue-950);
  flex-shrink: 0;
}
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; letter-spacing: 0.02em; color: var(--blue-700); }
.brand-sub { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; margin-top: 0.2rem; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.main-nav a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-s);
  color: var(--ink);
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
}
.main-nav a:hover { color: var(--blue-700); background: var(--blue-50); }
.main-nav a[aria-current='page'] { color: var(--blue-700); box-shadow: inset 0 -2px 0 var(--blue-700); border-radius: 0; }
.main-nav .nav-cta { margin-left: 0.6rem; }
.main-nav .nav-cta a { background: var(--blue-700); color: #fff; border-radius: 999px; padding: 0.6rem 1.15rem; box-shadow: none; }
.main-nav .nav-cta a:hover, .main-nav .nav-cta a[aria-current='page'] { background: var(--blue-900); color: #fff; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue-950);
  font: 600 0.95rem var(--sans);
  cursor: pointer;
}
.menu-toggle-bars { position: relative; width: 18px; height: 12px; }
.menu-toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle-bars span:nth-child(1) { top: 0; }
.menu-toggle-bars span:nth-child(2) { top: 5px; }
.menu-toggle-bars span:nth-child(3) { top: 10px; }
.menu-toggle[aria-expanded='true'] .menu-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] .menu-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }
  .js .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(0, 26, 80, 0.12);
    padding: 0.75rem var(--gutter) 1.5rem;
    display: none;
  }
  .js .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 0.95rem 0.25rem; font-size: 1.08rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a:hover { background: transparent; }
  .main-nav a[aria-current='page'] { box-shadow: inset 4px 0 0 var(--blue-700); padding-left: 0.9rem; }
  .main-nav .nav-cta { margin: 1.1rem 0 0; }
  .main-nav .nav-cta a { text-align: center; border-bottom: 0; padding: 0.9rem 1rem; }
  /* Sans JavaScript, le menu reste visible sous le logo */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-bottom: 0.5rem; }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .main-nav { width: 100%; }
}
@media (max-width: 420px) {
  .brand-sub { display: none; }
  .brand img { width: 40px; height: 40px; }
  .menu-toggle-label { display: none; }
}

/* ---------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

.on-dark { background: var(--blue-950); color: #e8f0fd; }
.on-dark h2, .on-dark h3 { color: #fff; }
.on-dark a:not(.btn) { color: #fff; }
.on-dark p { color: #c9daf7; }

/* ---------------------------------------------------------------------
   Grande photo d'accueil
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(84vh, 760px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--blue-900);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 26, 80, 0.94) 0%, rgba(0, 36, 108, 0.82) 38%, rgba(0, 52, 137, 0.35) 72%, rgba(0, 52, 137, 0.15) 100%),
    linear-gradient(0deg, rgba(0, 26, 80, 0.55) 0%, rgba(0, 26, 80, 0) 45%);
}
.hero-inner { padding-top: clamp(4rem, 10vw, 8rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: 0.45em; }
.hero .lead { color: #dce7fb; max-width: 40rem; margin-bottom: 2rem; }
.hero-sites {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  font-size: 0.98rem;
  color: #c9daf7;
}
.hero-sites strong { color: #fff; font-weight: 600; }
.hero-sites ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin: 0; padding: 0; }
.hero-sites li { color: #fff; font-family: var(--serif); font-size: 1.15rem; }

@media (max-width: 760px) {
  .hero { min-height: auto; }
  .hero::before {
    background: linear-gradient(180deg, rgba(0, 26, 80, 0.55) 0%, rgba(0, 26, 80, 0.86) 45%, rgba(0, 26, 80, 0.96) 100%);
  }
}

/* Bandeau de titre des pages intérieures */
.page-hero { background: var(--blue-950); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.page-hero .wrap { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: #c9daf7; max-width: 42rem; margin: 0; }
.page-hero .crumbs { margin: 0 0 1.25rem; padding: 0; list-style: none; display: flex; gap: 0.5rem; font-size: 0.9rem; color: #8faada; }
.page-hero .crumbs a { color: #c9daf7; }
.page-hero .crumbs li + li::before { content: '/'; margin-right: 0.5rem; color: #5f7fb9; }
.page-hero-photo .hero-media { opacity: 1; }
.page-hero-photo::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0, 26, 80, 0.96) 0%, rgba(0, 26, 80, 0.85) 50%, rgba(0, 36, 108, 0.55) 100%);
}

/* ---------------------------------------------------------------------
   Chaîne de valeur (accueil) : de vraies étapes, donc numérotées
   --------------------------------------------------------------------- */
.chain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 1.5rem;
  counter-reset: step;
  position: relative;
}
.chain li { position: relative; counter-increment: step; padding-top: 4.2rem; }
.chain li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 21px; left: 52px; right: calc(-1.5rem + 8px);
  height: 2px;
  background: var(--blue-700);
  opacity: 0.85;
}
.chain li:first-child::after { background: linear-gradient(90deg, var(--maize), var(--blue-700)); }
.chain li::before {
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  border: 2px solid var(--blue-700);
  color: var(--blue-700);
  font: 600 1.05rem var(--serif);
}
.chain li:first-child::before { border-color: var(--maize); color: #8a6200; }
.chain h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.chain p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

@media (max-width: 900px) {
  .chain { grid-template-columns: 1fr; gap: 1.75rem; }
  .chain li { padding-top: 0.35rem; padding-left: 4.2rem; }
  .chain li:not(:last-child)::after { top: 52px; bottom: calc(-1.75rem + 8px); left: 21px; right: auto; width: 2px; height: auto; }
  .chain li:first-child::after { background: linear-gradient(180deg, var(--maize), var(--blue-700)); }
}

/* ---------------------------------------------------------------------
   Activités : rangées photo + texte en alternance
   --------------------------------------------------------------------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.offer {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.offer-photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--blue-100);
  margin-bottom: 1rem;
}
.offer-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.offer:hover .offer-photo img { transform: scale(1.03); }
.offer h3 { margin-bottom: 0.35rem; color: var(--blue-950); }
.offer:hover h3 { color: var(--blue-700); text-decoration: underline; text-underline-offset: 0.2em; }
.offer p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }
@media (max-width: 1000px) { .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .offer-grid { grid-template-columns: 1fr; } }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.feature + .feature { margin-top: clamp(3.5rem, 8vw, 6rem); }
.feature-photo {
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--blue-100);
}
.feature-photo img { width: 100%; height: 100%; object-fit: cover; }
.feature-photo.is-icon { display: grid; place-items: center; background: var(--blue-50); }
.feature-photo.is-icon svg { width: 38%; height: auto; color: var(--blue-700); }
.feature:nth-of-type(even) .feature-photo { order: 2; }
.feature h2 { margin-bottom: 0.5rem; }
.feature .kicker { display: block; color: var(--blue-600); font-weight: 600; margin-bottom: 0.5rem; }
.facts { list-style: none; padding: 0; margin: 1.25rem 0 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 10.5rem 1fr; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.facts li > span:first-child { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-of-type(even) .feature-photo { order: 0; }
  .facts li { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ---------------------------------------------------------------------
   Listes à icônes (engagements, valeurs) : pas de cartes, des colonnes
   --------------------------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 3.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pillars.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pillars li { display: grid; grid-template-columns: 52px 1fr; gap: 1.1rem; align-items: start; }
.pillars h3 { margin: 0.35rem 0 0.35rem; }
.pillars p { margin: 0; color: var(--ink-soft); }
.icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--blue-50);
  color: var(--blue-700);
}
.icon svg { width: 26px; height: 26px; }
.on-dark .icon { background: rgba(255, 255, 255, 0.1); color: #fff; }
@media (max-width: 900px) { .pillars.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .pillars, .pillars.cols-3 { grid-template-columns: 1fr; gap: 1.75rem; } }

/* Clientèle : liste typographique */
.clients {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 0;
  padding: 0;
}
.clients li { padding: 1.4rem 1.5rem 1.4rem 0; border-bottom: 1px solid var(--line); }
.clients h3 { font-size: 1.18rem; margin-bottom: 0.3rem; }
.clients p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 860px) { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .clients { grid-template-columns: 1fr; } }

/* Bloc deux colonnes texte / encadré */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.panel-blue { background: var(--blue-50); border-color: var(--blue-100); }
.panel h3 { margin-bottom: 0.75rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 0.55rem 0 0.55rem 2rem; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: '';
  position: absolute; left: 0.15rem; top: 0.95rem;
  width: 0.95rem; height: 0.55rem;
  border-left: 2.5px solid var(--blue-700);
  border-bottom: 2.5px solid var(--blue-700);
  transform: rotate(-45deg);
}

.quote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.35;
  color: var(--blue-950);
  max-width: 34ch;
  margin: 0;
}

/* ---------------------------------------------------------------------
   Modèle économique : un vrai canevas en 9 blocs
   --------------------------------------------------------------------- */
.canvas {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-template-areas:
    'kp kp ka ka vp vp cr cr cs cs'
    'kp kp kr kr vp vp ch ch cs cs'
    'co co co co co rs rs rs rs rs';
  border: 2px solid var(--blue-700);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--blue-700);
  gap: 2px;
}
.canvas-block { background: #fff; padding: 1.4rem 1.3rem 1.5rem; min-width: 0; }
.canvas-block h3 { font-size: 1.12rem; margin-bottom: 0.15rem; display: flex; align-items: center; gap: 0.55rem; }
.canvas-block h3 svg { width: 20px; height: 20px; color: var(--blue-700); flex-shrink: 0; }
.canvas-block .q { font-size: 0.86rem; color: var(--muted); margin-bottom: 0.8rem; }
.canvas-block ul { margin: 0; padding-left: 1.05em; font-size: 0.96rem; color: var(--ink-soft); }
.canvas-block li { margin-bottom: 0.3rem; }
.canvas-block li::marker { color: var(--blue-500); }
.canvas-vp { background: var(--blue-50); }
.c-kp { grid-area: kp; } .c-ka { grid-area: ka; } .c-kr { grid-area: kr; }
.c-vp { grid-area: vp; } .c-cr { grid-area: cr; } .c-ch { grid-area: ch; }
.c-cs { grid-area: cs; } .c-co { grid-area: co; } .c-rs { grid-area: rs; }
@media (max-width: 1000px) {
  .canvas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: 'vp vp' 'cs cr' 'ch ka' 'kr kp' 'rs co';
  }
}
@media (max-width: 620px) {
  .canvas { grid-template-columns: 1fr; grid-template-areas: 'vp' 'cs' 'cr' 'ch' 'ka' 'kr' 'kp' 'rs' 'co'; }
}

/* ---------------------------------------------------------------------
   Bandeau d'appel (partenaires)
   --------------------------------------------------------------------- */
.cta-band { background: var(--blue-700); color: #fff; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: center; padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.cta-band h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-band p { color: #dde8fd; margin: 0; max-width: 40rem; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }

.notice {
  border-left: 4px solid var(--blue-500);
  background: var(--blue-50);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.notice p:last-child { margin: 0; }

/* ---------------------------------------------------------------------
   Formulaires
   --------------------------------------------------------------------- */
.form { display: grid; gap: 1.15rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.96rem; color: var(--blue-950); }
.field .opt { font-weight: 400; color: var(--muted); }
.field .req { color: #b4192f; margin-left: 0.15em; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #bfcbe0;
  border-radius: var(--radius-s);
  background: #fff;
  color: var(--ink);
  font: 400 1rem var(--sans);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(53, 102, 191, 0.25);
}
.field [aria-invalid='true'] { border-color: #c21f36; }
.field .hint { font-size: 0.88rem; color: var(--muted); }
.field .error { font-size: 0.9rem; color: #b4192f; font-weight: 500; }
.field .error:empty { display: none; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 0.7rem; align-items: start; font-size: 0.95rem; color: var(--ink-soft); }
.check input { width: 20px; height: 20px; margin: 0.15rem 0 0; accent-color: var(--blue-700); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--radius-s); padding: 0.9rem 1.1rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-success { background: #e7f6ec; color: #13532b; border: 1px solid #a9dcb9; }
.form-status.is-error { background: #fdecef; color: #8a1023; border: 1px solid #f3b5c0; }
.form-status.is-info { background: var(--blue-50); color: var(--blue-950); border: 1px solid var(--blue-100); }
.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; display: none; }
.btn.is-loading .spinner { display: inline-block; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-note { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* Coordonnées */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon { width: 44px; height: 44px; border-radius: 12px; }
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list .label { display: block; font-size: 0.86rem; color: var(--muted); }
.contact-list a, .contact-list .value { font-weight: 600; color: var(--blue-950); text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--blue-700); text-decoration: underline; }

/* Coordonnées : masquées tant qu'elles ne sont pas renseignées dans config.js */
[data-config-requires]:not(.is-filled), .is-hidden { display: none !important; }

/* Pages juridiques */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.55rem; margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose dl { display: grid; grid-template-columns: 13rem 1fr; gap: 0.5rem 1.5rem; margin: 0 0 1.5em; }
.prose dt { color: var(--muted); }
.prose dd { margin: 0; font-weight: 500; }
@media (max-width: 620px) { .prose dl { grid-template-columns: 1fr; gap: 0.1rem; } .prose dd { margin-bottom: 0.6rem; } }

/* ---------------------------------------------------------------------
   Pied de page
   --------------------------------------------------------------------- */
.site-footer { background: var(--blue-950); color: #c9daf7; font-size: 0.97rem; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: 2.5rem;
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #8faada; }
.footer-about p { margin-top: 1rem; max-width: 34ch; color: #a9c1ea; }
.site-footer h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: #fff; margin-bottom: 0.9rem; letter-spacing: 0.01em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #c9daf7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 0;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: #8faada;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.footer-bottom li { margin: 0; }
.socials { display: flex; gap: 0.6rem; margin-top: 1rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); }
.socials a:hover { background: rgba(255, 255, 255, 0.18); }
.socials svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Page 404 */
.error-page { min-height: 60vh; display: grid; align-items: center; }
.error-code { font-family: var(--serif); font-size: clamp(4rem, 12vw, 7rem); color: var(--blue-100); line-height: 1; margin: 0 0 0.5rem; }

/* Image indisponible : on garde le fond bleu clair sans icône cassée */
img.is-broken { visibility: hidden; }

/* Une seule entrée animée : le contenu de la grande photo d'accueil */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-inner > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-inner > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-inner > *:nth-child(4) { animation-delay: 0.24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

@media print {
  .site-header, .site-footer, .cta-band, .menu-toggle, form { display: none !important; }
  .hero, .page-hero { color: #000; background: none; min-height: 0; }
  .hero h1, .page-hero h1 { color: #000; }
}

/* Compléments */
.chain.chain-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 62rem; }
@media (max-width: 900px) { .chain.chain-3 { grid-template-columns: 1fr; } }
.prose dl .dl-row.is-filled { display: contents; }
.sites-title { margin-top: 2rem; }
#canevas-note { margin-top: 1rem; }
.panel > h2 { font-size: 1.6rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 560px) { .offer-photo { aspect-ratio: 16 / 9; } }
.page-hero .btn-row { margin-top: 1.75rem; }
.sites-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.sites-list li { display: flex; align-items: center; gap: 0.6rem; font-family: var(--serif); font-size: 1.12rem; color: var(--blue-950); }
.sites-list svg { width: 20px; height: 20px; color: var(--blue-700); }

/* Partage (pied de page) */
.share { margin-top: 1.5rem; }
.share-title { font-weight: 600; color: #fff; margin: 0 0 0.6rem; font-size: 0.95rem; }
.share-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 40px; padding: 0.45rem 0.85rem;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06); color: #e8f0fd;
  font: 500 0.9rem var(--sans); text-decoration: none; cursor: pointer;
}
.site-footer .share-btn:hover { background: rgba(255, 255, 255, 0.16); color: #fff; text-decoration: none; }
.share-btn svg { width: 18px; height: 18px; }
