/* Consentement aux témoins (Loi 25) : bandeau, fenêtre de préférences,
   contenus tiers bloqués, liens légaux et politique de confidentialité. */

.cpgp-consent-banner,
.cpgp-consent-modal,
.cpgp-consent-bloque {
    font-family: "Roboto", Arial, sans-serif;
    color: #26323a;
}

.cpgp-consent-banner[hidden],
.cpgp-consent-modal[hidden] {
    display: none !important;
}

.cpgp-consent-banner p,
.cpgp-consent-modal p,
.cpgp-consent-bloque p {
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 12px;
}

.cpgp-consent-banner a,
.cpgp-consent-modal a {
    color: #003a70;
    text-decoration: underline;
}

/* --- Boutons ------------------------------------------------------------
   Le gabarit du site applique à tous les <button> une largeur de 100 %, une
   hauteur fixe et un texte blanc : on repart d'une base neutre. */

.cpgp-consent-btn {
    width: auto;
    height: auto;
    min-height: 44px;
    padding: 10px 18px;
    border: 2px solid #003a70;
    border-radius: 3px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

/* « Tout accepter » et « Tout refuser » ont volontairement le même poids. */
.cpgp-consent-btn--plein {
    background: #003a70;
    color: #fff;
}

.cpgp-consent-btn--plein:hover {
    background: #002649;
    border-color: #002649;
}

.cpgp-consent-btn--contour {
    background: #fff;
    color: #003a70;
}

.cpgp-consent-btn--contour:hover {
    background: #e8eef4;
}

.cpgp-consent-btn:focus,
.cpgp-consent-lien:focus,
.cpgp-consent-fermer:focus,
.cpgp-consent-choix input:focus + .cpgp-consent-interrupteur {
    outline: 3px solid #f2a900;
    outline-offset: 2px;
}

/* --- Bandeau ------------------------------------------------------------ */

.cpgp-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    background: #fff;
    border-top: 5px solid #003a70;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
    padding: 18px 20px;
}

.cpgp-consent-banner__contenu {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.cpgp-consent-banner__texte {
    flex: 1 1 auto;
}

.cpgp-consent-banner__texte p:last-child {
    margin-bottom: 0;
}

.cpgp-consent-titre {
    font-family: inherit;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #003a70;
    margin: 0 0 8px;
    padding: 0;
}

.cpgp-consent-banner__actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 991px) {
    .cpgp-consent-banner__contenu {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .cpgp-consent-banner__actions .cpgp-consent-btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 480px) {
    .cpgp-consent-banner {
        padding: 14px 16px;
        max-height: 85vh;
        overflow-y: auto;
    }

    .cpgp-consent-banner__actions .cpgp-consent-btn {
        flex: 1 1 100%;
    }
}

/* --- Fenêtre de préférences --------------------------------------------- */

.cpgp-consent-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2000;
    background: rgba(0, 20, 40, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cpgp-consent-modal__boite {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 640px;
    max-height: 100%;
    overflow-y: auto;
    border-top: 5px solid #003a70;
    border-radius: 3px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.cpgp-consent-fermer {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: #26323a;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.cpgp-consent-modal .cpgp-consent-titre {
    font-size: 22px;
    padding-right: 40px;
}

.cpgp-consent-choix {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-top: 1px solid #d1d3d5;
    padding: 16px 0;
    margin: 0;
}

.cpgp-consent-choix__texte {
    flex: 1 1 auto;
}

.cpgp-consent-choix__nom {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #003a70;
    margin-bottom: 4px;
}

.cpgp-consent-choix__desc {
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.cpgp-consent-choix__etat {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    color: #55636b;
    padding-top: 4px;
}

.cpgp-consent-choix input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.cpgp-consent-interrupteur {
    flex: 0 0 auto;
    position: relative;
    width: 52px;
    height: 28px;
    border-radius: 14px;
    background: #8a959b;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cpgp-consent-interrupteur::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
}

.cpgp-consent-choix input:checked + .cpgp-consent-interrupteur {
    background: #003a70;
}

.cpgp-consent-choix input:checked + .cpgp-consent-interrupteur::after {
    transform: translateX(24px);
}

.cpgp-consent-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid #d1d3d5;
    padding-top: 16px;
}

.cpgp-consent-modal__actions .cpgp-consent-btn {
    flex: 1 1 auto;
}

/* --- Contenus tiers bloqués (cartes, vidéos) ---------------------------- */

.cpgp-consent-bloque {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 260px;
    padding: 24px;
    background: #eef1f3;
    border: 1px solid #d1d3d5;
    text-align: center;
}

.cpgp-consent-bloque p {
    max-width: 460px;
}

.cpgp-consent-bloque__titre {
    font-weight: 700;
    color: #003a70;
}

/* --- Liens légaux en pied de page --------------------------------------- */

.cpgp-barre-legale {
    padding: 12px 20px;
    text-align: center;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #fff;
}

.cpgp-barre-legale a,
.cpgp-consent-lien {
    color: #fff;
    text-decoration: underline;
}

.cpgp-barre-legale a:hover,
.cpgp-consent-lien:hover {
    color: #d1d3d5;
}

.cpgp-barre-legale__sep {
    margin: 0 10px;
    opacity: 0.6;
}

button.cpgp-consent-lien {
    width: auto;
    height: auto;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    cursor: pointer;
}

/* --- Avis de collecte sous les formulaires ------------------------------ */

.cpgp-avis-collecte {
    font-family: "Roboto", Arial, sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.5;
    color: #55636b;
    margin: 16px 0 0;
}

.cpgp-avis-collecte a {
    color: #003a70;
    text-decoration: underline;
}

/* --- Page « Politique de confidentialité » ------------------------------ */

.cpgp-politique {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 80px;
    font-family: "Roboto", Arial, sans-serif;
    color: #26323a;
}

.cpgp-politique h1 {
    font-size: 40px;
    line-height: 1.2;
}

.cpgp-politique h2 {
    font-size: 24px;
    font-weight: 500;
    margin-top: 28px;
    padding-bottom: 8px;
}

.cpgp-politique h3 {
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    color: #003a70;
    margin-top: 20px;
}

.cpgp-politique p,
.cpgp-politique li,
.cpgp-politique td,
.cpgp-politique th,
.cpgp-politique address {
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
}

.cpgp-politique ul {
    padding-left: 22px;
    margin-bottom: 16px;
}

.cpgp-politique a {
    color: #003a70;
    text-decoration: underline;
}

.cpgp-politique__date {
    color: #55636b;
    font-weight: 300;
}

.cpgp-politique__table-wrap {
    overflow-x: auto;
    margin-bottom: 16px;
}

.cpgp-politique table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}

.cpgp-politique th,
.cpgp-politique td {
    border: 1px solid #d1d3d5;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    font-size: 15px;
}

.cpgp-politique th {
    background: #eef1f3;
    color: #003a70;
}

.cpgp-politique .cpgp-consent-btn {
    margin: 4px 0 16px;
}

@media (max-width: 767px) {
    .cpgp-politique {
        padding: 30px 16px 50px;
    }

    .cpgp-politique h1 {
        font-size: 30px;
    }
}
