/* La Ruche : noir, jaune abeille, Poppins. Aucune ressource externe. Aucun style en ligne dans les pages (CSP). */
@font-face { font-family: "Poppins"; font-weight: 200; font-style: normal; font-display: swap; src: url("/assets/fonts/Poppins-ExtraLight.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/Poppins-Regular.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/Poppins-SemiBold.ttf") format("truetype"); }

:root {
  --fond: #0B0B0C;
  --panneau: #1B1C1E;
  --jaune: #FDC424;
  --texte: #F6F6F6;
  --doux: #E5E5E5;
  --gris: #8A8A8A;
  --gris-sombre: #3F4349;
  --filet: rgba(246, 246, 246, 0.12);
  --marge: clamp(20px, 5vw, 80px);
  --rayon: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 88px; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 400;
  font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; border-radius: 6px; }
.sr-only, .piege { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.piege { left: -9999px; }
.saut { position: absolute; left: 16px; top: -80px; background: var(--jaune); color: var(--fond); padding: 10px 16px; border-radius: 12px; font-weight: 600; z-index: 100; }
.saut:focus { top: 12px; }

.conteneur { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--marge); }
.etiquette { font-size: 0.8rem; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; color: var(--doux); }
.leger { font-weight: 200; }
.fort { font-weight: 600; }
.jaune { color: var(--jaune); }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px;
  padding: 14px 32px; border-radius: 20px; border: 2px solid var(--jaune); background: var(--jaune); color: var(--fond);
  font: inherit; font-weight: 600; font-size: 1.15rem; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.bouton:hover { transform: translateY(-2px); }
.bouton--contour { background: transparent; color: var(--jaune); }
.bouton--contour:hover { background: var(--jaune); color: var(--fond); }
.bouton--noir { background: var(--fond); border-color: var(--fond); color: var(--jaune); }
.bouton--petit { min-height: 48px; padding: 10px 24px; font-size: 1.02rem; border-radius: 18px; }
.lien-doux { font-size: 1.1rem; text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.lien-doux:hover { border-bottom-color: var(--jaune); }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--fond) 92%, transparent); backdrop-filter: blur(8px); }
.entete__ligne { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; }
.logo img { height: 54px; width: auto; }
.nav { display: none; align-items: center; gap: 40px; }
.nav a:not(.bouton) { text-decoration: none; font-size: 1.05rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.bouton):hover, .nav a[aria-current="page"] { border-bottom-color: var(--jaune); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 48px; height: 48px; display: grid; place-content: center; gap: 7px; border-radius: 14px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 28px; height: 3px; background: var(--texte); border-radius: 3px; }
.menu__liste { position: absolute; right: 0; top: 56px; width: min(78vw, 320px); background: var(--panneau); border: 1px solid var(--filet); border-radius: 24px; padding: 20px; display: grid; gap: 6px; }
.menu__liste a { text-decoration: none; padding: 12px 8px; font-size: 1.15rem; border-radius: 12px; }
.menu__liste a:hover { background: var(--fond); }
.menu__liste .bouton { margin-top: 8px; }

/* Haut de page */
.hero { padding-block: clamp(24px, 4vw, 56px) clamp(32px, 5vw, 72px); position: relative; }
.hero__grille { display: grid; gap: 28px; align-items: center; }
.hero__logo img { width: min(100%, 520px); margin-inline: auto; }
.hero__texte { text-align: center; }
.hero__texte .hero__actions { justify-content: center; flex-direction: column; align-items: stretch; }
.hero__texte .hero__actions .lien-doux { text-align: center; }
.hero h1 { font-size: clamp(2.1rem, 10vw, 5.6rem); line-height: 1.04; letter-spacing: -0.02em; }
.hero h1 span { display: block; }
.hero h1 .leger { font-weight: 200; }
.hero h1 .fort { font-weight: 600; color: var(--jaune); }
.hero__sous { margin-top: 24px; font-size: clamp(1.1rem, 2.4vw, 1.65rem); font-weight: 200; color: var(--texte); }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.carte-jaune { background: var(--jaune); border-radius: 12%; aspect-ratio: 1 / 1; display: grid; place-items: center; width: min(100%, 420px); justify-self: center; }
.carte-jaune img { width: 62%; height: auto; }
.carte-jaune .objet--grand { width: 72%; }
.trait-ligne { padding-block: 0; display: none; }
.trait--hero { display: block; width: 68%; height: 26px; margin: 22px auto 0; }
.trait { display: block; height: 44px; width: 70%; margin-left: auto; border-top: 4px solid var(--jaune); border-radius: 50% 50% 0 0 / 100% 100% 0 0; pointer-events: none; }

