@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap");

:root {
    --fond: #020205;
    --blanc100: #ffffff;
    --noir10: rgba(18, 18, 17, 0.1);
    --blur: blur(10px);
    --hover: #5200c6;
    --border: 2px solid rgba(20, 18, 14, 0.3);
    --cardRadius: 50px;
    --formTextColor: #ffffff;
    
    /* Spacing fluides */
    --spacing-xs: clamp(0.5rem, 1vw, 1rem);
    --spacing-sm: clamp(1rem, 2vw, 2rem);
    --spacing-md: clamp(2rem, 4vw, 4rem);
    --spacing-lg: clamp(3rem, 6vw, 6rem);
    --spacing-xl: clamp(4rem, 8vw, 8rem);
    
    /* Text sizes fluides */
    --text-xs: clamp(14px, 1.2vw, 18px);
    --text-sm: clamp(16px, 1.5vw, 20px);
    --text-md: clamp(18px, 1.8vw, 24px);
    --text-lg: clamp(22px, 2.2vw, 32px);
    --text-xl: clamp(28px, 2.8vw, 42px);
    --text-2xl: clamp(48px, 5vw, 96px);
    --text-3xl: clamp(72px, 6.5vw, 125px);
    
    /* Container widths fluides */
    --container-sm: clamp(320px, 90vw, 700px);
    --container-md: clamp(320px, 85vw, 950px);
    --container-lg: clamp(320px, 80vw, 1145px);
    
    /* Card dimensions fluides */
    --card-width: clamp(320px, 40vw, 630px);
    --card-height: clamp(350px, 35vh, 525px);
    --card-gap: clamp(50px, 8vw, 235px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    position: relative;
    height: auto;
    width: 100%;
    overflow-x: hidden;
    background-color: var(--fond);
    background-size: cover;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

canvas {
    display: block;
    position: fixed;
    width: 105vw;
    height: 105vh;
    top: 0;
    left: 0;
    z-index: 0;
}

/* ScrollSmoother containers */
#smooth-wrapper {
    overflow: hidden;
    position: relative;
    /* create stacking context above backgrounds */
    z-index: 1;
}

#smooth-content {
    overflow: visible;
    will-change: transform;
}

/* Calque de fond mobile (masqué par défaut) */
.mobile-background {
    display: none;
}

.mobile {
    display: none;
}

.menu {
    display: none;
}

nav {
    width: 100vw;
    background: transparent;
    position: fixed;
    top: -95px;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;

    & .pc {
        width: var(--container-lg);
        height: clamp(55px, 5vh, 65px);
        flex-shrink: 0;
        border-radius: var(--cardRadius);
        border: var(--border);
        -webkit-backdrop-filter: var(--blur);
        backdrop-filter: var(--blur);
        background: transparent;
        position: relative;
        overflow: hidden;
        isolation: isolate;
        transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        contain: layout style paint;
        
        display: flex;
        justify-content: space-around;
        align-items: center; /* C'est ici que le centrage global se joue */
        
        list-style: none;
        padding: 0 clamp(10px, 2vw, 20px);

        /* Blur/tint layer */
        &::before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: inherit;
            background: var(--noir10);
            -webkit-backdrop-filter: var(--blur);
            backdrop-filter: var(--blur);
            transform: translateZ(-1px);
            will-change: transform;
            pointer-events: none;
            z-index: 0;
        }

        /* Elevate children */
        & > * {
            position: relative;
            z-index: 1;
        }

        & img {
            width: clamp(42px, 4vw, 52px);
            height: clamp(44px, 4vw, 54px);
            flex-shrink: 0;
            display: block; /* Évite les décalages fantômes des images inline */
        }

        & li {
            font-family: "Instrument Serif";
            font-size: var(--text-lg);
            font-style: normal;
            font-weight: 400;
            line-height: 100%; /* Réduit pour aider le centrage vertical */
            letter-spacing: -0.704px;
            cursor: pointer;
            
            /* Permet de centrer le lien dans le li si nécessaire */
            display: flex; 
            align-items: center;

            & a {
                text-decoration: none;
                color: var(--blanc100);
                
                /* --- CONFIGURATION DU CENTRAGE --- */
                display: inline-flex; /* Change block en flex pour centrer le texte */
                align-items: center;  /* Centre le texte verticalement */
                justify-content: center;
                height: 100%; /* S'adapte */
                
                /* Forme de la bulle */
                padding: 8px 16px; 
                border-radius: 50px;
                
                position: relative;
                overflow: hidden;
                z-index: 1;
                transition: color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
                
                /* --- LE FOND ANIMÉ (Générique) --- */
                &::before {
                    content: "";
                    position: absolute;
                    inset: 0;
                    background-color: var(--blanc100); /* Couleur par défaut */
                    
                    /* Animation */
                    transform: scaleY(0);
                    transform-origin: bottom;
                    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
                    z-index: -1;
                }

                /* HOVER GÉNÉRIQUE */
                &:hover {
                    color: black; /* ou var(--bg-color) */
                }
                
                &:hover::before {
                    transform: scaleY(1);
                    transform-origin: top;
                }
            }

            /* --- EXCEPTIONS POUR LES MARQUES (#drweb et #terra) --- */
            
            /* TERRA : Violet */
            & #terra {
                /* Surcharge de la couleur du fond au hover */
                &::before {
                    background-color: #7a4c98; 
                }
                /* Surcharge de la couleur du texte au hover */
                &:hover {
                    color: white; 
                }
            }

            /* DRWEB : Vert */
            & #drweb {
                /* Surcharge de la couleur du fond au hover */
                &::before {
                    background-color: #7cb51b;
                }
                /* Surcharge de la couleur du texte au hover */
                &:hover {
                    color: white;
                }
            }
        }
    }
}

