/**
 * ETIK.MEDIA - Styles principaux
 * Charte graphique : Verts et gris
 */

/* =====================================================
   Variables CSS
   ===================================================== */
:root {
    /* Couleurs principales - Verts */
    --vert-principal: #059669;      /* Emerald-600 */
    --vert-fonce: #047857;          /* Emerald-700 */
    --vert-moyen: #10b981;          /* Emerald-500 */
    --vert-clair: #34d399;          /* Emerald-400 */
    --vert-tres-clair: #d1fae5;     /* Emerald-100 */
    --vert-fond: #ecfdf5;           /* Emerald-50 */
    
    /* Couleurs secondaires - Gris */
    --gris-900: #111827;
    --gris-800: #1f2937;
    --gris-700: #374151;
    --gris-600: #4b5563;
    --gris-500: #6b7280;
    --gris-400: #9ca3af;
    --gris-300: #d1d5db;
    --gris-200: #e5e7eb;
    --gris-100: #f3f4f6;
    --gris-50: #f9fafb;
    
    /* Couleurs d'état */
    --rouge: #dc2626;
    --rouge-clair: #fef2f2;
    --orange: #ea580c;
    --orange-clair: #fff7ed;
    --bleu: #2563eb;
    --bleu-clair: #eff6ff;
    
    /* Typographie */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;
    
    /* Espacements */
    --container-max: 1200px;
    --container-padding: 1.5rem;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* =====================================================
   Reset et base
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    background: var(--gris-50);
    color: var(--gris-800);
    line-height: 1.6;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--vert-principal);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--vert-fonce);
}

/* =====================================================
   Layout
   ===================================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* =====================================================
   Header
   ===================================================== */
.site-header {
    background: white;
    border-bottom: 1px solid var(--gris-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-svg {
    width: 50px;
    height: 50px;
}

.logo-text-etik {
    font-family: var(--font-sans);
    font-size: 7px;
    font-weight: bold;
    fill: var(--gris-500);
}

.logo-text-dot {
    font-family: var(--font-sans);
    font-size: 7px;
    font-weight: bold;
    fill: #000;
}

.logo-text-media {
    font-family: var(--font-sans);
    font-size: 7px;
    font-weight: bold;
    fill: var(--vert-tres-clair);
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--gris-700);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.main-nav a:hover {
    background: var(--vert-fond);
    color: var(--vert-principal);
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
    background: linear-gradient(135deg, var(--vert-fond) 0%, white 100%);
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--gris-900);
}

.gradient-text {
    background: linear-gradient(135deg, var(--vert-principal), var(--vert-moyen));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gris-600);
    max-width: 600px;
    margin: 0 auto;
}

/* =====================================================
   Manifeste
   ===================================================== */
.manifeste {
    padding: 4rem 0;
    background: white;
}

.manifeste-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.manifeste-card {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    background: var(--gris-50);
    transition: var(--transition);
}

.manifeste-card:hover {
    background: var(--vert-fond);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.manifeste-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.manifeste-card h2 {
    color: var(--vert-principal);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.manifeste-card p {
    color: var(--gris-600);
    line-height: 1.8;
}

.manifeste-cta {
    text-align: center;
    padding: 2rem;
    background: var(--vert-fond);
    border-radius: 1rem;
    border-left: 4px solid var(--vert-principal);
}

.manifeste-important {
    font-size: 1.125rem;
    color: var(--gris-700);
}

/* =====================================================
   Stats
   ===================================================== */
.stats {
    padding: 3rem 0;
    background: var(--gris-100);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--vert-principal);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gris-600);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* =====================================================
   Vidéos
   ===================================================== */
.videos-jour {
    padding: 4rem 0;
    background: white;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--gris-900);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.video-card {
    background: var(--gris-50);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    overflow: hidden;
    background: var(--gris-300);
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.video-info {
    padding: 1rem;
}

.video-title {
    margin-bottom: 0.5rem;
}

.video-title a {
    color: var(--gris-900);
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-channel,
.video-author {
    color: var(--gris-600);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.video-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--gris-500);
}

.video-platform {
    background: var(--vert-fond);
    color: var(--vert-principal);
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
}

/* =====================================================
   Boutons
   ===================================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--vert-principal);
    color: white;
}

.btn-primary:hover {
    background: var(--vert-fonce);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--vert-moyen);
    color: white;
}

.btn-success:hover {
    background: var(--vert-principal);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--vert-principal);
    border: 2px solid var(--vert-principal);
}

.btn-outline:hover {
    background: var(--vert-principal);
    color: white;
}

.btn-danger {
    background: var(--rouge);
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
    color: white;
}

/* =====================================================
   CTA Section
   ===================================================== */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--vert-principal), var(--vert-moyen));
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta-section .btn-outline {
    border-color: white;
    color: white;
}

.cta-section .btn-outline:hover {
    background: white;
    color: var(--vert-principal);
}

/* =====================================================
   Footer
   ===================================================== */
.site-footer {
    background: var(--gris-900);
    color: var(--gris-300);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--gris-400);
}

.footer-section a:hover {
    color: var(--vert-clair);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gris-800);
    color: var(--gris-500);
}

/* =====================================================
   Flash Messages
   ===================================================== */
.flash-message {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.flash-success {
    background: var(--vert-fond);
    color: var(--vert-principal);
    border-left: 4px solid var(--vert-principal);
}

.flash-error {
    background: var(--rouge-clair);
    color: var(--rouge);
    border-left: 4px solid var(--rouge);
}

.flash-warning {
    background: var(--orange-clair);
    color: var(--orange);
    border-left: 4px solid var(--orange);
}

.flash-info {
    background: var(--bleu-clair);
    color: var(--bleu);
    border-left: 4px solid var(--bleu);
}

/* =====================================================
   Formulaires
   ===================================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gris-700);
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gris-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--vert-principal);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

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

.form-help {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--gris-600);
}

/* =====================================================
   Media Queries
   ===================================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .manifeste-grid {
        grid-template-columns: 1fr;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .main-nav {
        gap: 1rem;
    }
    
    .main-nav a {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
}

/* =====================================================
   Animations
   ===================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* =====================================================
   Utilities
   ===================================================== */
.text-center {
    text-align: center;
}

.no-content {
    text-align: center;
    padding: 3rem;
    color: var(--gris-500);
    font-style: italic;
}

.section-cta {
    text-align: center;
    margin-top: 2rem;
}

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
