/* =====================================================
   FXG — CUSTOM CSS GLOBAL
   F.X.G — LE CHÂSSIS
   ===================================================== */


/* =====================================================
   FXG — SELECTEUR DE LANGUES
   Style éditorial inspiré d'INSOCREA CRM
   ===================================================== */

#sp-langues .mod-languages__list {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#sp-langues .mod-languages__list li {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

#sp-langues .mod-languages__list li a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    height: 30px !important;
    padding: 0 7px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 2px !important;
    color: #FAF6F0 !important;
    -webkit-text-fill-color: #FAF6F0 !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    text-decoration: none !important;
    line-height: 1 !important;
    transition: color .2s ease, background-color .2s ease;
}

/* Survol : doré FXG */
#sp-langues .mod-languages__list li a:hover {
    color: #D4AF37 !important;
    -webkit-text-fill-color: #D4AF37 !important;
    background: transparent !important;
}

/* Langue active */
#sp-langues .mod-languages__list li.lang-active a {
    color: #D4AF37 !important;
    -webkit-text-fill-color: #D4AF37 !important;
    background: #3A2114 !important;
    font-weight: 600 !important;
}

/* Mobile */
@media (max-width: 991px) {
    #sp-langues .mod-languages__list {
        gap: 2px !important;
    }

    #sp-langues .mod-languages__list li a {
        height: 28px !important;
        padding: 0 5px !important;
        font-size: 11px !important;
    }
}


/* =====================================================
   FXG — POPUP PEDAGOGIQUE
   ===================================================== */

.fxg-popup-confirm {
    margin-top: 24px;
    border: 1px solid #d4af37;
    border-radius: 0;
    background: #23120b;
    color: #d4af37;
    font-family: "Times New Roman", Times, serif;
    font-weight: bold;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 12px 25px;
    cursor: pointer;
}

.fxg-popup-confirm:hover {
    background: #3a2114;
    color: #e5c158;
}

.fxg-popup-root.fxg-popup-open {
    display: grid;
}

body.fxg-popup-body-lock {
    overflow: hidden;
}

/* Responsive popup */
@media (max-width: 600px) {
    .fxg-popup-root {
        padding: 10px;
        align-items: center;
    }

    .fxg-popup-dialog {
        max-height: 92dvh;
        padding: 26px 20px;
        border-radius: 2px;
    }

    .fxg-popup-content {
        font-size: 1rem;
    }
}


/* =====================================================
   FXG — HEADER PERSONNALISÉ DESKTOP
   Logo et sélecteur de langues
   ===================================================== */

@media (min-width: 992px) {

    /* Logo : centrage vertical et décalage horizontal */
    #sp-logo {
        align-self: stretch;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding-left: 40px;
    }

    #sp-logo .logo,
    #sp-logo .logo a,
    #sp-logo .logo-image {
        display: flex;
        align-items: center;
        margin-top: 0;
        margin-bottom: 0;
    }

    #sp-logo .logo img,
    #sp-logo .logo-image img {
        display: block;
        margin: 0;
    }

    /* Colonne du module de langues : centrage vertical */
    #sp-langues {
        align-self: stretch;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Conteneurs du module */
    #sp-langues .sp-module,
    #sp-langues .sp-module-content,
    #sp-langues .mod-languages {
        display: flex;
        align-items: center;
        margin-top: 0;
        margin-bottom: 0;
    }

    /* Liste des langues */
    #sp-langues ul.lang-inline {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    #sp-langues ul.lang-inline li {
        display: flex;
        align-items: center;
        margin-top: 0;
        margin-bottom: 0;
    }
}


/* =====================================================
   FXG — COULEURS MENU HEADER
   Structure Helix personnalisée
   ===================================================== */

/* Liens ordinaires : ivoire */
#sp-header #sp-menu ul.sp-megamenu-parent > li > a {
    color: #FAF6F0 !important;
    transition: color .25s ease;
}

/* Survol : or FXG */
#sp-header #sp-menu ul.sp-megamenu-parent > li:hover > a {
    color: #D4AF37 !important;
}

/* Page active : or FXG */
#sp-header #sp-menu ul.sp-megamenu-parent > li.active > a,
#sp-header #sp-menu ul.sp-megamenu-parent > li.current-item > a {
    color: #D4AF37 !important;
}

/* Soulignement de la page active */
#sp-header #sp-menu ul.sp-megamenu-parent > li.active > a::after,
#sp-header #sp-menu ul.sp-megamenu-parent > li.current-item > a::after {
    background-color: #D4AF37 !important;
}