.hero {
    background: transparent;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;

    & h1 {
        color: var(--blanc100);
        font-family: "Instrument Serif", serif;
        font-size: var(--text-2xl);
        font-style: normal;
        font-weight: 400;
        line-height: 150%;
        letter-spacing: -2.112px;
    }
}

.TitreSlogan {
    position: absolute;
    top: clamp(150px, 15vh, 200px);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: var(--blanc100);

    & h1 {
        color: var(--blanc100);
        font-family: "Instrument Serif";
        font-size: var(--text-3xl);
        font-style: normal;
        font-weight: 400;
        line-height: 150%;
        letter-spacing: -2.112px;
    }

    & .slogan {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: clamp(200px, 25vw, 480px);
        width: var(--container-lg);
        opacity: 0;
    }
}

.buttons {
    position: absolute;
    bottom: clamp(100px, 12vh, 170px);
    display: flex;
    flex-direction: row;
    gap: clamp(250px, 35vw, 675px);
    opacity: 0;

    & a {
        display: inline-flex;
        padding: clamp(4px, 0.5vh, 5px) clamp(32px, 3vw, 42px);
        align-items: flex-start;
        height: fit-content;
        border-radius: var(--cardRadius);
        background: var(--blanc100);
        text-decoration: none;
        color: var(--hover);
        font-family: "Instrument Serif";
        font-size: var(--text-lg);
        font-style: normal;
        font-weight: 400;
        line-height: 150%;
        letter-spacing: -0.704px;
        margin-top: clamp(50px, 6vh, 85px);
    }
}

.download {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: var(--blanc100);

    & h2 {
        color: var(--blanc100);
        font-family: "Instrument Serif";
        font-size: var(--text-lg);
        font-style: normal;
        font-weight: 400;
        line-height: 125%;
        letter-spacing: -0.704px;
        max-width: clamp(180px, 15vw, 205px);
        text-align: center;
    }

    & button {
        display: inline-flex;
        padding: clamp(4px, 0.5vh, 5px) clamp(45px, 4vw, 60px);
        justify-content: center;
        align-items: center;
        gap: clamp(8px, 1vw, 10px);
        color: var(--blanc100);
        border-radius: var(--cardRadius);
        border: var(--border);
        background: var(--noir10);
        -webkit-backdrop-filter: var(--blur);
        backdrop-filter: var(--blur);
        transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        cursor: pointer;
        font-family: "Instrument Serif";
        font-size: var(--text-lg);
        font-style: normal;
        font-weight: 400;
        line-height: 150%;
        letter-spacing: -0.704px;
        transition: all 0.3s ease-in-out;

        & .material-symbols-rounded {
            font-size: clamp(22px, 2vw, 28px);
            transition: transform 0.3s ease;
        }

        & .os-text {
            min-width: clamp(80px, 8vw, 100px);
            text-align: center;
        }

        &:hover {
            background: var(--blanc100);
            border: var(--border);
            transition: all 0.3s ease-in-out;
            color: var(--hover);

            & .material-symbols-rounded {
                transform: translateY(-2px);
            }
        }

        &:active {
            transform: translateY(1px);
        }
    }
}

