/* Suivi de commande ActuFut · charte v4 : noir, lavande en touche, Jost, lumière et grain. */
:root {
  --noir: #0A0A0B;
  --carbone: #131316;
  --trait: rgba(255, 255, 255, .07);
  --trait-fort: rgba(255, 255, 255, .14);
  --blanc: #FFFFFF;
  --gris: #8E8E93;
  --gris-clair: #B8B8BE;
  --violet: #A895EC;
  --violet-clair: #C9BEF6;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--noir); color: var(--blanc); }
body {
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}
/* Jamais un noir plat : faisceau violet venu d'en haut, et grain léger. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(70% 48% at 50% -6%, rgba(168, 149, 236, .13), transparent 72%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 20px max(26px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Ligne d'info de la charte : rubrique en blanc, détail en gris, capitales espacées. */
.info {
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gris);
  margin: 0;
  white-space: nowrap;
}
.info b { color: var(--blanc); font-weight: 500; }
.point { color: var(--violet); }

.haut { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.haut .logo { width: 92px; height: auto; display: block; }

/* Titre */
.titre { margin-top: 44px; }
.titre h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(30px, 8.6vw, 38px);
  line-height: 1.08;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.titre p {
  margin: 12px 0 0;
  max-width: 34ch;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--gris-clair);
}

