@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&display=swap');
/* Couleurs principales */
:root {
    --family-primary: #4caf50;
    --family-secondary: #1b5e20;
    --family-accent: #81c784;
    --family-dark: #1a2e1a;
    --family-light: #e8f5e9;
    --family-glow: rgba(76, 175, 80, 0.15);
    --text-muted: #b0b0b0;
    --font-heading: 'Josefin Sans', sans-serif;
    --font-body: 'Quicksand', sans-serif;
    --font-primary: 'Quicksand', sans-serif;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, var(--family-dark) 0%, #000000 100%);
    font-family: var(--font-body);
    color: var(--family-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 50%, rgba(76, 175, 80, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 70% 50%, rgba(27, 94, 32, 0.05) 0%, transparent 60%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.intro-section {
    min-height: 86vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--family-dark) 0%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
}

.intro-content {
    max-width: 800px;
    text-align: center;
    padding: 2rem;
    z-index: 10;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.intro-subtitle {
    font-family: var(--font-heading);
    color: var(--family-accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.intro-title {
    font-family: var(--font-heading);
    color: var(--family-primary);
    font-size: 4rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 30px var(--family-glow);
    line-height: 1.1;
}

.intro-text {
    font-size: 1.3rem;
}

.story-button {
    background-image: linear-gradient(45deg,
        var(--family-secondary) 0%,
        var(--family-accent) 51%,
        var(--family-accent) 100%
    );
    background-size: 200% auto;
    border: none;
    padding: 1.2rem 1.2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    color: var(--family-light);
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    font-family: var(--font-heading);
    box-shadow: 0 5px 15px var(--family-glow);
}

.story-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--family-glow);
    background-position: right center;
}

#canvas-container {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

.story-wrapper {
    position: relative;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.7) 80%,
        rgba(0, 0, 0, 1) 100%
    );
    z-index: 2;
    display: none;
    overflow-y: auto;
    height: 100vh;
    height: -webkit-fill-available;
    height: 100dvh;
    margin-top: 5rem;
    padding-bottom: env(safe-area-inset-bottom, 80px);
}

.chapter:last-child::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 100%
    );
    pointer-events: none;
}

.navigation {
    position: fixed;
    left: calc(3% + 1rem) !important;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.progress-bar {
    width: 4px;
    height: 60vh;
    background: rgba(13, 13, 13, 0.3);
    border-radius: 4px;
    overflow: visible;
    position: relative;
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.2);
}

.progress-fill {
    position: absolute;
    top: 0;
    width: 100%;
    background: linear-gradient(180deg,
        var(--family-secondary) 0%,
        var(--family-accent) 25%,
        var(--family-secondary) 50%,
        var(--family-accent) 75%,
        var(--family-secondary) 100%);
    transition: height 0.05s linear; 
    box-shadow: 
        0 0 20px var(--family-secondary),
        0 0 40px var(--family-accent),
        0 0 60px rgba(70, 130, 180, 0.4);
    background-size: 100% 200%;
    animation: starFlow 3s ease-in-out infinite alternate;
}

.chapter-markers {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 0;
    z-index: 2;
}

.chapter-marker {
    width: 16px;
    height: 16px;
    background: radial-gradient(circle at center,
        var(--family-secondary) 0%,
        var(--family-accent) 50%,
        var(--family-dark) 100%);
    border-radius: 50%;
    transform: translateX(-50%) scale(0.8);
    cursor: pointer;
    position: relative;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.6);
    left: 50%;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.chapter-marker::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(135, 206, 235, 0.6) 0%,
        rgba(70, 130, 180, 0.3) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chapter-marker::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid rgba(76, 175, 80, 0.3);
    animation: pulseRing 2s infinite;
}

.chapter-indicator {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translate(-50%, -200%);
    opacity: 0;
    z-index: 100;
    text-align: center;
    pointer-events: none;
    transition: transform 1s ease-out, opacity 1s ease-out;
}

.chapter-indicator.visible {
    animation: chapterReveal 2s ease-out forwards;
    opacity: 1;
    transform: translate(-50%, 0);
}

.chapter-indicator.disappearing {
    animation: chapterFadeOut 2s ease-in forwards;
}

