/* ==========================================================================
   Rovent — site vitrine (rovent.app)

   Refonte du 27/09/2026, dans l'esprit de cal.ai : fond crème, noir profond,
   titres très gras et serrés, gros téléphones, cartes arrondies. L'orange de
   marque ne sert qu'aux petits accents (puces, point, mot-clé du titre) : en
   texte sur le crème il est trop pâle, le texte orange est la teinte --primary.
   ========================================================================== */

:root {
  --bg:        #FBFAF6;
  --card:      #FFFFFF;
  --sunk:      #F1EEE6;
  --line:      #E8E4DA;
  --ink:       #0A0A0A;
  --muted:     #66645F;
  --accent:    #F66A1C;   /* orange de marque : aplats et accents */
  --primary:   #B14C14;   /* orange lisible en texte */
  --lime:      #B0D963;

  --radius:    22px;
  --radius-l:  36px;
  --wrap:      1180px;
  --shadow:    0 1px 0 rgba(10, 10, 10, .04), 0 24px 60px rgba(10, 10, 10, .08);
  --shadow-l:  0 40px 100px rgba(10, 10, 10, .22);
  --ease:      cubic-bezier(.22, .68, 0, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 .4em; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px 7px 12px;
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; }

/* ------------------------------- Boutons --------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }

/* Badge App Store, « bientôt » : même gabarit que le badge officiel, sans lien. */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; border-radius: 14px; padding: 9px 20px 9px 16px;
  border: 1px solid #2a2a2a; text-decoration: none; cursor: default; user-select: none;
  line-height: 1.1;
}
.store-badge svg { width: 28px; height: 28px; flex: none; }
.store-badge small { display: block; font-size: .68rem; font-weight: 500; opacity: .85; letter-spacing: .01em; }
.store-badge strong { display: block; white-space: nowrap; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.store-badge.sm { padding: 6px 14px 6px 11px; border-radius: 11px; gap: 9px; }
.store-badge.sm svg { width: 20px; height: 20px; }
.store-badge.sm small { font-size: .58rem; }
.store-badge.sm strong { font-size: .98rem; }

/* ------------------------------- Navigation ------------------------------ */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, .78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand img { width: 44px; height: 44px; }

.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted); padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: var(--sunk); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-login { font-weight: 700; font-size: .95rem; text-decoration: none; padding: 8px 4px; white-space: nowrap; }
.nav-login:hover { text-decoration: underline; text-underline-offset: 4px; }

/* -------------------------------- Hero ----------------------------------- */

.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 6.6vw, 5.6rem); margin-bottom: .28em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--muted); }

.hero-visual { position: relative; height: clamp(460px, 56vw, 660px); }
.device {
  position: absolute; width: clamp(190px, 21vw, 262px);
  padding: 9px; border-radius: 46px; background: linear-gradient(160deg, #262626, #050505);
  box-shadow: var(--shadow-l); image-rendering: auto;
}
.device img { border-radius: 38px; width: 100%; }
.device-a { left: 0; top: 11%; transform: rotate(-4deg); }
.device-b { right: 0; top: 0; transform: rotate(3deg); z-index: 2; }

.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 9px 14px; font-size: .84rem; font-weight: 700; box-shadow: var(--shadow); white-space: nowrap;
}
.float i { font-style: normal; font-size: 1rem; }
.float-a { left: -3%; bottom: 12%; transform: rotate(-3deg); }
.float-b { right: -2%; bottom: 3%; transform: rotate(2deg); }

/* ----------------------------- Bandeau des sports ------------------------ */

.marquee { border-block: 1px solid var(--line); background: var(--card); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-weight: 700; font-size: .95rem; white-space: nowrap; }
@keyframes slide { to { transform: translateX(calc(-50% - 7px)); } }

/* --------------------------------- Sections ------------------------------ */

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { text-align: center; max-width: 820px; margin: 0 auto clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(2.2rem, 4.8vw, 3.9rem); }
.section-head .lead { margin-inline: auto; }
.section-head .eyebrow { margin-bottom: 18px; }

/* ---------------------------------- Bento -------------------------------- */

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius-l); background: var(--card);
  border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); min-height: 500px;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.tile h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: .35em; }
