/* ====== STYLES GLOBAUX ANTI-DÉBORDEMENT ====== */

* {
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    max-width: 100%;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
}

.language-selector {
    position: relative;
    z-index: 1050;
}

.language-dropdown {
    position: relative;
    display: inline-block;
    width: auto;
}

.language-toggle {
    background: linear-gradient(135deg, #d6001c 0%, #a80015 100%);
    border: none;
    color: white;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(214, 0, 28, 0.3);
}

.language-toggle:hover {
    background: linear-gradient(135deg, #a80015 0%, #800010 100%);
    box-shadow: 0 4px 12px rgba(214, 0, 28, 0.5);
    transform: translateY(-2px);
}

.language-toggle span:nth-child(3) {
    font-size: .75rem;
    transition: transform .3s ease;
}

.language-toggle:hover span:nth-child(3) {
    transform: rotate(180deg);
}

.language-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 2000;
    margin-top: 8px;
    overflow: auto;
    max-height: 400px;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-menu.show {
    display: block;
}

.language-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    font-weight: 500;
    font-size: .9rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    text-decoration: none;
}

.language-menu a:hover {
    background: linear-gradient(135deg, rgba(214, 0, 28, 0.08) 0%, rgba(168, 0, 21, 0.08) 100%);
    color: #d6001c;
    padding-left: 20px;
}

.language-menu a:last-child {
    border-bottom: none;
}

.language-menu a span:first-child {
    font-size: 1.2rem;
}

.language-menu a:hover {
    background: rgba(232, 150, 12, .08);
    color: var(--gold);
    padding-left: 20px;
}

.language-menu a img {
    width: 24px;
    height: 16px;
}


/* Hide Google Translate default UI */

.goog-te-banner-frame {
    display: none !important;
}

.goog-te-gadget-simple {
    background-color: transparent !important;
    border: none !important;
}

#google_translate_element {
    position: absolute;
    left: -99999px;
}


/* Menu dropdown - always hide when not active */

.cd-dropdown-content {
    transition: transform 0.3s ease !important;
}

.cd-dropdown.dropdown-is-active .cd-dropdown-content {
    transform: translateX(0) !important;
}

@media (max-width: 768px) {
    /* Fix du menu dropdown qui cache le header sur mobile */
    .cd-dropdown-content {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: none !important;
        z-index: 1030 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        padding-top: 60px !important;
    }
    /* Header du menu doit être au-dessus de la liste */
    .bzhd-mob-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 60px !important;
        z-index: 1031 !important;
        background: white !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 20px !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    .cd-dropdown.dropdown-is-active .cd-dropdown-content {
        transform: translateX(0) !important;
    }
}

@media (max-width: 480px) {
    .language-menu {
        min-width: 160px;
        font-size: .85rem;
    }
    .language-toggle {
        padding: 6px 10px;
        font-size: .85rem;
    }
}


/* ================================================================
   FLAG ICONS FOR LANGUAGE SELECTOR
   ================================================================ */

.flag-icon {
    width: 24px !important;
    height: 16px !important;
    object-fit: contain !important;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    flex-shrink: 0;
}

#current-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#current-flag .flag-icon {
    width: 20px !important;
    height: 14px !important;
    margin-right: 0;
}


/* Prévention du débordement sur tous les éléments */

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

.logo2 {
    padding-top: 10px;
    padding-left: 40px;
    width: 70% !important;
}

#containerParagraphe {
    padding-left: 20px;
}

.logoktp {
    width: 70%;
}

#hideCode {
    background-color: #3c0825;
}

#hideCode:hover {
    background-color: #d6001c;
}

.disabled {
    pointer-events: none;
    opacity: .5;
}

.alert.alert-danger {
    font-size: 17px;
}

.spinner-border {
    color: #EB5671;
}

.spin {
    position: relative;
}

@keyframes spinner {
    0% {
        transform: translate3d(-50%, -50%, 0) rotate(0deg);
    }
    100% {
        transform: translate3d(-50%, -50%, 0) rotate(360deg);
    }
}

.spin::before {
    animation: 1.5s linear infinite spinner;
    animation-play-state: inherit;
    border: solid 5px #cfd0d1;
    border-bottom-color: #3c0825;
    border-radius: 50%;
    content: "";
    height: 40px;
    width: 40px;
    position: absolute;
    top: 10%;
    left: 10%;
    transform: translate3d(-50%, -50%, 0);
    will-change: transform;
}


/* Styles pour les boutons d'accueil */

