/* ==========================================================================
   Côme — cometherobot.com
   Design system issu de la charte visuelle officielle (docs/08_charte_visuelle.md)
   Palette : corail #FF8A6B · cyan #5FE0EC · blush #F29AA6 · encre #20262E
             fonds crème #FAF7F2 / gris clair #F3F5F8
   Principes : rondeurs, blanc lumineux, mouvements doux (ease-out 200–300 ms),
   contraste WCAG AA, cibles tactiles larges, jamais d'agressivité.
   ========================================================================== */

:root {
  --coral: #FF8A6B;
  --coral-deep: #E86A47;      /* corail assombri pour texte/AA */
  --coral-soft: #FFF1EC;
  --cyan: #5FE0EC;
  --cyan-deep: #1FA9B8;
  --cyan-soft: #E9FAFC;
  --blush: #F29AA6;
  --ink: #20262E;
  --ink-soft: #4A5560;
  --cream: #FAF7F2;
  --grey-bg: #F3F5F8;
  --white: #FFFFFF;
  --shadow-egg: #E4E8EC;
  --success: #3CB371;
  --info: #4A90D9;
  --warn: #E5A93C;
  --radius-l: 28px;
  --radius-m: 18px;
  --radius-s: 12px;
  --shadow-soft: 0 10px 40px rgba(32, 38, 46, 0.08);
  --shadow-card: 0 6px 24px rgba(32, 38, 46, 0.07);
  --font: "Nunito", "Quicksand", ui-rounded, -apple-system, "SF Pro Rounded",
          "Segoe UI", system-ui, sans-serif;
  --maxw: 1160px;
}

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

/* L'attribut hidden doit toujours gagner, même sur les éléments stylés en grid/flex. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Accessibilité : lien d'évitement + focus clavier net et cohérent */
.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 200;
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px;
  font-weight: 700; text-decoration: none; box-shadow: var(--shadow-soft);
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; outline: 3px solid var(--cyan-deep); outline-offset: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--cyan-deep); outline-offset: 2px; border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) { .skip-link { transition: none; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--coral-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; font-weight: 700; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

.section { padding: clamp(64px, 9vw, 110px) 20px; }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 44em; margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral-deep);
  background: var(--coral-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 28px; border-radius: 999px;
  font-family: inherit; font-size: 1.02rem; font-weight: 700; cursor: pointer;
  border: 2px solid transparent; text-decoration: none !important;
  transition: transform 0.22s ease-out, box-shadow 0.22s ease-out, background 0.22s ease-out;
}
.btn:focus-visible { outline: 3px solid var(--cyan-deep); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
  color: var(--white); box-shadow: 0 8px 24px rgba(232, 106, 71, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(232, 106, 71, 0.45); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--shadow-egg); }
.btn-secondary:hover { border-color: var(--coral); transform: translateY(-2px); }
.btn-big { min-height: 60px; padding: 16px 38px; font-size: 1.12rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(32, 38, 46, 0.06);
}
.header-in {
  max-width: var(--maxw); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none !important; flex: none; }
.brand img { width: 38px; height: 38px; }
/* Navigation sur UNE seule ligne au-dessus du seuil hamburger (992 px) :
   espacement resserré + non-débordement pour caser les 6 liens + le bouton. */
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; flex-wrap: nowrap; }
.nav a {
  color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; white-space: nowrap;
  padding: 7px 9px; border-radius: 999px; text-decoration: none !important;
  transition: background 0.2s ease-out, color 0.2s ease-out;
}
.nav a:hover { background: var(--coral-soft); color: var(--coral-deep); }
.nav .btn { min-height: 40px; padding: 8px 16px; font-size: 0.9rem; margin-left: 6px; white-space: nowrap; }
.nav-toggle { display: none; }

/* Sélecteur de langue */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px;
  background: var(--white); border: 1.5px solid var(--shadow-egg); border-radius: 999px;
  padding: 6px 14px; font-family: inherit; font-size: 0.9rem; font-weight: 700;
  color: var(--ink); cursor: pointer;
}
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px;
  background: var(--white); border-radius: var(--radius-s); box-shadow: var(--shadow-soft);
  padding: 6px; display: none; flex-direction: column; z-index: 60;
}
.lang-menu.open { display: flex; }
.lang-menu a {
  padding: 9px 14px; border-radius: 8px; color: var(--ink); font-weight: 600;
  font-size: 0.95rem; text-decoration: none !important;
}
.lang-menu a:hover, .lang-menu a[aria-current="true"] { background: var(--coral-soft); color: var(--coral-deep); }

