/* AÏGO — feuille de style du site */

@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --ink: #15212E;
  --muted: #4C5B69;
  --navy: #0F1E2D;
  --navy-2: #17293B;
  --navy-line: #263D52;
  --on-navy: #C9D4DD;
  --on-navy-muted: #9FB0BE;
  --blue: #1B2A9C;
  --blue-dark: #121C6B;
  --yellow: #F5E625;
  --line: #E3E8EC;
  --line-strong: #B9C6D0;
  --soft: #F2F6F8;
  --white: #FFFFFF;
  --radius: 14px;
  --display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--navy); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 16px; top: 16px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--soft { background: var(--soft); }
.section--tight { padding: 72px 0; }
.section--border { border-bottom: 1px solid var(--line); }

.eyebrow { font-family: var(--body); font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 14px; }
.h3 { font-size: 20px; margin-bottom: 8px; }
.intro { color: var(--muted); max-width: 720px; margin-bottom: 44px; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 16px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 8px; font-family: var(--body); font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); color: var(--white); }
.btn--outline { border: 1.5px solid #5C7184; color: var(--white); }
.btn--outline:hover { border-color: var(--white); color: var(--white); }
.btn--yellow { background: var(--yellow); color: var(--navy); }
.btn--yellow:hover { background: #E3D41A; color: var(--navy); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* En-tête */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.site-header__logo img { height: 72px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); }
.nav .btn { padding: 0 20px; box-shadow: none; color: var(--white); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .site-header__logo img { height: 56px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--white); font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:hover, .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
}

/* Bandeau de titre (pages intérieures et accueil) */
.hero { background: var(--navy); color: var(--white); }
.hero__inner { padding-top: 72px; padding-bottom: 80px; }
.hero--home .hero__inner { padding-top: 96px; padding-bottom: 104px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero__text { flex: 1 1 520px; min-width: 0; }
.hero .eyebrow { color: var(--yellow); }
.hero h1 { font-size: clamp(34px, 5.4vw, 54px); line-height: 1.1; letter-spacing: -0.02em; max-width: 880px; margin-bottom: 20px; }
.hero__lead { font-size: 20px; color: var(--on-navy); max-width: 740px; }
.hero__lead + .btn-row, .hero__lead + .btn, .hero__lead + .badges { margin-top: 32px; }
.crumbs { font-size: 15px; color: var(--on-navy-muted); margin-bottom: 16px; }
.crumbs a { color: var(--on-navy-muted); }
.crumbs a:hover { color: var(--white); }
.tiles { flex: 1 1 380px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tile { background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 12px; padding: 26px; }
.tile__value { font-family: var(--display); font-weight: 700; font-size: 38px; line-height: 1; }
.tile__label { margin-top: 8px; color: var(--on-navy); font-size: 15px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid #36506A; border-radius: 999px; font-weight: 600; font-size: 15px; }
.badge svg { flex: none; }
.pill-note { display: inline-block; padding: 10px 18px; border: 1px solid #5C7184; border-radius: 999px; font-size: 15px; color: var(--on-navy); }

/* Grilles et cartes */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--sm { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--xs { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .grid--2 { grid-template-columns: 1fr; } .tiles { grid-template-columns: 1fr 1fr; } }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: var(--white); }
.card--soft { background: var(--soft); border-color: transparent; }
.card--plain { border-color: transparent; }
.card--link { display: flex; flex-direction: column; gap: 14px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.card--link:hover { color: var(--ink); border-color: var(--blue); box-shadow: 0 6px 24px rgba(15, 30, 45, 0.08); }
.card--link .card__more { margin-top: auto; font-weight: 600; color: var(--blue); }
.card p { color: var(--muted); }
.section--soft .card { border-color: transparent; }
.icon { width: 40px; height: 40px; }
.code { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; flex: none; border-radius: 12px; background: var(--navy); color: var(--white); font-family: var(--display); font-weight: 700; font-size: 20px; }
.row-card { display: flex; gap: 24px; align-items: flex-start; }
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split__side { flex: 1 1 360px; min-width: 0; }
.split__main { flex: 1.4 1 520px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 14px; background: var(--white); border: 1px solid #D5DEE5; border-radius: 999px; font-size: 14px; font-weight: 600; }
.card .chip { background: var(--soft); border-color: transparent; }
.checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.checks svg { flex: none; margin-top: 2px; }
.bullets { padding-left: 20px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.stat { font-family: var(--display); font-weight: 700; font-size: 48px; color: var(--blue); line-height: 1.1; }
.stats { text-align: center; }
.steps { list-style: none; padding: 0; }
.steps li { background: var(--soft); border-radius: 12px; padding: 22px; border-top: 4px solid var(--blue); }
.steps .num { display: block; font-family: var(--display); font-weight: 700; color: var(--blue); }
.timeline-mini { border-top: 3px solid var(--navy); padding-top: 18px; }
.timeline-mini.is-now { border-color: var(--blue); }
.timeline-mini strong { display: block; font-family: var(--display); font-size: 22px; margin-bottom: 6px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--blue); }
.timeline li { padding: 0 0 32px 32px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline strong { display: block; font-family: var(--display); font-size: 20px; }
.timeline li:first-child strong { color: var(--blue); }
.partners { text-align: center; font-family: var(--display); font-weight: 700; font-size: 18px; color: #2C3A47; line-height: 2; }
.boxed { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; border: 2px solid var(--blue); border-radius: 16px; padding: 40px; }

/* Bandeau facturation électronique */
.band-yellow { background: var(--yellow); padding: 56px 0; color: var(--navy); }
.band-yellow .eyebrow { color: var(--navy); font-weight: 600; }
.band-yellow p { color: #2B2A10; }
.band-yellow .formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.band-yellow .format { background: var(--white); border-radius: 12px; padding: 20px; text-align: center; }
.band-yellow .format strong { display: block; font-family: var(--display); font-size: 18px; }
.band-yellow .format span { font-size: 15px; color: var(--muted); }
.feature-dark { display: flex; gap: 16px; align-items: flex-start; background: var(--navy); color: var(--white); border-radius: 12px; padding: 22px; }
.feature-dark strong { display: block; font-family: var(--display); font-size: 18px; }
.feature-dark span span { color: var(--on-navy); }
@media (max-width: 560px) { .band-yellow .formats { grid-template-columns: 1fr; } }

/* Bandeau de contact + pied de page */
.cta { background: var(--blue); color: var(--white); padding: 72px 0; }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 10px; }
.cta p { font-size: 18px; color: #DCE1F7; }
.cta .btn--outline { border-color: #8C96D9; }
.site-footer { background: var(--navy); color: #B7C3CE; padding: 64px 0 32px; font-size: 15px; }
.site-footer a { color: #B7C3CE; }
.site-footer a:hover { color: var(--white); }
.site-footer__title { font-family: var(--display); font-weight: 700; color: var(--white); margin-bottom: 12px; }
.site-footer__brand { font-size: 20px; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer ul a { text-decoration: none; }
.site-footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid #24384B; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 20px; }

/* Formulaire */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea { min-height: 48px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 12px; font: inherit; font-weight: 400; color: var(--ink); background: var(--white); width: 100%; }
.field textarea { padding: 12px; resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(27, 42, 156, 0.25); border-color: var(--blue); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); font-weight: 400; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 18px 22px; border-radius: 10px; margin-bottom: 24px; font-weight: 600; }
.alert--ok { background: #E6F4EA; color: #1E5631; border: 1px solid #A8D5B5; }
.alert--err { background: #FDECEC; color: #8A1F1F; border: 1px solid #F1B5B5; }
.contact-aside { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* Texte long (mentions légales…) */
.prose { max-width: 820px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose p { color: var(--muted); margin-bottom: 12px; }

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero__inner, .hero--home .hero__inner { padding-top: 56px; padding-bottom: 64px; }
  .card { padding: 24px; }
  .boxed { padding: 28px; }
  .row-card { gap: 16px; }
}