.chapter-indicator h3 {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: clamp(1.5rem, 5vw, 3rem); /* Ajuste la taille du texte en fonction de la taille de l'écran */
    white-space: nowrap;
    position: relative;
    padding: 1rem 2rem; /* Ajouter de l'espace autour du texte pour plus de lisibilité */
    background: rgba(0, 0, 0, 0.8); /* Fond noir à 50% de transparence */
    box-shadow: 0 0 50px 40px rgba(0, 0, 0, 0.7),  /* Ombre noire plus douce */
        0 0 100px 80px rgba(0, 0, 0, 0.5), /* Ombre plus large et plus transparente */
        0 0 150px 120px rgba(0, 0, 0, 0.3), /* Ombre très large et légère */
        0 0 200px 160px rgba(0, 0, 0, 0.2); /* Très grande ombre presque imperceptible */
    border-radius: 1rem; /* Coins légèrement arrondis */
}

/* Animation de glissement pour l'apparition de l'indicateur */
@keyframes chapterReveal {
    0% {
        opacity: 0;
        transform: translate(-50%, -150%);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, 10%);
    }
    100% {
        transform: translate(-50%, 0);
    }
}

/* Effet de disparition */
@keyframes chapterFadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%);
    }
}

.chapter {
    position: relative;
    min-height: 100vh;
    padding: 3rem 2rem 3rem 6rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.chapter::before,
.chapter::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 100px; /* Ajustez la hauteur pour un dégradé plus subtil */
    pointer-events: none;
    z-index: 3;
}

/* Dégradé en haut de chaque section */
.chapter::before {
    top: 0;
    background: linear-gradient(to top, rgba(10, 5, 5, 0) 0%, rgba(10, 5, 5, 1) 100%);
}

/* Dégradé en bas de chaque section */
.chapter::after {
    bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 5, 5, 0) 0%, rgba(10, 5, 5, 1) 100%); /* Dégradé moins opaque */
}

.chapter-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: all 1.5s var(--transition-smooth);
    filter: brightness(0.3) sepia(0.2) contrast(1.2);
}

.chapter.active .chapter-background {
    opacity: 1;
    transform: scale(1);
}

.chapter-content {
    position: relative;
    padding: 3rem;
    background: linear-gradient(135deg, var(--family-dark) 0%, rgba(26, 15, 0, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chapter-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.chapter-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem); /* Ajustement dynamique de la taille */
    color: var(--mysteria-light);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 0 0 15px var(--mysteria-glow);
    word-wrap: break-word; /* Permet aux longs mots de se couper */
    overflow-wrap: break-word; /* Support supplémentaire pour la coupure des mots */
    hyphens: auto; /* Active la césure automatique */
    max-width: 100%; /* S'assure que le titre ne dépasse pas son conteneur */
    padding: 0 1rem; /* Ajoute un peu d'espace sur les côtés */
}

.chapter-title::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.chapter-text {
    font-family: 'Cormorant', serif;
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--family-light);
    text-align: justify;
    margin: 0;
    padding: 0 1rem;
    letter-spacing: 0.5px;
    position: relative;
}

.chapter-text::first-letter {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    float: left;
    line-height: 1;
    padding-right: 12px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.story-section {
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(100, 149, 237, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.chapter-content::before,
.chapter-content::after {
    content: '✧';
    position: absolute;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.chapter-content::before {
    top: 20px;
    left: 20px;
}

.chapter-content::after {
    bottom: 20px;
    right: 20px;
}

@keyframes lavaFlow {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 0% 100%; }
}

@keyframes lavaGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.5); opacity: 0.3; }
    100% { transform: scale(1); opacity: 0.6; }
}

@keyframes starGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes starFlow {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 0% 100%; }
}

@media (max-width: 768px) {
    .navigation {
        left: 1rem;
    }

    .chapter {
        padding: 4rem 1.5rem;
    }

    .chapter-content {
        padding: 0.5rem;
        margin-left: calc(10vw);
        max-width: 90%;
    }

    .chapter-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }

    .chapter-text {
        font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    }

    .chapter-indicator h3 {
        font-size: clamp(1.2rem, 6vw, 2.5rem); /* Texte plus petit pour les petits écrans */
        padding: 0.8rem 1.5rem; /* Réduire le padding sur les écrans plus petits */
        box-shadow: 
            0 0 30px 25px rgba(0, 0, 0, 0.6), /* Réduction de l'opacité de l'ombre */
            0 0 60px 50px rgba(0, 0, 0, 0.4),
            0 0 100px 80px rgba(0, 0, 0, 0.3);
        border-radius: 0.8rem; /* Coins légèrement plus petits pour s'adapter aux petits écrans */
    }

    .intro-content {
        padding: 2rem;
        max-width: calc(100% - 32px);
        margin: 0 16px;
    }

    .intro-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .intro-text {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .story-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .intro-content {
        padding: 1.5rem;
        margin: 0 12px;
    }

    .intro-title {
        font-size: 2rem;
    }

    .intro-subtitle {
        font-size: 1.2rem;
    }

    .chapter-title {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
        letter-spacing: 1px;
        margin-bottom: 1.5rem;
    }
}

