/* Styles partagés par les pages statiques (repris de /index.html) */
:root {
    --bleu-titre: #004e9b;
    --bleu-action: #0970e6;
    --bleu-action-survol: #075bbd;
    --fond-clair: #f2f7fc;
    --bordure: #ebebeb;
    --separateur: #dce6f0;
    --texte: #333333;
    --texte-secondaire: #5c6670;
    --blanc: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--blanc);
    color: var(--texte);
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

h1, h2, h3, .titre {
    font-family: "Ubuntu", sans-serif;
    color: var(--bleu-titre);
    margin: 0;
}

a {
    color: inherit;
}

/* Contenu de 1140px de large, comme sur l'ancien site */
.conteneur {
    max-width: 1188px;
    margin: 0 auto;
    padding: 0 24px;
}

/* En-tête */
.entete {
    border-bottom: 2px solid #e5e5e5;
}

.entete .conteneur {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 104px;
}

.entete__logo img {
    display: block;
    height: 56px;
}

.bouton-aide {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border: 1px solid var(--bleu-action);
    border-radius: 3px;
    color: var(--bleu-action);
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    text-decoration: none;
}

.bouton-aide:hover {
    background: var(--fond-clair);
}

/* Bandeau de titre */
.bandeau {
    padding: 48px 0;
    background: var(--fond-clair);
}

.bandeau h1 {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}

.bandeau p {
    max-width: 740px;
    margin: 16px 0 0;
}

/* Boutons */
.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 8px 32px;
    border: 0;
    border-radius: 2px;
    background: var(--bleu-action);
    color: var(--blanc);
    font-family: "Ubuntu", sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.bouton:hover {
    background: var(--bleu-action-survol);
}

/* Numéros de téléphone */
.numero-gratuit {
    display: inline-block;
    margin-bottom: 4px;
}

.numero-gratuit img {
    display: block;
    height: 36px;
}

.numero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 4px;
    background: var(--fond-clair);
    color: var(--bleu-titre);
    font-family: "Ubuntu", sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.numero img {
    height: 24px;
}

/* Encadré d'information */
.encadre {
    margin: 24px 0;
    padding: 20px 24px;
    border-left: 3px solid var(--bleu-action);
    border-radius: 0 8px 8px 0;
    background: var(--fond-clair);
}

.encadre > :first-child {
    margin-top: 0;
}

.encadre > :last-child {
    margin-bottom: 0;
}

.horaires {
    color: var(--texte-secondaire);
}

/* Pages à colonne de contenu + encart application (téléphone, services d'urgence) */
.bandeau__haut {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.bandeau__visuel {
    flex-shrink: 0;
    height: auto;
    margin-right: 20px;
}

.page {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    padding-top: 48px;
    padding-bottom: 56px;
}

.rubrique + .rubrique {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--separateur);
}

.rubrique h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.rubrique h3 {
    margin: 28px 0 8px;
    font-size: 18px;
    font-weight: 500;
}

.rubrique p {
    margin: 0 0 12px;
}

.rubrique ul {
    margin: 16px 0;
    padding-left: 20px;
}

.rubrique li {
    margin-bottom: 6px;
}

.rubrique ul ul {
    margin: 6px 0 12px;
}

.rubrique a[href^="tel:"] {
    color: var(--bleu-titre);
    font-weight: 600;
    white-space: nowrap;
}

.precision {
    color: var(--texte-secondaire);
    font-size: 13px;
}

.sva {
    display: inline-block;
    vertical-align: middle;
}

.sva img {
    display: block;
}

.appli {
    padding: 32px;
    border: 1px solid var(--bordure);
    border-top: 3px solid var(--bleu-action);
    text-align: center;
}

.appli h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.appli__visuel {
    display: block;
    width: 145px;
    height: auto;
    margin: 24px auto;
}

.appli p {
    margin: 0 0 24px;
}

.appli__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.appli__badges img {
    display: block;
    height: 44px;
}

.mention-societe {
    padding: 24px 0 40px;
    border-top: 1px solid var(--separateur);
    color: var(--texte-secondaire);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 900px) {
    .conteneur {
        padding: 0 16px;
    }

    .bandeau__visuel {
        display: none;
    }

    .page {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 32px;
        padding-bottom: 40px;
    }

    .rubrique h2 {
        font-size: 22px;
    }

    .appli {
        padding: 24px;
    }

    .entete .conteneur {
        height: 80px;
    }

    .entete__logo img {
        height: 46px;
    }

    .bouton-aide span {
        display: none;
    }

    .bandeau {
        padding: 32px 0;
    }

    .bandeau h1 {
        font-size: 26px;
    }
}

