/* Transitions natives entre pages (API View Transitions, navigation
   cross-document) — le contenu s'estompe en douceur et la barre d'onglets
   reste stable, comme une vraie app. Safari 18+/WKWebView récent, Chrome 126+. */
@view-transition { navigation: auto; }

:root {
    --noir: #060605;
    --surface: #0f0e0c;
    --surface-2: #17150f;
    --ligne: rgba(201, 169, 98, .22);
    --or: #c9a962;
    --or-vif: #e3c583;
    --ivoire: #f4efe4;
    --att: #8a8375;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    background: var(--noir);
    color: var(--ivoire);
    min-height: 100vh;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    -webkit-font-smoothing: antialiased;
}

.serif { font-family: Georgia, 'Times New Roman', serif; }

.ecran { padding: 48px 24px 40px; max-width: 480px; margin: 0 auto; }
.ecran.avec-onglets { padding-bottom: 96px; }

.marque { font-family: Georgia, 'Times New Roman', serif; font-size: 21px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--ivoire); }
.marque span { color: var(--or); }

.entete { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; }
.entete h1 { font-family: Georgia, 'Times New Roman', serif; font-size: 20px; font-weight: 400; letter-spacing: .02em; }
.retour { background: none; border: none; color: var(--ivoire); font-size: 20px; padding: 4px 6px 4px 0; cursor: pointer; }
.icone-btn { background: none; border: 1px solid var(--ligne); width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.icone-btn svg { width: 16px; height: 16px; stroke: var(--ivoire); fill: none; stroke-width: 1.3; }

.bouton {
    display: block; width: 100%; background: var(--or); color: #14100a; border: none;
    padding: 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em;
    border-radius: 2px; cursor: pointer; margin-top: 8px; font-family: inherit;
}
.bouton:active { opacity: .85; }
.bouton-secondaire { background: transparent; color: var(--ivoire); border: 1px solid var(--or); }
.bouton-erreur { color: #d68a8a; font-size: 12px; margin-top: 12px; min-height: 16px; letter-spacing: .02em; }

.champ { margin-bottom: 18px; }
.champ label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--att); margin-bottom: 8px; }
.champ input {
    width: 100%; background: none; border: none; border-bottom: 1px solid var(--ligne); color: var(--ivoire);
    padding: 10px 2px; font-size: 15px; font-family: inherit;
}
.champ input:focus { outline: none; border-color: var(--or); }
.lien-discret { display: block; text-align: center; color: var(--att); font-size: 12px; letter-spacing: .04em; margin-top: 16px; text-decoration: none; }

.filet { height: 1px; background: var(--ligne); margin: 24px 0; border: none; }

/* ── Onboarding ─────────────────────────────────────────────────────────── */
.onboard-visuel {
    height: 360px; margin-bottom: 30px; position: relative; overflow: hidden;
    background: linear-gradient(170deg, #1a160d, var(--noir) 75%);
    border: 1px solid var(--ligne);
    display: flex; align-items: flex-end; padding: 26px;
}
.onboard-visuel h1 { font-family: Georgia, serif; font-size: 26px; font-weight: 400; line-height: 1.25; }
.point-progression { display: flex; justify-content: center; gap: 7px; margin: 22px 0 30px; }
.point-progression span { width: 5px; height: 5px; border-radius: 50%; background: var(--ligne); }
.point-progression span.actif { background: var(--or); width: 18px; border-radius: 2px; }

/* ── Barre de navigation (bas) ─────────────────────────────────────────── */
.onglets {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: flex; justify-content: space-around;
    background: rgba(6, 6, 5, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--ligne);
    padding: 10px 6px calc(10px + env(safe-area-inset-bottom));
    view-transition-name: barre-onglets;
}
.onglet { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: none; border: none; border-radius: 12px; color: var(--att); font-family: inherit; font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; flex: 1; padding: 10px 4px; }
.onglet svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.3; }
.onglet .pastille { position: absolute; top: 4px; right: calc(50% - 18px); width: 7px; height: 7px; border-radius: 50%; background: var(--or); }
.onglet.actif { color: var(--or); background: rgba(201, 169, 98, .1); }

