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

:root {
    --page-max-width: 1200px;
    --page-padding: clamp(1rem, 4vw, 2.5rem);
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: 
        linear-gradient(135deg, rgba(44, 24, 16, 0.9) 0%, rgba(139, 69, 19, 0.8) 50%, rgba(212, 175, 55, 0.9) 100%),
        url('https://www.worldhistory.org/uploads/images/12897.png?v=1749199876-0') center/cover fixed;
    color: #f4f4f4;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 69, 19, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.header {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    opacity: 0.6;
}

.nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: translateX(-3px);
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.logo-container:hover .logo-icon {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.15));
    border-color: rgba(212, 175, 55, 0.5);
    transform: rotate(5deg) scale(1.05);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(212, 175, 55, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: rgba(244, 244, 244, 0.9);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    color: #d4af37;
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    opacity: 1;
}

.nav-links a.active {
    color: #2c1810;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    font-weight: 600;
}

.nav-links a.active::before {
    opacity: 0;
}

.nav-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.nav-links a:hover .nav-icon {
    transform: scale(1.1) rotate(5deg);
}

.nav-links a.active .nav-icon {
    transform: scale(1.1);
}

/* Menu hamburger pour mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    gap: 5px;
}

.mobile-menu-toggle:focus {
    outline: 2px solid #d4af37;
    outline-offset: 4px;
    border-radius: 4px;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f4d03f);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Responsive Navigation */

/* Ajustements sp�cifiques page Histoire pour le mobile */

.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    padding: var(--page-padding);
    width: min(var(--page-max-width), calc(100% - (var(--page-padding) * 2)));
    margin-left: auto;
    margin-right: auto;
}

.page {
    display: none;
    width: min(var(--page-max-width), calc(100% - (var(--page-padding) * 2)));
    margin: 0 auto;
    animation: fadeIn 0.5s ease-in;
}

.page.active {
    display: block;
}

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

.hero-section {
    text-align: center;
    padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 3rem) clamp(6rem, 10vw, 9rem);
    background: 
        linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.55)),
        url('https://www.voyageavecnous.fr/wp-content/uploads/2023/02/pantheon-rome.jpg') center/cover;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    border-radius: 20px;
    margin-bottom: 4rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Image de fond sp�cifique pour la page Histoire */
.histoire-page {
    background: 
        linear-gradient(135deg, rgba(44, 24, 16, 0.9) 0%, rgba(139, 69, 19, 0.8) 50%, rgba(212, 175, 55, 0.9) 100%),
        url('https://www.voyageavecnous.fr/wp-content/uploads/2023/02/pantheon-rome.jpg') center/cover fixed;
}

.histoire-hero {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.55)),
        url('https://media.destinationrome.fr/resize/uploads/sites/4/2016/08/Pantheon-Rome-Richjheath-scaled-1200x800.jpg?format=auto') center/cover;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(139, 69, 19, 0.1) 0%, transparent 50%);
    animation: pulse 6s ease-in-out infinite;
    pointer-events: none;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1);
    }
    50% { 
        opacity: 0.9;
        transform: scale(1.02);
    }
}

/* Am�lioration des performances */
.stat-card,
.feature-card,
.explore-card,
.highlight-card {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Accessibilit� am�lior�e */
.hero-btn:focus,
.explore-card:focus,
.stat-card:focus {
    outline: 3px solid rgba(212, 175, 55, 0.6);
    outline-offset: 4px;
}

/* Mode r�duit de mouvement pour accessibilit� */

/* Am�lioration du contraste pour accessibilit� */

/* Print styles */

/* S�lection de texte am�lior�e */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: #f4f4f4;
}

::-moz-selection {
    background: rgba(212, 175, 55, 0.3);
    color: #f4f4f4;
}

/* Scrollbar personnalis�e pour Chrome/Safari */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4af37, #b8941f);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f4d03f, #d4af37);
}

/* Focus visible am�lior� */
*:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
    border-radius: 4px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.15));
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50px;
    color: #d4af37;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease-out;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(212, 175, 55, 0.6);
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer;
    z-index: 2;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
        opacity: 1;
    }
}

.hero-title {
    font-size: clamp(2.2rem, 4vw + 1.5rem, 3.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #d4af37, #f4e4bc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
}

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

/* Attributs data-aos pour animations au scroll */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-down"] {
    transform: translateY(-30px);
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-in"] {
    transform: scale(0.95);
}

[data-aos="fade-in"].aos-animate {
    transform: scale(1);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw + 1rem, 1.3rem);
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.2s both;
}

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

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-btn {
    padding: 1.1rem 2.75rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    will-change: transform;
}

