/* Débridage strict Pleine Largeur pour la page Contact */
body.page-template-page-contact #page,
body.page-template-page-contact #content,
body.page-template-page-contact .site-main,
body.page-template-page-contact .inside-article {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    display: block !important;
}

/* Réinitialisation du conteneur de la page contact */
.foster-contact-page {
    width: 100% !important;
    background-color: #121212;
    color: #e0e0e0;
    min-height: 80vh;
}

.foster-contact-page .foster-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Débridage du conteneur GeneratePress pour la page A Propos */
.page-template-page-a-propos .site-main,
.page-template-page-a-propos #content,
.page-template-page-a-propos #page {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.foster-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- FOSTER + PARTNERS HOMEPAGE LAYOUT --- */

body.home {
    background-color: #121212 !important;
    color: #ffffff;
    margin: 0;
}

/* Header overlay transparent */
body.home .site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%) !important;
    border-bottom: none !important;
    z-index: 100;
}

/* 1. HERO SECTION */
/* Force la section Hero et le conteneur à prendre tout l'écran */
.foster-hero {
    position: relative;
    width: 100vw !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    height: 85vh;
    overflow: hidden;
}

.hero-slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat !important;
    display: flex;
    align-items: flex-end;
    padding: 60px 50px;
    width: 100% !important;
    height: 100% !important;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-tag {
    display: block;
    font-size: 0.85rem;
    color: #cccccc;
    margin-bottom: 8px;
    font-weight: 300;
}

.hero-title {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 400;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.hero-dots .dot.active {
    background-color: #ffffff;
}

/* --- 2. STUDIO SECTION (PROPORTIONS D'HAUTEUR COMPACTES FOSTER) --- */
.foster-studio-section {
    padding: 60px 40px 80px;
    background-color: #121212;
}

.foster-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-heading {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 25px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

/* Grille Supérieure : Réduction de la hauteur globale */
.studio-grid-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    align-items: stretch;
}

.studio-card {
    background-color: #1a1a1a;
    border-radius: 0px;
    overflow: hidden;
    position: relative;
    /* Hauteur fixe compacte identique à Foster */
    height: 380px !important; 
    min-height: 380px !important;
}

.card-image-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(15%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.studio-card:hover .card-image-wrap img {
    transform: scale(1.03);
    filter: grayscale(0%);
}

.studio-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 40%);
    pointer-events: none;
    z-index: 1;
}

.card-tag {
    position: absolute;
    bottom: 25px;
    left: 25px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    z-index: 2;
    letter-spacing: 0.5px;
}

/* Bloc Citation : Hauteur calée sur 380px et padding ajusté */
.quote-card {
    background-color: #1c1c1c;
    padding: 35px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0px;
    height: 380px !important;
    box-sizing: border-box;
}

.quote-text {
    font-size: 1.05rem;
    line-height: 1.55;
    color: #dddddd;
    font-weight: 300;
    margin-bottom: 25px;
    letter-spacing: 0.2px;
}

.quote-author {
    display: block;
    font-size: 0.82rem;
    color: #888888;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Grille Inférieure : Cartes également plus compactes */
.studio-grid-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sub-card {
    height: 240px !important;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .studio-grid-top {
        grid-template-columns: 1fr;
    }
    
    .studio-card,
    .quote-card {
        height: auto !important;
        min-height: 280px !important;
    }

    .studio-grid-bottom {
        grid-template-columns: 1fr;
    }

    .foster-studio-section {
        padding: 40px 20px;
    }
}

/* --- FULL WIDTH HERO SLIDER FIX --- */

/* Annulation des limites de largeur et des paddings de GeneratePress sur l'accueil */
body.home .site-main,
body.home #page,
body.home .inside-article {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* --- FOSTER EXPERTISE GRID (AJUSTÉ POUR ÉCRAN UNIQUE) --- */
.foster-expertise-section {
    padding: 40px 40px 60px; /* Padding réduit pour gagner de la hauteur */
    background-color: #121212;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes x 2 lignes = 4 cartes visibles */
    gap: 20px;
    margin-top: 20px;
}

.expertise-card {
    position: relative;
    display: block;
    text-decoration: none !important;
    overflow: hidden;
    border-radius: 4px;
}

.expertise-image-wrapper {
    position: relative;
    width: 100%;
    /* Hauteur calculée pour s'adapter à l'écran : 
       ~32vh permet d'avoir 2 rangées complètes + le titre "Expertise" 
       visibles sans scroll sur un écran standard 1080p ou MacBook
    */
    height: 32vh; 
    min-height: 200px;
    max-height: 300px;
    overflow: hidden;
    background-color: #1c1c1c;
}

.expertise-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit parfaitement le cadre sans déformer */
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Gradient sombre discret en bas de chaque carte */
.expertise-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 60%);
    transition: opacity 0.4s ease;
}