/* ── Bandeau collection ─────────────────────────────────────────────────── */
.collection-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--or); margin-bottom: 10px; }
.hero-collection { height: 210px; margin-bottom: 30px; position: relative; overflow: hidden; background: linear-gradient(165deg, #211b10, var(--noir) 78%); border: 1px solid var(--ligne); display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; }
.hero-collection h2 { font-family: Georgia, serif; font-size: 24px; font-weight: 400; line-height: 1.2; margin-bottom: 6px; }
.hero-collection p { font-size: 12.5px; color: var(--att); letter-spacing: .02em; }

.section-titre { display: flex; justify-content: space-between; align-items: baseline; margin: 30px 0 18px; }
.section-titre h3 { font-family: Georgia, serif; font-size: 16px; font-weight: 400; letter-spacing: .01em; }
.section-titre a { font-size: 10px; color: var(--att); text-decoration: none; text-transform: uppercase; letter-spacing: .1em; }

.filtres { display: flex; gap: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--ligne); }
.puce-filtre { flex-shrink: 0; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--att); padding: 0 0 12px; cursor: pointer; border-bottom: 1px solid transparent; white-space: nowrap; }
.puce-filtre.actif { color: var(--ivoire); border-color: var(--or); }

/* ── Grille produits ─────────────────────────────────────────────────────── */
.grille-produits { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
.carte-produit { cursor: pointer; }
.lookbook { display: flex; gap: 14px; overflow-x: auto; margin: 0 -24px 30px; padding: 0 24px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lookbook::-webkit-scrollbar { display: none; }
.look-carte { flex: 0 0 auto; width: 68%; scroll-snap-align: start; }
.look-visuel { aspect-ratio: 3/4; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 10px; border: 1px solid var(--ligne); background: linear-gradient(165deg, #211b10, var(--noir) 78%); }
.look-visuel::after { content: attr(data-lettre); font-family: Georgia, serif; font-size: 64px; color: rgba(201,169,98,.24); }
.look-nom { font-family: Georgia, serif; font-size: 15px; font-weight: 400; }
.look-sous { font-size: 11.5px; color: var(--att); margin-top: 2px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; } }

.produit-visuel { aspect-ratio: 1; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 12px; border: 1px solid var(--ligne); }
.produit-visuel::after { content: attr(data-lettre); font-family: Georgia, serif; font-size: 40px; color: rgba(201,169,98,.28); }
.produit-visuel .fav { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.produit-visuel .fav svg { width: 15px; height: 15px; stroke: var(--ivoire); fill: none; stroke-width: 1.4; }
.produit-visuel .fav.actif svg { fill: var(--or); stroke: var(--or); }
.produit-collection { font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--att); margin-bottom: 4px; }
.produit-nom { font-family: Georgia, serif; font-size: 14.5px; font-weight: 400; margin-bottom: 4px; }
.produit-prix { font-size: 12.5px; color: var(--or); letter-spacing: .02em; }

.liste-produits { display: flex; flex-direction: column; }
.ligne-produit { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--ligne); cursor: pointer; }
.ligne-produit .produit-visuel { width: 76px; height: 76px; flex-shrink: 0; margin-bottom: 0; aspect-ratio: unset; }
.ligne-produit .produit-visuel::after { font-size: 24px; }

/* ── Détail produit ──────────────────────────────────────────────────────── */
.produit-hero { aspect-ratio: 1; margin-bottom: 8px; position: relative; display: flex; align-items: center; justify-content: center; border: 1px solid var(--ligne); }
.produit-hero::after { content: attr(data-lettre); font-family: Georgia, serif; font-size: 90px; color: rgba(201,169,98,.22); }
.galerie-points { display: flex; justify-content: center; gap: 6px; margin: 14px 0 26px; }
.galerie-points span { width: 5px; height: 5px; border-radius: 50%; background: var(--ligne); }
.galerie-points span.actif { background: var(--or); }

.produit-entete-detail .produit-collection { margin-bottom: 8px; }
.produit-entete-detail h1 { font-family: Georgia, serif; font-size: 24px; font-weight: 400; line-height: 1.25; }
.produit-prix-detail { font-size: 16px; color: var(--or); margin: 12px 0 24px; letter-spacing: .02em; }

.bloc-choix { margin-bottom: 26px; }
.bloc-choix-titre { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--att); margin-bottom: 12px; }
.rangee-couleurs { display: flex; gap: 12px; }
.pastille-couleur { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--ligne); cursor: pointer; position: relative; }
.pastille-couleur.actif::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--or); }

.produit-description { font-size: 13.5px; color: var(--att); line-height: 1.8; margin-bottom: 26px; }
.produit-description strong { color: var(--ivoire); font-weight: 500; }

.barre-achat { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 12px; padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); background: rgba(6,6,5,.95); backdrop-filter: blur(14px); border-top: 1px solid var(--ligne); }
.barre-achat .bouton { margin-top: 0; }