/* =====================================================
   FXG — HEADER MOBILE
   Réorganisation des trois colonnes Helix
   ===================================================== */

@media (max-width: 991px) {

    /* Rangée principale : une seule ligne */
    #sp-header .row:has(> #sp-logo) {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        width: 100%;
        margin: 0 !important;
        min-height: 76px;
    }

    /* Logo : première position */
    #sp-header .row > #sp-logo {
        order: 1;
        flex: 0 0 75px !important;
        width: 75px !important;
        max-width: 75px !important;
        padding: 0 0 0 8px !important;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    #sp-logo .sp-column,
    #sp-logo .logo,
    #sp-logo .logo a {
        display: flex;
        align-items: center;
    }

    #sp-logo img {
        display: block;
        max-width: 58px;
        height: auto;
    }

    /* Langues : deuxième position */
    #sp-header .row > #sp-langues {
        order: 2;
        flex: 0 1 auto !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    #sp-langues .sp-column,
    #sp-langues .sp-module,
    #sp-langues .sp-module-content,
    #sp-langues .mod-languages {
        display: flex;
        align-items: center;
        margin: 0 !important;
    }

    #sp-langues ul.lang-inline {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 4px;
        margin: 0 !important;
        padding: 0 !important;
    }

    #sp-langues ul.lang-inline li {
        display: flex;
        align-items: center;
        margin: 0 !important;
    }

    #sp-langues ul.lang-inline img {
        display: block;
        max-width: 23px;
        height: auto;
    }

    /* Menu : troisième position, burger à droite */
    #sp-header .row > #sp-menu {
        order: 3;
        flex: 0 0 48px !important;
        width: 48px !important;
        max-width: 48px !important;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #sp-menu .sp-column {
        display: flex;
        align-items: center;
        justify-content: center !important;
        width: 100%;
        padding: 0 !important;
    }

    /* Menu horizontal masqué sur mobile */
    #sp-menu .sp-megamenu-wrapper {
        display: none !important;
    }

    /* Déclencheur natif Helix conservé */
    #sp-menu #offcanvas-toggler {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 48px;
        margin: 0;
        padding: 0;
    }

    /* Trois traits du burger en or FXG */
    #sp-menu #offcanvas-toggler .burger-icon span {
        background-color: #D4AF37 !important;
    }

    /* Fond chocolat du bandeau */
    #sp-header {
        background-color: #23120B !important;
    }
}


/* =====================================================
   FXG — FINITIONS HEADER MOBILE
   Logo / Langues / Burger
   ===================================================== */

@media (max-width: 991px) {

    /* Bandeau et rangée : hauteur uniforme */
    #sp-header {
        min-height: 76px !important;
        height: 76px !important;
        display: flex;
        align-items: center;
    }

    #sp-header .row:has(> #sp-logo) {
        min-height: 76px !important;
        height: 76px !important;
        align-items: center !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* LOGO : réduction et centrage */
    #sp-header .row > #sp-logo {
        flex: 0 0 60px !important;
        width: 60px !important;
        max-width: 60px !important;
        height: 76px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0 !important;
    }

    #sp-header #sp-logo .sp-column,
    #sp-header #sp-logo .logo,
    #sp-header #sp-logo .logo a {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        height: 76px !important;
    }

    #sp-header #sp-logo img.logo-image {
        width: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
        height: auto !important;
        object-fit: contain;
    }

    /* LANGUES : centrage vertical */
    #sp-header .row > #sp-langues {
        height: 76px !important;
        display: flex !important;
        align-items: center !important;
        margin-left: auto !important;
    }

    #sp-header #sp-langues .sp-column,
    #sp-header #sp-langues .sp-module,
    #sp-header #sp-langues .sp-module-content,
    #sp-header #sp-langues .mod-languages {
        height: 76px !important;
        display: flex !important;
        align-items: center !important;
    }

    #sp-header #sp-langues ul.lang-inline {
        align-items: center !important;
        margin: 0 !important;
    }

    /* BURGER : centrage vertical et marge droite */
    #sp-header .row > #sp-menu {
        height: 76px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex: 0 0 48px !important;
        width: 48px !important;
        max-width: 48px !important;
        padding: 0 !important;
    }

    #sp-header #sp-menu .sp-column {
        height: 76px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }

    #sp-header #offcanvas-toggler {
        height: 48px !important;
        width: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Trois traits conservés en or FXG */
    #sp-header #offcanvas-toggler .burger-icon span {
        background-color: #D4AF37 !important;
    }
}


