/* ==========================================================================
   css/bs5.css — Ajustements communs aux pages converties en Bootstrap 5.
   Chargé APRÈS style2021.css (ou style2022.css) pour pouvoir le corriger.
   ========================================================================== */

/* ---------- Général ---------- */
/* "clip" (et non "hidden") pour ne pas empêcher le menu de rester collé en haut */
html, body { overflow-x: clip; }

/* Bootstrap 3 avait une classe ".show" qui affichait ces éléments ; Bootstrap 5 non. */
#back-to-top.show,
#logo.show { display: block; }

/* Le petit logo qui apparaît au défilement recouvrait le menu sur téléphone */
@media (max-width: 991.98px) { #logo { display: none !important; } }

/* Espace sous le menu, en haut des pages intérieures */
.page-interieure { padding-top: 40px; padding-bottom: 40px; }
@media (max-width: 767.98px) { .page-interieure { padding-top: 20px; } }

/* Titres de sections : plus petits sur téléphone (36px sur ordinateur) */
.contact_area h3,
#blog .latest_blog h2,
.wel_header h2 { font-size: clamp(1.5rem, 6vw, 36px); }
.contact_area h4 { font-size: clamp(1.1rem, 4.5vw, 26px); }

/* ---------- Bouton téléphone bleu ---------- */
.bouton-tel { display: block; background: #0C3A8C; color: #fff !important; text-align: center; border-radius: 4px; padding: 15px; }
.bouton-tel:hover { background: #0a2f72; }
.bouton-tel .numero { font-size: clamp(1.3rem, 5vw, 28px); font-weight: 700; font-family: 'Open Sans', sans-serif; white-space: nowrap; }
.bouton-tel .mention { font-size: 16px; font-weight: 300; font-style: italic; }

/* ---------- Colonne de droite (formulaires, actualités) ---------- */
.colonne-droite .widget { margin-bottom: 30px; }
.colonne-droite .widgetheading { font-family: 'Montserrat', serif; }
@media (min-width: 992px) {
    .colonne-droite { padding-left: 30px; }
    /* reste visible quand on descend, sous le menu collé en haut */
    .colonne-collante { position: sticky; top: 110px; }
}
.logos-partenaires img { border: 1px solid #eee; padding: 5px; margin-bottom: 10px; background: #fff; }

/* ---------- Bloc contact (adresse + carte + formulaire) ---------- */
#contact { background: #eeeeee; padding: 80px 0; }
#contact .contact_area h3 {
    font-family: 'Montserrat', serif; font-weight: 700; text-transform: uppercase;
    color: #222; padding-bottom: 20px;
}
#contact .contact_area p { font-family: 'Open Sans', sans-serif; font-size: 16px; color: #646464; margin-bottom: 20px; }

/* Colonne de gauche : nom, adresse, téléphone, e-mail, carte */
#contact ._title span { font-family: 'Montserrat', serif; font-size: 22px; font-weight: 400; color: #222; }
#contact .office_location > div:not(.carte) {
    display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px;
    font-family: 'Open Sans', sans-serif; font-size: 14px; color: #696969;
}
#contact .office_location i { width: 12px; padding: 0; color: #696969; text-align: center; }
#contact .office_location > div > span { padding: 0; color: #696969; font-size: 14px; }
#contact .office_location .phone a { color: inherit; }
#contact .office_location .email a { color: #337ab7; }
#contact .office_location iframe { display: block; border: 0; border-radius: 0; }

/* Colonne de droite : formulaire */
#contact .msg_title h5 {
    font-family: 'Montserrat', serif; font-size: 22px; font-weight: 400;
    text-transform: uppercase; color: #222; padding-bottom: 20px;
}
#contact form .row { --bs-gutter-x: 30px; --bs-gutter-y: 25px; }
#contact #name, #contact #portable, #contact #email, #contact #subject, #contact #msg {
    background: #d4d4d4; border: 0; border-radius: 0; box-shadow: none; margin: 0;
    padding: 6px 12px; font-family: 'Open Sans', sans-serif; font-size: 14px;
    font-style: italic; color: #696969;
}
#contact #msg { min-height: 172px; }
#contact #name::placeholder, #contact #portable::placeholder, #contact #email::placeholder,
#contact #subject::placeholder, #contact #msg::placeholder { color: #8a8a8a; }
#contact label[for="add"] { font-family: 'Open Sans', sans-serif; font-size: 14px; color: #333; }
#contact #add {
    width: 94px; max-width: 94px; height: auto; padding: 1px 4px;
    background: #fff; border: 1px solid #999; border-radius: 2px; box-shadow: none;
    font-size: 14px;
}
#contact .custom-btn { margin-top: 5px; }
/* Page contact : choix du rendez-vous, des questions et des horaires */
#contact .groupe-choix { border: 0; margin: 0; }
#contact .groupe-choix legend {
    float: none; width: auto; margin-bottom: 8px;
    font-family: 'Open Sans', sans-serif; font-size: 19px; font-weight: 700; color: #292929;
}
#contact .groupe-choix legend.titre-rdv { font-size: 22px; }
#contact .groupe-choix .choix { margin: 0 18px 6px 0; font-family: 'Open Sans', sans-serif; font-size: 15px; color: #292929; cursor: pointer; }
#contact .groupe-choix input { margin-right: 6px; accent-color: #0C3A8C; }

