/* Sipriz, site vitrine. Clair par défaut, sombre selon le réglage du téléphone ou de l'ordinateur. */
@font-face { font-family: 'Bricolage Grotesque'; src: url('/assets/fonts/bricolage-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('/assets/fonts/bricolage-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --plum: #3A1078; --pink: #FF4F86; --ink: #1B1238; --cream: #FFD9A8;
  --bg: #F3F0FF; --card: #FFFFFF; --soft: #E9E3FB; --text: #1B1238; --muted: #4A4170;
  --heading: #3A1078; --link: #3A1078; --header: rgba(243, 240, 255, 0.9);
  --band: #3A1078; --band-text: #FFFFFF; --band-muted: #D9D0F5; --feat: #FFFFFF; --feat-text: #1B1238; --feat-muted: #4A4170;
  --foot: #1B1238; --shadow: 0 24px 50px rgba(58, 16, 120, 0.18); --border: #DCD3F5;
  --btn: #3A1078; --btn-text: #FFFFFF; --pill: #FFE3EC; --pill-text: #3A1078;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #150E2B; --card: #241A45; --soft: #2E2257; --text: #F3F0FF; --muted: #B8AEDD;
    --heading: #FFFFFF; --link: #E4DEF7; --header: rgba(21, 14, 43, 0.9);
    --band: #241A45; --band-muted: #D9D0F5; --feat: #3A1078; --feat-text: #FFFFFF; --feat-muted: #D9D0F5;
    --foot: #0C0819; --shadow: 0 30px 70px rgba(255, 79, 134, 0.2); --border: #3A2E66;
    --btn: #FF4F86; --btn-text: #1B1238; --pill: #3A1078; --pill-text: #FF9DBC;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--pink); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: 'Bricolage Grotesque', 'Figtree', sans-serif; color: var(--heading); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(38px, 6.2vw, 68px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; }
h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 620px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--header); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-header nav { display: flex; align-items: center; gap: 8px 20px; min-height: 68px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: 'Bricolage Grotesque', sans-serif; font-size: 28px; font-weight: 800; letter-spacing: -1px; color: var(--heading); }
.nav-links { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.nav-links a { font-weight: 700; font-size: 15px; text-decoration: none; padding: 10px 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; background: var(--btn); color: var(--btn-text); font-weight: 800; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { color: var(--btn-text); filter: brightness(1.08); }
.btn.small { min-height: 44px; font-size: 15px; padding: 0 16px; }
@media (max-width: 720px) {
  .nav-links { order: 3; width: 100%; flex-wrap: nowrap; justify-content: flex-start; gap: 0 18px; overflow-x: auto; scrollbar-width: none; }
  .nav-links a { font-size: 14px; white-space: nowrap; }
  .nav-cta { display: none; }
}

/* Sections */
section { padding: clamp(48px, 7vw, 88px) 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 760px; }
.eyebrow { align-self: flex-start; padding: 6px 12px; border-radius: 10px; background: var(--pill); color: var(--pill-text); font-size: 14px; font-weight: 800; }

/* Accueil */
.hero { padding-top: clamp(24px, 4vw, 56px); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px; }
.hero-text { flex: 1 1 440px; display: flex; flex-direction: column; gap: 22px; }
.hero h1 em { font-style: normal; color: var(--pink); }
.hero-visual { flex: 1 1 420px; position: relative; min-height: 560px; display: flex; justify-content: center; }
.hero-photo { position: absolute; right: 0; top: 30px; width: 62%; aspect-ratio: 4 / 5; border-radius: 32px; object-fit: cover; box-shadow: var(--shadow); }
.hero-visual .phone { position: absolute; left: 0; top: 0; transform: rotate(-4deg); z-index: 1; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; min-width: 186px; padding: 0 18px; border-radius: 14px; background: var(--ink); color: #FFFFFF; text-decoration: none; }
.store:hover { color: #FFFFFF; filter: brightness(1.15); }
.store svg { flex-shrink: 0; }
.store small { display: block; font-size: 11px; font-weight: 600; opacity: 0.8; }
.store b { display: block; font-size: 17px; font-weight: 800; line-height: 1.1; }
@media (prefers-color-scheme: dark) { .store { background: #FFFFFF; color: var(--ink); } .store:hover { color: var(--ink); } }
.reassure { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 700; color: var(--muted); }
.reassure span::before { content: '✓ '; color: var(--pink); }
@media (max-width: 720px) {
  .hero-visual { min-height: 500px; }
  .hero-photo { width: 64%; top: 30px; }
}

/* Téléphone (aperçus de l'appli) */
.phone { width: var(--w, 280px); aspect-ratio: 1 / 2.05; border-radius: 44px; background: #1B1238; padding: 10px; box-shadow: var(--shadow); flex-shrink: 0; }
.screen { width: 100%; height: 100%; border-radius: 35px; background: #F3F0FF; overflow: hidden; position: relative; font-family: 'Figtree', sans-serif; color: #1B1238; font-size: 11px; line-height: 1.3; }
.screen .ph { width: 100%; height: 100%; object-fit: cover; }
.screen b { font-weight: 800; }
@media (max-width: 720px) { .hero-visual .phone { width: 220px; } }
@media (max-width: 1100px) { .media-photo { display: none; } }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; counter-reset: step; }
.step { background: var(--card); border-radius: 28px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.step .num { font-family: 'Bricolage Grotesque', sans-serif; font-size: 42px; font-weight: 800; color: var(--pink); line-height: 1; }
.step p { color: var(--muted); font-size: 16px; }

/* Zigzag fonctionnalités */
.zig { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(32px, 6vw, 96px); padding: 20px 0; }
.zig + .zig { margin-top: clamp(32px, 5vw, 64px); }
.zig.flip { flex-direction: row-reverse; }
.zig-media { flex: 0 0 auto; position: relative; padding: 10px; }
.zig-text { flex: 1 1 340px; max-width: 520px; display: flex; flex-direction: column; gap: 16px; }
.zig-text p { color: var(--muted); font-size: 18px; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.checks li::before { content: '✓'; flex-shrink: 0; width: 24px; height: 24px; border-radius: 8px; background: var(--pink); color: var(--ink); font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.media-photo { position: absolute; width: 150px; aspect-ratio: 1; border-radius: 24px; object-fit: cover; box-shadow: var(--shadow); border: 5px solid var(--bg); }

/* Bande photo */
.photo-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo-band figure { margin: 0; position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 3 / 4; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }
.photo-band figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(27, 18, 56, 0.72); color: #FFFFFF; font-weight: 800; font-size: 15px; }
@media (max-width: 820px) { .photo-band { grid-template-columns: repeat(2, 1fr); } }

/* Bande foncée */
.band { background: var(--band); color: var(--band-text); }
.band h2, .band h3 { color: #FFFFFF; }
.band .lead { color: var(--band-muted); }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.feat { border-radius: 24px; padding: 24px; background: var(--feat); display: flex; gap: 16px; align-items: flex-start; }
.feat .ico { width: 68px; height: 68px; border-radius: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.feat h3 { font-family: 'Figtree', sans-serif; font-size: 18px; letter-spacing: 0; color: var(--feat-text); }
.feat p { color: var(--feat-muted); font-size: 15px; margin-top: 6px; }

/* Occasions */
.occasions { display: flex; flex-wrap: wrap; gap: 12px; }
.occasion { min-height: 52px; padding: 0 18px; border-radius: 16px; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.occasion span { font-size: 22px; }

/* Encadrés */
.panel { border-radius: 32px; background: var(--card); padding: clamp(24px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.panel > div { flex: 1 1 340px; display: flex; flex-direction: column; gap: 14px; }
.ticks { margin: 0; padding: 0; list-style: none; flex: 1 1 340px; display: flex; flex-direction: column; gap: 12px; }
.ticks li { padding: 16px 18px; border-radius: 16px; background: var(--soft); font-weight: 700; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--card); border-radius: 20px; padding: 0 22px; }
.faq summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 17px; font-weight: 800; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; font-weight: 700; color: var(--pink); flex-shrink: 0; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--muted); display: flex; flex-direction: column; gap: 10px; }
.faq-group + .faq-group { margin-top: 36px; }
.faq-group h3 { margin-bottom: 14px; }

/* Appel final */
.cta { border-radius: 32px; background: var(--pink); color: var(--ink); padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; position: relative; overflow: hidden; }
.cta h2 { color: var(--ink); }
.cta .store { background: var(--ink); color: #FFFFFF; }

/* Guide (page Aide) */
.toc { display: flex; flex-wrap: wrap; gap: 10px; }
.toc a { padding: 10px 14px; border-radius: 12px; background: var(--card); font-weight: 700; font-size: 15px; text-decoration: none; }
.guide { display: flex; flex-direction: column; gap: 18px; }
.guide article { background: var(--card); border-radius: 24px; padding: clamp(20px, 3vw, 32px); scroll-margin-top: 90px; }
.guide h3 { margin-bottom: 12px; }
.guide ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.guide li::marker { color: var(--pink); font-weight: 800; }
.tip { margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: var(--soft); font-size: 15px; }

/* Pages légales */
.legal { padding-top: clamp(32px, 5vw, 56px); }
.legal h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 10px; }
.legal h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 40px 0 12px; }
.legal h3 { font-family: 'Figtree', sans-serif; font-size: 18px; letter-spacing: 0; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); min-width: 160px; }
.legal th { font-weight: 800; }
.legal .updated { color: var(--muted); font-size: 15px; }
.legal .box { background: var(--card); border-radius: 20px; padding: 18px 20px; margin: 16px 0; }
.todo { background: #FFE3A3; color: #1B1238; padding: 0 6px; border-radius: 6px; font-weight: 700; }

/* Pied de page */
.site-footer { background: var(--foot); color: #D9D0F5; margin-top: 24px; }
.site-footer .wrap { padding-top: 44px; padding-bottom: 44px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.site-footer a { color: #D9D0F5; text-decoration: none; display: inline-block; padding: 5px 0; font-size: 15px; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer h2 { font-family: 'Figtree', sans-serif; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: #FFFFFF; margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer .brand span { color: #FFFFFF; }
.site-footer p { font-size: 14px; color: #B8AEDD; margin-top: 12px; max-width: 320px; }
@media (max-width: 820px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > div:first-child { grid-column: 1 / -1; } }

/* Sélecteur de langue */
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); font-weight: 800; font-size: 14px; color: var(--heading); cursor: pointer; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px; list-style: none; min-width: 170px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); }
.lang a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 15px; color: var(--text); }
.lang a:hover, .lang a[aria-current] { background: var(--soft); color: var(--heading); }
@media (max-width: 720px) { .lang { margin-left: auto; } }

/* Japonais et coréen : coupures de ligne naturelles, polices du système */
:lang(ja) body, :lang(ko) body { font-family: 'Figtree', system-ui, -apple-system, 'Hiragino Sans', 'Noto Sans JP', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; overflow-wrap: anywhere; }
:lang(ja) p, :lang(ja) li, :lang(ja) summary { line-break: strict; overflow-wrap: anywhere; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(ko) p, :lang(ko) li, :lang(ko) summary { word-break: keep-all; }
:lang(ja) h1, :lang(ko) h1 { letter-spacing: 0; }
:lang(de) h1, :lang(de) h2 { hyphens: auto; }