.hero-btn svg {
    transition: transform 0.4s ease;
}

.hero-btn:hover svg {
    transform: translateX(5px);
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-btn:hover::before {
    width: 300px;
    height: 300px;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #2c1810;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #f4f4f4;
    border: 2px solid rgba(212, 175, 55, 0.5);
    backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    transform: translateY(-3px);
}

.hero-btn span {
    position: relative;
    z-index: 1;
}

/* Section Statistiques */
.stats-section {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    color: #d4af37;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(10px);
}

.section-description {
    font-size: 1.1rem;
    color: rgba(244, 244, 244, 0.8);
    max-width: 600px;
    margin: 1rem auto 0;
    line-height: 1.6;
    font-weight: 300;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.75), rgba(139, 69, 19, 0.35));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    will-change: transform;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.25);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover::after {
    transform: scale(1);
}

.stat-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.stat-card:hover .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.15));
    border-color: rgba(212, 175, 55, 0.4);
    transform: scale(1.1) rotate(5deg);
}

.stat-icon {
    width: 32px;
    height: 32px;
    color: #d4af37;
    stroke-width: 2;
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 20px rgba(212, 175, 55, 0.4);
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 1.05rem;
    color: #f4e4bc;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.3px;
}

.stat-description {
    font-size: 0.9rem;
    opacity: 0.75;
    line-height: 1.5;
    color: rgba(244, 244, 244, 0.9);
}

/* Section � Propos am�lior�e */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    line-height: 1.8;
}

.lead-text {
    font-size: 1.2rem;
    color: #f4e4bc;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-card {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.5), rgba(139, 69, 19, 0.2));
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #d4af37, transparent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.highlight-card:hover {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.65), rgba(139, 69, 19, 0.3));
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}

.highlight-card:hover::before {
    transform: scaleY(1);
}

.highlight-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
}

.highlight-card:hover .highlight-icon-wrapper {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.15));
    border-color: rgba(212, 175, 55, 0.4);
    transform: scale(1.1);
}

.highlight-icon {
    width: 24px;
    height: 24px;
    color: #d4af37;
    stroke-width: 2;
}

.highlight-card h3 {
    color: #d4af37;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.highlight-card p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin: 0;
    line-height: 1.5;
    color: rgba(244, 244, 244, 0.9);
}

/* Grille de caract�ristiques */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.6), rgba(139, 69, 19, 0.3));
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f4d03f, #d4af37);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.feature-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.15));
    border-color: rgba(212, 175, 55, 0.4);
    transform: scale(1.1) rotate(-5deg);
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: #d4af37;
    stroke-width: 2;
}

.feature-header h3 {
    color: #d4af37;
    font-size: 1.25rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.feature-value {
    font-size: 2rem;
    font-weight: bold;
    color: #f4e4bc;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.feature-description {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.5;
    margin: 0;
}

/* Section d'exploration */
.explore-section {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.65)),
        url('https://www.pantheonroma.com/wp-content/uploads/2023/10/Pantheon-Roma-dallalto.jpg') center/cover;
    border-radius: 20px;
    padding: 4rem 3rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.explore-card {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.7), rgba(139, 69, 19, 0.4));
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 2.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.explore-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s ease;
}

.explore-card:hover {
    transform: translateY(-8px);
    border-color: #d4af37;
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.explore-card:hover::before {
    left: 100%;
}

.explore-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 18px;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
}

.explore-card:hover .explore-icon-wrapper {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.2));
    border-color: rgba(212, 175, 55, 0.5);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.explore-icon {
    width: 36px;
    height: 36px;
    color: #d4af37;
    stroke-width: 2;
}

.explore-card h3 {
    color: #d4af37;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.explore-card p {
    flex-grow: 1;
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: rgba(244, 244, 244, 0.9);
}

.explore-link {
    color: #f4e4bc;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.explore-link svg {
    transition: transform 0.3s ease;
}

.explore-card:hover .explore-link {
    color: #d4af37;
    transform: translateX(5px);
}

.explore-card:hover .explore-link svg {
    transform: translateX(5px);
}

.section {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.65)),
        url('https://www.voyageavecnous.fr/wp-content/uploads/2023/02/pantheon-rome.jpg') center/cover;
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Images de fond diff�rentes pour chaque section historique */
.section-auguste {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.65)),
        url('https://images.unsplash.com/photo-1552832230-c0197dd311b5?w=1400&q=80') center/cover;
}

.section-agrippa {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.65)),
        url('https://www.voyageavecnous.fr/wp-content/uploads/2023/02/pantheon-rome.jpg') center/cover;
}

