@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');
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #ff4500;
    --secondary-color: #301c03;
    --bg-dark: #0a0000;
    --text-light: #ffffff;
    --text-muted: #d3d3d3;
    --color-background: #0a0505;
    --color-text: #e4d5d5;
    --color-accent: #ff6b4a;
    --color-accent-light: #ff8c6a;
    --font-heading: 'Josefin Sans', sans-serif;
    --font-body: 'Quicksand', sans-serif;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --accent: #ff8c6a;
    --accent-glow: rgba(255, 69, 0, 0.15);
    --text: #E4E4E4;
    --bg: #1A1A1A;
    --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);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(180deg, #000000 0%, #0a0000 10%, #1a0f0f 50%, #3a2020 100%);
}

body.story-background {
    background: #000000; /* Fond noir */
}

.intro-section {
    min-height: 86vh;
    display: flex;
    margin-top: 1.5rem;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.volcanic-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(255,140,0,1), rgba(255,69,0,0.7) 50%, transparent 70%);
    border-radius: 50%;
    opacity: 0.6;
    pointer-events: none;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.ash-particle {
    background: radial-gradient(circle, rgba(100,100,100,0.7), rgba(50,50,50,0.4) 50%, transparent 70%);
}

.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: #ff8c6a;
    font-size: 4rem;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-shadow: 0 0 30px rgba(255, 107, 74, 0.5);
}

.intro-text {
    font-size: 1.3rem;
    font-family: var(--font-body);
}

.story-button {
    background: linear-gradient(45deg, var(--primary-color), #ff8c6a);
    border: none;
    padding: 1.2rem 1.2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(255, 107, 74, 0.3);
}

.story-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 74, 0.5);
}

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

.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(20, 0, 0, 0.3);
    border-radius: 4px;
    overflow: visible;
    position: relative;
    box-shadow: 0 0 30px rgba(255, 50, 0, 0.2);
}

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

.progress-fill {
    position: absolute;
    top: 0;
    width: 100%;
    background: linear-gradient(180deg,
        #ff6b4a 0%,
        #ff4500 25%,
        #ff8c6a 50%,
        #ff4500 75%,
        #ff6b4a 100%);
    transition: height 0.05s linear; 
    box-shadow: 
        0 0 20px #ff4500,
        0 0 40px #ff6b4a,
        0 0 60px rgba(255, 107, 74, 0.4);
    background-size: 100% 200%;
    animation: lavaFlow 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,
        #ff8c6a 0%,
        #ff6b4a 50%,
        #ff4500 100%);
    border-radius: 50%;
    transform: translateX(-50%) scale(0.8);
    cursor: pointer;
    position: relative;
    box-shadow: 0 0 15px rgba(255, 107, 74, 0.6);
    left: 50%;  /* Place les marqueurs en dehors de la barre sur la droite */
    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(255, 140, 106, 0.6) 0%,
        rgba(255, 107, 74, 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(255, 107, 74, 0.3);
    animation: pulseRing 2s infinite;
}

.chapter-marker:hover::before {
    opacity: 1;
}

.chapter-marker.active {
    transform: translateX(-50%) scale(1.5);
    box-shadow: 
        0 0 30px #ff4500,
        0 0 60px rgba(255, 107, 74, 0.8);
}

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

/* Ajustement via Media Queries pour des tailles d'écran spécifiques */
@media (max-width: 768px) {
    .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 */
    }
}

@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;
    z-index: 1;
    max-width: 800px;
    margin-left: calc(10vw);
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s var(--transition-smooth);
    background: rgba(10, 5, 5, 0.6);
    padding: 3rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 74, 0.1);
}

.chapter.active .chapter-content {
    opacity: 1;
    transform: translateY(0);
}

.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 */
}

/* 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-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 300;
    color: var(--color-text);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
    line-height: 1.8;
}

.chapter-text::first-letter {
    font-size: 3.5em;
    float: left;
    line-height: 0.8;
    margin-right: 0.2em;
    color: var(--color-accent-light);
    text-shadow: 0 0 20px rgba(255, 107, 74, 0.5);
    font-family: var(--font-heading);
}

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

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

    .chapter {
        padding: 4rem 1.5rem;
    }

    .chapter-content {
        padding: 2rem;
        max-width: 90%;
    }
    
    .chapter-text {
        font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    }
}


.close-button {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 107, 74, 0.8);
    border: none;
    width: 50px; /* Définir une largeur fixe pour garantir un cercle parfait */
    height: 50px; /* Définir une hauteur fixe */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-background);
    cursor: pointer;
    z-index: 101;
    box-shadow: 0 5px 15px rgba(255, 107, 74, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

@media (min-width: 1024px) {
    .close-button {
        right: 2.5rem; /* Augmente la marge à droite sur les écrans de grande taille (comme les PC) */
    }
}

.close-button i {
    font-size: 1.5rem; /* Taille de l'icône */
}

.close-button:hover {
    background: rgba(255, 107, 74, 1);
    transform: scale(1.1) rotate(20deg); /* Légère augmentation de taille et rotation */
    box-shadow: 0 8px 25px rgba(255, 107, 74, 0.7);
}

.close-button:active {
    transform: scale(0.95); /* Réduit légèrement lors du clic pour un effet de clic */
}


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

.return-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 74, 0.5);
}

