/* ===================================
   Variables et Reset
   =================================== */
:root {
    --primary-color: #2d5016;
    --secondary-color: #4a7c2c;
    --accent-orange: #FF8C00;
    --accent-light-green: #6ba545;
    --accent-dark: #1a3009;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-dark: #2d3436;
    --text-light: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #2d5016 0%, #1a3009 100%);
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===================================
   Header et Logo
   =================================== */
.header {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--accent-orange);
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    animation: bounce 2s ease-in-out infinite;
}

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

.main-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-light);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    animation: fadeInDown 0.8s ease-out;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

/* ===================================
   Compte à rebours
   =================================== */
.countdown-container {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    margin: 20px auto;
    max-width: 500px;
    animation: pulse 2s ease-in-out infinite;
}

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

.countdown-label {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 10px 15px;
    min-width: 70px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.countdown-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.countdown-unit {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 5px;
}

/* ===================================
   Main Content
   =================================== */
.main-content {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-out;
}

/* ===================================
   Cartes Influenceurs - Slider
   =================================== */
.influencers-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.influencers-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 25px;
    padding: 20px 10px;
    margin-bottom: 40px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.influencers-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.influencer-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    animation: fadeInUp 0.6s ease-out;
    min-width: 320px;
    max-width: 320px;
    scroll-snap-align: center;
    flex-shrink: 0;
}

.influencer-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FF8C00, #6ba545);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: rotate 3s linear infinite;
}

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

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

.influencer-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 25px;
    text-align: center;
}

.influencer-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.influencer-handle {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 15px;
    font-weight: 500;
}

.btn-social {
    display: inline-block;
    background: linear-gradient(135deg, #2d5016, #4a7c2c);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-social:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(106, 165, 69, 0.6);
}

.btn-vote {
    width: 100%;
    background: linear-gradient(135deg, #FF8C00, #FF6500);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.5);
    font-family: 'Poppins', sans-serif;
}

.btn-vote:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.7);
}

.btn-vote:active {
    transform: scale(0.98);
}

/* ===================================
   Modal
   =================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 30px;
    padding: 40px 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease-out;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #c0392b;
    transform: rotate(90deg);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-align: center;
}

.modal-subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 25px;
    font-size: 1rem;
}

/* ===================================
   Formulaire
   =================================== */
.form-group {
    margin-bottom: 20px;
}

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

.form-group label i {
    margin-right: 8px;
    color: #FF8C00;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 15px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4a7c2c;
    box-shadow: 0 0 0 4px rgba(74, 124, 44, 0.15);
}

.form-info {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #4a7c2c, #2d5016);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(74, 124, 44, 0.5);
    font-family: 'Poppins', sans-serif;
}

.btn-submit:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(74, 124, 44, 0.7);
}

.btn-submit:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

/* ===================================
   Modal de succès
   =================================== */
.success-content {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.promo-box {
    background: linear-gradient(135deg, #FF8C00, #4a7c2c);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.4);
}

.promo-label {
    color: white;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

.promo-code {
    background: white;
    color: #FF8C00;
    font-size: 2.5rem;
    font-weight: 800;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 15px;
    letter-spacing: 3px;
    box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.1);
}

.btn-copy {
    background: white;
    color: #FF8C00;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-copy:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.results-info {
    color: #7f8c8d;
    margin-bottom: 25px;
    font-size: 1rem;
}

.btn-share {
    width: 100%;
    background: linear-gradient(135deg, #4a7c2c, #2d5016);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(74, 124, 44, 0.5);
    font-family: 'Poppins', sans-serif;
}

.btn-share:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(74, 124, 44, 0.7);
}

.btn-close-success {
    background: transparent;
    color: #7f8c8d;
    border: 2px solid #e1e8ed;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-close-success:hover {
    border-color: #7f8c8d;
    color: var(--text-dark);
}

/* ===================================
   Confettis
   =================================== */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #FF8C00;
    top: -10px;
    animation: fall linear forwards;
}

/* Couleurs variées pour les confettis TerraLED */
.confetti:nth-child(2n) {
    background: #4a7c2c;
}

.confetti:nth-child(3n) {
    background: #6ba545;
}

.confetti:nth-child(5n) {
    background: #FF8C00;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px 0;
    text-align: center;
    color: var(--text-light);
    margin-top: 40px;
}

.footer p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.footer-link a {
    color: #FF8C00;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-link a:hover {
    text-decoration: underline;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* ===================================
   Responsive
   =================================== */
/* ===================================
   Boutons Navigation Slider
   =================================== */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #4a7c2c;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-size: 1.5rem;
    color: #4a7c2c;
}

.slider-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.slider-nav.prev {
    left: 0;
}

.slider-nav.next {
    right: 0;
}

.slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Indicateurs de position */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot.active {
    background: #FF8C00;
    transform: scale(1.3);
    box-shadow: 0 3px 10px rgba(255, 140, 0, 0.5);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .main-title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .countdown-value {
        font-size: 1.5rem;
    }

    .countdown-item {
        min-width: 60px;
        padding: 8px 10px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .influencers-wrapper {
        padding: 0 20px;
    }

    .slider-nav {
        display: none; /* Masquer les flèches sur mobile, utiliser le swipe */
    }

    .influencer-card {
        min-width: 280px;
        max-width: 280px;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .promo-code {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 150px;
    }

    .main-title {
        font-size: 1.3rem;
    }

    .countdown-item {
        min-width: 55px;
        padding: 6px 8px;
    }

    .countdown-value {
        font-size: 1.3rem;
    }

    .countdown-unit {
        font-size: 0.6rem;
    }

    .influencers-wrapper {
        padding: 0 10px;
    }

    .influencer-card {
        min-width: 260px;
        max-width: 260px;
    }

    .card-image {
        height: 220px;
    }
}

/* ===================================
   Scrollbar personnalisée
   =================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