.section-destructions {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.65)),
        url('https://media.destinationrome.fr/resize/uploads/sites/4/2016/08/Pantheon-Rome-Richjheath-scaled-1200x800.jpg?format=auto') center/cover;
}

.section-hadrien {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.65)),
        url('https://images.unsplash.com/photo-1539650116574-75c0c6d73ab2?w=1400&q=80') center/cover;
}

.section-vision {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.65)),
        url('https://images.unsplash.com/photo-1552832230-c0197dd311b5?w=1400&q=80') center/cover;
}

.section-nom-agrippa {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.65)),
        url('https://www.voyageavecnous.fr/wp-content/uploads/2023/02/pantheon-rome.jpg') center/cover;
}

.section-chantier {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.65)),
        url('https://images.unsplash.com/photo-1515542622106-78bda8ba0e5b?w=1400&q=80') center/cover;
}

.section-pilier {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.65)),
        url('https://media.destinationrome.fr/resize/uploads/sites/4/2016/08/Pantheon-Rome-Richjheath-scaled-1200x800.jpg?format=auto') center/cover;
}

.section-symbolique {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.65)),
        url('https://images.unsplash.com/photo-1552832230-c0197dd311b5?w=1400&q=80') center/cover;
}

.section:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.section-title {
    font-size: 2.5rem;
    color: #d4af37;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-header .section-title {
    border-bottom: none;
    padding-bottom: 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.resource-card {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.6), rgba(139, 69, 19, 0.3));
    border-radius: 10px;
    padding: 1.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.resource-card:hover {
    border-color: #d4af37;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.resource-card:hover::before {
    transform: translateX(100%);
}

.resource-number {
    font-size: 2.5rem;
    color: #d4af37;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.resource-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #f4f4f4;
}

