/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Header et Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header a {
    color: white; /* Couleur blanche pour les liens de l'entête */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: block;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #666;
}

/* Affiche */
.affiche-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.affiche {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.header-image {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.g24-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.mission {
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 10px;
}

.mission h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.mission p {
    color: #666;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 1rem;
        margin-top: 60px;
        gap: 2rem;
    }

    .header-image {
        margin-bottom: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .services-list {
        text-align: center;
        margin-left: 0;
    }

    .services-list ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .services-list li {
        font-size: 1rem;
    }

    img[src='image1.png'] {
        padding-top: 40px;
    }
}

/* Sections générales */
.section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

/* Grille des services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    background-color: #656565; /* Gris foncé pour les cartes en affichage grand écran */
    border: 3px solid gray; /* Bordure grise de 3 pixels */
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #fff; /* Texte blanc pour les titres des cartes */
    margin-bottom: 1rem;
}


/* Formulaire de contact */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 1rem;
    color: #333;
}

.fields input,
.fields textarea {
    width: 100%;
    height: 50px;
    padding: 10px;
    font-size: 16px;
    font-family: inherit; /* Utilise la même police que le reste du site */
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center; /* Centre le texte du placeholder */
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #666;
    outline: none;
}

.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
    border-color: #666;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.security-question {
    background-color: #f8f8f8;
    padding: 1rem;
    border-radius: 4px;
    border: 2px solid #ddd;
    margin-bottom: 20px;
}

.security-question label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.security-question input {
    width: 100px;
    border: 2px solid #ddd;
}

.security-question input:focus {
    border-color: #666;
}

.security-question input:not(:placeholder-shown) {
    border-color: #666;
}

.form-message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
}

.form-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.form-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #66bb6a;
}

.button.alt {
    display: inline-block;
    padding: 1rem 2rem;
    background: #444444; /* Gris foncé */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.button.alt:hover {
    background: #666666; /* Couleur de survol */
}

/* Style pour les messages d'erreur */
.form-group .error {
    color: #666;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Style pour les champs invalides */
.form-group input:invalid,
.form-group textarea:invalid {
    border-color: #666;
}

/* Media Queries */
@media (max-width: 768px) {
    .contact-container {
        padding: 1rem;
    }

    .button.alt {
        width: 100%;
        align-self: stretch;
    }
}

/* Bouton CTA */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #0052a3;
}

/* Alertes */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    text-align: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: #ccc;
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .section {
        padding: 3rem 5%;
    }
    
    .logo-img {
        height: 40px;
    }
}
