@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #87ceeb;
    --accent: #4682b4;
    --bg-dark: #0d0d0d;
    --text-light: #f0f0f0;
    --text-muted: #b0b0b0;
    --color-background: var(--bg-dark);
    --color-text: var(--text-light);
    --color-accent: var(--accent);
    --color-accent-light: #6495ed;
    --font-heading: 'Josefin Sans', sans-serif;
    --font-body: 'Josefin Sans', sans-serif;
    --font-primary: 'Josefin Sans', sans-serif;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --accent-glow: rgba(70, 130, 180, 0.15);
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(180deg, var(--bg-dark) 0%, #1a1a2e 50%, #2a2a4e 100%) !important;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body.story-background {
    background: var(--bg-dark);
}

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

#aura {
    position: fixed;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 999999;
    will-change: transform;
    margin-left: -50px;
    margin-top: -50px;
}

.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(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.intro-title {
    font-family: var(--font-heading);
    color: var(--accent);
    font-size: 4rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 30px rgba(70, 130, 180, 0.5);
    line-height: 1.1;
}

.intro-text {
    font-size: 1.3rem;
    font-family: 'Quicksand', sans-serif;
}

.story-button {
    background: linear-gradient(45deg, var(--accent), var(--color-accent-light));
    border: none;
    padding: 1.2rem 1.2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    color: var(--bg-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(70, 130, 180, 0.3);
}

#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;  /* Dynamic viewport height */
    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(135, 206, 235, 0.2);
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(70, 130, 180, 0.1) 0%,
        rgba(135, 206, 235, 0.2) 50%,
        rgba(70, 130, 180, 0.1) 100%);
    animation: starGlow 1.5s infinite alternate ease-in-out;
}

.progress-fill {
    position: absolute;
    top: 0;
    width: 100%;
    background: linear-gradient(180deg,
        var(--accent) 0%,
        var(--color-accent-light) 25%,
        var(--accent) 50%,
        var(--color-accent-light) 75%,
        var(--accent) 100%);
    transition: height 0.05s linear; 
    box-shadow: 
        0 0 20px var(--accent),
        0 0 40px var(--color-accent-light),
        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(--accent) 0%,
        var(--color-accent-light) 50%,
        var(--bg-dark) 100%);
    border-radius: 50%;
    transform: translateX(-50%) scale(0.8);
    cursor: pointer;
    position: relative;
    box-shadow: 0 0 15px rgba(70, 130, 180, 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(70, 130, 180, 0.3);
    animation: pulseRing 2s infinite;
}

.chapter-marker:hover {
    box-shadow: 0 0 30px rgba(135, 206, 235, 0.8);
}

.chapter-marker:hover::before {
    opacity: 1;
    background: radial-gradient(circle,
        rgba(135, 206, 235, 0.6) 0%,
        rgba(100, 149, 237, 0.3) 50%,
        transparent 100%);
}

.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%);
    }
}

@media (min-width: 1200px) {
    .chapter-indicator h3 {
        font-size: clamp(2rem, 4vw, 4rem); /* Texte plus grand pour les écrans larges */
        padding: 1.2rem 3rem; /* Plus de padding pour les grands écrans */
        box-shadow: 
            0 0 70px 50px rgba(0, 0, 0, 0.6),  /* Réduction de l'opacité de l'ombre */
            0 0 120px 100px rgba(0, 0, 0, 0.4),
            0 0 200px 150px rgba(0, 0, 0, 0.3);
        border-radius: 1.5rem; /* Coins plus grands pour les grands écrans */
    }
}

.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, rgba(10, 10, 30, 0.95), rgba(30, 30, 60, 0.98));
    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(--text-light);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 0 0 15px var(--accent-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 */
}

/* Ajustement spécifique pour les très petits écrans */
@media (max-width: 480px) {
    .chapter-title {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
        letter-spacing: 1px;
        margin-bottom: 1.5rem;
    }
}

