/* Page de présentation publique.
 *
 * Elle réutilise les couleurs et les boutons de l'application (style.css) pour
 * qu'on reconnaisse la même main d'un écran à l'autre, mais elle respire
 * davantage : ici on lit, on ne travaille pas encore.
 */

.page-accueil {
  max-width: none;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

.page-accueil main { display: block; }

.page-accueil section,
.ac-nav,
.ac-pied > p {
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ------------------------------------------------------------ Barre du haut */

.ac-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 1rem;
}
.ac-marque {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em;
  text-decoration: none; color: var(--text);
}
.ac-marque__point {
  width: .7rem; height: .7rem; border-radius: 50%;
  background: linear-gradient(140deg, var(--brand-2, var(--brand)), var(--brand));
}
.page-accueil .btn { text-decoration: none; }
.ac-nav__cta { padding-inline: 1.1rem; }

/* ---------------------------------------------------------------- Ouverture */

.ac-hero { padding-block: 2.5rem 3.5rem; text-align: center; }
@media (min-width: 900px) {
  .ac-hero {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center; gap: 3rem; text-align: left;
    padding-block: 4rem 5rem;
  }
  .ac-hero .ac-lead { margin-inline: 0; }
  .ac-hero .ac-actions { justify-content: flex-start; }
}
.ac-oeil {
  display: inline-block; margin: 0 0 1rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  padding: .35rem .8rem; border-radius: 99px;
}
.ac-hero h1 {
  font-size: clamp(2.1rem, 7vw, 3.6rem); line-height: 1.08;
  letter-spacing: -.03em; margin: 0 0 1.1rem;
}
.ac-accent { color: var(--brand); }
.ac-lead {
  font-size: clamp(1rem, 2.4vw, 1.15rem); line-height: 1.6;
  color: var(--text-soft); max-width: 40rem; margin: 0 auto 1.8rem;
}
.ac-lead strong { color: var(--text); }

.ac-actions {
  display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center;
  margin-bottom: 1rem;
}
.ac-actions .btn { min-width: 15rem; }

.ac-note { font-size: .85rem; color: var(--text-soft); line-height: 1.55; margin: .8rem 0 0; }
.ac-note a { color: var(--brand); }

/* ----------------------------------------------------------------- Sections */

.ac-section { padding-block: 3rem; }
.ac-section h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: -.02em;
  margin: 0 0 .6rem; text-align: center;
}
.ac-sous {
  color: var(--text-soft); text-align: center; line-height: 1.6;
  max-width: 42rem; margin: 0 auto 2rem; font-size: .95rem;
}
.ac-sous strong { color: var(--text); }

.ac-section--cadre {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
  max-width: none;
  padding-inline: 1.25rem;
}
.ac-section--cadre > * { max-width: 68rem; margin-inline: auto; }

/* ------------------------------------------------------------------ Chiffres */

.ac-chiffres {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: .7rem;
}
.ac-chiffres > div {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 1.1rem .6rem; text-align: center; box-shadow: var(--shadow);
}
.ac-chiffres strong {
  display: block; font-size: 1.8rem; line-height: 1; color: var(--brand);
  letter-spacing: -.02em;
}
.ac-chiffres span {
  display: block; margin-top: .35rem; font-size: .78rem; color: var(--text-soft);
  line-height: 1.35;
}

/* ------------------------------------------------------------------ Paliers */

.ac-paliers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.ac-paliers li {
  display: flex; align-items: flex-start; gap: .8rem;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: .85rem 1rem;
  font-size: .92rem; line-height: 1.5; color: var(--text-soft);
}
.ac-paliers strong { color: var(--text); }
.ac-palier {
  flex: none; width: 2.6rem; text-align: center;
  font-weight: 800; font-size: .82rem; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border-radius: 99px; padding: .25rem 0;
}

/* ------------------------------------------------------------------- Cartes */