.return-button {
    display: block;
    margin: 2rem auto;
    margin-bottom: calc(2rem + env(safe-area-inset-bottom, 80px));
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--family-primary), var(--family-secondary));
    border: none;
    border-radius: 30px;
    font-size: 1.5rem;
    color: var(--family-light);
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    font-family: var(--font-heading);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.return-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--family-glow);
}

.close-button {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background: linear-gradient(45deg, var(--family-primary), var(--family-secondary));
    color: var(--family-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.close-button i {
    font-size: 1.2rem;
}

.purchase-button {
    width: 100%;
    padding: 1rem 1rem;
    background: linear-gradient(to right, var(--family-secondary), var(--family-accent));
    color: var(--family-light);
    font-family: var(--font-heading);
    font-size: 1rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.purchase-button:focus {
    outline: none;
    box-shadow: 0 0 0 4px var(--family-glow);
}

.product-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0d0d0d 0%, #1a1a2e 100%);
}

.intro-section,
.product-section {
    position: relative;
    z-index: 2;
    background: transparent !important;
    transform: translateZ(0);
    will-change: transform;
}

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 2;
    align-items: center;
}

.product-image-container {
    position: relative;
    perspective: 1000px;
}

.product-image-wrapper {
    position: relative;
    transform-style: preserve-3d;
    backdrop-filter: blur(5px);
    animation: float 6s ease-in-out infinite;
}

.product-image,
.thumbnail-image {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.product-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 0 40px var(--family-glow);
    transform: translateZ(0);
    will-change: transform;
    position: relative;
    z-index: 2;
}

.product-image:hover {
    box-shadow: 0 0 70px var(--family-glow);
}

.thumbnail-image {
    width: calc(33.33% - 0.66rem);
    height: auto;
    border-radius: 10px;
    cursor: pointer;
}

.thumbnail-image:hover {
    box-shadow: 0 0 20px var(--family-glow);
}

.product-thumbnails {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.product-image.fade-out,
.thumbnail-image.fade-out {
    opacity: 0.5;
    transform: scale(0.95);
}

.product-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.product-title {
    font-family: var(--font-heading);
    color: var(--family-secondary);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px var(--family-glow);
}

.product-subtitle {
    font-family: var(--font-heading);
    color: var(--family-accent);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.product-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: justify;
}

.product-description::first-letter {
    font-size: 2.3rem;
    color: var(--family-secondary);
    font-weight: bold;
    float: left;
    margin-right: 0.5rem;
}

.feature-icon {
    font-size: 2rem;
    color: var(--family-secondary);
    text-shadow: 0 0 20px var(--family-glow);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--family-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px var(--family-glow);
}

.feature-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.acquisition-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(0deg, rgba(13, 13, 13, 0.9) 0%, transparent 100%);
    position: relative;
    z-index: 2;
}

.price-display {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--family-secondary);
    margin-bottom: 2rem;
    text-shadow: 0 0 20px var(--family-glow);
}

.acquire-button {
    background: linear-gradient(45deg, var(--family-secondary), var(--family-accent));
    border: none;
    padding: 1.5rem 4rem;
    border-radius: 50px;
    font-size: 1.2rem;
    color: var(--family-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s 1s ease forwards;
}

.acquire-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--family-glow);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .product-showcase {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-image-container {
        margin: 0 auto;
        max-width: 500px;
    }

    .product-title {
        font-size: 2.5rem;
    }
}

