/* Site vitrine La Ruche. Sombre, un seul accent (miel), peu de mots : un titre, une phrase et un geste par écran.
   La matière vient de rendus détourés (miel, capsule, alvéoles, logo), pas d'effets CSS. Pas d'animation à l'apparition,
   pas de capture d'écran : le produit est montré par la démo vivante. */

@font-face { font-family: 'Geist'; src: url('fonts/geist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('fonts/geist-mono.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --fond: #0c0b0a;
  --fond-2: #151412;
  --encre: #f2ede5;
  --doux: #aaa398;
  --discret: #8c857a;
  --filet: rgba(242, 237, 229, 0.12);
  --filet-fort: rgba(242, 237, 229, 0.22);
  --miel: #f4b73b;
  --miel-encre: #17130c;
  --verre: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.02));
  --bord-verre: rgba(255, 255, 255, 0.13);
  --large: 1200px;
  --marge: clamp(20px, 5vw, 56px);
  --souffle: clamp(132px, 19vw, 280px);        /* l'espace entre deux écrans */
  --h-miel: max(22.15vw, 197px);                /* hauteur de la coulée de miel du haut */
  --elan: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: hidden; }
html.sans-defilement, html.sans-defilement body { overflow: hidden; }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  font: 400 17px/1.6 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--miel); outline-offset: 4px; border-radius: 8px; }
[hidden] { display: none !important; }

.page { width: 100%; max-width: calc(var(--large) + 2 * var(--marge)); margin: 0 auto; padding: 0 var(--marge); }
h2 { font-weight: 580; font-size: clamp(2rem, 4.6vw, 3.9rem); line-height: 1.02; letter-spacing: -0.05em; text-wrap: balance; }
.texte { max-width: 30em; margin-top: 22px; color: var(--doux); font-size: clamp(1.02rem, 1.3vw, 1.14rem); text-wrap: pretty; }
.gage { margin-top: 16px; font-size: 14px; color: var(--discret); }

/* La capsule : le geste principal. C'est un rendu de verre couleur miel, dont les deux bouts ronds ne se déforment pas. */
.capsule {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; appearance: none; background: none;
  height: 64px; padding: 0 16px; border-style: solid; border-color: transparent; border-width: 0 32px;
  border-image: url('img/capsule.webp') 0 205 fill / 0 32px stretch;
  font: 650 17px/1 'Geist', system-ui, sans-serif; letter-spacing: -0.012em; color: #2a1600; text-decoration: none; cursor: pointer;
  filter: drop-shadow(0 16px 26px rgba(244, 183, 59, 0.2));
  transition: transform 0.22s var(--elan), filter 0.22s var(--elan); -webkit-tap-highlight-color: transparent;
}
.capsule:hover { transform: translateY(-2px); filter: brightness(1.07) drop-shadow(0 22px 34px rgba(244, 183, 59, 0.3)); }
.capsule:active { transform: scale(0.98); }
.capsule.petit { height: 46px; padding: 0 8px; border-width: 0 23px; border-image-width: 0 23px; font-size: 14.5px; filter: none; }

/* Boutons des pages secondaires (bienvenue, pages légales) */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  height: 54px; padding: 0 30px; border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1 'Geist', system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: background-color 0.2s, border-color 0.2s;
}
.bouton.plein { color: var(--miel-encre); background: var(--miel); }
.bouton.plein:hover { background: #f8c352; }
.bouton.trait { color: var(--encre); background: rgba(255, 255, 255, 0.045); border-color: rgba(255, 255, 255, 0.16); }
.bouton.trait:hover { border-color: rgba(244, 183, 59, 0.6); }
.bouton.petit { height: 42px; padding: 0 20px; font-size: 14.5px; }

/* Le miel qui coule du haut de la page. La bande est plus large que l'écran : son cadre la rogne (sinon la page déborde). */
.miel { position: absolute; top: 0; left: 0; right: 0; z-index: 1; height: calc(var(--h-miel) + 6px); overflow: hidden; pointer-events: none; user-select: none; }
.miel__bande { position: absolute; top: 0; left: 50%; display: flex; width: max(108vw, 960px); transform: translateX(-50%); }
.miel__bande img { width: 50%; height: auto; }
.miel__bande img + img { transform: scaleX(-1); }

/* En-tête : une barre de verre fumé, trois éléments. */
.entete {
  position: sticky; top: 12px; z-index: 30; display: flex; align-items: center; gap: 26px; height: 64px;
  width: calc(100% - 2 * var(--marge)); max-width: 1120px; margin: 12px auto 0; padding: 0 9px 0 13px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.13); background: rgba(14, 13, 11, 0.74);
  -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 20px 44px -24px #000;
}
.marque { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; font-weight: 650; font-size: 20px; letter-spacing: -0.04em; }
.marque img { width: 40px; height: auto; }
.entete__lien { font-size: 15px; font-weight: 500; color: rgba(242, 237, 229, 0.82); text-decoration: none; transition: color 0.2s; }
.entete__lien:hover { color: var(--miel); }

