@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* === Structure globale avec Flexbox pour footer en bas === */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    background-color: #e3f2fd;
    background-image: none; /* pas de logo sur mobile pour éviter scroll horizontal */
    color: #333;
    padding-top: 80px; /* header + nav */
}

/* === Header === */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px;
    text-align: center;
    box-sizing: border-box;
    background: url("Images/Fond1.png") center/cover no-repeat;
    height: auto;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: -1;
}

.brand {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #E7E2D9;
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 14px;
    margin-top: 5px;
    font-weight: 400;
    color: #E7E2D9;
    position: relative;
    z-index: 1;
}

/* === Navigation === */
nav {
    background: #69A2B0;
    padding: 6px 0;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 70px;
    z-index: 1000;
    box-sizing: border-box;
}

nav a {
    color: white;
    padding: 6px 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    font-size: 12px;
    transition: background 0.3s, color 0.3s;
}

nav a:hover {
    background: #EF8354;
    color: #69A2B0;
    border-radius: 4px;
}

/* === Contenu principal === */
.content-container {
    flex: 1;
    max-width: 95%;
    margin: 0 auto 30px auto;
    padding: 0 10px;
}

/* === Boxes === */
.box {
    padding: 15px;
    background: white;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    border-left: 4px solid #69A2B0;
    line-height: 1.5;
    margin-bottom: 15px;
}

.box h2, .box h3 {
    font-family: 'Bebas Neue', sans-serif;
    color: #EF8354;
    font-weight: 700;
}

.box h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.box h3 {
    font-size: 16px;
}

/* === Footer === */
footer {
    background: #69A2B0;
    color: white;
    text-align: center;
    padding: 8px 0;
    width: 100%;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* === Profile Image === */
.profile-image {
    width: 70px;
    height: 90px;
    border-radius: 15%;
    object-fit: cover;
}

/* === Ajustements très petits écrans (<360px) === */
@media (max-width: 360px) {
    body { padding-top: 100px; }

    .brand { font-size: 20px; }
    header h1 { font-size: 12px; }
    nav a { padding: 4px 6px; font-size: 11px; }
    .box h2 { font-size: 16px; }
    .box h3 { font-size: 14px; }
    .profile-image { width: 60px; height: 80px; }
}
