@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

.carousel-slide {
    transition: all 0.7s cuefic-bezier(0.4, 0, 0.2, 1);
}

    .carousel-slide.active {
        transform: translateX(0);
        opacity: 1;
    }

    .carousel-slide.prev {
        transform: translateX(-100%);
        opacity: 0;
    }

    .carousel-slide.next {
        transform: translateX(100%);
        opacity: 0;
    }

.progress-bar {
    animation: progress 5s linear infinite;
}

@keyframes progress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.custom-shadow {
    box-shadow: 0 25px 50px -12px rgba(180, 83, 9, 0.25);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
}

.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.btn-hover {
    transition: all 0.3s ease;
}

    .btn-hover:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    }

.image-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}


.libertinus-math-regular {
    font-family: "Libertinus Math", system-ui;
    font-weight: 400;
    font-style: normal;
}

/* 
manager section style */

/* Custom animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes pulse-border {
    0%, 100% {
        border-color: #92400e;
    }

    50% {
        border-color: #d97706;
    }
}

/* Animation classes */
.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-pulse-border {
    animation: pulse-border 2s ease-in-out infinite;
}

/* Hover effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .hover-lift:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }

/* Button shimmer effect */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}

    .btn-shimmer::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s;
    }

    .btn-shimmer:hover::before {
        left: 100%;
    }

/* Image overlay effect */
.image-container {
    position: relative;
    overflow: hidden;
}

    .image-container::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, rgba(146, 64, 14, 0.1), rgba(217, 119, 6, 0.1));
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .image-container:hover::after {
        opacity: 1;
    }

    .image-container img {
        transition: transform 0.3s ease;
    }

    .image-container:hover img {
        transform: scale(1.05);
    }

/* Text highlight effect */
.highlight-text {
    position: relative;
    display: inline;
}

    .highlight-text::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #d97706, #f59e0b);
        transition: width 0.3s ease;
    }

    .highlight-text:hover::after {
        width: 100%;
    }

/* Scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

/* Border animation */
.animated-border {
    position: relative;
}

    .animated-border::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 2px;
        background: linear-gradient(to bottom, #92400e, #d97706, #f59e0b);
        animation: pulse-border 2s ease-in-out infinite;
    }

/* number section start here */

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out forwards;
    opacity: 0;
}

.animate-pulse-custom {
    animation: pulse 2s ease-in-out infinite;
}

/* Container styles */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Enhanced number card styles */
.number-card {
    background: linear-gradient(135deg, #ffffff 0%, #fefbf3 100%);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(217, 119, 6, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

    .number-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(217, 119, 6, 0.1), transparent);
        transition: left 0.6s ease;
    }

    .number-card:hover::before {
        left: 100%;
    }

    .number-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        border-color: rgba(217, 119, 6, 0.3);
    }

/* Number styling */
.number-display {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #92400e, #d97706, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
    font-family: 'Arial', sans-serif;
    line-height: 1;
}

    .number-display::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 3px;
        background: linear-gradient(90deg, #d97706, #f59e0b);
        border-radius: 2px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

.number-card:hover .number-display::after {
    opacity: 1;
}

/* Description styling */
.number-description {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

/* Icon styling */
.number-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.number-card:hover .number-icon {
    opacity: 1;
    transform: rotate(360deg) scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
        padding: 1rem;
    }

    .number-card {
        padding: 2rem 1.5rem;
    }

    .number-display {
        font-size: 2.5rem;
    }
}

/* Loading state */
.loading .number-display {
    background: linear-gradient(90deg, #e5e7eb, #f3f4f6, #e5e7eb);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Infinite scroll animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* Container styles */
.carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 2rem 0;
}

.carousel-track {
    display: flex;
    width: calc(200% + 2rem);
    animation: scroll 20s linear infinite;
}

    .carousel-track:hover {
        animation-play-state: paused;
    }

/* Logo item styles */
.logo-item {
    flex: 0 0 auto;
    margin: 0 1rem;
    padding: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    .logo-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        transition: left 0.6s ease;
    }

    .logo-item:hover::before {
        left: 100%;
    }

    .logo-item:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        border-color: rgba(217, 119, 6, 0.2);
    }

    .logo-item img {
        width: 120px;
        height: 80px;
        object-fit: contain;
        transition: all 0.3s ease;
        filter: grayscale(20%) opacity(0.8);
    }

    .logo-item:hover img {
        filter: grayscale(0%) opacity(1);
        transform: scale(1.1);
    }

/* Gradient overlays for seamless loop effect */
.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 10;
    pointer-events: none;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(254, 251, 243, 1), rgba(254, 251, 243, 0));
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(254, 251, 243, 1), rgba(254, 251, 243, 0));
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-item {
        margin: 0 0.5rem;
        padding: 0.75rem;
    }

        .logo-item img {
            width: 100px;
            height: 60px;
        }

    .carousel-track {
        animation-duration: 15s;
    }
}

