/* Mise en ligne des éléments du menu */
.menu {
    display: flex;
    align-items: center;
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
    font-weight: bold;
    background-color: #030c1a;
    justify-content: space-around; /* Espacement égal entre les éléments */
}

.menu .logo {
    margin-right: auto;
}

.menu .logo img {
    height: 40px;
    width: auto;
}

.menu li {
    margin-right: 20px;
}

.menu a {
    text-decoration: none;
    color: white;
}

.menu a:hover {
    color: #007bff;
}

.menu .lien {
    margin-left: 10px;
}

/* Mise en ligne des éléments du corps */
body {
    font-family: 'signika', sans-serif;
    background-color: #ddf4fa;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

main {
    margin-left: 10%;
    margin-right: 10%;
}

h2 {
    color: #2d2e83;
}

h3 {
    color: #07afdd;
}

p {
    font-size: 1.1em;
    line-height: 1.8;
    letter-spacing: 0.5px;
    color: #030c1a;
}

h1 {
    background: linear-gradient(
            rgba(0, 0, 0, 0.5), 
            rgba(0, 0, 0, 0)
        ), url('Ressources/banner.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 0 0 8px 8px;
    padding: 150px;
    color: #e7e7e7;
    text-align: center;
    margin-top: 0px;
    font-size: 3.5em;
    font-weight: bold;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.7), 1px 1px 5px rgba(255, 255, 255, 0.6);
}

.parti {
    gap: 20px;
    margin: 20px;
    padding: 20px;
    margin-left: 10%;
    margin-right: 10%;
    background-color: #fceded;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.parti img {
    width: 300px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 20px;
    height: 300px;
    align-self: center;
}

.parti h3 {
    text-align: center;
}

.titre-texte {
    width: auto;
    margin-right: 20px;
}

.image-container {
    display: flex;
    align-items: flex-start;
}
/*mise en page footer*/

footer {
    background-color: #030c1a;
    color: #fff;
    padding: 50px;
    border-radius: 8px 8px 0 0;
}

.footer-li {
        display: flex;
        align-items: center;         /* Aligne le logo et les liens au centre verticalement */
        list-style-type: none;
        padding: 0;
        margin: 0;
        font-weight: bold;
        background-color: #030c1a;
    }


footer ul {
    list-style-type: none;
    padding: 0;
    margin: 0; 
    margin-right: auto;
}

footer img {
    width: 150px;
    margin-left: 50%;
 
}


* {
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
  }

/* Responsive Design */
@media (max-width: 768px) {
    .menu {
        flex-direction: column;
        justify-content: flex-start;
    }

    .menu li {
        margin-bottom: 10px;
    }

    .portfolio {
        flex-direction: column;
        align-items: center;
    }

    form {
        width: 90%;
    }

    input[type="text"], input[type="email"], textarea {
        width: 100%;
    }

    .parti {
        flex-direction: column;
    }

    .image-container {
        flex-direction: column;
    }
    body {
        height: 100%;
        width: 100%;
    }
    
    main {
        margin: 2px;
    }
    
	h1 {
        font-size: 35px;
        text-align: justify;
        height: 40px;
        width: 100%;
        margin: 0;
        justify-content: center;


	}
	.slider {
        flex-direction: column;
		
	}
	.slider--btn { 
        justify-content: center;
		margin: 10%;
	}
	footer img {
        width: 100px;
	}
	.menu .logo img {
        height: 90px;
	}
}

/* Responsive Design pour les petits écrans (moins de 600px) */
@media (max-width: 600px) {
    h1 {
        font-size: 2.5em; /* Réduire la taille du titre */
        padding: 80px 20px;
        text-align: center;
        background-size: cover;
        background-position: center;
        height: auto; /* Ajuster la hauteur pour éviter le débordement */
        margin-top: 0;
        margin-bottom: 20px; /* Réduire l'espace sous le titre */
    }

    /* Optionnel : ajuster la taille de l'image de fond */
    h1 {
        background-size: contain; /* Permet de contenir l'image sans la couper */
    }

    /* Réduire la hauteur de l'image de fond de h1 */
    h1::before {
        content: "";
        display: block;
        height: 40%; /* Ajuste cette valeur pour éviter le débordement */
        width: 100%;
    }
}
@media (max-width: 580px) {
    h1 {
        font-size: 2.2em;
        padding: 60px 15px;
        text-align: center;
        background-size: cover;
        background-position: center;
        height: auto;
        margin-top: 0;
        margin-bottom: 15px;
    }


}
/* Responsive Design pour petits écrans */
@media (max-width: 480px) {
    .menu {
        flex-direction: column; /* Menu en colonne */
        align-items: center;
        justify-content: flex-start;
    }

    .menu li {
        margin-bottom: 10px;
        text-align: center;
    }

    .menu .logo img {
        height: 60px; /* Logo plus petit */
    }

    /* Menu hamburger - Icône pour très petit écran */
    .menu-toggle {
        display: block;
        cursor: pointer;
        padding: 10px;
    }

    .menu ul {
        display: none; /* Masquer les éléments de menu */
    }

    .menu.open ul {
        display: flex; /* Afficher le menu quand la classe 'open' est ajoutée */
        flex-direction: column;
    }

    /* Titres */

    h2 {
        font-size: 1.6em;
    }

    h3 {
        font-size: 1.4em;
    }

    p {
        font-size: 1em;
    }

    .parti img {
        width: 200px; /* Réduire la taille des images */
        height: 200px;
    }

    /* Formulaires */
    form {
        width: 100%;
        padding: 15px;
    }

    input[type="text"], input[type="email"], textarea {
        width: 100%;
        padding: 10px;
        font-size: 1em;
        margin-bottom: 15px;
    }

    .image-container {
        flex-direction: column;
    }

    footer {
        padding: 30px;
        text-align: center;
    }

    footer img {
        width: 80px;
    }

    .slider {
        flex-direction: column;
    }

    .slider--btn {
        margin: 10% 0;
    }
}