.reparation {
    height: auto;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: clamp(80px, 10vh, 150px);
    position: relative;
    padding: clamp(100px, 12vh, 150px) 0;
}

.repT {
    height: auto;
    width: 100vw;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: var(--card-gap);

    & .imgT {
        width: auto;
        height: var(--card-height);
        flex-shrink: 0;
        aspect-ratio: 243/365;
        border-radius: var(--cardRadius);
        background: url("../images/repT.jpg") center center / cover no-repeat;
        position: relative;
        overflow: hidden;
        display: flex;
        justify-content: start;
        align-items: end;
        padding: 10px;

        & a {
            color: var(--blanc100);
            text-decoration: none;
            font-size: 14px;

            &:hover {
                text-decoration: underline;
            }
        }
    }

    & .cardTMobile {
        display: none;
    }

    & .cardT {
        color: var(--blanc100);
        width: var(--card-width);
        height: var(--card-height);
        flex-shrink: 0;
        border-radius: var(--cardRadius);
        border: var(--border);
        background: var(--noir10);
        -webkit-backdrop-filter: var(--blur);
        backdrop-filter: var(--blur);
        transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        contain: layout style paint;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: clamp(30px, 4vh, 50px);
        align-items: center;

        & h4 {
            color: var(--blanc100);
            font-family: "Instrument Serif";
            font-size: var(--text-lg);
            font-style: normal;
            font-weight: 400;
            line-height: 150%;
            letter-spacing: -0.704px;
        }

        & p {
            color: var(--blanc100);
            font-family: "Instrument Serif";
            font-size: var(--text-md);
            font-style: normal;
            font-weight: 400;
            line-height: 150%;
            letter-spacing: -0.44px;
            width: 95%;
        }

        & .details {
            color: var(--blanc100);
            font-family: "Instrument Serif";
            font-size: var(--text-xs);
            font-style: italic;
            font-weight: 400;
            line-height: 150%;
            letter-spacing: -0.352px;
            width: 100%;
            word-wrap: break-word;
            overflow-wrap: break-word;
            text-align: center;
        }
    }
}

.repO {
    height: auto;
    width: 100vw;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: var(--card-gap);

    & .imgO {
        width: auto;
        height: var(--card-height);
        flex-shrink: 0;
        aspect-ratio: 245/367;
        border-radius: var(--cardRadius);
        background: url("../images/repO.jpg") center center / cover no-repeat;
        position: relative;
        overflow: hidden;
        display: flex;
        justify-content: start;
        align-items: end;
        padding: 10px;

        & a {
            color: var(--blanc100);
            text-decoration: none;
            font-size: 14px;

            &:hover {
                text-decoration: underline;
            }
        }
    }

    & .cardOMobile {
        display: none;
    }

    & .cardO {
        color: var(--blanc100);
        width: var(--card-width);
        height: var(--card-height);
        flex-shrink: 0;
        border-radius: var(--cardRadius);
        border: var(--border);
        background: var(--noir10);
        -webkit-backdrop-filter: var(--blur);
        backdrop-filter: var(--blur);
        transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        contain: layout style paint;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: clamp(30px, 4vh, 50px);
        align-items: center;

        & h4 {
            color: var(--blanc100);
            font-family: "Instrument Serif";
            font-size: var(--text-lg);
            font-style: normal;
            font-weight: 400;
            line-height: 150%;
            letter-spacing: -0.704px;
        }

        & p {
            color: var(--blanc100);
            font-family: "Instrument Serif";
            font-size: var(--text-md);
            font-style: normal;
            font-weight: 400;
            line-height: 150%;
            letter-spacing: -0.44px;
            width: 95%;
        }

        & .details {
            color: var(--blanc100);
            font-family: "Instrument Serif";
            font-size: var(--text-xs);
            font-style: italic;
            font-weight: 400;
            line-height: 150%;
            letter-spacing: -0.352px;
            width: 100%;
            word-wrap: break-word;
            overflow-wrap: break-word;
            text-align: center;
        }
    }
}

.donnees {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--blanc100);
}