.chapter-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    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 pulseRing {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.5); opacity: 0.3; }
    100% { transform: scale(1); opacity: 0.6; }
}

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

.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) {
    .navigation {
        left: 1rem;
    }

    .chapter {
        padding: 4rem 1.5rem;
    }

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

    .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 */
    }
    .min-height-screen .text-content .title-group {
        margin-bottom: 1rem;
    }
    .min-height-screen {
        padding: 1.5rem 1.5rem;
    }
    .intro-title {
        font-size: 3rem;
    }

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

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

.close-button {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background: rgba(13, 13, 38, 0.8);
    border: 1px solid rgba(135, 206, 235, 0.3);
    color: #fff;
    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;
}

.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(--color-accent), var(--color-accent-light));
    border: none;
    border-radius: 30px;
    font-size: 1.5rem;
    color: var(--color-background);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    box-shadow: 0 5px 15px rgba(70, 130, 180, 0.3);
}

.return-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.5);
}

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

.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;
    animation: float 6s ease-in-out infinite;
}

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

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

.thumbnail-image:hover {
    box-shadow: 0 0 20px rgba(135, 206, 235, 0.4);
}

.thumbnail-image.hover-active {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(135, 206, 235, 0.4);
}

.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);
}

.features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
    width: 100%;
}

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card h3 {
    margin: 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 1;
}

.feature-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-color);
}

label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
}

.gender-switch-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.gender-switch {
    position: relative;
    background: rgba(135, 206, 235, 0.1);
    border-radius: 30px;
    padding: 4px;
    width: 100%;
    height: 40px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.gender-switch input[type="radio"] {
    display: none;
}

.gender-label {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 32px;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.gender-label i {
    margin-right: 5px;
}

.switch-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--primary-color);
    border-radius: 25px;
    transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    opacity: 0;
}

input[type="radio"]:checked ~ .switch-slider {
    opacity: 1;
}

input[type="radio"]:first-of-type:checked ~ .switch-slider {
    transform: translateX(0);
}

input[type="radio"]:last-of-type:checked ~ .switch-slider {
    transform: translateX(100%);
}

/* Style pour le label actif */
input[type="radio"]:checked + .gender-label {
    color: var(--bg-dark);
}

.gender-label {
    color: var(--text-color);
}

.global-star-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(180deg, #0d0d0d 0%, #1a1a2e 50%, #2a2a4e 100%);
}

#starField {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.parallax-star {
    position: absolute;
    background: var(--text-light);
    border-radius: 50%;
    animation: twinkle 4s infinite;
}

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

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

.product-title {
    font-family: var(--font-heading);
    color: var(--accent);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(70, 130, 180, 0.3);
}

.product-subtitle {
    font-family: var(--font-heading);
    color: var(--primary-color);
    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(--accent);
    font-weight: bold;
    float: left;
    margin-right: 0.5rem;
}

.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(--accent);
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(70, 130, 180, 0.3);
}

.acquire-button {
    background: linear-gradient(45deg, 
        var(--accent), 
        var(--color-accent-light));
    border: none;
    padding: 1.5rem 4rem;
    border-radius: 50px;
    font-size: 1.2rem;
    color: var(--bg-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 rgba(135, 206, 235, 0.5);
}

@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;
    }

    .mystical-features {
        grid-template-columns: 1fr;
    }

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

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

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

.story-navigation button {
    background: rgba(70, 130, 180, 0.2);
    color: var(--text-light);
}

.story-navigation button:hover {
    background: rgba(70, 130, 180, 0.4);
}

.story-navigation button:disabled {
    background: rgba(70, 130, 180, 0.1);
    color: var(--text-muted);
}

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

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

.product-aura {
    background: radial-gradient(circle, rgba(70, 130, 180, 0.2) 0%, rgba(135, 206, 235, 0.1) 50%, transparent 70%);
}