.product-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.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(--accent-glow);
    transform: translateZ(0);
    will-change: transform;
    position: relative;
    z-index: 2;
}

.product-thumbnails {
    display: flex;
    justify-content: space-between;
    gap: 1rem; /* Ajoute un espace entre chaque miniature */
    margin-top: 1.5rem;
}

.thumbnail-image {
    width: calc(33.33% - 0.66rem); /* Ajuste la largeur pour garder l'espace */
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumbnail-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 107, 74, 0.5);
}

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

.product-image.fade-out,
.thumbnail-image.fade-out {
    opacity: 0.5; /* Réduit l'opacité pendant le changement pour créer une transition plus douce */
    transform: scale(0.95); /* Donne une légère réduction pendant la transition */
}

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

.product-title {
    font-family: var(--font-heading);
    color: #ff8c6a;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(255, 107, 74, 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: #ff8c6a;
    font-weight: bold;
    float: left;
    margin-right: 0.5rem;
}

.mystical-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.mystical-feature {
    background: rgba(255, 107, 74, 0.05);
    border: 1px solid rgba(255, 107, 74, 0.1);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.mystical-feature:hover {
    transform: translateY(-10px);
    background: rgba(255, 107, 74, 0.08);
    box-shadow: 0 10px 30px rgba(255, 107, 74, 0.1);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #ff8c6a;
    margin-bottom: 0.5rem;
}

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

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

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

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

@keyframes heatPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes explode {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(4); opacity: 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;
    }

    .story-chapter {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.gradient-background {
    background: linear-gradient(to bottom, #301c03, #0a0000);
}

.relative {
    position: relative;
}

.overflow-hidden {
    overflow: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

/* 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(255, 107, 74, 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 Cards */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem; /* Optionnel : vous pouvez l'ajouter pour encore plus d'espace */
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-card {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #522f09;
    border-radius: 1rem;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 10px 30px rgba(255, 107, 74, 0.1);
}

.feature-card:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: var(--primary-color);
    box-shadow: 0 0 50px rgba(255, 107, 74, 0.3);
}

.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);
    color: var(--text-light);
    font-size: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.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 #522f09;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: 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(--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 1rem;
    background: linear-gradient(to right, #ff4500, #ff6b4a);
    color: var(--text-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:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(255, 107, 74, 0.4);
}

.purchase-button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.5);
}

.min-height-screen {
    background: rgba(0, 0, 0, 0.6); /* Ajoute un fond semi-transparent pour plus de contraste */
    border-radius: 20px; /* Ajoute un arrondi pour imiter une carte */
    padding: 2rem 2rem; /* Ajoute du rembourrage pour espacer le contenu à l'intérieur */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Ajoute une ombre pour lui donner un effet de "flottement" */
    backdrop-filter: blur(10px); /* Ajoute un effet de flou pour le fond */
    border: 1px solid rgba(255, 107, 74, 0.1); /* Ajoute une bordure subtile */
    max-width: 1200px; /* Limite la largeur de la carte pour une apparence centrée */
    position: relative; /* Garde la position relative pour des éléments internes si besoin */
}

.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;
    }
    .intro-title {
        font-size: 3rem;
    }
}

/* Styles de la section d'informations complémentaires */
.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:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 140, 74, 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 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(255, 255, 255, 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-icon:hover {
    color: #ffdd44; /* Couleur dorée brillante */
    text-shadow: 0 0 10px #ffdd44, 0 0 20px #ffdd44, 0 0 30px rgba(255, 221, 68, 0.5);
}

.info-details p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-family: 'Inter', sans-serif;
}

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

/* Effets globaux pour le Volcano Mode */
.volcanic-particles .particle {
    transition: transform 0.2s ease, animation-duration 0.2s ease;
}

