/* ================= GLOBAL ================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f6f8;
    color: #2c2c2c;
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ================= LOGO ================= */

/* Positionnement du logo en haut à gauche */
.logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);

    width: 120px;
    height: 120px;

    object-fit: cover;
    border-radius: 50%;
    border: 3px solid white;

    z-index: 1; /* derrière le texte */
}

/* ================= HEADER ================= */

header {
    background-color: #0f2a44;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Centre uniquement le bloc titre */
.header-container {
    position: relative; /* Permet positionnement absolu du logo */
    padding: 25px 0 15px 0;
    text-align: center; /* Garde le texte centré */
}

.header-text h1 {
    margin: 0;
    font-weight: 600;
    font-size: 34px;
    letter-spacing: 1px;
	position: relative;
    z-index: 2; /* le texte passe devant */
}

.header-text p {
	width : 100%;
    margin: center;
	text-align: center;
	padding: 15px 0 15px 0;
    font-weight: 500;
    font-size: 19px;
}

/* ================= NAVIGATION ================= */

nav {
    background-color: #0c2238;
}

/* CENTRAGE UNIQUEMENT DES ONGLETS */
nav ul {
    list-style: none;
	width : 100%;
    margin: center;
    padding: 15px 0;
	
    display: flex;
    justify-content: center;  /* <-- c'est ici que les onglets sont centrés */
    align-items: center;
    gap: 35px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #4da3ff;
}

/* ================= SECTIONS ================= */

.section {
    padding: 80px 0;
    background-color: white;
}

.section.alt {
    background-color: #e9edf2;
}

h2 {
    text-align: center; /* Titre centré comme avant */
    margin-bottom: 35px;
    font-weight: 600;
    color: #0f2a44;
}

/* Texte normal aligné à gauche */
p {
    max-width: 850px;
    margin: 15px auto;
    text-align: left;
}

ul {
    max-width: 800px;
    margin: 25px auto;
}

ul li {
    margin-bottom: 12px;
}

/* ================= FOOTER ================= */

footer {
    background-color: #0f2a44;
    color: white;
    text-align: center;
    padding: 30px 0;
    font-size: 13px;
}

/* ================= RESPONSIVE ================= */

/* Tablette et mobile */
@media screen and (max-width: 768px) {

    .header-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .logo {
        position: static;   /* On annule le absolute */
        transform: none;
        margin-bottom: 10px;

        width: 50px;
        height: 50px;
    }
}

/* Petit mobile */
@media screen and (max-width: 480px) {

    .header-text h1 {
        font-size: 20px;
    }

    nav ul {
        gap: 12px;
    }

    p {
        font-size: 14px;
    }

    .logo {
        width: 40px;
        height: 40px;
    }
}