.gradient-background {
    background: linear-gradient(135deg, var(--family-dark) 0%, #1a1a2e 50%, #2a2a4e 100%);
}

.story-navigation button {
    background: rgba(76, 175, 80, 0.2);
    color: var(--family-light);
}

.story-navigation button:hover {
    background: rgba(76, 175, 80, 0.4);
}

.story-navigation button:disabled {
    background: rgba(76, 175, 80, 0.1);
    color: var(--text-muted);
}

.progress-indicator {
    color: var(--family-secondary);
}

.scroll-indicator {
    color: var(--family-secondary);
}

.product-aura {
    background: radial-gradient(circle, var(--family-accent) 0%, var(--family-glow) 50%, transparent 70%);
}

/* Text Content Styles */
.text-content {
    color: var(--family-light);
}

.title-group {
    margin-bottom: 2rem;
}

.title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--family-light);
    text-shadow: 0 0 30px var(--family-glow);
}

.title-underline {
    width: 5rem;
    height: 4px;
    background: linear-gradient(to right, var(--family-primary), transparent);
}

.description {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 2rem; /* Ajout de marge pour espacer la description des fonctionnalités */
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem; /* Optionnel : vous pouvez l'ajouter pour encore plus d'espace */
}

.feature-card {
    padding: 1.5rem;
    background: linear-gradient(145deg, 
        rgba(26, 15, 0, 0.7),
        rgba(26, 15, 0, 0.8)
    );
    border: 1px solid var(--family-glow);
    border-radius: 1rem;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 10px 5px rgba(76, 175, 80, 0.1);
    text-align: center;
}

.feature-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--family-primary);
    transition: color 0.3s;
}

.feature-card:hover .feature-icon svg {
    color: var(--family-light);
}

.feature-card:hover .feature-title {
    color: var(--family-light);
}

.feature-card:hover .feature-description {
    color: var(--family-light);
}

/* Pricing Section */
.pricing-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pricing-info-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pricing-info,
.stock-info {
    flex: 1;
    text-align: center;
}

.price-label,
.stock-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.price-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--family-primary);
}

.stock-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var (--family-light);
}

.min-height-screen {
    background: rgba(13, 13, 13, 0.7);
    border-radius: 20px;
    padding: 2rem 2rem;
    box-shadow: 0 10px 30px var(--family-glow);
    backdrop-filter: blur(10px);
    border: 1px solid var(--family-glow);
    max-width: 1200px;
    position: relative;
}

.min-height-screen .title {
    font-size: clamp(2rem, 5vw, 4rem); /* Ajustement dynamique de la taille */
    line-height: 1.2;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: 2px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

@media (max-width: 480px) {
    .min-height-screen .title {
        font-size: clamp(1.4rem, 6vw, 2rem);
        letter-spacing: 1px;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .min-height-screen .text-content .title-group {
        margin-bottom: 1rem;
    }
    .min-height-screen {
        padding: 1.5rem 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .feature-card {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

.min-height-screen .feature-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: rgba(13, 13, 13, 0.7);
    border: 1px solid var(--family-glow);
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
}

.min-height-screen .features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
}

@media (max-width: 768px) {
    .min-height-screen .features-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 1rem;
    }
}

.product-info-section {
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
}

.info-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .info-card-wrapper {
        flex-direction: row;
        gap: 3rem;
    }
}

.info-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(
        to bottom right,
        rgba(5, 15, 5, 0.7),
        rgba(0, 10, 0, 0.8)
    );
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.1);
    transition: all 0.3s ease;
    flex: 1; /* Allow the info card to grow to the height */
}

.info-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(
        to bottom right,
        rgba(10, 20, 10, 0.8),
        rgba(5, 15, 5, 0.9)
    );
    box-shadow: 
        0 8px 25px rgba(76, 175, 80, 0.3),
        0 0 0 1px rgba(76, 175, 80, 0.2);
}

.info-title {
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 1);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px var(--family-glow);
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    justify-content: space-between; /* Distribute info-items evenly across the height */
    flex: 1; /* Expand to take up available space in the card */
    height: 100%;
}

.info-item {
    display: flex;
    align-items: center;
    flex-grow: 1; /* Allow each info-item to take the available space */
    animation: scrollItem 6s ease-in-out infinite;
}

@keyframes scrollItem {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.info-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--family-primary);
    transition: color 0.3s, text-shadow 0.3s;
}

.info-icon:hover {
    color: var(--family-accent); /* Couleur céleste brillante */
    text-shadow: 0 0 10px var(--family-glow), 0 0 20px var(--family-glow), 0 0 30px var(--family-glow);
}

.info-details p {
    font-family: var(--font-primary);
    font-weight: 500;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.info-details p .info-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 1);
    font-family: var(--font-heading);
}

