/* ==========================================================================
   Loveloveyou.eu — feuille de style principale
   Rose / noir / blanc · Sophistiqué / Raffiné · Mobile first
   ========================================================================== */

:root {
    --rose: #B02A54;
    --rose-dark: #8C1F42;
    --rose-soft: #F7E8ED;
    --rose-line: #EAD3DA;
    --ink: #14100F;
    --ink-soft: #4A4341;
    --muted: #77706E;
    --paper: #FFFFFF;
    --cream: #FBF7F8;
    --line: #EFE7E8;
    --gold: #B08A4A;
    --ok: #2E7D5B;
    --warn: #B45309;
    --danger: #A02020;
    --serif: 'Playfair Display', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --radius: 20px;
    --shadow: 0 4px 16px rgba(38, 20, 24, .06);
    --shadow-lg: 0 14px 40px rgba(38, 20, 24, .12);
    --bar-h: 66px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
}

body.app { padding-bottom: calc(var(--bar-h) + 26px + env(safe-area-inset-bottom)); }

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -.01em; }

h1 { font-size: 40px; line-height: 1.05; }
h2 { font-size: 24px; line-height: 1.2; }
h3 { font-size: 19px; }

p { margin: 0 0 12px; }

.wrap { padding: 0 18px; max-width: 1100px; margin: 0 auto; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.rose { color: var(--rose); }
.bold { font-weight: 700; }
.mt0 { margin-top: 0; }
.hidden, [hidden] { display: none !important; }

/* ---------------- En-tête réduit à un bouton ---------------- */

.topbar {
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
}

.menu-btn {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 0; color: var(--ink);
    border-radius: 12px; padding: 0;
}
.menu-btn:active { background: var(--rose-soft); }
.menu-btn svg { width: 24px; height: 24px; }

/* ---------------- Drapeaux de langue ---------------- */

.flagbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flagbar.top { margin-left: auto; }
.flag {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 8px;
    border: 1px solid transparent; transition: border-color .2s, transform .12s, opacity .2s;
    opacity: .72;
}
.flag svg { width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); display: block; }
.flag:hover { opacity: 1; }
.flag:active { transform: scale(.94); }
.flag.on { opacity: 1; border-color: var(--rose); background: var(--rose-soft); }
.flagbar.drawer { margin: 10px 0 14px; }
.flagbar-desk { display: none; }
.auth-flags { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 3; }
.auth-flags .flag { opacity: .85; }
.auth-flags .flag.on { background: rgba(255,255,255,.18); border-color: #fff; }
@media (max-width: 360px) {
    .flagbar { gap: 4px; }
    .flag { width: 30px; height: 30px; }
    .flag svg { width: 21px; height: 14px; }
}

/* ---------------- Tiroir de navigation ---------------- */

.drawer {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 82%;
    max-width: 320px;
    background: #fff;
    border-radius: 0 24px 24px 0;
    z-index: 1200;
    transform: translateX(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    padding: calc(20px + env(safe-area-inset-top, 0px)) 18px 24px;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
}
.drawer.open { transform: translateX(0); visibility: visible; pointer-events: auto; }

.drawer-head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.drawer-head img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.drawer-head .name { font-family: var(--serif); font-size: 20px; }
.drawer-close {
    margin-left: auto; background: none; border: 0; font-size: 22px;
    color: var(--muted); width: 40px; height: 40px; border-radius: 10px;
}
.drawer nav { display: flex; flex-direction: column; padding: 14px 0; gap: 2px; }
.drawer nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 10px; border-radius: 12px;
    font-size: 16px; color: var(--ink);
}
.drawer nav a svg { width: 20px; height: 20px; color: var(--rose); flex: 0 0 20px; }
.drawer nav a:active { background: var(--rose-soft); }
.drawer nav a.active { background: var(--rose-soft); color: var(--rose-dark); font-weight: 600; }
.drawer .drawer-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.drawer .langs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.drawer .langs a {
    font-size: 12px; padding: 6px 10px; border: 1px solid var(--line);
    border-radius: 999px; color: var(--ink-soft);
}
.drawer .langs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.veil {
    position: fixed; inset: 0; background: rgba(20, 12, 14, .45);
    z-index: 1100; opacity: 0; visibility: hidden; transition: opacity .25s;
}
.veil.open { opacity: 1; visibility: visible; }
body.no-scroll { overflow: hidden; }

/* ---------------- Barre du bas flottante ---------------- */

.appbar {
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    height: var(--bar-h);
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    box-shadow: 0 8px 30px rgba(38, 20, 24, .14);
    display: flex;
    align-items: stretch;
    z-index: 900;
    padding: 6px 8px;
}
.appbar a {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; font-size: 10.5px; color: var(--muted); border-radius: 22px;
    position: relative;
}
.appbar a svg { width: 21px; height: 21px; }
.appbar a.active { color: var(--rose); font-weight: 700; background: var(--rose-soft); }
.appbar a:active { transform: scale(.97); }
.appbar .badge {
    position: absolute; top: 2px; right: 50%; transform: translateX(16px);
    background: var(--rose); color: #fff; font-size: 10px; font-weight: 700;
    min-width: 17px; height: 17px; border-radius: 9px; display: flex;
    align-items: center; justify-content: center; padding: 0 4px;
}

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

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; padding: 0 22px;
    border-radius: 999px; border: 1px solid transparent;
    background: var(--rose); color: #fff;
    font-size: 15px; font-weight: 600;
    transition: transform .12s ease, background .2s, box-shadow .2s;
}
.btn:hover { background: var(--rose-dark); }
.btn:active { transform: scale(.97); }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--rose-line); }
.btn.ghost:hover { background: var(--rose-soft); }
.btn.dark { background: var(--ink); }
.btn.dark:hover { background: #000; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn.round { width: 38px; min-height: 38px; height: 38px; padding: 0; border-radius: 50%; }

/* ---------------- Accueil : marque + galerie ---------------- */

.brand-row {
    display: flex; align-items: center; gap: 12px;
    padding: 4px 18px 14px;
}
.brand-row img { width: 36px; height: 36px; border-radius: 11px; }
.brand-row .brand-name {
    font-family: var(--serif); font-size: 40px; font-weight: 600;
    line-height: 1.05; letter-spacing: -.02em;
}

.hero { position: relative; margin: 0 18px 8px; }
.hero-track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 10px; scrollbar-width: none; -ms-overflow-style: none;
    border-radius: 22px;
}
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide {
    flex: 0 0 100%; scroll-snap-align: center;
    position: relative; border-radius: 22px; overflow: hidden;
    aspect-ratio: 4 / 5; max-height: min(66vh, 520px);
    background: var(--rose-soft);
}
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.hero-slide.active img { transform: scale(1.08); }
.hero-slide .cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 46px 18px 18px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.72) 100%);
    color: #fff; pointer-events: none;
}
.hero-slide .cap h2 { font-size: 26px; color: #fff; }
.hero-slide .cap p { margin: 4px 0 0; font-size: 13.5px; opacity: .92; }
.hero .cta { margin-top: 14px; }

.dots { display: flex; gap: 5px; justify-content: center; padding: 10px 0 0; }
.dots i {
    width: 5px; height: 5px; border-radius: 3px; background: #D9CCD0;
    transition: all .3s;
}
.dots i.on { width: 18px; background: var(--rose); }

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

.section { padding: 26px 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 18px 12px; }
.section-head h2 { font-size: 24px; }
.section-head a { font-size: 13px; color: var(--muted); }
.section-head a:hover { color: var(--rose); }

/* ---------------- Bande horizontale ---------------- */

.band {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 0 18px 6px; scrollbar-width: none;
}
.band::-webkit-scrollbar { display: none; }
.band > * { flex: 0 0 78%; scroll-snap-align: start; }

/* ---------------- Cartes profil ---------------- */

.pcard {
    display: block; background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: var(--shadow); position: relative;
}
.pcard:active { transform: scale(.985); }
.pcard .ph { position: relative; }
.pcard .ph img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.pcard .ph .tagpro {
    position: absolute; top: 10px; left: 10px;
    background: #fff; color: var(--rose); font-size: 10.5px; font-weight: 700;
    padding: 4px 9px; border-radius: 999px; letter-spacing: .04em;
}
.pcard .ph .taggold { background: var(--gold); color: #fff; }
.pcard .ph .cnt { position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(180deg, transparent, rgba(0,0,0,.62)); }
.pcard .info { padding: 10px 12px 14px; }
.pcard .info .nm { font-weight: 700; font-size: 15px; }
.pcard .info .meta { color: var(--muted); font-size: 13px; }
.pcard .heart {
    position: absolute; right: 10px; bottom: 12px; width: 34px; height: 34px;
    border-radius: 50%; background: rgba(255,255,255,.94); border: 0;
    display: flex; align-items: center; justify-content: center; color: var(--rose);
}

/* Grille catalogue */
.grid2 {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 12px; padding: 0 18px;
}

/* ---------------- Pages qui se tournent (accueil) ---------------- */

.book {
    position: relative;
    margin: 0 18px;
    perspective: 1600px;
    height: 372px;
    overflow: hidden;
}
.book-stage { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.book-page {
    position: absolute; inset: 0;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform .9s cubic-bezier(.645, .045, .355, 1);
    will-change: transform;
}
.book-face {
    position: absolute; inset: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 24px rgba(38, 20, 24, .10);
}
.book-face.back {
    transform: rotateY(180deg);
    background: linear-gradient(90deg, #F2E8EA, #FBF5F6);
}
.book-face .ph { position: relative; }
.book-face img { width: 100%; height: 220px; object-fit: cover; }
.book-face .bd { padding: 12px 14px 16px; display: flex; align-items: flex-start; gap: 10px; }
.book-face .bd .nm { font-weight: 700; font-size: 16px; }
.book-face .bd .meta { color: var(--muted); font-size: 13px; }
.book-shade {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,0) 55%);
    opacity: 0; transition: opacity .2s;
}
.book-ctrl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.book-ctrl button {
    width: 38px; height: 38px; border-radius: 50%; background: #fff;
    border: 1px solid var(--rose-line); color: var(--rose); font-size: 16px;
    display: flex; align-items: center; justify-content: center;
}
.book-ctrl button:disabled { opacity: .35; color: var(--muted); }
.book-count { font-size: 12.5px; color: var(--muted); min-width: 46px; text-align: center; }
.book-hint { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--rose); font-size: 12px; margin-top: 6px; }
.book-hint svg { width: 26px; height: 16px; }

/* ---------------- Tuiles de chiffres ---------------- */

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 18px; }
.stat { background: var(--cream); border-radius: 16px; padding: 16px; }
.stat .n { font-family: var(--serif); font-size: 26px; color: var(--rose); line-height: 1; }
.stat .l { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* ---------------- Blocs "comment ça marche" ---------------- */

.steps { padding: 0 18px; display: grid; gap: 14px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .num {
    flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
    background: var(--rose-soft); color: var(--rose-dark);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-size: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 2px; }
.step p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------------- Bandeau premium sobre ---------------- */

.promo {
    margin: 26px 18px 0; padding: 24px 20px; border-radius: 22px;
    background: linear-gradient(135deg, #1B1416, #3A2029);
    color: #fff;
}
.promo h2 { color: #fff; font-size: 23px; }
.promo p { color: rgba(255,255,255,.82); font-size: 14px; margin: 8px 0 16px; }
.promo .btn { background: #fff; color: var(--ink); }
.promo .btn:hover { background: var(--rose-soft); }

/* ---------------- Formulaires ---------------- */

.card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 20px;
}
.form { padding: 0 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="date"], .field input[type="number"], .field input[type="search"],
.field input[type="file"], .field select, .field textarea, .input {
    width: 100%; min-height: 48px; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: 14px;
    background: #fff; font-family: inherit; font-size: 15px; color: var(--ink);
    -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 108px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 0; border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-soft);
}
.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2377706E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
    padding-right: 38px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); margin: 4px 0 16px; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--rose); flex: 0 0 20px; }