/* =====================================================
   FXG — MENU MOBILE OFFCANVAS
   Identité graphique F.X.G — LE CHÂSSIS
   ===================================================== */

:root {
    --fxg-chocolate: #23120B;
    --fxg-gold: #D4AF37;
    --fxg-parchment: #FAF6F0;
}

/* 1. Fond ivoire gaufré du panneau */

html body .offcanvas-menu,
html body .offcanvas-menu .offcanvas-inner,
html body .offcanvas-menu .offcanvas-content {
    background-color: var(--fxg-parchment) !important;

    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(35, 18, 11, 0.018) 0px,
            transparent 1px,
            transparent 4px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(212, 175, 55, 0.025) 0px,
            transparent 1px,
            transparent 4px
        ),
        linear-gradient(
            135deg,
            #FAF6F0 0%,
            #F4EDE2 100%
        ) !important;

    color: var(--fxg-chocolate) !important;
    font-family: "Times New Roman", Times, serif !important;
}

/* 2. Neutraliser les fonds des conteneurs internes */

html body .offcanvas-menu .sp-module,
html body .offcanvas-menu .sp-module-content,
html body .offcanvas-menu ul.menu,
html body .offcanvas-menu ul.menu > li,
html body .offcanvas-menu .menu-child {
    background: transparent !important;
}

/* 3. Liens : chocolat par défaut */

html body .offcanvas-menu ul.menu > li > a,
html body .offcanvas-menu ul.menu > li > span,
html body .offcanvas-menu .menu-child > li > a,
html body .offcanvas-menu .menu-child > li > span {
    color: var(--fxg-chocolate) !important;
    -webkit-text-fill-color: var(--fxg-chocolate) !important;

    font-family: "Times New Roman", Times, serif !important;
    font-size: 19px !important;
    font-weight: normal !important;

    background: transparent !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.35) !important;

    padding: 16px 20px !important;
    transition: color .25s ease, background-color .25s ease;
}

/* 4. Survol : doré */

html body .offcanvas-menu ul.menu > li:hover > a,
html body .offcanvas-menu ul.menu > li > a:hover,
html body .offcanvas-menu .menu-child > li > a:hover {
    color: var(--fxg-gold) !important;
    -webkit-text-fill-color: var(--fxg-gold) !important;

    background-color: rgba(212, 175, 55, 0.08) !important;
}

/* 5. Lien actif : doré */

html body .offcanvas-menu ul.menu > li.active > a,
html body .offcanvas-menu ul.menu > li.current > a,
html body .offcanvas-menu ul.menu > li.current-item > a,
html body .offcanvas-menu .menu-child > li.active > a,
html body .offcanvas-menu .menu-child > li.current-item > a {
    color: var(--fxg-gold) !important;
    -webkit-text-fill-color: var(--fxg-gold) !important;

    background-color: rgba(212, 175, 55, 0.10) !important;
}

/* 6. Séparateurs */

html body .offcanvas-menu ul.menu > li:last-child > a {
    border-bottom: none !important;
}

/* 7. Flèches et icônes des sous-menus */

html body .offcanvas-menu .menu-toggler,
html body .offcanvas-menu .fa,
html body .offcanvas-menu .fas {
    color: var(--fxg-gold) !important;
}

/* 8. Bouton de fermeture */

html body .offcanvas-menu .close-offcanvas,
html body .offcanvas-menu .offcanvas-close {
    color: var(--fxg-chocolate) !important;
    background: transparent !important;
    border: none !important;
}

html body .offcanvas-menu .close-offcanvas:hover,
html body .offcanvas-menu .offcanvas-close:hover {
    color: var(--fxg-gold) !important;
}

/* 9. Zone de profil utilisateur */

html body .offcanvas-menu .sp-profile-wrapper {
    background: transparent !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.35) !important;
}

html body .offcanvas-menu .sp-profile-wrapper .user-text {
    color: var(--fxg-chocolate) !important;
}

html body .offcanvas-menu .sp-profile-wrapper a.sp-sign-in {
    color: var(--fxg-chocolate) !important;
}

/* 10. Actions du profil */

html body .offcanvas-menu .sp-profile-dropdown li a {
    color: var(--fxg-chocolate) !important;
    background: transparent !important;
    border-top: 1px solid rgba(212, 175, 55, 0.25) !important;
}