/* Textes juridiques (mentions, cookies, données personnelles, accessibilité, conditions) */
.texte-legal {
    max-width: 900px;
    padding-top: 40px;
    padding-bottom: 56px;
}

.page .texte-legal {
    max-width: none;
    padding: 0;
}

/* Variante dont les tableaux prennent toute la largeur du conteneur */
.texte-legal--large {
    max-width: none;
}

.texte-legal--large > :not(.tableau, .tableau__titre) {
    max-width: 900px;
}

.texte-legal h2 {
    margin: 40px 0 16px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.texte-legal h2:first-child {
    margin-top: 0;
}

.texte-legal h3 {
    margin: 28px 0 12px;
    font-size: 18px;
    font-weight: 500;
}

.texte-legal h4 {
    margin: 20px 0 8px;
    color: var(--bleu-titre);
    font-family: "Ubuntu", sans-serif;
    font-size: 16px;
    font-weight: 500;
}

.texte-legal p {
    margin: 0 0 12px;
}

.texte-legal ul {
    margin: 0 0 16px;
    padding-left: 20px;
}

.texte-legal ul ul {
    margin: 6px 0 8px;
}

.texte-legal li {
    margin-bottom: 6px;
}

.texte-legal a {
    overflow-wrap: anywhere;
}

.mise-a-jour {
    color: var(--texte-secondaire);
    font-style: italic;
}

/* Tableaux */
.texte-legal .tableau__titre {
    margin: 32px 0 0;
    padding: 12px 16px;
    background: var(--bleu-titre);
    color: var(--blanc);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.tableau {
    margin: 16px 0 24px;
    overflow-x: auto;
}

.tableau__titre + .tableau {
    margin-top: 0;
}

.tableau table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.tableau th,
.tableau td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--separateur);
    text-align: left;
    vertical-align: top;
}

.tableau th {
    background: var(--fond-clair);
    color: var(--bleu-titre);
    font-family: "Ubuntu", sans-serif;
    font-weight: 500;
}

/* Navigation entre les pages de conditions (Carte PASS, Crédit, Épargne, Assurance) */
.onglets-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}

.onglets-pages a {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--separateur);
    border-radius: 999px;
    color: var(--bleu-titre);
    font-family: "Ubuntu", sans-serif;
    font-weight: 500;
    text-decoration: none;
}

.onglets-pages a:hover {
    border-color: var(--bleu-action);
}

.onglets-pages a[aria-current="page"] {
    border-color: var(--bleu-action);
    background: var(--bleu-action);
    color: var(--blanc);
}

nav + .texte-legal {
    padding-top: 16px;
}

/* Rubriques des pages de conditions */
.rubrique-cg {
    padding: 32px 0;
    border-bottom: 1px solid var(--separateur);
}

.rubrique-cg:last-child {
    border-bottom: 0;
}

.texte-legal .rubrique-cg h2 {
    margin: 0 0 16px;
}

.texte-legal .rubrique-cg h3 {
    margin: 24px 0 10px;
}

.texte-legal .rubrique-cg p {
    margin: 0 0 16px;
    font-size: 15px;
}

.texte-legal .rubrique-cg li {
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .texte-legal {
        padding-top: 24px;
        padding-bottom: 40px;
    }

    .texte-legal h2 {
        font-size: 22px;
    }

    .tableau table {
        min-width: 640px;
    }

    .onglets-pages {
        gap: 8px;
        margin-top: 24px;
    }

    .onglets-pages a {
        padding: 8px 16px;
    }

    .rubrique-cg {
        padding: 24px 0;
    }
}

/* Encart de téléchargement PDF (données personnelles assurance, CGU) */
.telechargement {
    padding: 32px;
    border: 1px solid var(--bordure);
    border-top: 3px solid var(--bleu-action);
    text-align: center;
}

.telechargement h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.telechargement p {
    margin: 16px 0 0;
}

.telechargement__lien {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--bleu-action);
    font-weight: 600;
}

@media (max-width: 900px) {
    .telechargement {
        padding: 24px;
    }
}