/* Titre superposé en bas à gauche */
.expertise-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    margin: 0;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    z-index: 2;
}

/* Effet Hover Foster */
.expertise-card:hover .expertise-image {
    transform: scale(1.05);
}

.expertise-card:hover .expertise-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.1) 60%);
}

/* Adaptation pour écrans mobiles et tablettes */
@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .expertise-image-wrapper {
        height: 220px;
    }
}

/* --- TESTIMONIALS SECTION STYLE --- */
.foster-testimonials-section {
    padding: 80px 40px 120px;
    background-color: #121212;
    border-top: 1px solid #262626;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: #1c1c1c;
    padding: 35px 30px;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.testimonial-card:hover {
    background-color: #222222;
    transform: translateY(-4px);
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.6;
    color: #d4d4d4;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 30px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(40%);
    transition: filter 0.3s ease;
}

.testimonial-card:hover .client-avatar {
    filter: grayscale(0%);
}

.client-name {
    font-size: 0.95rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 3px 0;
}

.client-role {
    font-size: 0.8rem;
    color: #888888;
    font-weight: 300;
    display: block;
}

/* Responsive tablette / mobile */
@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* --- PARTNERS CAROUSEL & FULL LOGOS --- */
.foster-partners-section {
    padding: 80px 40px 100px;
    background-color: #121212;
    border-top: 1px solid #262626;
}

.partners-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    margin-top: 40px;
}

.partners-track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Dimensions des cases */
.partner-card {
    flex: 0 0 calc(20% - 16px); /* 5 cartes visibles par ligne */
    height: 120px;
    background-color: #181818;
    border: 1px solid #282828;
    border-radius: 4px;
    padding: 15px; /* Espacement interne pour aérer */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.partner-card:hover {
    border-color: #444444;
    background-color: #202020;
}

.partner-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Supprimez ou commentez la ligne filter ci-dessous : */
    /* filter: brightness(0) invert(1) opacity(70%); */
    
    opacity: 0.7; /* Utilisez simplement l'opacité */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.partner-card:hover .partner-logo {
    opacity: 1;
    transform: scale(1.05);
}

/* Adaptabilité Mobile / Tablette */
@media (max-width: 1024px) {
    .partner-card {
        flex: 0 0 calc(33.333% - 14px); /* 3 cartes par ligne */
    }
}

@media (max-width: 600px) {
    .partner-card {
        flex: 0 0 calc(50% - 10px); /* 2 cartes par ligne */
    }
}

/* --- FOSTER FOOTER STYLES --- */
.foster-site-footer {
    background-color: #0d0d0d;
    color: #a3a3a3;
    padding: 80px 40px 40px;
    border-top: 1px solid #222222;
    font-size: 0.9rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid #1a1a1a;
}

/* Branding */
.footer-logo {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 0 0 15px 0;
}

.footer-desc {
    line-height: 1.6;
    color: #888888;
    max-width: 320px;
}

/* En-têtes des colonnes */
.footer-heading {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Liens du footer */
.footer-links, .footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a3a3a3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-contact-info li {
    margin-bottom: 12px;
    color: #888888;
    line-height: 1.5;
}

.footer-contact-info span {
    color: #ffffff;
    display: block;
    font-size: 0.85rem;
}

/* Section Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    font-size: 0.8rem;
    color: #666666;
}

.copyright {
    margin: 0;
}

.legal-links {
    display: flex;
    gap: 25px;
}

.legal-links a {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #aaaaaa;
}

/* Responsive Tablette / Mobile */
@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* --- FOSTER ABOUT PAGE STYLES --- */

.foster-about-page {
    background-color: #121212;
    color: #e0e0e0;
}

/* 1. Hero Banner */
.about-hero {
    position: relative;
    width: 100%;
    height: 65vh;
    min-height: 450px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
}

.about-hero-image-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.about-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 18, 18, 1) 0%, rgba(18, 18, 18, 0.4) 60%, rgba(0, 0, 0, 0.6) 100%);
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.about-title {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
}