html body .offcanvas-menu .sp-profile-dropdown li a:hover {
    color: var(--fxg-gold) !important;
    background: rgba(212, 175, 55, 0.08) !important;
}

/* INSOCREA – Liens des recettes associées */

.lien-recette-associee,
.lien-recette-associee:link,
.lien-recette-associee:visited {
    color: #041A56 !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: color 0.25s ease;
}

/* Survol */
.lien-recette-associee:hover,
.lien-recette-associee:focus {
    color: #CDA35B !important;
    text-decoration: none !important;
}
/* =====================================================
   F.X.G — GESTION GLOBALE DES LIENS
   Conservation des couleurs définies par le template
===================================================== */

/* Liens standards et liens déjà visités */
a,
a:link,
a:visited {
    text-decoration: none;
}

/* Conservation des couleurs au survol */
a:hover,
a:focus-visible {
    text-decoration: none;
}
/* DESKTOP : masquer le burger */
@media (min-width: 992px) {
    .offcanvas-toggler,
    .burger-icon {
        display: none !important;
    }
}

/* MOBILE ET TABLETTE : conserver le burger */
@media (max-width: 991px) {
    .offcanvas-toggler,
    .burger-icon {
        display: block !important;
    }
}

/* =========================================
   F.X.G - LE CHÂSSIS
   FORMULAIRE INSCRIPTION PREMIUM
   FOND GAUFRÉ INTÉGRAL
========================================= */

/* FOND GÉNÉRAL DU FORMULAIRE */

body.com_users.view-registration,
body.com_users.view-registration #sp-main-body,
body.com_users.view-registration main,
body.com_users.view-registration .container,
body.com_users.view-registration .container-fluid,
body.com_users.view-registration .site-grid,
body.com_users.view-registration .grid-child,
body.com_users.view-registration #content {
    background-color: #23120B !important;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(212,175,55,0.035) 0px,
            rgba(212,175,55,0.035) 1px,
            transparent 1px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(212,175,55,0.035) 0px,
            rgba(212,175,55,0.035) 1px,
            transparent 1px,
            transparent 4px
        ),
        radial-gradient(
            ellipse at center,
            #392014 0%,
            #23120B 100%
        ) !important;
}

/* SUPPRESSION DES FONDS BLANCS */

body.com_users.view-registration .com-users-registration,
body.com_users.view-registration .com-users-registration__form,
body.com_users.view-registration #member-registration,
body.com_users.view-registration fieldset,
body.com_users.view-registration .form-control,
body.com_users.view-registration .card,
body.com_users.view-registration .card-body {
    background: transparent !important;
    box-shadow: none !important;
}

/* LARGEUR DU FORMULAIRE */

body.com_users.view-registration,
body.com_users.view-registration * {
    box-sizing: border-box;
}

body.com_users.view-registration,
body.com_users.view-registration html,
body.com_users.view-registration #sp-main-body,
body.com_users.view-registration .container,
body.com_users.view-registration .container-fluid,
body.com_users.view-registration main,
body.com_users.view-registration #content,
body.com_users.view-registration #member-registration,
body.com_users.view-registration .com-users-registration,
body.com_users.view-registration .com-users-registration__form {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden !important;
}

/* TYPOGRAPHIE */

body.com_users.view-registration,
body.com_users.view-registration label,
body.com_users.view-registration legend,
body.com_users.view-registration h1,
body.com_users.view-registration h2,
body.com_users.view-registration h3,
body.com_users.view-registration p {
    color: #FAF6F0 !important;
    font-family: "Times New Roman", Times, serif !important;
}

/* CHAMPS DE SAISIE */

body.com_users.view-registration input:not([type="checkbox"]):not([type="radio"]),
body.com_users.view-registration select,
body.com_users.view-registration textarea {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    background: #FAF6F0 !important;
    color: #23120B !important;
    border: 1px solid #D4AF37 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

/* FOCUS */

body.com_users.view-registration input:focus,
body.com_users.view-registration select:focus,
body.com_users.view-registration textarea:focus {
    border-color: #D4AF37 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(212,175,55,0.2) !important;
}

/* ESPACEMENT DES CHAMPS */

body.com_users.view-registration .control-group {
    margin-bottom: 8px !important;
}

/* BOUTON S'INSCRIRE */

body.com_users.view-registration button[type="submit"],
body.com_users.view-registration input[type="submit"],
body.com_users.view-registration .btn-primary,
body.com_users.view-registration .com-users-registration__form .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 8px 22px !important;

    background: #23120B !important;
    color: #D4AF37 !important;
    -webkit-text-fill-color: #D4AF37 !important;

    border: 1px solid #D4AF37 !important;
    border-radius: 6px !important;

    font-family: "Times New Roman", Times, serif !important;
    font-size: 15px !important;
    letter-spacing: 0.5px !important;

    box-shadow: none !important;
    cursor: pointer;
}

