/* Vitrine « Ma Boîte à Loc » : mêmes couleurs que l'appli (vert d'eau), en plus chaleureux et ludique. */
:root {
  --fond: #fff8ec;
  --carte: #ffffff;
  --texte: #1d2b28;
  --texte-doux: #5a6b67;
  --principal: #0f766e;
  --principal-clair: #14b8a6;
  --principal-texte: #ffffff;
  --accent: #f59e0b;
  --accent-fond: #fff0cf;
  --bordure: #f0dfbf;
  --ombre: 0 6px 18px rgba(15, 118, 110, 0.12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #101a18;
    --carte: #182624;
    --texte: #eaf3f1;
    --texte-doux: #a2b7b2;
    --principal: #2dd4bf;
    --principal-clair: #0f766e;
    --principal-texte: #06201c;
    --accent: #fbbf24;
    --accent-fond: #3a2e12;
    --bordure: #2d423e;
    --ombre: 0 6px 18px rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* En-tête : bandeau coloré aux coins arrondis, avec le logo qui penche un peu */
.haut {
  text-align: center;
  padding: 40px 20px 44px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.22) 0 54px, transparent 56px),
    radial-gradient(circle at 90% 70%, rgba(245, 158, 11, 0.45) 0 70px, transparent 72px),
    linear-gradient(135deg, #0f766e, #14b8a6);
  border-radius: 0 0 36px 36px;
}
.logo {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: #fff;
  font-size: 44px;
  transform: rotate(-6deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.haut h1 { margin: 16px 0 6px; font-size: 2rem; line-height: 1.15; }
.haut p { margin: 0 auto; max-width: 22em; font-size: 1.1rem; opacity: 0.95; }

main { max-width: 520px; margin: 0 auto; padding: 8px 16px 8px; }
section { margin-top: 28px; }
h2 { margin: 0 0 12px; font-size: 1.25rem; }

.carte {
  position: relative;
  background: var(--carte);
  border: 2px solid var(--bordure);
  border-radius: 22px;
  padding: 20px 18px 18px;
  margin-bottom: 14px;
  box-shadow: var(--ombre);
}
.carte h3 { margin: 10px 0 4px; font-size: 1.15rem; }
.carte p { margin: 0 0 14px; color: var(--texte-doux); }
.pastille {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent-fond);
  font-size: 28px;
  transform: rotate(4deg);
}
.carte.bientot { border-style: dashed; box-shadow: none; background: transparent; }
.bouton.discret { background: transparent; color: var(--principal); border: 2px solid var(--principal); box-shadow: none; padding: 10px 16px; font-size: 1rem; }
.bouton.discret:disabled { cursor: default; }
.bouton.discret.fait { border-color: transparent; background: var(--accent-fond); color: var(--texte); }
.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #3b2a00;
  font-size: 0.8rem;
  font-weight: 700;
}

.bouton {
  display: block;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--principal);
  color: var(--principal-texte);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}
.bouton:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18); }

/* Page de présentation de l'appli (/affiches) */
button.bouton { width: 100%; border: 0; font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.bouton.gros { font-size: 1.3rem; padding: 20px; border-radius: 20px; }
.points { list-style: none; margin: 0; padding: 0; }
.points li { position: relative; margin-bottom: 10px; padding: 12px 14px 12px 46px; background: var(--carte); border: 2px solid var(--bordure); border-radius: 16px; }
.points li::before { content: "✓"; position: absolute; left: 14px; top: 11px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--principal); color: var(--principal-texte); font-weight: 700; font-size: 0.9rem; }
.installation { text-align: center; }
.installation .aide { margin: 12px 0 0; color: var(--texte-doux); font-size: 0.9rem; }
.installation .interne { margin: 0 0 8px; font-weight: 700; font-size: 1.1rem; }
.installation .installee { font-weight: 700; color: var(--principal); }
.lien-discret { display: inline-block; margin-top: 18px; color: var(--texte-doux); font-size: 0.9rem; }
.autres { margin: 30px 0 0; text-align: center; }
.autres a { color: var(--principal); font-weight: 600; }
.hors-ecran { position: fixed; left: -9999px; top: 0; opacity: 0; }

/* Animation iPhone : l'icône Partager clignote, puis la feuille de partage monte et met « Sur l'écran d'accueil » en évidence */
.anim-iphone { position: relative; overflow: hidden; width: 230px; height: 190px; margin: 0 auto 12px; border: 2px solid var(--bordure); border-radius: 22px; background: var(--carte); }
.anim-page { height: 140px; display: grid; place-items: center; font-size: 44px; color: var(--bordure); }
.anim-barre { position: absolute; left: 0; right: 0; bottom: 0; height: 50px; display: grid; place-items: center; border-top: 1px solid var(--bordure); background: var(--carte); }
.anim-partager { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--principal); font-weight: 700; animation: anim-clic 6s infinite; }
.anim-partager i { font-style: normal; font-size: 22px; line-height: 1; }
.anim-feuille { position: absolute; z-index: 2; left: 8px; right: 8px; bottom: 8px; padding: 12px 10px; border-radius: 16px; background: var(--fond); border: 1px solid var(--bordure); transform: translateY(120%); animation: anim-feuille 6s infinite; }
.anim-ligne { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--carte); font-weight: 600; font-size: 0.9rem; animation: anim-ligne 6s infinite; }
.anim-ligne b { font-size: 1.2rem; }
.anim-etapes { text-align: left; margin: 0 auto 4px; padding-left: 22px; max-width: 280px; color: var(--texte-doux); }
@keyframes anim-clic {
  0%, 40% { box-shadow: 0 0 0 0 transparent; background: transparent; }
  8%, 28% { box-shadow: 0 0 0 6px var(--principal); background: var(--accent-fond); }
  100% { box-shadow: 0 0 0 0 transparent; background: transparent; }
}
@keyframes anim-feuille {
  0%, 32% { transform: translateY(120%); }
  42%, 90% { transform: translateY(0); }
  100% { transform: translateY(120%); }
}
@keyframes anim-ligne {
  0%, 55% { box-shadow: 0 0 0 0 transparent; }
  62%, 85% { box-shadow: 0 0 0 3px var(--principal); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .anim-partager, .anim-feuille, .anim-ligne { animation: none; }
  .anim-feuille { transform: none; }
}

.video video { width: 100%; border-radius: 22px; background: #000; }

.bas { max-width: 520px; margin: 36px auto 0; padding: 20px 16px 40px; text-align: center; color: var(--texte-doux); font-size: 0.95rem; }
.bas p { margin: 0 0 6px; }
.bas a { color: var(--principal); font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .logo { animation: flotte 4s ease-in-out infinite; }
  @keyframes flotte { 50% { transform: rotate(-3deg) translateY(-4px); } }
}