.dataCardTitle {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.diagRecupWrap {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: clamp(50px, 10vw, 150px);
    margin-top: clamp(50px, 8vh, 100px);
}

.retProtWrap {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: clamp(50px, 10vw, 150px);
    margin-top: clamp(50px, 8vh, 100px);
}

.cardDonnees {
    width: clamp(280px, 25vw, 400px);
    height: auto;
    min-height: clamp(200px, 25vh, 300px);
    border-radius: var(--cardRadius);
    padding: clamp(1.5vh, 2vh, 3vh);
    display: flex;
    flex-direction: column;
    gap: clamp(0.8vh, 1vh, 1.5vh);
    border: var(--border);
    background: var(--noir10);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: layout style paint;

    & p {
        color: var(--blanc100);
        font-size: clamp(18px, 1.8vw, 22px);
        font-style: normal;
        font-weight: 400;
        line-height: 150%;
        letter-spacing: -0.44px;
    }
}

.popupContact {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    z-index: 1001;
}

.popupContent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--fond);
    border: var(--border);
    padding: clamp(20px, 2vw, 25px);
    border-radius: 15px;
    width: clamp(400px, 50vw, 800px);
    text-align: center;
    color: var(--formTextColor);
    font-family: "Instrument Serif";
    display: flex;
    flex-direction: column;
    gap: 20px;

    & iframe {
        border: none;
        width: 100%;
        height: clamp(200px, 20vh, 250px);
    }

    & .coordonees {
        font-size: var(--text-md);
        font-style: normal;
        font-weight: 400;
        line-height: 150%;
        letter-spacing: -0.352px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
}

.closePopup {
    position: absolute;
    top: -3.5px;
    right: 4px;
    background: none;
    border: none;
    color: var(--formTextColor);
    font-size: 2rem;
    cursor: pointer;
}

footer {
    width: 100vw;
    position: relative;
    z-index: 999;
    background-color: #020205;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: clamp(20px, 3vh, 40px) 50px;
    color: var(--blanc100);
    font-family: "Instrument Serif";
    font-size: var(--text-sm);
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: -0.352px;
    & .informations {
        display: flex;
        width: 15%;
        justify-content: space-between;
        & a {
            color: var(--blanc100);
            text-decoration: none;

            &:hover {
                text-decoration: underline;
            }
        }
        & p {
            color: gray;
        }
    }

    & .btnContactFooter {
        background-color: white;
        color: black;
        text-decoration: none;
        padding: 10px 20px;
        border-radius: var(--cardRadius);
        font-family: "Instrument Serif";
        font-size: var(--text-md);
        font-style: normal;
        font-weight: 400;
        line-height: 150%;
        letter-spacing: -0.44px;
        transition: background-color 0.3s ease, color 0.3s ease;
        &:hover {
            background-color: var(--hover);
            color: var(--blanc100);
        }
    }
}

