/* Apropos Page Specific Styles */

/* Additional CSS variables for apropos page */
:root {
    --color-vibrant-green: #10B981;
    --color-vibrant-orange: #F59E0B;
}

/* Hero Section */
.hero-apropos {
    background: linear-gradient(rgba(13, 33, 73, 0.9), rgba(0, 90, 158, 0.7)), url('https://images.pexels.com/photos/3771077/pexels-photo-3771077.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    color: white;
    padding: var(--spacing-xxl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 50% 20px;
    border-bottom-right-radius: 50% 20px;
    box-shadow: inset 0 -10px 30px rgba(0, 0, 0, 0.3);
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-apropos h1 {
    color: white;
    font-size: 4.5rem;
    margin-bottom: var(--spacing-m);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
    animation: fadeInDown 1s ease-out;
}

.hero-apropos p {
    font-size: 1.5rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

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

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

/* Intro Section */
.intro-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-background);
    position: relative;
    z-index: 1;
    margin-top: -80px;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    margin-left: var(--spacing-l);
    margin-right: var(--spacing-l);
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.intro-section.hidden {
    opacity: 0;
    transform: translateY(50px);
}

.intro-section-content {
    flex: 2;
    padding-right: var(--spacing-l);
}

.intro-section-content h2 {
    font-size: 2.8rem;
    margin-bottom: var(--spacing-m);
    color: var(--color-primary-dark);
    position: relative;
    padding-bottom: var(--spacing-s);
}

.intro-section-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.intro-section-content p {
    margin-bottom: var(--spacing-m);
    font-size: 1.1rem;
    color: var(--color-text-dark);
}

.intro-section-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-section-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.intro-section-image img:hover {
    transform: scale(1.02);
}

/* Tiles Navigation Section */
.tiles-navigation-section {
    background-color: var(--color-background-alt);
    padding: var(--spacing-xl) 0;
}

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-m);
    padding: 0 var(--spacing-l);
}

.tile-nav-card {
    background-color: var(--color-background);
    border-radius: var(--radius);
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.08);
    padding: var(--spacing-m);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-out, background-color 0.3s ease-out, box-shadow 0.3s ease-out;
    cursor: pointer;
    min-height: 140px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.tile-nav-card .tile-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-s);
    color: var(--color-primary-blue);
    transition: transform 0.4s ease-in-out, color 0.4s ease-in-out;
}

.tile-nav-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary-dark);
    transition: transform 0.3s ease-out, color 0.3s ease-out;
}

.tile-nav-card p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    transition: transform 0.3s ease-out, color 0.3s ease-out;
    opacity: 0.8;
}

.tile-nav-card:hover {
    transform: rotateY(10deg) rotateX(-5deg) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.tile-nav-card:hover .tile-icon {
    transform: rotate(360deg) scale(1.2);
    color: white;
}

.tile-nav-card:nth-child(odd):hover {
    background-color: var(--color-vibrant-green);
}

.tile-nav-card:nth-child(even):hover {
    background-color: var(--color-vibrant-orange);
}

.tile-nav-card:nth-child(3n):hover {
    background-color: var(--color-primary-blue);
}

.tile-nav-card:hover h3,
.tile-nav-card:hover p {
    transform: translateY(-5px);
    color: white;
}

/* Detailed Sections */
.detailed-section {
    background-color: var(--color-background);
    padding: var(--spacing-xxl) var(--spacing-l);
    box-shadow: var(--shadow);
    margin-bottom: var(--spacing-xxl);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.detailed-section.hidden {
    opacity: 0;
    transform: translateY(50px);
}

.detailed-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background-color: var(--color-primary-blue);
    opacity: 0.05;
    border-bottom-right-radius: 100%;
}

.detailed-section:nth-of-type(odd)::before {
    background-color: var(--color-vibrant-orange);
}

.detailed-section:nth-of-type(even)::before {
    background-color: var(--color-vibrant-green);
}

.detailed-section .section-title {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-l);
    color: var(--color-primary-dark);
    position: relative;
    padding-left: var(--spacing-m);
}