.about-subtitle {
    font-size: 1.25rem;
    color: #cccccc;
    line-height: 1.5;
    font-weight: 300;
}

/* 2. Intro / Vision Section */
.about-intro-section {
    padding: 90px 40px;
    border-bottom: 1px solid #222222;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.about-intro-heading h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.3;
}

.about-intro-text .lead-text {
    font-size: 1.2rem;
    color: #ffffff;
    line-height: 1.7;
    margin-bottom: 24px;
}

.about-intro-text p {
    font-size: 1rem;
    color: #a0a0a0;
    line-height: 1.8;
}

/* 3. Pillars / Key Features */
.about-pillars-section {
    padding: 90px 40px;
    background-color: #0d0d0d;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.pillar-card {
    padding: 30px;
    background-color: #161616;
    border: 1px solid #222222;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.pillar-card:hover {
    border-color: #444444;
}

.pillar-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
    color: #666666;
    margin-bottom: 20px;
}

.pillar-card h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.pillar-card p {
    color: #999999;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* 4. Quote Section */
.about-quote-section {
    position: relative;
    height: 45vh;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.about-quote-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.quote-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-quote-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.quote-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.quote-content blockquote {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 300;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 900px) {
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-title {
        font-size: 2.2rem;
    }

    .quote-content blockquote {
        font-size: 1.25rem;
    }
}

/* --- FOSTER STATS SECTION (CORRIGÉ) --- */
.about-stats-section {
    padding: 80px 40px;
    background-color: #121212;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.stat-number-wrapper {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.stat-label {
    font-size: 1.1rem;
    color: #a0a0a0;
    margin: 0;
}

.stats-footer-tagline {
    margin-top: 50px;
}

.stats-footer-tagline p {
    font-size: 1.15rem;
    font-weight: 600;
    color: #cccccc;
    margin: 0;
}

/* --- SECTION ÉQUIPE & LEADERSHIP (CORRIGÉ) --- */
.about-team-section {
    padding: 100px 40px;
    background-color: #121212;
    border-top: 1px solid #222222;
    width: 100%;
    clear: both;
}

.team-header {
    margin-bottom: 50px;
    max-width: 800px;
}

.team-header h2 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.team-header p {
    color: #888888;
    font-size: 1rem;
    line-height: 1.6;
}

/* Alignement strict sur 3 colonnes */
.team-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    align-items: start;
}

.team-card {
    background-color: transparent;
    width: 100%;
}

/* Force l'image à respecter un cadre vertical strict sans déborder */
.team-photo-wrapper {
    position: relative;
    width: 100%;
    height: 380px; /* Hauteur fixe pour égaliser toutes les photos */
    overflow: hidden;
    background-color: #1a1a1a;
    border-radius: 2px;
    margin-bottom: 20px;
}

.team-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Recadre intelligemment les photos trop larges */
    object-position: center top;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.team-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 50%);
}

.team-card:hover .team-photo {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.team-name {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0 0 6px 0;
}

.team-role {
    display: block;
    color: #888888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.team-bio {
    color: #aaaaaa;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

/* Adaptation Mobile & Tablette */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr !important;
    }
    
    .team-photo-wrapper {
        height: 320px;
    }
}

/* --- FOSTER CONTACT PAGE STYLES --- */

/* Débridage pleine largeur pour le modèle Contact */
.page-template-page-contact .site-main,
.page-template-page-contact #content,
.page-template-page-contact #page {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.foster-contact-page {
    background-color: #121212;
    color: #e0e0e0;
    padding-bottom: 80px;
}

