/* Généralités */
:root {
    --primary-color: #003366; /* Bleu foncé (exemple) */
    --secondary-color: #f4f4f4; /* Gris clair (exemple) */
    --accent-color: #ff9900; /* Orange (exemple) */
    --text-color: #333;
    --font-family: 'Open Sans', sans-serif; /* Choisissez une police de caractère lisible */
    --font-size-base: 16px; /* Taille de base de la police */
    --border-radius: 5px; /* Pour les coins arrondis */
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ombre légère */
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text-color);
    background-color: var(--secondary-color);
    margin: 0;
    line-height: 1.6;
}

.container {
    width: 80%; /* Largeur du contenu principal */
    max-width: 1200px; /* Pour éviter que ça ne devienne trop large sur les grands écrans */
    margin: 0 auto; /* Centre le contenu */
    padding: 20px; /* Ajoute un peu d'espace */
}

a {
    text-decoration: none; /* Enlève le soulignement des liens */
    color: var(--primary-color); /* Couleur par défaut des liens */
    transition: color 0.3s ease; /* Ajoute une transition de couleur */
}

a:hover {
    color: var(--accent-color); /* Couleur des liens au survol */
}

h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.5em;
}

p {
    margin-bottom: 15px;
}

ul {
    list-style: none;  /* Enlève les puces des listes */
    padding: 0;
}

img {
    max-width: 100%; /* Assure que les images ne dépassent pas leur conteneur */
    height: auto; /* Garde les proportions des images */
    display: block; /* Pour éviter des problèmes de positionnement */
    margin-bottom: 15px;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-right: 10px; /* Espace entre les boutons */
    margin-bottom: 10px; /* Espace en dessous des boutons */
    white-space: nowrap; /* Pour éviter que le texte du bouton ne passe à la ligne */
}

.button:hover {
    opacity: 0.9; /* Légère opacité au survol */
}

.primary-button {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
}

.primary-button:hover {
    background-color: darken(var(--accent-color), 10%); /* Assombrit la couleur au survol */
}

.secondary-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-button:hover {
    color: #fff;
    background-color: var(--primary-color);
}

/* Header */
header {
    background-color: #fff;
    box-shadow: var(--box-shadow);
    padding: 10px 0;
    position: sticky; /* Fixe l'en-tête en haut lors du défilement */
    top: 0;
    z-index: 100; /* Assure que l'en-tête reste au-dessus du reste */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    height: 60px; /* Ajustez la hauteur du logo */
}

nav ul {
    display: flex;
    gap: 20px; /* Espace entre les éléments du menu */
}

nav a {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: var(--border-radius);
}

nav a:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.contact-header .call-button {
    background-color: var(--accent-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--border-radius);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/frames-serrurerie-idf/sd-servive-serrurerie-idf-18.jpeg'); /* Image de fond avec un effet de transparence */
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.cta-buttons {
    margin-top: 20px;
}

/* Services Section */
.services {
    padding: 40px 0;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Colonnes responsives */
    gap: 30px; /* Espace entre les cartes */
}

.service-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    text-align: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px); /* Effet au survol */
}

.service-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

/* Why Us Section */
.why-us {
    padding: 40px 0;
    background-color: #f0f0f0;
    text-align: center;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.why-us-item {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
}

.why-us-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

/* Testimonials Section (facultatif) */
.testimonials {
    padding: 40px 0;
    text-align: center;
}

.testimonial-slider {
    /* Utilisez un plugin de slider ou ajoutez le code CSS pour le slider ici */
}

.testimonial-item {
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: #fff;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}

.author {
    font-style: italic;
    color: #888;
}

/* Call to Action Section */
.cta {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 20px 0;
    font-size: 0.9em;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

footer .footer-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.footer-column {
    flex: 1;
    margin-right: 20px;
}

.footer-column h3 {
    color: #fff;
}

footer .logo img {
    height: 40px;
    margin-bottom: 15px;
}

footer a {
    color: #fff;
}

footer a:hover {
    text-decoration: underline;
}

footer ul {
    margin-top: 0;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    width: 100%;
}

/* Media Queries pour la Responsivité */
@media (max-width: 768px) {
    .container {
        width: 90%; /* Réduit la largeur sur les tablettes */
    }

    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        margin-top: 10px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.5em;
    }

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

    .cta-buttons a {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-column {
        margin-bottom: 20px;
    }

    .copyright {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.75em;
    }
    h3 {
        font-size: 1.25em;
    }

    nav ul {
        flex-direction: column; /* Menu en colonne sur les smartphones */
        text-align: center;
    }

    .hero-image {
        display: none; /* Cache l'image sur les petits écrans (si nécessaire) */
    }
}