.detailed-section .section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 5px;
    height: 100%;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.detailed-section:nth-of-type(even) .section-title::after {
    background-color: var(--color-primary-blue);
}

.detailed-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-m);
    color: var(--color-text-dark);
}

/* Doyen Profile */
.doyen-profile {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: var(--spacing-xl);
    background-color: var(--color-background-alt);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: var(--spacing-xl);
    gap: var(--spacing-xl);
}

.doyen-profile img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--color-accent);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 0;
}

.doyen-profile > div {
    flex-grow: 1;
}

.doyen-profile h3 {
    color: var(--color-primary-blue);
    font-size: 2rem;
    margin-bottom: var(--spacing-s);
    text-align: left;
}

.doyen-profile p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-dark);
    max-width: none;
    font-family: 'Caveat', cursive;
    font-weight: 400;
}

/* Department Cards */
.department-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-l);
    margin-top: var(--spacing-xl);
}

.department-card-modern {
    background-color: var(--color-background-alt) !important;
    padding: var(--spacing-m);
    border-radius: var(--radius);
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--color-primary-blue);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.department-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-left-color: var(--color-vibrant-green);
}

.department-card-modern h3 {
    color: var(--color-primary-dark);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-s);
}

.department-card-modern p {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* Buttons */
.button-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--color-vibrant-green);
    padding: 12px var(--spacing-l);
    border-radius: var(--radius);
    font-weight: 700;
    border: 2px solid var(--color-vibrant-green);
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    margin-top: var(--spacing-m);
}

.button-secondary:hover {
    background-color: var(--color-vibrant-green);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.detailed-section a.button-primary,
.detailed-section a.button-secondary {
    margin-top: var(--spacing-xl);
}

/* Numbers Section */
/* --- Section La Fac en Chiffres (numbers-section) --- */
.numbers-section {
    background: linear-gradient(135deg, #0D2149 0%, #1a3a60 100%);
    color: white;
    padding: 64px 0 32px 0;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-left: 0;
    margin-right: 0;
    box-shadow: 0 15px 50px rgba(0,0,0,0.7);
    text-align: center;
    perspective: 1000px;
}

.numbers-section::before,
.numbers-section::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
    z-index: 0;
    animation: rotateAndScaleBg 25s linear infinite;
}

.numbers-section::before {
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    border-radius: 40% 60% 70% 30% / 60% 40% 40% 60%;
    transform: scale(0.9) rotate(0deg);
    opacity: 0.03;
    animation-delay: 0s;
}

.numbers-section::after {
    bottom: -20%;
    right: -20%;
    width: 120%;
    height: 120%;
    border-radius: 30% 70% 50% 50% / 50% 50% 70% 30%;
    transform: scale(1.1) rotate(180deg);
    opacity: 0.02;
    animation-delay: 10s;
}

@keyframes rotateAndScaleBg {
    0% {
        transform: rotate(0deg) scale(0.9);
    }
    50% {
        transform: rotate(180deg) scale(1.05);
    }
    100% {
        transform: rotate(360deg) scale(0.9);
    }
}

.numbers-section .section-title {
    color: white;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6);
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
    font-size: 3rem;
    font-family: 'Lora', serif;
    font-weight: 700;
}

.stats-grid-dashboard {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    padding: 0 0 24px 0;
    justify-items: center;
    align-items: center;
}

.stat-card-dashboard {
    background: rgba(255,255,255,0.10);
    border-radius: 18px;
    min-width: 220px;
    min-height: 140px;
    max-width: 240px;
    max-height: 160px;
    width: 100%;
    height: 100%;
    box-shadow: 0 4px 18px 0 rgba(0,0,0,0.22);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 1.5px solid rgba(255,255,255,0.13);
    transition: box-shadow 0.3s, background 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card-dashboard:hover {
    background: linear-gradient(120deg, rgba(16,185,129,0.13) 0%, rgba(0,90,158,0.13) 100%);
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.32), 0 0 0 6px rgba(245,158,11,0.10);
    transform: translateY(-8px) scale(1.04);
    border-color: rgba(245,158,11,0.22);
}

