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

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: #030712;
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

/* Arrière-plan animé fixe en fondu enchaîné couvrant tout le site */
.bg-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.bg-slide.active {
    opacity: 0.35;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(3,7,18,0.4) 0%, rgba(3,7,18,0.9) 100%);
    z-index: -1;
}

/* Conteneur Principal élargi pour supporter toutes les sections */
.main-container {
    width: 100%;
    max-width: 900px;
    padding: 40px 20px;
    z-index: 1;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Carte Glassmorphism de base */
.glass-card {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.wide-card {
    text-align: left;
}

.text-center {
    text-align: center;
}

.header-section .neon-icon {
    font-size: 3rem;
    color: #38bdf8;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
    margin-bottom: 15px;
}

.header-section h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.header-section h1 span {
    color: #38bdf8;
}

.header-section p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Zone de glisser-déposer */
.drop-zone {
    border: 2px dashed rgba(56, 189, 248, 0.4);
    border-radius: 16px;
    padding: 30px;
    background: rgba(30, 41, 59, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.05);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.drop-content i {
    font-size: 2.5rem;
    color: #38bdf8;
    margin-bottom: 12px;
}

.drop-content p {
    font-size: 0.95rem;
    color: #cbd5e1;
}

.drop-content span {
    color: #38bdf8;
    font-weight: 600;
}

.drop-content small {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 0.75rem;
}

/* Animation de l'icône et lueurs néons */
@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.8; text-shadow: 0 0 10px rgba(56, 189, 248, 0.5); }
    50% { transform: scale(1.08); opacity: 1; text-shadow: 0 0 25px rgba(56, 189, 248, 0.9), 0 0 40px rgba(37, 99, 235, 0.6); }
    100% { transform: scale(1); opacity: 0.8; text-shadow: 0 0 10px rgba(56, 189, 248, 0.5); }
}

.pulse-anim {
    animation: pulseGlow 2.5s infinite ease-in-out;
}

.neon-glow-icon {
    font-size: 2rem;
    color: #38bdf8;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.8));
    animation: pulseGlow 3s infinite ease-in-out;
}

.warning-icon {
    color: #f59e0b !important;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.8)) !important;
}

/* Barre de progression */
.progress-container {
    margin-top: 25px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 10px;
    height: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    transition: width 0.2s ease;
}

#progressText {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 20px;
    color: #fff;
    text-align: center;
}

/* Boîte de résultat */
.result-box {
    margin-top: 25px;
    text-align: left;
}

.result-box label {
    font-size: 0.8rem;
    color: #94a3b8;
    display: block;
    margin-bottom: 8px;
}

/* Conteneur d'aperçu dynamique du média */
.media-preview-container {
    margin-bottom: 15px;
    width: 100%;
    max-height: 180px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(3, 7, 18, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
}

.media-preview-container img,
.media-preview-container video {
    max-width: 100%;
    max-height: 164px;
    object-fit: contain;
    border-radius: 8px;
}

.media-preview-container audio {
    width: 100%;
    outline: none;
}

.file-icon-preview {
    font-size: 3rem;
    color: #38bdf8;
    padding: 20px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    background: rgba(3, 7, 18, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 10px;
    padding: 10px 14px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}

.neon-btn {
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    padding: 0 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.neon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

.download-preview-btn {
    display: block;
    margin-top: 12px;
    text-align: center;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid #38bdf8;
    border-radius: 10px;
    padding: 10px;
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.download-preview-btn:hover {
    background: rgba(56, 189, 248, 0.2);
}

/* --- Styles pour les Nouvelles Sections Détaillées --- */

.section-icon-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.section-icon-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
}

.center-title {
    justify-content: center;
    text-align: center;
}

.extended-text {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;
}

/* Grille pour le Guide d'Utilisation */
.steps-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.step-box {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-box:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.5);
}

.step-box h3 {
    font-size: 1.1rem;
    color: #38bdf8;
    margin-bottom: 10px;
}

.step-box p {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Grille pour Erreurs & Règles */
.rules-warning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.styled-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.styled-list li {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
}

.styled-list li::before {
    content: "•";
    color: #38bdf8;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -2px;
}

.styled-list li strong {
    color: #fff;
}

/* Boutons de liens politiques */
.policy-links-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.neon-link-btn {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 12px;
    padding: 12px 20px;
    color: #38bdf8;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.neon-link-btn:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
}

/* Grille des Témoignages Utilisateurs */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.testimonial-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.5);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #38bdf8;
}

.testimonial-header h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 4px;
}

.stars {
    color: #fbbf24;
    font-size: 0.8rem;
    display: flex;
    gap: 2px;
}

.testimonial-text {
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.6;
    font-style: italic;
}