/* Section title styling */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

    .section-title h2 {
        font-size: 2.5rem;
        font-weight: 700;
        background: linear-gradient(135deg, #92400e, #d97706, #f59e0b);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 1rem;
    }

    .section-title p {
        color: #6b7280;
        font-size: 1.1rem;
        max-width: 600px;
        margin: 0 auto;
    }

/* Decorative elements */
.decorative-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #d97706, #f59e0b);
    margin: 1rem auto;
}

/* You can optionally define this in your CSS if needed */
.nav-item {
    @apply flex items-center gap-2 rounded-xl font-semibold text-slate-700 transition-all duration-300;
}

.dropdown {
    @apply absolute top-full mt-1 left-1/2 -translate-x-1/2 w-56 bg-white shadow-lg ring-1 ring-black ring-opacity-5 rounded-md opacity-0 scale-95 -translate-y-2 group-hover:opacity-100 group-hover:scale-100 group-hover:translate-y-0 transition-all duration-300 ease-out z-50;
}

    .dropdown ul {
        @apply flex flex-col py-2;
    }

    .dropdown li {
        @apply px-4 py-2 hover:bg-gray-100 cursor-pointer;
    }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Gradient hover effect */

/* Mobile menu animations */


/* Dropdown animations for mobile */
.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

    .mobile-dropdown.open {
        max-height: 300px;
    }

/* Desktop dropdown enhancements */

/* Overlay for mobile menu */
.mobile-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .mobile-overlay.open {
        opacity: 1;
        visibility: visible;
    }

/* Import Google Fonts - Typographie académique */
@import url("https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+Pro:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700;800&display=swap");

/* Variables CSS pour design universitaire */
:root {
    --primary-color: #a04000; /* Nouvelle couleur principale */
    --secondary-color: #d95e00; /* Teinte plus claire */
    --accent-color: #7a3000; /* Teinte plus foncée */
    --dark-primary: #5c2500; /* Encore plus foncé */
    --light-primary: #ff8c00; /* Teinte très claire/accent */
    --primary-gradient: linear-gradient(135deg, #a04000 0%, #d95e00 100%);
    --secondary-gradient: linear-gradient(135deg, #7a3000 0%, #a04000 100%);
    --shadow-primary: 0 4px 20px rgba(160, 64, 0, 0.1);
    --shadow-elevated: 0 8px 30px rgba(160, 64, 0, 0.15);
    --border-color: #e2e8f0;
    --medium-gray: #64748b;
    --dark-navy: #1e293b;
}

/* Animations simples et professionnelles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        width: 0;
    }

    to {
        width: 120px;
    }
}

/* Nouvelle animation de flottement */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Animation de fond subtile */
@keyframes backgroundAnimation {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f8fafc 100%); /* Gradient plus complexe */
    background-size: 400% 400%; /* Taille du fond plus grande pour l'animation */
    animation: backgroundAnimation 15s ease infinite alternate; /* Animation lente et continue */
    min-height: 100vh;
    line-height: 1.7;
    color: #334155;
}

.container {
    max-width: 1200px;
    position: relative;
}

/* Titre principal académique */
h1 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.01em;
    position: relative;
    margin-bottom: 2rem;
}

    h1::after {
        content: "";
        position: absolute;
        bottom: -12px;
        left: 0;
        width: 120px;
        height: 3px;
        background: var(--primary-gradient);
        border-radius: 2px;
        animation: slideIn 1s ease-out;
    }