/* ── Panier ──────────────────────────────────────────────────────────────── */
.ligne-panier { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--ligne); align-items: center; }
.ligne-panier .produit-visuel { width: 74px; height: 74px; flex-shrink: 0; margin-bottom: 0; }
.ligne-panier .produit-visuel::after { font-size: 22px; }
.panier-corps { flex: 1; }
.panier-nom { font-family: Georgia, serif; font-size: 14.5px; }
.panier-meta { font-size: 11.5px; color: var(--att); margin-top: 3px; letter-spacing: .02em; }
.panier-prix { font-size: 13px; color: var(--or); margin-top: 8px; }
.suppr-ligne { background: none; border: none; color: var(--att); font-size: 16px; cursor: pointer; align-self: flex-start; }

.recap-ligne { display: flex; justify-content: space-between; font-size: 12.5px; padding: 8px 0; color: var(--att); letter-spacing: .02em; }
.recap-ligne.total { color: var(--ivoire); font-size: 16px; border-top: 1px solid var(--ligne); margin-top: 8px; padding-top: 18px; }
.recap-ligne.total span:last-child { color: var(--or); }

/* ── Rendez-vous privé ───────────────────────────────────────────────────── */
.rdv-intro { text-align: center; padding: 10px 0 30px; }
.rdv-intro .filet { max-width: 40px; margin: 18px auto; }
.rdv-intro h2 { font-family: Georgia, serif; font-size: 20px; font-weight: 400; margin-bottom: 10px; }
.rdv-intro p { font-size: 13px; color: var(--att); line-height: 1.7; max-width: 300px; margin: 0 auto; }

.grille-creneaux { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 26px; }
.creneau { text-align: center; padding: 13px 0; border: 1px solid var(--ligne); font-size: 12.5px; letter-spacing: .02em; cursor: pointer; }
.creneau.actif { background: var(--or); color: #14100a; border-color: var(--or); }
.creneau.indispo { opacity: .25; pointer-events: none; }

.carte-boutique { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--ligne); cursor: pointer; }
.carte-boutique.actif { color: var(--or); }
.boutique-pastille { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--or); flex-shrink: 0; }
.boutique-pastille.pleine { background: var(--or); }

/* ── États système ───────────────────────────────────────────────────────── */
.etat-systeme { text-align: center; padding: 70px 24px; }
.etat-icone { width: 60px; height: 60px; margin: 0 auto 26px; border: 1px solid var(--or); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.etat-icone svg { width: 22px; height: 22px; stroke: var(--or); fill: none; stroke-width: 1.4; }
.etat-titre { font-family: Georgia, serif; font-size: 20px; font-weight: 400; margin-bottom: 12px; }
.etat-texte { font-size: 13px; color: var(--att); line-height: 1.7; max-width: 280px; margin: 0 auto; }

/* ── Profil / adhésion ──────────────────────────────────────────────────── */
.avatar { width: 68px; height: 68px; border-radius: 50%; background: var(--surface); border: 1px solid var(--or); display: flex; align-items: center; justify-content: center; font-family: Georgia, serif; font-size: 22px; color: var(--or); margin: 0 auto 16px; }
.avatar-petit { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: Georgia, serif; font-size: 15px; flex-shrink: 0; border: 1px solid var(--ligne); }
.profil-nom { text-align: center; font-family: Georgia, serif; font-size: 19px; }
.carte-membre { text-align: center; padding: 6px 0 4px; }
.carte-membre-niveau { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--or); margin-top: 6px; }

.ligne-option { display: flex; justify-content: space-between; align-items: center; padding: 17px 2px; border-bottom: 1px solid var(--ligne); cursor: pointer; }
.ligne-option:last-child { border-bottom: none; }
.ligne-option-titre { font-size: 13.5px; letter-spacing: .01em; }
.ligne-option-sous { font-size: 11.5px; color: var(--att); margin-top: 3px; }
.interrupteur { position: relative; width: 40px; height: 24px; flex-shrink: 0; }
.interrupteur input { opacity: 0; width: 0; height: 0; }
.interrupteur-piste { position: absolute; inset: 0; background: var(--surface-2); border: 1px solid var(--ligne); border-radius: 99px; transition: background .15s; cursor: pointer; }
.interrupteur-piste::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: var(--att); border-radius: 50%; transition: transform .15s, background .15s; }
.interrupteur input:checked + .interrupteur-piste { border-color: var(--or); }
.interrupteur input:checked + .interrupteur-piste::before { transform: translateX(16px); background: var(--or); }

.vide, .chargement { text-align: center; color: var(--att); font-size: 13px; padding: 50px 0; letter-spacing: .02em; }