@media (max-width: 767.98px) {
    #contact { padding: 40px 0; min-height: 0; }
    .office, .msg { padding-top: 20px; }
}
@media (max-width: 400px) {
    .custom-btn, .custom-btn:hover { padding: 13px 30px; width: 100%; }
}

/* ---------- Articles d'actualité ---------- */
.page-article { max-width: 1000px; }
.page-article .titre-article {
    font-family: 'Montserrat', serif; font-weight: 700; text-transform: uppercase;
    color: #222; text-align: center; font-size: clamp(1.4rem, 5vw, 36px);
    padding-bottom: 20px;
}
.page-article .date-article { text-align: center; color: #888; font-family: 'Open Sans', sans-serif; margin-bottom: 20px; }
.page-article .image-article { border-radius: 4px; margin-bottom: 35px; }
.page-article p,
.page-article h2 { font-family: 'Open Sans', sans-serif; color: #333; font-size: clamp(16px, 2.6vw, 22px); line-height: 1.6; }
.page-article p { padding-bottom: 15px; }
.page-article .chapo { color: #0C3A8C; border-left: 3px solid #0C3A8C; padding: 15px 0 15px 15px; margin-bottom: 15px; }
.page-article h2 { font-weight: 700; padding-top: 15px; padding-bottom: 10px; }
@media (min-width: 768px) { .page-article p { text-align: justify; } }
.page-article .retour { margin-top: 20px; font-family: 'Montserrat', serif; }

/* "À lire aussi" sous les articles et liste des actualités */
.carte-actu { border: 1px solid #d1d3d1; height: 100%; background: #fff; }
.carte-actu .contenu { padding: 15px; }
.carte-actu h3 { font-family: 'Montserrat', serif; font-size: 18px; font-weight: 700; color: #0C3A8C; padding-bottom: 8px; }
.carte-actu h3 a { color: inherit; }
.carte-actu .date { color: #aeadad; font-size: 14px; margin-bottom: 8px; }
.carte-actu p { font-family: 'Open Sans', sans-serif; font-size: 14px; color: #646464; }
.liste-actus .carte-actu h3 { font-size: clamp(18px, 3.5vw, 26px); }
@media (min-width: 768px) { .liste-actus .carte-actu p.resume { text-align: justify; } }
.dernieres-actus li { display: flex; gap: 10px; margin-bottom: 15px; }
.dernieres-actus img { width: 65px; height: 50px; object-fit: cover; flex-shrink: 0; }
.dernieres-actus a { color: #353535; font-weight: 600; font-size: 14px; font-family: 'Open Sans', sans-serif; }
.dernieres-actus a:hover { color: #0C3A8C; }

/* ---------- Équipe ---------- */
/* Vignette : photo en noir et blanc ; au survol, photo en couleur + fond bleu sous le nom */
.carte-membre {
    /* contenu calé en haut (un bouton le centre par défaut, d'où une bande vide au-dessus) */
    display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch;
    border: 0; width: 100%; height: 100%; padding: 0 0 12px; cursor: pointer;
    font: inherit; color: inherit; background: #fff; border-radius: 4px; overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .26);
    transition: background-color .3s, box-shadow .3s;
}
.carte-membre img {
    /* toutes les photos ont la même hauteur (format portrait 3/4), recadrées sur le haut */
    display: block; width: 100%; height: auto;
    aspect-ratio: 3 / 4; object-fit: cover; object-position: center top;
    flex-shrink: 0;
    filter: grayscale(1);
    transition: filter .6s;
}
.carte-membre .nom {
    display: block; margin-top: 10px; padding: 0 8px;
    font-family: 'Open Sans', sans-serif; font-weight: 700; font-size: 17px; color: #555;
    transition: color .3s;
}
.carte-membre .cbp-l-grid-team-position {
    padding: 0 8px; font-size: 14px; font-style: italic; color: #888;
    transition: color .3s;
}
.carte-membre:hover,
.carte-membre:focus-visible {
    background: #0C3A8C;
    box-shadow: 0 14px 30px -15px rgba(0, 0, 0, .95);
}
.carte-membre:hover img,
.carte-membre:focus-visible img { filter: grayscale(0); }
.carte-membre:hover .nom,
.carte-membre:focus-visible .nom { color: #fff; }
.carte-membre:hover .cbp-l-grid-team-position,
.carte-membre:focus-visible .cbp-l-grid-team-position { color: rgba(255, 255, 255, .75); }
.fiche-membre .modal-body img { width: 100%; height: auto; border-radius: 4px; }
.fiche-membre h5 { font-family: 'Montserrat', serif; font-weight: 700; color: #0C3A8C; }
.fiche-membre .depuis { font-style: italic; color: #888; }

/* ---------- Formulaires de devis ---------- */
.formulaire-devis { font-family: 'Open Sans', sans-serif; font-size: 17px; color: #292929; }
.formulaire-devis .ligne-form { margin-bottom: 1.2rem; }
.formulaire-devis .titre-section-form {
    margin: 2.5rem 0 1.5rem; text-align: center;
}
.formulaire-devis .champ-court { max-width: 160px; }
.formulaire-devis .input-group.champ-court-groupe { max-width: 220px; }
.formulaire-devis .aide { font-size: 14px; color: #666; margin-top: 4px; }
.formulaire-devis .form-check-label { cursor: pointer; }
/* Champs obligatoires mal remplis : en rouge, mais seulement après que la personne y a touché */
.formulaire-devis :user-invalid { border: 2px solid red; background: #ffe6e6; }
.formulaire-devis input[type="checkbox"]:user-invalid { outline: 2px solid red; }
.formulaire-devis .consentement { font-size: 15px; }
.formulaire-devis .pieces { text-align: center; }
.formulaire-devis .pieces label { margin: 5px; }
.formulaire-devis .bouton-plus-pieces { font-weight: 700; padding: 0; text-decoration: none; }

/* Formulaires convertis automatiquement : choix (boutons radio / cases à cocher) */
.formulaire-devis label.choix { display: inline-flex; align-items: center; gap: 6px; margin: 0 18px 6px 0; cursor: pointer; }
.formulaire-devis label.choix input { margin: 0; flex-shrink: 0; }
.formulaire-devis .ligne-form strong { color: #0C3A8C; }
.formulaire-devis .form-control.d-inline-block { max-width: 100%; }
.formulaire-devis table.table input.form-control { min-width: 70px; }
.formulaire-devis .consentement .form-check-label { font-size: 15px; }

/* ---------- Formulaire RC vie privée : garanties complémentaires à cocher ---------- */
.formulaire-devis .sous-titre-form { font-size: 17px; margin-bottom: 10px; }
.choix-garanties { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; margin: 20px 0 40px; }
.choix-garanties .garantie {
    border: 1px solid #ddd; border-radius: 6px; padding: 12px 8px; text-align: center;
    display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
}
.choix-garanties .garantie:has(input:checked) { border-color: #0C3A8C; background: #eef3fb; }
.choix-garanties .garantie-lien { color: #333; text-decoration: none; font-size: 13px; font-weight: 600; }
.choix-garanties .garantie-lien img { display: block; width: 64px; height: 64px; object-fit: contain; margin: 0 auto 6px; }
.choix-garanties .form-check { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding-left: 0; margin: 0 auto; font-size: 13px; }
.choix-garanties .form-check-input { float: none; margin: 0; }

/* ---------- Page Nos partenaires ---------- */
.grille-partenaires { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px; }
.partenaire { position: relative; text-align: center; outline: none; }
.partenaire > img { width: 100%; max-width: 170px; border: 1px solid #eee; background: #fff; }
.produits-partenaire { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 6px; }
.produits-partenaire img { width: 32px; height: 32px; object-fit: contain; }
/* Sur ordinateur : bulle qui apparaît au survol du logo (comme avant) */
@media (hover: hover) and (min-width: 992px) {
    .produits-partenaire {
        position: absolute; top: 100%; left: 50%; z-index: 5; width: max-content; max-width: 260px;
        padding: 10px; background: #fff; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,.25);
        opacity: 0; visibility: hidden; transform: translateX(-50%) scale(.9); transition: all .2s;
    }
    .partenaire:hover .produits-partenaire,
    .partenaire:focus-within .produits-partenaire { opacity: 1; visibility: visible; transform: translateX(-50%) scale(1); }
}

/* ---- Articles : texte bleu, bouton vers un devis, note de bas d'article (ski_qui_paye_la_facture) ---- */
.page-article .texte-bleu { color: #0C3A8C; }
.page-article .bouton-article {
    display: inline-block; padding: 12px 20px; border: 1px solid #C4C4C4;
    color: #0C3A8C; font-size: clamp(18px, 3vw, 24px); text-decoration: none; transition: .9s;
}
.page-article .bouton-article:hover,
.page-article .bouton-article:focus { background: #eC3A8C; color: #fff; }
.page-article p.note-article { font-size: 15px; }

/* ---- Formulaires : deux petits champs côte à côte (date + montant d'un sinistre) ---- */
.ligne-form .paire-champs label { margin-right: .4rem; }

/* ---- Article trottinette : encadré « BON A SAVOIR » (obligations / interdictions) ---- */
.page-article h2.bon-a-savoir { text-align: center; color: #0C3A8C; font-size: clamp(22px, 4vw, 28px); border-bottom: 1px solid #0C3A8C; margin-top: 30px; }
.page-article .titre-liste-trot { text-align: center; color: #0C3A8C; font-size: clamp(22px, 4vw, 28px); margin-bottom: 20px; }
.page-article .titre-liste-trot img { max-width: 60px; height: auto; vertical-align: middle; }
.page-article .liste-trot { list-style: none; padding: 0; font-family: 'Open Sans', sans-serif; font-size: clamp(16px, 2.4vw, 20px); color: #000; }
.page-article .liste-trot li { margin-bottom: 1.2em; }
.page-article .liste-trot li img { vertical-align: baseline; margin-right: 4px; }

/* ---- Pages réclamation et assistance : texte d'explication ---- */
.texte-reclamation { line-height: 1.8em; font-size: clamp(16px, 2.2vw, 19px); }
.texte-reclamation p { text-align: justify; margin-bottom: 1.2em; }
.intro-bleue { font-size: clamp(18px, 3vw, 22px); font-family: 'Montserrat', serif; color: #0C3B8D; }
.numero-assistance { font-size: 18px; font-family: 'Montserrat', serif; }
.carte-livret h3 { color: #0C3B8D; }
.carte-livret img { border: 1px solid #eee; padding: 5px; }

/* ---- Articles : encadré bleu sur plusieurs paragraphes, sous-titre centré ---- */
.page-article .encadre-bleu { border-left: 3px solid #0C3A8C; padding: 15px 0 5px 15px; margin-bottom: 15px; }
.page-article .encadre-bleu p { color: #0C3A8C; }
.page-article h2.sous-titre-article { text-align: center; text-transform: uppercase; font-family: 'Montserrat', serif; color: #222; font-size: clamp(20px, 4vw, 30px); margin-bottom: 20px; }

/* ---- Articles COVID : bons gestes en images, encadré « mise à jour » ---- */
.page-article .gestes-covid img { border: 1px solid #C4C4C4; border-radius: 20%; }
.page-article .gestes-covid p { margin: 0; padding: 0; text-align: left; }
.page-article .encadre-maj { border: 1px solid #333; background: #99CCCC; padding: 15px 15px 0; }
.page-article h2.texte-bleu { color: #0C3A8C; font-size: clamp(20px, 3.5vw, 28px); }

/* ---- Article « PJ ou RC » : titre en tête de chaque colonne ---- */
.page-article .sous-titre-colonne { font-size: clamp(18px, 3vw, 22px); color: #0C3A8C; }

/* ---- Boutons « joindre un document » (tous les formulaires) ----
   Même taille qu'avant la migration (l'ancien Bootstrap 3 rendait les « rem »
   plus petits, d'où des boutons trop gros avec Bootstrap 5 : ici en px). */
.inputfile { width: .1px; height: .1px; opacity: 0; overflow: hidden; position: absolute; z-index: -1; }
html .inputfile.inputfile-1 + label {
    display: inline-block; max-width: 80%; margin: 5px 3px; padding: 6px 12px;
    font-size: 13px; font-weight: 700; line-height: 1.5; text-transform: none;
    color: #f1e5e6; background-color: #d3394c; border-radius: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; cursor: pointer;
}
html .inputfile.inputfile-1 + label svg { width: 1em; height: 1em; vertical-align: middle; fill: currentColor; margin-top: -.25em; margin-right: .25em; }
html .inputfile.inputfile-1 + label:hover,
html .inputfile.inputfile-1:focus + label,
html .inputfile.inputfile-1.a-un-fichier + label { background-color: #722040; }
html .inputfile.inputfile-1:focus-visible + label { outline: 1px dotted #000; outline-offset: -2px; }

/* ---- Page « La société » : texte aéré et justifié ---- */
.page-societe #diaporama-societe { box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }
.page-societe .titre-societe {
    font-family: 'Montserrat', sans-serif; font-weight: 700; text-transform: uppercase;
    color: #222; font-size: clamp(22px, 4vw, 34px); margin: 0 0 25px; text-align: left;
}
.page-societe .texte p { font-size: 15px; line-height: 1.95; color: #555; margin-bottom: 28px; }
.page-societe .col-lg-8 .texte p { text-align: justify; }
.page-societe .colonne-droite .texte p { text-align: left; }

/* ---- Page « Informations légales » : aérée, titres colorés comme l'originale ---- */
.page-legale .contact_area h3 { text-align: left; }
.page-legale .texte-legal p { text-align: justify; line-height: 1.9; margin-bottom: 18px; }
.page-legale .texte-legal h2 {           /* 1 -, 2 -, 3 - : grands titres bleus */
    font-size: clamp(20px, 3.5vw, 26px); font-weight: 700; color: #0C3A8C;
    margin: 55px 0 25px; text-transform: none; text-align: left;
}
.page-legale .texte-legal h2:first-child { margin-top: 20px; }
.page-legale .texte-legal h3 {           /* Editeur, Siège social, Cookies… */
    font-size: clamp(17px, 3vw, 20px); font-weight: 700; color: #222;
    margin: 40px 0 18px; text-transform: none; text-align: left;
}
.page-legale .texte-legal h4 {           /* 1.1 -, 1.2 -… */
    font-size: 16px; font-weight: 700; color: #222; margin: 30px 0 10px; text-align: left;
}

/* ---- Formulaires : la case où l'on écrit est encadrée en bleu ----
   (remplace le halo bleu clair de Bootstrap 5 par un cadre bleu net) */
.form-control:focus,
.form-select:focus,
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus,
input[type="number"]:focus, input[type="date"]:focus, input[type="password"]:focus,
textarea:focus, select:focus {
    border: 1px solid #0C3A8C;
    box-shadow: 0 0 0 1px #0C3A8C;   /* donne un cadre de 2px sans faire bouger le texte */
    outline: none;
}
.form-check-input:focus { border-color: #0C3A8C; box-shadow: 0 0 0 2px rgba(12, 58, 140, .35); }

/* ---- Paiement par carte bancaire (pay/v2/) ---- */
.formulaire-paiement .logos-paiement { display: flex; justify-content: center; align-items: center; gap: 30px; flex-wrap: wrap; margin-bottom: 25px; }
.formulaire-paiement .logos-paiement img { max-width: 100%; height: auto; }
.formulaire-paiement .montant-paiement { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.formulaire-paiement .montant-paiement .form-control { width: 130px; max-width: 40%; }
.formulaire-paiement .recap-paiement dt { font-weight: 400; }
.formulaire-paiement .recap-paiement dd { font-weight: 700; margin-bottom: 0; word-break: break-word; }
.formulaire-paiement .compteur-caracteres { font-size: 13px; color: #777; margin: 4px 0 0; }
.alerte-paiement { color: #b00020; font-weight: 700; border-left: 3px solid #b00020; padding-left: 12px; }