/* Articles avec design académique */
article {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: var(--shadow-primary);
    margin-bottom: 1.5rem;
}

    article::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--primary-gradient);
        border-radius: 8px 8px 0 0;
    }

    article:hover {
        transform: translateY(-4px) scale(1.005); /* Plus de soulèvement et léger zoom */
        box-shadow: 0 10px 35px rgba(160, 64, 0, 0.2); /* Ombre plus prononcée */
        border-color: var(--secondary-color);
    }

    article h2 {
        font-family: "Crimson Text", serif;
        font-weight: 600;
        color: var(--dark-navy);
        line-height: 1.5;
        transition: color 0.3s ease;
        font-size: 1.25rem;
    }

    article:hover h2 {
        color: var(--primary-color);
    }

/* Boutons académiques */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(160, 64, 0, 0.3);
    cursor: pointer;
}

    .btn-primary:hover {
        background: var(--secondary-gradient);
        transform: translateY(-2px) scale(1.02); /* Plus de soulèvement et léger zoom */
        box-shadow: 0 6px 16px rgba(160, 64, 0, 0.4); /* Ombre plus prononcée */
    }

/* Sidebar académique */
.sidebar-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-primary);
    position: relative;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite; /* Animation de flottement */
}

    .sidebar-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        border-radius: 8px 8px 0 0;
    }

    .sidebar-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-elevated);
    }

    .sidebar-card h3 {
        font-family: "Playfair Display", serif;
        font-weight: 600;
        font-size: 1.25rem;
        margin-bottom: 12px;
        color: white;
    }

    .sidebar-card p {
        font-weight: 400;
        opacity: 0.95;
        margin-bottom: 20px;
        line-height: 1.6;
        color: white;
    }

.sidebar-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease, background 0.4s ease; /* Ajout de la transition pour le fond */
    color: white;
    cursor: pointer;
}

    .sidebar-btn:hover {
        background: rgba(255, 255, 255, 0.4); /* Changement de couleur plus prononcé */
        transform: translateX(4px) scale(1.05); /* Léger zoom en plus du glissement */
    }

/* Couleurs académiques pour chaque section */
.galerie-card::before,
.galerie-card {
    background: var(--primary-gradient);
}

.eservices-card::before,
.eservices-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.emploi-card::before,
.emploi-card {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.incubateur-card::before,
.incubateur-card {
    background: linear-gradient(135deg, var(--dark-primary) 0%, var(--accent-color) 100%);
}

/* Formation ENSAS académique */
.formation-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-primary);
    transition: all 0.3s ease;
}

    .formation-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-elevated);
    }

.formation-title {
    font-family: "Playfair Display", serif;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.formation-item {
    padding: 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border-left: 3px solid transparent;
}

    .formation-item:hover {
        background: #f1f5f9;
        border-left-color: var(--primary-color);
        transform: translateX(8px) scale(1.01); /* Plus de glissement et léger zoom */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* Ajout d'une ombre subtile */
    }

.formation-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--light-primary) 0%, var(--secondary-color) 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

    .formation-icon svg {
        width: 24px;
        height: 24px;
        color: white; /* Icônes blanches sur fond coloré */
        transition: all 0.3s ease;
    }

.formation-item:hover .formation-icon {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    transform: scale(1.08); /* Zoom plus prononcé sur l'icône */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6); /* Effet de lueur */
}

    .formation-item:hover .formation-icon svg {
        color: white;
        transform: scale(1.1);
    }

    .formation-item:hover .formation-icon span {
        color: white;
    }

.formation-item h4 {
    font-family: "Crimson Text", serif;
    font-weight: 600;
    color: var(--dark-navy);
    font-size: 1rem;
    line-height: 1.4;
}

/* Pagination académique */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
}

    .pagination button {
        width: 40px;
        height: 40px;
        border-radius: 4px;
        border: 1px solid var(--border-color);
        background: white;
        color: var(--medium-gray);
        font-weight: 500;
        transition: all 0.3s ease;
        font-family: "Source Sans Pro", sans-serif;
        cursor: pointer;
    }

        .pagination button:hover,
        .pagination button.active {
            background: var(--primary-gradient);
            color: white;
            border-color: var(--primary-color);
            transform: translateY(-1px) scale(1.05); /* Ajout d'un léger zoom */
        }