/* Particules pendant le Volcano Mode */
.volcanic-particles .particle.exploding {
    background: radial-gradient(circle, rgba(255, 69, 0, 1), rgba(255, 0, 0, 0.8));
    box-shadow: 0 0 20px rgba(255, 69, 0, 1), 0 0 30px rgba(255, 0, 0, 0.8);
    transform: scale(3) rotate(45deg); /* Particules très grosses */
    animation: explode 0.4s ease-out infinite; /* Explosion */
}

/* Effet d'explosion */
@keyframes explode {
    0% {
        transform: scale(2) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(3) rotate(45deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) rotate(90deg);
        opacity: 0;
    }
}

/* Body pendant le Volcano Mode */
body.volcano-mode {
    background: radial-gradient(circle, #ff4500, #8b0000);
    animation: shake 0.5s infinite alternate;
}

/* Particules fixes pendant le Volcano Mode */
body.volcano-mode .volcanic-particles .particle {
    animation-duration: 0.4s !important; /* Toujours rapide */
    transform: scale(3) !important; /* Toujours grandes */
}

@keyframes shake {
    0% { transform: translateX(-5px); }
    100% { transform: translateX(5px); }
}

/* Titres en feu */
.fire-effect {
    color: #ff4500;
    text-shadow: 0 0 20px rgba(255, 69, 0, 1), 0 0 30px rgba(255, 69, 0, 0.8);
    animation: fire 1s infinite alternate;
}

@keyframes fire {
    0% {
        text-shadow: 0 0 20px rgba(255, 69, 0, 1), 0 0 30px rgba(255, 69, 0, 0.8);
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 99, 71, 1), 0 0 40px rgba(255, 69, 0, 0.8);
    }
    100% {
        text-shadow: 0 0 40px rgba(255, 140, 0, 1), 0 0 50px rgba(255, 69, 0, 0.7);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Volcano Mode - Nouveaux Effets */

/* Titres principaux (Intro et Produit) */
.volcano-mode .intro-title,
.volcano-mode .product-title {
    animation: eruptiveGlow 1.5s infinite alternate;
    transform: rotate(-2deg);
}

/* Sous-titres */
.volcano-mode .intro-subtitle {
    color: #ff3d00;
    text-shadow: 0 0 10px rgba(255, 61, 0, 1), 0 0 20px rgba(255, 140, 0, 0.8);
    animation: shiftingGlow 3s infinite alternate;
}

/* Texte descriptif */
.volcano-mode .description,
.volcano-mode .intro-text {
    color: #f5c278; /* Couleur blanche pour contraster */
    text-shadow: 
        0 0 10px rgba(255, 107, 74, 0.8), 
        0 0 20px rgba(255, 140, 0, 0.8), 
        0 0 30px rgba(255, 69, 0, 0.6);
    background: none; /* Supprimer l'effet de dégradé */
    animation: textGlow 1.5s infinite alternate; /* Ajout d'un effet léger */
}

/* Animation de lueur douce */
@keyframes textGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 107, 74, 0.8);
    }
    100% {
        text-shadow: 0 0 30px rgba(255, 140, 0, 1);
    }
}

/* Boutons (Histoire et Achat) */
.volcano-mode .story-button,
.volcano-mode .purchase-button {
    background: linear-gradient(90deg, #ff3d00, #ff8f00);
    transform: rotate(3deg) scale(1.1);
    box-shadow: 0 0 25px rgba(255, 69, 0, 1), 0 0 40px rgba(255, 140, 0, 0.8);
    animation: bounce 0.8s infinite alternate;
}

/* Barre de progression */
.volcano-mode .progress-bar {
    left: 0%;
    background: repeating-linear-gradient(
        45deg,
        #ff6d00,
        #d84315 10px,
        #b71c1c 20px
    );
    box-shadow: 0 0 25px rgba(255, 69, 0, 1);
    animation: pulseLava 2s infinite alternate;
}

/* Marqueurs de chapitres */
.volcano-mode .chapter-marker {
    background: conic-gradient(
        from 0deg,
        #ff3d00,
        #ff8f00,
        #ffa726,
        #ff3d00
    );
    animation: spinMarker 2s linear infinite;
    left: auto; /* Supprime l'effet de `left: 50%` */
    transform: scale(1.5);
}

/* Images principales et miniatures */
.volcano-mode .product-image {
    animation: tiltAndGlow 2s infinite alternate;
    box-shadow: 0 0 25px rgba(255, 140, 0, 1), 0 0 50px rgba(255, 69, 0, 0.6);
}

.volcano-mode .thumbnail-image {
    transform: rotate(-5deg) scale(1.2);
    animation: hoverTilt 1.5s infinite alternate;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.8), 0 0 30px rgba(255, 140, 0, 0.6);
}

