/* Biblioche — site de présentation (accueil des visiteurs, tarifs).
 *
 * Mêmes jetons que l'application (base.css), clair ou sombre selon
 * l'appareil. Une promesse en grand, beaucoup d'air ; les illustrations sont
 * les vrais écrans de Biblioche, recomposés en HTML, pas des images.
 * Aucune ressource externe, aucun style en ligne (CSP style-src 'self').
 */

.contenu.large {
  max-width: 72rem;
}

.vitrine {
  --livre: #efe7d6;
}

/* Titres de section « à la Apple » : une phrase forte, la suite en gris. */
.titre-section {
  margin: 0 0 var(--espace-5);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 22ch;
}
.titre-section span {
  color: var(--encre-douce);
}
.texte-section {
  max-width: 34rem;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--encre-douce);
}
.grand-bouton {
  min-height: 3.25rem;
  padding: 0 var(--espace-6);
  font-size: var(--t-moyen);
  border-radius: 999px;
  white-space: nowrap;
}
@media (max-width: 24rem) {
  .grand-bouton {
    padding: 0 var(--espace-5);
    font-size: var(--t-base);
  }
}

.bloc {
  padding: clamp(4rem, 10vw, 7.5rem) 0 0;
}
.bloc.premier {
  padding-top: var(--espace-6);
}
/* Une bande de fond qui court sur toute la largeur, sans faire déborder la page. */
.bande {
  margin-top: clamp(4rem, 10vw, 7.5rem);
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: var(--surface);
  box-shadow: 0 0 0 100vmax var(--surface);
  clip-path: inset(0 -100vmax);
}
.bande .meuble-demo {
  background: var(--papier);
}

/* --- La promesse ------------------------------------------------------------------ */

.une {
  display: grid;
  gap: var(--espace-7);
  align-items: center;
  padding: var(--espace-6) 0 0;
}
@media (min-width: 56rem) {
  .une {
    grid-template-columns: 1.35fr 0.65fr;
    padding-top: var(--espace-7);
  }
}
.une h1 {
  margin: 0 0 var(--espace-5);
  font-size: clamp(2.6rem, 6.4vw, 4.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.une h1 span {
  color: var(--accent);
}
.une-chapeau {
  max-width: 32rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.45;
  color: var(--encre-douce);
}
.une-actions {
  margin: var(--espace-6) 0 var(--espace-3);
}
.une-rassurer {
  font-size: 0.9375rem;
  color: var(--encre-douce);
}

/* Le téléphone : la vraie carte du scan, au-dessus du viseur. */
.une-image {
  justify-self: center;
  width: min(100%, 20rem);
}
.telephone {
  width: 17rem;
  margin: 0 auto;
  aspect-ratio: 9 / 19;
  border: 9px solid #111;
  border-radius: 2.75rem;
  background: #111;
  box-shadow:
    0 0 0 1px var(--filet-fort),
    0 40px 80px -20px rgb(0 0 0 / 0.35);
  transform: rotate(-2deg);
}
.ecran {
  position: relative;
  height: 100%;
  border-radius: 2.1rem;
  overflow: hidden;
  background: #000;
}
.viseur {
  position: absolute;
  inset: 0 0 45%;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 55%, #3a352d 0%, #0d0c0b 75%);
}
.dos-livre {
  width: 66%;
  padding: 0.6rem 0.75rem 0.35rem;
  background: var(--livre);
  border-radius: 2px;
  transform: rotate(-5deg);
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.6);
  text-align: center;
}
.dos-chiffres {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: #1a1714;
}
.code-barres {
  display: block;
  width: 100%;
  height: auto;
  fill: #1a1714;
}
.carte-scan {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem 1rem 1.1rem;
  background: var(--papier);
  color: var(--encre);
  border-radius: 1.1rem 1.1rem 0 0;
  box-shadow: 0 -10px 30px rgb(0 0 0 / 0.35);
}
.poignee {
  display: block;
  width: 2rem;
  height: 0.25rem;
  margin: 0 auto 0.6rem;
  border-radius: 999px;
  background: var(--filet-fort);
}
.carte-titre {
  margin: 0 0 0.6rem;
  font-weight: 700;
  font-size: 1rem;
}
.carte-livre-mini {
  display: grid;
  grid-template-columns: 2.9rem 1fr;
  gap: 0.7rem;
  align-items: center;
}
.carte-livre-mini .jaquette {
  container-type: inline-size;
}
/* Le titre est écrit juste à côté : la mini-jaquette n'est qu'une reliure. */
.carte-livre-mini .jaquette-repli {
  display: none;
}
.carte-livre-mini p {
  margin: 0;
}
.mini-titre {
  font-family: var(--titre);
  font-weight: 650;
  font-size: 0.95rem;
}
.mini-auteur {
  font-size: 0.75rem;
  color: var(--encre-douce);
}
.carte-livre-mini .etiquette {
  margin-top: 0.25rem;
  font-size: 0.65rem;
}
.carte-ou {
  margin: 0.7rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.faux-bouton {
  display: block;
  padding: 0.55rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--sur-accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
}

/* --- Trois agacements ------------------------------------------------------------------ */

.agacements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: var(--espace-5);
}
.agacement {
  display: flex;
  flex-direction: column;
  padding: var(--espace-5);
  background: var(--surface);
  border-radius: 20px;
}
.agacement .avant {
  margin: 0 0 var(--espace-3);
  font-family: var(--titre);
  font-style: italic;
  font-size: var(--t-moyen);
  color: var(--encre-douce);
}
.agacement h3 {
  margin: 0 0 var(--espace-2);
  font-size: var(--t-grand);
  letter-spacing: -0.02em;
}
.agacement > p:not(.avant) {
  flex: 1;
  color: var(--encre-douce);
}
.apercu {
  display: flex;
  flex-wrap: wrap;
  gap: var(--espace-2);
  align-items: center;
  margin-top: var(--espace-3);
  padding: var(--espace-3) var(--espace-4);
  background: var(--papier);
  border-radius: var(--rayon);
  font-size: 0.9375rem;
}
.apercu span:not(.etiquette) {
  color: var(--encre-douce);
}

/* --- Étagère par étagère -------------------------------------------------------------- */

.deux-colonnes {
  display: grid;
  gap: var(--espace-7);
  align-items: center;
}
@media (min-width: 56rem) {
  .deux-colonnes {
    grid-template-columns: 1fr 1fr;
  }
}
.points-cles {
  list-style: none;
  padding: 0;
  margin: var(--espace-5) 0 0;
  display: grid;
  gap: var(--espace-3);
  max-width: 32rem;
}
.points-cles li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--encre-douce);
}
.points-cles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
}
.points-cles strong {
  color: var(--encre);
}