/* Accueil : le titre commence sous les gouttes. */
.accueil { padding: calc(var(--h-miel) - 8px) var(--marge) 0; text-align: center; }
.accueil h1 { max-width: 10.5em; margin: 0 auto; font-weight: 580; font-size: clamp(3rem, 9.2vw, 7.6rem); line-height: 0.96; letter-spacing: -0.06em; text-wrap: balance; }
.chapo { max-width: 30em; margin: clamp(22px, 3vw, 34px) auto 0; font-size: clamp(1.08rem, 1.55vw, 1.32rem); line-height: 1.5; color: var(--doux); text-wrap: pretty; }
.accueil .capsule { margin-top: clamp(30px, 4vw, 44px); }

/* La démo : la vraie interface dans un cadre de verre, et une ligne de visite guidée dessous. */
.demo { width: 100%; max-width: calc(1240px + 2 * var(--marge)); margin: clamp(64px, 9vw, 120px) auto 0; padding: 0 var(--marge); }
.demo__cadre {
  padding: 10px; border-radius: 30px; border: 1px solid var(--bord-verre); background: var(--verre);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 70px 130px -70px #000, 0 30px 70px -44px rgba(244, 183, 59, 0.18);
}
.demo__ecran {
  position: relative; overflow: hidden; width: 100%; margin: 0 auto; aspect-ratio: 16 / 9.4; min-height: 420px; max-height: calc(100svh - 216px);
  border-radius: 20px; background: #0c0b0a;
  transition: max-width 0.5s var(--elan), border-radius 0.5s var(--elan);
}
.demo--telephone .demo__ecran { width: auto; max-width: 390px; height: min(790px, calc(100svh - 216px)); min-height: 520px; aspect-ratio: 9 / 18.5; border-radius: 34px; }
.demo__ecran iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 0.6s; }
.demo--prete .demo__ecran iframe { opacity: 1; }
.demo__attente { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; color: var(--discret); }
.demo--prete .demo__attente { display: none; }
.demo__ouvrir { display: none; }
.demo__visite { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 24px; padding: 16px 8px 6px 16px; }
.demo__fil { grid-column: 1 / -1; display: flex; gap: 6px; }
.demo__fil i { position: relative; flex: 1; height: 3px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, 0.13); }
.demo__fil i::after { content: ''; position: absolute; inset: 0; background: var(--miel); transform: scaleX(0); transform-origin: left; }
.demo__fil i.fait::after { transform: scaleX(1); }
.demo__fil i.cours::after { animation: fil 8s linear forwards; }
@keyframes fil { to { transform: scaleX(1); } }
.demo__texte { font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.4; letter-spacing: -0.012em; text-align: left; color: var(--encre); }
.demo__boutons { display: flex; align-items: center; gap: 2px; }
.demo__boutons button { all: unset; box-sizing: border-box; cursor: pointer; padding: 10px 14px; border-radius: 999px; font: 500 14px/1 'Geist', system-ui, sans-serif; color: var(--doux); white-space: nowrap; transition: color 0.2s, background-color 0.2s; }
.demo__boutons button:hover { color: var(--encre); background: rgba(255, 255, 255, 0.07); }
.demo__boutons button:focus-visible { outline: 2px solid var(--miel); outline-offset: 2px; }
.demo__boutons .demo__format { margin-left: 10px; border: 1px solid rgba(255, 255, 255, 0.14); }
.demo__boutons .demo__fermer { display: none; border: 1px solid rgba(255, 255, 255, 0.2); color: var(--encre); }