.emotional-message {
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-size: 0.9rem;
    margin-top: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.rarity-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--family-accent);
    color: #fff;
    font-family: var(--font-heading);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.why-unique {
    margin: 2rem;
    padding: 2rem;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 10px;
    text-align: left;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--family-glow);
}

.why-unique h2 {
    font-family: var(--font-heading);
    color: var(--family-accent);
    margin-bottom: 1.5rem;
}

.why-unique ul {
    list-style: none;
    padding: 0;
}

.why-unique ul li {
    margin-bottom: 1rem;
    font-family: var(--font-primary);
    position: relative;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.modal {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.9) 60%, rgba(0, 0, 0, 1) 100%);
    backdrop-filter: blur(4px);
    display: none; /* Initialement caché */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
    transition: opacity 0.3s ease-in-out;
}

.modal.active {
    display: flex; /* Rend visible la modal */
    opacity: 1;
}

.modal-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--family-primary);
}

.modal-title {
    font-family: var(--font-heading);
    color: var(--family-primary);
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-message {
    background: rgba(76, 175, 80, 0.05);
    border: 1px solid var(--family-glow);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-button {
    flex: 1;
    padding: 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-button.cancel {
    font-family: var(--font-heading);
    background: transparent;
    border: 1px solid var(--family-primary);
    color: var(--family-primary);
}

.modal-button.confirm {
    font-family: var(--font-heading);
    background: var(--family-primary);
    border: none;
    color: white;
}

.modal-button:hover {
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    min-height: 200px;
}

.spinner-circle {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-circle::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--family-primary), var(--family-accent));
    animation: pulse 1.5s ease-in-out infinite;
    opacity: 0.15;
    z-index: 0;
}

.spinner-circle::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid var(--family-primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px var(--family-glow);
    z-index: 1;
}

.spinner-text {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.4em;
    text-shadow: 0 0 10px var(--family-glow);
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
    z-index: 2;
    margin-top: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.modal-content {
    background: linear-gradient(135deg, 
        rgba(5, 15, 5, 0.95), 
        rgba(0, 10, 0, 0.85)
    );
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    max-width: 90%;
    width: 500px;
    position: relative;
    border: 1px solid var(--family-glow);
    box-shadow: 
        0 0 30px var(--family-glow),
        inset 0 0 20px var(--family-glow);
    animation: modalGlow 2s infinite alternate;
}

@keyframes modalGlow {
    0% {
        box-shadow: 
            0 0 30px var(--family-glow),
            inset 0 0 20px var(--family-glow);
    }
    100% {
        box-shadow: 
            0 0 50px var(--family-glow),
            inset 0 0 30px var(--family-glow);
    }
}

.error-message {
    color: #ff3333;
    text-align: center;
    padding: 20px;
    font-size: 1.2em;
    font-family: var(--font-heading);
    background: rgba(255, 51, 51, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 51, 51, 0.3);
    animation: fadeIn 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.3);
}

.modern-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: linear-gradient(135deg, var(--family-accent), var(--family-glow));
    border: 1px solid var(--family-glow);
    border-radius: 15px;
    padding: 0.5rem 1rem;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 0 10px var(--family-glow), 0 0 10px var(--family-glow), 0 0 10px var(--family-glow);
    width: fit-content;
}

.exclusivity-notice {
    margin-top: 2rem;
    width: 100%;
    padding: 1.75rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--family-glow);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    box-shadow: 
        0 25px 45px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Ajustez l’espacement horizontal */
    position: relative;
    z-index: 1;
}

.divider {
    width: 4px;
    height: 5rem;
    background: linear-gradient(to bottom, var(--family-accent), transparent);
}

.icon-wrapper {
    position: relative;
    flex-shrink: 0;
}

.icon-container {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
}

.icon-container::before,
.icon-container::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid var(--family-glow);
    border-radius: 50%;
    opacity: 0.3;
}

.icon-container::before {
    animation: pulse 3s ease-in-out infinite;
}

.icon-container::after {
    animation: pulse 3s ease-in-out infinite 1.5s;
}

.lock-icon {
    width: 20px;
    height: 20px;
    color: var(--family-accent);
    filter: drop-shadow(0 2px 4px var(--family-glow));
}

.text-content2 {
    transform: translateZ(10px);
}