.resource-description {
    opacity: 0.8;
    line-height: 1.5;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.modal-content {
    position: absolute;
    top: clamp(2%, 4vw, 5%);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 15px;
    padding: 0;
    max-width: min(1100px, calc(100vw - 2.5rem));
    width: min(94vw, 1100px);
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid #d4af37;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.modal-header {
    background: linear-gradient(45deg, #d4af37, #b8941f);
    color: #000;
    padding: 1.5rem 2rem;
    border-radius: 13px 13px 0 0;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #000;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-weight: bold;
}

.modal-close:hover {
    transform: scale(1.2);
}

.modal-title {
    font-size: 2.2rem;
    margin: 0;
    font-weight: bold;
}

.modal-subtitle {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.modal-body {
    padding: clamp(1.5rem, 4vw, 2.25rem);
    color: #f4f4f4;
    overflow-x: hidden;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-body img {
    display: block;
    width: 100%;
    max-width: min(680px, 100%);
    height: auto;
    margin: 0 auto clamp(1rem, 3vw, 1.5rem);
    object-fit: contain;
}

.wiki-topgrid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.wiki-topgrid .wiki-media {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wiki-topgrid .wiki-media img {
    width: 100%;
    height: auto;
    display: block;
    max-width: none;
    margin: 0;
    object-fit: cover;
    border: 2px solid #d4af37;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    cursor: zoom-in;
}

.wiki-image {
    width: 90%;
    max-width: 320px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin: 1rem 0;
    border: 2px solid #d4af37;
    float: right;
    margin-left: 1rem;
}

.wiki-infobox {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #d4af37;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    width: min(400px, 100%);
    float: right;
    margin-left: 1rem;
}

.modal-body .wiki-infobox {
    float: none;
    margin: 0 auto;
    width: 92%;
    max-width: 520px;
    align-self: center;
}

.modal-body .wiki-image {
    float: none;
    margin: 0.5rem auto 0;
    max-width: 100%;
    width: 100%;
}

.modal-body .wiki-section {
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.wiki-topgrid {
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.wiki-topgrid .wiki-infobox {
    float: none;
    width: 100%;
    margin: 0;
}

.wiki-infobox h3 {
    color: #d4af37;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.wiki-infobox table {
    width: 100%;
    border-collapse: collapse;
}

.wiki-infobox td {
    padding: 0.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    font-size: 0.9rem;
}

.wiki-infobox td:first-child {
    font-weight: bold;
    color: #d4af37;
    width: 40%;
}

.wiki-section {
    margin: 2rem 0;
    clear: both;
}

.wiki-section h3 {
    color: #d4af37;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #d4af37;
    padding-bottom: 0.5rem;
}

.wiki-section h4 {
    color: #b8941f;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem 0;
}

.wiki-section p {
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: justify;
}

.wiki-image-caption {
    margin-top: 0.75rem;
    color: rgba(244, 244, 244, 0.85);
    line-height: 1.5;
}

.wiki-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.wiki-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #d4af37;
}

.wiki-references {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.wiki-references h3 {
    color: #d4af37;
    margin-bottom: 1rem;
}

.wiki-references ol {
    list-style: decimal;
    padding-left: 2rem;
}

.wiki-references li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.zoomable {
    cursor: zoom-in;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 1.5rem;
}

.image-lightbox.active {
    display: flex;
}

.image-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    border: 2px solid #d4af37;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: #000;
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(212, 175, 55, 0.9);
    color: #000;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lightbox-close:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.calculation-box {
    background: linear-gradient(145deg, 
        rgba(0, 0, 0, 0.85),
        rgba(44, 24, 16, 0.75));
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(30px);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(212, 175, 55, 0.1) inset;
    margin-top: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.calculation-box:hover {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 
        0 15px 50px rgba(212, 175, 55, 0.25),
        0 0 0 1px rgba(212, 175, 55, 0.2) inset;
    transform: translateY(-3px);
}

.calculation-box h3 {
    color: #d4af37;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.3px;
}

.calculation-box p {
    color: rgba(244, 244, 244, 0.9);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.formula {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.15),
        rgba(212, 175, 55, 0.05));
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.formula:hover {
    border-color: #d4af37;
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
    transform: scale(1.02);
}

.formula-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.formula-list li {
    color: rgba(244, 244, 244, 0.9);
    font-size: 1rem;
    line-height: 1.8;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.formula-list li::before {
    content: '?';
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
}

.formula-list li strong {
    color: #d4af37;
    font-weight: 700;
}

.formula-note {
    background: rgba(212, 175, 55, 0.1);
    border-left: 3px solid #d4af37;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    border-radius: 8px;
    color: rgba(244, 244, 244, 0.85);
    font-style: italic;
    line-height: 1.7;
}

.formula-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.formula-section h4 {
    color: #d4af37;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.formula-section p {
    color: rgba(244, 244, 244, 0.9);
    margin-top: 0.8rem;
    line-height: 1.7;
}

/* Styles am�lior�s pour la page Math�matiques */
.math-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.math-card {
    background: linear-gradient(145deg, 
        rgba(0, 0, 0, 0.85),
        rgba(44, 24, 16, 0.75));
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(30px);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(212, 175, 55, 0.1) inset;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.math-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 
        0 20px 60px rgba(212, 175, 55, 0.3),
        0 0 0 1px rgba(212, 175, 55, 0.2) inset;
}

.math-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.math-card:hover .math-card-icon {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.6);
    transform: scale(1.1) rotate(5deg);
}

.math-card-icon svg {
    width: 40px;
    height: 40px;
}

.math-card h3 {
    color: #d4af37;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.math-card p {
    color: rgba(244, 244, 244, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.calculation-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.calculation-icon {
    width: 50px;
    height: 50px;
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    flex-shrink: 0;
}

.calculation-icon svg {
    width: 28px;
    height: 28px;
}

.calculation-header h3 {
    margin: 0;
    flex: 1;
}

.math-visualization {
    flex-direction: column;
    margin: 2.5rem 0;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.math-diagram {
    width: 100%;
    max-width: 600px;
    height: auto;
}

.math-photo {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 16px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.photo-caption {
    text-align: center;
    margin-top: 1rem;
    color: rgba(244, 244, 244, 0.8);
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.6;
    padding: 0 1rem;
}

.calculation-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(244, 244, 244, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aos-animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Timeline Horizontale Glissante */
.timeline-container {
    position: relative;
    width: 100%;
    padding: 3rem 0 8rem;
    margin: 3rem 0;
}

.timeline-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 5rem;
}

.timeline-dates-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2rem 0 3rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.timeline-dates-container::-webkit-scrollbar {
    display: none;
}

.timeline-dates-track {
    display: flex;
    gap: 4rem;
    padding: 0 50%;
    min-width: max-content;
    transition: scroll-behavior auto;
}

.timeline-date-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    min-width: 140px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.date-label {
    padding: 0.8rem 1.4rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(44, 24, 16, 0.9));
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    color: #d4af37;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1rem;
    white-space: nowrap;
}

.timeline-date-item:hover .date-label,
.timeline-date-item.active .date-label {
    border-color: #d4af37;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
}

.date-marker {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    border: 3px solid #1a0f0a;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.8), 0 0 15px rgba(212, 175, 55, 0.5);
}

.timeline-date-item:hover .date-marker,
.timeline-date-item.active .date-marker {
    transform: scale(1.4);
    box-shadow: 
        0 0 0 8px rgba(212, 175, 55, 0.2),
        0 0 25px rgba(212, 175, 55, 0.8);
    border-color: #f4d03f;
}

.timeline-line {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 8rem);
    max-width: 1400px;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(212, 175, 55, 0.4) 0%,
        rgba(212, 175, 55, 0.8) 10%,
        #d4af37 20%,
        #d4af37 80%,
        rgba(212, 175, 55, 0.8) 90%,
        rgba(212, 175, 55, 0.4) 100%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    z-index: 1;
    pointer-events: none;
}

/* Container pour la carte */
.timeline-card-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    min-height: 400px;
}

.timeline-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(145deg, 
        rgba(0, 0, 0, 0.92),
        rgba(44, 24, 16, 0.85));
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(40px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(212, 175, 55, 0.1) inset;
}

.timeline-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    z-index: 5;
}

.card-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.2),
        rgba(212, 175, 55, 0.1));
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: all 0.4s ease;
}

.timeline-card.active .card-icon {
    transform: scale(1.05) rotate(5deg);
    border-color: #d4af37;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.35),
        rgba(212, 175, 55, 0.2));
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.card-icon svg {
    width: 36px;
    height: 36px;
    color: #d4af37;
    stroke-width: 2;
}

.card-title {
    color: #d4af37;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.card-description {
    color: rgba(244, 244, 244, 0.92);
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 2rem;
}

.card-badge {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 auto;
    display: block;
    text-align: center;
    width: fit-content;
}

/* Responsive pour la timeline horizontale */

.content-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.content-badge-primary {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.15));
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.content-badge-danger {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.25), rgba(231, 76, 60, 0.15));
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.4);
}

