/* Basic Reset & Body Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}



/* Header Styling */
header {
    background-color: #2c3e50; /* Dark blue-grey */
    color: #ecf0f1; /* Light grey */
    padding: 1rem 1.5rem; /* Ajustez le padding si nécessaire */
    /* text-align: center; */ /* Supprimez ou commentez cette ligne */
    display: flex;         /* AJOUT: Active Flexbox */
    align-items: center;   /* AJOUT: Aligne verticalement logo et texte */
    justify-content: center;/* AJOUT: Centre l'ensemble logo+texte horizontalement */
    flex-wrap: wrap;       /* Optionnel: Permet au texte de passer dessous sur petits écrans */
}

/* Style pour le logo dans le header */
.header-logo {
    height: 50px; /* Définissez la hauteur souhaitée pour le logo */
    width: auto;  /* Laisse la largeur s'ajuster pour garder les proportions */
    margin-right: 15px; /* Espace entre le logo et le titre h1 */
    /* Optionnel: ajoutez un margin-bottom si flex-wrap est actif et que vous voulez de l'espace verticalement */
    /* margin-bottom: 10px; */
}
.site-header {
  background: #fff;
  padding: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  height: 50px;
}
.header-nav .btn {
  padding: 0.5rem 1rem;
  background: #2c3e50;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}
.header-nav .btn:hover {
  background: #1a242f;
}

header h1 {
    margin-bottom: 0.5rem;
}

/* Main Content Area */
main {
    flex-grow: 1; /* Pushes footer down */
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

main section {
    background-color: #fff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

main h2 {
    color: #3498db; /* Blue */
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

/* Form Styling */
#contact-form .form-group {
    margin-bottom: 1rem;
}

#contact-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
    color: #555;
}

#contact-form .required {
    color: #e74c3c; /* Red */
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="tel"],
#contact-form textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

#contact-form textarea {
    resize: vertical; /* Allow vertical resize only */
    min-height: 80px;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

/* Recaptcha needs some space */
.recaptcha-container {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    min-height: 78px; /* Approximate height of the reCAPTCHA widget */
}

/* Form Status Message Styling */
#form-status {
    margin-top: 1rem;
    font-weight: bold;
    padding: 0.8rem;
    border-radius: 4px;
    display: none; /* Hidden by default */
}

#form-status.success {
    background-color: #d4edda; /* Light green */
    color: #155724; /* Dark green */
    border: 1px solid #c3e6cb;
    display: block;
}

#form-status.error {
    background-color: #f8d7da; /* Light red */
    color: #721c24; /* Dark red */
    border: 1px solid #f5c6cb;
    display: block;
}


/* Button Styling */
#contact-form button[type="submit"] {
    background-color: #3498db; /* Blue */
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact-form button[type="submit"]:hover {
    background-color: #2980b9; /* Darker blue */
}

/* Footer Styling */
footer {
    background-color: #34495e; /* Darker slate grey */
    color: #bdc3c7; /* Lighter grey */
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem; /* Pushes it away from content */
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 0.3rem;
}

/* Basic Responsiveness */
@media (max-width: 600px) {
    main {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    main section {
        padding: 1rem;
    }

    #contact-form button[type="submit"] {
        width: 100%;
        padding: 0.9rem;
    }
}