/* Fond de l'histoire */
.volcano-mode .story-wrapper {
    background: linear-gradient(
        90deg,
        rgba(255, 69, 0, 0.7),
        rgba(139, 0, 0, 0.8),
        #300000
    );
    animation: shiftingBackground 4s infinite alternate;
}

/* Bouton de retour */
.volcano-mode .return-button {
    transform: rotate(-2deg) scale(1.1);
    animation: flickerGlow 1.5s infinite alternate, shakeEffect 0.5s infinite alternate;
    box-shadow: 0 0 15px rgba(255, 69, 0, 1), 0 0 30px rgba(255, 140, 0, 0.8);
}

/* Animations */

/* Effet de lueur eruptive */
@keyframes eruptiveGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 69, 0, 1);
    }
    100% {
        text-shadow: 0 0 30px rgba(255, 140, 0, 1);
        transform: rotate(2deg);
    }
}

/* Effet de halo changeant */
@keyframes shiftingGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 61, 0, 1);
    }
    100% {
        text-shadow: 0 0 25px rgba(255, 140, 0, 0.8);
    }
}

/* Effet de scintillement */
@keyframes flicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Effet de rebond */
@keyframes bounce {
    0% {
        transform: rotate(3deg) scale(1.1);
    }
    100% {
        transform: rotate(-3deg) scale(1.2);
    }
}

/* Effet de pulsation de lave */
@keyframes pulseLava {
    0% {
        box-shadow: 0 0 10px rgba(255, 69, 0, 1);
    }
    100% {
        box-shadow: 0 0 30px rgba(255, 140, 0, 1);
    }
}

/* Rotation des marqueurs */
@keyframes spinMarker {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Inclinaison et lueur */
@keyframes tiltAndGlow {
    0% {
        transform: rotate(0deg);
        box-shadow: 0 0 25px rgba(255, 140, 0, 1);
    }
    100% {
        transform: rotate(3deg);
        box-shadow: 0 0 50px rgba(255, 69, 0, 0.6);
    }
}

/* Effet d'inclinaison */
@keyframes hoverTilt {
    0% {
        transform: rotate(-5deg) scale(1.2);
    }
    100% {
        transform: rotate(5deg) scale(1.3);
    }
}

/* Fond changeant */
@keyframes shiftingBackground {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* Lueur scintillante */
@keyframes flickerGlow {
    0% {
        box-shadow: 0 0 10px rgba(255, 69, 0, 1);
    }
    100% {
        box-shadow: 0 0 30px rgba(255, 140, 0, 1);
    }
}

/* Effet de tremblement */
@keyframes shakeEffect {
    0% {
        transform: rotate(-2deg);
    }
    100% {
        transform: rotate(2deg);
    }
}

.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: #de3c00;
    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(255, 69, 0, 0.1);
    border-radius: 10px;
    text-align: left;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 69, 0, 0.3);
}

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

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

.why-unique ul li {
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.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-content {
    background: radial-gradient(circle, #2e1b1b, #0a0000);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    border: 1px solid rgba(255, 69, 0, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: slideDown 0.5s ease-out;
}

.modal-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(255, 69, 0, 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: #ff4500;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-message {
    background: rgba(255, 69, 0, 0.05);
    border: 1px solid rgba(255, 69, 0, 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);
}

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

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

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

.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, #ff4500, #ff8f00);
    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 #ff4500;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.7);
    z-index: 1;
}

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

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

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.15; }
    50% { transform: scale(1.2); opacity: 0.25; }
    100% { transform: scale(0.8); opacity: 0.15; }
}

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

.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(--border);
    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(--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;
    transform: translateZ(20px);
}

.icon-container::before,
.icon-container::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid var(--accent);
    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(--accent);
    filter: drop-shadow(0 2px 4px rgba(255, 69, 0, 0.3));
}

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

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

.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 pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
}

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

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

.exclusivity-notice:hover .icon-container {
    transform: translateZ(30px);
    transition: transform 0.3s ease;
}

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

/* Certificate Section - Style modifié pour Larme de Soutien */
.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, 15, 0, 0.95),
        rgba(43, 21, 0, 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(255, 69, 0, 0.1);
}

.certificate-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 69, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 140, 0, 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, #ff4500, #ff8c6a);
    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(--amor-glow));
    animation: certificateRotate 12s linear infinite;
}

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

.certificate-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #ff4500;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 69, 0, 0.5);
}

.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: #ff4500;
    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, #fff9f9, #fff5f5);
    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, 69, 0, 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: #ff4500;
    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(255, 69, 0, 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;
    }
}