
:root {
    --bg: #1f99e021;
    --text: #222222;
    --title: #111111;
    --muted: #666666;
    --card: #f5f6f8;
    --border: #e3e5e8;
    --accent: #2563eb;
}





/* =====================================================================
   BASE
   ===================================================================== */
body {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
}

a {
    color: var(--accent);
}


/* =====================================================================
   TITRES
   ===================================================================== */
h1 {
    text-align: center;
    color: var(--title);
    font-size: 2rem;
    margin: 2rem 0 1.5rem;
}

h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    margin: 0.6rem auto 0;
    background: var(--accent);
    border-radius: 2px;
}

h2 {
    text-align: left;
    color: var(--title);
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    padding-left: 0.75rem;
    border-left: 4px solid var(--accent);
}
h3{
     border-radius: 2px;
}


/* =====================================================================
   IMAGE D'INTRODUCTION : grande, centrée, en haut d'une page projet
   Usage : <img src="..." class="image-intro">
   ===================================================================== */
img.image-intro {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 1.5rem auto 3rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}


/* =====================================================================
   TABLEAUX
   ===================================================================== */
table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 1rem;
    border: none;
    margin: 0 auto;
}

td {
    border: none;
    vertical-align: middle;
}

.titre,
#titre {
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--title);
}


/* =====================================================================
   PAGES PROJETS : texte en carte, images à côté
   ===================================================================== */
.texte,
#texte {
    padding: 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
}

.superposees {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#image img,
#projets_images img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}


/* =====================================================================
   PAGE D'ACCUEIL : vignettes cliquables
   ===================================================================== */
td a img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

td a img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}


/* =====================================================================
   MOBILE
   ===================================================================== */
@media (max-width: 700px) {
    body {
        padding: 1rem;
    }

    table,
    tbody,
    tr,
    td {
        display: block;
        width: 100%;
    }

    table {
        border-spacing: 0;
    }

    td {
        margin-bottom: 1rem;
    }
}
.images-cote-a-cote {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: center;
    margin: 1.5rem 0 1rem;
}

.images-cote-a-cote > img,
.images-cote-a-cote > figure {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.images-cote-a-cote img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.images-cote-a-cote figcaption {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
}

/* bloc de texte juste sous les images */
.images-cote-a-cote + .texte {
    margin-top: 1rem;
}