/* Étapes */
.etapes { display: grid; padding-block: 8px 24px; }
.etape { display: flex; align-items: center; gap: 28px; padding: 28px 0; border-top: 1px solid var(--filet); }
.etape:first-child { border-top: 0; }
.etape__num { font-size: clamp(4.5rem, 14vw, 8.5rem); line-height: 1; font-weight: 200; color: transparent; -webkit-text-stroke: 2px var(--texte); min-width: 1ch; }
.etape p { font-size: clamp(1.15rem, 2.2vw, 1.55rem); font-weight: 400; line-height: 1.3; max-width: 17ch; }
.bandeau-prix { padding-block: 0 8px; }
.bandeau-prix .etiquette { border-top: 1px solid var(--filet); padding-top: 28px; color: var(--texte); letter-spacing: 0.34em; font-size: 0.85rem; }

/* Sections */
.section { padding-block: clamp(56px, 9vw, 128px); }
.section--filet { border-top: 1px solid var(--filet); }
.titre-section { font-size: clamp(2.5rem, 7vw, 5.6rem); line-height: 1.04; letter-spacing: -0.02em; font-weight: 200; }
.titre-section .fort { font-weight: 600; color: var(--jaune); }
.sous-section { margin-top: 20px; font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 200; max-width: 46ch; }

/* Prix */
.prix { display: grid; gap: 24px; margin-top: 48px; }
.formule { background: var(--panneau); border: 1px solid var(--filet); border-radius: 36px; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; }
.formule--phare { background: var(--jaune); color: var(--fond); border-color: var(--jaune); }
.formule__nom { font-size: 1.6rem; font-weight: 600; }
.formule__prix { line-height: 0.95; }
.formule__montant { font-size: clamp(4.2rem, 9vw, 7rem); font-weight: 600; letter-spacing: -0.04em; }
.formule__unite { font-size: 1.15rem; margin-bottom: 8px; }
.liste-picto { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.liste-picto li { display: flex; align-items: center; gap: 18px; font-size: 1.12rem; font-weight: 400; }
.picto { flex: none; width: 60px; height: 60px; border-radius: 16px; background: var(--jaune); display: grid; place-items: center; }
.picto img { width: 38px; height: 38px; }
.formule--phare .picto { background: transparent; border: 3px solid var(--fond); }
.picto--objet, .formule--phare .picto--objet { width: 112px; height: 92px; background: none; border: 0; border-radius: 0; }
.picto--objet img { width: auto; height: 92px; max-width: 112px; object-fit: contain; }
.objet { height: auto; }
.formule__suite { margin-top: auto; padding-top: 18px; border-top: 1px solid currentColor; font-size: 1.02rem; }
.options { margin-top: 28px; display: grid; gap: 14px; }
.options__pilules { display: flex; flex-wrap: wrap; gap: 12px; }
.pilule-option { padding: 12px 20px; border: 1px solid var(--filet); border-radius: 16px; background: var(--panneau); font-weight: 600; font-size: 1.02rem; }
.options__note { font-size: 0.92rem; color: var(--doux); font-weight: 200; }

/* Exemples (accueil et page) */
.exemples { display: grid; gap: 24px; margin-top: 48px; }
.exemple { position: relative; background: var(--panneau); border: 1px solid var(--filet); border-radius: 36px; padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 24px; }
.exemple__vues { display: grid; grid-template-columns: 1.7fr 0.8fr; gap: 16px; align-items: start; }
.exemple__vues img { border-radius: 14px; border: 1px solid var(--filet); width: 100%; height: auto; }
.exemple__nom { font-size: 1.6rem; font-weight: 600; }
.exemple__fictif { margin-top: -14px; color: var(--doux); font-weight: 200; }
.exemple__cta { justify-self: start; position: static; }
.exemple__cta::after { content: ""; position: absolute; inset: 0; border-radius: 36px; }
.formule__sms { font-size: 1rem; font-weight: 400; }
.pastille { display: inline-block; justify-self: start; padding: 8px 16px; border: 1px solid var(--jaune); color: var(--jaune); border-radius: 999px; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; }

/* Histoire */
.histoire { display: grid; gap: 40px; align-items: center; }
.histoire__texte { display: grid; gap: 20px; margin-top: 32px; max-width: 52ch; font-size: 1.15rem; font-weight: 200; }
.histoire__texte .fort { font-weight: 600; }
.histoire__panneau { background: var(--panneau); border: 1px solid var(--filet); border-radius: 44px; padding: clamp(32px, 6vw, 72px); display: grid; place-items: center; }
.histoire__panneau img { width: min(100%, 560px); }

/* Contact */
.contact { text-align: center; }
.contact .titre-section { margin-inline: auto; }
.contact .titre-section .fort, .histoire .titre-section .fort { white-space: nowrap; }
.contact .sous-section { margin-inline: auto; }
.contact__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.contact__actions .bouton { min-width: min(100%, 280px); }
.contact__mail { margin-top: 28px; color: var(--doux); font-weight: 200; }
.contact__mail a { font-weight: 400; text-underline-offset: 4px; }
.cartes { display: grid; gap: 20px; margin-top: 48px; text-align: left; }
.carte { background: var(--panneau); border: 1px solid var(--filet); border-radius: 32px; padding: clamp(28px, 4vw, 44px); display: grid; gap: 10px; align-content: start; text-decoration: none; transition: transform .15s ease; }
.carte:hover { transform: translateY(-3px); }
.carte__titre { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 600; line-height: 1.1; }
.carte__texte { font-weight: 200; font-size: 1.2rem; }
.carte__detail { margin-top: 10px; font-size: 1.15rem; font-weight: 400; }
.carte--phare { background: var(--jaune); color: var(--fond); border-color: var(--jaune); cursor: pointer; font: inherit; text-align: left; width: 100%; }
.carte--phare .carte__texte { font-weight: 400; }

/* Page de texte (légal) */
.page-texte { padding-block: clamp(40px, 7vw, 96px); }
.page-texte h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 200; line-height: 1.04; letter-spacing: -0.02em; }
.page-texte h1 .fort { font-weight: 600; color: var(--jaune); }
.page-texte__grille { display: grid; gap: 40px; margin-top: 48px; }
.page-texte__menu { display: flex; gap: 12px; flex-wrap: wrap; }
.page-texte__menu a { padding: 10px 20px; border: 1px solid var(--filet); border-radius: 999px; text-decoration: none; font-size: 0.98rem; }
.page-texte__menu a[aria-current="page"] { border-color: var(--jaune); color: var(--jaune); }
.prose { max-width: 70ch; display: grid; gap: 16px; font-weight: 200; font-size: 1.1rem; }
.prose h2 { font-size: 1.5rem; font-weight: 600; margin-top: 28px; }
.prose p, .prose li { color: var(--texte); }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.prose strong { font-weight: 600; }
.prose a { text-underline-offset: 4px; }
.manque { background: var(--panneau); border: 1px dashed var(--jaune); border-radius: 8px; padding: 1px 8px; color: var(--jaune); }

