/* Time to Move · Montpellier — mêmes couleurs et mêmes formes que l'appli */

:root {
  --fuchsia: #e6418e;
  --fuchsia-clair: #fde7f1;
  --encre: #111114;
  --gris: #636366;
  --gris-clair: #8e8e93;
  --fond: #f2f2f7;
  --carte: #fff;
  --trait: #e5e5ea;
  --vert: #1e9646;
  --l1: #005aaa; --l2: #ff8c00; --l6: #e6418e;
  --rayon: 18px;
  --large: min(1120px, 100% - 40px);
}

@media (prefers-color-scheme: dark) {
  :root { --encre: #f2f2f7; --gris: #aeaeb2; --gris-clair: #7c7c80; --fond: #000; --carte: #1c1c1e; --trait: #2c2c2e; --fuchsia-clair: #3a1426; }
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--encre);
  background: var(--fond);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--fuchsia); }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }
.gris { color: var(--gris); font-size: 14px; }

.ico { width: 18px; height: 18px; fill: currentColor; vertical-align: -3px; margin-right: 6px; }

.ligne {
  display: inline-grid; place-items: center;
  min-width: 26px; height: 22px; padding: 0 6px; border-radius: 6px;
  color: #fff; font-weight: 700; font-size: 13px; margin-right: 8px; vertical-align: 1px;
}
.l1 { background: var(--l1); } .l2 { background: var(--l2); } .l6 { background: var(--l6); }

/* Barre du haut */
.barre {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(20px, (100% - 1120px) / 2);
  background: color-mix(in srgb, var(--fond) 82%, transparent);
  backdrop-filter: blur(14px);
}
.marque { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--encre); text-decoration: none; }
.marque .ville { color: var(--gris); font-weight: 500; }
.pastille { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--fuchsia); color: #fff; font-size: 16px; }
.barre nav { display: flex; gap: 24px; }
.barre nav a { color: var(--encre); text-decoration: none; font-weight: 500; font-size: 15px; }
.barre nav a:hover { color: var(--fuchsia); }

/* En-tête */
.une {
  width: var(--large); margin: 0 auto; padding: 56px 0 72px;
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center;
}
.sur-titre { display: flex; align-items: center; gap: 8px; color: var(--vert); font-weight: 600; font-size: 15px; margin-bottom: 18px; }
.point { width: 8px; height: 8px; border-radius: 50%; background: var(--vert); animation: pouls 1.8s infinite; }
@keyframes pouls { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--vert) 25%, transparent); } }
h1 { font-size: clamp(42px, 5.4vw, 76px); font-weight: 800; letter-spacing: -0.035em; }
h1 span, h1 em { display: block; }
h1 em { font-style: normal; color: var(--fuchsia); }
@media (min-width: 901px) { h1 span, h1 em { white-space: nowrap; } }
.chapo { font-size: clamp(19px, 2.2vw, 24px); color: var(--gris); margin: 22px 0 32px; max-width: 30ch; }
.boutons { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 18px; border-radius: 14px; background: var(--encre); color: var(--fond); cursor: default;
}
.store svg { width: 26px; height: 26px; fill: currentColor; }
.store span { display: flex; flex-direction: column; font-weight: 700; font-size: 19px; line-height: 1.1; }
.store small { font-weight: 500; font-size: 12px; opacity: 0.75; }
.plus-tard { color: var(--gris); font-size: 15px; }

