/* TrackCar — site de présentation. Couleurs et police de l'application (lagune, jaune car, craie ; Archivo). */
:root {
  --lagune: #12304A;
  --lagune-2: #1B4263;
  --nuit: #0F2940;
  --jaune: #F2B705;
  --orange: #E8781E;
  --craie: #F2F4F1;
  --encre: #1A2530;
  --encre-2: #55626E;
  --trait: #DDE2DF;
  --feuille: #1E7A55;
  --signal: #C2362F;
  --blanc: #FFFFFF;
  --large: "wdth" 122;   /* titres : Archivo élargie, comme une signalétique */
  --etroit: "wdth" 80;   /* heures : Archivo resserrée */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--craie);
  color: var(--encre);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-variation-settings: var(--large); line-height: 1.08; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--jaune); color: var(--lagune); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Écran d'accueil animé (logo de l'application) */
.splash {
  position: fixed; inset: 0; z-index: 50; background: var(--lagune);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .45s ease, visibility .45s;
}
.sans-splash .splash, .splash.fini { opacity: 0; visibility: hidden; pointer-events: none; }
.sans-splash .splash { display: none; }
.splash-anim { width: min(240px, 60vw); aspect-ratio: 1; }
.splash-nom {
  margin-top: 6px; color: var(--blanc); font-weight: 800; font-size: 2rem; font-variation-settings: "wdth" 115;
  opacity: 0; transform: translateY(6px); animation: nom-arrive .5s ease-out .9s forwards;
}
.splash-nom span { color: var(--jaune); }
@keyframes nom-arrive { to { opacity: 1; transform: none; } }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-weight: 750; font-variation-settings: "wdth" 108; font-size: 1.05rem;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s;
}
.btn-petit { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn-jaune { background: var(--jaune); color: var(--lagune); }
.btn-jaune:hover { background: #FFC81F; }
.btn-ligne { border-color: rgba(255,255,255,.55); color: var(--blanc); }
.btn-ligne:hover { background: rgba(255,255,255,.08); }
.btn-lagune { background: var(--lagune); color: var(--blanc); }
.btn-lagune:hover { background: var(--lagune-2); }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* En-tête */
.top { background: var(--lagune); position: sticky; top: 0; z-index: 5; border-bottom: 1px solid rgba(255,255,255,.08); }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: rgba(255,255,255,.82); text-decoration: none; font-weight: 560; font-size: .98rem; }
.nav a:hover { color: var(--blanc); }

/* Hero : le car roule, la notification suit */
.hero { background: var(--lagune); color: var(--blanc); padding: 56px 0 72px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); font-weight: 860; letter-spacing: -.01em; max-width: 12ch; }
.chapeau { margin-top: 22px; font-size: 1.2rem; color: rgba(255,255,255,.84); max-width: 34em; }

.carte { position: relative; margin: 0; }
.carte-svg { width: 100%; height: auto; border-radius: 18px; }
.etiquette { fill: rgba(242,244,241,.78); font: 600 15px "Archivo", sans-serif; }

.notif {
  position: absolute; left: 22px; bottom: 22px; width: min(330px, calc(100% - 44px));
  background: var(--blanc); color: var(--encre); border-radius: 16px; padding: 14px 16px 16px;
  box-shadow: 0 18px 40px rgba(6, 20, 33, .45);
}
.notif-tete { display: flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--encre-2); }
.notif-tete img { width: 18px; height: 18px; }
.notif-heure::before { content: "·"; margin-right: 6px; }
.notif-titre { margin-top: 8px; font-weight: 760; font-size: 1.08rem; line-height: 1.25; }
.notif-texte { margin-top: 2px; font-size: .95rem; color: var(--encre-2); line-height: 1.35; }
.notif-barre { margin-top: 12px; height: 6px; background: #E6EAE8; border-radius: 3px; overflow: hidden; }
.notif-barre span { display: block; height: 100%; width: 0; background: var(--lagune); border-radius: 3px; }
.notif.change .notif-titre, .notif.change .notif-texte { animation: arrive .35s ease-out; }
@keyframes arrive { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .notif.change .notif-titre, .notif.change .notif-texte { animation: none; } }

/* Sections (les ancres du menu ne passent pas sous la barre du haut) */
section[id] { scroll-margin-top: 76px; }
section h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 820; color: var(--lagune); max-width: 20ch; }
.intro { margin-top: 14px; font-size: 1.15rem; color: var(--encre-2); max-width: 40em; }

