/* --- VARIABLES PERSONNALISÉES --- */
:root {
    --fw-green: #086B44; /* Le vert inspiré de ton logo */
    --fw-dark: #121212;
    --fw-light: #F8F9FA;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* --- NAVIGATION --- */
.navbar-custom {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
}
.navbar-brand img {
    max-height: 60px;
}
.nav-link {
    color: var(--fw-dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin: 0 10px;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: var(--fw-green);
}

/* --- BOUTONS --- */
.btn-custom {
    background-color: var(--fw-green);
    color: #fff;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    border: 2px solid var(--fw-green);
    transition: all 0.3s ease;
}
.btn-custom:hover {
    background-color: transparent;
    color: var(--fw-green);
}
.btn-outline-custom {
    background-color: transparent;
    color: var(--fw-dark);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    border: 2px solid var(--fw-dark);
    transition: all 0.3s ease;
}
.btn-outline-custom:hover {
    background-color: var(--fw-dark);
    color: #fff;
}

/* --- HERO SECTION --- */
.hero-section {
    background: linear-gradient(135deg, var(--fw-light) 0%, #e9ecef 100%);
    padding: 160px 0 100px;
    min-height: 85vh;
    display: flex;
    align-items: center;
}
.hero-title {
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--fw-dark);
}
.text-highlight {
    color: var(--fw-green);
}
.hero-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

/* --- SERVICES SECTION --- */
.services-section {
    padding: 100px 0;
    background-color: #fff;
}
.section-title {
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--fw-dark);
}
.service-card {
    background: #fff;
    border: none;
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
    z-index: 1;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(8, 107, 68, 0.15);
    z-index: 2;
}
.icon-box {
    background-color: rgba(8, 107, 68, 0.1);
    color: var(--fw-green);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}
.service-card:hover .icon-box {
    background-color: var(--fw-green);
    color: #fff;
}

/* --- FOOTER --- */
footer {
    background-color: var(--fw-dark);
    color: #fff;
    padding: 60px 0 20px;
}

/* --- PORTFOLIO SECTION --- */
.portfolio-section {
    padding: 100px 0;
    background-color: var(--fw-light);
}
.portfolio-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s ease;
}
.portfolio-item:hover {
    transform: translateY(-5px);
}
/* Rétablissement du style pour une image de fond "photo" */
.portfolio-img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* L'image couvre tout l'espace sans être déformée */
    padding: 0; /* On enlève le padding qu'on avait mis */
    transition: transform 0.5s ease;
}

/* Nouvelle classe pour le logo dans le coin */
.portfolio-logo-corner {
    position: absolute;
    top: 15px;      /* Espace depuis le haut */
    right: 15px;    /* Espace depuis la droite */
    width: 120px;    /* Taille du logo (ajuste si besoin) */
    height: auto;   /*garde les proportions*/
    opacity: 0.8;   /* Transparence (0.6 = 60% visible) */
    z-index: 2;     /* S'assure qu'il est au-dessus de l'image de fond */
    transition: opacity 0.3s ease;
}

/* Petit effet bonus : le logo devient moins transparent au survol */
.portfolio-item:hover .portfolio-logo-corner {
    opacity: 0.9;
}
.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}
.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.95), rgba(18, 18, 18, 0.4), transparent);
    padding: 40px 20px 20px;
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}
.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}
.portfolio-link {
    color: var(--fw-green);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}
.portfolio-link:hover {
    color: #fff;
}

/* --- ADAPTATION MOBILE POUR LE PORTFOLIO --- */
@media (max-width: 767.98px) {
    .portfolio-overlay {
        /* On annule l'effet de glissement et on rend le calque toujours visible */
        transform: translateY(0);
        opacity: 1;
        /* On assombrit un peu plus le dégradé pour garantir que le texte blanc soit toujours lisible sur l'image */
        background: linear-gradient(to top, rgba(18, 18, 18, 0.95), rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 0.2));
    }
    
    .portfolio-img {
        /* On ajoute un très léger zoom constant pour le style */
        transform: scale(1.02);
    }
}

/* --- CONTACT SECTION --- */
.contact-section {
    padding: 100px 0;
    background-color: #fff;
    position: relative;
}

/* Style des champs de formulaire */
.form-control, .form-select {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

/* Quand on clique dans un champ : bordure verte et ombre verte */
.form-control:focus, .form-select:focus {
    border-color: var(--fw-green);
    box-shadow: 0 0 0 0.25rem rgba(8, 107, 68, 0.15);
    background-color: #fff;
}

/* Style pour les boîtes d'info à gauche */
.contact-info-box {
    padding: 30px;
    background-color: var(--fw-light);
    border-radius: 20px;
    height: 100%;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--fw-green);
    margin-right: 15px;
    background-color: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}