/* =============================================
   VARIABLES CSS - PALETTE DE COULEURS
   ============================================= */
:root {
    /* Couleurs principales */
    --main-color: #002349;
    --main-color-second: rgb(255, 56, 56);
    --main-color-yellow: #FFCB00;
    --main-color-bg: #f5f9fb;
    --main-red: rgb(255, 56, 56);
    --main-red-opacity: rgba(255, 213, 213, 0.2);
    --footer-background: #001731;

    /* Couleurs de bordure */
    --border-color: #e9e9e9;

    /* Nuances de gris */
    --color-f5: #f5f5f5;
    --color-f7: #f7f7f7;
    --color-db: #dbdbdb;
    --color-eb: #ebebeb;
    --color-9b: #bbbbbb;
    --text-color: #3F5561;
    --text-dark: #1b1b1b;

    /* Couleurs de texte */
    --text-opaque: #d4d4d4;
    --bottom: #dee2e6;

    /* Blanc avec opacités */
    --white: #ffffff;
    --white-1: rgba(255, 255, 255, 0.1);
    --white-2: rgba(255, 255, 255, 0.2);
    --white-3: rgba(255, 255, 255, 0.3);
    --white-4: rgba(255, 255, 255, 0.4);
    --white-5: rgba(255, 255, 255, 0.5);
    --white-6: rgba(255, 255, 255, 0.6);
    --white-7: rgba(255, 255, 255, 0.7);
    --white-8: rgba(255, 255, 255, 0.8);
    --white-9: rgba(255, 255, 255, 0.9);

    /* Noir avec opacités */
    --dark-1: rgba(0, 0, 0, 0.1);
    --dark-2: rgba(0, 0, 0, 0.2);
    --dark-3: rgba(0, 0, 0, 0.3);
    --dark-4: rgba(0, 0, 0, 0.4);
    --dark-5: rgba(0, 0, 0, 0.5);
    --dark-6: rgba(0, 0, 0, 0.6);
    --dark-7: rgba(0, 0, 0, 0.7);
    --dark-8: rgba(0, 0, 0, 0.8);
    --dark-9: rgba(0, 0, 0, 0.9);
    --dark-other: rgba(44, 44, 44, 0.1);

    /* Effets */
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 4px 20px rgba(255, 56, 56, 0.2);

    /* Typographie */
    --font-family: 'Montserrat', sans-serif;
    --font-family-dancing: 'Dancing Script', cursive;
    --font-family-freight: "freight-big-pro", serif;

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* =============================================
   RESET & BASE STYLES
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--main-color);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

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

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--main-color-bg);
}

/* =============================================
   TYPOGRAPHY UTILITIES
   ============================================= */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--main-color-second);
    margin-bottom: 10px;
    position: relative;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--main-color-second);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--main-color);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}

.highlight {
    color: var(--main-color-second);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 10px;
}

.btn-primary {
    background-color: var(--main-color-second);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background-color: var(--main-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(255, 56, 56, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: var(--main-color);
    color: var(--white);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background-color: var(--main-red-opacity);
    transform: translateY(-3px);
}


/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    padding: 150px 0 80px;
    background: linear-gradient(rgba(0, 35, 73, 0.9), rgba(0, 35, 73, 0.8)), 
                url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--main-color), transparent);
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background-color: var(--main-color-second);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--white-8);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 80px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--main-color-yellow);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    opacity: 0.9;
}

/* =============================================
   PRÉSENTATION SECTION
   ============================================= */
.presentation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.presentation-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--main-color);
}

.domaines-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.domaine-item {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.domaine-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--main-color-second);
}

.domaine-icon {
    width: 60px;
    height: 60px;
    background-color: var(--main-red-opacity);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--main-color-second);
    font-size: 24px;
}

.domaine-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--main-color);
}

.domaine-item p {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 0;
}

.presentation-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-frame img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.image-frame:hover img {
    transform: scale(1.05);
}

.image-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--main-color-second);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
}

/* =============================================
   FILIÈRES SECTION
   ============================================= */
.filieres-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.filiere-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.filiere-header {
    background: var(--main-color);
    padding: 30px;
    color: var(--white);
    text-align: center;
}

.filiere-icon {
    width: 70px;
    height: 70px;
    background-color: var(--white-2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
}

.filiere-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--white);
}

.filiere-content {
    padding: 30px;
}

.filiere-description {
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.7;
}

.filiere-details {
    margin-bottom: 25px;
}

.filiere-details h4 {
    font-size: 1.1rem;
    color: var(--main-color);
    margin-bottom: 15px;
}

.filiere-details ul {
    margin-bottom: 0;
}

.filiere-details li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-color);
}

.filiere-details li i {
    color: var(--main-color-second);
    font-size: 12px;
}

/* Tableau de comparaison */
.comparaison-table {
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.comparaison-table h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--main-color);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--main-color);
    color: var(--white);
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

tbody tr {
    border-bottom: 1px solid var(--border-color);
}

tbody tr:nth-child(even) {
    background-color: var(--main-color-bg);
}

td {
    padding: 15px;
    color: var(--text-color);
}

/* =============================================
   FORMATION SECTION
   ============================================= */
.formation-tabs {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
}