/* ---------- Bandeau confiance (haut de page) ---------- */
.trust-bar { background: var(--ink); color: #E6EBEF; }
.trust-in {
  max-width: var(--maxw); margin: 0 auto; padding: 10px 20px;
  display: flex; gap: 10px; align-items: center; justify-content: center;
  font-size: 0.92rem; line-height: 1.45; text-align: center;
}
.trust-in svg { width: 20px; height: 20px; flex: none; }
.trust-in p { margin: 0; }
.trust-in strong { color: var(--cyan); }
.trust-in a { color: var(--coral); font-weight: 700; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 20px clamp(40px, 6vw, 80px);
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--cyan-soft) 0%, rgba(233,250,252,0) 55%),
    radial-gradient(900px 500px at 8% 110%, var(--coral-soft) 0%, rgba(255,241,236,0) 60%),
    var(--cream);
}
.hero-in {
  max-width: var(--maxw); margin: 0 auto; display: grid;
  grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 5vw, 56px); align-items: center;
}
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { margin-left: 0; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 12px; }
.hero-figure { position: relative; text-align: center; }
.hero-figure img {
  width: min(540px, 100%); margin: 0 auto;
  filter: drop-shadow(0 26px 34px rgba(32, 38, 46, 0.18));
  animation: bob 5.5s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1.5px solid var(--shadow-egg);
  border-radius: 999px; padding: 8px 16px; font-size: 0.88rem; font-weight: 700; color: var(--ink-soft);
}
.badge svg { width: 17px; height: 17px; flex: none; }

/* ---------- Cartes capacités ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px; margin-top: 44px;
}
.card {
  background: var(--white); border-radius: var(--radius-m); padding: 26px 24px;
  box-shadow: var(--shadow-card); border: 1px solid rgba(32,38,46,0.04);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card .ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--coral-soft); margin-bottom: 16px;
}
.card:nth-child(3n+2) .ico { background: var(--cyan-soft); }
.card:nth-child(3n)   .ico { background: #FDF0F2; }
.card .ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }

/* ---------- Scènes (vie avec Côme) ---------- */
.scenes { display: grid; gap: 26px; margin-top: 44px; }
.scene {
  display: grid; grid-template-columns: 1.25fr 0.75fr; border-radius: var(--radius-l);
  overflow: hidden; background: var(--white); box-shadow: var(--shadow-card); align-items: stretch;
}
.scene:nth-child(even) { grid-template-columns: 0.75fr 1.25fr; }
.scene:nth-child(even) .scene-img { order: 2; }
.scene-img { position: relative; min-height: 260px; }
.scene-img img { width: 100%; height: 100%; object-fit: cover; }
.scene-txt { padding: clamp(24px, 3.4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.scene-txt .tag { color: var(--coral-deep); font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.scene-txt p { color: var(--ink-soft); margin: 0; }

/* ---------- Famille ---------- */
.family { background: var(--grey-bg); }
.family-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 44px; }
.family-card { background: var(--white); border-radius: var(--radius-m); padding: 28px 24px; box-shadow: var(--shadow-card); }
.family-card .emoji { font-size: 2rem; margin-bottom: 10px; }
.family-card p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }

/* ---------- Confidentialité ---------- */
.privacy { background: linear-gradient(180deg, #FFFFFF 0%, var(--cyan-soft) 140%); }
.privacy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 44px; }
.privacy-card {
  background: var(--white); border-radius: var(--radius-m); padding: 26px 24px;
  border: 1.5px solid rgba(31, 169, 184, 0.18); box-shadow: var(--shadow-card);
}
.privacy-card .ico {
  width: 48px; height: 48px; border-radius: 14px; background: var(--cyan-soft);
  display: grid; place-items: center; margin-bottom: 14px;
}
.privacy-card .ico svg { width: 24px; height: 24px; }
.privacy-card p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }
.privacy-banner {
  margin-top: 36px; background: var(--ink); color: #F5F8FA; border-radius: var(--radius-m);
  padding: 26px 30px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.privacy-banner strong { color: var(--cyan); }
.privacy-banner svg { width: 34px; height: 34px; flex: none; }

/* ---------- Specs ---------- */
.specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 40px; }
.spec {
  background: var(--white); border-radius: var(--radius-s); padding: 18px 20px;
  box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 2px;
}
.spec dt { font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--coral-deep); }
.spec dd { margin: 0; color: var(--ink); font-weight: 600; }
.spec dd small { display: block; color: var(--ink-soft); font-weight: 400; font-size: 0.85rem; }

