html, body {
    height: 100%;
}


body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f7fafc;
    color: #222;
}

header {
    background: linear-gradient(90deg, #4596c5 0%, #145da0 100%);
    color: #fff;
    padding: 2rem 0 1rem 0;
    text-align: center;
    border-bottom: 4px solid #1b0f184d;
}

header .logo {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

header img {
    height: 60px;
    background: #ffffff;
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

nav {
    background: #EEEEEE;
    border-bottom: 2px solid #145da0;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.04);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: #145da0;
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 0.5rem;
    display: block;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: #002261;
}

nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.08);
    border-radius: 0 0 8px 8px;
    z-index: 10;
}

nav ul li:hover ul {
    display: block;
}

nav ul li ul li a {
    color: #145da0;
    padding: 0.7rem 1rem;
}

main {
    max-width: 900px;
    margin: 2rem auto;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    flex: 1 0 auto;
}

section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.07);
    padding: 2rem;
    flex: 1 1 350px;
    min-width: 320px;
    margin-bottom: 1rem;
    border-left: 6px solid #2e8bc0;
}

section h2, section h3 {
    color: #2e8bc0;
    margin-top: 0;
}

footer {
    background: #145da0;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    letter-spacing: 1px;
    font-size: 1rem;
    border-top: 4px solid #1b0f184d;
}

.peip1-ressources {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    padding: 0;
    list-style: none;
}

.peip1-ressources li {
    background: #f5faff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.07);
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
    width: 320px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.peip1-ressources img {
    width: 320px; 
    height: auto;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.10);
    object-fit: cover;
}

.peip1-ressources a {
    display: inline-block;
    margin: 0.2em 0.3em;
    color: #145da0;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.peip1-ressources a:hover {
    color: #7ccefd;
    text-decoration: underline;
}

.year-block {
    margin-bottom: 2em;
}

.year-block h3 {
    margin-bottom: 0.8em;
    color: #1E3A8A; 
    font-size: 1.3em;
    font-weight: 600;
}

.links-container {
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    justify-content: center;
}

.tag-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid #7a7a7a;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    background-color: hsl(192, 100%, 95%);
    transition: all 0.15s ease;
    width: 180px;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-break: break-word;
}

.tag-link:hover {
    text-decoration: none;
    background-color: #969abd; 
    color: #fff; 
    border-color: #1E3A8A;
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(44,62,80,0.1)
}