@media (max-width: 768px) {
    footer .informations {
        width: auto;
        flex-direction: column;
        gap: 10px;
    }

    nav .pc {
        display: none;
    }

    nav .mobile {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding: 5px 15px 0 15px;
        width: 100vw;

        & a {
            border-radius: 50px;
            border: var(--border);
            background: var(--noir10);
            backdrop-filter: var(--blur);
            display: flex;
            justify-content: center;
            align-items: center;
            width: 62.5px;
            height: 62.5px;

            & img {
                width: 57px;
                height: 57px;
                flex-shrink: 0;
            }
        }

        button {
            border-radius: 50px;
            border: var(--border);
            background: var(--noir10);
            backdrop-filter: var(--blur);
            display: flex;
            justify-content: center;
            align-items: center;
            width: 57px;
            height: 57px;

            & .material-symbols-rounded {
                color: var(--blanc100);
                font-variation-settings:
                    "FILL" 0,
                    "wght" 700,
                    "GRAD" 0,
                    "opsz" 20;
            }
        }
    }

    #menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 750px;
        height: 100vh;
        border: var(--border);
        background: var(--noir10);
        backdrop-filter: var(--blur);
        padding: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        list-style: none;
        font-family: "Instrument Serif";

        & button {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            color: var(--blanc100);
            font-size: 2rem;
            cursor: pointer;

            & .material-symbols-rounded {
                color: var(--blanc100);
                font-size: 48px;
                font-variation-settings:
                    "FILL" 0,
                    "wght" 700,
                    "GRAD" 0,
                    "opsz" 20;
            }
        }
    }

    /* Styles des éléments du menu */
    #menu li {
        margin: 1rem 0;
    }

    #menu a {
        color: var(--blanc100);
        text-decoration: none;
        font-size: 1.5rem;
    }

    #menu #btnContact {
        display: inline-flex;
        padding: 5px 32px;
        align-items: flex-start;
        height: fit-content;
        border-radius: var(--cardRadius);
        background: var(--blanc100);
        text-decoration: none;
        color: black;
        font-family: "Instrument Serif";
        font-size: 24px;
        font-style: normal;
        font-weight: 400;
        line-height: 150%;
        /* 36px */
        letter-spacing: -0.528px;
        margin-top: 50px;
    }

    /* Classe pour ouvrir le menu */
    .menu-open #menu {
        transform: translateX(0);
    }

    .hero h1 {
        font-size: 38px;
        line-height: 150%;
        /* 72px */
        letter-spacing: -1.056px;
    }

    .TitreSlogan .slogan {
        gap: 90px;
        margin-top: 25px;
        font-family: "Instrument Serif";
        font-size: 16px;
        letter-spacing: -0.352px;
    }

    .download {
        display: none;
    }

    .reparation {
        height: auto;
        padding: 100px 0;
    }

    .repT {
        position: relative;

        & .imgT {
            display: none;
        }

        & .cardT {
            display: none;
        }

        & .cardTMobile {
            background: url("../images/repT.jpg") center center / cover no-repeat;
            width: auto;
            height: 525px;
            flex-shrink: 0;
            aspect-ratio: 243/365;
            border-radius: var(--cardRadius);
            display: flex;
            justify-content: start;
            align-items: end;
            padding: 10px;
            position: relative;
            color: var(--blanc100);
            overflow: hidden;
            font-family: "Instrument Serif";

            & .contentMobile {
                padding: 10px;
                z-index: 3;
                gap: 25px;
                display: flex;
                flex-direction: column;

                & h4 {
                    color: var(--blanc100);
                    font-family: "Instrument Serif";
                    font-size: 24px;
                    font-style: normal;
                    font-weight: 400;
                    line-height: 150%;
                    /* 48px */
                    letter-spacing: -0.704px;
                }

                & p {
                    color: var(--blanc100);
                    font-family: "Instrument Serif";
                    font-size: 16px;
                    font-style: normal;
                    font-weight: 400;
                    line-height: 150%;
                    /* 30px */
                    letter-spacing: -0.44px;
                }

                & .details {
                    color: var(--blanc100);
                    font-family: "Instrument Serif";
                    font-size: 14px;
                    font-style: italic;
                    font-weight: 400;
                    line-height: 150%;
                    /* 24px */
                    letter-spacing: -0.352px;
                    width: 100%;
                    word-wrap: break-word;
                    overflow-wrap: break-word;
                }
            }

            & .progressive-blur {
                position: absolute;
                z-index: 2;
                width: 100%;
                height: 100%;
                pointer-events: none;
                inset: auto 0 0 0;

                & .blur {
                    background: url("../images/repT.jpg");
                    background-size: cover;
                    position: absolute;
                    inset: 0;
                }
            }
        }
    }

    .repO {
        position: relative;

        & .imgO {
            display: none;
        }

        & .cardO {
            display: none;
        }

        & .cardOMobile {
            background: url("../images/repO.jpg") center center / cover no-repeat;
            width: auto;
            height: 525px;
            flex-shrink: 0;
            aspect-ratio: 243/365;
            border-radius: var(--cardRadius);
            display: flex;
            justify-content: start;
            align-items: end;
            padding: 10px;
            position: relative;
            color: var(--blanc100);
            overflow: hidden;
            font-family: "Instrument Serif";

            & .contentMobile {
                padding: 10px;
                z-index: 3;
                gap: 25px;
                display: flex;
                flex-direction: column;

                & h4 {
                    color: var(--blanc100);
                    font-family: "Instrument Serif";
                    font-size: 24px;
                    font-style: normal;
                    font-weight: 400;
                    line-height: 150%;
                    /* 48px */
                    letter-spacing: -0.704px;
                }

                & p {
                    color: var(--blanc100);
                    font-family: "Instrument Serif";
                    font-size: 16px;
                    font-style: normal;
                    font-weight: 400;
                    line-height: 150%;
                    /* 30px */
                    letter-spacing: -0.44px;
                }

                & .details {
                    color: var(--blanc100);
                    font-family: "Instrument Serif";
                    font-size: 14px;
                    font-style: italic;
                    font-weight: 400;
                    line-height: 150%;
                    /* 24px */
                    letter-spacing: -0.352px;
                    width: 100%;
                    word-wrap: break-word;
                    overflow-wrap: break-word;
                }
            }

            & .progressive-blur {
                position: absolute;
                z-index: 2;
                width: 100%;
                height: 100%;
                pointer-events: none;
                inset: auto 0 0 0;

                & .blur {
                    background: url("../images/repO.jpg");
                    background-size: cover;
                    position: absolute;
                    inset: 0;
                }
            }
        }
    }

    .donnees {
        height: 185vh;
        width: 100vw;
    }

    .diagRecupWrap {
        flex-direction: column;
    }

    .retProtWrap {
        flex-direction: column;
    }

    .popupContact {
        display: none;
        position: fixed;
        top: 0;
        /* Changé de 50% */
        left: 0;
        /* Changé de 50% */
        transform: none;
        /* Supprimé le translate */
        width: 100vw;
        /* Changé de 100% */
        height: 100vh;
        /* Ajout de la hauteur */
        padding: 0;
        z-index: 1001;
        justify-content: center;
        align-items: center;
    }

    .popupContent {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        background: var(--fond);
        border: none;
        backdrop-filter: var(--blur);
        padding: 40px 25px;
        /* Ajoute plus de padding en haut pour le bouton de fermeture */
        border-radius: 0;
        width: 100%;
        height: 100%;
        text-align: center;
        color: var(--formTextColor);
        font-family: "Instrument Serif";
        display: flex;
        flex-direction: column;
        gap: 20px;
        overflow-y: auto;

        & iframe {
            border: none;
            width: 100%;
            height: 250px;
        }

        & .coordonees {
            font-size: 18px;
            font-style: normal;
            font-weight: 400;
            line-height: 150%;
            /* 27px */
            letter-spacing: -0.352px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 10px;
        }
    }

    .closePopup {
        position: absolute;
        top: 0px;
        /* Positionné par rapport au haut de .popupContent */
        right: 15px;
        /* Positionné par rapport à la droite de .popupContent */
        background: none;
        border: none;
        color: var(--formTextColor);
        z-index: 10;
        padding: 5px;
        /* Augmente la zone cliquable */
    }

    .closePopup .material-symbols-rounded {
        font-size: 2rem;
        /* Appliquez la taille ici */
        color: var(--formTextColor);
        /* La propriété 'font-variation-settings' peut aussi contrôler la taille optique */
        font-variation-settings:
            "FILL" 0,
            "wght" 600,
            "GRAD" 0,
            "opsz" 48;
    }
}