/* 1. Hero Contact */
.contact-hero-section {
    padding: 120px 40px 60px;
    border-bottom: 1px solid #222222;
}

.contact-title {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: #888888;
    max-width: 650px;
    line-height: 1.6;
    margin: 0;
}

/* 2. Content Grid */
.contact-content-section {
    padding: 80px 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}

.contact-section-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid #222222;
}

/* Informations de contact */
.contact-info-block {
    margin-bottom: 35px;
}

.info-label {
    display: block;
    color: #666666;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.info-value, 
.info-value a {
    color: #e0e0e0;
    font-size: 1.05rem;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-value a:hover {
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #aaaaaa;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ffffff;
}

/* Formulaire */
.foster-custom-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #aaaaaa;
    font-size: 0.9rem;
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 2px;
    padding: 14px 18px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

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

.contact-submit-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #ffffff;
    color: #121212;
    border: none;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 2px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

.contact-submit-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-hero-section {
        padding: 90px 20px 40px;
    }

    .contact-content-section {
        padding: 50px 20px;
    }

    .contact-title {
        font-size: 2.2rem;
    }
}

/* --- SECTION MAP CONTACT --- */
.contact-map-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: #121212;
    border-top: 1px solid #222222;
}

.map-wrapper {
    width: 100%;
    height: 450px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.foster-map-iframe {
    width: 100%;
    height: 100%;
    /* Filtre CSS pour adapter la carte au thème sombre */
    filter: grayscale(100%) invert(90%) contrast(120%);
    transition: filter 0.4s ease;
}

/* Au survol de la souris, la carte retrouve un peu de clarté */
.map-wrapper:hover .foster-map-iframe {
    filter: grayscale(30%) invert(90%) contrast(110%);
}

@media (max-width: 768px) {
    .map-wrapper {
        height: 320px;
    }
}

/* --- FOSTER RÉALISATIONS PAGE STYLES --- */

/* Débridage pleine largeur */
body.page-template-page-realisations #page,
body.page-template-page-realisations #content,
body.page-template-page-realisations .site-main,
body.page-template-page-realisations .inside-article {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    display: block !important;
}

.foster-realisations-page {
    background-color: #121212;
    color: #e0e0e0;
    min-height: 100vh;
    padding-bottom: 100px;
}

.foster-realisations-page .foster-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Hero Section */
.realisations-hero-section {
    padding: 120px 0 60px;
    border-bottom: 1px solid #222222;
}

.section-tag {
    display: inline-block;
    color: #888888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.realisations-title {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
}

.realisations-subtitle {
    font-size: 1.15rem;
    color: #888888;
    max-width: 700px;
    line-height: 1.6;
    margin: 0;
}

/* Filtres */
.portfolio-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 40px 0;
    border-bottom: 1px solid #1a1a1a;
    margin-bottom: 50px;
}

.filter-btn {
    background: transparent;
    border: 1px solid #333333;
    color: #888888;
    padding: 10px 22px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #ffffff;
    color: #121212;
    border-color: #ffffff;
}

/* Grille Réalisations */
.realisations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}

.realisation-card {
    width: 100%;
}

.realisation-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.realisation-image-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background-color: #1a1a1a;
    border-radius: 2px;
    margin-bottom: 18px;
}

.realisation-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.realisation-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.view-project-btn {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 4px;
}

.realisation-card:hover .realisation-image {
    filter: grayscale(0%);
    transform: scale(1.04);
}

.realisation-card:hover .realisation-overlay {
    opacity: 1;
}

.realisation-category {
    display: block;
    color: #666666;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.realisation-item-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0 0 6px 0;
    transition: color 0.3s ease;
}

.realisation-card:hover .realisation-item-title {
    color: #cccccc;
}

.realisation-location {
    color: #888888;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .realisations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .realisations-grid {
        grid-template-columns: 1fr;
    }
    .realisations-title {
        font-size: 2.2rem;
    }
    .portfolio-filter-bar {
        gap: 10px;
    }
    .filter-btn {
        padding: 8px 14px;
        font-size: 0.75rem;
    }
}

