body {
    background-color: #1b1b75 !important;

    .top-menu {
        .site-slogan {
            top: 36px;
        }
        #clock-container {
            float: right;

            .countdown-title {
                line-height: 23px;
                width: 310px;
            }
        }
        .embassies-map {
            display: none;
        }
    }

    .top-2-menu.navbar1-component {
        background-color: #070753 !important;

        .main-menu-social {
            padding-left: 3%;
            width: 16%;
        }

        .main-menu-links {
            width: 84%;
            line-height: 45px;

            .register-link, 
            .login-link,
            .logout-link {
                border: 1px none var(--blue-400);
                /* background-color: var(--blue-400); */
                color: var(--white);
                text-align: center;
                /* border-radius: 90px; */
                padding: 1rem 1.5rem;
                transition: all .45s;
                line-height: 20px;
                margin: 8px;
                /* margin-left: 200px; */
                background-color: #861c7a;
                margin-left: 30px;
                margin: 0px;
                /* padding: 12px; */
                /* padding-right: 0px; */
            }

            .register-link {
                padding-left: 0px;
            }

            .login-link,
            .logout-link {
                border-top-left-radius: 20%;
            }
            .login-link {
                padding-right: 0px;
            }
        }
    }

    .banner-wrapper {
        height: 800px;

        .left-banner-zone {
            padding: 1px !important;
            background-color: #070746;
            /*height: 600px;*/

            .banner-countdown, 
            .countdwon-event-button,
            .can-countdown {
                display: none;
            }

            h1 {
                color: wheat;
            }
        }

        .right-banner-zone {
            /*height: 600px;*/

            .hero-block-mask {
                background-color: #070746;
                opacity: 0.6;
            }
        }

    }

    .community-badges {
            background: #1d0b4b; /* violet foncé comme la maquette */
            color: #fff;
            text-align: center;
            padding: 60px 20px;
        
        
        h2 {
            font-size: 3rem;
            margin-bottom: 15px;
            font-weight: bold;
            color: white;
        }
        
        p {
            font-size: 1rem;
            max-width: 700px;
            margin: 0 auto 40px;
            line-height: 1.6;
        }
        
        .badges-list {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 40px;
        }
        
        .badge {
            background: #2b1463;
            border-radius: 50%;
            width: 150px;
            height: 150px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
            transition: transform 0.3s ease;

            .svg-inline--fa {
                /*height: 23px;*/
                padding-bottom: 10px;
                height: 30%;
            }
        }
        
        .badge i {
            font-size: 28px;
            margin-bottom: 10px;
            color: #fff;
        }
        
        .badge span {
            font-size: 0.9rem;
            font-weight: 500;
        }
        
        .badge:hover {
            transform: translateY(-8px);
        }
    }
}

body.path-football-analysis {
    .bottom-menu-links {
        display: flex;
    }
    
    .banner-wrapper {
        .left-banner-zone {
            .banner-countdown, & .countdwon-event-button {
              display: block;
            }
            .scaleReveal span {
                display: none;
            }
            .scaleReveal span.can-countdown {
                display: block;
            }
            .main-banner-title {
                height: 150px;
                width: 80%;
                text-align: center;
                margin-left: auto;
                margin-right: auto;
            }
        }
    }
}

body:not(.path-football-analysis) {
    .bottom-menu-links {
        .directives-menu,
        .ue-c-main-navigation__teams {
            display: none;
        }
    }
    
}

.left-banner-extension {
    display: none;
}

body.path-frontpage {
    .banner-wrapper {
        height: 1000px;

        .left-banner-zone {
            padding: 100px !important;
            height: 600px;

             #block-mycustom-theme-exposedformcustom-searchpage-1 {
                .content {
                    #views-exposed-form-custom-search-page-1 {
                        width: 600px;

                        .form-type-search, & .form-type-search-api-autocomplete {
                            width: 500px;
                            margin: 0px;
                        }

                        #edit-actions {
                            #edit-submit-custom-search {
                                margin-left: 5px;
                                padding: 8px;
                                width: 95px;
                                background-color: #861c7a;
                            }
                        }
                    }
                }
            }

            h1 {
                color: wheat;
            }

            h6 {
                color: #d1d9ff;
                position: relative;
                width: 80%;
                margin-left: auto;
                margin-right: auto;
                margin-top: 20px;
            }
        }

        .right-banner-zone {
            height: 600px;

            .carousel-control-prev {
                left: 644px;
            }
        }

        .left-banner-extension {
            display: block;
        }
    }
}