.content-badge-warning {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.25), rgba(241, 196, 15, 0.15));
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.4);
}

.content-badge-success {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.25), rgba(39, 174, 96, 0.15));
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.4);
}

.content-badge-gold {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.2));
    color: #f4d03f;
    border: 1px solid rgba(212, 175, 55, 0.5);
}

.content-badge-info {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.25), rgba(52, 152, 219, 0.15));
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.4);
}

/* Sections am�lior�es pour la page Histoire */
.intro-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.7), rgba(139, 69, 19, 0.4));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: rgba(244, 244, 244, 0.95);
    text-align: justify;
}

.intro-content p:last-child {
    margin-bottom: 0;
}

.intro-content sup {
    font-size: 0.7em;
    vertical-align: super;
}

.innovation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.innovation-card {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.8), rgba(139, 69, 19, 0.5));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.innovation-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.3);
}

.innovation-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s ease;
}

.innovation-card:hover .innovation-icon {
    transform: scale(1.1) rotate(5deg);
    border-color: #d4af37;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.35), rgba(212, 175, 55, 0.2));
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
}

.innovation-icon svg {
    width: 32px;
    height: 32px;
    color: #d4af37;
    stroke-width: 2;
}

.innovation-title {
    color: #d4af37;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.3px;
}

.innovation-text {
    color: rgba(244, 244, 244, 0.9);
    font-size: 1rem;
    line-height: 1.8;
    text-align: center;
}

.context-content {
    max-width: 1000px;
    margin: 2rem auto 0;
}

.context-text {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.75), rgba(139, 69, 19, 0.4));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.context-text p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: rgba(244, 244, 244, 0.95);
    text-align: justify;
}

.context-text p:last-child {
    margin-bottom: 0;
}

