@import url('https://fonts.googleapis.com/css?family=Noto+Sans');

/* ===== BASE ===== */
body {
    max-width: 1100px;
    margin: auto;
    padding: 0 5%;
    font-family: 'Noto Sans', sans-serif;
    background: #f2f2f2;
    color: #2b2b2b;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
}

.btn-accueil {
    text-decoration: none;
    border: 1px solid #444;
    padding: 6px 14px;
    border-radius: 20px;
    color: #444;
}

h1 {
    font-size: 1.2em;
    margin: 0;
}

h2 {
    text-align: center;
    margin-top: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.intro {
    text-align: center;
    max-width: 700px;
    margin: 15px auto 60px;
    color: #555;
}

/* ===== TIMELINE ===== */
.timeline {
    list-style: none;
    padding-left: 40px;
    margin-left: 130px;
    border-left: 8px solid #555;
}

.timeline li {
    position: relative;
    margin: 60px 0;
}

/* cache radios */
.timeline input {
    display: none;
}

.relative {
    position: relative;
}

/* date */
.date {
    position: absolute;
    left: -180px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9em;
    color: #666;
}

/* point */
.dot {
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border: 5px solid #555;
    border-radius: 50%;
    background: #f2f2f2;
}

/* label */
label {
    font-size: 1.25em;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    top: 10px;
    transition: transform 0.2s ease;
}

/* ===== CONTENT ===== */
.content {
    max-height: 0;
    overflow: hidden;
    background: white;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 0 25px;
    margin-top: 25px;
    transition: all 0.35s ease;
}

.content img {
    display: block;
    width: auto;          /* ✅ empêche l’étirement */
    max-width: 260px;     /* 🔽 taille contrôlée (ajuste si besoin) */
    height: auto;
    margin: 20px auto 15px;
    border-radius: 6px;
}


.content p {
    margin: 15px 0 25px;
    text-align: justify;
}

/* ===== INTERACTION ===== */
.timeline input:checked + .relative label {
    transform: translateX(35px);
}

.timeline input:checked + .relative .dot {
    background: #555;
}

.timeline input:checked ~ .content {
    max-height: 450px;
    border-color: #555;
}

.schema img {
    display: block;              /* 🔑 indispensable */
    margin: 0 auto;              /* 🔑 centre l’image */
    width: 100%;
    max-width: 700px;
    height: auto;
    border: 2px solid #555;
    border-radius: 8px;
    background: white;
}

/* ===== FOOTER ===== */
footer {
    margin-top: 80px;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
    color: #666;
    border-top: 1px solid #ccc;
}

/* ===== SCHEMA METALLURGIE ===== */
.schema {
    margin: 70px auto;
    text-align: center;
}

.schema img {
    width: 100%;
    max-width: 350px; /* ← ajuste ici si besoin */
    height: auto;
    display: block;
    margin: 0 auto;
}

.schema figcaption {
    margin-top: 12px;
    font-size: 0.9em;
    color: #555;
}