.tabs-header {
    display: flex;
    background-color: var(--main-color-bg);
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-btn:hover {
    color: var(--main-color-second);
    background-color: var(--white-2);
}

.tab-btn.active {
    color: var(--main-color-second);
    background-color: var(--white);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--main-color-second);
}

.tabs-content {
    padding: 40px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

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

.cycle-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--main-color);
}

.cycle-duration {
    color: var(--main-color-second);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 14px;
}

.cycle-content p {
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.7;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.module-category {
    background-color: var(--main-color-bg);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--main-color-second);
}

.module-category h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--main-color);
}

.module-category ul {
    margin-bottom: 0;
}

.module-category li {
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 14px;
    padding-left: 20px;
    position: relative;
}

.module-category li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--main-color-second);
    font-size: 18px;
}

.formation-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    background-color: var(--main-red-opacity);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color-second);
    font-size: 24px;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--main-color-second);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

/* =============================================
   LABORATOIRES SECTION
   ============================================= */
.laboratoires-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.lab-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.lab-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.lab-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.lab-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.lab-status {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--main-color-second);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lab-status.warning {
    background-color: var(--main-color-yellow);
    color: var(--main-color);
}

.lab-content {
    padding: 25px;
}

.lab-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--main-color);
}

.lab-content p {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 14px;
}

.lab-equipment {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lab-equipment span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--main-color-second);
}

/* =============================================
   ÉQUIPE SECTION
   ============================================= */
.equipe-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.membre-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.membre-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.membre-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.membre-social {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}

.membre-social a {
    width: 35px;
    height: 35px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    font-size: 14px;
    transition: var(--transition);
}

.membre-social a:hover {
    background-color: var(--main-color-second);
    color: var(--white);
}

.membre-info {
    padding: 25px;
}

.membre-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--main-color);
}

.membre-title {
    color: var(--main-color-second);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
}

.membre-specialite {
    color: var(--text-color);
    font-size: 12px;
    margin-bottom: 15px;
    font-style: italic;
}

.membre-bio {
    font-size: 13px;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.5;
}

.membre-cours {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cours-tag {
    background-color: var(--main-red-opacity);
    color: var(--main-color-second);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.equipe-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.equipe-stat {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.equipe-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--main-color-second);
    margin-bottom: 5px;
}

.equipe-stat .stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

/* =============================================
   ACTUALITÉS SECTION
   ============================================= */
.actualites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.actualite-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.actualite-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.actualite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.actualite-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--main-color-second);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.actualite-content {
    padding: 25px;
}

.actualite-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--main-color-second);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.actualite-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--main-color);
    line-height: 1.4;
}

.actualite-content p {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 14px;
}

.actualite-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--main-color-second);
    font-weight: 600;
    font-size: 14px;
}

.actualite-link:hover {
    gap: 12px;
}

.actualites-archive {
    text-align: center;
    margin-top: 50px;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info .section-header {
    text-align: left;
}

.contact-info .section-subtitle::after {
    left: 0;
    transform: none;
}

.contact-details {
    margin-top: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--main-red-opacity);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color-second);
    font-size: 20px;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--main-color);
}

.contact-text p {
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 0;
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--main-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: var(--font-family);
    font-size: 15px;
    color: var(--text-color);
    background-color: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--main-color-second);
    box-shadow: 0 0 0 3px var(--main-red-opacity);
}

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

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background-color: var(--footer-background);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--main-color-second);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo .logo-img {
    background: linear-gradient(135deg, var(--main-color-second), var(--main-color-yellow));
}

.footer-logo .logo-text .university {
    color: var(--white-8);
}

.footer-logo .logo-text .department {
    color: var(--white);
}

.footer-description {
    color: var(--white-7);
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: var(--white-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--main-color-second);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white-7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--main-color-second);
    gap: 15px;
}

.newsletter-form {
    display: flex;
    margin: 20px 0;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 8px 0 0 8px;
    background-color: var(--white-1);
    color: var(--white);
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: var(--white-5);
}

.newsletter-form button {
    width: 50px;
    background-color: var(--main-color-second);
    color: var(--white);
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--main-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white-7);
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-contact p i {
    color: var(--main-color-second);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--white-1);
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: var(--white-6);
    font-size: 14px;
}

.footer-policy {
    display: flex;
    gap: 20px;
}

.footer-policy a {
    color: var(--white-6);
    font-size: 14px;
    transition: var(--transition);
}

.footer-policy a:hover {
    color: var(--main-color-second);
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--main-color-second);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-primary);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--main-color);
    transform: translateY(-5px);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .equipe-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .presentation-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .filieres-grid,
    .equipe-grid,
    .laboratoires-grid,
    .actualites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .formation-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .stat-item {
        min-width: 120px;
    }
    
    .filieres-grid,
    .equipe-grid,
    .laboratoires-grid,
    .actualites-grid {
        grid-template-columns: 1fr;
    }
    
    .domaines-grid {
        grid-template-columns: 1fr;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .comparaison-table {
        overflow-x: auto;
    }
    
    table {
        min-width: 600px;
    }
    
    .equipe-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-policy {
        justify-content: center;
    }
    
    .tabs-header {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .formation-stats {
        grid-template-columns: 1fr;
    }
}