/* --- Styles généraux & Thème 100% Bleu / Blanc (majoritairement bleu) --- */
:root {
    --primary-blue: #051325;
    --secondary-blue: #0A223F;
    --accent-blue: #163B6B;
    --card-blue: #0F2A4A;
    --accent-color: #F6D55C;
    --whatsapp-green: #25D366;
    --white: #FFFFFF;
    --light-blue-text: #D0E1FD;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--white);
    line-height: 1.6;
    background-color: var(--primary-blue);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* Style des liens e-mails intelligents */
.email-link {
    color: var(--light-blue-text);
    text-decoration: none;
    transition: var(--transition);
}

.email-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Fonds alternés en nuances de bleu (zéro blanc) */
.section-blue-dark {
    background-color: var(--primary-blue);
}

.section-blue-deep {
    background-color: var(--secondary-blue);
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: var(--light-blue-text);
    font-size: 1.1rem;
}

/* --- Bouton WhatsApp Flottant --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: var(--whatsapp-green);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    z-index: 1005;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

/* --- En-tête / Navbar --- */
header {
    background: var(--primary-blue);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent-color);
}

/* --- Section Hero --- */
.hero {
    background: linear-gradient(rgba(5, 19, 37, 0.75), rgba(5, 19, 37, 0.85)), url('camion-grumes-1.jpeg.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    margin-top: 80px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 750px;
    margin: 0 auto 30px;
    color: var(--light-blue-text);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-blue);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--whatsapp-green);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    background-color: #20ba5a;
}

.btn-whatsapp-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--whatsapp-green);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
}

.btn-whatsapp-large:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
}

/* --- Section Direction & Mot du Gérant --- */
.gerant-profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1050px;
    margin: 0 auto;
}

.gerant-profile-card {
    background: var(--card-blue);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

.gerant-img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.gerant-profile-info {
    padding: 20px;
}

.gerant-profile-info h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.gerant-profile-info h4 {
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gerant-profile-info p {
    font-size: 0.9rem;
    color: var(--light-blue-text);
    margin-bottom: 5px;
}

.gerant-profile-info i {
    color: var(--accent-color);
    margin-right: 6px;
}

/* Format spécial et police pour le mot du gérant */
.gerant-card {
    background: linear-gradient(135deg, #0A223F, #14355E);
    border-left: 6px solid var(--accent-color);
    border-right: 1px solid rgba(255,255,255,0.1);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 40px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.gerant-quote-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    opacity: 0.85;
    margin-bottom: 15px;
}

.gerant-text p {
    font-family: 'Georgia', serif;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--white);
    font-style: italic;
}

.gerant-text p.manager-intro {
    font-weight: bold;
    color: var(--accent-color);
}

.gerant-text p:last-child {
    margin-bottom: 0;
}

/* --- Section Expertise & Capacités Techniques --- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tech-card {
    background: var(--card-blue);
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.2);
}

.tech-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.tech-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--white);
}

.tech-card p {
    font-size: 0.95rem;
    color: var(--light-blue-text);
    line-height: 1.6;
}

.tech-card strong {
    color: var(--white);
}

/* --- Section Domaines d'Expertise / Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-item {
    background: var(--card-blue);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

.service-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 10px;
}

.service-content p {
    font-size: 0.95rem;
    color: var(--light-blue-text);
    line-height: 1.5;
}

/* --- Section Équipe --- */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    justify-content: center;
}

.staff-card {
    background: var(--card-blue);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.08);
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.2);
}

.staff-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.staff-info {
    padding: 20px;
}

.staff-info h3 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 5px;
}

.staff-info h4 {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.staff-contact {
    background: rgba(5, 19, 37, 0.7);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.staff-contact p {
    margin-bottom: 4px;
    font-size: 0.85rem;
    color: var(--light-blue-text);
}

.staff-contact i {
    margin-right: 6px;
    color: var(--accent-color);
}

.staff-speech p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--light-blue-text);
    margin-bottom: 10px;
    text-align: justify;
}

.staff-speech p:last-child {
    font-style: italic;
    color: var(--white);
    border-left: 3px solid var(--accent-color);
    padding-left: 8px;
}

/* --- Section Galerie de la Flotte --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.gallery-item {
    background: var(--card-blue);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.08);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

.gallery-item img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    color: var(--white);
    font-size: 0.9rem;
    background: var(--card-blue);
}

/* --- Section Pourquoi Choisir LTB SARL --- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.why-card {
    background: var(--card-blue);
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

.why-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.why-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--white);
}

.why-card p {
    font-size: 0.95rem;
    color: var(--light-blue-text);
    line-height: 1.6;
}

/* --- Section Contact --- */
.contact-box {
    background: var(--card-blue);
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
}

.contact-box p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--light-blue-text);
}

.contact-box i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* --- Pied de page --- */
footer {
    background: #020912;
    color: var(--light-blue-text);
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}


/* ========================================================== */
/* --- AJOUT EXCLUSIF POUR LA COMPATIBILITÉ SMARTPHONE SANS CASSER LE RESTE --- */
/* ========================================================== */
@media (max-width: 900px) {
    .gerant-profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 12px 0;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 15px;
        margin-top: 10px;
    }
    nav a {
        font-size: 0.85rem;
    }
    .hero {
        height: auto;
        min-height: 80vh;
        padding: 60px 15px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    h2 {
        font-size: 2rem;
    }
    section {
        padding: 50px 0;
    }
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
}