/* Plein écran (téléphone) : le cadre passe par-dessus la page, la démo a toute la place. */
.demo--plein .demo__cadre { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; padding: 0; border: 0; border-radius: 0; background: #0c0b0a; box-shadow: none; }
.demo--plein .demo__ecran { flex: 1; width: 100%; max-width: none; height: auto; min-height: 0; max-height: none; aspect-ratio: auto; border-radius: 0; }
.demo--plein .demo__ecran iframe { pointer-events: auto; }
.demo--plein .demo__ouvrir { display: none; }
.demo--plein .demo__visite { order: -1; display: grid; padding: calc(10px + env(safe-area-inset-top)) 10px 10px 16px; border-bottom: 1px solid var(--filet); }
.demo--plein .demo__texte { font-size: 15px; }
.demo--plein .demo__format, .demo--plein [data-pas='-1'] { display: none; }
.demo--plein .demo__boutons .demo__fermer { display: inline-block; margin-left: 6px; }

/* Ce qu'elle fait : quatre alvéoles qui se remplissent, et sous chacune une étape */
.chaine { width: 100%; max-width: calc(var(--large) + 2 * var(--marge)); margin: var(--souffle) auto 0; padding: 0 var(--marge); text-align: center; }
.chaine h2 { max-width: 15em; margin: 0 auto; }
.chaine__image { width: 100%; margin-top: clamp(40px, 6vw, 80px); }
.chaine__etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(14px, 2.4vw, 34px); margin-top: clamp(8px, 1.5vw, 20px); }
.chaine__etapes h3, .equipes__liste h3 { font-weight: 600; font-size: clamp(1.05rem, 1.5vw, 1.28rem); letter-spacing: -0.025em; line-height: 1.2; }
.chaine__etapes p { margin-top: 10px; color: var(--doux); font-size: 0.98rem; line-height: 1.5; text-wrap: pretty; }

/* Les écrans illustrés : un rendu d'un côté, un titre et une phrase de l'autre */
.rang {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(28px, 6vw, 96px);
  width: 100%; max-width: calc(1080px + 2 * var(--marge)); margin: var(--souffle) auto 0; padding: 0 var(--marge);
}
.rang__image { width: 100%; max-width: 440px; justify-self: center; }
.rang--inverse .rang__image { order: 2; }
.rang h2 { font-size: clamp(1.9rem, 4vw, 3.3rem); }

/* Les équipes prêtes à l'emploi : un panneau de verre, trois lignes */
.equipes { width: 100%; max-width: calc(1080px + 2 * var(--marge)); margin: var(--souffle) auto 0; padding: 0 var(--marge); }
.equipes__liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(34px, 5vw, 60px); border-radius: 28px; border: 1px solid var(--bord-verre); background: var(--verre); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.equipes__liste li { padding: clamp(24px, 3vw, 38px); }
.equipes__liste li + li { border-left: 1px solid var(--filet); }
.equipes__liste h3 { color: var(--miel); }
.equipes__liste p { margin-top: 10px; color: var(--doux); font-size: 0.99rem; line-height: 1.5; }