.ac-cartes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .9rem;
}
.ac-cartes article {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.3rem; box-shadow: var(--shadow);
}
.ac-cartes h3 { font-size: 1.05rem; margin: .6rem 0 .45rem; letter-spacing: -.01em; }
.ac-cartes p { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--text-soft); }
.ac-emoji { font-size: 1.6rem; line-height: 1; }

/* --------------------------------------------------------------- Installation */

.ac-install {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .9rem;
}
.ac-install article {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.2rem;
}
.ac-install h3 {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1rem; margin: 0 0 .8rem;
}
.ac-install ol { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.ac-install li { font-size: .88rem; line-height: 1.5; color: var(--text-soft); }
.ac-install strong { color: var(--text); }
.ac-touche {
  display: inline-block; min-width: 1.5rem; text-align: center;
  border: 1px solid var(--line); border-radius: 6px;
  padding: 0 .3rem; background: var(--bg-soft); font-size: .85rem;
}

/* --------------------------------------------------------------- Vie privée */

.ac-vie-privee {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: .9rem;
}
.ac-vie-privee > div {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.2rem;
}
.ac-vie-privee h3 { font-size: .95rem; margin: 0 0 .7rem; }
.ac-vie-privee ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.ac-vie-privee li { font-size: .88rem; line-height: 1.55; color: var(--text-soft); }
.ac-vie-privee strong { color: var(--text); }

/* -------------------------------------------------------------- Conclusion */

.ac-final { text-align: center; padding-block: 3.5rem 4rem; }
.ac-final h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); margin: 0 0 .7rem; letter-spacing: -.02em; }
.ac-final p { color: var(--text-soft); max-width: 34rem; margin: 0 auto 1.5rem; line-height: 1.6; }
.ac-final .btn { min-width: 16rem; }

.ac-pied {
  border-top: 1px solid var(--line); padding-block: 1.5rem;
  text-align: center; font-size: .84rem; color: var(--text-soft);
}
.ac-pied a { color: var(--brand); }

/* La page de présentation n'a ni barre d'application ni onglets. */
.page-accueil .appbar, .page-accueil .tabbar { display: none; }

@media (max-width: 520px) {
  .ac-nav__cta { padding-inline: .8rem; font-size: .85rem; }
  .ac-actions .btn { min-width: 100%; }
}

/* ------------------------------------------------------- Aperçu de l'app */
/* Un dessin en HTML plutôt qu'une capture : rien à recharger, net sur tous
   les écrans, et il ne se périmera pas au premier changement d'interface. */

.ac-apercu { display: none; }
@media (min-width: 900px) { .ac-apercu { display: block; } }

.ac-tel {
  width: 17rem; margin-inline: auto;
  border-radius: 2rem; padding: .55rem;
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 65%, #000), var(--brand));
  box-shadow: var(--shadow-lg, 0 12px 40px rgba(16,18,40,.16));
}
.ac-tel__barre { height: 1.1rem; display: grid; place-items: center; }
.ac-tel__barre span { width: 3.2rem; height: .28rem; border-radius: 99px; background: rgba(255,255,255,.5); }
.ac-tel__ecran {
  background: var(--bg); border-radius: 1.5rem; padding: .9rem;
  display: flex; flex-direction: column; gap: .55rem;
}

.ac-faux-entete { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .82rem; }
.ac-pastilles { display: flex; gap: .3rem; }
.ac-pastilles i {
  font-style: normal; font-size: .68rem; font-weight: 700;
  background: var(--bg-soft); border-radius: 99px; padding: .15rem .45rem; white-space: nowrap;
}

.ac-faux-carte {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: .7rem .8rem;
  display: flex; flex-direction: column; gap: .15rem;
}
.ac-faux-carte--mot { align-items: center; text-align: center; padding-block: .9rem; }
.ac-faux-niveau {
  align-self: center; font-size: .6rem; font-weight: 800; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border-radius: 99px; padding: .1rem .45rem; margin-bottom: .2rem;
}
.ac-faux-carte--mot strong { font-size: 1.15rem; letter-spacing: -.01em; }
.ac-faux-carte--mot em { font-size: .72rem; color: var(--text-soft); font-style: normal; }
.ac-faux-fr { font-size: .76rem; color: var(--text-soft); margin-top: .25rem; }