/* Date badge académique */
.date-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--medium-gray);
}

/* Animation d'apparition */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive académique */
@media (max-width: 1024px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    h1::before {
        display: none;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
        text-align: center;
    }

        h1::after {
            left: 50%;
            transform: translateX(-50%);
        }

    article h2 {
        font-size: 1.1rem;
    }

    .sidebar-card {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: 1.875rem;
    }

    .formation-item {
        padding: 12px;
    }

    .formation-icon {
        width: 40px;
        height: 40px;
    }
}

/* États de focus pour l'accessibilité */
button:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Amélioration de la lisibilité */
p {
    color: #475569;
    line-height: 1.7;
}

/* Style pour les liens */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

    a:hover {
        color: var(--secondary-color);
        text-decoration:  underline;
    }


/* Basic Reset & Body Styles */
body {
    margin: 0;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* Modern font stack */
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6; /* Light background for the whole page */
}






/* style of  directeur start here  */
.hero-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(146, 64, 14, 0.1) 0%, transparent 50%), radial-gradient(circle at 75% 75%, rgba(146, 64, 14, 0.1) 0%, transparent 50%);
}

.text-gradient {
    background: linear-gradient(135deg, #92400e, #a3541a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

    .card-hover:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 25px 50px rgba(146, 64, 14, 0.2);
    }

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.slide-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

    .slide-in-left.visible,
    .slide-in-right.visible,
    .slide-in-up.visible {
        opacity: 1;
        transform: translate(0);
    }

.director-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 2px solid #92400e;
    position: relative;
    overflow: hidden;
}

    .director-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(146, 64, 14, 0.1), transparent);
        transition: left 0.6s;
    }

    .director-card:hover::before {
        left: 100%;
    }

.ornament {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #92400e, #a3541a, #92400e);
    margin: 0 auto;
    position: relative;
}

    .ornament::before,
    .ornament::after {
        content: '';
        position: absolute;
        width: 8px;
        height: 8px;
        background: #92400e;
        border-radius: 50%;
        top: -2px;
    }

    .ornament::before {
        left: -4px;
    }

    .ornament::after {
        right: -4px;
    }

.quote-mark {
    font-family: 'Crimson Text', serif;
    font-size: 120px;
    line-height: 1;
    color: #92400e;
    opacity: 0.15;
    position: absolute;
    top: -20px;
    left: -10px;
}

/* Hero Background with Building Image */
.hero-background {
    background-image: linear-gradient(135deg, rgba(146, 64, 14, 0.85) 0%, rgba(146, 64, 14, 0.75) 100%), url('https://hebbkx1anhila5yf.public.blob.vercel-storage.com/ensa-photos-Y4bXVd00dlXd9ogUTQKuQyIkXeP1Jd.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

    .hero-background::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
        pointer-events: none;
    }

.hero-content {
    position: relative;
    z-index: 10;
}

.text-shadow-strong {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.backdrop-blur-custom {
    backdrop-filter: blur(2px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
/* style of  directeur end here  */

/* the footer style start here */

body {
    margin: 0;
    padding: 0;
}

/* Style exact de l'image avec touches créatives */
.header-section {
    background: linear-gradient(135deg, #b45309, #92400e, #78350f);
    position: relative;
    overflow: hidden;
}

    /* Effet créatif : particules flottantes subtiles */
    .header-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 1px, transparent 1px), radial-gradient(circle at 70% 60%, rgba(255,255,255,0.08) 1px, transparent 1px), radial-gradient(circle at 90% 20%, rgba(255,255,255,0.06) 1px, transparent 1px);
        background-size: 100px 100px, 150px 150px, 200px 200px;
        animation: float-particles 20s linear infinite;
        pointer-events: none;
    }

@keyframes float-particles {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-20px);
    }
}

/* Background avec image et filtres */
.footer-main {
    position: relative;
    background-image: url('/placeholder.svg?height=800&width=1200');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

    /* Overlay avec filtres pour la lisibilité */
    .footer-main::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient( 135deg, rgba(31, 41, 55, 0.95) 0%, rgba(17, 24, 39, 0.9) 50%, rgba(15, 23, 42, 0.95) 100% );
        backdrop-filter: blur(1px);
        z-index: 1;
    }

    /* Pattern overlay pour plus de texture */
    .footer-main::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(circle at 25% 25%, rgba(180, 83, 9, 0.1) 0%, transparent 50%), radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.05) 0%, transparent 50%), linear-gradient(45deg, transparent 49%, rgba(255,255,255,0.02) 50%, transparent 51%);
        background-size: 200px 200px, 300px 300px, 20px 20px;
        z-index: 2;
        pointer-events: none;
    }