/* SURVOL */

body.com_users.view-registration button[type="submit"]:hover,
body.com_users.view-registration input[type="submit"]:hover,
body.com_users.view-registration .btn-primary:hover {
    background: #D4AF37 !important;
    color: #23120B !important;
    -webkit-text-fill-color: #23120B !important;
}

/* PAS D'ESPACE INUTILE AVANT LE BOUTON */

body.com_users.view-registration .form-actions,
body.com_users.view-registration .controls {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* SUPPRESSION DU DÉFILEMENT HORIZONTAL */

html,
body.com_users.view-registration {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

body.com_users.view-registration .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}

/* MOBILE */

@media (max-width: 650px) {
    body.com_users.view-registration #sp-main-body {
        padding: 10px !important;
    }

    body.com_users.view-registration input:not([type="checkbox"]):not([type="radio"]),
    body.com_users.view-registration select {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =========================================
   FXG — INSCRIPTION JOOMLA 6.2.1
   CORRECTIONS CIBLÉES
========================================= */

/* 1. FOND GAUFRÉ SUR TOUTE LA SURFACE */

html:has(body.com_users.view-registration),
body.site.com_users.view-registration {
    min-height: 100% !important;
    background-color: #23120B !important;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(212,175,55,0.035) 0px,
            rgba(212,175,55,0.035) 1px,
            transparent 1px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(212,175,55,0.035) 0px,
            rgba(212,175,55,0.035) 1px,
            transparent 1px,
            transparent 4px
        ) !important;
}

/* Conteneurs Joomla transparents */

.com-users-registration,
.com-users-registration.registration,
.com-users-registration .row,
.com-users-registration .col-lg-9,
.com-users-registration .col-xl-6,
#member-registration,
#member-registration fieldset {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* 3. SUPPRESSION DU DÉFILEMENT HORIZONTAL */

html,
body.site,
.com-users-registration,
#member-registration {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.com-users-registration .row,
.com-users-registration .col-lg-9,
.com-users-registration .col-xl-6 {
    min-width: 0 !important;
    max-width: 100% !important;
}

/* 4. BOUTON S'INSCRIRE */

.com-users-registration__submit.control-group {
    margin-top: 10px !important;
    padding-top: 0 !important;
}

button.com-users-registration__register.btn.btn-primary.validate {
    background: #23120B !important;
    background-image: none !important;
    color: #D4AF37 !important;
    -webkit-text-fill-color: #D4AF37 !important;
    border: 1px solid #D4AF37 !important;
    border-radius: 6px !important;
    padding: 9px 22px !important;
    margin: 0 !important;
    box-shadow: none !important;
    font-family: "Times New Roman", Times, serif !important;
    transition: all 0.25s ease !important;
}

/* Survol */

button.com-users-registration__register.btn.btn-primary.validate:hover {
    background: #D4AF37 !important;
    color: #23120B !important;
    -webkit-text-fill-color: #23120B !important;
    border-color: #D4AF37 !important;
}


/* =====================================================
   FXG — POPUP ACCÈS GASTRONOME
   CSS GLOBAL — HELIX ULTIMATE
   Ajout sans modification des règles précédentes
   ===================================================== */

/* Base et état fermé */

body .fxg-gourmet-modal,
body .fxg-gourmet-modal * {
    box-sizing: border-box;
}

body .fxg-gourmet-modal[hidden] {
    display: none !important;
}

/* Conteneur couvrant toute la fenêtre */

body .fxg-gourmet-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 25px !important;
    background: transparent !important;
    font-family: "Times New Roman", Times, serif !important;
}

/* Voile sombre */

body .fxg-gourmet-modal__overlay {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(25, 17, 13, 0.76) !important;
    cursor: pointer;
}

/* Fenêtre de dialogue */

