/* Styles du site vitrine de Keipt.
   Aucun JavaScript : les menus et accordéons sont en CSS pur (<details>).
   Les valeurs de couleur, de rayon et de police viennent toutes de
   tokens.css, qui recopie le thème de l'application. */

@import url("/assets/tokens.css");

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

/* Accès clavier : le lien d'évitement n'apparaît qu'à la tabulation. */
.evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--carte);
  color: var(--texte);
  padding: .75rem 1rem;
  border-radius: var(--rayon-sm);
  z-index: 100;
}
.evitement:focus { left: 1rem; top: 1rem; }

:focus-visible {
  outline: 2px solid var(--marque);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ═══ Typographie ═══════════════════════════════════════════════════════ */

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -.022em;
  margin: 0 0 .5rem;
  /* Répartit les mots sur les lignes au lieu de laisser une veuve seule
     en dernière ligne. Ignoré par les navigateurs qui ne le connaissent pas. */
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.14rem; font-weight: 700; }

p { margin: 0 0 1rem; text-wrap: pretty; }
a { color: var(--marque-sombre); text-underline-offset: .18em; }
a:hover { text-decoration: none; }
strong { font-weight: 650; }

.chapeau {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--texte-2);
  max-width: 38rem;
}

.discret { color: var(--texte-2); font-size: .93rem; }

/* ═══ Structure ═════════════════════════════════════════════════════════ */

.contenant {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section + section { padding-top: 0; }

/* ═══ Entête ════════════════════════════════════════════════════════════ */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--fond) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--trait);
}

.entete .contenant {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--texte);
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -.02em;
  margin-right: auto;
}

.marque .pastille {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--marque);
  display: grid;
  place-items: center;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--texte-2);
  text-decoration: none;
  font-size: .96rem;
  font-weight: 550;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--texte); }

/* Sur téléphone, la navigation passe sur une seconde ligne et défile
   horizontalement si nécessaire, plutôt que de disparaître : un menu
   « hamburger » demanderait du JavaScript pour quatre liens. */
@media (max-width: 720px) {
  .entete .contenant {
    flex-wrap: wrap;
    padding-bottom: .6rem;
    gap: .75rem 1rem;
  }
  .marque { margin-right: auto; }
  .nav {
    order: 3;
    width: 100%;
    gap: 1.15rem;
    overflow-x: auto;
    padding-bottom: .15rem;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .bouton { padding: .65rem 1.05rem; font-size: .95rem; }
}

/* ═══ Boutons ═══════════════════════════════════════════════════════════ */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: var(--rayon-sm);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .12s ease, background-color .12s ease;
}
.bouton:active { transform: translateY(1px); }

.bouton-plein {
  background: var(--marque);
  color: #fff;
}
.bouton-plein:hover { background: var(--marque-sombre); color: #fff; }

.bouton-contour {
  background: var(--carte);
  color: var(--texte);
  border-color: var(--trait);
}
.bouton-contour:hover { border-color: var(--texte-3); }

.boutons { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; }

/* ═══ Héros ═════════════════════════════════════════════════════════════ */

.heros {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

@media (min-width: 900px) {
  .heros { grid-template-columns: 1.05fr .95fr; }
}

.etiquette {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--marque-douce);
  color: var(--marque-sombre);
  border-radius: var(--rayon-pilule);
  padding: .35rem .85rem;
  font-size: .85rem;
  font-weight: 650;
  margin-bottom: 1.1rem;
}

/* ═══ Cadre de capture d'écran ══════════════════════════════════════════ */

.telephone {
  aspect-ratio: 9 / 19.5;
  max-width: 17.5rem;
  max-height: 34rem;
  margin-inline: auto;
  border-radius: 2.2rem;
  background: var(--carte);
  border: 1px solid var(--trait);
  box-shadow: var(--ombre-forte);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.telephone img { width: 100%; height: 100%; object-fit: cover; }

/* Emplacement en attente d'une vraie capture — visible, jamais confondu
   avec une interface réelle. */
.telephone .attente {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--texte-3);
  font-size: .88rem;
  line-height: 1.5;
  border: 2px dashed var(--trait);
  border-radius: var(--rayon);
  margin: 1rem;
}

/* ═══ Cartes ════════════════════════════════════════════════════════════ */

.grille {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-top: 2.25rem;
}

 /* Quatre cartes courtes : on veut une seule rangée sur grand écran,
    pas trois cartes puis une orpheline. */
.grille-4 { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }

.carte {
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: 1.5rem;
}

.carte h3 { margin-bottom: .35rem; }
.carte p:last-child { margin-bottom: 0; }
.carte .discret { margin-bottom: 0; }

.icone {
  width: 42px;
  height: 42px;
  border-radius: var(--rayon-sm);
  background: var(--marque-douce);
  color: var(--marque-sombre);
  display: grid;
  place-items: center;
  margin-bottom: .9rem;
}

/* ═══ Tarifs ════════════════════════════════════════════════════════════ */

.tarifs { align-items: stretch; }

.carte-tarif { display: flex; flex-direction: column; }
.carte-tarif.mise-en-avant { border-color: var(--marque); box-shadow: var(--ombre); }
/* Sans cela l'étiquette s'étire sur toute la largeur : c'est un enfant direct
   d'un conteneur flex en colonne, donc étiré par défaut. */
.carte-tarif .etiquette { align-self: flex-start; }

.prix {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin: .5rem 0 .1rem;
}
.prix small { font-size: 1rem; font-weight: 550; color: var(--texte-2); }

.liste-cochee { list-style: none; padding: 0; margin: 1.25rem 0; flex: 1; }
.liste-cochee li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  margin-bottom: .55rem;
  font-size: .96rem;
}
.liste-cochee svg { flex: none; margin-top: .32rem; color: var(--succes); }

