/* ============================================
   DESIRE - BOUTIQUE DE CARTES
   Feuille de style principale
   ============================================ */

/* --- POLICES --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,700&display=swap');

/* --- VARIABLES - THEME SOMBRE (defaut) --- */
:root {
    --fond-corps: #080510;
    --fond-surface: #110C1E;
    --fond-carte: #1A1230;
    --fond-survol: #221840;
    --violet-profond: #2A1145;
    --violet: #7B4BAF;
    --violet-clair: #A97BDB;
    --rose: #E84B8A;
    --rose-vif: #FF3D7F;
    --rose-doux: #F4A0C0;
    --texte: #EDE6F5;
    --texte-secondaire: #9B8FB0;
    --bordure: #2D1B4E;
    --ombre-rose: rgba(232, 75, 138, 0.2);
    --ombre-violet: rgba(123, 75, 175, 0.15);
    --rayon: 8px;
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- VARIABLES - THEME CLAIR --- */
body.theme-clair {
    --fond-corps: #F5F0F8;
    --fond-surface: #FFFFFF;
    --fond-carte: #FAF7FC;
    --fond-survol: #F0EAF5;
    --violet-profond: #E8DFF2;
    --violet: #7B4BAF;
    --violet-clair: #9B6DC8;
    --rose: #D63E78;
    --rose-vif: #E8337A;
    --rose-doux: #C76E98;
    --texte: #1A0E2E;
    --texte-secondaire: #6B5A80;
    --bordure: #DDD4E8;
    --ombre-rose: rgba(214, 62, 120, 0.12);
    --ombre-violet: rgba(123, 75, 175, 0.08);
}

body.theme-clair .navigation.defilement {
    background: rgba(245, 240, 248, 0.95);
    border-bottom-color: var(--bordure);
}

body.theme-clair .hero-fond {
    background:
        radial-gradient(ellipse 60% 50% at 50% 40%, rgba(123, 75, 175, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(232, 75, 138, 0.05) 0%, transparent 60%);
}

body.theme-clair .carte-face {
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.1),
        0 0 50px rgba(214, 62, 120, 0.08),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

body.theme-clair .carte-lueur {
    background: radial-gradient(ellipse, rgba(214, 62, 120, 0.15) 0%, rgba(123, 75, 175, 0.08) 40%, transparent 70%);
}

body.theme-clair .carte-produit:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 0 30px rgba(214, 62, 120, 0.1);
}

body.theme-clair .section-vedette {
    background: linear-gradient(180deg, transparent 0%, rgba(123, 75, 175, 0.03) 20%, rgba(123, 75, 175, 0.03) 80%, transparent 100%);
}

body.theme-clair .holo-carte {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25), 0 5px 15px rgba(0, 0, 0, 0.15);
}

body.theme-clair .particule {
    background: var(--violet);
}

body.theme-clair ::-webkit-scrollbar-track {
    background: var(--fond-corps);
}

body.theme-clair ::-webkit-scrollbar-thumb {
    background: var(--bordure);
}

/* --- RESET --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--violet-profond) var(--fond-corps);
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--fond-corps);
}
::-webkit-scrollbar-thumb {
    background: var(--violet-profond);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--violet);
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--fond-corps);
    color: var(--texte);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Transition douce du theme - sauf elements animes */
.navigation, .conteneur, .section, .pied, .grille-cartes,
.carte-produit-infos, .carte-produit-nom, .carte-produit-desc,
.section-titre, .hero-texte, .univers-texte,
.detail-infos, .detail-meta, .panier-total,
.tableau-panier, .message-flash,
.champ-groupe input, .champ-groupe textarea,
.btn-secondaire, .pied-contenu, .pied-copyright,
.sous-titre, h1, h2, h3, h4, p, a, span, li, td, th {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

a {
    color: var(--rose);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--rose-doux);
}

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

/* --- TYPOGRAPHIE --- */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--texte);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

.accentuation {
    color: var(--rose);
}

.sous-titre {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--texte-secondaire);
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

/* --- MISE EN PAGE --- */
.conteneur {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

/* --- BOUTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: var(--rayon);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    letter-spacing: 0.03em;
}

.btn-principal {
    background: var(--rose);
    color: #fff;
    box-shadow: 0 4px 20px var(--ombre-rose);
}
.btn-principal:hover {
    background: var(--rose-vif);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--ombre-rose);
}

.btn-secondaire {
    background: transparent;
    color: var(--texte);
    border: 1px solid var(--bordure);
}
.btn-secondaire:hover {
    border-color: var(--rose);
    color: var(--rose);
    transform: translateY(-2px);
}

.btn-petit {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

/* --- NAVIGATION --- */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: all 0.4s ease;
}