/* L'offre */
.offre { display: flex; flex-direction: column; align-items: center; margin-top: var(--souffle); padding: 0 var(--marge); text-align: center; }
.offre__logo { width: clamp(150px, 19vw, 230px); }
.tarif { margin-top: clamp(22px, 3vw, 36px); font-weight: 580; font-size: clamp(3.8rem, 10vw, 7.6rem); line-height: 0.95; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.tarif small { display: block; margin-top: 16px; font-weight: 500; font-size: 1.05rem; line-height: 1; letter-spacing: 0; color: var(--doux); }
.offre__liste { width: min(100%, 460px); margin: clamp(34px, 4vw, 48px) 0; text-align: left; border-bottom: 1px solid var(--filet); }
.offre__liste li { padding: 15px 2px; border-top: 1px solid var(--filet); }
.offre .gage { max-width: 26em; }

/* Questions */
.questions { width: 100%; max-width: calc(760px + 2 * var(--marge)); margin: var(--souffle) auto 0; padding: 0 var(--marge); }
.questions .liste { margin-top: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--filet); }
details { border-top: 1px solid var(--filet); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-weight: 550; font-size: 1.1rem; letter-spacing: -0.015em; transition: color 0.2s; }
summary:hover { color: var(--miel); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex: none; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--doux); }
details[open] summary::after { content: '\2212'; }
details p { padding: 0 48px 24px 0; color: var(--doux); max-width: 44em; }

/* Pied */
.pied { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: var(--souffle); padding: 30px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--filet); font-size: 14.5px; color: var(--discret); }
footer.pied { width: calc(100% - 2 * var(--marge)); max-width: var(--large); margin-left: auto; margin-right: auto; }
.pied .marque { font-size: 18px; color: var(--encre); }
.pied .marque img { width: 34px; }
.pied a { color: var(--doux); text-decoration: none; }
.pied a:hover { color: var(--encre); }
.pied .fin { margin-left: auto; max-width: 100%; }

/* Page de bienvenue (après le paiement) et page introuvable */
.bienvenue { padding-top: clamp(36px, 6vw, 84px); padding-bottom: clamp(48px, 8vw, 96px); }
.bienvenue h1 { max-width: 20em; font-weight: 580; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.06; letter-spacing: -0.045em; text-wrap: balance; }
.bienvenue .texte { max-width: 34em; }
.bienvenue .texte a { color: var(--encre); }
.bienvenue .bloc { margin-top: clamp(48px, 7vw, 80px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--filet); }
.bienvenue .bloc h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.035em; }
.cle { margin-top: 18px; font: 500 clamp(1.05rem, 2.6vw, 1.6rem)/1.3 'Geist Mono', ui-monospace, monospace; letter-spacing: 0.02em; color: var(--miel); overflow-wrap: anywhere; user-select: all; }
.pas { max-width: 44em; margin: 22px 0 0; padding-left: 1.3em; }
.pas li { padding: 10px 0 10px 6px; }
.pas li::marker { color: var(--discret); font-variant-numeric: tabular-nums; }
.commande { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 14px 14px 18px; background: var(--fond-2); border: 1px solid var(--filet-fort); border-radius: 14px; }
.commande code { flex: 1; min-width: 0; font: 500 15px/1.5 'Geist Mono', ui-monospace, monospace; overflow-wrap: anywhere; user-select: all; }
.bienvenue .note { margin-top: 22px; max-width: 46em; font-size: 14.5px; color: var(--discret); }

/* « Ta Ruche se prépare » : la page d'après paiement, qui suit la création du serveur */
.suite { display: flex; flex-direction: column; align-items: center; padding: clamp(40px, 7vw, 90px) var(--marge) clamp(48px, 8vw, 96px); text-align: center; }
.suite__logo { width: clamp(120px, 16vw, 180px); }
.suite h1 { margin-top: clamp(20px, 3vw, 32px); font-weight: 580; font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -0.055em; text-wrap: balance; }
.suite .texte { min-height: 3.2em; margin-left: auto; margin-right: auto; }
.suite__etapes { width: min(100%, 420px); margin: clamp(26px, 4vw, 40px) 0; padding: 0; list-style: none; text-align: left; border-bottom: 1px solid var(--filet); }
.suite__etapes li { display: flex; align-items: center; gap: 14px; padding: 15px 2px; border-top: 1px solid var(--filet); color: var(--discret); transition: color 0.3s; }
.suite__etapes li::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--filet-fort); transition: background-color 0.3s, border-color 0.3s; }
.suite__etapes li.faite { color: var(--encre); }
.suite__etapes li.faite::before { background: var(--miel); border-color: var(--miel); }
.suite__etapes li.encours { color: var(--encre); }
.suite__etapes li.encours::before { border-color: var(--miel); animation: pouls 1.4s ease-in-out infinite; }
@keyframes pouls { 50% { background: rgba(244, 183, 59, 0.55); } }
.suite .gage { max-width: 28em; }

