/* ====================================================================
   Navbar Compacte + Séparateurs avec Icônes par Section
   ==================================================================== */

/* ==================== Navbar Plus Compacte ==================== */

.navbar {
    padding: 0 !important;
    min-height: 60px !important;
}

.navbar-brand {
    padding: 0.5rem 1.5rem !important;
}

.navbar-brand .navbar-logo {
    height: 45px !important;
    max-width: 150px !important;
}

.navbar-brand-text h2 {
    font-size: 1.25rem !important;
}

.navbar-brand-text small {
    font-size: 0.7rem !important;
}

.navbar-brand::after {
    width: 22px !important;
    height: 22px !important;
    font-size: 13px !important;
    top: -4px !important;
    right: 5px !important;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem !important;
}

.navbar .btn-primary {
    padding: 0.625rem 1.5rem !important;
    font-size: 0.9375rem !important;
    /* Empêche le texte « Démarrer un projet » de passer sur plusieurs lignes
       (sinon le bouton, contraint en largeur, devient anormalement haut). */
    white-space: nowrap !important;
}

/* ==================== Séparateurs avec Icônes par Section ==================== */

/* Base du séparateur avec rond */
.section-separator-icon {
    position: relative;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(214, 64, 0, 0.3) 30%,
        rgba(214, 64, 0, 0.5) 50%,
        rgba(214, 64, 0, 0.3) 70%,
        transparent 100%
    );
    margin: 3rem 0;
}

.section-separator-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 3px solid rgb(214, 64, 0);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(214, 64, 0, 0.2);
}

.section-separator-icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
    color: rgb(214, 64, 0);
    font-size: 20px;
    z-index: 2;
}

/* ==================== Icônes Spécifiques par Section ==================== */

/* Services - Icône engrenages */
.separator-services::after {
    content: '\f085'; /* fa-cogs */
}

/* Expertise/Gallery - Icône lightbulb */
.separator-expertise::after {
    content: '\f0eb'; /* fa-lightbulb */
}

/* Process/Timeline - Icône route */
.separator-process::after {
    content: '\f018'; /* fa-road */
}

/* Produits - Icône shopping bag */
.separator-produits::after {
    content: '\f290'; /* fa-shopping-bag */
}

/* Testimonials - Icône étoile */
.separator-testimonials::after {
    content: '\f005'; /* fa-star */
}

/* Blog - Icône newspaper */
.separator-blog::after {
    content: '\f1ea'; /* fa-newspaper */
}

/* Contact - Icône envelope */
.separator-contact::after {
    content: '\f0e0'; /* fa-envelope */
}

/* Avantages - Icône check-circle */
.separator-avantages::after {
    content: '\f058'; /* fa-check-circle */
}

/* Team - Icône users */
.separator-team::after {
    content: '\f0c0'; /* fa-users */
}

/* ==================== Variantes de Couleurs ==================== */

/* Variante bleue */
.section-separator-icon.blue::before {
    border-color: #0D6EFD;
}

.section-separator-icon.blue::after {
    color: #0D6EFD;
}

.section-separator-icon.blue {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(13, 110, 253, 0.3) 30%,
        rgba(13, 110, 253, 0.5) 50%,
        rgba(13, 110, 253, 0.3) 70%,
        transparent 100%
    );
}

/* Variante verte */
.section-separator-icon.green::before {
    border-color: #28a745;
}

.section-separator-icon.green::after {
    color: #28a745;
}

.section-separator-icon.green {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(40, 167, 69, 0.3) 30%,
        rgba(40, 167, 69, 0.5) 50%,
        rgba(40, 167, 69, 0.3) 70%,
        transparent 100%
    );
}

/* ==================== Animation au Scroll ==================== */

.section-separator-icon {
    opacity: 0;
    transform: scaleX(0);
    animation: revealSeparator 0.8s ease-out forwards;
}

@keyframes revealSeparator {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }
    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Animation de l'icône */
.section-separator-icon::after {
    animation: iconPop 0.6s ease-out 0.4s both;
}

@keyframes iconPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ==================== Hover Effect ==================== */

.section-separator-icon::before {
    transition: all 0.3s ease;
}

.section-separator-icon::after {
    transition: all 0.3s ease;
}

.section-separator-icon:hover::before {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 16px rgba(214, 64, 0, 0.3);
}

.section-separator-icon:hover::after {
    transform: translate(-50%, -50%) scale(1.15);
}

/* ==================== Responsive ==================== */

@media (max-width: 991px) {
    .navbar-brand .navbar-logo {
        height: 40px !important;
        max-width: 120px !important;
    }

    .navbar-brand-text h2 {
        font-size: 1.1rem !important;
    }

    .navbar-brand-text small {
        font-size: 0.65rem !important;
    }

    .navbar-brand::after {
        width: 20px !important;
        height: 20px !important;
        font-size: 12px !important;
    }

    .section-separator-icon::before {
        width: 45px;
        height: 45px;
        border-width: 2.5px;
    }

    .section-separator-icon::after {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .navbar {
        min-height: 55px !important;
    }

    .navbar-brand .navbar-logo {
        height: 35px !important;
        max-width: 100px !important;
    }

    .navbar-brand-text h2 {
        font-size: 1rem !important;
    }

    .navbar-brand-text small {
        display: none;
    }

    .section-separator-icon {
        margin: 2rem 0;
    }

    .section-separator-icon::before {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }

    .section-separator-icon::after {
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .navbar-brand .navbar-logo {
        height: 32px !important;
    }

    .navbar-brand-text h2 {
        font-size: 0.9rem !important;
    }

    .navbar-brand::after {
        display: none;
    }

    .section-separator-icon::before {
        width: 35px;
        height: 35px;
    }

    .section-separator-icon::after {
        font-size: 14px;
    }
}

/* ==================== Variante avec texte sous l'icône ==================== */

.section-separator-with-label {
    position: relative;
    margin: 4rem 0;
}

.section-separator-with-label .label {
    position: absolute;
    top: calc(50% + 35px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: rgb(214, 64, 0);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    background: white;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ==================== Alternative: Icônes SVG personnalisées ==================== */

/* Si vous voulez utiliser des SVG au lieu de Font Awesome */
.section-separator-icon.custom::after {
    content: '';
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml,...'); /* Votre SVG ici */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ==================== Print ==================== */

@media print {
    .section-separator-icon {
        page-break-inside: avoid;
    }

    .section-separator-icon::before,
    .section-separator-icon::after {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* ==================== Accessibilité ==================== */

.section-separator-icon {
    /* Rendre le séparateur focusable pour la navigation clavier */
    cursor: default;
}

/* Réduire les animations pour ceux qui préfèrent moins de mouvement */
@media (prefers-reduced-motion: reduce) {
    .section-separator-icon,
    .section-separator-icon::after,
    .section-separator-icon::before {
        animation: none !important;
        transition: none !important;
    }
}

/* ==================== Menu desktop sur une seule ligne (Lot 6.P.3.1) ==================== */
/* Empêche les intitulés multi-mots (« Nos Services », « Demande de Sourcing »…) de
   passer sur deux lignes et resserre légèrement l'espacement pour tout tenir sur une
   ligne à largeur desktop. Mobile/tablette (< 992px) inchangés. */
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        white-space: nowrap !important;
        padding-left: 0.6rem !important;
        padding-right: 0.6rem !important;
    }
}
@media (min-width: 992px) and (max-width: 1299.98px) {
    .navbar-nav .nav-link {
        font-size: 0.875rem !important;
        padding-left: 0.45rem !important;
        padding-right: 0.45rem !important;
    }
}