/* Footer pour la page Histoire */
.footer {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    color: #d4af37;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-subtitle {
    color: #d4af37;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-description,
.footer-text {
    color: rgba(244, 244, 244, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(244, 244, 244, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #d4af37;
    transform: translateX(5px);
}

.footer-copyright {
    color: rgba(244, 244, 244, 0.6);
    font-size: 0.85rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.responsive-table {
    overflow-x: auto;
    margin: 1rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    word-break: break-word;
}

th {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    font-weight: bold;
}
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
/* === STYLES POUR LA PAGE CONTACT === */
/* Grille des informations de contact */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.contact-card h3 {
    color: #d4af37;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-card p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

/* Conteneur du formulaire */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #d4af37;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.form-group select option {
    background: #2c3e50;
    color: white;
}

/* Checkbox personnalis�e */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.8rem;
    width: 18px;
    height: 18px;
    accent-color: #d4af37;
}

/* Bouton de soumission */
.submit-btn {
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #2c3e50;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-loading {
    display: none;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: inline;
}

/* Informations pratiques */
.practical-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-block {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
}

.info-block h3 {
    color: #d4af37;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 0.5rem;
}

.info-block p {
    margin: 0.8rem 0;
    line-height: 1.6;
}

.info-block strong {
    color: #d4af37;
}

/* Animations d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-card {
    animation: fadeInUp 0.6s ease-out;
}

.contact-card:nth-child(2) { animation-delay: 0.1s; }
.contact-card:nth-child(3) { animation-delay: 0.2s; }
.contact-card:nth-child(4) { animation-delay: 0.3s; }

.bib-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.bib-stat-card {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.6), rgba(139, 69, 19, 0.3));
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bib-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.bib-stat-card:hover {
    border-color: #d4af37;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.bib-stat-card:hover::before {
    transform: translateX(100%);
}

.bib-stat-number {
    font-size: 2rem;
    color: #d4af37;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.bib-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.bib-search-section {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.bib-search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.bib-search-input {
    flex: 1;
    min-width: 300px;
    padding: 12px 15px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    color: #f4f4f4;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.bib-search-input:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(0, 0, 0, 0.6);
}

.bib-search-input::placeholder {
    color: rgba(244, 244, 244, 0.6);
}

.bib-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.bib-btn-primary {
    background: linear-gradient(45deg, #d4af37, #b8941f);
    color: #000;
}

.bib-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.bib-btn-secondary {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    border: 1px solid #d4af37;
}

.bib-btn-secondary:hover {
    background: rgba(212, 175, 55, 0.3);
}

.bib-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bib-filter-select {
    padding: 10px 12px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    color: #f4f4f4;
    font-size: 14px;
}

.bib-filter-select option {
    background: #2c1810;
    color: #f4f4f4;
}

.bib-documents-container {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.bib-document-card {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.4), rgba(139, 69, 19, 0.2));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bib-document-card:hover {
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.bib-doc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.bib-doc-title {
    font-size: 1.3rem;
    color: #d4af37;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.bib-doc-author {
    color: #f4e4bc;
    font-style: italic;
}

.bib-doc-date {
    color: rgba(244, 244, 244, 0.7);
    font-size: 0.9rem;
    background: rgba(212, 175, 55, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
}

.bib-doc-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.bib-doc-meta span {
    color: rgba(244, 244, 244, 0.8);
    font-size: 0.9rem;
}

.bib-doc-meta strong {
    color: #d4af37;
}

.bib-doc-tags {
    margin-bottom: 1rem;
}

.bib-tag {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin: 0.2rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.bib-doc-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.bib-doc-url {
    flex: 1;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 5px;
    color: #f4f4f4;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    word-break: break-all;
}

.bib-copy-btn {
    padding: 0.8rem 1.2rem;
    background: linear-gradient(45deg, #d4af37, #b8941f);
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.bib-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.bib-download-btn {
    padding: 0.8rem 1.2rem;
    background: rgba(139, 69, 19, 0.6);
    color: #f4f4f4;
    border: 1px solid #d4af37;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
}

.bib-download-btn:hover {
    background: rgba(139, 69, 19, 0.8);
    transform: translateY(-2px);
}

.bib-loading {
    text-align: center;
    padding: 3rem;
    color: #d4af37;
    font-size: 1.1rem;
}

.bib-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-top: 3px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bib-alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-weight: 500;
}

.bib-alert-info {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.bib-alert-error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.bib-status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.bib-status-connected {
    background: #27ae60;
    box-shadow: 0 0 10px rgba(39, 174, 96, 0.5);
}

.bib-status-disconnected {
    background: #e74c3c;
}

.bib-expanded-doc {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #d4af37;
    margin-top: 1rem;
    padding: 1.5rem;
    border-radius: 10px;
    animation: fadeIn 0.3s ease;
}

.bib-expanded-doc h4 {
    color: #d4af37;
    margin-bottom: 1rem;
}

.bib-expanded-doc p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.bib-close-expanded {
    float: right;
    background: none;
    border: none;
    color: #d4af37;
    font-size: 1.5rem;
    cursor: pointer;
    font-weight: bold;
}

.responsive-table {
    overflow-x: auto;
    margin: 1rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

th {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    font-weight: bold;
}


/* ============================================================
 * SPECIAL MEDIA QUERIES
 * ============================================================ */

@media (prefers-reduced-motion: reduce) {
    *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
    
        .hero-scroll-indicator {
            animation: none;
        }
}

@media (prefers-contrast: high) {
    .stat-card,
        .feature-card,
        .explore-card,
        .highlight-card {
            border-width: 2px;
            border-color: #d4af37;
        }
    
        .hero-btn-primary {
            background: #d4af37;
            color: #000;
        }
    
        .hero-btn-secondary {
            border-width: 2px;
        }
}

@media print {
    .hero-section,
        .stats-section,
        .explore-section {
            break-inside: avoid;
        }
    
        .hero-buttons,
        .explore-card,
        .hero-scroll-indicator {
            display: none;
        }
}


/* ============================================================
 * RESPONSIVE DESIGN - Consolidated Breakpoints
 *
 * Breakpoints:
 *   ≤ 1024px : Tablettes paysage / petits laptops
 *   ≤  768px : Tablettes portrait / grands smartphones
 *   ≤  640px : Smartphones moyens
 *   ≤  480px : Petits smartphones
 * ============================================================ */

/* --- max-width: 1024px --- */
@media (max-width: 1024px) {
    .nav-links {
        gap: 0.25rem;
    }

    .nav-links a {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }

    .nav-icon {
        width: 16px;
        height: 16px;
    }

    .wiki-topgrid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .wiki-topgrid .wiki-infobox {
        max-width: none;
    }

    .hero-section,
    .section,
    .explore-section {
        padding: clamp(2.25rem, 4vw, 4rem);
    }

    .resources-grid {
        gap: 1.25rem;
    }
}

/* --- max-width: 768px --- */
@media (max-width: 768px) {
    .nav {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .logo-container {
        gap: 0.75rem;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
    }

    .logo-icon svg {
        width: 20px;
        height: 20px;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .logo-subtitle {
        font-size: 0.65rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.95) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border-bottom: 0 solid rgba(212, 175, 55, 0.2);
        pointer-events: none;
    }

    .nav-links.active {
        max-height: 600px;
        padding: 1.5rem 1rem;
        border-bottom-width: 1px;
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        padding: 1rem 1.5rem;
        justify-content: flex-start;
        border-radius: 12px;
        margin-bottom: 0.5rem;
    }

    .nav-icon {
        width: 20px;
        height: 20px;
    }

    .hero-section {
        background-attachment: scroll;
        padding: 4rem 1.5rem 6rem;
        min-height: 60vh;
    }

    .histoire-hero {
        background-attachment: scroll;
    }

    .hero-content {
        max-width: 680px;
    }

    .calculation-box {
        padding: 1.8rem;
    }

    .calculation-box h3 {
        font-size: 1.2rem;
    }

    .formula {
        font-size: 1rem;
        padding: 1.2rem 1.5rem;
    }

    .formula-list li {
        font-size: 0.9rem;
    }

    .math-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .math-card {
        padding: 2rem;
    }

    .calculation-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }

    .math-visualization {
        padding: 1rem;
    }

    .math-diagram {
        max-width: 100%;
    }

    .timeline-dates-track {
        gap: 2.5rem;
        padding: 0 35%;
    }

    .timeline-date-item {
        min-width: 110px;
    }

    .date-label {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }

    .timeline-container {
        padding: 3rem 1.5rem 12rem;
    }

    .timeline-wrapper {
        margin-bottom: 3rem;
    }

    .timeline-dates-container {
        padding: 1.5rem 0 2.5rem;
    }

    .date-marker {
        width: 14px;
        height: 14px;
        border-width: 2.5px;
    }

    .timeline-line {
        width: calc(100% - 4rem);
        bottom: 1rem;
    }

    .timeline-card-container {
        min-height: 350px;
    }

    .timeline-card {
        padding: 2rem;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }

    .card-icon svg {
        width: 30px;
        height: 30px;
    }

    .card-title {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }

    .card-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .card-badge {
        padding: 0.5rem 1.2rem;
        font-size: 0.75rem;
    }

    .intro-content {
        padding: 1.5rem;
    }

    .intro-content p {
        font-size: 1rem;
        text-align: left;
    }

    .innovation-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .innovation-card {
        padding: 2rem;
    }

    .innovation-title {
        font-size: 1.2rem;
    }

    .innovation-text {
        font-size: 0.95rem;
    }

    .context-text {
        padding: 1.5rem;
    }

    .context-text p {
        font-size: 1rem;
        text-align: left;
    }

    .footer {
        padding: 2rem 1.5rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .timeline-track {
        min-height: 550px;
    }

    .timeline-rail {
        top: 140px;
        left: 3%;
        right: 3%;
    }

    .timeline-milestone {
        width: 28%;
    }

    .timeline-milestone[data-milestone="1"] {
        left: 10%;
    }

    .timeline-milestone[data-milestone="2"] {
        left: 28%;
    }

    .timeline-milestone[data-milestone="3"] {
        left: 46%;
    }

    .timeline-milestone[data-milestone="4"] {
        left: 64%;
    }

    .timeline-milestone[data-milestone="5"] {
        left: 82%;
    }

    .timeline-milestone[data-milestone="6"] {
        left: 82%;
    }

    .milestone-year {
        top: 30px;
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
        min-width: 85px;
    }

    .year-label {
        font-size: 0.65rem;
    }

    .milestone-marker {
        top: 140px;
    }

    .marker-core {
        width: 14px;
        height: 14px;
        border-width: 3px;
    }

    .marker-ring {
        width: 26px;
        height: 26px;
    }

    .milestone-connector {
        top: 140px;
        height: 180px;
    }

    .milestone-content {
        top: 320px;
        width: 220px;
        padding: 1.5rem;
    }

    .content-title {
        font-size: 1.1rem;
    }

    .content-description {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .content-icon {
        width: 44px;
        height: 44px;
    }

    .content-icon svg {
        width: 22px;
        height: 22px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 5vw + 1rem, 2.3rem);
        line-height: 1.1;
        letter-spacing: -0.4px;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
    }

    .hero-scroll-indicator {
        bottom: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btn {
        width: 100%;
        text-align: center;
    }

    .main-content {
        margin-top: 80px;
        padding: 1rem;
    }

    .section {
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1.2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-card {
        padding: 2rem 1.5rem;
    }

    .stat-icon-wrapper {
        width: 56px;
        height: 56px;
    }

    .stat-icon {
        width: 28px;
        height: 28px;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .highlight-card {
        padding: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .explore-section {
        padding: 3rem 2rem;
    }

    .explore-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .explore-icon-wrapper {
        width: 64px;
        height: 64px;
    }

    .explore-icon {
        width: 32px;
        height: 32px;
    }

    .modal-content {
        width: 95%;
        top: 2%;
        max-height: 96vh;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .wiki-image, .wiki-infobox {
        float: none;
        width: 100%;
        margin: 1rem 0;
    }

    /* Responsive pour mobile - Contact */
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: 2rem;
    }

    .practical-info {
        grid-template-columns: 1fr;
    }

    .bib-search-bar {
        flex-direction: column;
    }

    .bib-search-input {
        min-width: auto;
    }

    .bib-filters {
        flex-direction: column;
    }

    .bib-doc-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .bib-doc-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .bib-doc-url {
        margin-bottom: 0.5rem;
    }
}

/* --- max-width: 640px --- */
@media (max-width: 640px) {
    .histoire-hero {
        padding: clamp(3rem, 6vw, 4.5rem) clamp(1rem, 5vw, 1.75rem) clamp(4rem, 7vw, 5.5rem);
        min-height: 60vh;
    }

    .hero-content {
        max-width: 100%;
        width: 100%;
        padding: 0 1rem;
        align-items: center;
        text-align: center;
    }

    .histoire-hero .hero-title {
        font-size: clamp(1.9rem, 6vw + 1rem, 2.6rem);
        line-height: 1.1;
        letter-spacing: -0.5px;
    }

    .histoire-hero .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        max-width: 90vw;
    }

    .histoire-hero .hero-badge {
        padding: 0.45rem 1rem;
        font-size: 0.75rem;
        letter-spacing: 0.8px;
    }

    .timeline-dates-track {
        gap: 1.5rem;
        padding: 0 28%;
    }

    .timeline-date-item {
        min-width: 90px;
    }

    .date-label {
        font-size: 0.75rem;
        padding: 0.55rem 0.85rem;
    }

    .timeline-card {
        padding: 1.5rem;
        min-height: 320px;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-description {
        font-size: 0.95rem;
    }

    .modal-content {
        position: fixed;
        inset: 0;
        transform: none;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        top: 0;
        left: 0;
        border: none;
        border-radius: 0;
    }

    .modal-header {
        padding: 0.75rem 1rem;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .modal-body {
        padding: 1rem;
        max-width: 100vw;
        gap: 1rem;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .resource-number {
        font-size: 2rem;
    }

    .resource-title {
        font-size: 1.1rem;
    }

    .wiki-topgrid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
    }

    .wiki-topgrid .wiki-media img {
        max-width: 100%;
        border-width: 1px;
        border-radius: 8px;
    }

    .wiki-image-caption {
        margin-top: 0.5rem;
        font-size: 0.95rem;
    }

    .wiki-infobox {
        margin: 1rem 0 0;
        padding: 1rem;
        border-radius: 8px;
        width: 94%;
    }

    .modal-body .wiki-infobox {
        max-width: 520px;
        width: 94%;
    }

    .modal-body .wiki-section {
        max-width: 100%;
    }
}

/* --- max-width: 480px --- */
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .nav-links a {
        padding: 0.9rem 1.1rem;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .modal-subtitle {
        font-size: 0.95rem;
    }

    .modal-body img {
        margin-bottom: 1rem;
    }
}