/* --- FOSTER PROJECT DETAIL PAGE STYLES --- */

/* Débridage pleine largeur */
body.page-template-page-detail-projet #page,
body.page-template-page-detail-projet #content,
body.page-template-page-detail-projet .site-main,
body.page-template-page-detail-projet .inside-article {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    display: block !important;
}

.foster-project-detail-page {
    background-color: #121212;
    color: #e0e0e0;
    min-height: 100vh;
}

.foster-project-detail-page .foster-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

/* 1. Hero & Header */
.project-hero-section {
    padding-top: 100px;
}

.back-link {
    display: inline-block;
    color: #888888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #ffffff;
}

.project-header-meta {
    max-width: 850px;
    margin-bottom: 40px;
}

.project-category-tag {
    display: block;
    color: #888888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.project-title {
    color: #ffffff;
    font-size: 3.2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.project-subtitle {
    font-size: 1.2rem;
    color: #aaaaaa;
    line-height: 1.6;
    margin: 0;
}

.project-hero-image-wrapper {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    position: relative;
    background-color: #1a1a1a;
}

.project-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}

/* 2. Specs Bar */
.project-specs-bar {
    background-color: #181818;
    border-top: 1px solid #222222;
    border-bottom: 1px solid #222222;
    padding: 30px 0;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    color: #666666;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.spec-value {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
}

/* 3. Project Body */
.project-body-section {
    padding: 80px 0;
}

.project-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
}

.project-description-col h2 {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 500;
    margin: 40px 0 15px;
}

.project-description-col h2:first-child {
    margin-top: 0;
}

.project-description-col h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 30px 0 15px;
}

.project-description-col p {
    color: #aaaaaa;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.project-quote {
    border-left: 2px solid #ffffff;
    padding-left: 25px;
    margin: 40px 0;
    color: #ffffff;
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.6;
}

.project-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.project-features-list li {
    color: #aaaaaa;
    font-size: 1rem;
    padding: 10px 0;
    border-bottom: 1px solid #222222;
    position: relative;
    padding-left: 20px;
}

.project-features-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #ffffff;
}

/* Sidebar Card Sticky */
.project-sidebar-col {
    position: relative;
}

.project-sidebar-card {
    position: sticky;
    top: 100px;
    background-color: #181818;
    border: 1px solid #262626;
    padding: 35px;
    border-radius: 2px;
}

.project-sidebar-card h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 15px;
}

