/* 
 * 🎨 FEUILLE DE STYLE PRINCIPALE 🎨
 * Tous les styles du site sont centralisés ici
 * pour une meilleure organisation et maintenance.
 */

/* Variables globales */
:root {
  --primary-bg: black;
  --text-color: gray;
  --heading-color: white;
  --subheading-color: lightgray;
  --card-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  --card-hover-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styles de base du corps de la page */
body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--primary-bg);
  margin: 0;
}

/* Styles des titres */
h1, h2, h3 {
  color: var(--heading-color);
}

h4, h5, h6 {
  color: var(--subheading-color);
}

/* 
 * 🎯 EN-TÊTE ET NAVIGATION
 */
header {
    background-color: var(--primary-bg);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: top 0.3s;
    padding: 1rem 0;
}

header a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

header a:hover {
    color: #aaa;
}

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;
}

/* 
 * 🏆 SECTION HÉRO
 */
.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: 100px;
        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;
}

/* 
 * 🛠️ CARTES DE SERVICES
 */

/* Grille des services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Style des cartes de service */
.service-card {
  background-color: #000; /* Fond noir pur */
  border: 1px solid #333; /* Bordure gris foncé */
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* Effet de survol des cartes */
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
  border-color: #555; /* Bordure plus claire au survol */
}

/* Titres des cartes */
.service-card h3 {
  color: var(--heading-color);
  font-weight: bold;
  margin: 0 0 1rem 0;
  text-align: center;
}

/* Texte des cartes */
.service-card p {
  color: #aaa;
  text-align: center;
  margin: 0 0 1.5rem 0;
}

/* Images dans les cartes */
.service-card img {
  width: 45%;
  height: auto;
  border-radius: 5px;
  margin-top: auto;
  max-height: 150px;
  object-fit: contain;
}

/* 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;    
    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;
    }
}