/* Assurer que le contenu soit au-dessus des overlays */
.footer-content {
    position: relative;
    z-index: 10;
}




/* Icônes de contact avec style amélioré pour le background image */
.contact-icon {
    background: rgba(75, 85, 99, 0.9);
    backdrop-filter: blur(10px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

    /* Effet créatif sur les icônes */
    .contact-icon::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(180, 83, 9, 0.3), transparent);
        transition: left 0.5s ease;
    }

.contact-item:hover .contact-icon {
    background: rgba(180, 83, 9, 0.95);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(180, 83, 9, 0.4);
}

    .contact-item:hover .contact-icon::before {
        left: 100%;
    }

/* Lignes orange sous les titres - style exact avec amélioration */
.section-title {
    position: relative;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 50px;
        height: 3px;
        background: linear-gradient(90deg, #b45309, #f97316);
        box-shadow: 0 2px 8px rgba(180, 83, 9, 0.4);
        transition: width 0.3s ease;
    }

    .section-title:hover::after {
        width: 80px;
    }

/* Liens avec effets créatifs améliorés */
.nav-link {
    color: rgba(156, 163, 175, 0.9);
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

    .nav-link::before {
        content: '';
        position: absolute;
        left: -10px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #b45309, #f97316);
        transition: width 0.3s ease;
        box-shadow: 0 0 8px rgba(180, 83, 9, 0.6);
    }

    .nav-link:hover {
        color: white;
        padding-left: 15px;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

        .nav-link:hover::before {
            width: 8px;
        }

/* Réseaux sociaux avec animations créatives améliorées */
.social-link {
    color: rgba(156, 163, 175, 0.9);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    padding: 6px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

    .social-link i {
        width: 20px;
        margin-right: 12px;
        transition: all 0.3s ease;
    }

    .social-link:hover {
        color: white;
        transform: translateX(5px);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

        .social-link:hover i {
            transform: scale(1.2);
            filter: drop-shadow(0 0 8px currentColor);
        }

        /* Couleurs spécifiques pour chaque réseau social avec glow */
        .social-link:hover.facebook {
            color: #1877f2;
            text-shadow: 0 0 15px rgba(24, 119, 242, 0.5);
        }

        .social-link:hover.instagram {
            color: #e4405f;
            text-shadow: 0 0 15px rgba(228, 64, 95, 0.5);
        }

        .social-link:hover.linkedin {
            color: #0077b5;
            text-shadow: 0 0 15px rgba(0, 119, 181, 0.5);
        }


/* Animation d'apparition créative */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

    .fade-in.delay-1 {
        animation-delay: 0.2s;
    }

    .fade-in.delay-2 {
        animation-delay: 0.4s;
    }

    .fade-in.delay-3 {
        animation-delay: 0.6s;
    }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet créatif sur le copyright avec background amélioré */
.copyright {
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 3rem;
}

    .copyright::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, transparent, #b45309, transparent);
        animation: slide 3s ease-in-out infinite;
    }

@keyframes slide {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Amélioration du texte pour la lisibilité */
.text-enhanced {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* Effet parallax subtil */
@media (min-width: 768px) {
    .footer-main {
        background-attachment: fixed;
    }
}
/* Add these styles to your CSS mobile */
.mobile-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

    .mobile-overlay.open {
        opacity: 1;
        visibility: visible;
    }

.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s;
}

    .mobile-menu.open {
        transform: translateX(0);
    }

.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

    .mobile-dropdown.open {
        max-height: 500px; /* Adjust based on your content */
    }

.hamburger.open .line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open .line2 {
    opacity: 0;
}

.hamburger.open .line3 {
    transform: rotate(-45deg) translate(5px, -5px);
}

.hamburger-line {
    transition: transform 0.3s, opacity 0.3s;
}
