/* a-ULaB — feuille de style principale
   Palette reprise du site actuel : #3E40B7 (primaire), #4a67b0 (secondaire),
   #EDF0F7 (fond clair), #0D0D26 (encre), blanc.
   Polices : Assistant (titres), Source Sans Pro (texte). */

:root {
  color-scheme: light;
  --primary: #3E40B7;
  --primary-dark: #2c2d82;
  --primary-light: #7274cf;
  --secondary: #4a67b0;
  --light: #EDF0F7;
  --ink: #0D0D26;
  --text: #212529;
  --muted: #5b6472;
  --line: #dbe1ec;
  --white: #ffffff;
  --radius: 4px;
  --wrap: 1140px;
  --shadow: 0 1px 3px rgba(13,13,38,.08), 0 6px 24px rgba(13,13,38,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  font-family: Assistant, "Source Sans Pro", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.1em; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }
li { margin-bottom: .4em; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
strong { font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 72px 0; }
.section--light { background: var(--light); }
.section--tight { padding: 48px 0; }
.lead { font-size: 1.15rem; color: #36404f; }
.eyebrow {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--secondary); font-weight: 700; margin-bottom: .6em;
}

/* Accessibilité */
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--primary);
  color: #fff; padding: 10px 16px; z-index: 200;
}
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 2px; }

/* Bandeau utilitaire */
.topbar { background: var(--ink); color: #c9cde0; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding: 7px 20px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; margin-left: 18px; }
.topbar a:first-child { margin-left: 0; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line); backdrop-filter: saturate(180%) blur(8px);
}
.site-header .wrap, .topbar .wrap { max-width: 1260px; }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 132px; height: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav a {
  color: var(--ink); padding: 7px 9px; border-radius: var(--radius);
  font-size: .88rem; font-weight: 600; white-space: nowrap;
}
.nav a:hover { background: var(--light); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--primary); box-shadow: inset 0 -2px 0 var(--primary); }
.header-phone { font-weight: 700; color: var(--ink); white-space: nowrap; margin: 0 6px; font-size: .92rem; }
.header-phone:hover { color: var(--primary); text-decoration: none; }

.btn {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 11px 22px; border-radius: var(--radius); font-weight: 700;
  border: 2px solid var(--primary); font-size: .98rem; cursor: pointer;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--primary); }
.btn--ghost:hover { background: var(--primary); color: #fff; }
.btn--light { background: #fff; color: var(--primary); border-color: #fff; }
.btn--light:hover { background: var(--light); color: var(--primary-dark); border-color: var(--light); }
.btn--sm { padding: 8px 16px; font-size: .92rem; }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px 12px; font-size: 1rem; cursor: pointer;
}

/* Fil d'Ariane */
.crumbs { background: var(--light); border-bottom: 1px solid var(--line); font-size: .88rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 12px 0; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--muted); }
.crumbs a { color: var(--secondary); }
.crumbs [aria-current] { color: var(--muted); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--light) 0%, #fff 100%); padding: 68px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero p { font-size: 1.15rem; color: #36404f; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.hero--simple { padding: 56px 0 40px; background: var(--light); }
.hero--simple .lead { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Bandeau de preuves */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.proof-item { padding: 26px 22px; border-right: 1px solid var(--line); }
.proof-item:last-child { border-right: 0; }
.proof-item strong { display: block; font-family: Assistant, Arial, sans-serif; font-size: 1.45rem; color: var(--primary); line-height: 1.1; }
.proof-item span { font-size: .93rem; color: var(--muted); }

/* Grilles et cartes */
.grid { display: grid; gap: 26px; }
.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: 26px; display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .45em; }
.card p { color: #3c4654; margin-bottom: 1em; }
.card .card-link { margin-top: auto; font-weight: 700; color: var(--primary); }
.card--media { padding: 0; overflow: hidden; }
.card--media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card--media .card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card--flat { background: var(--light); border-color: transparent; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split--reverse .split-media { order: 2; }

.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }

.callout {
  border-left: 4px solid var(--primary); background: var(--light);
  padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }

.checks { list-style: none; padding: 0; }
.checks li { padding-left: 30px; position: relative; margin-bottom: .7em; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px;
  border-left: 3px solid var(--primary); border-bottom: 3px solid var(--primary);
  transform: rotate(-45deg);
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: .97rem; }
th { background: var(--ink); color: #fff; text-align: left; padding: 12px 14px; font-weight: 600; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:nth-child(even) { background: #f8fafc; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li {
  counter-increment: step; position: relative; padding-left: 58px; margin-bottom: 28px;
}
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff;
  font-family: Assistant, Arial, sans-serif; font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin-bottom: .3em; }

.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 12px; background: #fff;
}
.faq summary {
  cursor: pointer; font-weight: 700; font-family: Assistant, Arial, sans-serif;
  font-size: 1.08rem; color: var(--ink); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--primary); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { margin-bottom: 12px; }

/* Bandeau d'appel */
.cta {
  background: var(--primary); color: #fff; padding: 56px 0; text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: #e4e6fb; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta .actions { justify-content: center; }

/* Formulaire */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .95rem; }
input, select, textarea {
  font: inherit; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; color: var(--text);
}
textarea { min-height: 150px; resize: vertical; }
.hint { font-size: .87rem; color: var(--muted); }

/* Pied de page */
.site-footer { background: var(--light); padding: 56px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { font-size: .92rem; text-transform: uppercase; letter-spacing: .09em; color: var(--secondary); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .45em; }
.site-footer a { color: var(--ink); }
.site-footer img { width: 128px; margin-bottom: 16px; }
.footer-bottom {
  border-top: 1px solid var(--line); margin-top: 40px; padding: 20px 0;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: .88rem; color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
address { font-style: normal; }

@media (max-width: 960px) {
  .hero-grid, .split, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split--reverse .split-media { order: 0; }
  .hero-media { max-width: 460px; }
}
@media (max-width: 1180px) {
  .nav a { padding: 7px 8px; font-size: .87rem; }
}
@media (max-width: 620px) {
  .topbar-inner span:first-child { display: none; }
  .topbar-inner { justify-content: center; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .grid-2, .form-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    gap: 2px; padding: 12px 0 18px; order: 3;
  }
  .nav.is-open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .nav a { padding: 11px 8px; border-bottom: 1px solid var(--line); }
  .nav .btn { text-align: center; margin-top: 10px; border-bottom: 0; }
  .header-phone { display: none; }
}
@media (max-width: 520px) {
  .proof-grid { grid-template-columns: 1fr; }
  .proof-item { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media print {
  .site-header, .cta, .nav, .crumbs { display: none; }
  body { font-size: 12pt; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