.navigation.defilement {
    background: rgba(8, 5, 16, 0.92);
    backdrop-filter: blur(12px);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(45, 27, 78, 0.4);
}

.navigation .conteneur {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-nav {
    height: 48px;
    width: auto;
    transition: height 0.4s ease;
}

.navigation.defilement .logo-nav {
    height: 38px;
}

.liens-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.liens-nav a {
    color: var(--texte-secondaire);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    padding: 0.3rem 0;
}

.liens-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--rose);
    transition: width var(--transition);
}

.liens-nav a:hover,
.liens-nav a.actif {
    color: var(--texte);
}

.liens-nav a:hover::after,
.liens-nav a.actif::after {
    width: 100%;
}

.lien-panier {
    position: relative;
}

.badge-panier {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--rose);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- TOGGLE THEME --- */
.toggle-theme {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--fond-carte);
    border: 1px solid var(--bordure);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s ease;
    padding: 0;
    flex-shrink: 0;
}

.toggle-theme::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--rose);
    transition: all 0.4s cubic-bezier(0.68, -0.15, 0.265, 1.35);
    box-shadow: 0 2px 6px var(--ombre-rose);
}

body.theme-clair .toggle-theme {
    background: var(--bordure);
}

body.theme-clair .toggle-theme::after {
    left: 23px;
    background: var(--rose);
}

.menu-mobile {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-mobile span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--texte);
    transition: all 0.3s ease;
}

/* --- ELEMENTS DECORATIFS PARALLAX --- */
.deco-orbe {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
    z-index: 0;
}

.deco-orbe-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -5%;
    background: radial-gradient(circle, rgba(123, 75, 175, 0.12) 0%, transparent 70%);
    filter: blur(40px);
}

.deco-orbe-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: -3%;
    background: radial-gradient(circle, rgba(232, 75, 138, 0.1) 0%, transparent 70%);
    filter: blur(30px);
}

.deco-orbe-3 {
    width: 150px;
    height: 150px;
    bottom: 15%;
    left: 20%;
    background: radial-gradient(circle, rgba(75, 138, 232, 0.08) 0%, transparent 70%);
    filter: blur(25px);
}

.deco-orbe-4 {
    width: 250px;
    height: 250px;
    top: -5%;
    right: 10%;
    background: radial-gradient(circle, rgba(232, 75, 138, 0.06) 0%, transparent 70%);
    filter: blur(35px);
}

.deco-orbe-5 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: -3%;
    background: radial-gradient(circle, rgba(123, 75, 175, 0.08) 0%, transparent 70%);
    filter: blur(30px);
}

.deco-ligne {
    position: absolute;
    pointer-events: none;
    will-change: transform;
    z-index: 0;
}

.deco-ligne-1 {
    width: 1px;
    height: 200px;
    top: 20%;
    left: 15%;
    background: linear-gradient(180deg, transparent, rgba(232, 75, 138, 0.15), transparent);
}

.deco-ligne-2 {
    width: 1px;
    height: 160px;
    top: 40%;
    right: 12%;
    background: linear-gradient(180deg, transparent, rgba(123, 75, 175, 0.12), transparent);
}

/* Indicateur de scroll */
.scroll-indicateur {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    opacity: 0.6;
}

.scroll-ligne {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, var(--rose), transparent);
    animation: pulsationScroll 2s ease-in-out infinite;
    margin: 0 auto;
}

@keyframes pulsationScroll {
    0%, 100% { height: 50px; opacity: 0.4; }
    50% { height: 70px; opacity: 0.8; }
}

/* Separateur parallax entre sections */
.separateur-parallax {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.separateur-bande {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        var(--fond-corps),
        rgba(232, 75, 138, 0.03) 30%,
        rgba(123, 75, 175, 0.04) 70%,
        var(--fond-corps)
    );
    will-change: transform;
}