@keyframes starGlow {
    0% {
        box-shadow: 0 0 20px rgba(70, 130, 180, 0.3);
    }
    100% {
        box-shadow: 0 0 40px rgba(70, 130, 180, 0.6);
    }
}

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

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

.title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--text-light);
    text-shadow: 0 0 30px rgba(135, 206, 235, 0.5);
}

.title-underline {
    width: 5rem;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), 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-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--primary-color);
    transition: color 0.3s;
}

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

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(135, 206, 235, 0.2);
}

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

/* Pricing Section */
.pricing-section {
    padding-top: 2rem;
    border-top: 1px solid rgba(135, 206, 235, 0.2);
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

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

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

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

/* Purchase Button */
.purchase-button {
    width: 100%;
    padding: 1rem 0rem;
    background: linear-gradient(to right, var(--accent), var(--color-accent-light));
    color: var(--text-light);
    font-family: var(--font-heading);  /* Modification ici */
    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 rgba(135, 206, 235, 0.5);
}

.min-height-screen {
    border-radius: 20px;
    padding: 2rem 2rem;
    box-shadow: 0 10px 30px rgba(135, 206, 235, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(135, 206, 235, 0.1);
    max-width: 1200px;
    position: relative;
    min-height: 100vh;
}

.min-height-screen .feature-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: rgba(13, 13, 13, 0.7);
    border: 1px solid rgba(135, 206, 235, 0.1);
    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;
}

.feature-icon {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(135, 206, 235, 0.3);
}

.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-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 rgba(255, 255, 255, 0.3);
}

.info-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, rgba(10, 10, 10, 0.9), rgba(20, 20, 20, 0.95));
    border-radius: 16px;
    padding: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(135, 206, 235, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1; /* Allow the info card to grow to the height */
}

.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(--primary-color);
    transition: color 0.3s, text-shadow 0.3s;
}

.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-family: var(--font-heading);
    font-weight: 600;
    color: rgba(255, 255, 255, 1);
    font-family: var(--font-primary);
}

.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 {
    font-family: var(--font-heading);
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-primary);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.why-unique {
    margin: 2rem;
    padding: 2rem;
    background: rgba(100, 149, 237, 0.1);
    border-radius: 10px;
    text-align: left;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(135, 206, 235, 0.3);
}