.order-now-btn-group {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

.order-now-btn {
    flex: 1;
    min-width: 180px;
    max-width: 250px;
}

.order-now-btn a {
    display: inline-block;
    width: 100%;
    padding: 15px 25px;
    background: linear-gradient(135deg, #d6001c 0%, #a80015 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(214, 0, 28, 0.3);
}

.order-now-btn a:hover {
    background: linear-gradient(135deg, #a80015 0%, #7d000f 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(214, 0, 28, 0.4);
    color: white;
}

.order-now-btn a:active {
    transform: translateY(0);
}


/* Styles pour le sélecteur de langue */

.language-selector-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.language-wrapper {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #d6001c 0%, #a80015 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(214, 0, 28, 0.3);
    white-space: nowrap;
}

.lang-btn:hover {
    background: linear-gradient(135deg, #a80015 0%, #7d000f 100%);
    box-shadow: 0 6px 18px rgba(214, 0, 28, 0.4);
    transform: translateY(-2px);
}

.lang-btn:active {
    transform: translateY(0);
}

.lang-icon {
    font-size: 18px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.lang-btn:hover .lang-icon {
    transform: rotate(15deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border: 2px solid #d6001c;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(214, 0, 28, 0.25);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1a1a1a;
    border-left: 4px solid transparent;
}

.lang-item:hover {
    background: linear-gradient(135deg, #fff5f5 0%, #ffebeb 100%);
    border-left-color: #d6001c;
    padding-left: 18px;
}

.lang-item.active {
    background: linear-gradient(135deg, #d6001c 0%, #a80015 100%);
    color: white;
    border-left-color: #7d000f;
    font-weight: 700;
}

.lang-item span:first-child {
    font-size: 20px;
    min-width: 24px;
    text-align: center;
}

.lang-item span:last-child {
    font-weight: 600;
}


/* Styles de correctif mobile */

.bzhd-s-head {
    font-size: 16px;
}

.main-txt h1 {
    font-size: clamp(24px, 5vw, 48px);
    line-height: 1.4;
}

.main-txt p {
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.6;
    margin-bottom: 20px;
}

@media screen and (max-width: 1024px) {
    .order-now-btn-group {
        flex-direction: column;
        gap: 12px;
        justify-content: center;
        align-items: center;
    }
    .order-now-btn {
        flex: none;
        width: 100%;
        max-width: 300px;
    }
    .order-now-btn a {
        padding: 14px 20px;
        font-size: 15px;
    }
    .lang-btn {
        padding: 9px 12px;
        font-size: 13px;
        gap: 6px;
    }
    .lang-icon {
        font-size: 16px;
    }
    .lang-dropdown {
        min-width: 160px;
        top: calc(100% + 6px);
    }
    .lang-item {
        padding: 11px 14px;
        gap: 10px;
        font-size: 13px;
    }
    .lang-item span:first-child {
        font-size: 18px;
    }
}

@media screen and (max-width: 768px) {
    .bzhd-s-head {
        padding: 40px 0 !important;
    }
    .main-txt {
        padding: 20px 15px !important;
    }
    .main-txt h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .main-txt p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    .row.align-items-center {
        row-gap: 20px;
    }
    .item-intro {
        padding: 15px !important;
        margin-bottom: 10px;
    }
    .item-intro .number {
        width: 45px !important;
        height: 45px !important;
        font-size: 20px !important;
    }
    .item-intro p {
        font-size: 13px !important;
        text-align: center;
    }
    .order-now-btn-group {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        justify-content: center;
        align-items: center;
    }
    .order-now-btn {
        width: 100%;
        max-width: 100%;
        flex: none;
    }
    .order-now-btn a {
        padding: 13px 18px;
        font-size: 14px;
        border-radius: 6px;
    }
    .lang-btn {
        padding: 9px 11px;
        font-size: 12px;
        gap: 5px;
    }
    .lang-icon {
        font-size: 15px;
    }
    .lang-dropdown {
        min-width: 150px;
        top: calc(100% + 5px);
    }
    .lang-item {
        padding: 10px 13px;
        gap: 9px;
        font-size: 12px;
    }
    .lang-item span:first-child {
        font-size: 17px;
    }
}

@media screen and (max-width: 600px) {
    /* Reset global pour mobile */
    * {
        box-sizing: border-box !important;
        max-width: 100%;
    }
    html {
        font-size: 14px;
    }
    body {
        font-size: 14px;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
    /* Conteneurs */
    .container-fluid,
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    /* Header et navigation */
    header.header-area {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    .top-header {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        position: relative !important;
        z-index: 9999 !important;
    }
    .affix-top-wrapper {
        padding: 0 10px !important;
        margin: 0 !important;
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        min-height: 60px;
    }
    .logo {
        flex: 0 0 auto !important;
        max-width: 120px !important;
        overflow: visible !important;
    }
    .logo img {
        max-width: 100%;
        height: auto;
        width: auto;
        max-height: 60px;
    }
    .custom-logo {
        max-width: 100% !important;
        height: auto !important;
    }
    /* Navigation mobile */
    nav.d-flex {
        width: auto !important;
        max-width: none !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex: 1;
    }
    .d-flex.align-items-center.justify-content-center.toogle-mob {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        width: auto !important;
    }
    .toogle-mob {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 10px !important;
        margin-left: auto;
    }
    .cd-dropdown-trigger {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 40px !important;
        height: 40px !important;
        padding: 8px !important;
        border: none !important;
        background: transparent !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
        order: 2 !important;
        position: relative;
    }
    .cd-dropdown-trigger i {
        display: block !important;
        width: 24px !important;
        height: 18px !important;
        position: relative !important;
    }
    .bzhd-burger {
        display: block !important;
        width: 24px !important;
        height: 18px !important;
        position: relative !important;
    }
    .bzhd-burger::before,
    .bzhd-burger::after {
        content: '' !important;
        position: absolute !important;
        width: 24px !important;
        height: 3px !important;
        background: #d6001c !important;
        left: 0 !important;
    }
    .bzhd-burger::before {
        top: 0 !important;
        box-shadow: 0 8px 0 #d6001c !important;
    }
    .bzhd-burger::after {
        bottom: 0 !important;
    }
    .language-selector {
        flex-shrink: 0;
        display: list-item !important;
    }
    /* Section d'accueil */
    .imageDiv {
        display: none !important;
    }
    .bzhd-s-head {
        padding: 20px 0 !important;
        min-height: auto;
        width: 100%;
        overflow-x: hidden;
    }
    .section-inner {
        width: 100%;
    }
    .main-txt {
        padding: 10px 15px !important;
        text-align: center;
        width: 100%;
        margin: 0 auto;
    }
    .main-txt h1 {
        font-size: 18px !important;
        line-height: 1.2;
        margin-bottom: 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .main-txt h1 br {
        display: inline;
    }
    .main-txt p {
        font-size: 12px !important;
        margin-bottom: 10px;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .main-txt .red {
        display: inline;
    }
    /* Items intro */
    .item-intro {
        padding: 10px !important;
        margin-bottom: 8px;
        width: 100%;
    }
    .item-intro .number {
        width: 35px !important;
        height: 35px !important;
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }
    .item-intro p {
        font-size: 11px !important;
        line-height: 1.3;
        margin: 0;
    }
    /* Boutons d'accueil */
    .order-now-btn-group {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
        width: 100%;
        justify-content: center;
        align-items: stretch;
        padding: 0 15px;
    }
    .order-now-btn {
        width: 100%;
        flex: none;
        max-width: 100%;
        min-width: unset;
    }
    .order-now-btn a {
        padding: 12px 15px !important;
        font-size: 12px !important;
        border-radius: 5px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        word-wrap: break-word;
    }
    /* Lignes de grille */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
    }
    .col-12,
    .col-md-6,
    .col-lg-6,
    .col-sm-5 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100%;
        max-width: 100%;
    }
    /* Images responsives */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    .img-fluid {
        max-width: 100%;
        height: auto;
    }
    /* Section FAQ et timeline */
    .bzhd-s {
        width: 100%;
        overflow-x: hidden;
        padding: 20px 0 !important;
    }
    .main-timeline {
        width: 100%;
        padding: 15px 0 !important;
    }
    .timeline {
        padding: 10px 0 !important;
        margin: 0 !important;
    }
    .timeline-content {
        padding: 10px !important;
    }
    .timeline-content h3 {
        font-size: 14px !important;
    }
    .timeline-content p {
        font-size: 12px !important;
    }
    /* Section Why */
    .bzhd-why {
        width: 100%;
        overflow-x: hidden;
    }
    .bzhd-why .row {
        flex-direction: column-reverse;
    }
    .bzhd-why img {
        max-width: 90% !important;
        margin: 0 auto;
    }
    /* Texte */
    .main-h2 {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }
    h2 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    /* Footer */
    footer {
        width: 100%;
        overflow-x: hidden;
    }
    .footer {
        padding: 15px 0 !important;
    }
    .coordonnee {
        font-size: 11px;
        padding: 10px 15px;
    }
    /* Prévention du défilement horizontal */
    main {
        width: 100%;
        overflow-x: hidden;
    }
    #primary {
        width: 100%;
        overflow-x: hidden;
    }
    .site-main {
        width: 100%;
        overflow-x: hidden;
    }
    .lang-btn {
        padding: 8px 11px;
        font-size: 11px;
        gap: 5px;
    }
    .lang-icon {
        font-size: 14px;
    }
    .lang-dropdown {
        min-width: 140px;
        top: calc(100% + 4px);
    }
    .lang-item {
        padding: 9px 12px;
        gap: 8px;
        font-size: 11px;
    }
    .lang-item span:first-child {
        font-size: 16px;
    }
}