/* =============================================
   CONSTRUCTION 4 FRÈRES - STYLES PRINCIPAUX
   MODIFIER LES COULEURS ET STYLES ICI
============================================= */

/* ===== VARIABLES COULEURS - MODIFIER ICI ===== */
:root {
    --primary-color: #BFB8B0;
    --secondary-color: #8b7355;
    --accent-color: #0d0d0d;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --bg-light: #f8f8f8;
    --white: #ffffff;
    --overlay: rgba(0, 0, 0, 0.6);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.text-center {
    text-align: center;
}

/* ===== COOKIE CONSENT POPUP ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
    display: none;
}

.cookie-consent.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cookie-content p {
    margin-bottom: 15px;
    font-size: 14px;
}

.cookie-disclaimer {
    font-size: 12px;
    color: #ccc;
    margin-top: 10px;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-accept, .btn-decline {
    padding: 10px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-accept {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-accept:hover {
    background: var(--accent-color);
}

.btn-decline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-decline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* ===== NAVIGATION ===== */
.navbar {
    background: var(--primary-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.8rem;
}

/* NOUVEAU: Style pour le logo image */
.logo-image {
    height: 60px;              /* Hauteur du logo */
    width: auto;               /* Largeur automatique (garde les proportions) */
    display: block;
    transition: transform 0.3s ease;  /* Animation au hover */
}

.logo-image:hover {
    transform: scale(1.05);    /* Grossit légèrement au survol */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--white);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 90vh;
    min-height: 600px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('../images/hero.jpg') center top/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    max-width: 900px;
    padding: 50px 60px;
    
    /* 2024-11-05: Ajouté fond transparent avec flou pour meilleure lisibilité */
    /* Fond transparent avec flou */
    background: rgba(13, 13, 13, 0.65); /* Plus transparent (0.4=40%-0.65=65%) */
    backdrop-filter: blur(1px); /* flou image - verre depoli */
    border-radius: 15px; /* Coins arrondis */
    
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);  /* Ombre pour détacher du fond */
}

/* Ancien code (2025-11-04)

.hero-content {
    max-width: 900px;
    padding: 0 20px;
}
*/

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.2;
}

/* ← AJOUTE ICI */
/* Conteneur pour les boutons côte à côte */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Style spécifique au bouton d'appel */
.btn-call {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.phone-icon {
    font-size: 1.2rem;
}

/* Effet hover sur le bouton d'appel */
.btn-call:hover .phone-icon {
    animation: ring 0.5s ease;
}

/* Animation de "sonnerie" au hover */
@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-15deg); }
    20%, 40%, 60%, 80% { transform: rotate(15deg); }
}

/* Mobile: boutons en colonne */
/* @media (max-width: 768px) 

    {
    
    .hero {
        background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                    url('../images/hero.jpg') center top/cover no-repeat;
        /* Peut être différent sur mobile! 
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons a {
        width: 100%;
        text-align: center;
    }
} 

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.8;
    color: #e0e0e0;
}
*/
/* ===== SECTIONS GÉNÉRALES ===== */
.section {
    padding: 80px 0;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 50px;
}

/* ===== PROJETS PREVIEW ===== */
.projets-preview {
    background: var(--bg-light);
}

.projets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.projet-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.projet-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.projet-image {
    height: 250px;
    overflow: hidden;
    background: #ddd;
}

.projet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.projet-card:hover .projet-image img {
    transform: scale(1.1);
}

.projet-content {
    padding: 30px;
}

.projet-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.projet-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ===== SERVICES ===== */

.services {
    min-height: 600px;
    padding: 80px 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('../images/Trailer4.jpg') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;  /* Effet parallax (optionnel) */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
}

.services-content {
    max-width: 900px;
    padding: 50px 60px;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(1px);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.services-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--white);  /* ← Change ça en blanc! */
}

.services-list {
    list-style: none;
    margin-top: 30px;
    text-align: left;
}

.services-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    position: relative;
    padding-left: 30px;
}

.services-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.3rem;
}

/* ===== NOTRE HISTOIRE ===== */
.histoire {
    background: var(--bg-light);
}

.histoire-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.histoire-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    
    /* Rectangle vertical au lieu de carré */
    width: 100%;
    max-width: 300px;        /* Largeur max */
    height: 600px;           /* Hauteur fixe (portrait) */
}

.histoire-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* Montre l'image complète */
    /* object-fit: cover;       /* Remplit le cadre sans déformer */
    object-position: center; /* Centre l'image dans le cadre */
}

/* .histoire-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
/*


/* .histoire-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
*/

.histoire-content h2 {
    text-align: left;
    margin-bottom: 30px;
}

.histoire-content h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--accent-color);
}

.histoire-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.histoire-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-light);
}

/* ===== CTA CARRIÈRES ===== */
.cta-careers {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.cta-careers h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-careers p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* ===== LEGAL NOTICE ===== */

.legal-notice {
    margin-top: 40px;
    padding: 20px;
    background: #f8f8f8;
    border-left: 3px solid var(--secondary-color);
    font-size: 0.7rem;
    color: #666;
}

/* ===== RESPONSIVE - TABLETTES ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 30px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    /* LOGO IMAGE */
    .logo-image {
        height: 45px;
    }

    /* HERO - TEXTE PLUS PETIT */
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
        padding: 0 10px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-content {
        padding: 30px 15px;
    }

    /* HERO BUTTONS */
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons a {
        width: 100%;
        text-align: center;
    }

    /* SERVICES - IMAGE ADAPTÉE */
    .services {
        min-height: 400px;
        padding: 60px 0;
        background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                    url('../images/Trailer4.jpg') center 40%/cover no-repeat;
        background-attachment: scroll;
    }
    
    .services-content {
        padding: 30px 20px;
        max-width: 100%;
    }

    /* HISTOIRE */
    .histoire-wrapper {
        grid-template-columns: 1fr;
    }

    /* PROJETS */
    .projets-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== RESPONSIVE - MOBILE ===== */

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .btn-accept, .btn-decline {
        width: 100%;
    }
}

/* ===== PAGES HERO (PROJETS, EMPLOIS) ===== */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.page-hero p {
    font-size: 1.2rem;
    color: #e0e0e0;
}

/* ===== PROJETS LIST ===== */
.projets-list {
    padding: 80px 0;
    background: var(--bg-light);
}

.projet-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-complete {
    background: #27ae60;
    color: white;
}

.badge-encours {
    background: #f39c12;
    color: white;
}

.projet-image {
    position: relative;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* ===== PROJET NAVIGATION ===== */
.projet-navigation {
    padding: 60px 0;
    background: var(--bg-light);
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-buttons a {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

@media (max-width: 768px) {
    .nav-buttons {
        flex-direction: column;
    }
    
    .nav-buttons a {
        width: 100%;
    }
}