.why-unique h2 {
    font-family: var(--font-heading);
    color: var(--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(135, 206, 235, 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(135, 206, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

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

.modal-message {
    background: rgba(135, 206, 235, 0.05);
    border: 1px solid rgba(135, 206, 235, 0.2);
    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(--primary-color);
    color: var(--primary-color);
}

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

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

.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(--accent), var(--primary-color));
    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(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(135, 206, 235, 0.7);
    z-index: 1;
}

.spinner-text {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.4em;
    text-shadow: 0 0 10px rgba(135, 206, 235, 0.5);
    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, #1a1a2e, #0d0d1a);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    max-width: 90%;
    width: 500px;
    position: relative;
    border: 1px solid rgba(135, 206, 235, 0.2);
    box-shadow: 
        0 0 30px rgba(70, 130, 180, 0.2),
        inset 0 0 20px rgba(135, 206, 235, 0.1);
    animation: modalGlow 2s infinite alternate;
}

@keyframes modalGlow {
    0% {
        box-shadow: 
            0 0 30px rgba(70, 130, 180, 0.2),
            inset 0 0 20px rgba(135, 206, 235, 0.1);
    }
    100% {
        box-shadow: 
            0 0 50px rgba(70, 130, 180, 0.4),
            inset 0 0 30px rgba(135, 206, 235, 0.2);
    }
}

.error-message {
    color: #ff3333;
    text-align: center;
    padding: 20px;
    font-size: 1.2em;
    font-family: var(--font-heading);  /* Modification ici */
    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);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.exclusivity-notice {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(145deg, rgba(135, 206, 235, 0.1), rgba(0, 0, 43, 0.15));
    border: 1px solid rgba(135, 206, 235, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notice-icon {
    color: var(--primary-color);
    font-size: 1.25rem;
    background: rgba(135, 206, 235, 0.1);
    padding: 0.75rem;
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-glow);
}

.notice-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.notice-highlight {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.notice-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Hover effects pour les boutons */
.story-button:hover {
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.5);
    background: linear-gradient(45deg,
        var(--accent),
        rgba(135, 206, 235, 0.8));
}

.purchase-button:hover {
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.5);
    background: linear-gradient(45deg,
        var(--accent),
        rgba(135, 206, 235, 0.8));
}

.close-button:hover {
    background: rgba(135, 206, 235, 1);
    transform: scale(1.1) rotate(20deg);
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.7);
}

.product-image:hover {
    box-shadow: 0 0 70px rgba(135, 206, 235, 0.5);
}

.info-icon:hover {
    color: var(--primary-color);
    text-shadow: 
        0 0 10px rgba(135, 206, 235, 1),
        0 0 20px rgba(135, 206, 235, 0.8),
        0 0 30px rgba(100, 149, 237, 0.5);
}

/* Hover effects pour les cartes et conteneurs */
.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(26, 26, 46, 0.8);
    box-shadow: 0 10px 30px rgba(135, 206, 235, 0.3);
    border-color: rgba(135, 206, 235, 0.3);
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(26, 26, 46, 0.8);
    border-color: rgba(135, 206, 235, 0.3);
    box-shadow: 0 0 50px rgba(135, 206, 235, 0.3);
}

.story-text:hover {
    background: rgba(26, 26, 46, 0.8);
    box-shadow: 0 10px 30px rgba(135, 206, 235, 0.3);
    border-color: rgba(135, 206, 235, 0.3);
}

/* Animations au survol */
@keyframes celestialGlow {
    0% {
        box-shadow: 0 0 20px rgba(135, 206, 235, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(135, 206, 235, 0.6);
    }
    100% {
        box-shadow: 0 0 20px rgba(135, 206, 235, 0.3);
    }
}

.hover-glow:hover {
    animation: celestialGlow 2s infinite;
    box-shadow: 0 0 30px rgba(70, 130, 180, 0.4);
}

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

.fade-out {
    opacity: 0.5;
    transform: scale(0.95);
}

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

.features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
    width: 100%;
}

.toggle-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.toggle-button {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    background-color: transparent;
    color: var(--text-color);
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-button:hover {
    background-color: rgba(135, 206, 235, 0.1);
}

.toggle-button.active {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

.custom-select {
    padding: 10px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    background-color: transparent;
    color: var(--text-color);
    font-family: 'Quicksand', sans-serif;
    width: 200px;
    margin-top: 10px;
}

.custom-select option {
    background-color: var(--background-color);
    color: var(--text-color);
}

label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
}

.variations-select {
    flex: 1;
    margin-bottom: 20px;
}

.pricing-info-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 2;
}

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

/* Styles mobile */
@media (max-width: 768px) {
    .pricing-section {
        flex-direction: column;
        gap: 1rem;
    }

    .variations-select,
    .pricing-info-wrapper {
        width: 100%;
    }

    .pricing-info-wrapper {
        gap: 1rem;
    }
}

/* 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(13, 13, 38, 0.95),
        rgba(26, 26, 46, 0.98)
    );
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(135, 206, 235, 0.1);
}

.certificate-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(135, 206, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(100, 149, 237, 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(--primary-color), var(--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 rgba(135, 206, 235, 0.5));
    animation: certificateRotate 12s linear infinite;
}

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

.certificate-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(135, 206, 235, 0.3);
}

.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(--text-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(--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, #f0f8ff, #e6f3ff);
    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(--primary-color);
    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(135, 206, 235, 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;
    }
}