/* ---------- App ---------- */
.app-section { background: var(--grey-bg); }
.app-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; margin-top: 20px; }
.app-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.app-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.app-list li strong { color: var(--ink); }
.app-list svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
/* Châssis iPhone réaliste (cohérent avec la vitrine multi-appareils .d-iphone) */
.phone-mock {
  position: relative; max-width: 300px; margin: 0 auto;
  background: #050609; border-radius: 46px; padding: 12px;
  box-shadow:
    inset 0 0 0 2px #23262e,
    0 0 0 2px #d0d3d9, 0 0 0 5px #8b8e96, 0 0 0 6px #5f626a,
    0 30px 55px -20px rgba(16,19,26,0.5);
}
.phone-mock::before {                     /* tranche volume (gauche) */
  content: ""; position: absolute; left: -7px; top: 130px; width: 4px; height: 64px;
  border-radius: 3px; background: linear-gradient(90deg, #64676f, #b7bac1);
}
.phone-mock::after {                      /* bouton veille (droite) */
  content: ""; position: absolute; right: -7px; top: 152px; width: 4px; height: 84px;
  border-radius: 3px; background: linear-gradient(90deg, #b7bac1, #64676f);
}
.phone-screen { position: relative; border-radius: 36px; overflow: hidden; background: var(--cream); padding-top: 30px; }
.phone-screen::before {                   /* Dynamic Island */
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 26px; background: #000; border-radius: 999px; z-index: 3;
}
.phone-screen img { width: 100%; display: block; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 40px auto 0; display: grid; gap: 12px; }
details {
  background: var(--white); border-radius: var(--radius-s); box-shadow: var(--shadow-card);
  padding: 4px 22px; border: 1px solid rgba(32,38,46,0.04);
}
details summary {
  cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--coral-deep);
  transition: transform 0.22s ease-out;
}
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-soft); padding-bottom: 16px; margin: 0; }