body .fxg-gourmet-modal__box {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    width: 100% !important;
    max-width: 480px !important;
    height: auto !important;
    max-height: calc(100vh - 50px) !important;
    overflow-y: auto !important;
    margin: auto !important;
    padding: 32px 28px 28px !important;
    background: #FAF6F0 !important;
    border: 1px solid #D4AF37 !important;
    border-radius: 4px !important;
    color: #23120B !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25) !important;
    animation: fxgGourmetModalIn 0.25s ease;
}

/* Animation d'ouverture */

@keyframes fxgGourmetModalIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Titre */

body .fxg-gourmet-modal__box h2 {
    margin: 0 30px 16px 0 !important;
    color: #23120B !important;
    font-family: "Times New Roman", Times, serif !important;
    font-size: 27px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
}

/* Texte */

body .fxg-gourmet-modal__box p {
    margin: 0 0 26px !important;
    color: #59463B !important;
    font-family: "Times New Roman", Times, serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
}

body .fxg-gourmet-modal__box p strong {
    color: #23120B !important;
    font-weight: 700 !important;
}

/* Croix de fermeture */

body .fxg-gourmet-modal__close {
    position: absolute !important;
    top: 12px !important;
    right: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    color: #23120B !important;
    font-family: Arial, sans-serif !important;
    font-size: 27px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    cursor: pointer;
}

body .fxg-gourmet-modal__close:hover {
    color: #B68B2B !important;
}

/* Conteneur des boutons */

body .fxg-gourmet-modal__actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Boutons d'action */

body .fxg-gourmet-modal__button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 46px !important;
    padding: 12px 18px !important;
    border: 1px solid #D4AF37 !important;
    border-radius: 0 !important;
    background: #23120B !important;
    color: #FAF6F0 !important;
    font-family: "Times New Roman", Times, serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: background 0.25s ease, color 0.25s ease;
}

body .fxg-gourmet-modal__button:hover {
    background: #D4AF37 !important;
    color: #23120B !important;
    border-color: #D4AF37 !important;
}

/* Adaptation mobile */

@media (max-width: 550px) {

    body .fxg-gourmet-modal {
        padding: 18px !important;
    }

    body .fxg-gourmet-modal__box {
        padding: 30px 22px 24px !important;
        max-height: calc(100dvh - 36px) !important;
    }

    body .fxg-gourmet-modal__box h2 {
        font-size: 24px !important;
    }

    body .fxg-gourmet-modal__box p {
        font-size: 15px !important;
    }

    body .fxg-gourmet-modal__actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    body .fxg-gourmet-modal__button {
        width: 100% !important;
    }

}

/* ==========================================================
   F.X.G. — LE CHÂSSIS
   Notifications Joomla premium — FRONTEND UNIQUEMENT
   Charte : Chocolat #23120B / Ivoire #FAF6F0 / Or #D4AF37
   ========================================================== */

/* Conteneur central des notifications publiques */
body.site #system-message-container {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;

    width: 100% !important;
    max-width: none !important;
    height: 100% !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;

    padding: 20px !important;
    margin: 0 !important;

    background: transparent !important;
    pointer-events: none !important;
}

/* Notification Joomla native */
body.site #system-message-container joomla-alert {
    --jui-alert-border-radius: 12px;
    --jui-alert-margin: 0;
    --jui-alert-padding: 0;

    position: relative !important;
    display: block !important;

    width: min(560px, calc(100vw - 32px)) !important;
    min-width: 0 !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #23120B !important;
    background: #FAF6F0 !important;

    border: 1px solid #D4AF37 !important;
    border-top: 4px solid #D4AF37 !important;
    border-radius: 12px !important;

    box-shadow:
        0 18px 55px rgba(35, 18, 11, 0.22),
        0 3px 12px rgba(35, 18, 11, 0.10) !important;

    overflow: hidden !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
}

/* Bandeau supérieur */
body.site #system-message-container joomla-alert .alert-heading {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    min-height: 48px !important;
    padding: 12px 52px 12px 20px !important;

    color: #D4AF37 !important;
    background: #23120B !important;

    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

/* Contenu du message */
body.site #system-message-container joomla-alert .alert-wrapper {
    width: 100% !important;
    padding: 0 !important;
    background: #FAF6F0 !important;
}

body.site #system-message-container joomla-alert .alert-message {
    margin: 0 !important;
    padding: 20px 24px !important;

    color: #23120B !important;
    background: #FAF6F0 !important;

    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;

    overflow-wrap: anywhere !important;
}

body.site #system-message-container joomla-alert .alert-message a {
    color: #8D6B20 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