.progressive-blur>div:nth-child(1) {
    filter: blur(3px);
    mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 42%,
            rgba(0, 0, 0, 1) 53.6%,
            rgba(0, 0, 0, 1) 65.2%,
            rgba(0, 0, 0, 0) 76.8%);
    -webkit-mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 42%,
            rgba(0, 0, 0, 1) 53.6%,
            rgba(0, 0, 0, 1) 65.2%,
            rgba(0, 0, 0, 0) 76.8%);
    z-index: 1;
}

.progressive-blur>div:nth-child(2) {
    filter: blur(6px);
    mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 53.6%,
            rgba(0, 0, 0, 1) 65.2%,
            rgba(0, 0, 0, 1) 76.8%,
            rgba(0, 0, 0, 0) 88.4%);
    -webkit-mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 53.6%,
            rgba(0, 0, 0, 1) 65.2%,
            rgba(0, 0, 0, 1) 76.8%,
            rgba(0, 0, 0, 0) 88.4%);
    z-index: 2;
}

.progressive-blur>div:nth-child(3) {
    filter: blur(12px);
    mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 65.2%,
            rgba(0, 0, 0, 1) 76.8%,
            rgba(0, 0, 0, 1) 88.4%,
            rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 65.2%,
            rgba(0, 0, 0, 1) 76.8%,
            rgba(0, 0, 0, 1) 88.4%,
            rgba(0, 0, 0, 0) 100%);
    z-index: 3;
}

.progressive-blur>div:nth-child(4) {
    filter: blur(24px);
    mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 76.8%,
            rgba(0, 0, 0, 1) 88.4%,
            rgba(0, 0, 0, 1) 100%);
    -webkit-mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 76.8%,
            rgba(0, 0, 0, 1) 88.4%,
            rgba(0, 0, 0, 1) 100%);
    z-index: 4;
}

.progressive-blur>div:nth-child(5) {
    filter: blur(48px);
    mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 88.4%,
            rgba(0, 0, 0, 1) 100%);
    -webkit-mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 88.4%,
            rgba(0, 0, 0, 1) 100%);
    z-index: 5;
}