/* ================== RESET GLOBAL ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Couleurs & variables globales */
:root {
    --primary-purple: #4B2E83;
    --light-yellow: #ffd93d;
    --dark-bg: #1a1a2e;
    --text-dark: #2d2d2d;
    --text-light: #666;
    --white: #ffffff;
}

/* Police & couleur de base */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* ================== HEADER & NAVIGATION ================== */

header {
    background: var(--white);
    color: var(--primary-purple);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}


/* Menu principal desktop */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--light-yellow);
}

/* Bouton de changement de langue */
.lang-switch {
    background: var(--light-yellow);
    color: var(--primary-purple);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

.lang-switch:hover {
    transform: scale(1.05);
}

/* Nav avec logo à gauche, menu à droite */
.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Bouton burger (mobile) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-purple);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

/* Logo image + texte */
.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-image {
    height: 55px;
    display: block;
}

.logo-text {
    line-height: 1.1;
}

.vertex-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-purple);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vertex-sub {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 2px;
}

/* ================== HERO ================== */

.hero {
    width: 100%;
    height: 70vh;
    background: url("assets/img/banniere.png") center center / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    color: white;
    position: relative;
    margin-top: 70px;
}

/* Overlay sombre sur la bannière */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 0, 70, 0.45);
    z-index: 1;
}

/* Tout le contenu passe au-dessus de l’overlay */
.hero * {
    position: relative;
    z-index: 2;
}

/* Titre principal animé */
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    position: relative;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

/* Soulignement animé sous le titre */
.hero h1::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.6rem;
    transform: translateX(-50%) scaleX(0);
    width: 180px;
    height: 3px;
    background: linear-gradient(90deg, #ffd93d, #ffffff);
    border-radius: 999px;
    opacity: 0;
    transform-origin: center;
    animation: heroUnderline 0.9s ease-out 0.4s forwards;
}

/* Mot "Logistique" en dégradé */
.hero-highlight {
    background: linear-gradient(90deg, #ffd93d, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

/* Sous-titre en forme de "badge" */
.hero-subtitle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.8rem;
    padding: 0.6rem 1.6rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 1rem;
    letter-spacing: 0.02em;
    animation: fadeInUp 1s ease 0.6s both;
}

/* Animation soulignement */
@keyframes heroUnderline {
    to {
        transform: translateX(-50%) scaleX(1);
        opacity: 1;
    }
}

/* ================== CARTE DE BIENVENUE ================== */

.welcome-card {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    background: #f5f5f5;
}

.welcome-box {
    background: white;
    max-width: 900px;
    padding: 40px 50px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: left;
}

.welcome-box h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--primary-purple);
    text-transform: uppercase;
    text-align: center;
}

.welcome-box p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* ================== SECTIONS GÉNÉRALES ================== */

section {
    padding: 80px 2rem;
    margin: 0 auto;
}

/* Titre standard avec barre jaune en dessous */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-purple);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--light-yellow);
}

/* ================== SERVICES ================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(107, 45, 158, 0.2);
}

/* Icône de service (si utilisé) */
.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Image en haut de la carte service */
.service-image {
    margin-bottom: 1rem;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* ================== GALERIE ================== */

/* Galerie desktop : grille */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    width: 100%;
    padding-top: 70%; /* ratio des images (≈ 16:9) */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
    background: #000; /* au cas où l’image charge lentement */
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Petit texte sous le titre de la galerie */
.gallery-note {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* ================== PAGE CONTACT ================== */

/* Bandeau violet en haut de la page contact */
.contact-header {
    background: var(--primary-purple);
    padding: 30px 0;
    text-align: center;
    margin-top: 70px;
}

.contact-header h2 {
    color: white;
    font-size: 1.8rem;
    letter-spacing: 2px;
    font-weight: 700;
}

/* Wrapper deux colonnes (infos + formulaire) */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 3rem 2rem;
    gap: 3rem;
    max-width: 1200px;
    margin: auto;
}

/* Colonne gauche : texte + réseaux */
.contact-left h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--primary-purple);
}

.contact-text {
    font-size: 1rem;
    color: #444;
    margin-bottom: 1rem;
}

.contact-socials {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-socials a {
    font-size: 1.5rem;
    color: var(--primary-purple);
    transition: 0.3s;
}

.contact-socials a:hover {
    color: var(--light-yellow);
}

/* Carte formulaire – version "premium" */
.contact-card {
    background: white;
    padding: 1.6rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 480px;
    width: 100%;
}

/* Formulaire vertical */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Ligne avec 2 champs côte à côte */
.form-row-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

/* Chaque champ label + input */
.form-field {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.7rem;
    border: 1px solid #d5d5d5;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-purple);
    outline: none;
}

/* Bouton envoyer */
.contact-btn {
    background: var(--primary-purple);
    color: white;
    padding: 0.8rem;
    border: none;
    font-weight: bold;
    cursor: pointer;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    transition: 0.3s;
}

.contact-btn:hover {
    background: #3a1763;
    transform: translateY(-2px);
}

/* Mobile : Nom + Email l’un sous l’autre + carte fluide */
@media (max-width: 768px) {
    .form-row-two {
        grid-template-columns: 1fr;
    }

    .contact-card {
        max-width: 100%;
    }
}

/* ================== PAGE À PROPOS ================== */

#apropos {
    max-width: 1200px;
    margin: 90px auto 80px;
    padding: 60px 2rem 80px;
}