/* Bouton de fermeture */
body.site #system-message-container joomla-alert .joomla-alert--close,
body.site #system-message-container joomla-alert .joomla-alert-button--close {
    position: absolute !important;
    top: 5px !important;
    right: 8px !important;
    z-index: 5 !important;

    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    color: #D4AF37 !important;
    background: transparent !important;
    border: 0 !important;

    font-size: 25px !important;
    line-height: 1 !important;
    opacity: 0.9 !important;
    text-shadow: none !important;
    cursor: pointer !important;
}

body.site #system-message-container joomla-alert .joomla-alert--close:hover,
body.site #system-message-container joomla-alert .joomla-alert-button--close:hover {
    color: #FAF6F0 !important;
    opacity: 1 !important;
}

/* Couleurs discrètes selon la nature du message */
body.site #system-message-container joomla-alert[type="success"],
body.site #system-message-container joomla-alert[type="message"] {
    border-top-color: #A58A43 !important;
}

body.site #system-message-container joomla-alert[type="info"],
body.site #system-message-container joomla-alert[type="notice"] {
    border-top-color: #B99A50 !important;
}

body.site #system-message-container joomla-alert[type="warning"] {
    border-top-color: #D4AF37 !important;
}

body.site #system-message-container joomla-alert[type="danger"],
body.site #system-message-container joomla-alert[type="error"] {
    border-top-color: #9C3930 !important;
}

/* Compatibilité avec les anciens messages Joomla Bootstrap */
body.site #system-message-container > .alert {
    width: min(560px, calc(100vw - 32px)) !important;
    margin: 0 !important;
    padding: 20px 24px !important;

    color: #23120B !important;
    background: #FAF6F0 !important;
    border: 1px solid #D4AF37 !important;
    border-top: 4px solid #D4AF37 !important;
    border-radius: 12px !important;

    box-shadow: 0 18px 55px rgba(35, 18, 11, 0.22) !important;
    pointer-events: auto !important;
}

/* Adaptation smartphone */
@media (max-width: 600px) {
    body.site #system-message-container {
        padding: 16px !important;
    }

    body.site #system-message-container joomla-alert {
        width: calc(100vw - 32px) !important;
        border-radius: 10px !important;
    }

    body.site #system-message-container joomla-alert .alert-heading {
        min-height: 44px !important;
        padding: 10px 46px 10px 16px !important;
    }

    body.site #system-message-container joomla-alert .alert-message {
        padding: 17px 18px !important;
        font-size: 14px !important;
    }
}

/* Accessibilité : respect des préférences de mouvement */
@media (prefers-reduced-motion: reduce) {
    body.site #system-message-container joomla-alert {
        animation: none !important;
        transition: none !important;
    }
}

/* ==========================================================
   FUSION — STYLES DU FICHIER custom.css EXISTANT
   Connexion et espace membre — conservés intégralement
   ========================================================== */