/* Jauge : les anneaux du cachet, le point violet du logo avance avec la livraison. */
.jauge {
  position: relative;
  width: min(296px, 78vw);
  aspect-ratio: 1;
  margin: 34px auto 0;
}
.jauge::before {
  content: "";
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(168, 149, 236, .2), rgba(168, 149, 236, .06) 55%, transparent 100%);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  pointer-events: none;
}
.jauge.termine::before { transform: scale(1.08); background: radial-gradient(closest-side, rgba(168, 149, 236, .3), rgba(168, 149, 236, .08) 55%, transparent 100%); }
.jauge svg { position: relative; width: 100%; height: 100%; display: block; overflow: visible; }
.jauge .pointilles { stroke: rgba(255, 255, 255, .26); }
.jauge .anneau { stroke: rgba(255, 255, 255, .08); }
.jauge .arc, .jauge .lueur {
  stroke-dasharray: 0 100;
  transition: stroke-dasharray 1.4s var(--ease), opacity .4s;
}
.jauge .bout {
  transform-box: view-box;
  transform-origin: 160px 160px;
  transform: rotate(0deg);
  transition: transform 1.4s var(--ease), opacity .4s;
}
.jauge .onde {
  transform-box: fill-box;
  transform-origin: center;
  animation: onde 2.2s var(--ease) infinite;
}
@keyframes onde {
  0% { transform: scale(.6); opacity: .55; }
  80%, 100% { transform: scale(2.6); opacity: 0; }
}
.jauge.attente .bout { animation: orbite 3.2s linear infinite; }
@keyframes orbite { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.jauge.termine .onde { animation: none; opacity: 0; }

.centre {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.nombre {
  display: flex;
  align-items: baseline;
  font-weight: 300;
  font-size: clamp(70px, 22vw, 92px);
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  margin-top: .06em;
}
.nombre small {
  font-size: .3em;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--gris);
  margin-left: .14em;
}
.jauge.attente .nombre { color: var(--gris-clair); }
.legende { margin-top: 10px; }

.direct { margin: 26px 0 0; text-align: center; }
.direct .pastille {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 .7em .1em 0;
  border-radius: 50%;
  background: var(--violet);
  vertical-align: middle;
  animation: pouls 1.8s var(--ease) infinite;
}
.direct.calme .pastille { background: var(--gris); animation: none; }
.direct.fini .pastille { animation: none; }
@keyframes pouls {
  0% { box-shadow: 0 0 0 0 rgba(168, 149, 236, .6); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(168, 149, 236, 0); }
}

/* Chiffres */
.chiffres {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 26px 0 0;
  border: 1px solid var(--trait);
  border-radius: 14px;
  background: rgba(19, 19, 22, .78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.chiffres div { padding: 15px 6px 14px; text-align: center; min-width: 0; }
.chiffres div + div { border-left: 1px solid var(--trait); }
.chiffres dt { font-size: 9.5px; letter-spacing: .26em; }
.chiffres dd {
  margin: 8px 0 0;
  font-weight: 300;
  font-size: clamp(17px, 5.4vw, 22px);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.chiffres dd.cle { color: var(--violet); }

/* À savoir : la liste à coches de la charte. */
.savoir { margin-top: 34px; }
.savoir ul { list-style: none; margin: 10px 0 0; padding: 0; }
.savoir li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--trait);
  font-size: 15px;
  line-height: 1.45;
  color: var(--gris-clair);
}
.savoir li:last-child { border-bottom: 1px solid var(--trait); }
.savoir li b { color: var(--blanc); font-weight: 500; }
.savoir svg { width: 16px; height: 16px; margin-top: 3px; stroke: var(--violet); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Contact */
.contact {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 40px 1fr 16px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--trait-fort);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .15s var(--ease);
}
.contact:hover { border-color: rgba(168, 149, 236, .5); background: rgba(168, 149, 236, .05); }
.contact:active { transform: scale(.985); }
.contact .ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .05);
}
.contact .ico svg { width: 19px; height: 19px; stroke: var(--blanc); stroke-width: 1.7; fill: none; }
.contact .texte { min-width: 0; }
.contact b { display: block; font-weight: 500; font-size: 15px; color: var(--blanc); }
.contact small { display: block; font-size: 13px; line-height: 1.4; color: var(--gris); margin-top: 3px; }
.contact .fleche { width: 16px; height: 16px; stroke: var(--gris); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.pied {
  margin-top: auto;
  padding-top: 38px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.pied .info { font-size: 9.5px; color: #7C7C82; }
.pied a { text-decoration: none; }

.introuvable { margin-top: 26vh; }

/* Entrée en douceur, une ligne après l'autre. */
.monte { animation: monte .8s var(--ease) both; }
.monte:nth-child(2) { animation-delay: .06s; }
.monte:nth-child(3) { animation-delay: .12s; }
.monte:nth-child(4) { animation-delay: .18s; }
.monte:nth-child(5) { animation-delay: .24s; }
.monte:nth-child(6) { animation-delay: .3s; }
.monte:nth-child(7) { animation-delay: .36s; }
/* Jamais d'opacité 0 au départ : si l'animation ne joue pas, le contenu reste lisible. */
@keyframes monte { from { opacity: .45; transform: translateY(12px); } }

@media (min-width: 700px) {
  .page { padding-top: 40px; }
  .jauge { width: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

[hidden] { display: none !important; }
.info.direct { white-space: normal; letter-spacing: .22em; line-height: 1.9; }

/* Après la livraison : recommander et partager en story. */
.apres {
  margin-top: 30px;
  padding: 20px 18px 18px;
  border: 1px solid rgba(168, 149, 236, .35);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(168, 149, 236, .08), rgba(19, 19, 22, .7));
}
.apres h2 { margin: 10px 0 0; font-weight: 500; font-size: 24px; letter-spacing: -.01em; }
.apres p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--gris-clair); }
.apres .petit { font-size: 13px; color: var(--gris); margin-top: 12px; }
.boutons { margin-top: 16px; display: grid; gap: 8px; }
.bouton-plein, .bouton-ligne {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  font: inherit;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .16em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s var(--ease);
}
.bouton-plein { background: var(--violet); color: var(--noir); border: 1px solid var(--violet); }
.bouton-plein:hover { background: var(--violet-clair); }
.bouton-ligne { background: transparent; color: var(--blanc); border: 1px solid var(--trait-fort); }
.bouton-ligne:hover { border-color: rgba(255, 255, 255, .3); }
.bouton-plein:active, .bouton-ligne:active { transform: scale(.98); }
.bouton-ligne:disabled { opacity: .6; cursor: default; }

/* Image de story quand le téléphone ne propose pas le partage direct. */
.apercu-story {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 20px;
  background: rgba(10, 10, 11, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  text-align: center;
}
.apercu-story img { max-height: 68vh; max-width: 100%; border-radius: 14px; border: 1px solid var(--trait-fort); }
.apercu-story p { margin: 0; max-width: 32ch; font-size: 15px; line-height: 1.5; color: var(--gris-clair); }
.apercu-story .bouton-ligne { min-width: 160px; }

/* Avis du client, une fois livré : étoiles, mot facultatif, accord de publication. */
.avis {
  margin-top: 30px;
  padding: 20px 18px 18px;
  border: 1px solid var(--trait-fort);
  border-radius: 16px;
  background: rgba(19, 19, 22, .8);
}
.avis h2 { margin: 10px 0 0; font-weight: 500; font-size: 24px; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.avis > p:not(.info) { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--gris-clair); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.avis-form { margin-top: 14px; }
.etoiles { position: relative; display: flex; gap: 2px; margin: 0 0 0 -4px; padding: 0; border: 0; min-width: 0; }
.etoiles input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.etoiles label { display: block; padding: 4px; border-radius: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.etoiles svg {
  display: block;
  width: 44px;
  height: 44px;
  fill: rgba(255, 255, 255, .05);
  stroke: rgba(255, 255, 255, .3);
  stroke-width: 1.3;
  stroke-linejoin: round;
  transition: fill .2s, stroke .2s, transform .3s var(--ease), filter .3s;
}
.etoiles label:active svg { transform: scale(.88); }
.etoiles input:focus-visible + label { outline: 2px solid var(--violet); outline-offset: 1px; }
/* Sans script, l'étoile choisie s'allume ; avec, toutes jusqu'à la note (ou jusqu'à celle survolée). */
.etoiles:not(.js) input:checked + label svg { fill: var(--violet); stroke: var(--violet); }
.etoiles:not([data-survol])[data-note="1"] label:nth-of-type(-n+1) svg,
.etoiles:not([data-survol])[data-note="2"] label:nth-of-type(-n+2) svg,
.etoiles:not([data-survol])[data-note="3"] label:nth-of-type(-n+3) svg,
.etoiles:not([data-survol])[data-note="4"] label:nth-of-type(-n+4) svg,
.etoiles:not([data-survol])[data-note="5"] label:nth-of-type(-n+5) svg {
  fill: var(--violet);
  stroke: var(--violet);
  filter: drop-shadow(0 0 8px rgba(168, 149, 236, .45));
}
.etoiles[data-survol="1"] label:nth-of-type(-n+1) svg,
.etoiles[data-survol="2"] label:nth-of-type(-n+2) svg,
.etoiles[data-survol="3"] label:nth-of-type(-n+3) svg,
.etoiles[data-survol="4"] label:nth-of-type(-n+4) svg,
.etoiles[data-survol="5"] label:nth-of-type(-n+5) svg { fill: var(--violet-clair); stroke: var(--violet-clair); }
.sens { margin: 8px 0 0; min-height: 1.5em; font-size: 14px; color: var(--gris-clair); }
.suite { display: grid; gap: 16px; margin-top: 18px; }
.suite.apparait { animation: monte .6s var(--ease) both; }
.mot { position: relative; display: grid; gap: 8px; }
.mot textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  color: var(--blanc);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--trait-fort);
  border-radius: 12px;
  padding: 12px 14px 28px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.mot textarea::placeholder { color: #5E5E64; }
.mot textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(168, 149, 236, .16); }
.compteur { position: absolute; right: 12px; bottom: 9px; font-size: 11.5px; color: #6E6E74; font-variant-numeric: tabular-nums; pointer-events: none; }
.accord { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14.5px; line-height: 1.45; color: var(--gris-clair); cursor: pointer; }
.accord input {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--trait-fort);
  border-radius: 7px;
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.accord input::after { content: ""; width: 10px; height: 5px; margin-top: -3px; border: solid var(--noir); border-width: 0 0 2px 2px; transform: rotate(-45deg); opacity: 0; }
.accord input:checked { background: var(--violet); border-color: var(--violet); }
.accord input:checked::after { opacity: 1; }
.accord input:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.erreur { margin: 0; font-size: 14px; line-height: 1.45; color: #F07A7E; }
.avis-form .bouton-plein { width: 100%; }
.avis .petit { margin: 0; font-size: 13px; line-height: 1.5; color: var(--gris); }
.avis .petit a { color: var(--violet-clair); text-underline-offset: 2px; }
.avis .boutons { margin-top: 14px; }
.recap-avis { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--trait); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.etoiles-fixes { display: inline-flex; gap: 3px; vertical-align: middle; }
.etoiles-fixes svg { width: 17px; height: 17px; fill: rgba(255, 255, 255, .14); }
.etoiles-fixes svg.pleine { fill: var(--violet); }
.texte-avis { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--blanc); white-space: pre-line; overflow-wrap: anywhere; }
.modifier-avis { margin-top: 12px; }
.modifier-avis summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--violet-clair);
  cursor: pointer;
}
.modifier-avis summary::-webkit-details-marker { display: none; }
.modifier-avis[open] summary { color: var(--gris); }

/* Page publique des avis : note moyenne, répartition, avis du plus récent au plus ancien. */
.global {
  margin-top: 30px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px 18px;
  border: 1px solid var(--trait);
  border-radius: 16px;
  background: rgba(19, 19, 22, .78);
}
.moyenne { margin: 0; font-weight: 300; font-size: 58px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.moyenne small { margin-left: 6px; font-size: 17px; font-weight: 400; letter-spacing: 0; color: var(--gris); }
.etoiles-moyenne { position: relative; display: inline-block; margin-top: 10px; line-height: 0; }
.etoiles-moyenne > span { display: flex; gap: 3px; }
.etoiles-moyenne .pleines { position: absolute; top: 0; left: 0; bottom: 0; overflow: hidden; }
.etoiles-moyenne svg { flex: none; width: 17px; height: 17px; fill: rgba(255, 255, 255, .14); }
.etoiles-moyenne .pleines svg { fill: var(--violet); }
.global .compte { margin: 8px 0 0; font-size: 13px; color: var(--gris-clair); white-space: nowrap; }
.repartition { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.repartition li { display: grid; grid-template-columns: 10px 1fr 22px; gap: 10px; align-items: center; font-size: 12px; color: var(--gris); font-variant-numeric: tabular-nums; }
.repartition li span:last-child { text-align: right; }
.niveau { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.niveau i { display: block; height: 100%; border-radius: inherit; background: var(--violet); }
.liste-avis { margin-top: 12px; display: grid; gap: 10px; }
.carte-avis { padding: 16px 16px 15px; border: 1px solid var(--trait); border-radius: 16px; background: rgba(19, 19, 22, .8); }
.haut-carte { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.carte-avis blockquote { margin: 10px 0 0; font-size: 15.5px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.carte-avis .signature { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--gris); }
.carte-avis .signature b { font-weight: 500; color: var(--gris-clair); }
.vide-avis { margin: 22px 0 0; padding: 30px 8px; text-align: center; font-size: 14.5px; line-height: 1.5; color: var(--gris); }
.page-avis .apres { margin-top: 26px; }
.regles { margin-top: 30px; }