.project-sidebar-card p {
    color: #888888;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-sidebar-contact {
    display: inline-block;
    width: 100%;
    text-align: center;
    background-color: #ffffff;
    color: #121212;
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.btn-sidebar-contact:hover {
    background-color: #cccccc;
}

/* 4. Galerie */
.project-gallery-section {
    padding: 60px 0 80px;
    border-top: 1px solid #222222;
}

.section-subtitle-dark {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 35px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 10px;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.gallery-item:hover img {
    filter: grayscale(0%);
}

.gallery-caption {
    color: #666666;
    font-size: 0.85rem;
}

/* 5. Project Navigation */
.project-navigation-section {
    border-top: 1px solid #222222;
    padding: 40px 0;
    background-color: #0d0d0d;
}

.nav-projects-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-project-prev,
.nav-project-next {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.nav-project-next {
    text-align: right;
}

.nav-label {
    color: #666666;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-project-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
}

.nav-project-prev:hover .nav-label,
.nav-project-next:hover .nav-label {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 992px) {
    .specs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .project-content-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .project-title {
        font-size: 2.2rem;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .project-hero-image-wrapper {
        height: 35vh;
    }
}

/* --- FOSTER SERVICES PAGE STYLES --- */

/* Débridage pleine largeur */
body.page-template-page-services #page,
body.page-template-page-services #content,
body.page-template-page-services .site-main,
body.page-template-page-services .inside-article {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    display: block !important;
}

.foster-services-page {
    background-color: #121212;
    color: #e0e0e0;
    min-height: 100vh;
}

.foster-services-page .foster-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

/* 1. Hero Section */
.services-hero-section {
    padding: 120px 0 60px;
    border-bottom: 1px solid #222222;
}

.services-title {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
}

.services-subtitle {
    font-size: 1.15rem;
    color: #888888;
    max-width: 750px;
    line-height: 1.6;
    margin: 0;
}

/* 2. Services List avec cartes à deux colonnes */
.services-list-section {
    padding: 80px 0;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.service-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    padding-bottom: 80px;
    border-bottom: 1px solid #1f1f1f;
}

.service-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Option d'inversion droite / gauche */
.service-card-reverse {
    grid-template-columns: 1.2fr 1fr;
}

.service-card-reverse .service-image-wrapper {
    order: 2;
}

.service-card-reverse .service-content {
    order: 1;
}

/* Styles Images */
.service-image-wrapper {
    width: 100%;
    height: 380px;
    overflow: hidden;
    background-color: #1a1a1a;
    border-radius: 2px;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.service-card:hover .service-image {
    filter: grayscale(0%);
    transform: scale(1.03);
}

/* Contenu du service */
.service-number {
    font-size: 1.5rem;
    font-weight: 300;
    color: #555555;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.service-heading {
    color: #ffffff;
    font-size: 1.9rem;
    font-weight: 500;
    margin: 0 0 15px 0;
}

.service-desc {
    color: #aaaaaa;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-sublist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-sublist li {
    color: #888888;
    font-size: 0.9rem;
    position: relative;
    padding-left: 20px;
}

.service-sublist li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #ffffff;
}

/* 3. Section Processus */
.services-process-section {
    padding: 100px 0;
    background-color: #161616;
    border-top: 1px solid #222222;
    border-bottom: 1px solid #222222;
}

.process-header {
    max-width: 700px;
    margin-bottom: 60px;
}

.process-header h2 {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 500;
    margin-top: 10px;
    margin-bottom: 15px;
}

.process-header p {
    color: #888888;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.process-step-item {
    background-color: #121212;
    padding: 35px 25px;
    border: 1px solid #222222;
    border-radius: 2px;
}

.step-num {
    display: block;
    color: #555555;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.process-step-item h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0 0 12px 0;
}

.process-step-item p {
    color: #888888;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* 4. Call to Action */
.services-cta-section {
    padding: 100px 0;
}

.cta-box {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 60px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 2px;
}

.cta-box h2 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 15px;
}

.cta-box p {
    color: #888888;
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.btn-cta {
    display: inline-block;
    background-color: #ffffff;
    color: #121212;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-cta:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .service-card,
    .service-card-reverse {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-card-reverse .service-image-wrapper,
    .service-card-reverse .service-content {
        order: initial;
    }

    .service-image-wrapper {
        height: 280px;
    }

    .process-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-title {
        font-size: 2.2rem;
    }

    .process-steps-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 40px 20px;
    }
}

/* --- FOSTER PROJETS PAGE STYLES --- */

/* Débridage pleine largeur */
body.page-template-page-projets #page,
body.page-template-page-projets #content,
body.page-template-page-projets .site-main,
body.page-template-page-projets .inside-article {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    display: block !important;
}

.foster-projets-page {
    background-color: #121212;
    color: #e0e0e0;
    min-height: 100vh;
    padding-bottom: 100px;
}

.foster-projets-page .foster-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Hero Section */
.projets-hero-section {
    padding: 120px 0 60px;
    border-bottom: 1px solid #222222;
}

.projets-title {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
}

.projets-subtitle {
    font-size: 1.15rem;
    color: #888888;
    max-width: 750px;
    line-height: 1.6;
    margin: 0;
}

/* Grille & Cartes */
.projets-content-section {
    padding-top: 20px;
}

.projets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}

.projet-card {
    width: 100%;
}

.projet-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.projet-image-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background-color: #1a1a1a;
    border-radius: 2px;
    margin-bottom: 18px;
}

.projet-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

/* Badges de statut de projet */
.projet-status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 2px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.status-progress {
    background-color: rgba(255, 255, 255, 0.9);
    color: #121212;
}

.status-study {
    background-color: rgba(20, 20, 20, 0.85);
    color: #cccccc;
    border: 1px solid #444444;
}

/* Overlay & Survol */
.projet-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.projet-card:hover .projet-image {
    filter: grayscale(0%);
    transform: scale(1.04);
}

.projet-card:hover .projet-overlay {
    opacity: 1;
}

.projet-category {
    display: block;
    color: #666666;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.projet-item-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0 0 6px 0;
    transition: color 0.3s ease;
}

.projet-card:hover .projet-item-title {
    color: #cccccc;
}

.projet-location {
    color: #888888;
    font-size: 0.85rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .projets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .projets-grid {
        grid-template-columns: 1fr;
    }
    .projets-title {
        font-size: 2.2rem;
    }
}

/* --- HERO SERVICES AVEC FOND IMAGE & OVERLAY --- */
.services-hero-section {
    position: relative;
    padding: 160px 0 100px;
    background-color: #121212;
    overflow: hidden;
    border-bottom: 1px solid #222222;
}

/* Image de fond */
.services-hero-section .hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(80%) contrast(110%); /* Look minimaliste désaturé */
    transform: scale(1.05);
    transition: transform 10s ease;
    z-index: 1;
}

/* Effet d'agrandissement doux de l'image au survol */
.services-hero-section:hover .hero-bg-image {
    transform: scale(1.0);
}

/* Fondu sombre pour la lisibilité du texte */
.services-hero-section .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg, 
        rgba(18, 18, 18, 0.95) 0%, 
        rgba(18, 18, 18, 0.75) 60%, 
        rgba(18, 18, 18, 0.90) 100%
    );
    z-index: 2;
}