/* F.X.G – LE CHÂSSIS : connexion et espace utilisateur */
:root{--fxg-parchment:#faf6f0;--fxg-chocolate:#23120b;--fxg-gold:#d4af37;--fxg-gold-light:#e5c158;--fxg-ink:#2c1d11;}
.com-users-login.login{max-width:980px;margin:2.5rem auto;padding:clamp(1.25rem,3vw,2.75rem);background:var(--fxg-parchment);border:1px solid rgba(212,175,55,.55);border-radius:16px;box-shadow:0 12px 36px rgba(35,18,11,.10);font-family:Georgia,"Times New Roman",serif;color:var(--fxg-ink)}
.com-users-login.login .page-header h1{color:var(--fxg-chocolate);text-align:center;font-family:Georgia,"Times New Roman",serif;font-weight:600;margin-bottom:1.5rem}
.com-users-login.login .form-label,.com-users-login.login label{color:var(--fxg-chocolate);font-weight:600}
.com-users-login.login input.form-control{min-height:48px;border:1px solid #cbbda9;border-radius:8px;background:#fffdfa;color:var(--fxg-ink)}
.com-users-login.login input.form-control:focus{border-color:var(--fxg-gold);box-shadow:0 0 0 .2rem rgba(212,175,55,.2)}
.com-users-login.login .btn-primary,.mod-login .btn-primary{background:var(--fxg-chocolate)!important;border:1px solid var(--fxg-gold)!important;color:var(--fxg-gold-light)!important;border-radius:8px;font-weight:700;letter-spacing:.02em;padding:.8rem 1.2rem}
.com-users-login.login .btn-primary:hover,.mod-login .btn-primary:hover{background:var(--fxg-gold)!important;color:var(--fxg-chocolate)!important}
.com-users-login.login .com-users-login__options{margin-top:1rem;gap:.35rem}
.com-users-login.login .com-users-login__options a{background:transparent;border:0;color:var(--fxg-chocolate);text-decoration:underline;text-underline-offset:3px}
.com-users-login.login .com-users-login__options a:hover{color:#8a6414}
.sp-profile-logout-form{margin:0}.sp-profile-logout-link{display:block;width:100%;padding:.45rem 1rem;border:0;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}.sp-profile-logout-link:hover{color:var(--fxg-gold-light);background:rgba(212,175,55,.12)}
.mod-login .mod-login__options .mod-login__register{display:none!important}
@media(max-width:767px){.com-users-login.login{margin:1rem .75rem;padding:1.25rem}.com-users-login.login .col-lg-4{width:100%}}


/* F.X.G – Connexion et espace membre : finition graphique */
.com-users-login.login{max-width:760px!important;margin:clamp(1.5rem,4vw,4rem) auto!important;padding:clamp(1.5rem,4vw,3.25rem)!important;background:linear-gradient(145deg,#fffdf9 0%,#faf6f0 100%)!important;border:1px solid rgba(212,175,55,.65)!important;border-radius:18px!important;box-shadow:0 18px 48px rgba(35,18,11,.13)!important}
.com-users-login.login .col-lg-4{width:100%;max-width:560px}
.com-users-login.login .page-header h1{font-size:clamp(1.8rem,3vw,2.45rem);letter-spacing:.015em}
.com-users-login.login .com-users-login__form{padding:clamp(1rem,3vw,2rem);background:rgba(255,255,255,.58);border:1px solid rgba(92,67,50,.14);border-radius:13px}
.com-users-login.login .com-users-login__form label{display:block;margin-bottom:.45rem}
.com-users-login.login .com-users-login__form input.form-control{width:100%;min-height:50px;padding:.7rem .9rem;border-radius:8px}
.com-users-login.login .com-users-login__submit .btn-primary{min-height:52px;font-family:Georgia,"Times New Roman",serif;font-size:1.08rem}
.com-users-login.login .com-users-login__options{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:1.2rem}
.com-users-login.login .com-users-login__options a{padding:.45rem .7rem;border-radius:6px;font-size:.95rem}
.mod-login .btn-primary,.mod-login-logout .btn-primary{background:#23120b!important;border:1px solid #d4af37!important;color:#e5c158!important}
.mod-login .btn-primary:hover,.mod-login-logout .btn-primary:hover{background:#d4af37!important;color:#23120b!important}
.mod-login-logout__options a{color:#23120b!important}
@media(max-width:767px){.com-users-login.login{margin:1rem .75rem!important;padding:1.15rem!important}.com-users-login.login .com-users-login__form{padding:1rem}.com-users-login.login .com-users-login__options{flex-direction:column;align-items:stretch;text-align:center}}


/* ==========================================================
   F.X.G. – LE CHÂSSIS
   Identification dans le bandeau des notifications Joomla
   ========================================================== */

body.site #system-message-container joomla-alert .alert-heading::before {
    content: "F.X.G. – LE CHÂSSIS";
    display: inline-block;
    color: #D4AF37;
    font-family: "Times New Roman", Times, serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Même signature pour les anciens messages Joomla Bootstrap */
body.site #system-message-container > .alert::before {
    content: "F.X.G. – LE CHÂSSIS";
    display: block;
    margin: -20px -24px 16px;
    padding: 12px 52px 12px 20px;
    min-height: 48px;
    box-sizing: border-box;
    color: #D4AF37;
    background: #23120B;
    font-family: "Times New Roman", Times, serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ==================================================
   FXG — Couleurs des liens dans la popup FG Custom Right Click
   ================================================== */

.crc-popup .crc-body a,
.crc-popup .crc-body a:link,
.crc-popup .crc-body a:visited {
    color: #D4AF37 !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.crc-popup .crc-body a:hover,
.crc-popup .crc-body a:focus {
    color: #E8CB72 !important;
    text-decoration: underline !important;
}

.crc-popup .crc-body a:focus-visible {
    outline: 1px solid #D4AF37;
    outline-offset: 3px;
}