.tile p { color: var(--muted); max-width: 26em; margin-bottom: 0; }
.tile .tag { align-self: flex-start; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.tile.dark { background: #0A0A0A; color: #fff; border-color: #0A0A0A; }
.tile.dark p { color: rgba(255, 255, 255, .68); }
.tile.dark .tag { color: var(--accent); }
.tile.sunk { background: var(--sunk); box-shadow: none; }
.tile.warm { background: #FFE9DB; border-color: #F7D3BC; box-shadow: none; }
.tile-text { position: relative; z-index: 2; }
/* Le téléphone est dans le flux, sous le texte (cartes étroites) ou à côté (cartes larges) : il ne
   peut jamais recouvrir le texte. Sa moitié basse dépasse de la carte, qui la coupe. */
.tile .device { position: relative; align-self: center; width: clamp(200px, 22vw, 260px); margin: 30px 0 -210px; transform: rotate(-2deg); }
.tile.t7 { flex-direction: row; gap: 24px; }
.tile.t7 .tile-text { flex: 1 1 46%; align-self: flex-start; }
.tile.t7 .device { flex: none; align-self: flex-end; margin: 40px 0 -190px; transform: rotate(3deg); }
.tile.t7.left-phone { flex-direction: row-reverse; }
.tile.t7.left-phone .device { transform: rotate(-3deg); }
.t7 { grid-column: span 7; } .t5 { grid-column: span 5; } .t12 { grid-column: span 12; }
.tile ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-weight: 600; font-size: .96rem; }
.tile li::before { content: "✓"; color: var(--accent); font-weight: 900; margin-right: 10px; }

/* ----------------------------- Comment ça marche ------------------------- */

.dark-section { background: #0A0A0A; color: #fff; border-radius: var(--radius-l); margin-inline: clamp(8px, 1.5vw, 20px); }
.dark-section .section-head .eyebrow { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #fff; }
.dark-section .lead { color: rgba(255, 255, 255, .66); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.step { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-l); padding: 34px; }
.step-num { display: block; font-size: clamp(3.4rem, 6vw, 5rem); font-weight: 900; letter-spacing: -0.06em; line-height: 1; color: var(--accent); margin-bottom: 26px; }
.step h3 { font-size: 1.7rem; }
.step p { color: rgba(255, 255, 255, .68); margin: 0; }

/* -------------------------------- Confiance ------------------------------ */

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: .5em; }
.card p { color: var(--muted); margin: 0; }
.card .ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--sunk); font-size: 1.3rem; margin-bottom: 18px; }

/* ---------------------------------- Clubs -------------------------------- */

.clubs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.clubs h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.clubs ul { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 10px; font-weight: 600; }
.clubs li::before { content: "✓"; color: var(--accent); font-weight: 900; margin-right: 10px; }
.clubs-panel { position: relative; height: 520px; border-radius: var(--radius-l); background: var(--sunk); overflow: hidden; }
.clubs-panel .device { left: 50%; top: 40px; transform: translateX(-50%) rotate(-2deg); width: clamp(210px, 24vw, 280px); }

/* ----------------------------------- FAQ --------------------------------- */

.faq { max-width: 820px; margin-inline: auto; }
.faq h2 { text-align: center; font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: 1em; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 0 26px; margin-bottom: 12px; }
summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 700; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; line-height: 1; font-weight: 500; transition: transform .25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: 22px; margin: 0; }
details a { color: var(--primary); }

/* ---------------------------------- Appel final -------------------------- */

.cta-panel {
  background: #0A0A0A; color: #fff; border-radius: var(--radius-l); text-align: center;
  padding: clamp(48px, 8vw, 96px) 24px; margin-inline: clamp(8px, 1.5vw, 20px); position: relative; overflow: hidden;
}
.cta-panel::before { content: ""; position: absolute; inset: -40% -10% auto; height: 80%; background: radial-gradient(closest-side, rgba(246, 106, 28, .34), transparent); pointer-events: none; }
.cta-panel > * { position: relative; }
.cta-panel img { width: 104px; height: 104px; margin: 0 auto 22px; }
.cta-panel h2 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
.cta-panel p { color: rgba(255, 255, 255, .68); max-width: 30em; margin: 0 auto 30px; }
.cta-panel .store-badge { background: #fff; color: #000; border-color: #fff; margin-inline: auto; }

/* ---------------------------------- Pied --------------------------------- */

.footer { padding: 64px 0 34px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); margin: 10px 0 0; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(140px, auto)); gap: 10px 48px; }
.footer-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

/* ------------------------------- Apparition ------------------------------ */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ----------------------------- Pages de texte (légal) -------------------- */

.doc { padding: clamp(40px, 7vw, 84px) 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .3em; }
.doc h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-top: 2em; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .updated { font-size: .92rem; }
.doc a { color: var(--primary); }

/* ------------------------------ Sortie partagée -------------------------- */
/* Page servie par /api/share : ce qu'on voit en ouvrant un lien reçu. */

.share { padding: clamp(40px, 7vw, 80px) 0 60px; }
.share-inner { max-width: 640px; }
.share h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .4em; }
.share-when { font-size: 1.15rem; font-weight: 700; color: var(--primary); margin-bottom: 18px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.fact { font-size: .92rem; font-weight: 600; color: var(--muted); background: var(--card); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; }
.share-state { font-weight: 700; margin-bottom: 4px; }
.share-host { color: var(--muted); }
.share-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.share-note { margin-top: 18px; font-size: .9rem; color: var(--muted); }

/* ------------------------------ Petits écrans ---------------------------- */

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 520px; max-width: 520px; margin-inline: auto; width: 100%; }
  .device { width: clamp(180px, 40vw, 250px); }
  .bento { grid-template-columns: 1fr; }
  .t7, .t5, .t12 { grid-column: auto; }
  .tile, .tile.t7, .tile.t7.left-phone { flex-direction: column; min-height: 0; }
  .tile.t7 .tile-text { flex: none; }
  .tile .device, .tile.t7 .device { align-self: center; width: clamp(210px, 56vw, 270px); margin: 30px 0 -190px; }
  .steps, .cards, .clubs { grid-template-columns: 1fr; }
  .clubs-panel { height: 480px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .nav-inner { gap: 12px; }
  .nav-actions { gap: 10px; }
  .store-badge.sm small { display: none; }
  .store-badge.sm { padding: 8px 12px 8px 10px; }
  .store-badge.sm strong { font-size: .9rem; }
  .nav .brand span { display: none; }
  .float-a { left: -3%; } .float-b { right: -3%; }
  .hero-cta .store-badge { width: 100%; justify-content: center; }
  .hero-cta .btn { width: 100%; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .btn { transition: none; }
}
