/*
Theme Name: Vitrine Minimaliste
Author: Rodolphe Monnier - Studio Comme Rod - 2024
Description: Thème WordPress minimaliste et moderne pour Ometis Patrimoine.
Version: 1.0
*/

/* CSS Général */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

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

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-content .logo {
    max-width: 200px; /* Taille agrandie pour le logo */
    margin-bottom: 10px;
}

/* Menu mobile */
.menu-toggle {
    display: none;
    background-color: #010C23;
    color: white;
    padding: 10px 15px;
    font-size: 24px;
    border: none;
    cursor: pointer;
    margin: 10px 0;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin: 0 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        text-align: center;
        width: 100%;
        border-radius: 5px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        text-align: center;
    }

    nav ul.active {
        display: flex;
    }

    .header-content .logo {
        max-width: 150px;
    }
}

/* Sections */
.section {
    padding: 40px 0;
    text-align: center;
    margin: 20px 0;
}

.section:nth-child(even) {
    background-color: #f4f4f4;
}

.section:nth-child(odd) {
    background-color: #ffffff;
}

h1, h2 {
    color: #010C23;
    margin-bottom: 20px;
}

p {
    color: #333;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

/* CTA Button */
.cta {
    background-color: #ff6600;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 20px;
    font-weight: bold;
}

.cta:hover {
    background-color: #e65500;
}

/* Columns */
.columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.column {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 45%;
    text-align: center;
}

.column img {
    max-width: 100px;
    margin-bottom: 10px;
}

/* Slot pour image pleine largeur */
.full-width-image {
    width: 100%;
    height: auto;
    margin: 40px 0;
    padding: 0;
}

.full-width-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
}

.service-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.service-item h3 {
    margin-bottom: 10px;
    color: #010C23;
}

.service-item p {
    color: #333;
}

/* Responsive for services on mobile */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .service-item:nth-child(1),
    .service-item:nth-child(2) {
        grid-column: span 1;
    }

    .service-item:nth-child(n+3) {
        grid-column: span 2;
    }
}

/* Contact form styling */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Contact form with title inside */
#contact h2 {
    text-align: center; /* Centre le texte horizontalement */
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #010C23;
}


form input,
form textarea {
    width: calc(100% - 20px);
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
}

form button {
    width: 100%;
    padding: 15px;
    background-color: #ff6600;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

/* Testimonials grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
    align-items: start;
    margin-top: 40px;
}

.testimonial-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 15px;
    color: #333;
}

.testimonial-item strong {
    font-weight: bold;
    color: #010C23;
}

/* Responsive layout for testimonials on mobile */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Background images for sections */
#apropos {
    background-image: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?q=80&w=2970&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
}

#services {
    background-image: url('https://images.unsplash.com/photo-1526628953301-3e589a6a8b74?q=80&w=2947&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
}

#contact {
    background-image: url('https://images.unsplash.com/photo-1595591330979-bf94c70da6d6?q=80&w=3145&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
}

#contact .container {
    position: relative;
}

#contact .form-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

/* Pour la section Notre Approche sur mobile */
@media (max-width: 768px) {
    .columns {
        flex-direction: column; 
        align-items: center;
    }

    .column {
        width: 100%; 
        max-width: 90%; 
        margin-bottom: 20px; 
    }

    .cta-wrapper {
        width: 100%;
        text-align: center;
    }

    .cta-wrapper a {
        display: inline-block;
        width: 100%; 
        padding: 15px 0; 
        font-size: 16px; 
    }
}

/* Section Nos Accréditations */
#accreditations {
    background-color: #f4f4f4;
    padding: 60px 0;
    text-align: center;
}

#accreditations h2 {
    color: #010C23;
    margin-bottom: 40px;
    font-size: 2em;
}

.accreditations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Deux colonnes pour desktop */
    gap: 20px;
    justify-items: center;
    align-items: center;
}

.accreditation-item img {
    max-width: 200px; 
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .accreditations-grid {
        grid-template-columns: 1fr; 
    }

    .accreditation-item img {
        max-width: 150px; /* Réduire encore plus la taille des logos sur mobile */
    }
}

/* Section Nos Accréditations */
#accreditations {
    background-color: #f4f4f4;
    padding: 25px 0; /* Réduction padding titre */
    text-align: center;
}

#accreditations h2 {
    color: #010C23;
    margin-bottom: 20px; /* Réduction marge  bas du titre */
    font-size: 2em;
}

.accreditations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Quatre colonnes pour desktop */
    gap: 20px;
    justify-items: center;
    align-items: center;
}

.accreditation-item img {
    max-width: 150px; /* Ajuster la taille des logos */
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .accreditations-grid {
        grid-template-columns: repeat(2, 1fr); /* Deux colonnes pour mobile */
    }

    .accreditation-item img {
        max-width: 130px; /* Taille réduite des logos sur mobile */
    }
}

/* Ajustement du titre "Services" */
#services h2 {
    position: relative;
    font-size: 2em;
    font-weight: bold;
    color: #ffffff; 
    background-color: rgba(0, 0, 0, 0.5); /* Fond noir semi-transparent */
    padding: 10px 20px;
    display: inline-block;
    border-radius: 10px;
    text-align: center;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /*ombre portée */
}

#services h2 {
    font-size: 2em; 
    margin-bottom: 30px; /* Espace sous le titre */
    background-color: rgba(0, 0, 0, 0.5); /* Garder effet de fond */
    padding: 10px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

/* Espacement entre le titre et les blocs */
.services-grid {
    margin-top: 20px; 
}

#accreditations h2 {
    margin-top: 20px; 
    margin-bottom: 40px; 
}

#approche .cta-wrapper {
    margin-top: 40px; 
    padding-top: 20px; 
}

@media (min-width: 768px) {
    header {
        padding: 40px 0; 
    }

    .header-content .logo {
        max-width: 200px; 
    }
}

/* Témoignages - fond blanc pour la section, fond gris pour les cartes */
#temoignages {
    background-color: #ffffff; /* Fond blanc pour toute la section */
    padding: 40px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
    align-items: start;
    margin-top: 40px;
}

.testimonial-item {
    background-color: #f4f4f4; /* Fond gris clair pour les cartes */
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 15px;
    color: #333;
}

.testimonial-item strong {
    font-weight: bold;
    color: #010C23;
}

/* Responsive layout for testimonials on mobile */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Agissez dès maintenant - fond gris */
#agir {
    background-color: #f4f4f4; /* Fond gris clair pour la section */
    padding: 40px 0;
    text-align: center;
}

#agir h2 {
    color: #010C23; /* Garde la couleur du titre pour contraster */
}

#agir p {
    color: #333; /* Ajuste la couleur du texte pour une meilleure lisibilité sur le fond gris */
}

#agir .cta {
    background-color: #ff6600; /* Le bouton reste avec le même style */
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 20px;
    font-weight: bold;
}

#agir .cta:hover {
    background-color: #e65500; /* Couleur du bouton au survol */
}

/* Nos accréditations - fond blanc */
#accreditations {
    background-color: #ffffff; /* Fond blanc */
    padding: 40px 0;
    text-align: center;
}

#accreditations h2 {
    color: #010C23; /* Conserve la couleur du titre */
}

.accreditations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 logos par ligne sur desktop */
    gap: 20px;
    justify-items: center;
    align-items: center;
}

.accreditation-item img {
    max-width: 150px; /* Taille des logos ajustée */
    height: auto;
    display: block;
}

/* Responsive layout for accreditations on mobile */
@media (max-width: 768px) {
    .accreditations-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 logos par ligne sur mobile */
    }
}