.text-content2 h3 {
    font-family: var(--font-heading);
    color: var(--family-accent);
    font-size: 1.5rem;
    margin-bottom: 0.625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 10px var(--family-glow);
}

.text-content2 p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(228, 228, 228, 0.9);
    font-weight: 300;
    letter-spacing: 0.01em;
}

.shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mask: linear-gradient(
        45deg,
        transparent 30%,
        #fff 45%,
        #fff 55%,
        transparent 70%
    );
    -webkit-mask: linear-gradient(
        45deg,
        transparent 30%,
        #fff 45%,
        #fff 55%,
        transparent 70%
    );
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: translateX(-100%);
    animation: shine 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@media (max-width: 480px) {
    .exclusivity-notice {
        padding: 1.5rem;
    }

    .notice-content {
        gap: 1.25rem;
    }

    .icon-container {
        width: 42px;
        height: 42px;
    }

    .text-content2 h3 {
        font-size: 1.25rem;
    }

    .text-content2 p {
        font-size: 0.875rem;
    }
}

.fade-transition {
    transition: all 0.3s ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
    50% { transform: translateY(-20px) rotateX(5deg) rotateY(5deg); }
}

.purchase-button:hover {
    box-shadow: 0 8px 25px var(--family-glow);
    background: linear-gradient(45deg,
        var (--family-secondary),
        var(--family-accent));
}

.close-button:hover {
    background: var(--family-accent);
    transform: scale(1.1) rotate(20deg);
    box-shadow: 0 8px 25px var(--family-glow);
}

/* Hover effects pour les éléments interactifs */
.chapter-marker:hover {
    box-shadow: 0 0 30px var(--family-glow);
}

.chapter-marker:hover::before {
    opacity: 1;
    background: radial-gradient(circle,
        var(--family-accent) 0%,
        var(--family-glow) 50%,
        transparent 100%);
}

/* Hover effects pour les cartes et conteneurs */
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px var(--family-glow);
}

.story-text:hover {
    background: rgba(26, 26, 46, 0.8);
    box-shadow: 0 10px 30px var(--family-glow);
    border-color: var(--family-glow);
}

/* Hover effects pour les badges et indicateurs */
.modern-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--family-glow);
}

.hover-active {
    opacity: 0.7;
    transform: scale(1.05);
}

/* Effet Terra */
.terra-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.effects-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.product-effect {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at bottom, var(--family-primary) 0%, transparent 70%);
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.leaves-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

@keyframes leafFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--moveX), var(--moveY)) rotate(var(--rotation));
        opacity: 0;
    }
}

.leaf {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, 
        var(--family-accent) 0%, 
        var(--family-primary) 60%, 
        var(--family-secondary) 100%);
    clip-path: path('M10 0 C15 5 20 10 10 20 C0 10 5 5 10 0');
    opacity: 0;
    pointer-events: none;
    animation: leafFloat var(--duration) ease-in-out forwards;
}

.product-selection {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--terra-dark);
    border-radius: 1rem;
}