/* Le meuble : des dos de livres titrés, posés sur des planches. */
.meuble-demo {
  position: relative;
  padding: var(--espace-3) var(--espace-3) var(--espace-2);
  background: var(--papier);
  border: 8px solid var(--bois);
  border-radius: 6px;
  box-shadow: 0 30px 60px -25px rgb(0 0 0 / 0.35);
}
.meuble-demo-nom {
  margin: 0 0 var(--espace-2);
  font-weight: 700;
  color: var(--encre-douce);
  font-size: var(--t-petit);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rayon {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 7.5rem;
  padding: 0 var(--espace-1);
  border-bottom: 7px solid var(--bois);
  margin-bottom: var(--espace-2);
  overflow: hidden;
}
.dos-demo {
  flex: 0 0 auto;
  width: 2.15rem;
  height: 92%;
  padding: 0.45rem 0;
  background: var(--teinte);
  color: #f4ecdc;
  border-radius: 2px 2px 0 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--titre);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: inset -3px 0 0 rgb(0 0 0 / 0.18);
}
.dos-demo:nth-child(3n) {
  height: 84%;
}
.dos-demo:nth-child(4n + 2) {
  height: 100%;
  width: 2.5rem;
}
.dos-demo.cherche {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  transform: rotate(180deg) translateY(0.6rem);
}
.bulle-trouve {
  position: absolute;
  right: 1rem;
  bottom: -1.4rem;
  margin: 0;
  padding: 0.45rem 0.85rem;
  background: var(--accent);
  color: var(--sur-accent);
  border-radius: 999px;
  font-size: 0.9375rem;
  box-shadow: var(--ombre);
}

/* --- Confiance ------------------------------------------------------------------------- */

.engagements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--espace-6) var(--espace-5);
}
.engagements svg {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--accent);
}
.engagements h3 {
  margin: var(--espace-3) 0 var(--espace-2);
  font-size: var(--t-moyen);
}
.engagements p {
  color: var(--encre-douce);
}

/* --- Offres ------------------------------------------------------------------------------ */