/* ═══ FAQ ═══════════════════════════════════════════════════════════════ */

details.faq {
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-sm);
  padding: 1rem 1.25rem;
  margin-bottom: .7rem;
}
details.faq summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  color: var(--texte-3);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1;
}
details.faq[open] summary::after { content: "−"; }
details.faq[open] summary { margin-bottom: .75rem; }
details.faq p:last-child { margin-bottom: 0; }

/* ═══ Encadré ═══════════════════════════════════════════════════════════ */

.encadre {
  background: var(--carte);
  border: 1px solid var(--trait);
  border-left: 3px solid var(--marque);
  border-radius: 0 var(--rayon-sm) var(--rayon-sm) 0;
  padding: 1.1rem 1.25rem;
  margin: 0 0 1.5rem;
}
.encadre p:last-child { margin-bottom: 0; }

/* ═══ Pages de texte (légal, support) ═══════════════════════════════════ */

.document { max-width: var(--largeur-texte); }
/* Un document juridique n'est pas une page d'accueil : titre plus sobre. */
.document h1 { font-size: clamp(1.85rem, 4vw, 2.5rem); }
.document h2 {
  font-size: 1.3rem;
  margin: 2.75rem 0 .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--trait);
}
.document h3 { margin: 1.75rem 0 .5rem; font-size: 1.02rem; }
.document ul, .document ol { margin: 0 0 1rem; padding-left: 1.35rem; }
.document li { margin-bottom: .4rem; }

.date { color: var(--texte-2); font-size: .93rem; margin: -.25rem 0 2rem; }

/* Marqueur des informations restant à compléter avant la mise en ligne. */
mark.todo {
  background: var(--marque-douce);
  color: var(--marque-sombre);
  padding: .1em .35em;
  border-radius: 4px;
  font-weight: 650;
}

/* ═══ Tableaux ══════════════════════════════════════════════════════════ */

.tableau { overflow-x: auto; margin: 0 0 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td {
  text-align: left;
  vertical-align: top;
  padding: .65rem .85rem;
  border-bottom: 1px solid var(--trait);
}
th { font-weight: 650; background: var(--carte); white-space: nowrap; }

/* ═══ Pied de page ══════════════════════════════════════════════════════ */

.pied {
  border-top: 1px solid var(--trait);
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: 2.5rem 0 3rem;
  color: var(--texte-2);
  font-size: .94rem;
}

.pied-grille {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  margin-bottom: 2rem;
}

.pied h4 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--texte-3);
  margin: 0 0 .75rem;
}

.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: .45rem; }
.pied a { color: var(--texte-2); text-decoration: none; }
.pied a:hover { color: var(--texte); text-decoration: underline; }

.pied-bas {
  border-top: 1px solid var(--trait);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: .88rem;
  color: var(--texte-3);
}
