/* ============================================
   DATAV - SCIENCES PO EDITION
   Charte graphique institutionnelle
   ============================================ */

:root {
    /* ===== COULEURS SCIENCES PO ===== */
    --sciencespo-red: #E6142D;
    --sciencespo-red-dark: #C81E2C;
    --sciencespo-red-light: #FF4858;

    --sciencespo-navy: #1E2A44;
    --sciencespo-navy-light: #2C3E50;

    --sciencespo-gray-dark: #333333;
    --sciencespo-gray: #666666;
    --sciencespo-gray-light: #E8E8E8;
    --sciencespo-gray-ultralight: #F8F9FA;

    /* ===== TYPOGRAPHIE ===== */
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;

    /* ===== ESPACEMENTS ===== */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* ===== OMBRES ===== */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);

    /* ===== TRANSITIONS ===== */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    /* ===== BORDURES ===== */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

body {
    font-family: var(--font-primary);
    color: var(--sciencespo-gray-dark);
    background-color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--sciencespo-navy);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

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

a:hover {
    color: var(--sciencespo-red-dark);
}

/* ============================================
   NAVBAR SCIENCES PO
   ============================================ */

.navbar {
    background: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    border-bottom: 3px solid var(--sciencespo-red);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--sciencespo-navy) !important;
    transition: var(--transition-fast);
}

.navbar-brand img {
    height: 32px;
    width: auto;
}

.navbar-brand:hover {
    opacity: 0.85;
}

.navbar-nav .nav-link {
    color: var(--sciencespo-navy) !important;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition-fast);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--sciencespo-red);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
    color: var(--sciencespo-red) !important;
}

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

.navbar-nav .nav-link.active {
    color: var(--sciencespo-red) !important;
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* ============================================
   FOOTER SCIENCES PO - FULLWIDTH BLACK
   À AJOUTER À LA FIN DE base.css
   ============================================ */

.footer-sciencespo {
    background-color: #2b2b2b !important;
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-logo {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

.footer-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* ===== SOCIAL ICONS ===== */
.footer-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-size: 1.25rem;
    transition: all 0.25s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    background-color: var(--sciencespo-red, #E6142D);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(230, 20, 45, 0.4);
}


/* Copyright */
.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Bordure séparateur */
.border-secondary {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .footer-sciencespo {
        padding: 3rem 0 1.5rem;
    }

    .footer-logo {
        font-size: 1.75rem;
    }

    .footer-section {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .footer-social-link {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .footer-logo {
        font-size: 1.5rem;
    }

    .footer-text {
        font-size: 0.8rem;
    }
}
/* ============================================
   CONTAINERS
   ============================================ */

.container,
.container-fluid {
    padding-left: 20px;
    padding-right: 20px;
}

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

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
    background: linear-gradient(135deg, var(--sciencespo-navy) 0%, var(--sciencespo-navy-light) 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
    border-bottom: 4px solid var(--sciencespo-red);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(230, 20, 45, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-header h1 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-header .subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ============================================
   BUTTONS SCIENCES PO
   ============================================ */

.btn {
    border-radius: var(--border-radius-md);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    transition: var(--transition-normal);
    border: none;
    font-size: 1rem;
}

.btn-primary,
.btn-outline-primary {
    background: var(--sciencespo-red);
    border: 2px solid var(--sciencespo-red);
    color: white;
}

.btn-primary:hover,
.btn-outline-primary:hover {
    background: var(--sciencespo-red-dark);
    border-color: var(--sciencespo-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 20, 45, 0.3);
}

.btn-outline-primary {
    background: transparent;
    color: var(--sciencespo-red);
}

.btn-outline-primary:hover {
    background: var(--sciencespo-red);
    color: white;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
}

/* ============================================
   FORMS SCIENCES PO
   ============================================ */

.form-select,
.form-control {
    border-radius: var(--border-radius-md);
    border: 2px solid var(--sciencespo-gray-light);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition-normal);
    color: var(--sciencespo-gray-dark);
}

.form-select:focus,
.form-control:focus {
    border-color: var(--sciencespo-red);
    box-shadow: 0 0 0 0.25rem rgba(230, 20, 45, 0.15);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--sciencespo-navy);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--sciencespo-gray-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--sciencespo-red);
}

.card-title {
    color: var(--sciencespo-navy);
    font-weight: 700;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-sciencespo {
    color: var(--sciencespo-red) !important;
}

.bg-sciencespo {
    background-color: var(--sciencespo-red) !important;
}

.border-sciencespo {
    border-color: var(--sciencespo-red) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        font-size: 1.25rem !important;
    }

    .navbar-brand img {
        height: 24px;
    }

    .page-header {
        padding: 3rem 0 2rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

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

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

.slide-in {
    animation: slideIn 0.6s ease-out;
}