.alert {
    border-radius: 14px; padding: 12px 14px; font-size: 13.5px; margin: 0 18px 16px;
    background: var(--rose-soft); color: var(--rose-dark);
}
.alert.err { background: #FDECEC; color: var(--danger); }
.alert.ok { background: #EAF6F0; color: var(--ok); }

/* ---------------- Connexion plein écran ---------------- */

.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-hero {
    position: relative; padding: calc(30px + env(safe-area-inset-top, 0px)) 20px 90px;
    background: linear-gradient(160deg, #2A1519 0%, #6E1F38 58%, #B02A54 100%);
    color: #fff; text-align: center;
}
.auth-hero .logo { width: 68px; height: 68px; border-radius: 20px; margin: 0 auto 14px; }
.auth-hero h1 { font-size: 32px; color: #fff; }
.auth-hero p { color: rgba(255,255,255,.85); font-size: 14px; margin-top: 8px; }
.auth-body { margin: -60px 18px 0; position: relative; z-index: 2; }
.auth-body .card { padding: 22px 18px; }
.auth-alt { text-align: center; font-size: 14px; color: var(--muted); padding: 18px 0 34px; }
.auth-alt a { color: var(--rose); font-weight: 600; }

/* ---------------- Fiche profil ---------------- */

.profile-gallery {
    display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 0 18px 4px; scrollbar-width: none;
}
.profile-gallery::-webkit-scrollbar { display: none; }
.profile-gallery img {
    flex: 0 0 86%; scroll-snap-align: center; border-radius: 20px;
    aspect-ratio: 4 / 5; max-height: 60vh; object-fit: cover; width: auto;
}
.p-head { padding: 16px 18px 0; }
.p-head h1 { font-size: 32px; }
.p-head .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.p-actions { display: flex; gap: 10px; padding: 16px 18px 0; flex-wrap: wrap; }
.p-actions .btn { flex: 1 1 160px; }
.p-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 16px 18px 0; }
.fact { background: var(--cream); border-radius: 14px; padding: 12px 14px; }
.fact .k { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.fact .v { font-size: 14.5px; font-weight: 600; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 18px 0; }
.chip { font-size: 12.5px; padding: 7px 12px; border-radius: 999px; background: var(--rose-soft); color: var(--rose-dark); }
.copy { padding: 14px 18px 0; color: var(--ink-soft); font-size: 14.5px; white-space: pre-line; }

/* ---------------- Messagerie ---------------- */

.threads { padding: 0 18px; display: grid; gap: 10px; }
.thread {
    display: flex; gap: 12px; align-items: center; background: #fff;
    border-radius: 16px; padding: 10px; box-shadow: var(--shadow);
}
.thread img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: 0 0 56px; }
.thread .t { min-width: 0; flex: 1; }
.thread .t .nm { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.thread .t .last { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread .t .last.unread { color: var(--ink); font-weight: 600; }
.thread .when { font-size: 11px; color: var(--muted); }
.thread .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rose); }

.chat { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px 0; }
.bubble {
    max-width: 82%; padding: 10px 14px; border-radius: 18px;
    font-size: 14.5px; line-height: 1.45; background: var(--cream); color: var(--ink);
    align-self: flex-start; border-bottom-left-radius: 6px;
}
.bubble.me { align-self: flex-end; background: var(--rose); color: #fff; border-radius: 18px; border-bottom-right-radius: 6px; }
.bubble .at { display: block; font-size: 10.5px; opacity: .65; margin-top: 4px; }
.bubble audio { width: 210px; max-width: 100%; height: 34px; margin-top: 2px; }
.composer {
    margin: 16px 18px 0; display: flex; gap: 8px; align-items: flex-end;
    background: #fff; border-radius: 22px; padding: 8px; box-shadow: var(--shadow);
}
.composer textarea, .composer input[type="text"] {
    flex: 1; border: 0; background: transparent; min-height: 42px; max-height: 110px;
    padding: 10px 8px; font-family: inherit; font-size: 15px; resize: none; color: var(--ink);
}
.composer textarea:focus, .composer input:focus { outline: 0; }
.composer .icon-btn {
    width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--rose-soft);
    color: var(--rose); display: flex; align-items: center; justify-content: center; flex: 0 0 42px;
}
.composer .icon-btn.send { background: var(--rose); color: #fff; }
.composer .icon-btn.rec { background: #FDECEC; color: var(--danger); }
.composer .icon-btn svg { width: 20px; height: 20px; }

/* ---------------- Premium ---------------- */

.plans { padding: 0 18px; display: grid; gap: 14px; }
.plan {
    border: 1px solid var(--line); border-radius: 22px; padding: 20px; background: #fff;
}
.plan.hot { border-color: var(--rose); box-shadow: 0 10px 30px rgba(176, 42, 84, .12); }
.plan .pname { font-family: var(--serif); font-size: 22px; }
.plan .price { font-family: var(--serif); font-size: 34px; margin: 6px 0 2px; }
.plan .price span { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 8px; }
.plan li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.plan li svg { width: 17px; height: 17px; color: var(--rose); flex: 0 0 17px; margin-top: 2px; }

/* Code promo */
.promo-box {
    border: 1px dashed var(--rose-line); border-radius: 20px;
    background: var(--cream); padding: 16px 16px 14px; margin-bottom: 4px;
}
.promo-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.promo-ico {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px;
    background: var(--rose-soft); color: var(--rose);
    display: flex; align-items: center; justify-content: center;
}
.promo-ico svg { width: 20px; height: 20px; }
.promo-t { font-family: var(--serif); font-size: 17px; line-height: 1.2; }
.promo-s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.promo-form { display: flex; gap: 8px; align-items: stretch; }
.promo-form .input {
    flex: 1; min-width: 0; min-height: 44px; padding: 10px 14px;
    border: 1px solid var(--line); border-radius: 12px; background: #fff;
    font-family: inherit; font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
}
.promo-form .input:focus { outline: 0; border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-soft); }
.promo-form .btn { min-height: 44px; padding: 0 18px; font-size: 14px; white-space: nowrap; }

@media (max-width: 420px) {
    .promo-form { flex-direction: column; }
    .promo-form .btn { width: 100%; }
}

/* ---------------- Pied de page ---------------- */

.site-footer {
    margin-top: 34px; background: var(--cream);
    border-radius: 24px 24px 0 0; padding: 28px 20px 22px;
}
.site-footer .f-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.site-footer .f-brand img { width: 40px; height: 40px; border-radius: 12px; }
.site-footer .f-brand .n { font-family: var(--serif); font-size: 19px; }
.site-footer p { font-size: 13px; color: var(--muted); }
.site-footer .f-lines { display: grid; gap: 7px; margin: 14px 0; }
.site-footer .f-line { display: flex; gap: 9px; align-items: center; font-size: 13px; color: var(--ink-soft); }
.site-footer .f-line svg { width: 16px; height: 16px; color: var(--rose); flex: 0 0 16px; }
.site-footer .f-social { display: flex; gap: 10px; margin: 14px 0; }
.site-footer .f-social a {
    width: 36px; height: 36px; border-radius: 50%; background: #fff;
    display: flex; align-items: center; justify-content: center; color: var(--rose);
    box-shadow: var(--shadow);
}
.site-footer .f-social svg { width: 17px; height: 17px; }
.site-footer .f-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 10px; }
.site-footer .f-links a { font-size: 12.5px; color: var(--ink-soft); }
.site-footer .f-links a:hover { color: var(--rose); }
.site-footer .copyline { font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------------- Bandeau installation ---------------- */

.install-box { margin: 22px 18px 0; padding: 18px; border-radius: 20px; background: var(--cream); }
.install-box h3 { font-size: 17px; margin-bottom: 4px; }
.install-box p { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.install-box .os { display: flex; gap: 10px; align-items: center; color: var(--ink-soft); font-size: 12.5px; margin-top: 10px; }
.install-box .os svg { width: 18px; height: 18px; }

/* ---------------- Écran d'ouverture ---------------- */

#app-splash {
    display: none; position: fixed; inset: 0; z-index: 99999;
    pointer-events: none; flex-direction: column;
    align-items: center; justify-content: center; gap: 14px;
    background: #B02A54;
}
#app-splash.show { display: flex; animation: splashOut .4s ease 1.2s forwards; }
#app-splash img { width: 96px; height: 96px; border-radius: 22px; }
#app-splash span { color: #fff; font-family: var(--serif); font-size: 22px; }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }

/* ---------------- Modale ---------------- */

.modal { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal .m-veil { position: absolute; inset: 0; background: rgba(20, 12, 14, .5); }
.modal .m-box {
    position: relative; background: #fff; border-radius: 22px; padding: 22px 18px;
    width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); max-height: 88vh; overflow-y: auto;
}
.modal h2 { font-size: 22px; margin-bottom: 12px; }

/* ==========================================================================
   Ordinateur — la colonne de navigation n'existe qu'au-delà de 900px
   ========================================================================== */

.desktop-nav { display: none; }

@media (min-width: 900px) {
    body.app { padding-bottom: 0; }

    .desktop-nav {
        display: flex;
        flex-direction: column;
        position: fixed; top: 0; left: 0; bottom: 0;
        width: 260px; background: #fff; border-right: 1px solid var(--line);
        padding: 26px 18px; gap: 6px; z-index: 1000;
    }
    .desktop-nav .d-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
    .desktop-nav .d-brand img { width: 38px; height: 38px; border-radius: 11px; flex: 0 0 38px; }
    .desktop-nav .d-brand .n { font-family: var(--serif); font-size: 19px; }
    .desktop-nav a {
        display: flex; align-items: center; gap: 11px; padding: 11px 12px;
        border-radius: 12px; font-size: 14.5px; color: var(--ink-soft);
    }
    .desktop-nav a svg { width: 19px; height: 19px; color: var(--rose); }
    .desktop-nav a.active { background: var(--rose-soft); color: var(--rose-dark); font-weight: 600; }
    .desktop-nav a:hover { background: var(--cream); }
    .desktop-nav .d-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
    .desktop-nav .langs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
    .desktop-nav .langs a { font-size: 11.5px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; }

    /* masqués uniquement sur ordinateur, et seulement pour l'application */
    .appbar, .topbar, .drawer, .veil { display: none !important; }

    .flagbar-desk {
        display: flex; justify-content: flex-end;
        margin-left: 260px; padding: 16px 40px 0;
    }

    .page { margin-left: 260px; }
    .wrap { padding: 0 40px; }
    .brand-row { padding: 30px 40px 18px; }
    .brand-row .brand-name { font-size: 46px; }
    .hero { margin: 0 40px; }
    .hero-slide { aspect-ratio: 21 / 9; max-height: 460px; }
    .hero-slide .cap { padding: 60px 30px 28px; }
    .hero-slide .cap h2 { font-size: 34px; }
    .hero .cta { max-width: 320px; }
    .section-head { padding: 0 40px 14px; }
    .section { padding-top: 34px; }
    .section-head h2 { font-size: 28px; }

    .band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0 40px; overflow: visible; }
    .band > * { flex: none; }
    .grid2 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0 40px; }
    .book { margin: 0 40px; height: 400px; }
    .book-face img { height: 250px; }
    .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 40px; }
    .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 40px; gap: 22px; }
    .promo { margin: 30px 40px 0; padding: 32px; }
    .form { max-width: 560px; margin: 0 auto; padding: 0; }
    .profile-gallery { padding: 0 40px; }
    .profile-gallery img { flex: 0 0 34%; }
    .threads { padding: 0 40px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 40px; }
    .site-footer { margin: 40px 40px 0; border-radius: 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
    .site-footer .copyline { grid-column: 1 / -1; }
    .p-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .install-box { margin: 26px 40px 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .hero-slide img { transition: none; }
}

/* ==========================================================================
   Administration — cartes, barre du bas conservée sur tous les écrans
   ========================================================================== */

body.admin { background: #F6F3F3; padding-bottom: calc(var(--bar-h) + 26px + env(safe-area-inset-bottom)); }

.admin-head {
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
    display: flex; align-items: center; gap: 12px;
    background: #1B1416; color: #fff;
    position: sticky; top: 0; z-index: 800;
}
.admin-head img { width: 38px; height: 38px; border-radius: 11px; flex: 0 0 38px; }
.admin-head .an { font-family: var(--serif); font-size: 17px; line-height: 1.15; }
.admin-head .an small { display: block; font-family: var(--sans); font-size: 11px; color: rgba(255,255,255,.6); letter-spacing: .06em; text-transform: uppercase; }
.admin-head .who { margin-left: auto; font-size: 11.5px; color: rgba(255,255,255,.7); }

.admin-bar {
    position: fixed; left: 12px; right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    height: var(--bar-h);
    background: rgba(255, 255, 255, .93);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-radius: 28px; box-shadow: 0 8px 30px rgba(38, 20, 24, .16);
    display: flex; z-index: 900; padding: 6px 8px;
}
.admin-bar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; font-size: 10px; color: var(--muted); border-radius: 22px;
}
.admin-bar a svg { width: 20px; height: 20px; }
.admin-bar a.active { color: var(--rose); background: var(--rose-soft); font-weight: 700; }

.admin-wrap { padding: 16px; max-width: 1100px; margin: 0 auto; }
.admin-wrap h1 { font-size: 26px; margin-bottom: 14px; }
.admin-wrap h2 { font-size: 19px; margin: 18px 0 10px; }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kpi { background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.kpi .n { font-family: var(--serif); font-size: 26px; color: var(--ink); line-height: 1; }
.kpi .l { font-size: 12px; color: var(--muted); margin-top: 6px; }
.kpi.rose .n { color: var(--rose); }

.acard { background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--shadow); margin-top: 14px; }
.acard h3 { font-size: 16px; margin-bottom: 10px; }

.atable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.atable th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 6px; border-bottom: 1px solid var(--line); }
.atable td { padding: 10px 6px; border-bottom: 1px solid #F5F1F1; vertical-align: middle; }
.atable tr:last-child td { border-bottom: 0; }
.atable img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.t-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }

.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pill.free { background: #F1EFEF; color: var(--muted); }
.pill.premium { background: var(--rose-soft); color: var(--rose-dark); }
.pill.gold { background: #F7EFDE; color: var(--gold); }
.pill.active { background: #EAF6F0; color: var(--ok); }
.pill.suspended { background: #FDECEC; color: var(--danger); }
.pill.open { background: #FEF3E2; color: var(--warn); }
.pill.resolved { background: #EAF6F0; color: var(--ok); }
.pill.expired { background: #F1EFEF; color: var(--muted); }

.chart-box { position: relative; height: 220px; }

.admin-bar-wrap { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.admin-bar-wrap a, .admin-bar-wrap button {
    font-size: 12.5px; padding: 8px 13px; border-radius: 999px; background: #fff;
    border: 1px solid var(--line); color: var(--ink-soft);
}
.admin-bar-wrap a.on, .admin-bar-wrap button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

@media (min-width: 900px) {
    body.admin { padding-bottom: 30px; }
    .admin-head { border-radius: 0; }
    .admin-bar { display: flex; left: 50%; transform: translateX(-50%); max-width: 720px; }
    .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .admin-wrap { padding: 26px; }
}

/* ---------------- Ajustements fins ---------------- */

.p-head .sub svg { width: 15px; height: 15px; vertical-align: -2px; color: var(--rose); }
.step .num svg { width: 17px; height: 17px; }
.drawer .drawer-foot .btn svg { width: 18px; height: 18px; }
.chat { padding-bottom: 8px; }
.bubble audio { display: block; }
.thread .t .nm .dot { display: inline-block; }
.atable select { background: #fff; }
.install-box .os svg { flex: 0 0 18px; }
@media (max-width: 767px) {
    .field-row { grid-template-columns: 1fr; }
    .p-facts { grid-template-columns: 1fr; }
}