/* Une matinée : la tournée sert de fil */
.matinee { padding: 96px 0 88px; }
.tournee-liste { list-style: none; margin: 48px 0 0; padding: 0; position: relative; max-width: 860px; }
.tournee-liste::before {
  content: ""; position: absolute; left: 92px; top: 10px; bottom: 10px; width: 6px;
  background: var(--jaune); border-radius: 3px;
}
.tournee-liste li { display: grid; grid-template-columns: 70px 1fr; gap: 54px; position: relative; padding-bottom: 44px; }
.tournee-liste li:last-child { padding-bottom: 0; }
.tournee-liste li::before {
  content: ""; position: absolute; left: 84px; top: 6px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--jaune); border: 5px solid var(--lagune);
}
.tournee-liste li:first-child::before { border-radius: 5px; background: var(--lagune); border-color: var(--craie); box-shadow: 0 0 0 2px var(--lagune); }
.tournee-liste li:last-child::before { background: var(--orange); border-color: var(--craie); box-shadow: 0 0 0 2px var(--orange); }
.tournee-liste time {
  font-variation-settings: var(--etroit); font-weight: 780; font-size: 1.6rem; color: var(--lagune);
  font-variant-numeric: tabular-nums; line-height: 1.1; text-align: right;
}
.tournee-liste h3 { font-size: 1.35rem; font-weight: 780; color: var(--encre); }
.tournee-liste p { margin-top: 6px; color: var(--encre-2); max-width: 36em; }
.tournee-liste .message {
  margin-top: 14px; display: inline-block; background: var(--blanc); border: 1px solid var(--trait);
  border-left: 4px solid var(--lagune); border-radius: 8px; padding: 10px 14px; color: var(--encre);
}
.message b { display: block; font-weight: 740; }

/* Pour l'école */
.ecole { background: var(--blanc); padding: 96px 0; }
.ecole-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.atouts { margin: 36px 0 0; display: grid; gap: 22px; }
.atouts div { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding-top: 20px; border-top: 1px solid var(--trait); }
.atouts dt { font-weight: 760; color: var(--lagune); }
.atouts dd { margin: 0; color: var(--encre-2); }

.flotte { background: var(--lagune); color: var(--blanc); border-radius: 18px; padding: 26px 24px; position: sticky; top: 100px; }
.flotte-titre { font-weight: 760; font-size: 1.1rem; display: flex; justify-content: space-between; gap: 12px; }
.flotte-titre span { color: var(--jaune); }
.flotte ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.flotte li { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.06); }
.plaque {
  align-self: flex-start; position: relative; padding: 3px 10px 3px 22px; border-radius: 5px;
  background: var(--blanc); color: #1A1A1A; border: 2px solid #1A1A1A;
  font-weight: 780; font-variation-settings: "wdth" 120; font-size: .95rem; letter-spacing: .02em;
}
.plaque::before { /* drapeau de la Côte d'Ivoire, comme sur les plaques */
  content: ""; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 11px; border-radius: 2px;
  background: linear-gradient(90deg, #F77F00 0 33%, #fff 33% 66%, #009E60 66%);
}
.etat { font-size: .95rem; color: rgba(255,255,255,.75); }
.etat-ok::before, .etat-alerte::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: #3BC48A; }
.etat-alerte { color: #FFD9D6; }
.etat-alerte::before { background: #FF6B5E; }

/* Sans chauffeur */
.sans-chauffeur { padding: 88px 0; border-top: 6px solid var(--jaune); }
.sans-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px; align-items: start; }
.sans-in p { font-size: 1.3rem; line-height: 1.5; color: var(--encre); max-width: 32em; }

/* Parents */
.parents { background: var(--blanc); padding: 96px 0; }
.parents-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: center; }
.points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; }
.points li { padding-left: 30px; position: relative; color: var(--encre-2); max-width: 36em; }
.points li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--jaune); border: 3px solid var(--lagune); }
.points b { color: var(--encre); }
.note { margin-top: 14px; font-size: .95rem; color: var(--encre-2); max-width: 34em; }

