/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/

.projet-hero {
    position: relative;
    width: 100%;
    min-height: min(36vw, 720px);
    overflow: hidden;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* ---------------------------------------------------------
 * COURBE BLANCHE DANS LE BAS
 * --------------------------------------------------------- */

.projet-hero::after {
    content: "";
    position: absolute;
    z-index: 1;

    left: 50%;
    bottom: -165px;

    width: 120%;
    height: 220px;

    transform: translateX(-50%);

    background: #f3f0e9;
    border-radius: 50% 50% 0 0;

    pointer-events: none;
}

/* ---------------------------------------------------------
 * BULLES
 * --------------------------------------------------------- */

.projet-hero {
    --bulle-size: 195px;

    position: relative;
    width: 100%;
    min-height: min(36vw, 720px);
    overflow: hidden;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.projet-hero__bulles {
    /*
    position: absolute !important;
    z-index: 3;

    top: 38px;
    right: 4%;
    */
    --bulle-size: 195px;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;

    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;

    gap: 20px;
}

.projet-hero__bulle {
    flex: 0 0 var(--bulle-size) !important;

    width: var(--bulle-size) !important;
    min-width: var(--bulle-size) !important;
    max-width: var(--bulle-size) !important;

    height: var(--bulle-size) !important;
    min-height: var(--bulle-size) !important;
    max-height: var(--bulle-size) !important;

    padding: 25px;
    box-sizing: border-box;

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

    border-radius: 50%;
    text-align: center;
}

.projet-hero__bulle p {
    margin: 0;
}

.projet-hero__bulle--blanche {
    color: #25353a;
    background: white;
}

.projet-hero__bulle--bleue {
    color: #fff;
    background: #25383d;
}

.projet-hero__bulle--verte {
    color: #fff;
    background: #99aa9e;
}

.projet-hero__bulle--terracotta {
    background: #975c4d;
    color: #fff;
}

/* ---------------------------------------------------------
 * SITE À VENIR
 * --------------------------------------------------------- */

.projet-hero__statut {
    position: absolute;
    z-index: 4;

    left: 50%;
    bottom: 24px;

    transform: translateX(-50%);

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

    width: clamp(320px, 36vw, 450px);
    min-height: 55px;

    padding: 12px 30px;

    background: #dce2e1;
    border-radius: 999px;

    color: #26373b;

    text-align: center;
    text-transform: uppercase;
}

.projet-hero__statut p,
.projet-hero__statut .elementor-heading-title {
    margin: 0;
}


/* ---------------------------------------------------------
 * TABLETTE
 * --------------------------------------------------------- */

@media (max-width: 1024px) {

    .projet-hero {
        --bulle-size: clamp(
            120px,
            calc(29.3vw - 105px),
            195px
        );

        min-height: 500px;
    }

    .projet-hero__bulles {
        gap: clamp(10px, 2vw, 20px);
        padding: clamp(8px, 1.5vw, 15px);
    }
    
    .projet-hero__bulle {
        padding: 10px;
    }
    
    .projet-hero__bulle p,
    .projet-hero__bulle .elementor-heading-title {
        width: 100%;
        margin: 0;
        text-align: center;
        font-size: clamp(14px, 1.8vw, 18px) !important;
    }
    
    .projet-hero__statut {
        width: 320px !important;
    }
    .projet-hero__statut span {
        font-size: 18px !important
    }
}


/* ---------------------------------------------------------
 * MOBILE
 * --------------------------------------------------------- */

@media (max-width: 767px) {

    .projet-hero {
        min-height: 500px;
        background-position: center;
    }

    .projet-hero__bulles {
        top: 20px;
        right: 20px;
        left: 20px;

        justify-content: center;
        gap: 8px;
    }

    .projet-hero::after {
        bottom: -105px;
        height: 135px;
    }

    .projet-hero__statut {
        bottom: 12px;

        width: 240px;
        min-height: 48px;

        padding: 10px 20px;

        font-size: 14px;
    }
}

.legendre-details {
    --encre: #25383d;
    --pastille-active: #25383d;
    --position-repere: 12.5%;

    width: 100%;
    max-width: 1000px;
    margin-inline: auto;
    color: var(--encre);
}

.legendre-details__pastilles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: clamp(12px, 2vw, 24px);
}

.legendre-details button.legendre-details__pastille {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 195px;
    aspect-ratio: 1;
    box-sizing: border-box;
    padding: clamp(12px, 2vw, 24px);
    border: 0;
    border-radius: 50%;
    background: var(--fond);
    color: var(--texte, #fff);
    font-family: "MinionPro-Regular", Sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    text-transform: none;
    white-space: normal;
    cursor: pointer;
}

.legendre-details__pastille[aria-expanded="true"] {
    box-shadow: 0 0 0 4px #f3f0e9, 0 0 0 6px var(--repere) !important;
}

.legendre-details__pastille:focus-visible {
    outline: 2px dashed var(--encre);
    outline-offset: 9px;
}

.legendre-details__pastille--commerces {
    --fond: #fff;
    --texte: #25383d;
    --repere: #fff;
}

.legendre-details__pastille--verdure {
    --fond: #25383d;
    --repere: #25383d;
}

.legendre-details__pastille--pietons {
    --fond: #99aa9e;
    --repere: #526b5b;
}

.legendre-details__pastille--logements {
    --fond: #975c4d;
    --repere: #975c4d;
}

.legendre-details__encadre {
    position: relative;
    margin-top: 34px;
    padding: clamp(20px, 3vw, 36px);
    border: 1px solid #d9d5cb;
    border-radius: 16px;
    background: #fff;
}

.legendre-details__encadre::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: var(--position-repere);
    width: 0;
    height: 0;
    border-right: 10px solid transparent;
    border-bottom: 12px solid white;
    border-left: 10px solid transparent;
    transform: translateX(-50%);
    pointer-events: none;
}

.legendre-details__description[hidden] {
    display: none !important;
}

.legendre-details__description h3 {
    margin: 0 0 10px;
    color: inherit;
    font-family: "GothamHTF-Medium", Sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.4;
}

.legendre-details__description p {
    font-family: "MinionPro-Regular", Sans-serif;
    font-weight: 300;
    font-size: 18px;
    max-width: 75ch;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .legendre-details__pastilles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 400px;
        margin-inline: auto;
        gap: 20px;
    }

    .legendre-details__encadre {
        margin-top: 24px;
    }

    .legendre-details__encadre::before {
        display: none;
    }
}