.offres {
  display: grid;
  gap: var(--espace-5);
  margin: var(--espace-5) 0 var(--espace-3);
  max-width: 72rem;
}
@media (min-width: 60rem) {
  .offres {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
/* Le paiement n'est pas ouvert : le bouton le dit, et ne fait rien. */
.bouton.bientot {
  background: var(--surface-2);
  color: var(--encre-douce);
  border-color: transparent;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}
.offres-note {
  max-width: 72rem;
  margin: 0 0 var(--espace-5);
  color: var(--encre-douce);
  font-size: var(--t-petit);
  text-align: center;
}
.offre {
  display: flex;
  flex-direction: column;
  padding: var(--espace-6) var(--espace-5) var(--espace-5);
  background: var(--surface);
  border-radius: 22px;
}
.offre h3 {
  margin: 0;
  font-size: var(--t-moyen);
}
.prix {
  margin: var(--espace-3) 0 var(--espace-1);
}
.montant-prix {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.periode,
.offre-resume {
  color: var(--encre-douce);
}
.offre ul {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: var(--espace-3) 0 var(--espace-5);
  display: grid;
  gap: var(--espace-2);
}
.offre li::before {
  content: "✓";
  margin-right: 0.55rem;
  color: var(--vert);
  font-weight: 700;
}
.offre li.limite::before {
  color: var(--orange);
}

/* Comparaison des formules : coches vertes, coches orange (limité), croix rouges. */
.comparaison {
  max-width: 52rem;
  overflow-x: auto;
}
.comparaison table {
  background: var(--surface);
  border-radius: 18px;
}
.comparaison th,
.comparaison td {
  padding: 0.85rem var(--espace-4);
  vertical-align: middle;
  border-bottom: 1px solid var(--filet);
}
.comparaison tr:last-child > * {
  border-bottom: 0;
}
.comparaison thead th {
  font-size: var(--t-base);
  color: var(--encre);
  text-align: center;
}
.comparaison tbody th {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--encre);
}
.comparaison td {
  width: 9.5rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
}
.case-oui {
  color: var(--vert);
}
.case-limite {
  color: var(--orange);
}
.case-non {
  color: var(--retard);
}
.precision {
  display: block;
  font-size: var(--t-petit);
  font-weight: 600;
}
.legende-cases {
  margin-top: var(--espace-3);
  font-size: var(--t-petit);
  color: var(--encre-douce);
}
.legende-cases span {
  font-weight: 800;
}
@media (max-width: 30rem) {
  .comparaison th,
  .comparaison td {
    padding: 0.7rem var(--espace-2);
  }
  .comparaison td {
    width: 5.5rem;
  }
}
.offre-action {
  margin: 0;
}
.recommandee {
  outline: 2px solid var(--accent);
}

/* --- Questions et fin ----------------------------------------------------------------- */

.questions {
  max-width: 46rem;
  background: var(--surface);
  border-radius: var(--rayon);
  padding: 0 var(--espace-4);
}
.questions details + details {
  border-top: 1px solid var(--filet);
}
.questions details > summary {
  justify-content: space-between;
  gap: var(--espace-4);
  padding: var(--espace-3) 0;
  color: var(--encre);
  font-weight: 600;
}
.questions details > summary::after {
  border-color: var(--encre-douce);
}
.questions details p {
  margin-top: 0;
  color: var(--encre-douce);
}

.final {
  margin-top: clamp(4rem, 10vw, 7.5rem);
  padding: clamp(3rem, 8vw, 5rem) var(--espace-4);
  text-align: center;
  background: var(--surface);
  border-radius: 28px;
}
.final h2 {
  margin: 0 auto var(--espace-3);
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.03em;
}
.final p {
  color: var(--encre-douce);
}

.slogan-une {
  margin: 0 0 var(--espace-3);
  font-size: var(--t-petit);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- La promesse centrée, puis les appareils (version actuelle) ------------------- */

.une.une-centree {
  display: block;
  text-align: center;
  padding-bottom: 0;
}
.une-centree .une-texte {
  max-width: 62rem;
  margin: 0 auto;
}
.une-centree h1 {
  max-width: none;
}
.une-centree .une-chapeau {
  margin-left: auto;
  margin-right: auto;
}

/* Un ordinateur portable et un iPhone posé devant, aux proportions réelles. */
.appareils {
  position: relative;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  max-width: 62rem;
  padding: 0 clamp(2.5rem, 9vw, 6rem) clamp(1rem, 3vw, 2rem) 0;
}
.appareils img {
  display: block;
  width: 100%;
  height: auto;
}
.ordi-ecran {
  position: relative;
  padding: 2.2% 2.2% 2.6%;
  background: #0c0c0d;
  border-radius: 14px 14px 4px 4px;
  box-shadow:
    0 0 0 1px #3a3a3c,
    0 30px 70px -30px rgb(0 0 0 / 0.45);
}
.ordi-ecran img {
  border-radius: 3px;
}
/* La base du portable, plus large que l'écran, avec son encoche. */
.ordi-base {
  position: relative;
  height: clamp(0.6rem, 1.6vw, 1.1rem);
  margin: 0 -6%;
  background: linear-gradient(#d5d5d8, #a9a9ad);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 18px 30px -18px rgb(0 0 0 / 0.5);
}
.ordi-base::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 14%;
  height: 45%;
  transform: translateX(-50%);
  background: #9a9a9e;
  border-radius: 0 0 8px 8px;
}
.iphone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(7.5rem, 22%, 13.5rem);
  /* Bordure fine, comme un vrai iPhone : environ 1 % de la largeur, liseré métallique. */
  padding: 1.1%;
  background: #0b0b0c;
  border-radius: 15% / 7%;
  box-shadow:
    0 0 0 1.5px #8e8e93,
    0 30px 60px -20px rgb(0 0 0 / 0.55);
}
.iphone-ecran {
  position: relative;
  overflow: hidden;
  border-radius: 14% / 6.4%;
}
/* L'îlot de l'iPhone, au-dessus de l'écran. */
.ilot {
  position: absolute;
  top: 1.6%;
  left: 50%;
  width: 32%;
  height: 3.4%;
  transform: translateX(-50%);
  background: #000;
  border-radius: 999px;
}

/* Un lien dans le texte se voit autrement que par sa couleur. */
.points-cles a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