/* Couleurs de fond différentes au survol pour chaque carte */
.stat-card-dashboard:nth-child(1):hover { background: linear-gradient(120deg, #f59e0b 0%, #fbbf24 100%); }
.stat-card-dashboard:nth-child(2):hover { background: linear-gradient(120deg, #10b981 0%, #38bdf8 100%); }
.stat-card-dashboard:nth-child(3):hover { background: linear-gradient(120deg, #2563eb 0%, #60a5fa 100%); }
.stat-card-dashboard:nth-child(4):hover { background: linear-gradient(120deg, #f59e0b 0%, #fbbf24 100%); }
.stat-card-dashboard:nth-child(5):hover { background: linear-gradient(120deg, #10b981 0%, #38bdf8 100%); }
.stat-card-dashboard:nth-child(6):hover { background: linear-gradient(120deg, #2563eb 0%, #60a5fa 100%); }
.stat-card-dashboard:nth-child(7):hover { background: linear-gradient(120deg, #f59e0b 0%, #fbbf24 100%); }
.stat-card-dashboard:nth-child(8):hover { background: linear-gradient(120deg, #10b981 0%, #38bdf8 100%); }
.stat-card-dashboard:nth-child(9):hover { background: linear-gradient(120deg, #2563eb 0%, #60a5fa 100%); }
.stat-card-dashboard:nth-child(10):hover { background: linear-gradient(120deg, #f59e0b 0%, #fbbf24 100%); }
.stat-card-dashboard:nth-child(11):hover { background: linear-gradient(120deg, #10b981 0%, #38bdf8 100%); }
.stat-card-dashboard:nth-child(12):hover { background: linear-gradient(120deg, #2563eb 0%, #60a5fa 100%); }
.stat-card-dashboard:nth-child(13):hover { background: linear-gradient(120deg, #f59e0b 0%, #fbbf24 100%); }
.stat-card-dashboard:nth-child(14):hover { background: linear-gradient(120deg, #10b981 0%, #38bdf8 100%); }
.stat-card-dashboard:nth-child(15):hover { background: linear-gradient(120deg, #2563eb 0%, #60a5fa 100%); }

.stat-card-dashboard .icon-dashboard {
    font-size: 2.5rem;
    margin-bottom: 10px;
    transition: transform 0.3s, filter 0.3s;
}

/* Couleurs d’icônes individuelles pour chaque carte chiffres */
.stat-card-dashboard:nth-child(1) .icon-dashboard { color: #f59e0b; background: none; -webkit-text-fill-color: #f59e0b; }
.stat-card-dashboard:nth-child(2) .icon-dashboard { color: #10b981; background: none; -webkit-text-fill-color: #10b981; }
.stat-card-dashboard:nth-child(3) .icon-dashboard { color: #2563eb; background: none; -webkit-text-fill-color: #2563eb; }
.stat-card-dashboard:nth-child(4) .icon-dashboard { color: #f59e0b; background: none; -webkit-text-fill-color: #f59e0b; }
.stat-card-dashboard:nth-child(5) .icon-dashboard { color: #0891b2; background: none; -webkit-text-fill-color: #0891b2; }
.stat-card-dashboard:nth-child(6) .icon-dashboard { color: #3b82f6; background: none; -webkit-text-fill-color: #3b82f6; }
.stat-card-dashboard:nth-child(7) .icon-dashboard { color: #f59e0b; background: none; -webkit-text-fill-color: #f59e0b; }
.stat-card-dashboard:nth-child(8) .icon-dashboard { color: #10b981; background: none; -webkit-text-fill-color: #10b981; }
.stat-card-dashboard:nth-child(9) .icon-dashboard { color: #38bdf8; background: none; -webkit-text-fill-color: #38bdf8; }
.stat-card-dashboard:nth-child(10) .icon-dashboard { color: #f59e0b; background: none; -webkit-text-fill-color: #f59e0b; }
.stat-card-dashboard:nth-child(11) .icon-dashboard { color: #10b981; background: none; -webkit-text-fill-color: #10b981; }
.stat-card-dashboard:nth-child(12) .icon-dashboard { color: #3b82f6; background: none; -webkit-text-fill-color: #3b82f6; }
.stat-card-dashboard:nth-child(13) .icon-dashboard { color: #f59e0b; background: none; -webkit-text-fill-color: #f59e0b; }
.stat-card-dashboard:nth-child(14) .icon-dashboard { color: #0891b2; background: none; -webkit-text-fill-color: #0891b2; }
.stat-card-dashboard:nth-child(15) .icon-dashboard { color: #3b82f6; background: none; -webkit-text-fill-color: #3b82f6; }

.stat-card-dashboard:hover .icon-dashboard {
    transform: scale(1.15) rotateY(8deg);
    filter: drop-shadow(0 0 10px #fff8);
}

.stat-card-dashboard .number {
    font-family: 'Lora', serif;
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    line-height: 1;
    text-shadow: 0 3px 10px rgba(0,0,0,0.7);
    display: block;
    margin-bottom: 6px;
}

.stat-card-dashboard .label {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255,255,255,0.92);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

@media(max-width: 1200px) {
    .stats-grid-dashboard { grid-template-columns: repeat(4, 1fr); }
}
@media(max-width: 992px) {
    .stats-grid-dashboard { grid-template-columns: repeat(3, 1fr); }
    .stat-card-dashboard { min-width: 160px; min-height: 110px; max-width: 200px; max-height: 120px; }
    .stat-card-dashboard .number { font-size: 2.1rem; }
    .stat-card-dashboard .icon-dashboard { font-size: 1.7rem; }
}
@media(max-width: 768px) {
    .stats-grid-dashboard { grid-template-columns: repeat(2, 1fr); }
    .stat-card-dashboard { min-width: 120px; min-height: 90px; max-width: 160px; max-height: 100px; }
    .stat-card-dashboard .number { font-size: 1.5rem; }
    .stat-card-dashboard .icon-dashboard { font-size: 1.2rem; }
}
@media(max-width: 480px) {
    .stats-grid-dashboard { grid-template-columns: 1fr; }
    .stat-card-dashboard { min-width: 100px; min-height: 70px; max-width: 100%; max-height: 100px; }
}

/* Return to Top Button */
.return-to-top-btn {
    display: flex;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    bottom: var(--spacing-m);
    right: var(--spacing-m);
    background-color: var(--color-primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    z-index: 10;
}

.return-to-top-btn:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

.return-to-top-btn.show {
    opacity: 1;
    pointer-events: auto;
}

/* Subsection Styles */
.subsection-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--color-primary-blue);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-l);
    font-weight: 600;
    font-family: var(--font-body);
}

.partner-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-xl);
    align-items: center;
    margin-top: var(--spacing-l);
}

.partner-logo-item {
    text-align: center;
}

.partner-logo-item img {
    max-width: 100%;
    height: auto;
    max-height: 70px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partner-logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-apropos h1 {
        font-size: 3.5rem;
    }

    .hero-apropos p {
        font-size: 1.1rem;
    }

    .intro-section {
        flex-direction: column;
        margin-top: -40px;
        padding: var(--spacing-xl);
    }

    .intro-section-content {
        padding-right: 0;
        text-align: center;
    }

    .intro-section-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .intro-section-image {
        margin-top: var(--spacing-l);
    }

    .detailed-section .section-title {
        font-size: 2rem;
        padding-left: var(--spacing-s);
    }

    .doyen-profile {
        flex-direction: column;
        text-align: center;
    }

    .doyen-profile img {
        margin-bottom: var(--spacing-m);
    }

    .doyen-profile h3 {
        text-align: center;
    }

    .stats-grid-dashboard {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-apropos h1 {
        font-size: 2.8rem;
    }

    .intro-section-content h2 {
        font-size: 2.2rem;
    }

    .detailed-section {
        padding: var(--spacing-xl) var(--spacing-m);
    }

    .numbers-section {
        margin-left: var(--spacing-m);
        margin-right: var(--spacing-m);
        padding: var(--spacing-xl) 0;
    }
}
