/* Hero d'origine (MacBook + téléphone), conservé à la demande de l'utilisateur ; extrait de la version précédente. */
/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 56px 0 76px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 88% 8%, rgba(6, 132, 119, 0.10), transparent 46%),
    radial-gradient(ellipse at 6% 92%, rgba(31, 133, 138, 0.08), transparent 44%),
    var(--fond);
}
.hero__inner {
  display: grid;
  /* Plus de place pour le MacBook : il doit se lire comme un poste de
     travail large, pas comme une vignette carrée façon tablette. */
  grid-template-columns: 0.86fr 1.14fr;
  gap: 44px;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--teal-clair);
  color: var(--teal-fonce);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
  gap: 6px;
}
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--teal-titre); }
.hero__sous-titre {
  color: var(--texte-secondaire);
  font-size: 1.06rem;
  max-width: 32em;
  margin-bottom: 28px;
}
.hero__actions { margin-bottom: 22px; }
.hero__garanties {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--texte-secondaire);
  font-size: 0.9rem;
  font-weight: 500;
}
.hero__garanties .coche {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--teal-clair);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
}
/* ============================================================
   HERO VISUEL — maquette dashboard dans un portable
   ============================================================ */
.hero__visuel { position: relative; perspective: 1600px; }
/* ============================================================
   UN VRAI MACBOOK PRO — écran + charnière + socle aluminium,
   pas une fenêtre de navigateur qui flotte (ça faisait tablette).
   ============================================================ */
/* Calé sur le mockup de référence fourni : un CADRE UNIQUE (pas de fenêtre
   de navigateur imbriquée avec son propre arrondi), un écran large et bas
   (horizontal, pas carré), une base plate avec encoche centrée. */