/* 404 */
.erreur { min-height: 62vh; display: grid; align-content: center; gap: 32px; padding-block: 64px; }
.erreur h1 { font-size: clamp(3rem, 11vw, 8rem); font-weight: 200; line-height: 1; letter-spacing: -0.03em; }
.erreur h1 .fort { font-weight: 600; color: var(--jaune); display: block; }

/* Pied de page */
.pied { border-top: 1px solid var(--filet); padding-block: 48px 120px; margin-top: 24px; }
.pied__grille { display: grid; gap: 28px; align-items: start; }
.pied .logo img { height: 48px; }
.pied__liens { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 0.98rem; }
.pied__liens a { text-decoration: none; color: var(--doux); }
.pied__liens a:hover { color: var(--jaune); }
.pied__editeur { color: var(--gris); font-size: 0.92rem; }
.pied__equipe { font-size: 0.72rem; color: var(--gris-sombre); text-decoration: none; letter-spacing: 0.12em; text-transform: uppercase; }
.pied__equipe:hover { color: var(--gris); }

/* Contact flottant */
.flottant { display: none; }
.barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--fond) 96%, transparent); border-top: 1px solid var(--filet); }
.barre .bouton { flex: 1; min-height: 52px; }
.barre .bouton--rond { flex: 0 0 auto; padding-inline: 22px; }

