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

/* BASE */
body {
    padding: 60px 20px;
    background: #f8f6f2;
    color: #1a1a1a;
    font-family: Georgia, serif;
}

img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

p#footerseparator {
    display: inline;
}

/* TYPOGRAPHY */
h1 {
    margin-bottom: 8px;
    text-align: center;
    font-size: 1.8rem;
    letter-spacing: 0.03em;
}

.sous-titre {
    margin-bottom: 60px;
    text-align: center;
    font-size: 0.95rem;
    color: #666;
}

.annee {
    margin-bottom: 4px;
    color: #7a6a55;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.text-block h2 {
    margin-bottom: 7px;
    font-size: 1.05rem;
    line-height: 1.35;
}

.text-block p {
    color: #333;
    font-size: 0.88rem;
    line-height: 1.65;
}

/* TIMELINE */
.timeline {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 100px;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #bbb0a0;
    transform: translateX(-50%);
}

/* ENTRY */
.entry {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10%;
    margin-bottom: 52px;
}

.entry::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    z-index: 1;
    width: 13px;
    height: 13px;
    background: #7a6a55;
    border: 3px solid #f8f6f2;
    border-radius: 50%;
    transform: translateX(-50%);
}

.entry.majeur::before {
    top: 16px;
    width: 16px;
    height: 16px;
    background: #c0392b;
}

.entry.majeur .annee {
    color: #c0392b;
}

/* BLOCKS */
.img-block,
.text-block {
    width: 45%;
    padding: 0 20px;
}

.entry.texte-seul .text-block {
    width: 45%;
}

/* IMAGE */
.img-block img {
    display: block;
    max-height: 160px;
    border-radius: 6px;
    object-fit: cover;
}

.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 140px;
    border-radius: 6px;
    color: #fff;
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.85;
}

.img-block .legende {
    margin-top: 5px;
    color: #888;
    font-size: 0.72rem;
    font-style: italic;
}

/* CITATION */
.citation {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f0ede8;
    border-left: 3px solid #bbb0a0;
    border-radius: 0 4px 4px 0;
    color: #555;
    font-size: 0.83rem;
    font-style: italic;
}

/* ALTERNATING LAYOUT */
.entry:nth-child(odd) .img-block {
    order: 1;
}

.entry:nth-child(odd) .text-block {
    order: 2;
}

.entry:nth-child(even) .text-block {
    order: 1;
    text-align: right;
}

.entry:nth-child(even) .img-block {
    order: 2;
}

.entry:nth-child(even) .citation {
    border-right: 3px solid #bbb0a0;
    border-left: none;
    text-align: left;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    body {
        padding: 40px 16px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .sous-titre {
        margin-bottom: 40px;
        font-size: 0.9rem;
    }

    .timeline::before {
        left: 18px;
        transform: none;
    }

    .entry {
        flex-direction: column;
        gap: 18px;
        margin-bottom: 42px;
        padding-left: 42px;
    }

    .entry::before {
        top: 10px;
        left: 12px;
        transform: none;
    }

    .img-block,
    .text-block,
    .entry.texte-seul .text-block {
        width: 100%;
        padding: 0;
    }

    .entry:nth-child(even) .text-block,
    .entry:nth-child(odd) .text-block {
        text-align: left;
    }

    .entry:nth-child(even) .img-block,
    .entry:nth-child(odd) .img-block,
    .entry:nth-child(even) .text-block,
    .entry:nth-child(odd) .text-block {
        order: unset;
    }

    .img-block img {
        max-height: none;
    }

    .citation {
        border-left: 3px solid #bbb0a0;
        border-right: none;
    }
}
/* --ESSAI DE QQLCHOSE --*/
/* GLOBAL */
html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top, rgba(0,180,255,0.08), transparent 40%),
        linear-gradient(to bottom, #f4f6f8, #edf2f7);
    color: #1a1a1a;
}

/* NAVBAR */
.navbar {
    backdrop-filter: blur(12px);
    background: rgba(15, 23, 42, 0.92) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.05em;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 8px;
    width: 0%;
    height: 2px;
    background: #38bdf8;
    transition: width 0.3s ease;
}

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

/* HERO */
.bg-secondary {
background:
    linear-gradient(rgba(8,12,20,0.75), rgba(8,12,20,0.75)),
}

.display-4 {
    font-weight: 700;
    letter-spacing: 0.03em;
    animation: fadeUp 1s ease;
}

.lead {
    max-width: 950px;
    margin: auto;
    line-height: 1.9;
    animation: fadeUp 1.3s ease;
}

/* SECTIONS */
section {
    position: relative;
}

section h2 {
    font-weight: 700;
    margin-bottom: 25px;
}

/* CARDS */
.card,
.border.rounded,
.timeline {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 18px !important;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.card:hover,
.border.rounded:hover {
    transform: translateY(-6px);
    box-shadow:
        0 10px 30px rgba(0,0,0,0.08),
        0 0 20px rgba(56,189,248,0.12);
}

/* IMAGES */
img {
    border-radius: 10px;
    transition:
        transform 0.5s ease,
        box-shadow 0.5s ease;
}

img:hover {
    transform: scale(1.02);
    box-shadow:
        0 12px 25px rgba(0,0,0,0.15);
}

/* TIMELINE */
.timeline::before {
    background:
        linear-gradient(
            to bottom,
            #38bdf8,
            #0ea5e9,
            #0284c7
        );
    box-shadow: 0 0 10px rgba(56,189,248,0.35);
}

.entry::before {
    background: #0ea5e9;
    box-shadow:
        0 0 0 4px rgba(56,189,248,0.15),
        0 0 15px rgba(56,189,248,0.5);
    transition: transform 0.3s ease;
}

.entry:hover::before {
    transform: translateX(-50%) scale(1.2);
}

.entry.majeur::before {
    background: #ef4444;
    box-shadow:
        0 0 0 4px rgba(239,68,68,0.2),
        0 0 18px rgba(239,68,68,0.6);
}

/* CITATIONS */
.citation {
    background: rgba(240,245,250,0.9);
    border-left: 3px solid #38bdf8;
}

/* TABLE */
.table {
    overflow: hidden;
    border-radius: 14px;
}

.table thead {
    background: #0f172a;
}

.table-striped tbody tr:hover {
    background: rgba(56,189,248,0.08);
    transition: background 0.2s ease;
}

/* FOOTER */
footer {
    background:
        linear-gradient(to right, #0f172a, #111827) !important;
}

footer a {
    color: #7dd3fc;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.7;
}

/* FADE-IN ANIMATION */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ATOME TEST??? */

.atom-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 30px auto;
}

.nucleus {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    background: #38bdf8;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(56,189,248,0.8);
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 40px;
    border: 2px solid rgba(56,189,248,0.45);
    border-radius: 50%;
    transform-style: preserve-3d;
}

.orbit1 {
    transform: translate(-50%, -50%) rotate(0deg);
}

.orbit2 {
    transform: translate(-50%, -50%) rotate(60deg);
}

.orbit3 {
    transform: translate(-50%, -50%) rotate(120deg);
}

.electron {
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from {
        transform:
            rotate(0deg)
            translateX(50px)
            rotate(0deg);
    }

    to {
        transform:
            rotate(360deg)
            translateX(50px)
            rotate(-360deg);
    }
}
