/* ====================================================================
   Logo Large avec Texte + Séparateurs de Sections
   ==================================================================== */

/* ==================== Logo Large dans Navbar ==================== */

.navbar-brand {
    display: flex !important;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 2rem !important;
    transition: all 0.3s ease;
}

/* Logo plus large */
.navbar-brand .navbar-logo {
    height: 65px !important;
    width: auto !important;
    max-width: 200px !important;
    transition: all 0.3s ease;
    filter: brightness(1);
}

/* Effet hover sur logo */
.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Texte à côté du logo */
.navbar-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.navbar-brand-text h2 {
    font-size: 1.5rem !important;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.navbar-brand-text small {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6B7280;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Effet hover sur texte */
.navbar-brand:hover .navbar-brand-text h2 {
    color: rgb(214, 64, 0);
}

.navbar-brand:hover .navbar-brand-text small {
    color: rgb(255, 87, 34);
}

/* Badge certifié */
.navbar-brand::after {
    content: '✓';
    position: absolute;
    top: -6px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, rgb(214, 64, 0) 0%, rgb(255, 87, 34) 100%);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(214, 64, 0, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(214, 64, 0, 0.4);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 4px 15px rgba(214, 64, 0, 0.6);
    }
}

/* ==================== Séparateurs de Sections ==================== */

/* Bande horizontale entre les sections */
.section-separator {
    position: relative;
    height: 4px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(214, 64, 0, 0.1) 15%,
        rgba(214, 64, 0, 0.3) 30%,
        rgb(214, 64, 0) 50%,
        rgba(255, 87, 34, 0.5) 70%,
        rgba(255, 87, 34, 0.1) 85%,
        transparent 100%
    );
    margin: 0;
    width: 100%;
}

/* Variante avec motif */
.section-separator-pattern {
    position: relative;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgb(214, 64, 0) 50%,
        transparent 100%
    );
    margin: 0;
}

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

.section-separator-pattern::after {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgb(214, 64, 0);
    font-size: 24px;
    z-index: 2;
}

/* Séparateur avec texte */
.section-separator-text {
    position: relative;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(214, 64, 0, 0.3) 25%,
        rgba(214, 64, 0, 0.3) 75%,
        transparent 100%
    );
    margin: 3rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-separator-text span {
    background: white;
    padding: 0.5rem 2rem;
    color: rgb(214, 64, 0);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 2px solid rgb(214, 64, 0);
    border-radius: 2rem;
    box-shadow: 0 2px 8px rgba(214, 64, 0, 0.2);
}

/* Séparateur minimaliste */
.section-separator-minimal {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, rgb(214, 64, 0) 0%, rgb(255, 87, 34) 100%);
    margin: 2rem auto;
    border-radius: 3px;
}

/* Séparateur avec animation */
.section-separator-animated {
    position: relative;
    height: 3px;
    background: rgba(214, 64, 0, 0.1);
    margin: 2rem 0;
    overflow: hidden;
}

.section-separator-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgb(214, 64, 0), transparent);
    animation: slide 3s infinite;
}

@keyframes slide {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* ==================== Sections avec bordure décorative ==================== */

/* Bordure en haut de chaque section */
.container-xxl,
.container-fluid {
    position: relative;
}

.container-xxl::before,
.container-fluid.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(214, 64, 0, 0.2) 50%,
        transparent 100%
    );
}

/* Ne pas ajouter de bordure à la première section */
.container-xxl:first-of-type::before {
    display: none;
}

/* ==================== Header avec ligne décorative ==================== */

.hero-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(214, 64, 0, 0.3) 20%,
        rgb(214, 64, 0) 50%,
        rgba(255, 87, 34, 0.5) 80%,
        transparent 100%
    );
    z-index: 10;
}

/* ==================== Titres de sections avec ligne ==================== */

.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, rgb(214, 64, 0) 0%, rgb(255, 87, 34) 100%);
    border-radius: 3px;
}

/* Titre avec ligne à gauche */
.section-title-left {
    position: relative;
    padding-left: 1.5rem;
}

.section-title-left::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, rgb(214, 64, 0) 0%, rgb(255, 87, 34) 100%);
    border-radius: 2px;
}

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

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

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

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

    .navbar-brand::after {
        width: 24px;
        height: 24px;
        font-size: 14px;
        right: 5px;
    }

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

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

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

    .navbar-brand-text small {
        font-size: 0.6rem;
    }

    /* Masquer le sous-titre sur très petit écran */
    .navbar-brand-text small {
        display: none;
    }
}

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

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

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

    /* Séparateurs plus discrets sur mobile */
    .section-separator {
        height: 2px;
    }

    .section-separator-pattern {
        height: 2px;
    }

    .section-separator-pattern::before {
        width: 40px;
        height: 40px;
    }

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

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

.navbar-brand:focus {
    outline: 3px solid rgb(214, 64, 0);
    outline-offset: 3px;
}

/* ==================== Alternative: Logo très large ==================== */

/* Si vous voulez un logo encore plus grand, décommentez ceci */
/*
.navbar-brand .navbar-logo {
    height: 80px !important;
    max-width: 250px !important;
}

.navbar-brand-text h2 {
    font-size: 1.75rem !important;
}
*/

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

@media print {
    .navbar-brand::after,
    .section-separator,
    .section-separator-pattern,
    .section-separator-animated {
        display: none;
    }
}