.bracelets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.bracelet-item {
    background: var(--terra-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.8rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.bracelet-item.selected {
    border-color: var(--terra-accent);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.bracelet-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bracelet-color {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.bracelet-info {
    flex: 1;
}

.bracelet-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    display: block;
    margin-bottom: 0.3rem;
}

.bracelet-status {
    font-size: 0.9rem;
}

.status-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    font-size: 0.8rem;
}

.status-badge.in-cart {
    background: rgba(var(--terra-primary-rgb), 0.2);
    color: var(--terra-primary);
}

.status-badge.available {
    background: rgba(var(--terra-accent-rgb), 0.2);
    color: var(--terra-accent);
}

.select-bracelet {
    background: transparent;
    border: 1px solid var(--terra-accent);
    color: var(--terra-accent);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.select-bracelet:hover:not([disabled]) {
    background: var(--terra-accent);
    color: var(--terra-dark);
}

.select-bracelet[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.selected-bracelets {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.8rem;
}

.selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.selected-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.remove-bracelet {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.remove-bracelet:hover {
    color: var(--terra-accent);
}

.add-to-cart-button {
    margin-top: 2rem;
    width: 100%;
    padding: 1rem;
    background: var(--terra-accent);
    color: var(--terra-dark);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.add-to-cart-button:hover:not([disabled]) {
    background: var(--terra-primary);
}

.add-to-cart-button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.spinner-circle {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(var(--terra-accent-rgb), 0.2);
    border-top-color: var(--terra-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Styles pour la sélection des bracelets */
.bracelet-selection {
    background: linear-gradient(165deg, 
        rgba(26, 46, 26, 0.9) 0%, 
        rgba(0, 0, 0, 0.95) 100%
    );
    border: none;
    border-radius: 20px;
    padding: 1.2rem;
    margin: 2.5rem 0 1.5rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 50px var(--family-glow);
    backdrop-filter: blur(10px);
    width: 100%;
}

.bracelet-selection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 50% 0%,
        var(--family-glow) 0%,
        transparent 70%
    );
    opacity: 0.1;
    z-index: 0;
}

.selection-label {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    background: linear-gradient(
        45deg,
        var(--family-primary) 0%,
        var(--family-accent) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    width: 100%;
    text-shadow: none;
    font-weight: 600;
}

.bracelet-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.bracelet-option {
    background: rgba(26, 46, 26, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid transparent;
    border-radius: 15px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.bracelet-option::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: linear-gradient(
        165deg,
        rgba(76, 175, 80, 0.1) 0%,
        rgba(27, 94, 32, 0.05) 100%
    );
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bracelet-option::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(
        165deg,
        var(--family-primary) 0%,
        var(--family-secondary) 100%
    );
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.bracelet-option:not(.in-cart):hover {
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.3),
        0 0 30px var(--family-glow);
}

.bracelet-option:not(.in-cart):hover::before {
    opacity: 1;
}

.bracelet-option:not(.in-cart):hover::after {
    opacity: 1;
}

.bracelet-option.selected {
    border-color: transparent;
    background: transparent;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.3),
        0 0 40px var(--family-glow);
}

.bracelet-option.selected::after {
    opacity: 1;
}

.bracelet-option.in-cart {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.2);
    filter: saturate(0);
    transform: scale(0.98);
}

.color-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--family-accent);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 2px 6px rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
}

.color-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: inherit;
    filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bracelet-option:not(.in-cart):hover .color-dot {
    transform: scale(1.15);
    border-color: var(--family-primary);
}

.bracelet-option:not(.in-cart):hover .color-dot::after {
    opacity: 0.4;
}

.color-name {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--family-light);
    font-weight: 500;
    flex-grow: 1;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.bracelet-option:hover .color-name {
    color: var(--family-primary);
    transform: translateX(5px);
}

.cart-status {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.8;
}

.selected-bracelets-summary {
    font-family: var(--font-primary);
    text-align: center;
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 2rem;
    padding: 1.2rem;
    background: rgba(26, 46, 26, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(76, 175, 80, 0.1);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.selected-bracelets-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        165deg,
        rgba(76, 175, 80, 0.05) 0%,
        transparent 100%
    );
    opacity: 0.5;
}

/* Animation pour la sélection */
@keyframes selectGlow {
    0% {
        box-shadow: 
            0 15px 30px rgba(0, 0, 0, 0.3),
            0 0 30px var(--family-glow);
    }
    50% {
        box-shadow: 
            0 15px 30px rgba(0, 0, 0, 0.3),
            0 0 50px var(--family-glow);
    }
    100% {
        box-shadow: 
            0 15px 30px rgba(0, 0, 0, 0.3),
            0 0 30px var(--family-glow);
    }
}

.bracelet-option.selected {
    animation: selectGlow 2s infinite;
}

/* Ajuster le bouton d'achat */
.purchase-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Certificate Section - New Design */
.certificate-section {
    margin: 4rem auto;
    padding: 0 2rem;
    max-width: 1200px;
}

.certificate-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    padding: 3rem;
    background: linear-gradient(145deg, 
        rgba(26, 46, 26, 0.95),
        rgba(27, 94, 32, 0.98)
    );
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px var(--family-glow);
}

.certificate-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(76, 175, 80, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(129, 199, 132, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.certificate-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.certificate-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--family-primary), var(--family-accent));
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    animation: certificateGlow 3s ease-in-out infinite alternate;
}

.certificate-symbol {
    width: 40px;
    height: 40px;
    color: white;
    filter: drop-shadow(0 0 8px var(--family-glow));
    animation: certificateRotate 12s linear infinite;
}

.certificate-divider {
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom,
        transparent,
        var(--family-accent),
        transparent
    );
    opacity: 0.3;
}

.certificate-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--family-accent);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--family-glow);
}

