/* Rhynote : feuille de style commune (accueil FR/EN, confidentialité, 404).
   Aucune police ni ressource externe : la CSP du site n'autorise que 'self'. */

:root {
  --indigo: #3D3B8E;
  --indigo-deep: #25235C;
  --indigo-night: #12112B;
  --lavender: #B7B5FF;

  --bg: #F3F3FB;
  --card: #FFFFFF;
  --text: #15142E;
  --muted: #5B5A78;
  --line: rgba(61, 59, 142, .16);
  --accent: var(--indigo);
  --pill: rgba(61, 59, 142, .08);
  --btn-bg: var(--indigo);
  --btn-fg: #FFFFFF;

  --radius: 22px;
  --max: 1120px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12112B;
    --card: #1E1C45;
    --text: #FFFFFF;
    --muted: #B9B8D6;
    --line: rgba(183, 181, 255, .18);
    --accent: var(--lavender);
    --pill: rgba(183, 181, 255, .12);
    --btn-bg: var(--lavender);
    --btn-fg: var(--indigo-deep);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: #fff; color: var(--indigo-deep); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 16px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-light { background: var(--lavender); color: var(--indigo-deep); }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-solid { background: var(--btn-bg); color: var(--btn-fg); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .9rem; }

/* ---------- En-tête / héros (toujours indigo) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(120, 117, 230, .55) 0%, transparent 62%),
    radial-gradient(50% 60% at 0% 100%, rgba(183, 181, 255, .18) 0%, transparent 60%),
    var(--indigo);
}
.site-header { position: relative; z-index: 2; padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a { color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.site-nav .lang { border: 1px solid rgba(255, 255, 255, .3); margin-left: 8px; font-size: .85rem; }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding-top: 40px; padding-bottom: 88px;
}
.eyebrow { display: inline-block; margin-bottom: 16px; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--lavender); }
.hero h1 {
  margin-bottom: 20px; font-size: clamp(2.5rem, 6.2vw, 4.4rem); line-height: 1.02;
  font-weight: 850; letter-spacing: -.035em;
}
.hero h1 em { font-style: normal; color: var(--lavender); }
.lede { max-width: 34em; margin-bottom: 32px; font-size: 1.2rem; line-height: 1.55; color: rgba(255, 255, 255, .86); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0; padding: 0; list-style: none; }
.chips li {
  margin: 0; padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .92);
}

/* Captures d'écran dans un cadre de téléphone */
.device {
  margin: 0; padding: 7px; border-radius: 34px; background: #0B0A1F;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px -24px rgba(8, 7, 30, .55);
}
.device img { display: block; width: 100%; height: auto; border-radius: 27px; }
.device.landscape { padding: 6px; border-radius: 26px; }
.device.landscape img { border-radius: 20px; }

.hero-shots { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.hero-shots .device { position: absolute; }
.hero-shots .front { width: 280px; z-index: 2; transform: translateX(56px) rotate(3deg); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 80px -20px rgba(8, 7, 30, .75), 0 0 90px rgba(183, 181, 255, .2); }
.hero-shots .back { width: 240px; transform: translateX(-110px) rotate(-6deg); opacity: .9; }

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

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.kicker { margin-bottom: 12px; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h2.title { margin-bottom: 14px; font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.08; font-weight: 850; letter-spacing: -.03em; }
.sub { margin: 0; font-size: 1.1rem; color: var(--muted); }

/* Écrire : captures alternées avec leur texte */
.show { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin-top: 88px; }
.section-head + .show { margin-top: 0; }
.show.rev .show-media { order: 2; }
.show-media { display: flex; justify-content: center; }
.show-media .device { width: 300px; }
.show-text { max-width: 30em; }
.show-text h3 { margin-bottom: 14px; font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.1; font-weight: 850; letter-spacing: -.025em; }
.show-text > p:not(.kicker) { margin-bottom: 20px; font-size: 1.08rem; color: var(--muted); }
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; margin: 0; padding: 7px 0 7px 30px; font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 13px; width: 7px; height: 12px;
  border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* Bande maquettes (indigo) */
.band { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, var(--indigo-deep) 0%, #17163F 100%); }
.band .kicker { color: var(--lavender); }
.band .sub { color: rgba(255, 255, 255, .78); }
.band-wave {
  position: absolute; inset: auto 0 0 0; height: 220px; pointer-events: none;
  background: rgba(183, 181, 255, .1);
  -webkit-mask: url(/wave.svg) center / 100% 100% no-repeat;
  mask: url(/wave.svg) center / 100% 100% no-repeat;
}
.band .device.landscape { max-width: 1000px; margin: 0 auto; position: relative; }
.s-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 64px 0 0; padding: 0; list-style: none; }
.s-card { margin: 0; }
.s-card .device { margin-bottom: 20px; }
.s-card h3 { margin-bottom: 6px; font-size: 1.2rem; }
.s-card p { margin: 0; color: rgba(255, 255, 255, .78); font-size: .96rem; }
.s-export { position: relative; max-width: 40em; margin: 48px 0 0; font-size: 1.08rem; color: rgba(255, 255, 255, .86); }

/* Confidentialité */
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.zero-card {
  padding: 36px 32px; border-radius: 28px; color: #fff;
  background: linear-gradient(150deg, var(--indigo) 0%, var(--indigo-deep) 100%);
  box-shadow: 0 30px 60px -30px rgba(37, 35, 92, .6);
}
.zero { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.zero strong { font-size: clamp(4.5rem, 12vw, 7rem); line-height: .9; font-weight: 900; letter-spacing: -.06em; color: var(--lavender); }
.zero span { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.checks { margin: 0 0 24px; padding: 0; list-style: none; }
.checks li { position: relative; margin: 0; padding: 9px 0 9px 34px; border-top: 1px solid rgba(183, 181, 255, .2); font-size: .98rem; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 13px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--lavender);
}
.checks li::after { /* coche dessinée en CSS (la CSP n'autorise que 'self') */
  content: ""; position: absolute; left: 9px; top: 17px; width: 6px; height: 10px;
  border: solid var(--indigo-deep); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(.9);
}
.zero-card .link { color: var(--lavender); font-weight: 700; }

/* Studio */
section.tight { padding-top: 0; }
.studio {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  padding: 40px; border-radius: 28px; background: var(--card); border: 1px solid var(--line);
}
.studio h2 { margin-bottom: 10px; }
.studio p { margin: 0; color: var(--muted); max-width: 42em; }

/* FAQ */
.faq { max-width: 760px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 12px; }
summary {
  position: relative; list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 700; font-size: 1.05rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 26px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* Appel final + pied de page (indigo) */
.final { text-align: center; color: #fff; background: radial-gradient(70% 90% at 50% 0%, rgba(120, 117, 230, .45) 0%, transparent 65%), var(--indigo); }
.final img { width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 22px; box-shadow: 0 16px 40px rgba(8, 7, 30, .4); }
.final h2 { margin-bottom: 12px; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; font-weight: 850; letter-spacing: -.03em; }
.final p { margin: 0 auto 28px; max-width: 30em; color: rgba(255, 255, 255, .82); font-size: 1.1rem; }
.site-footer { padding: 28px 0 40px; color: rgba(255, 255, 255, .7); font-size: .9rem; background: var(--indigo-night); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* ---------- Pages juridiques / 404 ---------- */
.hero.compact .site-header { padding-bottom: 8px; }
.page-title { position: relative; z-index: 1; padding-top: 24px; padding-bottom: 48px; }
.page-title h1 { margin: 0 0 6px; font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.1; font-weight: 850; letter-spacing: -.03em; }
.page-title p { margin: 0; color: var(--lavender); }
.legal { padding-top: 32px; padding-bottom: 64px; }
.langnav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.langnav a { padding: 6px 14px; border-radius: 999px; background: var(--pill); color: var(--accent); text-decoration: none; font-weight: 600; font-size: .9rem; }
.legal article { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; margin-bottom: 24px; }
.legal article > h2 { margin: 0 0 4px; font-size: 1.45rem; letter-spacing: -.01em; }
.legal .date { margin: 0 0 16px; color: var(--muted); font-size: .9rem; }
.legal h3 { margin: 24px 0 6px; font-size: 1.05rem; color: var(--accent); }
.legal p, .legal li { margin: 0 0 10px; }
.legal ul { padding-left: 1.2em; margin: 0 0 10px; }
.legal .summary { background: var(--pill); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; font-weight: 600; }
.legal code { font-size: .9em; }
.notfound { text-align: center; padding-top: 72px; padding-bottom: 96px; }
.notfound .big { font-size: clamp(5rem, 18vw, 9rem); line-height: 1; font-weight: 900; letter-spacing: -.06em; color: var(--accent); margin-bottom: 8px; }
.notfound p { color: var(--muted); margin-bottom: 28px; }
.cta-row.center { justify-content: center; }
.btn-outline { border-color: var(--line); color: var(--accent); }
.btn-outline:hover { border-color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 72px; }
  .hero-shots { min-height: 520px; }
  .show { grid-template-columns: 1fr; gap: 36px; margin-top: 72px; }
  .show.rev .show-media { order: 0; }
  .show-text { max-width: none; }
  .s-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .privacy-grid { grid-template-columns: 1fr; gap: 36px; }
  .studio { grid-template-columns: 1fr; padding: 32px 26px; }
  section { padding: 72px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-nav a:not(.lang) { display: none; }
  .hero-shots { min-height: 0; }
  .hero-shots .device { position: static; }
  .hero-shots .back { display: none; }
  .hero-shots .front { width: min(280px, 72vw); transform: none; }
  .show-media .device { width: min(280px, 72vw); }
  .show:first-of-type .show-media { display: none; } /* déjà montrée dans le bandeau d'accueil */
  .s-grid { grid-template-columns: 1fr; }
  .s-card .device { width: min(260px, 70vw); margin-left: auto; margin-right: auto; }
  .cta-row .btn { width: 100%; }
  .zero-card { padding: 28px 22px; }
  section { padding: 60px 0; }
  .section-head { margin-bottom: 32px; }
}
