/* Police Deuterium */
@font-face {
    font-family: 'Deuterium';
    src: url('../assets/fonts/Deuterium-Regular.woff2') format('woff2'),
         url('../assets/fonts/Deuterium-Regular.woff') format('woff'),
         url('../assets/fonts/Deuterium-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Deuterium';
    src: url('../assets/fonts/Deuterium-Bold.woff2') format('woff2'),
         url('../assets/fonts/Deuterium-Bold.woff') format('woff'),
         url('../assets/fonts/Deuterium-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Deuterium';
    src: url('../assets/fonts/Deuterium-Light.woff2') format('woff2'),
         url('../assets/fonts/Deuterium-Light.woff') format('woff'),
         url('../assets/fonts/Deuterium-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Deuterium';
    src: url('../assets/fonts/Deuterium-Medium.woff2') format('woff2'),
         url('../assets/fonts/Deuterium-Medium.woff') format('woff'),
         url('../assets/fonts/Deuterium-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Deuterium';
    src: url('../assets/fonts/Deuterium-SemiBold.woff2') format('woff2'),
         url('../assets/fonts/Deuterium-SemiBold.woff') format('woff'),
         url('../assets/fonts/Deuterium-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Reset et variables CSS */
:root {
    /* Couleurs de la palette */
    --color-dark-purple: #640053;
    --color-yellow-orange: #F59E0B;
    --color-blue: #3B82F6;
    --color-red: #EF4444;
    --color-pink: #EC4899;
    
    /* Couleurs par page */
    --color-home: var(--color-dark-purple);
    --color-histoire: var(--color-yellow-orange);
    --color-science: var(--color-blue);
    --color-cinema: var(--color-red);
    --color-hors-serie: var(--color-pink);
    --color-contact: #6B21A8;
    
    /* Couleurs de base */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-gray-light: #F5F5F5;
    --color-gray: #666666;
    --color-gray-dark: #333333;
    
    /* Typographie */
    --font-primary: 'Deuterium', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-large: 18px;
    --font-size-h1: 2.5rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.5rem;
    --font-size-h4: 1.25rem;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    
    /* Layout */
    --max-width: 1400px;
    --header-height: 70px;
    
    /* Polices pour le redesign Vidéo du moment - Toutes utilisent Deuterium */
    --font-playfair: var(--font-primary);
    --font-cinzel: var(--font-primary);
    --font-montserrat: var(--font-primary);
    
    /* Couleurs sophistiquées pour fonds */
    --color-sepia-deep: #6B4E3D;
    --color-sepia-medium: #8B6F47;
    --color-sepia-light: #A0826D;
    --color-gold-antique: #D4AF37;
    --color-gold-rich: #CD7F32;
    --color-bronze: #B87333;
    --color-bordeaux-deep: #722F37;
    --color-bordeaux-medium: #8B3E4A;
    --color-cream: #F5F5DC;
    --color-cream-warm: #FFF8DC;
    --color-parchment: #F5E6D3;
    --color-parchment-light: #F9F1E6;
    
    /* Ombres douces et diffuses */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-soft-lg: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-elegant: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 20px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-glow-gold: 0 0 20px rgba(212, 175, 55, 0.3), 0 4px 16px rgba(212, 175, 55, 0.2);
    
    /* Transitions élégantes */
    --transition-elegant: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-gray-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* Application globale de Deuterium à tous les éléments (sauf monospace pour code/admin) */
*,
*::before,
*::after {
    font-family: var(--font-primary);
}

/* S'assurer que tous les éléments de formulaire utilisent Deuterium */
input,
textarea,
select,
button,
label,
a,
span,
div,
p,
h1, h2, h3, h4, h5, h6,
li,
td,
th {
    font-family: var(--font-primary);
}

/* Exceptions pour les éléments de code/admin qui nécessitent monospace */
code,
pre,
.admin-code,
.admin-log {
    font-family: 'Courier New', monospace !important;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--color-black);
}

h1 {
    font-size: var(--font-size-h1);
}

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
}

h4 {
    font-size: var(--font-size-h4);
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: inherit;
}

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

/* Layout principal */
.main-content {
    min-height: calc(100vh - var(--header-height) - 200px);
    padding-top: var(--header-height);
}

/* Utilitaires */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

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

.fade-in {
    animation: fadeIn var(--transition-normal) ease-out;
}

/* Banner de consentement RGPD */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: var(--spacing-md) var(--spacing-lg);
    z-index: 10000;
    border-top: 3px solid var(--color-dark-purple);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.consent-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.consent-content p {
    margin: 0;
    color: var(--color-gray-dark);
    flex: 1;
    min-width: 200px;
}

.consent-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.consent-actions .btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    font-size: var(--font-size-base);
}

.consent-actions .btn-primary {
    background: var(--color-dark-purple);
    color: var(--color-white);
}

.consent-actions .btn-primary:hover {
    background: #5A189A;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(100, 0, 83, 0.3);
}

.consent-actions .btn-secondary {
    background: var(--color-gray-light);
    color: var(--color-gray-dark);
}

.consent-actions .btn-secondary:hover {
    background: var(--color-gray);
    color: var(--color-white);
}

@media (max-width: 768px) {
    .consent-banner {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .consent-actions {
        width: 100%;
        justify-content: center;
    }
    
    .consent-actions .btn {
        flex: 1;
        min-width: 120px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --font-size-h1: 2rem;
        --font-size-h2: 1.75rem;
        --font-size-h3: 1.25rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 3rem;
    }
}

