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

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, sans-serif;
    background: #f7f7f7;
    color: #333;
}

/* ---- HEADER ---- */
header {
    background: linear-gradient(135deg, #4b79a1, #283e51);
    color: white;
    padding: 15px 10px;
    text-align: center;
    border-bottom: 4px solid #1c2a35;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

header p {
    margin: 0;
    opacity: 0.5;
    font-size: 0.8rem;  /* corrigé: était "0,8rem" avec une virgule */
}

/* ---- MENU PRINCIPAL (gros boutons) ---- */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px;
}

.menu-item {
    background: white;
    border-radius: 12px;
    width: 170px;
    padding: 20px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: #283e51;
    border: 2px solid #d0d7de;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
}

.menu-item:hover {
    transform: translateY(-4px);
    background: #eef3f7;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.menu-item.inactive {
    color: #999;
    cursor: not-allowed;
    text-decoration: none;
}

.menu-item.inactive:hover {
    background-color: #fff0f0;
    border: 1px solid #ffaaaa;
}

/* ---- FIL D'ARIANE ---- */
.breadcrumb {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 20px;
    font-size: 0.95rem;
    color: #555;
}

.breadcrumb a {
    text-decoration: none;
    color: #4b79a1;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ---- CONTENU ---- */
.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}

h2 {
    margin-top: 0;
    font-size: 1.4rem;
    border-left: 6px solid #4b79a1;
    padding-left: 12px;
}

h3 {
    margin: 20px 0 10px 0;
    font-size: 1.2rem;
    border-left: none;
    padding-left: 0;
}

p {
    line-height: 1.6;
    margin: 14px 0;
}

blockquote {
    margin: 20px 0 20px 30px;
    padding: 10px 20px;
    border-left: 4px solid #4b79a1;
    background: #eef3f7;
    color: #333;
    border-radius: 4px;
}

img {
    max-width: 100%;
    height: auto;
    margin: 14px;
    border-radius: 6px;
    border: 2px solid #ccc;
}

strong {
    font-weight: bold;
}

em {
    font-style: italic;
}

/* ---- BACK LINK (gros bouton) ---- */
.back-link {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 20px;
    background: #283e51;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
}

.back-link:hover {
    background: #4b79a1;
    transform: translateY(-2px);
}

/* ---- FOOTER ---- */
footer {
    text-align: center;
    padding: 12px;
    background: #3c4a56;
    color: #fff;
    font-size: 0.9rem;
    margin-top: 40px;
}

footer a {
    color: #fff;
    text-decoration: underline;
}

/* ---- DOCUMENTS ---- */
.doc-card {
    border: 1px solid #ccc;
    padding: 5px 14px;
    border-radius: 8px;
    margin: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-title {
    font-size: 1.05rem;
    margin: 0;
}

.doc-buttons {
    display: flex;
    gap: 8px;
}

.doc-btn {
    padding: 6px 10px;
    font-size: 0.9rem;
    text-decoration: none;
    background: #1a4d7a;
    color: white;
    border-radius: 6px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.doc-btn:hover {
    background: #163f63;
}

/* ---- GALERIE PHOTOS ---- */
.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.photo-gallery img {
    width: 200px;
    cursor: pointer;
    transition: transform 0.2s;
}

.photo-gallery img:hover {
    transform: scale(1.05);
}

.album {
    margin-bottom: 30px;
}

.album h3 {
    text-align: center;
    margin-bottom: 10px;
}

/* ---- LÉGENDES DE PHOTOS ---- */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0 auto;
    max-width: 100%;
    padding: 20px;
}

.figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto 20px;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
}

.figure img {
    width: 100% !important; /* Force la largeur à 100% du conteneur */
    height: auto !important; /* Conserve les proportions */
    display: block;
    border-radius: 4px;
}

.figure-caption {
    background-color: #eee;
    color: #333;
    font-family: Arial, sans-serif;
    font-size: 0.9em;
    text-align: center;
    padding: 8px 0;
    margin-top: 0;
    border-radius: 0 0 4px 4px;
    width: 100%;
    box-sizing: border-box;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }
    .figure {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin-bottom: 20px;
    }
    .figure img {
        height: auto;
        width: 100%;
        max-height: 300px;
        object-fit: contain;
    }
}


@media (max-width: 600px) {
    .photo-gallery img {
        width: 100%;
    }

    nav {
        gap: 14px;
        padding: 20px 10px;
    }

    .menu-item {
        width: 130px;
        padding: 14px;
        font-size: 0.95rem;
    }
}

.content ul {
    padding-left: 40px;
}

.content ul li {
    margin-bottom: 10px;
}