/* --- HERO / VITRINE 3D --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-fond {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 40%, rgba(42, 17, 69, 0.5) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(232, 75, 138, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(123, 75, 175, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(232, 75, 138, 0.05) 0%, transparent 40%);
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    will-change: transform;
}

.hero-particules {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particule {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--rose-doux);
    border-radius: 50%;
    opacity: 0;
    animation: flotterParticule 8s infinite;
}

@keyframes flotterParticule {
    0% { opacity: 0; transform: translateY(100vh) scale(0) rotate(0deg); }
    15% { opacity: 0.7; }
    50% { opacity: 0.4; }
    85% { opacity: 0.2; }
    100% { opacity: 0; transform: translateY(-20vh) scale(1.2) rotate(180deg); }
}

.hero-contenu {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    will-change: transform, opacity;
}

/* --- CARTE 3D --- */
.vitrine-carte {
    perspective: 1200px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    width: 320px;
    height: 450px;
    position: relative;
    margin: 0 auto;
}

.carte-3d {
    width: 100%;
    height: 100%;
    position: relative;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    cursor: grab;
    border-radius: 16px;
    will-change: transform;
}

.carte-face {
    position: absolute;
    inset: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 50px var(--ombre-rose),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.carte-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carte-face-recto {
    /* pas de z-index, le 3D preserve-3d gere la visibilite */
}

.carte-face-verso {
    transform: rotateY(180deg);
}

/* Placeholder quand pas d'image */
.carte-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--violet-profond), var(--fond-carte));
    border: 2px solid var(--bordure);
    padding: 2rem;
}

.carte-placeholder .nom-carte {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    color: var(--texte);
}

.carte-placeholder .prix-carte {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--rose);
}

/* Effet holographique */
.carte-holo {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(
        125deg,
        transparent 0%,
        rgba(232, 75, 138, 0.12) 20%,
        rgba(169, 123, 219, 0.18) 40%,
        rgba(75, 180, 232, 0.12) 60%,
        rgba(232, 210, 75, 0.08) 80%,
        transparent 100%
    );
    mix-blend-mode: color-dodge;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 5;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.carte-3d[data-retournee="false"]:hover .carte-holo {
    opacity: 1;
}

/* Reflet lumineux */
.carte-reflet {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: radial-gradient(
        circle at var(--souris-x, 50%) var(--souris-y, 50%),
        rgba(255, 255, 255, 0.12) 0%,
        transparent 50%
    );
    pointer-events: none;
    z-index: 6;
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.carte-3d[data-retournee="false"]:hover .carte-reflet {
    opacity: 1;
}

/* Lueur sous la carte */
.carte-lueur {
    position: absolute;
    bottom: -35px;
    left: 5%;
    width: 90%;
    height: 80px;
    background: radial-gradient(ellipse, rgba(232, 75, 138, 0.35) 0%, rgba(123, 75, 175, 0.15) 40%, transparent 70%);
    filter: blur(25px);
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.3s ease;
}

/* Navigation des cartes */
.vitrine-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-fleche {
    background: none;
    border: 1px solid var(--bordure);
    color: var(--texte-secondaire);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-size: 1.1rem;
}

.nav-fleche:hover {
    border-color: var(--rose);
    color: var(--rose);
    background: rgba(232, 75, 138, 0.05);
}

.nav-points {
    display: flex;
    gap: 0.6rem;
}

.nav-point {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bordure);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.nav-point.actif {
    background: var(--rose);
    box-shadow: 0 0 12px var(--ombre-rose);
    transform: scale(1.2);
}

.nav-point:hover:not(.actif) {
    background: var(--violet);
}

.hero-texte {
    margin-top: 1.5rem;
}

.hero-texte h1 {
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

.hero-texte p {
    color: var(--texte-secondaire);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

/* --- SECTION EN VEDETTE --- */
.section-vedette {
    background:
        linear-gradient(180deg, transparent 0%, rgba(17, 12, 30, 0.5) 20%, rgba(17, 12, 30, 0.5) 80%, transparent 100%);
}

.section-titre {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-titre h2 {
    margin-bottom: 0.5rem;
}

.ligne-decorative {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rose), transparent);
    margin: 1rem auto 0;
}

/* --- GRILLE DE CARTES --- */
.grille-cartes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.carte-produit {
    background: var(--fond-carte);
    border-radius: var(--rayon);
    border: 1px solid var(--bordure);
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.15s ease-out;
    position: relative;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.carte-produit:hover {
    border-color: rgba(232, 75, 138, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px var(--ombre-rose);
}

.carte-produit-image {
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
    background: var(--fond-surface);
}

.carte-produit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carte-produit:hover .carte-produit-image img {
    transform: scale(1.05);
}

.carte-produit-image .placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--violet-profond), var(--fond-carte));
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--violet);
    opacity: 0.5;
}

.badge-vedette {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--rose);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.badge-stock {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
}

.badge-stock.en-stock {
    background: rgba(75, 175, 123, 0.15);
    color: #4BAF7B;
}

.badge-stock.stock-faible {
    background: rgba(232, 165, 75, 0.15);
    color: #E8A54B;
}

.badge-stock.rupture {
    background: rgba(232, 75, 75, 0.15);
    color: #E84B4B;
}

.carte-produit-infos {
    padding: 1.2rem 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.carte-produit-nom {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--texte);
}

.carte-produit-desc {
    font-size: 0.85rem;
    color: var(--texte-secondaire);
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carte-produit-bas {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.carte-produit-prix {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rose);
}

.carte-produit-couleur {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--bordure);
}

/* --- PAGE DETAIL CARTE --- */
.detail-carte {
    padding-top: 120px;
    min-height: 100vh;
}

.detail-carte .conteneur {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.detail-images {
    position: sticky;
    top: 100px;
}

.detail-image-principale {
    aspect-ratio: 3/4;
    border-radius: var(--rayon);
    overflow: hidden;
    background: var(--fond-surface);
    border: 1px solid var(--bordure);
    margin-bottom: 1rem;
}

.detail-image-principale img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-miniatures {
    display: flex;
    gap: 0.8rem;
}

.detail-miniature {
    width: 80px;
    height: 110px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid var(--bordure);
    cursor: pointer;
    transition: border-color var(--transition);
}

.detail-miniature.actif,
.detail-miniature:hover {
    border-color: var(--rose);
}

.detail-miniature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-infos {
    padding-top: 1rem;
}

.detail-infos h1 {
    margin-bottom: 0.5rem;
}

.detail-prix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--rose);
    margin-bottom: 1.5rem;
}