.telephone { justify-self: center; width: min(300px, 100%); padding: 12px; border-radius: 40px; background: #0E1E2C; box-shadow: 0 30px 60px rgba(18,48,74,.25); }
.tel-ecran { background: var(--craie); border-radius: 30px; overflow: hidden; padding-bottom: 18px; min-height: 520px; }
.tel-barre { background: var(--lagune); color: var(--blanc); text-align: center; font-weight: 760; padding: 30px 0 16px; font-variation-settings: "wdth" 112; font-size: 1.1rem; }
.tel-carte { margin: 14px 14px 0; background: var(--blanc); border: 1px solid var(--trait); border-radius: 16px; padding: 16px; }
.tel-nom { font-weight: 760; font-size: 1.05rem; }
.tel-grand { margin-top: 6px; font-weight: 820; font-size: 1.45rem; line-height: 1.15; color: var(--lagune); font-variation-settings: "wdth" 110; }
.tel-moyen { margin-top: 4px; font-weight: 680; color: var(--feuille); }
.tel-petit { margin-top: 6px; font-size: .9rem; color: var(--encre-2); }
.tel-progress { margin-top: 12px; height: 8px; border-radius: 4px; background: #E6EAE8; overflow: hidden; }
.tel-progress span { display: block; width: 72%; height: 100%; background: var(--jaune); }
.tel-bouton { margin-top: 14px; background: var(--lagune); color: var(--blanc); text-align: center; border-radius: 10px; padding: 11px; font-weight: 720; font-size: .95rem; }

/* Démo */
.demo { background: var(--lagune); color: var(--blanc); padding: 96px 0; }
.demo-in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.demo h2 { color: var(--blanc); }
.demo-texte p { margin-top: 16px; font-size: 1.15rem; color: rgba(255,255,255,.84); max-width: 30em; }

.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.champ { display: grid; gap: 6px; }
.champ-large, .form-erreur, .formulaire .btn { grid-column: 1 / -1; }
.champ label { font-weight: 640; font-size: .98rem; }
.champ label span { font-weight: 400; color: rgba(255,255,255,.65); }
.champ input, .champ textarea {
  width: 100%; font: inherit; color: var(--encre); background: var(--blanc);
  border: 2px solid transparent; border-radius: 10px; padding: 12px 14px; min-height: 50px;
}
.champ textarea { resize: vertical; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--jaune); }
.champ input[aria-invalid="true"] { border-color: #FF8A80; }
.champ input::placeholder { color: #8A949D; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-erreur { background: #FFE9E6; color: #8A1F17; border-radius: 10px; padding: 12px 14px; font-weight: 560; }
.formulaire .btn { justify-self: start; margin-top: 4px; }

.merci { background: var(--blanc); color: var(--encre); border-radius: 16px; padding: 28px; border-left: 8px solid var(--jaune); }
.merci h3 { font-size: 1.6rem; color: var(--lagune); }
.merci p { margin-top: 10px; font-size: 1.1rem; }

/* Pied de page */
.pied { background: var(--nuit); color: rgba(255,255,255,.75); padding: 36px 0; }
.pied-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.pied img { height: 38px; width: auto; }

/* Tablettes et téléphones */
@media (max-width: 960px) {
  .nav { display: none; }
  .top-in .btn { margin-left: auto; }
  .hero { padding-top: 36px; }
  .hero-in, .ecole-in, .sans-in, .parents-in, .demo-in { grid-template-columns: 1fr; gap: 40px; }
  .flotte { position: static; }
  .parents-in .telephone { order: 2; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand img { height: 36px; }
  .top-in { gap: 12px; }
  .btn-petit { padding: 0 12px; font-size: .88rem; }
  .matinee, .ecole, .parents, .demo { padding: 64px 0; }
  .sans-chauffeur { padding: 60px 0; }
  .notif { position: relative; left: auto; bottom: auto; width: 100%; margin-top: -40px; }
  .carte-svg { border-radius: 14px; }
  .tournee-liste::before { left: 9px; }
  .tournee-liste li { grid-template-columns: 1fr; gap: 6px; padding-left: 44px; }
  .tournee-liste li::before { left: 1px; }
  .tournee-liste time { text-align: left; font-size: 1.35rem; }
  .atouts div { grid-template-columns: 1fr; gap: 4px; }
  .formulaire { grid-template-columns: 1fr; }
  .formulaire .btn { justify-self: stretch; }
}