.about-header {
    text-align: left;
    margin-bottom: 2.5rem;
}

.about-header .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.about-lead {
    max-width: 900px;
    font-size: 1.05rem;
    color: var(--text-light);
}

/* Deux colonnes : texte + bloc valeurs / carte */
.about-layout {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 3rem;
    align-items: flex-start;
}

.about-text h3 {
    margin-top: 1.8rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--primary-purple);
}

.about-text p {
    margin-bottom: 0.8rem;
}

.about-text ul {
    margin: 0.5rem 0 1.5rem 1.2rem;
    padding-left: 0;
}

.about-text ul li {
    margin-bottom: 0.3rem;
}

/* Titre valeurs en violet */
.value-item h4 {
    color: var(--primary-purple);
}

/* Colonne droite : valeurs + carte résumé */
.about-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 30px;
}

.about-card {
    background: var(--white);
    padding: 1.8rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.about-card h4 {
    margin-bottom: 0.8rem;
    color: var(--primary-purple);
}

.about-card p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.about-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.about-card ul li::before {
    content: "•";
    color: var(--light-yellow);
    font-weight: bold;
    display: inline-block;
    width: 1rem;
}

.about-card ul li {
    margin-bottom: 0.4rem;
}

/* Liste des valeurs (professionnalisme, sécurité, etc.) */
.about-values {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Responsive À propos */
@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
    }

    #apropos {
        padding: 40px 1.5rem 60px;
        margin-top: 80px;
    }

    .about-header .section-title {
        text-align: center;
    }

    .about-header {
        text-align: center;
    }

    .about-lead {
        margin: 0 auto 2rem;
    }
}

/* ================== FOOTER ================== */

.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 60px 2rem 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 4rem;
    row-gap: 2rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--light-yellow);
    font-weight: bold;
    font-size: 1.4rem;
}

.footer-logo {
    width: 160px;
    margin-bottom: 1rem;
}

.footer-text {
    line-height: 1.6;
    color: #ddd;
}

/* Liens de navigation du footer */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--light-yellow);
}

/* Ligne contact (icône + texte) */
.footer-contact-line {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: #f5f5f5;
}

.footer-icon svg {
    width: 40px;
    height: 40px;
}

/* Réseaux sociaux en bas */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem auto 1.5rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, color 0.2s;
}

.social-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.social-icon:hover {
    background: var(--light-yellow);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

/* Bas de page */
.footer-bottom {
    text-align: center;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #aaa;
}

/* ================== RESPONSIVE GLOBAL ================== */

@media (max-width: 768px) {

    /* Header + menu responsive */
    nav {
        padding: 0 1rem;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0.5rem 1.5rem 1rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        display: none; /* caché par défaut sur mobile */
    }

    .nav-menu li {
        padding: 0.5rem 0;
    }

    .nav-menu.nav-menu-open {
        display: flex; /* affiché quand on clique sur le burger */
    }

    .nav-toggle {
        display: block; /* visible sur mobile */
    }

    .hero {
        height: 60vh;
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .welcome-card {
        padding: 40px 15px;
    }

    .welcome-box {
        padding: 30px 20px;
    }

    .services-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: left;
        row-gap: 1.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }

    /* Galerie en mode slider sur mobile */
    .gallery-grid {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        scroll-snap-type: x mandatory;
        padding-bottom: 0.5rem;
    }

    .gallery-grid::-webkit-scrollbar {
        display: none; /* cacher la barre de scroll sur mobile */
    }

    .gallery-item {
        flex: 0 0 80%;      /* chaque image prend 80% de la largeur */
        max-width: 80%;
        scroll-snap-align: center;
        padding-top: 65%;   /* ratio un peu ajusté pour mobile */
    }
}

/* ================== CONTRÔLES SLIDER GALERIE ================== */

.gallery-controls {
    display: none; /* caché sur desktop */
    position: relative;
    width: 100%;
    margin-top: 10px;
    justify-content: center;
    gap: 1rem;
}

.gallery-controls button {
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gallery-controls button:hover {
    background: var(--light-yellow);
    color: var(--dark-bg);
}

/* Mobile : afficher les boutons de slider */
@media (max-width: 768px) {
    .gallery-controls {
        display: flex;
    }
}

/* ================== ANIMATIONS GÉNÉRALES ================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================== TOAST DE SUCCÈS ================== */

.toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--primary-purple);
    color: white;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 0.95rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 3000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.hidden {
    display: none;
}