.detail-description {
    color: var(--texte-secondaire);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.detail-meta {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--fond-surface);
    border-radius: var(--rayon);
    border: 1px solid var(--bordure);
}

.detail-meta-ligne {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.detail-meta-label {
    color: var(--texte-secondaire);
}

.detail-meta-valeur {
    font-weight: 500;
}

.detail-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.selecteur-quantite {
    display: flex;
    align-items: center;
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    overflow: hidden;
}

.selecteur-quantite button {
    background: var(--fond-surface);
    border: none;
    color: var(--texte);
    width: 40px;
    height: 44px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.selecteur-quantite button:hover {
    background: var(--fond-survol);
}

.selecteur-quantite input {
    width: 50px;
    height: 44px;
    text-align: center;
    background: var(--fond-carte);
    border: none;
    border-left: 1px solid var(--bordure);
    border-right: 1px solid var(--bordure);
    color: var(--texte);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
}

.selecteur-quantite input:focus {
    outline: none;
}

/* --- PANIER --- */
.page-panier {
    padding-top: 120px;
    min-height: 100vh;
}

.panier-vide {
    text-align: center;
    padding: 4rem 0;
}

.panier-vide h2 {
    margin-bottom: 1rem;
    color: var(--texte-secondaire);
}

.tableau-panier {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.tableau-panier th {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid var(--bordure);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--texte-secondaire);
    font-weight: 500;
}

.tableau-panier td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid rgba(45, 27, 78, 0.3);
    vertical-align: middle;
}

.panier-produit-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.panier-produit-image {
    width: 60px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--fond-surface);
    flex-shrink: 0;
}

.panier-produit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panier-produit-nom {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 600;
}

.panier-retirer {
    background: none;
    border: none;
    color: var(--texte-secondaire);
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.2s;
    padding: 0.3rem;
}

.panier-retirer:hover {
    color: var(--rose-vif);
}

.panier-resume {
    display: flex;
    justify-content: flex-end;
}

.panier-total {
    background: var(--fond-surface);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    padding: 2rem;
    min-width: 320px;
}