/* Le téléphone */
.telephone {
  justify-self: center; width: 300px; aspect-ratio: 9 / 19; padding: 12px;
  border-radius: 46px; background: #111; box-shadow: 0 30px 60px -20px rgb(230 65 142 / 0.35), 0 0 0 1px #333 inset;
  rotate: 3deg; transition: rotate 0.6s;
}
.telephone:hover { rotate: 0deg; }
.ecran {
  height: 100%; border-radius: 36px; padding: 46px 14px 22px; display: flex; flex-direction: column;
  background: radial-gradient(120% 70% at 50% 0%, #3b1a2c, #121214 70%); color: #fff; text-align: center;
}
.heure { font-size: 64px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.date { opacity: 0.7; font-size: 14px; margin-bottom: 28px; }
.notif { background: #fff; color: #111; border-radius: 18px; padding: 12px 14px; text-align: left; margin-bottom: 10px; }
.notif-tete { font-size: 12px; color: #666; display: flex; align-items: center; }
.notif-tete .ligne { min-width: 20px; height: 18px; font-size: 11px; margin-right: 6px; }
.notif-tete.fort { color: var(--l1); font-weight: 700; font-size: 12px; white-space: nowrap; letter-spacing: -0.01em; }
.fleche { margin: 0 4px; }
.decompte { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.jauge { height: 5px; border-radius: 3px; background: #e5e5ea; overflow: hidden; }
.jauge span { display: block; height: 100%; width: 40%; background: var(--fuchsia); transition: width 1s linear; }
.notif-pied { font-size: 12px; color: var(--vert); margin-top: 8px; }
.notif.vibre { font-size: 13px; animation: vibre 4s infinite; }
/* L'histoire animée du téléphone (page.js) */
.ecran { position: relative; overflow: hidden; }
.ecran::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: #000;
  opacity: 0; pointer-events: none; transition: opacity 0.7s ease;
}
.ecran.eteint::after { opacity: 1; }
.heure, .date { transition: opacity 0.35s, transform 0.5s cubic-bezier(.2, .8, .2, 1); }
.ecran.occupe .heure { transform: scale(0.82) translateY(-6px); }
.heure.change { opacity: 0; }
.pile { display: grid; gap: 8px; min-width: 0; }
.pile > .notif { min-width: 0; }
.notif { transition: transform 0.55s cubic-bezier(.2, .8, .2, 1), opacity 0.4s, background 0.4s, color 0.4s; transform-origin: top center; }
.notif.arrive { opacity: 0; transform: translateY(-26px) scale(0.94); }
.notif.part { opacity: 0; transform: scale(0.92); }
.notif.alerte { background: var(--fuchsia); color: #fff; }
.notif.alerte .notif-tete { color: #fff; }
.notif .etat { font-size: 12px; font-weight: 600; color: var(--fuchsia); margin-top: 6px; }
.notif .arrets { font-size: 13px; color: #555; margin-top: 4px; }
.notif.alerte .arrets { color: #fff; }
.notif strong.gros { display: block; font-size: 17px; margin-top: 2px; }
.telephone.secoue { animation: secoue 0.5s cubic-bezier(.36, .07, .19, .97); }
@keyframes secoue {
  10%, 90% { translate: -1px 0; }
  20%, 80% { translate: 3px 0; }
  30%, 50%, 70% { translate: -5px 0; }
  40%, 60% { translate: 5px 0; }
}

.dock { margin-top: auto; display: flex; justify-content: space-between; padding: 0 18px; }
.dock span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / 0.14); }
.dock svg { width: 20px; height: 20px; fill: #fff; }
.notif.vibre .notif-tete { color: var(--fuchsia); font-weight: 600; }
@keyframes vibre {
  0%, 80%, 100% { translate: 0; }
  82%, 86%, 90% { translate: -3px 0; }
  84%, 88% { translate: 3px 0; }
}

/* Confidentialité */
.vie-privee, .trajet, .soutenir, .faq { width: var(--large); margin: 0 auto; padding: 72px 0; }
.intro { font-size: 19px; color: var(--gris); max-width: 52ch; margin-bottom: 36px; }
.engagements { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.engagements li { background: var(--carte); border-radius: var(--rayon); padding: 32px 24px 28px; text-align: center; }
.engagements svg { display: block; width: 64px; height: 64px; margin: 0 auto 18px; fill: var(--fuchsia); }
.engagements h3 { font-size: 18px; margin-bottom: 8px; }
.engagements p { color: var(--gris); font-size: 15px; }

/* La ligne de tram : chaque moment du trajet est une station */
.ligne-tram { list-style: none; padding: 0; margin-top: 40px; position: relative; }
.ligne-tram::before {
  content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 6px; margin-left: -3px;
  border-radius: 3px; background: var(--fuchsia);
}
.station { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 34px 0; position: relative; }
.station::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border-radius: 50%; background: var(--fond); border: 5px solid var(--fuchsia);
}
.station:nth-child(even) .station-texte { order: 2; }
.station-texte { max-width: 420px; justify-self: end; }
.station:nth-child(even) .station-texte { justify-self: start; }
.etape { text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; font-weight: 700; color: var(--fuchsia); margin-bottom: 6px; }
.station h3 { font-size: 28px; margin-bottom: 10px; }
.station-texte p:last-child { color: var(--gris); font-size: 17px; }

.mini { background: var(--carte); border-radius: var(--rayon); padding: 20px; width: min(360px, 100%); box-shadow: 0 12px 30px -18px rgb(0 0 0 / 0.25); }
.station:nth-child(odd) .mini { justify-self: start; }
.station:nth-child(even) .mini { justify-self: end; }
.mini p { margin-bottom: 6px; }
.mini-titre { color: var(--fuchsia); font-weight: 600; font-size: 14px; }
.suivi-tete { display: flex; align-items: center; }
.suivi-temps { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.trace { margin-top: 12px; border-left: 4px solid var(--fuchsia); margin-left: 6px; padding-left: 16px; display: grid; gap: 10px; }
.arret { position: relative; font-size: 14px; }
.arret::before { content: ""; position: absolute; left: -24px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--carte); border: 3px solid var(--fuchsia); }
.arret.bus { font-weight: 600; }
.arret.bus::after { content: "tram"; margin-left: 8px; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--fuchsia); color: #fff; }
.arret.toi { font-weight: 700; }
.choix { padding: 10px 12px; border-radius: 12px; background: var(--fond); font-size: 15px; }
.choix.moi { background: var(--fuchsia); color: #fff; }
.bulle { background: var(--fuchsia-clair); padding: 12px 14px; border-radius: 16px 16px 16px 4px; font-size: 15px; }
.lien { font-size: 13px; color: var(--fuchsia); text-decoration: underline; }

/* Hors de l'appli */
.hors-appli {
  width: var(--large); margin: 0 auto 24px; padding: 48px; border-radius: 28px;
  background: var(--encre); color: var(--fond);
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center;
}
.hors-appli p { opacity: 0.85; font-size: 18px; margin-bottom: 16px; max-width: 46ch; }
.chiffre strong { color: var(--fuchsia); font-size: 22px; }
.widget { background: #fff; color: #111; border-radius: 24px; padding: 18px; }
.widget-tete { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--fuchsia); margin-bottom: 10px; }
.widget p { display: flex; align-items: center; padding: 8px 0; border-top: 1px solid #eee; font-size: 15px; }
.widget b { margin-left: auto; font-size: 18px; }
.widget .theorique { color: #8e8e93; }

/* Soutenir */
.soutenir { text-align: center; }
.soutenir .intro { margin-inline: auto; }
.frais { list-style: none; padding: 0; max-width: 560px; margin: 0 auto 32px; background: var(--carte); border-radius: var(--rayon); text-align: left; }
.frais li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--trait); }
.frais li:first-child { border-top: 0; }
.frais li span:last-child { color: var(--gris); font-size: 15px; }
.frais .iphone span:first-child { font-weight: 700; color: var(--fuchsia); }
.don {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-radius: 999px;
  background: var(--fuchsia); color: #fff; font-weight: 700; font-size: 18px; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.don:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px var(--fuchsia); }
.don svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.don .vapeur { animation: vapeur 2s infinite; }
@keyframes vapeur { 50% { opacity: 0.3; translate: 0 -2px; } }
.petit { margin-top: 14px; color: var(--gris); font-size: 15px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { background: var(--carte); border-radius: 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%; font-size: 24px; color: var(--fuchsia); transition: rotate 0.2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 20px 18px; color: var(--gris); }

/* Pied */
.pied { text-align: center; padding: 48px 20px 64px; color: var(--gris); font-size: 14px; display: grid; gap: 6px; }
.pied strong { color: var(--encre); }

/* Apparition au défilement */
.reveler { opacity: 0; translate: 0 24px; transition: opacity 0.7s, translate 0.7s; }
.reveler.vu { opacity: 1; translate: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveler { opacity: 1; translate: 0; }
}

/* Tablette et téléphone */
@media (max-width: 900px) {
  .barre nav { display: none; }
  .une { grid-template-columns: 1fr; padding-top: 28px; text-align: left; }
  .telephone { width: min(300px, 82vw); rotate: 0deg; padding: 10px; }
  .ecran { padding-inline: 10px; }
  .notif { padding: 11px 12px; }
  .notif-tete.fort { font-size: 11px; letter-spacing: -0.02em; }
  .notif-tete .ligne { min-width: 18px; height: 17px; margin-right: 5px; }
  .engagements { grid-template-columns: 1fr 1fr; }
  .ligne-tram::before { left: 11px; }
  .station { grid-template-columns: 1fr; gap: 18px; padding: 26px 0 26px 44px; }
  .station::before { left: 11px; top: 40px; }
  .station:nth-child(even) .station-texte { order: 0; }
  .station-texte, .station:nth-child(even) .station-texte, .station .mini { justify-self: start !important; }
  .hors-appli { grid-template-columns: 1fr; padding: 32px 24px; }
}
@media (max-width: 560px) {
  .engagements { grid-template-columns: 1fr; }
  .vie-privee, .trajet, .soutenir, .faq { padding: 52px 0; }
}