.services-squares-wrapper {
    h2 {
        font-size: 3rem;
        margin-bottom: 15px;
        font-weight: bold;
        color: white;
    }

    .cards.services-squares {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 22px;
            padding: 24px;
            align-items: start;
        
            .card {
                    border-radius: 18px;
                    padding: 18px;
                    min-height: 220px;
                    color: #fff;
                    box-shadow: 0 8px 30px rgba(7,12,40,0.45);
                    position: relative;
                    overflow: hidden;
                    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.06));
                    height: 300px;
            }
            /* variante couleurs proches de ton screenshot */
            .mapall { 
                background: linear-gradient(135deg,#0a2980,#2b4fb3);
            }
            .budget { 
                background: linear-gradient(135deg,#0b3a93,#1b8470);

                img {
                    top: 110px;
                }
            }
            .community { 
                background: linear-gradient(135deg,#1d2c68,#000);

                img {
                    width: 200px;
                    top: 140px;
                    left: 125px;
                }
            }
            .embassies { 
                background: linear-gradient(135deg,#1e0e46,#473b5b);
            }
            
            /* image style (coin haut gauche) */
            .card-illustration {
                /* width: 84px; */
                height: auto;
                display: block;
                position: absolute;
                top: 50px;
                left: 50px;
                border-radius: 10px;
                /* box-shadow: 0 6px 18px rgba(0,0,0,0.35); */
                right: 0px;
            }
            
            /* si besoin la map dorée plus grande et centrée */
            .map-gold {
                /* width: 120px; */
                opacity: 0.95;
                filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
                left: 0px;
                padding: 18px;
                top: 105px;
            }
            
            /* espacement du texte pour éviter l'image */
            .card h3{ 
                margin-top: 8px;
                font-size: 26px; 
                font-weight: 700; 
                color: white;
            }
            .card p{ margin-top: 8px; opacity: 0.95; line-height:1.3; }
            
            /* responsive */
            @media (max-width:1100px){
                .cards{ grid-template-columns: repeat(2,1fr); }
            }
            @media (max-width:600px){
                .cards{ grid-template-columns: 1fr; }
                .card-illustration{ width:72px; top:14px; left:14px; }
                .card h3{ margin-top: 90px; font-size:22px; }
            }
    }
}

.banner-mapall-button {
    display: none !important;
}

body.user-logged-in {
    .register-link, 
    .login-link {
        display: none;
    }
    .logout-link {
        display: block;
    }
}

body:not(.user-logged-in) {
    .register-link, 
    .login-link {
        display: block;
    }
    .logout-link {
        display: none;
    }
}

.page-view-mapall {
    .mapall-map-mobile {
        display: none;
    }
    .mapall-map {
        display: block;
    }
    .mobile-list {
        display: none;
    }
}

body.path-private-messages {
    .text-end {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    body.path-frontpage {
        .banner-wrapper {
            height: 1500px;

            .left-banner-zone {
                display: block;
                height: 350px;
                flex: 0 0 auto;
                padding: 0px !important;
                
                .center-vertically {
                    width: 65%;
                    display: block;

                    #block-mycustom-theme-exposedformcustom-searchpage-1 {
                        .content {
                            #views-exposed-form-custom-search-page-1 {
                                .form-type-search, & .form-type-search-api-autocomplete {
                                    width: 62%;

                                    input::placeholder {
                                        font-size: 12px;
                                    }
                                }

                                #edit-actions {
                                    width: 100%;
                                    text-align: left;
                                }
                            }
                        }
                    }

                    
                }
            }

            .right-banner-zone {
                height: 450px;
                flex: 0 0 auto;

                .final-news-box {
                    left: 0px !important;
                }
            }

            .left-banner-extension {
                display: none;
            }
        }
    }
    body.path-football-analysis {
        .banner-wrapper {
            .left-banner-zone {
                .countdwon-event-button {
                    left: 120px;
                    width: 210px;
                }
                .banner-countdown {
                    width: 100%;

                    .clock-item {
                        margin: 0px;
                        width: 25%;
    
                        .text .type-time {
                            font-size: 11px;
                        }
                        .text .val {
                            font-size: 20px;
                            padding: 5px;
                        }
                    }
                }
                
            }
        }
    }
    body {
        .banner-wrapper {
            flex-direction: column;
            height: 1500px;
        }
        .top-2-menu.navbar1-component {
            .main-menu-social {
                line-height: 50px;
                /*width: 100%;*/
                text-align: center;
            }

            .main-menu-links {
                /*width: 100%;*/
                line-height: 0px !important;

                .login-link,
                .logout-link {
                    margin-top: 30px;
                    /*margin-left: 25px;
                    width: 40%;
                    border-top-left-radius: 0%;*/
                }

                .register-link {
                    margin-top: 30px;
                    /*width: 40%;*/
                }

            }

            .bottom-menu-links {
                height: auto;
            }
        }   
        .services-squares-wrapper {
            .cards.services-squares  {
                grid-template-columns: repeat(2, 1fr);
                
                .card  {
                    h3 {
                        margin-top: 0px;
                        font-size: 18px;
                    }

                    .card-illustration {
                        width: 100%;
                        top: 150px;
                        left: 0px;
                        margin-top: 30px;
                    }

                    p {
                        font-size: 14px;
                    }
                }
            }
        }
        .left-banner-zone {
            .left-banner-logo {
                width: 120px;
            }
        }
        .double-sliding {
            display: block;
        }
    }
    body.page-view-mapall {
        .mapall-map-mobile {
            display: block;
        }
        .mapall-map {
            display: none;
        }
        .mapall-welcome-title {
            width: 100%;
        }
        .mobile-list {
            display: block;
            /* float: left; */
            /* background-color: red; */
            /* z-index: 1; */
            /* position: relative; */
            font-size: 14px;
            margin: 7px;
            font-weight: bold;
        }
        .mapall-actions {
            margin-top: 100px;
        }
    }
    body.path-private-messages {
        #block-mycustom-theme-privatemessageinbox {
            width: 100%;
            height: 500px;
        }
        #block-mycustom-theme-content {
            width: 100%;
            
            #private-message-page .private-message-thread-full .field--name-private-messages {
                .field__items {
                    width: 100%;
        
                }
            }
        }
    }
}