.certificate-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 400px;
    margin: auto;
}

.certificate-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0;
}

.certificate-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--family-light);
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.certificate-features li:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.feature-icon {
    color: var(--family-accent);
    font-size: 1.2rem;
}

.feature-text {
    flex: 1;
}

.certificate-preview-wrapper {
    margin-top: 2rem;
    perspective: 1000px;
}

.certificate-mockup {
    width: 200px;
    height: 120px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 8px;
    position: relative;
    transform: rotateY(-15deg) rotateX(5deg);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.certificate-mockup:hover {
    transform: rotateY(-5deg) rotateX(2deg) scale(1.05);
}

.certificate-stamp {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    background: var(--family-primary);
    border-radius: 50%;
    opacity: 0.8;
    animation: stampPulse 2s ease-in-out infinite;
}

.certificate-watermark {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg,
        transparent 40%,
        rgba(76, 175, 80, 0.1) 45%,
        transparent 50%
    );
    animation: watermarkShine 3s linear infinite;
}

@keyframes certificateRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes stampPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

@keyframes watermarkShine {
    from { transform: translateX(-200%); }
    to { transform: translateX(200%); }
}

@media (max-width: 1024px) {
    .certificate-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        text-align: center;
    }

    .certificate-divider {
        width: 80%;
        height: 2px;
        margin: 1rem auto;
    }

    .certificate-features {
        align-items: center;
    }

    .certificate-features li {
        width: 100%;
        max-width: 400px;
    }

    .certificate-mockup {
        margin: 0 auto;
    }
}

/* Responsive Certificate Section */
@media (max-width: 1200px) {
    .certificate-container {
        grid-template-columns: 1fr auto 1fr;
        padding: 2rem;
    }

    .certificate-text p {
        max-width: 300px;
        font-size: 1rem;
    }

    .certificate-features li {
        font-size: 0.95rem;
    }
}

@media (max-width: 992px) {
    .certificate-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        padding: 2rem 1.5rem;
    }

    .certificate-divider {
        width: 80%;
        height: 2px;
        margin: 0rem auto;
    }

    .certificate-text {
        margin: 0 auto;
    }

    .certificate-text p {
        max-width: 100%;
    }

    .certificate-features {
        max-width: 500px;
        margin: 0 auto;
    }

    .certificate-mockup {
        transform: rotateY(-15deg) rotateX(5deg); /* Garder la rotation 3D */
        margin: 2rem auto;
        transition: all 0.3s ease;
    }

    .certificate-mockup:hover,
    .certificate-mockup:active { /* Ajouter le support tactile */
        transform: rotateY(-5deg) rotateX(2deg) scale(1.05);
    }
}

@media (max-width: 768px) {
    .certificate-section {
        margin: 3rem auto;
        padding: 0 0rem;
    }

    .certificate-container {
        padding: 1.5rem;
        gap: 1.5rem;
    }



    .certificate-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .certificate-symbol {
               width: 30px;
        height: 30px;
    }

    .certificate-text h3 {
        font-size: 1.5rem;
    }

    .certificate-text p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .certificate-features {
        gap: 1rem;
    }

    .certificate-features li {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .certificate-mockup {
        width: 180px;
        height: 108px;
    }
}

@media (max-width: 480px) {
    .certificate-container {
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .certificate-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .certificate-symbol {
        width: 25px;
        height: 25px;
    }

    .certificate-text h3 {
        font-size: 1.25rem;
    }

    .certificate-text p {
        font-size: 0.9rem;
    }

    .certificate-features li {
        font-size: 0.85rem;
        padding: 0.4rem;
    }

    .certificate-mockup {
        width: 150px;
        height: 90px;
        transform: rotateY(-10deg) rotateX(3deg); /* Rotation plus subtile */
    }

    .certificate-mockup:hover,
    .certificate-mockup:active {
        transform: rotateY(-3deg) rotateX(1deg) scale(1.03); /* Animation plus douce */
    }

}

/* Animation optimizations for mobile */
@media (prefers-reduced-motion: reduce) {
    .certificate-symbol {
        animation: certificateRotate 12s linear infinite;
    }

    .certificate-watermark {
        animation: watermarkShine 3s linear infinite;
    }

    .certificate-stamp {
        animation: stampPulse 2s ease-in-out infinite;
    }
}