﻿/* ---------------------------------------------------------------
   CARTE GOOGLE MAPS
   --------------------------------------------------------------- */

.responsive-video-wrapper {
    width: 100%;
}

.responsive-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

/* ---------------------------------------------------------------
   CONTENEUR DE LA CARTE
   --------------------------------------------------------------- */

.map-consent {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background-color: #eef1ec;
    background-image: url("map-placeholder.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    border-radius: 10px;
}

/* ---------------------------------------------------------------
   BOUTON QUI RECOUVRE TOUTE LA CARTE
   --------------------------------------------------------------- */

.map-consent__button {
    position: absolute;
    inset: 0;
    z-index: 2;

    width: 100%;
    height: 100%;

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

    padding: 20px;

    border: 0;
    background: transparent;

    cursor: pointer;
    font: inherit;
}

/* ---------------------------------------------------------------
   CARTE BLANCHE CENTRALE
   --------------------------------------------------------------- */

.map-consent__card {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 10px;

    max-width: 460px;

    padding: 22px 26px;

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

    border-radius: 12px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.15);

    color: #222;

    text-align: center;
}

/* ---------------------------------------------------------------
   TITRE
   --------------------------------------------------------------- */

.map-consent__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

/* ---------------------------------------------------------------
   TEXTE D'INFORMATION
   --------------------------------------------------------------- */

.map-consent__notice {
    font-size: 0.82rem;
    line-height: 1.45;
    font-weight: 400;
    color: #555;
}

.map-consent__notice a {
    color: inherit;
    text-decoration: underline;
}

/* ---------------------------------------------------------------
   PETIT BOUTON "AUTORISER ET AFFICHER"
   --------------------------------------------------------------- */

.map-consent__cta {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    margin-top: 4px;

    padding: 9px 15px;

    background: rgba(171,86,128,0.7);
    color: #ffffff;

    border-radius: 6px;

    font-size: 0.9rem;
    font-weight: 600;

    transition: background-color 0.15s ease;
}

/* ---------------------------------------------------------------
   SURVOL DU PETIT BOUTON
   --------------------------------------------------------------- */

.map-consent__button:hover .map-consent__cta {
    background: rgba(171,86,128,1);
}

/* ---------------------------------------------------------------
   FOCUS CLAVIER
   --------------------------------------------------------------- */

.map-consent__button:focus-visible {
    outline: 2px solid rgba(171,86,128,0.7);
    outline-offset: -3px;
}

/* ---------------------------------------------------------------
   GOOGLE MAPS APRÈS CONSENTEMENT
   --------------------------------------------------------------- */

.map-consent iframe {
    position: absolute;
    inset: 0;
    z-index: 5;

    width: 100%;
    height: 100%;

    border: 0;
}

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

@media (max-width: 600px) {

    .map-consent__button {
        padding: 12px;
    }

    .map-consent__card {
        max-width: 90%;
        padding: 16px 18px;
    }

    .map-consent__title {
        font-size: 1rem;
    }

    .map-consent__notice {
        font-size: 0.75rem;
    }

    .map-consent__cta {
        padding: 8px 12px;
        font-size: 0.82rem;
    }
}