/* 
 * Feuille de style Premium - Landing Page Boosty
 * Projet de Bachelor 1 - MyDigitalSchool
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Variables de Design System */
:root {
    --bg-color: #120E16;
    --text-color: #FAFAFA;
    --text-muted: #9E9AA3;
    
    /* Charte graphique */
    --color-guarana: #C8102E;
    --color-betterave: #7A1F3D;
    --color-ginseng: #D4AF37;
    
    --primary-gradient: linear-gradient(135deg, var(--color-guarana), var(--color-betterave));
    
    /* Composants */
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(18, 14, 22, 0.75);
    
    /* Effets */
    --shadow-glow: 0 10px 40px -10px rgba(200, 16, 46, 0.4);
    --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
    
    --font-family: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

[data-theme="light"] {
    --bg-color: #FAFAFA;
    --text-color: #120E16;
    --text-muted: #5B5861;
    
    --card-bg: rgba(18, 14, 22, 0.03);
    --card-border: rgba(18, 14, 22, 0.08);
    --input-bg: rgba(18, 14, 22, 0.04);
    --input-border: rgba(18, 14, 22, 0.08);
    --nav-bg: rgba(250, 250, 250, 0.75);
    
    --shadow-glow: 0 10px 40px -10px rgba(122, 31, 61, 0.2);
    --shadow-card: 0 8px 32px 0 rgba(18, 14, 22, 0.05);
}

/* Reset & Styles Généraux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Wrapper */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--card-border);
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-guarana);
    display: inline-block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.8;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-fast);
}

.nav-link:hover {
    opacity: 1;
}

.nav-link:hover::after {
    width: 100%;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    transform: scale(1.05);
    border-color: var(--color-guarana);
    box-shadow: 0 0 15px rgba(200, 16, 46, 0.2);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.5s ease;
}

.theme-toggle-btn:active svg {
    transform: rotate(360deg);
}

/* Masquer l'icône non active */
[data-theme="light"] .sun-icon {
    display: none;
}
html:not([data-theme="light"]) .moon-icon {
    display: none;
}

/* Boutons Communs */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #FAFAFA;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(200, 16, 46, 0.4);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background: var(--card-border);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

.hero-glow-bg {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.15) 0%, rgba(122, 31, 61, 0.05) 50%, rgba(0,0,0,0) 100%);
    z-index: -1;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-content h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-badges {
    display: flex;
    gap: 32px;
}

.hero-badge {
    display: flex;
    flex-direction: column;
}

.badge-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-guarana);
}

.badge-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    animation: float 6s ease-in-out infinite;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

/* Gammes / Carrousel Section */
.gammes {
    background-color: rgba(255, 255, 255, 0.01);
    position: relative;
}

.gammes-desc {
    text-align: center;
    max-width: 600px;
    margin: -30px auto 50px auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Carousel Container */
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 300%; /* 3 slides */
}

.carousel-slide {
    width: 33.333%;
    flex-shrink: 0;
    padding: 60px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.slide-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.slide-image-container::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    opacity: 0.4;
}

/* Couleurs de lueurs spécifiques aux parfums */
.slide-guarana .slide-image-container::before { background: var(--color-guarana); }
.slide-betterave .slide-image-container::before { background: var(--color-betterave); }
.slide-ginseng .slide-image-container::before { background: var(--color-ginseng); }

.carousel-slide img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5));
    transition: var(--transition-smooth);
}

.carousel-slide:hover img {
    transform: scale(1.05) rotate(2deg);
}

.slide-tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FAFAFA;
}

.slide-guarana .slide-tag { background-color: var(--color-guarana); }
.slide-betterave .slide-tag { background-color: var(--color-betterave); }
.slide-ginseng .slide-tag { background-color: var(--color-ginseng); color: #120E16; }

.slide-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.slide-description {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.slide-specs {
    display: flex;
    gap: 20px;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-val {
    font-weight: 700;
    font-size: 1.1rem;
}

.spec-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Boutons de navigation du carrousel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
}

.carousel-btn:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #FAFAFA;
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn-prev {
    left: 20px;
}

.carousel-btn-next {
    right: 20px;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Indicateurs (Dots) */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--card-border);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    width: 28px;
    border-radius: 50px;
    background-color: var(--color-guarana);
}

/* Section Avis & Formulaire */
.avis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

/* Alertes de statut */
.alert {
    padding: 16px;
    border-radius: var(--border-radius-md);
    margin-bottom: 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

/* Formulaire d'avis */
.form-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius-md);
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-input:focus {
    border-color: var(--color-guarana);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(200, 16, 46, 0.15);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* Liste des Avis */
.reviews-container {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 16px;
}

/* Personnalisation Scrollbar pour les avis */
.reviews-container::-webkit-scrollbar {
    width: 6px;
}

.reviews-container::-webkit-scrollbar-track {
    background: transparent;
}

.reviews-container::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 50px;
}

.reviews-container::-webkit-scrollbar-thumb:hover {
    background: var(--color-guarana);
}

.review-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.review-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-betterave);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-author {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-color);
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.review-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    white-space: pre-line;
}

.no-reviews {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    background: var(--card-bg);
    border: 1px dashed var(--card-border);
    border-radius: var(--border-radius-md);
}

/* Footer Section */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--card-border);
    background-color: var(--bg-color);
    transition: background-color 0.5s ease;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-link:hover {
    color: var(--color-guarana);
}

/* Version mobile et adaptabilité */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 30px auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-badges {
        justify-content: center;
    }
    
    .carousel-slide {
        grid-template-columns: 1fr;
        padding: 50px 40px;
        gap: 32px;
        text-align: center;
    }
    
    .slide-specs {
        justify-content: center;
    }
    
    .avis-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Simplification sans hamburger pour rester vanilla et propre */
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .carousel-slide {
        padding: 40px 20px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn-prev {
        left: 5px;
    }
    
    .carousel-btn-next {
        right: 5px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
