/* =========================================================
   MYSTÉO — landing page
   Identité reprise de l'appli MYSTÉO (page de connexion + tableau de bord) :
   bleu nuit #17374a, vert menthe #b8dccb, bleu-gris #8bafc2, fond #fafbf9, police Inter,
   titres serrés (dernier mot en menthe), surtitres en capitales espacées précédés d'un point,
   cercles discrets en décor, cartes blanches à bordure fine comme le tableau de bord.
   Mise en page classique des concurrents (hero, preuve, fonctions, tarifs, FAQ, appel final).
   Pas de dégradé de couleur sur le texte, les boutons ou les ombres.
   ========================================================= */

/* ---------- 1. Jetons ---------- */
:root {
  /* Marque (valeurs de frontend/src/pages/Login.css) */
  --navy: #17374a;           /* bleu nuit : fonds forts, boutons, titres */
  --navy-hover: #254d62;
  --mint: #b8dccb;           /* vert menthe : mots mis en valeur, pastilles */
  --mint-hover: #a7d2bd;
  --mint-l: #edf4f0;         /* menthe très pâle : fonds, icônes */
  --sage: #426958;           /* vert sauge foncé : surtitres, liens sur fond clair */
  --sage-2: #5c9c89;         /* anneau de focus */
  --blue-grey: #8bafc2;      /* barres « Salle » de l'aperçu */
  --sun: #F2B930;            /* soleil du logo : accent rare (badges provisoires) */
  --sun-l: #FCEFC8;

  /* Neutres */
  --bg: #fafbf9;             /* fond de page */
  --bg-alt: #ffffff;         /* sections blanches une sur deux */
  --ink: #17374a;
  --body: #4f6472;
  --muted: #758793;
  --line: #dce4e3;
  --on-dark: #ffffff;
  --on-dark-2: #c0ced5;

  --placeholder: #eef2f0;    /* cadres d'illustration provisoires */
  --placeholder-ink: #7f9189;

  /* Formes */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --gutter: 16px;            /* marge latérale mobile */
  --max: 1160px;
  --header-h: 68px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 1.7;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage); }