.panier-total-ligne {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.panier-total-final {
    font-size: 1.3rem;
    font-weight: 700;
    border-top: 1px solid var(--bordure);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.panier-total-final .montant {
    color: var(--rose);
}

/* --- SECTION UNIVERS / A PROPOS --- */
.section-univers {
    position: relative;
    overflow: hidden;
}

.univers-grille {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.univers-texte h2 {
    margin-bottom: 1rem;
}

.univers-texte p {
    color: var(--texte-secondaire);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.univers-visuel {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- COMPOSANT CARTES HOLOGRAPHIQUES 3D --- */
.holo-cartes-spread {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    padding-bottom: 20px;
    perspective: 1000px;
}

.holo-carte-wrap {
    transform: rotate(var(--rotation-fan, 0deg));
    transform-origin: 50% 90%;
    margin: 0 -18px;
    z-index: var(--z-carte, 1);
    transition: z-index 0s;
}

.holo-carte-wrap:hover {
    z-index: 10;
}

.holo-carte {
    width: 240px;
    height: 336px;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    will-change: transform;
    transition: transform 0.5s ease-out, box-shadow 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: flottement-holo 5s ease-in-out infinite;
    animation-delay: var(--delai-flot, 0s);
}

.holo-carte.tilt-actif {
    animation: none;
}

.holo-carte:hover {
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(240, 192, 64, 0.3),
        0 0 50px rgba(240, 192, 64, 0.15),
        inset 0 0 0 1px rgba(240, 192, 64, 0.2);
}

@keyframes flottement-holo {
    0%, 100% {
        transform: translateY(0) rotate(0.3deg);
    }
    33% {
        transform: translateY(-7px) rotate(0.8deg);
    }
    66% {
        transform: translateY(-3px) rotate(-0.4deg);
    }
}

/* Contenu de la carte */
.holo-carte-contenu {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, #0f0a1e, #1a0e30);
    border-radius: 14px;
    overflow: hidden;
    z-index: 1;
}

.holo-carte-visuel {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.holo-carte-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.holo-carte-symbole {
    font-size: 5rem;
    opacity: 0.12;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    color: #fff;
    filter: blur(1px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.holo-carte:hover .holo-carte-symbole {
    opacity: 0.2;
    transform: translate(-50%, -55%) scale(1.1);
    filter: blur(0px);
}

.holo-carte-marque {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    color: rgba(255, 255, 255, 0.08);
    position: absolute;
    bottom: 15%;
    transition: color 0.4s ease;
}

.holo-carte:hover .holo-carte-marque {
    color: rgba(255, 255, 255, 0.15);
}

.holo-carte-bas {
    padding: 0.7rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

.holo-carte-nom {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
}

.holo-carte-rarete {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.9;
}

/* Overlay holographique arc-en-ciel — ::after */
.holo-carte::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(
        var(--holo-angle, 115deg),
        #ff0080, #ff8c00, #40e0d0, #8000ff, #ff0080
    );
    background-size: 400% 400%;
    background-position: var(--holo-x, 0%) var(--holo-y, 0%);
    mix-blend-mode: color-dodge;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
    filter: url(#bruit-holo);
    pointer-events: none;
}

.holo-carte:hover::after {
    opacity: 0.6;
}

/* Bordure lueur doree — ::before */
.holo-carte::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 15px;
    background: linear-gradient(
        var(--holo-angle, 135deg),
        rgba(240, 192, 64, 0.5),
        rgba(240, 192, 64, 0.05) 30%,
        rgba(240, 192, 64, 0.3) 50%,
        rgba(240, 192, 64, 0.05) 70%,
        rgba(240, 192, 64, 0.5)
    );
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.holo-carte:hover::before {
    opacity: 1;
}

/* Reflet speculaire — tache lumineuse */
.holo-reflet-speculaire {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: radial-gradient(
        ellipse at var(--spec-x, 50%) var(--spec-y, 50%),
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.08) 25%,
        transparent 55%
    );
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: overlay;
}

.holo-carte:hover .holo-reflet-speculaire {
    opacity: 1;
}

/* Bordure interieure decorative sur le visuel */
.holo-carte-visuel::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    pointer-events: none;
    transition: border-color 0.4s ease;
}

.holo-carte:hover .holo-carte-visuel::before {
    border-color: rgba(240, 192, 64, 0.12);
}

/* --- PIED DE PAGE --- */
.pied {
    border-top: 1px solid var(--bordure);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.pied-contenu {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.pied-marque {
    max-width: 300px;
}

.pied-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.pied-marque p {
    color: var(--texte-secondaire);
    font-size: 0.9rem;
    line-height: 1.7;
}

.pied-titre {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--texte);
    font-weight: 700;
    margin-bottom: 1rem;
}

.pied-liens {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pied-liens a {
    color: var(--texte-secondaire);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.pied-liens a:hover {
    color: var(--rose);
}

.pied-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(45, 27, 78, 0.3);
    color: var(--texte-secondaire);
    font-size: 0.8rem;
}

/* --- ANIMATIONS SCROLL --- */
.anime-scroll {
    opacity: 0;
    transform: translateY(50px) scale(0.97);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.anime-scroll.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.anime-scroll-gauche {
    opacity: 0;
    transform: translateX(-80px) rotate(-2deg);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.anime-scroll-gauche.visible {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
}

.anime-scroll-droite {
    opacity: 0;
    transform: translateX(80px) rotate(2deg);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.anime-scroll-droite.visible {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
}

.anime-delai-1 { transition-delay: 0.08s; }
.anime-delai-2 { transition-delay: 0.18s; }
.anime-delai-3 { transition-delay: 0.28s; }
.anime-delai-4 { transition-delay: 0.38s; }

/* --- PAGE BOUTIQUE --- */
.page-boutique {
    padding-top: 120px;
}

.boutique-entete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.boutique-entete h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.boutique-compteur {
    color: var(--texte-secondaire);
    font-size: 0.9rem;
}

/* --- MESSAGES FLASH --- */
.message-flash {
    padding: 1rem 1.5rem;
    border-radius: var(--rayon);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border: 1px solid;
}

.message-succes {
    background: rgba(75, 175, 123, 0.1);
    border-color: rgba(75, 175, 123, 0.3);
    color: #4BAF7B;
}

.message-erreur {
    background: rgba(232, 75, 75, 0.1);
    border-color: rgba(232, 75, 75, 0.3);
    color: #E84B4B;
}

/* --- FORMULAIRES --- */
.champ-groupe {
    margin-bottom: 1.2rem;
}

.champ-groupe label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--texte-secondaire);
    font-weight: 500;
}

.champ-groupe input,
.champ-groupe textarea,
.champ-groupe select {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--fond-surface);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    color: var(--texte);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    transition: border-color var(--transition);
}

.champ-groupe input:focus,
.champ-groupe textarea:focus,
.champ-groupe select:focus {
    outline: none;
    border-color: var(--rose);
}

.champ-groupe textarea {
    min-height: 100px;
    resize: vertical;
}

.champ-groupe input[type="color"] {
    padding: 0.3rem;
    height: 44px;
    cursor: pointer;
}

.champ-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.champ-checkbox input {
    width: auto;
    accent-color: var(--rose);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .detail-carte .conteneur {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .detail-images {
        position: static;
    }

    .univers-grille {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .univers-visuel {
        height: 340px;
    }

    .holo-carte {
        width: 200px;
        height: 280px;
    }

    .holo-carte-wrap {
        margin: 0 -14px;
    }
}

@media (max-width: 768px) {
    .liens-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--fond-surface);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.4s ease;
        border-left: 1px solid var(--bordure);
    }

    .liens-nav.ouvert {
        right: 0;
    }

    .menu-mobile {
        display: flex;
        z-index: 1001;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .vitrine-carte {
        width: 240px;
        height: 340px;
    }

    .grille-cartes {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.2rem;
    }

    .pied-contenu {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section {
        padding: 4rem 0;
    }

    .detail-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .panier-resume {
        justify-content: stretch;
    }

    .panier-total {
        min-width: auto;
        width: 100%;
    }

    .tableau-panier {
        font-size: 0.85rem;
    }

    .boutique-entete {
        flex-direction: column;
        align-items: flex-start;
    }

    .holo-carte {
        width: 170px;
        height: 238px;
    }

    .holo-carte-wrap {
        margin: 0 -12px;
    }

    .holo-carte-symbole {
        font-size: 3.5rem;
    }

    .holo-carte-marque {
        font-size: 1rem;
    }

    .holo-carte-bas {
        padding: 0.5rem 0.7rem;
    }

    .holo-carte-nom {
        font-size: 0.75rem;
    }

    .holo-carte-rarete {
        font-size: 0.55rem;
    }
}

@media (max-width: 480px) {
    .conteneur {
        padding: 0 1.2rem;
    }

    .vitrine-carte {
        width: 200px;
        height: 280px;
    }

    .grille-cartes {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .carte-produit-infos {
        padding: 0.8rem 1rem;
    }

    .carte-produit-nom {
        font-size: 1rem;
    }
}
