@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;
    padding-top: 50px;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #e3f2fd;
    background-image: url('Images/LOGO2.png'), url('Images/LOGO2.png');
    background-repeat: repeat-y, repeat-y;
    background-position: left 140px, right 140px;
    background-size: 100px auto, 100px auto;
    color: #333;
    font-size: 16px;

    /* ===== Nouveau fix pour que le contenu soit sous header + nav ===== */
    padding-top: 140px; /* ajuster selon la hauteur combinée header + nav */
}

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

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

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

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

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

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

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

/* === Contenu principal (flex:1 pour pousser le footer en bas) === */
.content-container {
    flex: 1;
    max-width: 800px;
    margin: 0 auto 60px auto; /* plus besoin de margin-top grâce au padding-top du body */
    padding: 0 10px;
}

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

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

.box h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

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

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

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

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

/* === Profile Image === */
.profile-image {
    width: 120px;
    height: 150px;
    border-radius: 20%;
    object-fit: cover;
}

/* === Responsive Mobile === */
@media (max-width: 768px) {

    body {
        background-image: none;
        padding-top: 120px; /* ajustement header+nav pour mobile */
    }

    .content-container {
        max-width: 95%;
        padding: 0 5px;
        margin-bottom: 40px;
    }

    .brand {
        font-size: 28px;
    }

    header h1 {
        font-size: 16px;
    }

    nav {
        top: 70px;
        padding: 8px 0;
    }

    nav a {
        padding: 8px 10px;
        font-size: 14px;
    }

    .box {
        padding: 15px;
        border-left-width: 4px;
    }

    .box h2 {
        font-size: 20px;
    }

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

    .profile-image {
        width: 90px;
        height: 110px;
    }
}

/* === Responsive très petit mobile === */
@media (max-width: 480px) {
    body {
        padding-top: 100px;
    }

    .brand {
        font-size: 24px;
    }

    nav a {
        padding: 6px 8px;
        font-size: 12px;
    }

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

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

    .profile-image {
        width: 70px;
        height: 90px;
    }

    .content-container {
        margin-bottom: 30px;
    }
}
