/* Démonstrateur Caly-Bornes — page d'accueil commerciale (demo.caly-bornes.fr).
   Feuille autonome, sans script : mêmes jetons que la vitrine caly-bornes.fr
   (styles.css + caly-bornes-v2.css) pour que le visiteur passe de l'une à
   l'autre sans rupture. CB-CHG-20260911-152. */
:root {
  --ink: #25272c;
  --muted: #656b74;
  --paper: #f6f8fb;
  --white: #fff;
  --line: #d9dee5;
  --blue: #2f7df6;
  --blue-dark: #0b66e8;
  --blue-deep: #176fe7;
  --mint: #22a5e5;
  --soft-blue: #e7f0ff;
  --shadow: 0 18px 48px rgba(33, 50, 75, .12);
  --shell: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; }
h2 { max-width: 820px; margin: 0 0 14px; font-size: clamp(28px, 3.2vw, 42px); }
h3 { margin: 0; font-size: 19px; }
p { margin: 0 0 12px; }
section { padding: 84px 0; overflow: hidden; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.compact-shell { width: min(calc(100% - 40px), 1040px); }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 10px; background: var(--white); }
.skip-link:focus { top: 12px; }

/* Entête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); box-shadow: 0 2px 9px rgba(33,50,75,.08); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: clamp(12px, 1.5vw, 26px); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; line-height: 1.05; flex: 0 0 auto; }
.brand-mark { width: 46px; height: 46px; flex: 0 0 46px; object-fit: contain; }
.brand strong { display: block; font-size: 19px; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(12px, 1.2vw, 22px); min-width: 0; }
.main-nav a { color: #555d68; font-size: 13px; text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--blue-dark); }
.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }
.main-nav + .header-actions { margin-left: 0; }
.header-actions .button { min-height: 44px; padding: 9px 13px; font-size: 12px; white-space: nowrap; }

/* Boutons */
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 13px 21px; border: 1px solid var(--blue); border-radius: 12px; background: var(--blue); color: var(--white); font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); background: #1f6fe8; box-shadow: 0 12px 28px rgba(47,125,246,.22); }
.button:focus-visible, a:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.button-small { min-height: 42px; padding: 9px 15px; font-size: 13px; }
.button-ghost { border-color: #b8c4d3; background: var(--white); color: var(--blue-dark); }
.button-ghost:hover { background: var(--soft-blue); }
.button-light { border-color: var(--blue); background: var(--blue); color: var(--white); }
.button-outline { border-color: #aebfd3; background: var(--white); color: #17395f; }
.button-outline:hover { background: var(--soft-blue); }
.tel { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid #cad7e6; border-radius: 10px; background: #f5f8fc; color: #10365f; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.tel:hover, .tel:focus-visible { background: #dbeafe; color: #1559b7; }
/* Pictogramme téléphone dessiné, jamais un caractère : rendu identique partout. */
.tel span, .cta-ghost span, .footer-tel span, .hero-actions .button-ghost span { display: inline-block; width: 15px; height: 15px; margin-right: 7px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.2 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.2.4 2.4.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.5 21 3 13.5 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.4 0 .8-.2 1l-2.3 2.2z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.2 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.2.4 2.4.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.5 21 3 13.5 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.4 0 .8-.2 1l-2.3 2.2z'/%3E%3C/svg%3E") center/contain no-repeat; }
.tel span { color: var(--blue-deep); }

/* Titres de section */
.eyebrow, .section-kicker { margin: 0 0 16px; color: var(--blue-dark); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 7px rgba(34,165,229,.12); }
.heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr); gap: 55px; align-items: end; margin-bottom: 38px; }
.heading h2 { margin-bottom: 0; }
.heading > p { margin: 0; color: #667386; font-size: 17px; }

/* Accroche */
.hero { padding: 72px 0 82px; background: radial-gradient(circle at 88% 12%, rgba(34,165,229,.18), transparent 31%), linear-gradient(135deg, #f9fcff, #eaf3ff); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(550px, 1.1fr); gap: 62px; align-items: center; }
.hero h1 { max-width: 740px; margin: 0; font-size: clamp(40px, 4.8vw, 66px); line-height: .98; letter-spacing: -.05em; }
.hero h1 em { color: var(--blue-deep); font-style: normal; }
.lead { max-width: 650px; margin: 28px 0 0; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.trust-list { display: flex; gap: 18px; flex-wrap: wrap; padding: 0; margin: 26px 0 0; list-style: none; color: var(--muted); font-size: 13px; }
.trust-list li::before { content: "✓"; margin-right: 7px; color: var(--blue); font-weight: 900; }
.product-view { position: relative; min-height: 560px; margin: 0; padding: 0 30px 62px 0; }
.real-shot { overflow: hidden; border: 1px solid #cbd8e8; background: #fff; box-shadow: 0 26px 62px rgba(29,65,112,.17); }
.real-shot > span { display: block; padding: 11px 15px; border-bottom: 1px solid #dce4ee; background: #f6f8fb; color: #55657a; font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.real-shot img { display: block; width: 100%; object-fit: cover; object-position: left top; }
.central-shot { border-radius: 22px; }
.central-shot img { height: 450px; }
.mobile-shot { position: absolute; right: 0; bottom: 30px; width: 218px; border: 8px solid #13243a; border-radius: 28px; box-shadow: 0 24px 40px rgba(20,42,70,.34); }
.mobile-shot > span { background: #13243a; color: #dce9f9; text-align: center; }
.mobile-shot img { height: 405px; }
.product-view > figcaption { position: absolute; left: 0; right: 28px; bottom: 0; padding: 11px 15px; border: 1px solid #cbd8e8; border-radius: 0 0 18px 18px; background: #fff; color: #6c7888; font-size: 11px; }

/* Ce que vous pouvez essayer */
.try { background: #fff; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card-grid article { min-height: 200px; padding: 24px; border: 1px solid #cfddec; border-top: 3px solid #2678eb; border-radius: 17px; background: #f7fafd; }
.card-grid span { color: var(--blue-deep); font-size: 11px; font-weight: 900; }
.card-grid h3 { margin: 26px 0 8px; font-size: 20px; }
.card-grid p { margin: 0; color: #667386; font-size: 13px; line-height: 1.55; }

/* Comment y accéder */
.access { background: #edf5ff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; align-content: start; gap: 8px; min-height: 210px; padding: 22px; border: 1px solid #c8daf0; border-radius: 17px; background: #fff; }
.steps span { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 12px; background: #2678eb; color: #fff; font-size: 12px; font-weight: 900; }
.steps b { font-size: 16px; }
.steps small { color: #667386; font-size: 12px; line-height: 1.55; }
.access-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.access-actions .button { min-width: 200px; }
.access-actions p { margin: 0; color: #526173; font-size: 13px; }

/* Les règles */
.rules { background: #fff; }
.rule-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rule-list li { display: grid; gap: 6px; padding: 20px 22px; border: 1px solid #d5dfeb; border-left: 4px solid #2678eb; border-radius: 12px; background: #f8fafc; }
.rule-list b { font-size: 15px; }
.rule-list span { color: #4f5d70; font-size: 13px; line-height: 1.55; }
.caution { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; margin-top: 18px; padding: 18px 20px; border-left: 4px solid #f0a310; border-radius: 10px; background: #fff8e8; color: #755317; }
.caution p { margin: 0; font-size: 12px; }
.caution b { color: #593d08; white-space: nowrap; }

/* Convaincu ? */
.cta { text-align: center; background: linear-gradient(135deg, #102a49, #174878); color: #fff; }
.cta h2 { margin-inline: auto; color: #fff; }
.cta .section-kicker { color: #b9d4f7; }
.cta > .shell > p:not(.section-kicker) { max-width: 720px; margin: 20px auto 0; color: #ccdaeb; }
.cta .hero-actions { justify-content: center; }
.cta-ghost { border-color: rgba(255,255,255,.55); background: transparent; color: #fff; }
.cta-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Écran d'attente (403 tant que l'application n'est pas ouverte) */
.notice { min-height: 60vh; padding: 96px 0; background: radial-gradient(circle at 88% 12%, rgba(34,165,229,.18), transparent 31%), linear-gradient(135deg, #f9fcff, #eaf3ff); }
.notice h1 { max-width: 760px; margin: 0; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -.04em; }
.notice-foot { margin-top: 26px; color: var(--muted); font-size: 14px; }
.notice-page .header-actions { margin-left: auto; }

/* Pied de page */
.site-footer { padding: 55px 0 18px; border-top: 1px solid var(--line); background: #eef1f4; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.35fr .65fr 1fr; gap: 50px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-grid p { max-width: 450px; }
.footer-grid .made-in { margin: 3px 0 0; color: var(--blue-dark); font-size: 12px; font-weight: 800; letter-spacing: .035em; }
.footer-grid a { color: var(--muted); font-size: 13px; text-decoration: none; }
.footer-grid a:hover { color: var(--blue-dark); }
.footer-grid span { color: #667386; font-size: 13px; }
.footer-tel { font-weight: 800; }
.brand-footer { color: var(--ink); font-size: 18px; }
.site-footer > .shell:last-child .made-in { margin-top: 28px; font-size: 12px; }
.mobile-bar { display: none; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .product-view { max-width: 780px; }
  .heading { grid-template-columns: 1fr; gap: 14px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 720px) {
  section { padding: 60px 0; }
  .header-inner { width: min(calc(100% - 28px), 1180px); gap: 10px; }
  .hero { padding: 48px 0 58px; }
  .hero h1 { font-size: clamp(36px, 11.5vw, 52px); }
  .product-view { min-height: 735px; padding: 0 0 56px; }
  .product-view > figcaption { right: 0; }
  .central-shot img { height: 315px; }
  .mobile-shot { right: 50%; bottom: 30px; width: 210px; transform: translateX(50%); }
  .card-grid, .steps, .rule-list { grid-template-columns: 1fr; }
  .card-grid article, .steps li { min-height: auto; }
  .caution { grid-template-columns: 1fr; gap: 7px; }
  .caution b { white-space: normal; }
  .access-actions .button { flex: 1 1 100%; min-width: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #d7e0ec; background: rgba(255,255,255,.97); box-shadow: 0 -8px 24px rgba(23,45,78,.12); }
  .mobile-bar .button { flex: 1; min-height: 48px; padding-inline: 10px; font-size: 14px; }
  body { padding-bottom: 78px; }
  .notice-page { padding-bottom: 0; }
}
@media (max-width: 720px) {
  /* La barre basse reprend « Se connecter » et « Créer mon compte » : l'entête
     ne garde que la marque. L'écran d'attente, sans barre basse, garde son bouton. */
  .header-actions .tel, .header-actions .button { display: none; }
  .notice-page .header-actions .button { display: inline-flex; }
}
@media (max-width: 440px) {
  .heading > p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