/* Positionnement du contenu au-dessus du fond */
.services-hero-section .foster-container {
    position: relative;
    z-index: 3;
}

.services-hero-section .section-tag {
    display: inline-block;
    color: #aaaaaa;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.services-hero-section .services-title {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.services-hero-section .services-subtitle {
    font-size: 1.2rem;
    color: #dddddd;
    max-width: 750px;
    line-height: 1.7;
    margin: 0;
}

/* Responsive Tablette / Mobile */
@media (max-width: 768px) {
    .services-hero-section {
        padding: 120px 0 70px;
    }

    .services-hero-section .services-title {
        font-size: 2.4rem;
    }

    .services-hero-section .services-subtitle {
        font-size: 1.05rem;
    }
}

/* --- ANIMATION & CURSEUR GALERIE --- */
.gallery-item img {
    cursor: zoom-in;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
    filter: grayscale(0%);
}

/* --- LIGHTBOX MODAL --- */
.foster-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background-color: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.foster-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.foster-lightbox.active .lightbox-content img {
    transform: scale(1);
}

.lightbox-caption-text {
    color: #cccccc;
    font-size: 0.9rem;
    margin-top: 15px;
    letter-spacing: 0.5px;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
    color: #aaaaaa;
    transform: scale(1.1);
}

/* --- CONTACT FORM 7 STYLES --- */
.foster-form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.foster-form-group label {
    color: #888888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.foster-input,
.foster-textarea {
    width: 100%;
    background-color: #1a1a1a !important;
    border: 1px solid #333333 !important;
    color: #ffffff !important;
    padding: 14px 18px !important;
    font-size: 1rem !important;
    border-radius: 0px !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.3s ease;
}

.foster-input:focus,
.foster-textarea:focus {
    border-color: #ffffff !important;
}

.foster-textarea {
    height: 140px;
    resize: vertical;
}

.btn-foster-submit {
    background-color: #ffffff !important;
    color: #121212 !important;
    border: none !important;
    padding: 16px 36px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    border-radius: 0px !important;
}

.btn-foster-submit:hover {
    background-color: #cccccc !important;
}

/* Feedback messages */
.wpcf7-response-output {
    margin-top: 25px !important;
    padding: 15px !important;
    border-radius: 0px !important;
    font-size: 0.9rem !important;
    background-color: #1a1a1a !important;
    border: 1px solid #333333 !important;
    color: #ffffff !important;
}