.ac-faux-progres > span { font-size: .74rem; font-weight: 600; }
.ac-faux-progres small { font-size: .64rem; color: var(--text-soft); }
.ac-faux-barre { height: 5px; border-radius: 99px; background: var(--bg-soft); margin: .35rem 0 .2rem; overflow: hidden; }
.ac-faux-barre i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }

.ac-faux-boutons { display: grid; grid-template-columns: 1.25fr 1fr; gap: .4rem; }
.ac-faux-btn {
  font-size: .68rem; font-weight: 700; text-align: center;
  padding: .5rem .3rem; border-radius: var(--r-sm);
  background: var(--bg-elev); border: 1px solid var(--line); color: var(--text-soft);
}
.ac-faux-btn--plein { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ------------------------------------------------------ Bloc installation */

.ac-install-action { text-align: center; margin-bottom: 1.4rem; }
.ac-install-action .btn { min-width: 17rem; }
.ac-install-action .ac-note { max-width: 34rem; margin-inline: auto; }

.ac-detail { max-width: 68rem; margin-inline: auto; }
.ac-detail > summary {
  cursor: pointer; text-align: center; font-size: .85rem; font-weight: 600;
  color: var(--brand); padding: .5rem; list-style: none;
}
.ac-detail > summary::-webkit-details-marker { display: none; }
.ac-detail > summary::after { content: ' ▾'; }
.ac-detail[open] > summary::after { content: ' ▴'; }
.ac-detail > .ac-install { margin-top: .8rem; }

/* --------------------------------------------------------------- Modale */

.ac-modale {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center; padding: 1.25rem;
  background: rgba(8, 10, 20, .55); backdrop-filter: blur(3px);
}
.ac-modale[hidden] { display: none; }
.ac-modale__boite {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.4rem; max-width: 24rem; width: 100%;
  box-shadow: var(--shadow-lg, 0 12px 40px rgba(0,0,0,.3));
  display: flex; flex-direction: column; gap: .7rem;
}
.ac-modale__boite h3 { font-size: 1.05rem; margin: 0; }
.ac-modale__boite ol { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.ac-modale__boite li { font-size: .88rem; line-height: 1.5; color: var(--text-soft); }
.ac-modale__boite strong { color: var(--text); }

/* ---------------------------------------------------- Très grands écrans */
/* 68 rem au milieu d'un 24 pouces laisse deux marges vides plus larges que
   le contenu lui-même. On respire un peu plus, sans jamais dépasser la
   longueur de ligne au-delà de laquelle un paragraphe devient pénible. */

@media (min-width: 1400px) {
  .page-accueil section,
  .ac-nav,
  .ac-pied > p,
  .ac-section--cadre > *,
  .ac-detail { max-width: 76rem; }

  .ac-hero { gap: 4rem; padding-block: 5rem 6rem; }
  .ac-hero h1 { font-size: 4rem; }
  .ac-lead { font-size: 1.2rem; max-width: 34rem; }
  .ac-tel { width: 19rem; }
  .ac-cartes, .ac-install { gap: 1.1rem; }
  .ac-cartes article { padding: 1.5rem; }
}

/* --------------------------------------------------------- Bande tablette */
/* Entre 620 et 900 px, le hero reste sur une colonne mais les cartes et les
   chiffres se mettent naturellement à deux ou trois de front — c'est la
   grille auto-fit qui s'en charge, il n'y a rien à ajouter. On soigne juste
   les respirations, trop serrées quand il y a de la place. */

@media (min-width: 620px) and (max-width: 899px) {
  .ac-hero { padding-block: 3rem 4rem; }
  .ac-hero h1 { font-size: 3rem; }
  .ac-actions { gap: .8rem; }
  .ac-actions .btn { min-width: 14rem; }
}

/* Le logo dans l'en-tete, a la place du point qui en tenait lieu. */
.ac-marque__logo { width: 26px; height: 26px; border-radius: 26%; }