/* Ma Ruche : garder le lien, retrouver sa Ruche par e-mail */
.garder { width: min(100%, 520px); margin-top: clamp(40px, 6vw, 64px); padding: clamp(24px, 4vw, 34px); border-radius: 26px; border: 1px solid var(--bord-verre); background: var(--verre); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.garder h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -0.035em; }
.garder .texte { margin-top: 12px; font-size: 1rem; min-height: 0; }
.garder__boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.garder__boutons .bouton { height: 48px; padding: 0 22px; font-size: 15px; }
.retrouver { width: min(100%, 560px); margin-top: 10px; text-align: left; }
.retrouver label { display: block; margin-bottom: 10px; font-weight: 600; font-size: 0.98rem; color: var(--doux); }
.retrouver .ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.retrouver input { flex: 1 1 260px; height: 58px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--filet-fort); background: var(--fond-2); color: var(--encre); font: 500 16px/1 'Geist', system-ui, sans-serif; }
.retrouver input:focus { outline: none; border-color: rgba(244, 183, 59, 0.7); }
.retrouver input::placeholder { color: var(--discret); }
.retrouver .capsule { flex: none; }
.retrouver .erreur { margin-top: 12px; color: #ff9b8a; font-size: 14.5px; }
.suite #pas-encore a, .suite .gage a { color: var(--encre); }
.capsule:disabled { opacity: 0.6; cursor: wait; }

/* Pages légales : une colonne de texte, des filets, rien d'autre */
.legal { padding-top: clamp(36px, 6vw, 84px); padding-bottom: clamp(48px, 8vw, 96px); }
.legal > * { max-width: 46rem; }
.legal h1 { font-weight: 580; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.06; letter-spacing: -0.045em; text-wrap: balance; }
.legal .date { margin-top: 14px; font-size: 14.5px; color: var(--discret); }
.legal h2 { margin-top: clamp(36px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--filet); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.2; letter-spacing: -0.025em; }
.legal p { margin-top: 14px; color: var(--doux); }
.legal a { color: var(--encre); }
.legal .retenir { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--filet-fort); border-radius: 14px; color: var(--encre); }
.legal dl { margin-top: 18px; }
.legal dl > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 16px; padding: 11px 0; border-top: 1px solid var(--filet); }
.legal dt { color: var(--discret); font-size: 0.95rem; }
.legal .suite { margin-top: 40px; }

/* Téléphone */
@media (max-width: 760px) {
  .entete { gap: 14px; height: 60px; }
  .entete__lien { display: none; }
  .accueil { padding-top: calc(var(--h-miel) - 64px); }
  .demo { padding: 0 12px; }
  .demo__cadre { padding: 6px; border-radius: 28px; }
  .demo__ecran { aspect-ratio: 9 / 13.5; min-height: 0; max-height: none; border-radius: 22px; }
  .demo__ecran iframe { pointer-events: none; }
  .demo__ouvrir { display: flex; width: calc(100% - 16px); margin: 12px auto 8px; }
  .demo__visite { display: none; }
  .chaine__etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; margin-top: 24px; text-align: left; }
  .rang { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .rang__image, .rang--inverse .rang__image { order: -1; max-width: 62%; }
  .equipes__liste { grid-template-columns: minmax(0, 1fr); }
  .equipes__liste li + li { border-left: 0; border-top: 1px solid var(--filet); }
  .commande { flex-direction: column; align-items: stretch; }
  .retrouver .capsule { width: 100%; }
  .legal dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  details p { padding-right: 0; }
  .pied .fin { margin-left: 0; width: 100%; }
}
@media (max-width: 420px) { body { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .capsule, .demo__ecran, .demo__ecran iframe { transition: none; }
  .demo__fil i.cours::after { animation: none; transform: scaleX(1); }
}