/* Fenêtre « Être rappelé » */
dialog.rappel { border: 1px solid var(--filet); background: var(--panneau); color: var(--texte); border-radius: 32px 32px 0 0; padding: 0; width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0 0; overflow: auto; }
dialog.rappel:focus, dialog.rappel:focus-visible { outline: none; }
dialog.rappel::backdrop { background: rgba(0, 0, 0, 0.74); }
.rappel__corps { padding: 24px 22px 32px; }
.rappel__corps form { display: grid; gap: 18px; }
.rappel__haut { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.rappel__fermer { background: none; border: 0; color: var(--doux); font: inherit; font-size: 0.98rem; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; padding: 8px; }
.rappel__titre { font-size: clamp(2rem, 6vw, 2.9rem); font-weight: 200; line-height: 1.04; letter-spacing: -0.02em; }
.rappel__titre .fort { font-weight: 600; color: var(--jaune); }
.champ { display: grid; gap: 6px; }
.champ label, .champ .legende { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--doux); }
.champ label small, .champ .legende small { text-transform: none; letter-spacing: 0; color: var(--gris); font-size: 0.85rem; margin-left: 6px; }
.champ input[type="text"], .champ input[type="tel"], .champ textarea { background: transparent; border: 0; border-bottom: 2px solid var(--texte); color: var(--texte); font: inherit; font-size: 1.3rem; padding: 10px 0; width: 100%; border-radius: 0; resize: vertical; }
.champ input:focus, .champ textarea:focus { outline: none; border-bottom-color: var(--jaune); }
.champ input::placeholder, .champ textarea::placeholder { color: var(--gris); }
.puces { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.puces legend { padding: 0; margin-bottom: 10px; }
.puce input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.puce span { display: inline-block; padding: 10px 20px; border: 1.5px solid var(--texte); border-radius: 999px; cursor: pointer; font-size: 1.02rem; }
.puce input:checked + span { background: var(--jaune); border-color: var(--jaune); color: var(--fond); font-weight: 600; }
.puce input:focus-visible + span { outline: 3px solid var(--jaune); outline-offset: 3px; }
.champ label.puce, .champ label.consentement { text-transform: none; letter-spacing: 0; font-size: 1.02rem; color: var(--texte); }
.compteur { justify-self: end; font-size: 0.82rem; color: var(--gris); }
.consentement { display: flex; gap: 14px; align-items: flex-start; font-size: 1rem; }
.consentement input { width: 24px; height: 24px; accent-color: var(--jaune); flex: none; margin-top: 2px; }
.consentement a { text-underline-offset: 4px; }
.erreur-champ { font-size: 0.95rem; color: var(--texte); border-left: 4px solid var(--jaune); padding-left: 12px; }
.alerte { border: 1px solid var(--jaune); border-radius: 18px; padding: 14px 18px; font-size: 1rem; }
.rappel__merci { display: grid; gap: 20px; padding-block: 24px 8px; }
.rappel__merci .rappel__titre { font-size: clamp(3rem, 9vw, 5rem); }
[hidden] { display: none !important; }

@media (min-width: 900px) {
  .nav { display: flex; }
  .menu { display: none; }
  .logo img { height: 62px; }
  .hero__grille { grid-template-columns: 0.95fr 1.05fr; gap: 56px; }
  .hero__logo img { width: 100%; max-width: 600px; margin-inline: 0; }
  .hero__texte { text-align: left; }
  .hero__texte .hero__actions { justify-content: flex-start; flex-direction: row; align-items: center; }
  .hero h1 { font-size: clamp(2.6rem, 4.6vw, 4.6rem); }
  .trait-ligne { display: block; }
  .trait--hero { display: none; }
  .trait { height: 70px; width: 68%; }
  .etapes { grid-template-columns: repeat(3, 1fr); padding-block: 40px 40px; }
  .etape { border-top: 0; border-left: 1px solid var(--filet); padding: 0 32px; }
  .etape:first-child { border-left: 0; padding-left: 0; }
  .prix { grid-template-columns: 1fr 1fr; }
  .exemples { grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); }
  .histoire { grid-template-columns: 1.1fr 0.9fr; gap: 72px; }
  .cartes { grid-template-columns: repeat(3, 1fr); }
  .cartes--deux { grid-template-columns: repeat(2, 1fr); }
  .page-texte__grille { grid-template-columns: 240px 1fr; }
  .page-texte__menu { flex-direction: column; align-items: flex-start; }
  .pied__grille { grid-template-columns: auto 1fr auto; gap: 48px; align-items: center; }
  .pied { padding-bottom: 96px; }
  .flottant { display: inline-flex; position: fixed; right: 28px; bottom: 28px; z-index: 30; min-height: 56px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5); }
  .barre { display: none; }
  dialog.rappel { border-radius: 36px; width: min(600px, calc(100% - 48px)); margin: auto; max-height: 90vh; }
  .rappel__corps { padding: 36px 40px 40px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