/* ---------- Pré-commande ---------- */
.preorder {
  background:
    radial-gradient(900px 480px at 90% 0%, rgba(95, 224, 236, 0.18) 0%, transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(255, 138, 107, 0.22) 0%, transparent 55%),
    var(--ink);
  color: #F5F8FA;
}
.preorder .eyebrow { background: rgba(255,255,255,0.1); color: var(--coral); }
.preorder h2 { color: var(--white); }
.preorder .lead { color: #B9C2CC; }
.preorder-box {
  margin: 44px auto 0; max-width: 880px; background: var(--white); color: var(--ink);
  border-radius: var(--radius-l); box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  display: grid; grid-template-columns: 0.9fr 1.1fr; overflow: hidden;
}
.preorder-side {
  background: linear-gradient(160deg, var(--coral-soft), #fff 70%);
  padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 8px;
}
.preorder-side img { width: 150px; margin-bottom: 4px; }
.price { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; }
.price small { font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.preorder-side ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; font-size: 0.93rem; color: var(--ink-soft); }
.preorder-side li { display: flex; gap: 8px; align-items: flex-start; }
.preorder-side li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.preorder-form { padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 14px; align-content: start; }

/* ---------- Bandeau garanties (au point de décision, fond sombre) ---------- */
.guarantees {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px;
  max-width: 840px; margin: 28px auto 0;
}
.guarantee {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  color: #EAF0F4; font-weight: 700; font-size: 0.9rem;
  padding: 9px 15px; border-radius: 999px;
}
.g-emoji { font-size: 1.05rem; line-height: 1; }
.pre-legal { max-width: 740px; margin: 20px auto 0; color: #C7CED4; font-size: 0.9rem; line-height: 1.6; }
.pre-legal a { color: var(--coral); font-weight: 700; white-space: nowrap; }

/* ---------- Vérification humaine (case « Je ne suis pas un robot » auto-hébergée) ---------- */
.human-check {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--white); border: 1px solid #D7DDE3; border-radius: 12px;
  padding: 12px 16px;
}
.hc-box { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; font-size: 0.95rem; position: relative; }
.hc-checkbox { position: absolute; opacity: 0; width: 26px; height: 26px; margin: 0; cursor: pointer; }
.hc-mark {
  width: 26px; height: 26px; border-radius: 7px; border: 2px solid #B7C0C9; background: #fff;
  flex: none; position: relative; transition: border-color .15s, background .15s;
}
.hc-mark::after {
  content: ""; position: absolute; left: 8px; top: 3px; width: 6px; height: 12px;
  border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0);
  transform-origin: center; transition: transform .18s ease;
}
.human-check.hc-ok .hc-mark { background: #3CB371; border-color: #3CB371; }
.human-check.hc-ok .hc-mark::after { transform: rotate(45deg) scale(1); }
.human-check.hc-loading .hc-mark { border-color: var(--coral); }
.human-check.hc-loading .hc-mark::before {
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  border: 2px solid rgba(255,138,107,0.3); border-top-color: var(--coral);
  animation: hc-spin .6s linear infinite;
}
@keyframes hc-spin { to { transform: rotate(360deg); } }
.hc-checkbox:focus-visible + .hc-mark { outline: 3px solid var(--cyan-deep); outline-offset: 2px; }
.hc-status { font-size: 0.8rem; color: var(--ink-soft); }
.hc-badge { font-size: 0.7rem; color: var(--ink-soft); opacity: .75; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .human-check.hc-loading .hc-mark::before { animation: none; } }
@media (max-width: 420px) { .hc-badge { display: none; } }

/* ---------- Comment ça marche (3 étapes) ---------- */
.how-section { background: var(--grey-bg); }
.how-steps {
  list-style: none; margin: 46px auto 0; padding: 0; max-width: 980px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.how-step {
  background: var(--white); border-radius: var(--radius-l);
  padding: 30px 26px; box-shadow: 0 12px 32px rgba(16,19,26,0.06);
  display: flex; flex-direction: column; gap: 14px;
}
.how-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(150deg, var(--coral), var(--coral-deep));
  color: #fff; font-weight: 800; font-size: 1.3rem;
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(232,106,71,0.35);
}
.how-txt h3 { margin: 0 0 6px; font-size: 1.12rem; }
.how-txt p { margin: 0; color: var(--ink-soft); }

/* ---------- Barre CTA collante (mobile) ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70;
  display: none; flex-direction: column; align-items: center; gap: 1px;
  background: linear-gradient(150deg, var(--coral), var(--coral-deep));
  color: #fff; text-decoration: none; text-align: center;
  padding: 12px 18px; border-radius: 16px;
  box-shadow: 0 14px 32px rgba(232,106,71,0.45);
  animation: sticky-in .3s ease;
}
.sticky-cta-txt { font-weight: 800; font-size: 1.02rem; }
.sticky-cta-sub { font-size: 0.72rem; opacity: 0.92; font-weight: 600; }
@keyframes sticky-in { from { transform: translateY(130%); } to { transform: none; } }
@media (max-width: 700px) { .sticky-cta.show { display: flex; } }
body.sticky-on .chat-fab { bottom: 86px; }
@media (prefers-reduced-motion: reduce) { .sticky-cta { animation: none; } }

/* ---------- Note fondateur / vision ---------- */
.vision-section { background: var(--white); }
.vision-card {
  max-width: 760px; margin: 40px auto 0; text-align: left;
  background: var(--cream); border: 1px solid rgba(32,38,46,0.08);
  border-radius: var(--radius-l); padding: clamp(28px, 4vw, 46px);
  box-shadow: var(--shadow-soft); position: relative;
}
.vision-card p { color: var(--ink); font-size: 1.05rem; line-height: 1.7; margin: 0 0 14px; }
.vision-card p:last-of-type { margin-bottom: 0; }
.vision-sign { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(32,38,46,0.10); }
.vision-sign img { width: 48px; height: 48px; border-radius: 50%; box-shadow: var(--shadow-soft); }
.vision-sign b { display: block; font-size: 1rem; }
.vision-sign span { color: var(--ink-soft); font-size: 0.88rem; }

/* ---------- Roadmap (transparence projet) ---------- */
.roadmap-section { background: var(--grey-bg); }
.roadmap { list-style: none; max-width: 720px; margin: 46px auto 0; padding: 0; position: relative; }
.roadmap::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 34px; width: 2px; background: #D7DDE3; }
.rm-step { position: relative; padding: 0 0 26px 46px; }
.rm-step:last-child { padding-bottom: 0; }
.rm-dot { position: absolute; left: 8px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #C4CCD3; z-index: 1; }
.rm-done .rm-dot { background: #3CB371; border-color: #3CB371; }
.rm-current .rm-dot { background: var(--coral); border-color: var(--coral); box-shadow: 0 0 0 5px rgba(255,138,107,0.22); }
.rm-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rm-head h3 { margin: 0; font-size: 1.08rem; }
.rm-badge { font-size: 0.68rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #E6EAEE; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.rm-done .rm-badge { background: #E4F6EC; color: #2E9E63; }
.rm-current .rm-badge { background: var(--coral-soft); color: var(--coral-deep); }
.rm-txt p { margin: 5px 0 0; color: var(--ink-soft); }
.roadmap-note { max-width: 620px; margin: 6px auto 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Juste valeur (ce que Côme réunit) ---------- */
.value-section { background: var(--white); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 840px; margin: 40px auto 0; }
.value-item { display: flex; align-items: center; gap: 12px; background: var(--grey-bg); border-radius: var(--radius-m); padding: 16px 18px; font-weight: 700; text-align: left; }
.v-emoji { font-size: 1.5rem; line-height: 1; flex: none; }
.value-closing { max-width: 640px; margin: 24px auto 0; color: var(--ink-soft); font-weight: 600; }
@media (max-width: 760px) { .value-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .value-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.92rem; }
.field input, .field select {
  font-family: inherit; font-size: 1rem; padding: 13px 16px; min-height: 50px;
  border: 1.5px solid var(--shadow-egg); border-radius: var(--radius-s);
  background: var(--white); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus { outline: 3px solid rgba(95,224,236,0.5); border-color: var(--cyan-deep); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--ink-soft); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--coral-deep); flex: none; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin: 0; }
.form-status { font-weight: 700; margin: 0; min-height: 1.4em; }
.form-status.ok { color: var(--success); }
.form-status.err { color: #C94F2E; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #97A2AD; padding: 48px 20px 40px; font-size: 0.92rem; }
.footer-in { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 26px; grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.site-footer .brand { color: var(--white); margin-bottom: 8px; }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #B9C2CC; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { max-width: var(--maxw); margin: 30px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.09); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Révélation au scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease-out, transform 0.55s ease-out; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Bannière de consentement ---------- */
.consent-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  background: var(--white); border-radius: var(--radius-m); box-shadow: var(--shadow-soft);
  border: 1px solid rgba(32,38,46,0.08);
  padding: 16px 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  max-width: 860px; margin: 0 auto;
}
.consent-bar p { margin: 0; flex: 1 1 340px; font-size: 0.92rem; color: var(--ink-soft); }
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn { min-height: 44px; padding: 8px 20px; font-size: 0.95rem; }

/* ---------- Badges stores (footer) ---------- */
.store-badges { display: grid; gap: 10px; margin-top: 4px; }
.store-badge {
  display: flex; align-items: center; gap: 10px;
  background: #0F1216; border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px; padding: 8px 14px; width: fit-content; min-width: 190px;
  opacity: 0.92;
}
.store-badge svg { width: 24px; height: 24px; flex: none; }
.store-badge .sb-txt { display: grid; line-height: 1.2; }
.store-badge .sb-soon { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--coral); font-weight: 700; }
.store-badge .sb-name { font-size: 1.02rem; font-weight: 700; color: #FFFFFF; }

/* ---------- Espace compte ---------- */
.account-wrap { max-width: 620px; margin: 0 auto; padding: 40px 20px 90px; display: grid; gap: 18px; }
.account-card {
  background: var(--white); border-radius: var(--radius-l); box-shadow: var(--shadow-card);
  padding: clamp(22px, 4vw, 34px); display: grid; gap: 14px;
}
.account-card h1 { font-size: 1.7rem; text-align: center; margin: 0; }
.account-card h2 { font-size: 1.15rem; margin: 0; }
.account-card form { display: grid; gap: 12px; }
.linklike {
  background: none; border: none; color: var(--coral-deep); font-family: inherit;
  font-size: 0.95rem; font-weight: 700; cursor: pointer; padding: 6px; text-align: center;
}
.linklike:hover { text-decoration: underline; }
.preorder-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.preorder-list li {
  background: var(--coral-soft); border-radius: var(--radius-s);
  padding: 10px 14px; font-weight: 600; font-size: 0.95rem;
}
.account-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-danger { background: #FDECEC; color: #C0392B; border-color: transparent; }
.btn-danger:hover { background: #F9D8D5; transform: translateY(-2px); }

/* ---------- Chatbot ---------- */
.chat-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 62px; height: 62px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
  box-shadow: 0 10px 30px rgba(232, 106, 71, 0.45);
  display: grid; place-items: center;
  transition: transform 0.22s ease-out;
}
.chat-fab:hover { transform: translateY(-3px) scale(1.04); }
.chat-panel {
  position: fixed; right: 18px; bottom: 18px; z-index: 85;
  width: min(370px, calc(100vw - 36px)); height: min(520px, calc(100vh - 90px));
  background: var(--white); border-radius: var(--radius-m); box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(32,38,46,0.08);
}
.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: var(--ink); color: var(--white); font-weight: 700;
}
.chat-head span { flex: 1; }
.chat-close { background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--cream); }
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 0.95rem; line-height: 1.5; white-space: pre-line; }
.chat-msg.come { background: var(--white); box-shadow: var(--shadow-card); align-self: flex-start; }
.chat-msg.me { background: var(--coral); color: var(--white); align-self: flex-end; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--grey-bg); }
.chat-form input {
  flex: 1; font-family: inherit; font-size: 0.98rem; padding: 10px 14px;
  border: 1.5px solid var(--shadow-egg); border-radius: 999px;
}
.chat-form .btn { min-height: 42px; padding: 8px 18px; font-size: 0.92rem; }

/* ---------- Vitrine multi-appareils (Essayez l'app) ---------- */
/* Châssis réalistes en CSS pur : bords métalliques (rings box-shadow),
   boutons latéraux physiques, Dynamic Island, bracelet + couronne de montre. */
.sim-section { background: linear-gradient(180deg, #edf0f5, #e4e8ef); }
.devices {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end;
  gap: clamp(20px, 3vw, 46px); margin-top: 50px;
}
.dev { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.dev-cap { font-weight: 800; font-size: 0.9rem; color: var(--ink-soft); letter-spacing: .01em; }
.d-screen {
  background: var(--cream); overflow: hidden; position: relative; z-index: 2;
  display: flex; flex-direction: column;
}
.sim-body { flex: 1; padding: 14px; display: none; flex-direction: column; gap: 10px; }
.sim-body.active { display: flex; }

/* --- iPhone 15 Pro (titane, Dynamic Island) --- */
.d-iphone {
  position: relative; width: min(250px, 80vw);
  background: #050609; border-radius: 52px; padding: 11px;
  box-shadow:
    inset 0 0 0 2px #23262e,
    0 0 0 2px #d0d3d9, 0 0 0 5px #8b8e96, 0 0 0 6px #5f626a,
    0 38px 62px -22px rgba(16,19,26,0.55);
}
.d-iphone::before {                       /* tranche volume (gauche) */
  content: ""; position: absolute; left: -7px; top: 150px; width: 4px; height: 74px;
  border-radius: 3px; background: linear-gradient(90deg, #64676f, #b7bac1);
}
.d-iphone::after {                        /* bouton veille (droite) */
  content: ""; position: absolute; right: -7px; top: 176px; width: 4px; height: 96px;
  border-radius: 3px; background: linear-gradient(90deg, #b7bac1, #64676f);
}
.d-iphone .d-screen { border-radius: 42px; height: 512px; padding-top: 36px; }
.d-island {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  width: 98px; height: 30px; background: #000; border-radius: 999px; z-index: 4;
  box-shadow: inset 0 0 0 1px #14161c;
}
.d-island::after {                        /* capteur caméra dans l'îlot */
  content: ""; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #33406a, #05060a 70%);
}

/* --- iPad Pro (aluminium) --- */
.d-ipad {
  position: relative; width: min(366px, 92vw);
  background: #050609; border-radius: 30px; padding: 13px;
  box-shadow:
    inset 0 0 0 2px #23262e,
    0 0 0 2px #d0d3d9, 0 0 0 5px #8b8e96, 0 0 0 6px #5f626a,
    0 38px 62px -22px rgba(16,19,26,0.5);
}
.d-ipad .d-screen { border-radius: 17px; height: 462px; }
.d-cam {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%; z-index: 4;
  background: radial-gradient(circle at 35% 35%, #33406a, #05060a 70%);
}
.ipad-layout { display: flex; flex: 1; }
.ipad-rail { width: 64px; background: var(--white); border-right: 1px solid var(--grey-bg); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 0; }
.ipad-railitem { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 1.15rem; }
.ipad-railitem.active { background: var(--coral-soft); }
.ipad-content { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }

/* --- Apple Watch (bracelet sport + couronne digitale) --- */
.watch-stack { position: relative; display: flex; align-items: center; justify-content: center; padding: 46px 0; }
.watch-band {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 118px; border-radius: 30px; z-index: 1;
  background: linear-gradient(180deg, #3d322b, #5c4d43 12%, #4a3d35 50%, #5c4d43 88%, #3d322b);
  box-shadow: inset 0 0 9px rgba(0,0,0,0.45);
}
.watch-band::before, .watch-band::after {   /* coutures du bracelet */
  content: ""; position: absolute; left: 13px; right: 13px; height: 2px; background: rgba(0,0,0,0.20);
}
.watch-band::before { top: 15px; }
.watch-band::after { bottom: 15px; }
.d-watch {
  position: relative; z-index: 2; width: 178px;
  background: linear-gradient(150deg, #4d5058, #0b0c10 55%);
  border-radius: 52px; padding: 12px;
  box-shadow: inset 0 0 0 2px #1a1c22, 0 22px 36px -14px rgba(16,19,26,0.5);
}
.d-watch .d-screen { border-radius: 40px; height: 216px; background: #000; }
.d-crown {
  position: absolute; right: -6px; top: 66px; width: 8px; height: 30px; border-radius: 4px;
  background: linear-gradient(90deg, #8a8d95, #d3d5da, #8a8d95); box-shadow: 0 0 0 1px rgba(0,0,0,0.3);
}
.d-side {
  position: absolute; right: -4px; top: 112px; width: 5px; height: 44px; border-radius: 3px;
  background: linear-gradient(90deg, #5c5f67, #9a9da4);
}
.watch-face { padding: 17px 15px; display: flex; flex-direction: column; gap: 8px; color: #fff; height: 100%; box-sizing: border-box; }
.watch-batt { font-size: 0.84rem; font-weight: 800; }
.watch-room { font-size: 0.7rem; color: #B9C2CC; margin-bottom: 4px; }
.watch-btn { border: none; border-radius: 13px; padding: 9px; font-family: inherit; font-weight: 800; font-size: 0.82rem; background: var(--coral); color: #fff; cursor: default; }
.watch-btn.ghost { background: #1B2027; color: #fff; }

/* --- Android (Pixel : poinçon caméra + barre de gestes) --- */
.d-android {
  position: relative; width: min(246px, 80vw);
  background: #050609; border-radius: 40px; padding: 10px;
  box-shadow:
    inset 0 0 0 2px #23262e,
    0 0 0 2px #3a3d45, 0 0 0 4px #212329,
    0 38px 62px -22px rgba(16,19,26,0.5);
}
.d-android::after {                       /* bouton latéral (droite) */
  content: ""; position: absolute; right: -5px; top: 150px; width: 4px; height: 60px;
  border-radius: 3px; background: linear-gradient(90deg, #212329, #4a4d55);
}
.d-android .d-screen { border-radius: 30px; height: 512px; padding-top: 26px; }
.d-punch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 11px; height: 11px; border-radius: 50%; z-index: 4;
  background: radial-gradient(circle at 35% 35%, #33406a, #05060a 70%);
}
.android-nav { position: relative; display: flex; background: var(--white); border-top: 1px solid var(--grey-bg); padding-bottom: 15px; }
.android-navitem { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 10px 2px 8px; font-size: 0.6rem; font-weight: 700; color: var(--ink-soft); }
.android-navitem svg { width: 20px; height: 20px; }
.android-navitem.active { color: var(--coral-deep); }
.android-nav::after {                     /* barre de gestes Android */
  content: ""; position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 4px; border-radius: 3px; background: var(--ink-soft); opacity: 0.45;
}
.sim-tabs { display: flex; border-top: 1px solid var(--grey-bg); background: var(--white); }
.sim-tab {
  flex: 1; border: none; background: none; font-family: inherit; cursor: pointer;
  padding: 10px 4px 14px; font-size: 0.72rem; font-weight: 700; color: var(--ink-soft);
  display: grid; justify-items: center; gap: 3px;
}
.sim-tab svg { width: 22px; height: 22px; }
.sim-tab.active { color: var(--coral-deep); }
.sim-live {
  background: #1B2733; color: #fff; border-radius: 16px; height: 130px;
  display: grid; place-items: center; font-weight: 700; font-size: 0.9rem;
  background-image: linear-gradient(160deg, rgba(95,224,236,0.2), transparent 60%);
}
.sim-stat { display: flex; gap: 8px; }
.sim-chip { background: var(--white); border-radius: 10px; padding: 8px 10px; font-size: 0.78rem; font-weight: 700; box-shadow: var(--shadow-card); flex: 1; text-align: center; }
.sim-btns { display: flex; gap: 8px; }
.sim-btn-coral { flex: 1; background: var(--coral); color: #fff; border: none; border-radius: 10px; padding: 10px; font-family: inherit; font-weight: 700; }
.sim-btn-ghost { flex: 1; background: var(--white); border: 1.5px solid var(--shadow-egg); border-radius: 10px; padding: 10px; font-family: inherit; font-weight: 700; color: var(--ink); }
.sim-bubble { padding: 10px 14px; border-radius: 14px; font-size: 0.85rem; max-width: 88%; }
.sim-bubble.me { background: var(--coral); color: #fff; align-self: flex-end; }
.sim-bubble.come { background: var(--white); box-shadow: var(--shadow-card); align-self: flex-start; }
.sim-room { background: var(--white); border-radius: 12px; padding: 12px; box-shadow: var(--shadow-card); display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 0.85rem; }
.sim-room small { color: var(--coral-deep); font-weight: 700; }
.sim-player { background: var(--white); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-card); display: grid; gap: 8px; font-size: 0.85rem; }
.sim-bar { height: 6px; border-radius: 3px; background: var(--grey-bg); overflow: hidden; }
.sim-bar span { display: block; height: 100%; width: 62%; background: var(--coral); }

/* ---------- Tableau de bord admin ---------- */
.admin-wrap { max-width: 1180px; margin: 0 auto; padding: 26px 20px 80px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.kpi {
  background: var(--white); border-radius: var(--radius-m); padding: 18px 20px;
  box-shadow: var(--shadow-card); display: grid; gap: 4px; align-content: start;
}
.kpi-label { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--coral-deep); }
.kpi-value { font-size: 1.7rem; font-weight: 800; color: var(--ink); }
.pill { font-size: 0.72rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; width: fit-content; }
.pill.ok { background: #E7F6EE; color: #1F7A4D; }
.pill.warn { background: #FFF3DE; color: #9A6B12; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; margin-top: 18px; }
.chart-card { background: var(--white); border-radius: var(--radius-m); padding: 20px 22px; box-shadow: var(--shadow-card); }
.chart-card h2 { font-size: 1.02rem; margin: 0 0 12px; }
.chart-card svg { width: 100%; height: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.adm-table th { text-align: left; color: var(--ink-soft); font-weight: 700; padding: 8px 10px; border-bottom: 1.5px solid var(--grey-bg); }
.adm-table td { padding: 8px 10px; border-bottom: 1px solid var(--grey-bg); }

/* ---------- Pages légales ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 60px 20px 90px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--ink-soft); overflow-wrap: anywhere; }
.legal a { overflow-wrap: anywhere; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-in, .app-cols, .preorder-box { grid-template-columns: 1fr; }
  .scene, .scene:nth-child(even) { grid-template-columns: 1fr; }
  .scene .scene-img, .scene:nth-child(even) .scene-img { order: -1; min-height: 220px; }
  .footer-in { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure img { width: min(380px, 84%); }
  .how-steps { grid-template-columns: 1fr; max-width: 460px; gap: 16px; }
}
/* En dessous de 992 px, la barre horizontale ne tiendrait plus sur une ligne :
   on bascule sur le menu déroulant (hamburger). */
@media (max-width: 992px) {
  .nav {
    position: fixed; inset: 60px 12px auto 12px; background: var(--white);
    border-radius: var(--radius-m); box-shadow: var(--shadow-soft);
    flex-direction: column; align-items: stretch; padding: 12px; display: none;
    flex-wrap: wrap;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; font-size: 1rem; }
  .nav .btn { margin-left: 0; }
  .nav-toggle {
    display: inline-flex; margin-left: auto; background: none; border: none;
    width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer;
  }
  .nav-toggle svg { width: 26px; height: 26px; }
  .lang-switch { margin-left: 0; }
}
