* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* S'assurer que la page prend toute la hauteur */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden; /* Empêche le scroll horizontal */
    box-sizing: border-box;
    font-family: sans-serif;
}

*, *::before, *::after {
    box-sizing: inherit; /* hérite de html -> box-sizing: border-box */
}

.my-section {
    max-width: 100%;
    padding: 20px;
}

/* Écran de chargement */
#loading-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    color: #000000;
    background-color: #E07A5F;
    font-size: 2.5rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

header{
    position: fixed;
    width: 100%;
} 

/* Style de la navbar par défaut */
.navbar {
    margin: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* padding: 10px; */
    background-color: #ffffff;
    border-radius: 50px;
}

/* Style des liens */
.navbar a {
    padding: 20px;
    text-decoration: none;
    color: #000000;
}

.contact{
    padding: 10px;
    border-radius: 50px;
    text-decoration: none;
    color: #000000;
    background-color: #E07A5F;
}

.navbar-mobile {
    display: none;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 10px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.logo img {
    height: 50px;
    width: 50px;
}

.menu-toggle {
    font-size: 26px;
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-menu {
    position: fixed;
    top: 1;
    left: -100%;
    width: 75%;
    height: 100%;
    background-color: #ffffff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1;
}

.mobile-menu a {
    text-decoration: none;
    color: #D16C50;
    font-size: 18px;
}

.mobile-menu.active {
    left: 0;
}

.welcome-section {
    height: 90vh;
    width: 100%;
    background: linear-gradient(rgba(113, 76, 76, 0.8), rgba(149, 25, 25, 0.8)), url('/img/baobab.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Assure l'alignement vertical */
}

/* Styling for the main heading */
.welcome-header h1 {
    font-size: 4rem;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px; /* Ajout d'un espacement pour les éléments suivants */
}

/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: #333;
}

/* Header */
.header {
    background-color: #D16C50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.header h1 {
    margin: 0;
}

/* Contact Page Layout */
.contact-page {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    padding: 40px;
    gap: 30px;
}

/* Contact Form */
.contact-form {
    flex: 1;
    max-width: 500px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    text-align: center;
    color: #D16C50;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

textarea {
    resize: none;
}

.submit-button {
    width: 100%;
    padding: 10px 15px;
    background-color: #D16C50;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #D16C50;
}

.reseaux {
    font-size: 1.5rem;
    display: flex;
    color: #ffffff;
    flex-direction: column;
    align-items: center; /* Centre horizontalement */
    justify-content: center; /* Centre verticalement */
    height: 40vh; /* Ajuste la hauteur pour centrer sur toute la page */
    text-align: center; /* Centre le texte */
    background-color: #D16C50;
}

.reseaux-content {
    margin-bottom: 20px;
}

.reseaux-content p{
    margin-top: 15px;
}

.social-media {
    display: flex;
    gap: 50px;
}

.social-link {
    font-size: 24px;
    color: #ffffff;
    text-decoration: none;
    font-size: 3rem;
}

/* Company Info */
.company-info {
    flex: 1;
    font-size: 1.3rem;
    max-width: 400px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.company-info h2 {
    text-align: center;
    color: #D16C50;
    margin-bottom: 20px;
}

.company-info p {
    margin: 10px 0;
    display: flex;
}

.company-info i {
    padding-right: 20px;
    color: #D16C50;
}

.newsletter {
    text-align: center;
    padding: 40px;
    /* background-color: #F4A261; */
    border-radius: 8px;
    margin-bottom: 40px;
}

.newsletter h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.newsletter p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* ------------------- MEDIA QUERIES ------------------- */
/* 📱 Téléphones - < 768px */
@media (max-width: 767px) {
.navbar {
    display: none;
}

.navbar-mobile {
    display: flex;
}
}

/* 📱 Tablettes - entre 768px et 992px */
@media (min-width: 768px) and (max-width: 992px) {
.navbar {
    padding: 8px;
    flex-direction: column;
    gap: 10px;
    border-radius: 20px;
}

.navbar a {
    padding: 10px;
    font-size: 16px;
}

.contact {
    font-size: 14px;
    padding: 8px;
}

/* On garde la navbar visible */
.navbar {
    display: flex;
}

.navbar-mobile {
    display: none;
}
}