* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    padding-top: 60px;
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: #493b50;

    background:
        #fdf9fc;
}


button,
input,
textarea {
    font: inherit;
}


button {
    cursor: pointer;
}


.site {
    min-height: 100vh;
}


/* HEADER */

.site-header {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 18px;

    text-align: center;

    padding: 30px 20px 18px;
}


.header-butterfly {

    font-size: 42px;
}


.eyebrow {

    text-transform: uppercase;

    letter-spacing: 3px;

    font-size: 11px;

    margin-bottom: 4px;
}


.site-header h1 {

    margin: 0;

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(
            32px,
            6vw,
            52px
        );

    font-weight: normal;

    color: #704f71;
}


/* CONTROLES */

.garden-controls {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;

    padding:
        10px
        20px
        25px;
}


.control-button {

    border: 0;

    border-radius: 999px;

    padding:
        12px
        20px;

    font-weight: bold;

    background: white;

    color: #614d64;

    box-shadow:
        0 5px 18px
        rgba(
            80,
            55,
            80,
            .10
        );

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.control-button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 8px 22px
        rgba(
            80,
            55,
            80,
            .16
        );
}


.control-button.primary {

    background: #d987a9;

    color: white;
}


/* FOOTER */

.site-footer {

    text-align: center;

    padding:
        35px
        20px
        50px;

    color: #947d96;

    font-size: 14px;

    display: flex;

    justify-content: center;

    gap: 12px;

    flex-wrap: wrap;
}


/* MODALS */

.modal {

    position: fixed;

    inset: 0;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    z-index: 1000;
}


.modal.open {

    display: flex;
}


.modal-overlay {

    position: absolute;

    inset: 0;

    background:
        rgba(
            53,
            39,
            57,
            .55
        );

    backdrop-filter:
        blur(4px);
}


.modal-content {

    position: relative;

    z-index: 1;

    width:
        min(
            620px,
            100%
        );

    max-height:
        calc(100vh - 40px);

    overflow-y: auto;

    background: #fff;

    border-radius: 28px;

    padding: 35px;

    box-shadow:
        0 30px 80px
        rgba(
            30,
            20,
            40,
            .25
        );

    animation:
        modalIn .25s ease;
}

.modal-content .flower-selector img {
    width: 30px;
}


@keyframes modalIn {

    from {

        opacity: 0;

        transform:
            translateY(15px)
            scale(.97);
    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


.modal-close {

    position: absolute;

    top: 14px;

    right: 17px;

    width: 38px;

    height: 38px;

    border: 0;

    border-radius: 50%;

    background: #f7f0f6;

    color: #6e526c;

    font-size: 26px;

    line-height: 1;
}


.modal-flower {

    text-align: center;

    font-size: 45px;

    margin-bottom: 5px;
}


.modal-content h2 {

    text-align: center;

    font-family:
        Georgia,
        serif;

    font-size: 30px;

    font-weight: normal;

    margin:
        0
        0
        8px;
}


.modal-intro {

    text-align: center;

    color: #806f80;

    margin:
        0
        0
        25px;

    line-height: 1.5;
}


form label {
    display: block;
    margin: 18px 0 7px;
    font-weight: bold;
    color: #5b485c;
}

form label input[type=radio] {
    height: 0;
    width: 0;
    visibility: hidden;
    opacity: 0;
}

form label .flower-option-card {
    display: block;
    padding: 5px;
    border-radius: 5px;
    border: 2px solid transparent;
}

form label input[type=radio]:checked + .flower-option-card {
    display: block;
    border: 2px solid #d987a9;
}


form input,
form textarea {

    display: block;

    width: 100%;

    border:
        1px solid
        #dfd3df;

    border-radius: 13px;

    padding: 13px 15px;

    outline: none;

    background: #fff;

    color: #493b50;
}


form input:focus,
form textarea:focus {

    border-color: #c884a4;

    box-shadow:
        0 0 0 3px
        rgba(
            200,
            132,
            164,
            .13
        );
}


form textarea {

    min-height: 130px;

    resize: vertical;
}


.submit-button {

    display: block;

    width: 100%;

    border: 0;

    border-radius: 999px;

    margin-top: 25px;

    padding: 14px 20px;

    background: #d987a9;

    color: white;

    font-weight: bold;

    transition:
        transform .2s ease,
        background .2s ease;
}


.submit-button:hover {

    transform: translateY(-2px);

    background: #c9789b;
}


@media (max-width: 600px) {

    .site-header {

        padding-top: 20px;
    }


    .header-butterfly {

        font-size: 32px;
    }


    .site-header h1 {

        font-size: 34px;
    }


    .modal-content {

        padding:
            30px
            20px;
    }

}

/* Sélecteur de langue flottant */
.language-switcher {

    position: fixed;

    top: 20px;

    right: 20px;

    z-index: 9999;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 10px 16px;

    background: rgba(255, 255, 255, 0.92);

    backdrop-filter: blur(8px);

    border-radius: 999px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.12);

    border: 1px solid rgba(200, 150, 180, 0.25);

    font-size: 14px;

}


.language-switcher a {

    display: flex;

    align-items: center;

    gap: 5px;

    text-decoration: none;

    color: #6c4d69;

    font-weight: 600;

    transition:
        transform .2s ease,
        opacity .2s ease;

}


.language-switcher a:hover {

    transform: translateY(-2px);

    opacity: .75;

}


.language-switcher span {

    color: #d4bfd2;

}


/* Langue active */

.language-switcher a.active {

    background: #d987a9;

    color: white;

    padding: 5px 10px;

    border-radius: 999px;

}


/* Version arabe */
html[dir="rtl"] .language-switcher {

    right: auto;

    left: 20px;

}


@media (max-width: 600px) {

    .language-switcher {

        top: 12px;

        right: 12px;

        padding: 8px 12px;

        font-size: 13px;

    }


    html[dir="rtl"] .language-switcher {

        left: 12px;

    }

}