.macbook { max-width: 700px; margin-left: auto; }
.macbook__ecran {
  position: relative;
  background: #1c1d1f;
  border-radius: 5px 5px 2px 2px;
  /* Bordure réduite de 80% (9/9/6px → ~2/2/1.5px) à la demande : un liseré
     fin plutôt qu'un bezel épais. */
  padding: 2px 2px 1.5px;
  box-shadow: 0 40px 80px rgba(18, 33, 46, 0.3), inset 0 0 0 1px rgba(255,255,255,0.05);
}
.macbook__camera {
  position: absolute;
  top: 0.7px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #05060f;
  box-shadow: 0 0 0 1px rgba(120,130,150,0.35);
}
/* Charnière : simple ligne de séparation entre écran et socle */
.macbook__charniere { height: 3px; background: #0e0f11; }
/* Socle/clavier vu de face, plus large que l'écran, fin et plat comme sur
   la référence, avec l'encoche d'ouverture au centre du bord avant. */
.macbook__socle {
  position: relative;
  height: 12px;
  margin: 0 -4.5%;
  background: linear-gradient(180deg, #d7d9db, #aeb1b4);
  border-radius: 0 0 9px 9px;
  box-shadow: 0 16px 24px -10px rgba(18, 33, 46, 0.38), inset 0 1px 0 rgba(255,255,255,0.6);
}
.macbook__encoche {
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 14%; height: 4px;
  background: #9a9d9f;
  border-radius: 0 0 6px 6px;
}
/* ============================================================
   TÉLÉPHONE — portail chauffeur mobile, superposé au coin du
   MacBook (mockup « poste de travail + mobile », comme fourni).
   ============================================================ */
.telephone {
  position: absolute;
  /* L'écran du MacBook est devenu large et bas (comme sur la référence) :
     à taille égale (26 %), le téléphone dépassait la hauteur de l'écran et
     cachait la moitié du contenu. Réduit et replacé pour ne recouvrir que
     le coin, comme sur le mockup fourni. */
  right: -2%;
  bottom: -22px;
  width: 18%;
  aspect-ratio: 9 / 19.5;
  background: #17181b;
  border-radius: 15% / 7%;
  box-shadow: 0 30px 50px rgba(18, 33, 46, 0.32), 0 0 0 1px rgba(255,255,255,0.04);
  /* Bordure réduite de 80% (3.2/2.4% → ~0.6/0.5%), comme sur le MacBook. */
  padding: 0.6% 0.5%;
  z-index: 2;
}
.telephone__encoche {
  position: absolute;
  top: 3.2%; left: 50%; transform: translateX(-50%);
  width: 34%; height: 3.2%;
  background: #05060f;
  border-radius: 999px;
  z-index: 1;
}
.telephone__ecran {
  position: relative;
  height: 100%;
  background: var(--fond, #f9fafe);
  /* Presque égal au rayon du châssis (15%/7%) : la bordure étant quasi
     nulle, un arrondi d'écran plus petit ferait dépasser les coins. */
  border-radius: 14% / 6.6%;
  overflow: hidden;
  padding: 15% 9% 4%;
  display: flex;
  flex-direction: column;
  font-family: var(--police-texte);
  /* Tout le contenu ci-dessous est en unités de conteneur (cqw), relatives à
     LA LARGEUR DU TÉLÉPHONE — jamais en rem/px fixes. Le téléphone fait
     ~166px sur desktop mais ~55px sur mobile (26 % d'un MacBook qui a lui
     aussi rétréci) : du texte en rem gardait la même taille absolue dans
     les deux cas, donc débordait complètement à petite échelle. */
  container-type: inline-size;
}
.tel__entete { display: flex; align-items: center; gap: 4cqw; }
.tel__avatar {
  width: 15cqw; height: 15cqw; border-radius: 50%; flex: none;
  background: var(--teal); color: #fff; font-size: 6cqw; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.tel__entete strong { display: block; font-size: 6.5cqw; line-height: 1.15; color: var(--texte); }
.tel__entete small { display: block; font-size: 5cqw; color: var(--texte-tertiaire); }
.tel__direct { width: 4cqw; height: 4cqw; border-radius: 50%; background: #16a34a; margin-left: auto; flex: none; }
.tel__bonjour { margin: 6cqw 0 0; font-size: 5cqw; color: var(--teal-fonce); font-weight: 700; }
.tel__titre { margin: 1cqw 0 4cqw; font-size: 7.5cqw; line-height: 1.15; font-weight: 800; color: var(--texte); font-family: var(--police-titres); }
.tel__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; }
.tel__stats div { background: #fff; border: 1px solid var(--bordure); border-radius: 4cqw; padding: 3cqw 1cqw; text-align: center; }
.tel__stats strong { display: block; font-size: 7cqw; color: var(--teal-fonce); }
.tel__stats span { display: block; font-size: 4cqw; color: var(--texte-tertiaire); }
.tel__mission {
  margin-top: 4cqw; background: #fff; border: 1px solid var(--bordure); border-radius: 4cqw;
  padding: 3cqw 4cqw; display: flex; align-items: center; justify-content: space-between; gap: 3cqw;
}
.tel__mission-en { display: flex; align-items: center; gap: 3cqw; font-size: 5cqw; font-weight: 700; color: var(--texte); overflow: hidden; }
.tel__mission-en span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tel__mission .dot { width: 3cqw; height: 3cqw; flex: none; }
.tel__mission .badge { font-size: 3.6cqw; padding: 1cqw 2.5cqw; white-space: nowrap; }
.tel__nav { margin-top: auto; display: flex; justify-content: space-around; padding-top: 4cqw; border-top: 1px solid var(--bordure); }
.tel__nav span { display: flex; flex-direction: column; align-items: center; gap: 0.5cqw; font-size: 6cqw; color: var(--texte-tertiaire); }
.tel__nav span.actif { color: var(--teal); }
.tel__nav small { font-size: 3.4cqw; font-weight: 700; }
.appareil {
  /* Pas de fond/arrondi propre : un seul cadre visible, celui du
     MacBook (.macbook__ecran) — sinon on voit deux bordures imbriquées. */
  border-radius: 2px 2px 0 0;
  overflow: hidden;
}
.appareil__barre {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: #1c1d1f;
}
.pastille { width: 10px; height: 10px; border-radius: 50%; }
.pastille--rouge { background: #ff5f57; }
.pastille--jaune { background: #febc2e; }
.pastille--vert { background: #28c840; }
.appareil__url {
  margin-left: 10px;
  flex: 1;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  font-size: 0.68rem;
  padding: 5px 12px;
  border-radius: 8px;
}
.app {
  display: grid;
  /* 128px ne suffisait pas : « 📊 Tableau de bord » débordait de sa pastille. */
  grid-template-columns: 150px 1fr;
  background: #fff;
  border-radius: 0 0 2px 2px;
  overflow: hidden;
  /* Volontairement plus bas que haut : un écran de laptop est horizontal,
     pas carré (calé sur le mockup de référence fourni). */
  min-height: 280px;
}
.app__sidebar {
  background: #f6f9fa;
  border-right: 1px solid var(--bordure);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.app__logo { margin-bottom: 12px; padding: 0 6px; }
.app__logo img { height: 16px; width: auto; display: block; }
.app__menu { display: flex; flex-direction: column; gap: 2px; }
.app__menu span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 9px;
  border-radius: 9px;
  font-size: 0.72rem;
  color: var(--texte-secondaire);
  white-space: nowrap;
  /* Filet de sécurité : si une entrée s'allonge, elle est tronquée
     proprement au lieu de sortir de sa pastille. */
  overflow: hidden;
  text-overflow: ellipsis;
}
.app__menu span.actif {
  background: var(--teal-clair);
  color: var(--teal-fonce);
  font-weight: 600;
}
.app__principal { padding: 13px 14px; display: flex; flex-direction: column; gap: 10px; }
.app__entete { display: flex; align-items: center; justify-content: space-between; }
.app__titre { font-weight: 700; font-size: 0.86rem; }
.app__live { display: inline-flex; align-items: center; color: #16a34a; font-size: 0.62rem; font-weight: 600; gap: 5px; }
.app__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #16a34a; animation: pulsation 1.4s infinite; }
.app__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.kpi {
  background: var(--fond);
  border: 1px solid var(--bordure);
  border-radius: 9px;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.kpi strong { font-family: var(--police-titres); font-size: 0.92rem; color: var(--teal); }
.kpi span { font-size: 0.58rem; color: var(--texte-secondaire); }
.kpi .variation { font-size: 0.56rem; color: #16a34a; font-style: normal; }
/* Une seule rangée de 4 colonnes (calée sur le mockup de référence fourni :
   un écran de laptop est large et bas, jamais carré) — pas deux rangées
   empilées comme avant, qui poussaient l'écran vers un format portrait. */
.app__grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: stretch; }
.app__graph, .app__recent, .app__carte, .app__cours {
  background: var(--fond);
  border: 1px solid var(--bordure);
  border-radius: 9px;
  padding: 9px;
  display: flex;
  flex-direction: column;
  min-width: 0; /* autorise le texte à tronquer dans une colonne étroite */
}
.graph { display: flex; align-items: flex-end; gap: 2px; flex: 1; min-height: 60px; }
.graph span {
  flex: 1;
  background: linear-gradient(180deg, var(--teal-titre), var(--teal));
  border-radius: 2px 2px 0 0;
  min-height: 8%;
  opacity: 0.85;
}
.routes { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.routes li { display: flex; align-items: center; gap: 4px; justify-content: space-between; }
.route b { display: block; font-size: 0.6rem; color: var(--texte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route small { display: block; font-size: 0.54rem; color: var(--texte-tertiaire); white-space: nowrap; }
.badge { flex: none; font-size: 0.52rem; font-weight: 600; padding: 2px 6px; border-radius: 999px; white-space: nowrap; }
.badge--vert { background: #d8f3ec; color: var(--teal-fonce); }
.badge--orange { background: #fdeed8; color: var(--orange); }
/* Carte de France : suivi GPS des camions en tournée */
.carte-fr { display: block; width: 100%; height: 100%; }
.carte-fr__sol {
  fill: rgba(255, 255, 255, 0.72);
  stroke: rgba(6, 132, 119, 0.35);
  stroke-width: 0.9;
  stroke-linejoin: round;
}
.carte-fr__axe {
  fill: none;
  stroke: rgba(6, 132, 119, 0.45);
  stroke-width: 0.8;
  stroke-dasharray: 2.5 2;
}
.carte-fr__villes circle { fill: var(--teal); opacity: 0.55; }
.carte-fr__camion circle {
  fill: var(--teal);
  stroke: #fff;
  stroke-width: 1.1;
  filter: drop-shadow(0 1px 2px rgba(6, 132, 119, 0.45));
}
.carte-fr__camion--charge circle { fill: var(--orange); }
.carte__direct {
  position: absolute;
  top: 5px; right: 6px;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--teal-fonce);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.app__cours ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
/* Colonne étroite (4 par rangée) : nom + badge sur deux lignes plutôt
   qu'entassés sur une seule, qui les cassait sur trois lignes. */
.app__cours li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 0.58rem; color: var(--texte); }
.app__cours li > span:not(.dot) { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot--vert { background: #16a34a; }
.dot--bleu { background: #2f7ce0; }
.etat { flex: 0 0 100%; margin-left: 13px; font-size: 0.54rem; font-weight: 600; padding: 1px 6px; border-radius: 999px; white-space: nowrap; width: fit-content; }
.etat--route { background: #d8f3ec; color: var(--teal-fonce); }
.etat--charge { background: #e3eefc; color: #2f7ce0; }
.etat--livre { background: #e9f7ec; color: #16a34a; }
@keyframes pulsation { 0%,100% { transform: scale(1); } 50% { transform: scale(1.3); } }
@keyframes apparaitre { from { opacity: 0; } }
@keyframes monter { from { opacity: 0; transform: translateY(20px) scale(0.98); } }
/* Ouverture du hero : un enchaînement orchestré, décalé depuis le JS. */
.entree { opacity: 0; animation: entree-monter 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes entree-monter {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Le visuel suit la souris (transform posé par le JS) : on adoucit le retour. */
.macbook { transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform; transform-style: preserve-3d; }
/* Halo animé derrière le hero — remplace les « particules » qui n'ont jamais
   tourné (leur conteneur #particules n'existait pas dans le HTML). */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  top: -220px; right: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 132, 119, 0.16), rgba(6, 132, 119, 0) 68%);
  animation: halo-flotte 16s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  bottom: -200px; left: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 145, 27, 0.12), rgba(233, 145, 27, 0) 68%);
  animation: halo-flotte 21s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; }
@keyframes halo-flotte {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-38px, 34px) scale(1.09); }
}
@media (prefers-reduced-motion: reduce) {
.entree { opacity: 1; animation: none; }
}
@media (max-width: 980px) {
.hero__inner { grid-template-columns: 1fr; text-align: center; }
.hero__sous-titre { margin-inline: auto; }
.hero__actions, .hero__garanties { justify-content: center; }
.hero__visuel { max-width: 560px; margin-inline: auto; }
}
@media (max-width: 760px) {
.app { grid-template-columns: 1fr; }
.app__sidebar { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--bordure); }
.app__menu { flex-direction: row; }
.app__menu span { white-space: nowrap; }
.app__logo { display: none; }
.app__kpis { grid-template-columns: repeat(2, 1fr); }
.app__grille { grid-template-columns: repeat(2, 1fr); }
}
/* ============================================================
   ÉCRAN DE MACBOOK RÉALISTE — proportions 16:10 à toutes les
   tailles : le bureau est dessiné à 1000 × 625 px puis réduit
   (--k, calculé par landing.js), jamais réorganisé. Barre des
   menus, fond d'écran Keynex, fenêtre de l'app et Dock.
   ============================================================ */
.macbook__vue { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px 3px 0 0; --k: .56; }
.macbook__camera {
  top: 2px; width: 10%; height: auto; aspect-ratio: 5.2 / 1;
  border-radius: 0 0 7px 7px; background: #05060a; box-shadow: none; z-index: 3;
}
.bureau {
  position: absolute; left: 0; top: 0; width: 1000px; height: 625px;
  transform: scale(var(--k)); transform-origin: 0 0;
  font-family: var(--police-texte); overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 18% 12%, rgba(143, 240, 217, .38), transparent 60%),
    radial-gradient(ellipse 55% 60% at 88% 92%, rgba(14, 165, 164, .55), transparent 60%),
    radial-gradient(ellipse 40% 40% at 55% 55%, rgba(255, 255, 255, .06), transparent 70%),
    linear-gradient(140deg, #02241f 0%, #044b43 42%, #067a6d 72%, #0a9a88 100%);
}
.bureau::before {
  content: ""; position: absolute; inset: -20%;
  background: repeating-radial-gradient(circle at 70% 120%, rgba(255, 255, 255, .045) 0 2px, transparent 2px 46px);
}
.bureau__filigrane { position: absolute; width: 360px; height: 360px; left: 50%; top: 52%; transform: translate(-50%, -50%); opacity: .12; filter: brightness(0) invert(1); pointer-events: none; }
.bureau__menu {
  position: absolute; left: 0; right: 0; top: 0; height: 26px; z-index: 2;
  display: flex; align-items: center; gap: 18px; padding: 0 14px;
  background: rgba(0, 0, 0, .28); backdrop-filter: blur(12px);
  color: #fff; font-size: 13px; line-height: 1;
}
.bureau__menu b { font-weight: 700; }
.bureau__menu > span { opacity: .92; }
.bureau__pomme { width: 15px; height: 15px; border-radius: 4px; background: #fff url(/img/logo-icone.png) center / 13px no-repeat; }
.bureau__droite { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.bureau__wifi { width: 15px; height: 11px; border-radius: 15px 15px 0 0; border: 2.5px solid #fff; border-bottom: 0; opacity: .95; }
.bureau__batterie { width: 22px; height: 11px; border: 1.5px solid #fff; border-radius: 3px; position: relative; }
.bureau__batterie::after { content: ""; position: absolute; left: 1.5px; top: 1.5px; bottom: 1.5px; width: 70%; background: #fff; border-radius: 1px; }
.bureau .appareil {
  position: absolute; left: 90px; top: 64px; width: 820px; height: 432px; z-index: 1;
  border-radius: 11px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 .5px rgba(0, 0, 0, .5);
}
.bureau .appareil__barre { background: #ecedef; padding: 9px 12px; border-bottom: 1px solid #d9dbde; }
.bureau .appareil__url { background: #fff; color: #5a6b74; text-align: center; border: 1px solid #dfe2e5; }
.bureau .app { height: calc(100% - 39px); min-height: 0; grid-template-columns: 150px 1fr; border-radius: 0; }
.bureau .app__sidebar { flex-direction: column; overflow: visible; border-right: 1px solid var(--bordure); border-bottom: 0; }
.bureau .app__menu { flex-direction: column; }
.bureau .app__logo { display: block; }
.bureau .app__kpis, .bureau .app__grille { grid-template-columns: repeat(4, 1fr); }
.bureau__dock {
  position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; gap: 8px; padding: 7px 9px; border-radius: 16px;
  background: rgba(255, 255, 255, .2); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .25);
}
.bureau__dock span { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; font-family: var(--police-titres); box-shadow: 0 3px 8px rgba(0, 0, 0, .2); }
@media (max-width: 760px) {
.macbook__ecran { border-radius: 4px 4px 2px 2px; }
.bureau__dock span { width: 36px; height: 36px; }
}
.macbook, .hero__visuel { width: 100%; }
/* Le menu est désormais fixé en haut de l'écran : le hero commence sous lui. */
.hero { padding-top: 140px; }
@media (max-width: 640px) { .hero { padding-top: 112px; } }