ul { list-style: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- 3. Typographie (titres serrés comme l'appli) ---------- */
h1 { font-size: clamp(38px, 5vw, 64px); font-weight: 600; line-height: 1.06; letter-spacing: -.05em; color: var(--navy); }
h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 600; line-height: 1.12; letter-spacing: -.045em; color: var(--navy); }
h3, .card-title { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; color: var(--navy); }
p { color: var(--body); }
.lead { font-size: clamp(16px, 1.6vw, 18px); line-height: 1.75; color: var(--body); margin-top: 16px; }
.lead b, p b { color: var(--navy); font-weight: 600; }
.hl { color: var(--sage); }
/* Surtitre : capitales espacées précédées d'un point (comme « Votre équipe. Votre tempo. ») */
.eyebrow {
  display: flex; align-items: center; gap: 9px; margin-bottom: 16px;
  font-size: 12px; font-weight: 650; letter-spacing: .17em; text-transform: uppercase; color: var(--sage);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.eyebrow-sun, .eyebrow-sky { color: var(--sage); }
.note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---------- 4. Boutons (actions = vrais boutons) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1;
  padding: 14px 22px; min-height: 49px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-hover); box-shadow: 0 4px 12px rgba(23, 55, 74, .12); }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-secondary:hover { border-color: #b9c8c5; background: var(--mint-l); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-sm { padding: 10px 16px; min-height: 40px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:focus-visible, .card-choice:focus-visible, summary:focus-visible { outline: 3px solid var(--sage-2); outline-offset: 3px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 479px) { .btn-row .btn { width: 100%; } }

/* ---------- 5. En-tête collant (blanc, comme la barre du tableau de bord) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand img { height: 46px; width: auto; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { text-decoration: none; font-weight: 500; font-size: 14px; color: var(--body); }
.main-nav a:hover { color: var(--navy); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; }
/* En-tête fixe : « Essayer la démo » reste toujours visible ; sur petit écran, « Demander une démo » reste dans le haut de page. */
.header-actions .btn-try { border-color: var(--sage-2, #6c9b87); }
@media (max-width: 599px) { .header-actions .btn-ask { display: none; } }

@media (max-width: 899px) {
  .header-actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 379px) { .brand img { height: 36px; } .header-actions .btn-sm { padding: 10px 12px; font-size: 13px; } }

/* ---------- 6. Sections ---------- */
.section { padding: 80px 0; overflow-x: clip; }
@media (min-width: 768px) { .section { padding: 112px 0; } }
/* Ancres : on ne garde que 40 px de marge sous l'en-tête au lieu de tout le padding de la section */
section[id] { scroll-margin-top: -40px; }                     /* mobile : 80 − 40 */
@media (min-width: 768px) { section[id] { scroll-margin-top: -72px; } }   /* ordinateur : 112 − 40 */
#hero { scroll-margin-top: 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid #edf1ef; border-bottom: 1px solid #edf1ef; }
.section-head { max-width: 720px; margin-bottom: 48px; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* Cercles discrets (repris de la page de connexion) */
.section-hero, .section-cta { position: relative; overflow: clip; }
.section-hero::after, .section-cta::after {
  content: ""; position: absolute; width: 780px; height: 780px; right: -400px; bottom: -370px; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .05); border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(255, 255, 255, .012), 0 0 0 180px rgba(255, 255, 255, .012);
}
.section-hero > .container, .section-cta > .container { position: relative; z-index: 1; }

/* Hero : bloc bleu nuit comme le panneau de la connexion */
/* Plein écran : le haut de page occupe toute la hauteur visible sous l'en-tête */
.section-hero {
  background: var(--navy); color: #fff; padding: 56px 0 64px;
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
}
@media (min-width: 768px) { .section-hero { padding: 72px 0; } }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; } }
.section-hero h1 { color: #fff; }
.section-hero .hl { color: var(--mint); }
.section-hero .eyebrow { color: #c5dad1; }
.section-hero .eyebrow::before { background: var(--mint); }
.section-hero .lead { color: var(--on-dark-2); max-width: 520px; }
.section-hero .note { color: #9cb3bf; }
.section-hero .btn-primary { background: var(--mint); border-color: var(--mint); color: var(--navy); }
.section-hero .btn-primary:hover { background: var(--mint-hover); }
.section-hero .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.section-hero .btn-secondary:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .5); }

/* Aperçu du planning (même dessin que la page de connexion) */
.illu.illu-mock { background: none; border: 0; padding: 0; aspect-ratio: auto; display: block; }
.preview {
  border: 1px solid rgba(255, 255, 255, .13); border-radius: 14px; background: rgba(255, 255, 255, .03);
  box-shadow: 0 18px 40px rgba(8, 30, 44, .11); overflow: hidden; transform: rotate(-1.5deg); text-align: left;
}
.preview-top { display: flex; align-items: center; gap: 11px; padding: 18px 20px; border-bottom: 1px solid rgba(255, 255, 255, .075); }
.preview-icon { width: 34px; height: 34px; flex: none; border-radius: 8px; background: rgba(255, 255, 255, .05); position: relative; }
.preview-icon::before { content: ""; position: absolute; inset: 10px 9px 9px; border: 1.5px solid #cee4db; border-radius: 3px; }
.preview-top strong { display: block; font-size: 13px; font-weight: 600; color: #fff; }
.preview-top small { display: block; font-size: 12px; color: #9fb5c0; margin-top: 2px; }
.preview-badge {
  margin-left: auto; white-space: nowrap; font-size: 12px; color: #c8e5d7;
  background: rgba(169, 212, 190, .09); border: 1px solid rgba(169, 212, 190, .15); border-radius: 30px; padding: 5px 9px;
}
.preview-grid { display: grid; grid-template-columns: 62px repeat(5, minmax(0, 1fr)); gap: 12px 7px; padding: 19px 20px; align-items: center; }
.preview-grid > span { font-size: 12px; color: #9fb5c0; text-align: center; }
.preview-grid > .preview-row { text-align: left; color: #d7e3e7; }
.preview-grid > i { display: block; height: 25px; border-radius: 5px; background: rgba(255, 255, 255, .02); position: relative; }
.preview-grid > i::before { content: ""; position: absolute; left: 3px; top: 3px; bottom: 3px; border-radius: 3px; }
.preview-grid > i.w3::before { right: 3px; }
.preview-grid > i.w2::before { right: 28%; }
.preview-grid > i.s-mint::before { background: #a7d2bd; }
.preview-grid > i.s-blue::before { background: var(--blue-grey); }
.preview-foot { border-top: 1px solid rgba(255, 255, 255, .075); padding: 13px 20px; font-size: 12px; color: #a6bfcb; display: flex; align-items: center; gap: 7px; }
.preview-foot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #a7d2bd; }
@media (max-width: 479px) { .preview-badge { display: none; } .preview-grid { grid-template-columns: 52px repeat(5, minmax(0, 1fr)); gap: 10px 5px; padding: 16px; } }

/* Bandeau de preuve */
.section-proof { padding: 56px 0; border-bottom: 1px solid var(--line); }
.proof-title { text-align: center; font-size: 12px; font-weight: 650; letter-spacing: .17em; text-transform: uppercase; color: var(--muted); }
.proof-logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
@media (min-width: 768px) { .proof-logos { grid-template-columns: repeat(4, 1fr); } }
.logo-slot {
  min-height: 56px; display: grid; place-items: center; text-align: center; padding: 8px;
  border: 1px dashed #b9c8c5; border-radius: var(--radius-sm);
  font-size: 13px; color: var(--placeholder-ink); background: var(--placeholder);
}
/* Chiffres : cartes comme les indicateurs du tableau de bord (Absentéisme, Ponctualité…) */
.proof-figures { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 768px) { .proof-figures { grid-template-columns: 1fr 1fr 2fr; } }
.figure { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.figure strong { font-size: 26px; font-weight: 600; letter-spacing: -.03em; color: var(--navy); }
.figure span { color: var(--muted); font-size: 14px; }
.figure-quote { color: var(--body); font-style: italic; justify-content: center; }
cite { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Listes à coches (pastille menthe) */
.check-list { margin-top: 24px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; color: var(--body); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--mint-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23426958' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
  border: 1px solid #cfe2d8;
}

/* ---------- 7. Cartes (comme le tableau de bord) ---------- */
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards-2, .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } .cards { gap: 20px; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.section-alt .card { background: var(--bg); }
.card p { font-size: 15px; }
.card .illu { margin-bottom: 8px; }

/* Cartes cliquables (choix d'objet = blocs cliquables) */
.card-choice { font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.card-choice:hover { border-color: #b9c8c5; box-shadow: 0 4px 14px rgba(23, 55, 74, .06); }
.card-text { color: var(--body); font-size: 15px; }

/* Visite : légendes */
figcaption { color: var(--body); font-size: 15px; }
figcaption b { color: var(--sage); }

/* Témoignages */
.quote p { font-style: italic; }
.quote-figure { font-style: normal !important; font-weight: 600; font-size: 20px; letter-spacing: -.02em; color: var(--sage) !important; }

/* ---------- 8. Tarifs ---------- */
.badge-provisional {
  display: inline-block; align-self: flex-start;
  font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 30px; background: var(--sun-l); color: #8a6410; margin-top: 16px;
}
.price-card .badge-provisional { margin-top: 0; }
.price { font-size: 15px; color: var(--muted); }
.price strong { font-size: 44px; color: var(--navy); font-weight: 600; letter-spacing: -.05em; }
.price-min { font-size: 13px; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.price-card .check-list { margin: 8px 0 20px; flex: 1; }
/* Formule mise en avant : carte bleu nuit, bouton menthe */
.price-card-featured { background: var(--navy); border-color: var(--navy); }
.price-card-featured h3, .price-card-featured .price strong { color: #fff; }
.price-card-featured .price, .price-card-featured .price-min, .price-card-featured .check-list li { color: var(--on-dark-2); }
.price-card-featured .price-min { border-bottom-color: rgba(255, 255, 255, .12); }
.price-card-featured .check-list li::before { background-color: rgba(184, 220, 203, .15); border-color: rgba(184, 220, 203, .3); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23b8dccb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.price-card-featured .btn-primary { background: var(--mint); border-color: var(--mint); color: var(--navy); }
.price-card-featured .btn-primary:hover { background: var(--mint-hover); }

/* ---------- 9. FAQ ---------- */
/* Compacte : 2 colonnes indépendantes sur ordinateur (une question ouverte n'agrandit que sa colonne) */
#faq { padding: 48px 0; }
#faq .section-head { margin-bottom: 24px; }
#faq .section-head .lead { margin-top: 8px; }
.faq-list { display: grid; gap: 8px; align-items: start; }
.faq-col { display: grid; gap: 8px; align-content: start; min-width: 0; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 24px; }
.section-alt .faq-list details { background: var(--bg); }
.faq-list summary { cursor: pointer; font-weight: 600; font-size: 15px; line-height: 1.4; color: var(--navy); padding: 18px 0; min-height: 56px; list-style-position: outside; }
.faq-list details p { font-size: 14px; line-height: 1.6; padding-bottom: 18px; }
@media (min-width: 900px) {
  #faq { padding: 56px 0; }
  .faq-list { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ---------- 10. CTA final : bleu nuit comme la connexion, bouton menthe ---------- */
.section-cta { background: var(--navy); }
.section-cta h2 { color: #fff; }
.section-cta .lead { color: var(--mint); font-weight: 500; }
.section-cta p { color: var(--on-dark-2); }
.section-cta .lead + p { margin-top: 16px; }
.section-cta .eyebrow { color: #c5dad1; }
.section-cta .eyebrow::before { background: var(--mint); }
.form { gap: 4px; border-color: transparent; padding: 28px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 550; color: #2a4656; margin-top: 12px; }
.form input {
  font: inherit; font-size: 14px; padding: 13px 14px; min-height: 49px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus { outline: none; border-color: #6c9b87; box-shadow: 0 0 0 3px rgba(108, 155, 135, .1); }
.form .btn { margin-top: 20px; }
.section-cta .form .note { color: var(--muted); margin-top: 10px; }

/* ---------- 11. Pied de page ---------- */
.section-footer { padding: 56px 0; background: #fff; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid .note { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); } }
.footer-logo { height: 48px; width: auto; margin-bottom: 8px; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: var(--body); text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- 12. Emplacements d'illustration (provisoires) ---------- */
.illu {
  display: grid; place-items: center; text-align: center; width: 100%;
  background: var(--placeholder); border: 1px dashed #b9c8c5; border-radius: var(--radius);
  color: var(--placeholder-ink); font-size: 13px; font-weight: 500; padding: 16px;
}
.illu > span { max-width: 26ch; }
.illu-tall { aspect-ratio: 4 / 3.4; }
.illu-wide { aspect-ratio: 16 / 7; }
.illu-screen { aspect-ratio: 16 / 10; }
.illu-icon { width: 104px; height: 88px; padding: 6px; font-size: 11px; border-radius: var(--radius-sm); line-height: 1.2; }
/* Les petites icônes de fonctions : carré menthe pâle comme les icônes du tableau de bord */
.card .illu-icon { background: var(--mint-l); border-color: #cfe2d8; color: var(--sage); }

/* Emplacement rempli par une vraie image (posée depuis le mode édition) */
.illu.has-img, .logo-slot.has-img { padding: 0; border: 0; background: none; overflow: hidden; }
.illu.has-img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.logo-slot.has-img img { max-height: 48px; width: auto; margin: auto; object-fit: contain; }
