/* ==========================================
   CNLEGIS - ZONE DE RECHERCHE (TOUTES LES PAGES)
========================================== */

/* Formulaire : on neutralise les espacements hérités du thème */
.form-recherche {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* ------------------------------------------
   Ligne de recherche (DESKTOP)
------------------------------------------ */
.form-recherche .recherche-ligne {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 20px;

    margin-top: 10px !important;
    margin-bottom: 0 !important;
    margin-left: -60px !important;
    margin-right: -60px !important;

    padding-top: 0 !important;
    padding-right: 40px !important;
    padding-bottom: 20px !important;
    padding-left: 40px !important;
}

/* Colonnes */
.form-recherche .recherche-champ {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    padding: 0 !important;
    margin: 0 !important;
}

.form-recherche .recherche-bouton {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
}

/* Conteneurs du champ */
.form-recherche .recherche-champ .form-group,
.form-recherche .recherche-champ .form-line {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

/* ------------------------------------------
   Champ de saisie (tous les inputs de la ligne)
------------------------------------------ */
.form-recherche .recherche-champ .form-control {
    display: block;
    width: 100%;
    height: 44px;
    margin: 0 !important;
    padding: 8px 15px;
    font-size: 16px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ced4da !important;
    border-radius: 22px !important;
    outline: none;
    box-shadow: 0 2px 6px rgba(0,0,0,.04) !important;
    transition: all .25s ease;
    box-sizing: border-box;
}

.form-recherche .recherche-champ .form-control:focus {
    border-color: #0D9394 !important;
    box-shadow: 0 0 0 3px rgba(13,147,148,.15) !important;
}

/* ------------------------------------------
   Bouton Rechercher
------------------------------------------ */
.form-recherche .recherche-bouton .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 135px;
    height: 44px;
    margin: 0 !important;
    padding: 0 22px;
    background-color: #FFC107 !important;
    border: 1px solid #FFC107 !important;
    border-radius: 22px !important;
    color: #212529 !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,.10);
    transition: all .25s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.form-recherche .recherche-bouton .btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.form-recherche .recherche-bouton .btn .material-icons {
    font-size: 20px;
}

.form-recherche .recherche-bouton .btn:hover {
    background-color: #E0A800 !important;
    border-color: #E0A800 !important;
    color: #212529 !important;
    transform: translateY(-1px);
}

.form-recherche .recherche-bouton .btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ==========================================
   TABLETTE (768px à 991px)
========================================== */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .form-recherche .recherche-ligne {
        margin-left: -30px !important;
        margin-right: -30px !important;
        padding-right: 30px !important;
        padding-left: 30px !important;
        padding-bottom: 20px !important;
    }
}

/* ==========================================
   MOBILE (moins de 768px)
========================================== */
@media screen and (max-width: 767px) {

    .form-recherche .recherche-ligne {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
        margin: 0 !important;
        padding: 0 15px 15px 15px !important;
    }

    .form-recherche .recherche-champ,
    .form-recherche .recherche-bouton {
        width: 100%;
        flex: 0 0 auto;
    }

    .form-recherche .recherche-bouton .btn {
        width: 100%;
        height: 44px;
    }
}

/* ==========================================
   ONGLET DATES (deux champs + "au")
========================================== */

/* Le groupe prend toute la largeur disponible */
.form-recherche .recherche-dates {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 !important;
}

.form-recherche .card_che {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Les deux champs se partagent la place à parts égales */
.form-recherche .recherche-dates .form-control {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    height: 44px;
    margin: 0 !important;
    padding: 8px 15px;
    font-size: 16px;
    text-align: center;
    color: #333;
    background-color: #fff;
    border: 1px solid #ced4da !important;
    border-radius: 22px !important;      /* arrondi sur les deux champs */
    outline: none;
    box-shadow: 0 2px 6px rgba(0,0,0,.04) !important;
    box-sizing: border-box;
    float: none;
}

.form-recherche .recherche-dates .form-control:focus {
    border-color: #0D9394 !important;
    box-shadow: 0 0 0 3px rgba(13,147,148,.15) !important;
}

/* Le mot "au" : sans fond, simple séparateur */
.form-recherche .recherche-dates .recherche-au {
    flex: 0 0 auto;
    width: auto;
    padding: 0 15px !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    color: #fff;                          /* visible sur fond bleu foncé */
    font-size: 16px;
    font-weight: 600;
    line-height: 44px;
}

/* Mobile : les deux dates s'empilent */
@media screen and (max-width: 767px) {

    .form-recherche .recherche-dates {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .form-recherche .recherche-dates .recherche-au {
        padding: 0 !important;
        text-align: center;
        line-height: 1.2;
    }
}

/* ==========================================
   ONGLET TYPES (liste déroulante + champ texte)
========================================== */

/* Les deux colonnes se partagent la place à parts égales */
.form-recherche .recherche-duo {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.form-recherche .recherche-duo .recherche-col {
    flex: 1 1 0;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    float: none;
}

/* Le plugin de la liste ajoute souvent un conteneur autour du champ */
.form-recherche .recherche-type .input-group,
.form-recherche .recherche-type .combobox-container,
.form-recherche .recherche-type .bootstrap-select,
.form-recherche .recherche-type .select2-container {
    display: flex !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Champ de la liste : arrondi à gauche, collé au bouton flèche */
.form-recherche .recherche-type .input-group .form-control,
.form-recherche .recherche-type .combobox-container .form-control {
    flex: 1 1 auto;
    border-radius: 22px 0 0 22px !important;
    border-right: 0 !important;
}

/* Bouton flèche : arrondi à droite, même hauteur que le champ */
.form-recherche .recherche-type .input-group-btn,
.form-recherche .recherche-type .input-group-addon {
    display: flex;
    width: auto;
}

.form-recherche .recherche-type .input-group-btn .btn,
.form-recherche .recherche-type .input-group-addon,
.form-recherche .recherche-type .dropdown-toggle {
    height: 44px;
    margin: 0 !important;
    padding: 0 14px;
    background-color: #fff !important;
    color: #555 !important;
    border: 1px solid #ced4da !important;
    border-left: 0 !important;
    border-radius: 0 22px 22px 0 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.04) !important;
    box-sizing: border-box;
}

/* Mobile : les deux champs s'empilent */
@media screen and (max-width: 767px) {
    .form-recherche .recherche-duo {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
}

/* ==========================================
   BOUTON TÉLÉCHARGEMENT APK
========================================== */

.apk-download {
    display: inline-block;
    text-align: center;
    max-width: 280px;
}

/* Bouton bleu ciel */
.apk-download .btn-apk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #4FC3F7 0%, #0288D1 100%);
    color: #fff !important;
    text-decoration: none !important;
    border: 0;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(2, 136, 209, .35);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    cursor: pointer;
}

.apk-download .btn-apk:hover {
    background: linear-gradient(135deg, #81D4FA 0%, #039BE5 100%);
    box-shadow: 0 6px 16px rgba(2, 136, 209, .5);
    transform: translateY(-2px);
}

.apk-download .btn-apk:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(2, 136, 209, .35);
}

/* Icône Android */
.apk-download .btn-apk-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

/* Texte à deux lignes */
.apk-download .btn-apk-texte {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    text-align: left;
}

.apk-download .btn-apk-texte small {
    font-size: 11px;
    font-weight: 400;
    opacity: .9;
}

.apk-download .btn-apk-texte strong {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .5px;
}

/* Message sous le bouton */
.apk-download .apk-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    margin: 10px 0 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #cfd8dc;               /* clair, lisible sur fond bleu foncé */
    text-align: left;
}

.apk-download .apk-note svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Mobile : bouton pleine largeur */
@media screen and (max-width: 767px) {
    .apk-download {
        display: block;
        max-width: 100%;
    }
    .apk-download .btn-apk {
        width: 100%;
    }
}

/* ==========================================
   PIED DE PAGE : APK + COPYRIGHT
========================================== */

/* Alignement vertical des deux blocs */
.footer-ligne {
    display: flex;
    flex-wrap: wrap;
    align-items: center;           /* centre le copyright par rapport au bouton */
    padding: 20px 0;
}

.footer-apk {
    text-align: left;
}

.footer-copyright {
    text-align: right;
}

/* Copyright */
.footer-copyright .copyright p {
    margin: 0;
    line-height: 1.6;
    font-size: 13px;
    color: #cfd8dc;
}

.footer-copyright .copyright span {
    display: block;                /* une ligne par information */
}

.footer-copyright .copyright a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.footer-copyright .copyright a:hover {
    text-decoration: underline;
}

/* Mise à jour : plus discrète */
.footer-copyright .copyright-maj {
    font-size: 12px;
    opacity: .8;
}

/* Tablette et mobile : tout est centré et empilé */
@media screen and (max-width: 991px) {

    .footer-apk,
    .footer-copyright {
        text-align: center;
    }

    .footer-apk {
        margin-bottom: 20px;
    }

    .footer-apk .apk-download {
        display: block;
        margin: 0 auto;
    }

    .footer-apk .apk-note {
        justify-content: center;
        text-align: center;
    }
}

/* ==========================================
   PIED DE PAGE : LIENS UTILES
========================================== */

.footer-liens {
    padding: 30px 0 10px;
}

.footer-liens .widgetheading {
    margin: 0 0 14px;
    padding-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    border-bottom: 2px solid #FFC107;   /* rappel du jaune du bouton Rechercher */
    display: inline-block;
}

/* Adresse */
.footer-liens .footer-adresse {
    margin: 0 0 10px;
    font-style: normal;
    font-size: 14px;
    line-height: 1.7;
    color: #cfd8dc;
}

.footer-liens .footer-adresse strong {
    color: #fff;
}

.footer-liens .footer-tel {
    margin: 0;
    font-size: 14px;
    color: #cfd8dc;
}

.footer-liens .footer-tel i {
    margin-right: 6px;
    color: #FFC107;
}

.footer-liens .footer-tel a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.footer-liens .footer-tel small {
    display: block;
    margin-left: 22px;
    opacity: .8;
}

/* Listes de liens */
.footer-liens .link-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-liens .link-list li {
    margin: 0 0 6px;
}

.footer-liens .link-list a {
    display: block;
    padding: 4px 0;                  /* zone de clic plus confortable */
    font-size: 14px;
    line-height: 1.4;
    color: #cfd8dc;
    text-decoration: none;
    transition: color .2s ease, padding-left .2s ease;
}

.footer-liens .link-list a:hover {
    color: #FFC107;
    padding-left: 4px;
}

.footer-liens .link-list a small {
    display: block;
    font-size: 12px;
    opacity: .75;
}

/* Séparateur avec le bloc APK / copyright */
.footer-separateur {
    margin: 15px 0 0;
    border: 0;
    border-top: 1px solid rgba(255,255,255,.2);
}

/* Mobile : colonnes empilées avec de l'air */
@media screen and (max-width: 991px) {
    .footer-liens .widget {
        margin-bottom: 25px;
    }
}

/* ==========================================
   SECTION LOIS ET REGLEMENTS
========================================== */

/* Titre avec barre jaune */
.section-lois .lois-titre {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 14px;
}

.section-lois .lois-titre::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 60px;
    height: 4px;
    transform: translateX(-50%);
    background: #FFC107;
    border-radius: 2px;
}

/* Introduction : largeur de lecture confortable */
.section-lois .lois-intro {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 17px;
    line-height: 1.7;
    text-align: center;
    color: #333;
}

/* Cadre juridique : encadré discret */
.section-lois .lois-legal {
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;              /* plus de justification */
    color: #555;
    background: #fff;
    border-left: 4px solid #002d5b;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.section-lois .lois-legal-label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #002d5b;
}

.section-lois .lois-sous-titre {
    margin: 0 0 20px;
    font-size: 18px;
    text-align: center;
    color: #002d5b;
}

/* Cartes d'accès */
.section-lois .lois-acces {
    display: flex;
    flex-wrap: wrap;
}

.section-lois .lois-acces > [class*="col-"] {
    margin-bottom: 20px;
}

.section-lois .carte-acces {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.section-lois .carte-acces:hover,
.section-lois .carte-acces:focus {
    transform: translateY(-3px);
    border-color: #FFC107;
    box-shadow: 0 8px 20px rgba(0,45,91,.15);
    outline: none;
}

/* Icône ronde bleu foncé, comme avant */
.section-lois .carte-acces-icone {
    flex: 0 0 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #002d5b;
    color: #FFC107;
}

.section-lois .carte-acces-icone svg {
    width: 30px;
    height: 30px;
}

.section-lois .carte-acces-texte {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.section-lois .carte-acces-texte strong {
    font-size: 19px;
    color: #002d5b;
}

.section-lois .carte-acces-texte small {
    margin-top: 2px;
    font-size: 14px;
    color: #666;
}

/* Flèche : indique que la carte est cliquable */
.section-lois .carte-acces-fleche {
    flex: 0 0 auto;
    font-size: 32px;
    line-height: 1;
    color: #b0bac5;
    transition: transform .2s ease, color .2s ease;
}

.section-lois .carte-acces:hover .carte-acces-fleche {
    transform: translateX(4px);
    color: #FFC107;
}

/* Mobile */
@media screen and (max-width: 767px) {
    .section-lois .lois-intro {
        font-size: 16px;
        text-align: left;
    }
    .section-lois .carte-acces {
        padding: 14px;
    }
    .section-lois .carte-acces-icone {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
    }
}

/* ==========================================
   PIED DE PAGE : réduction de l'espace du haut
========================================== */

/* Espace du haut du pied de page */
footer {
    padding-top: 25px !important;      /* à ajuster : 15px, 20px, 30px */
}

/* Plus de padding supplémentaire sur la ligne des liens */
.footer-liens {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Les widgets ne doivent pas ajouter d'espace au-dessus */
.footer-liens .widget {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Le premier titre commence tout en haut */
.footer-liens .widgetheading {
    margin-top: 0 !important;
}

/* ==========================================
   TITRE DE SECTION MODERNE (variante A)
========================================== */

.titre-section {
    margin: 0 0 40px;
    padding: 0 15px;
}

.titre-section h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-align: center;
    color: #002d5b;
}

/* Lignes dégradées de chaque côté */
.titre-section h2::before,
.titre-section h2::after {
    content: "";
    flex: 1 1 auto;
    height: 2px;
    border-radius: 2px;
}

.titre-section h2::before {
    background: linear-gradient(90deg, transparent, #002d5b);
}

.titre-section h2::after {
    background: linear-gradient(90deg, #002d5b, transparent);
}

/* Points jaunes collés au titre */
.titre-section .point {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    background: #FFC107;
    border-radius: 50%;
}

/* Mobile */
@media screen and (max-width: 767px) {
    .titre-section {
        margin-bottom: 30px;
    }

    .titre-section h2 {
        gap: 10px;
        font-size: 22px;
        letter-spacing: .5px;
    }
}

/* ==========================================
   BOX-AREA ARRONDIE : ROUGE (Gouvernement) / VERT (Ministres)
========================================== */

/* Base commune */
.box-area {
    padding: 20px 15px 15px;
    background: #ececec;
    margin-top: -21px;
    border: 2px solid #f3f3f3;
    border-radius: 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    overflow: hidden;
    transition: box-shadow .25s ease, border-color .25s ease;
}

.box-area h3 {
    position: relative;
    margin: 0 0 18px;
    padding-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
}

/* Petite barre sous le titre */
.box-area h3::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 44px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* ------------------------------------------
   Conseil du Gouvernement : ROUGE
------------------------------------------ */
.icons2 + .box-area {
    border-color: #b3261e;
}

.icons2 + .box-area h3 {
    color: #b3261e;
}

.icons2 + .box-area h3::after {
    background: #b3261e;
}

.icons2 + .box-area:hover {
    box-shadow: 0 8px 22px rgba(179, 38, 30, .25);
}

/* ------------------------------------------
   Conseil des Ministres : VERT
------------------------------------------ */
.icons3 + .box-area {
    border-color: #1b7f2a;
}

.icons3 + .box-area h3 {
    color: #1b7f2a;
}

.icons3 + .box-area h3::after {
    background: #1b7f2a;
}

.icons3 + .box-area:hover {
    box-shadow: 0 8px 22px rgba(27, 127, 42, .25);
}

/* ------------------------------------------
   Liste à l'intérieur : coins arrondis aussi
------------------------------------------ */
.box-area .stream {
    border-radius: 12px;
    overflow-y: auto;
}

/* Barre de défilement fine, de la couleur du conseil */
.icons2 + .box-area .stream::-webkit-scrollbar-thumb { background: #d98d88; border-radius: 3px; }
.icons3 + .box-area .stream::-webkit-scrollbar-thumb { background: #86bd8e; border-radius: 3px; }
.box-area .stream::-webkit-scrollbar { width: 6px; }

/* Mobile */
@media screen and (max-width: 767px) {
    .box-area {
        border-radius: 14px;
        padding: 18px 10px 10px;
    }
    .box-area h3 { font-size: 18px; }
}

/* ==========================================
   ECRAN ETROIT : espace entre les deux conseils
========================================== */
@media screen and (max-width: 991px) {

    /* Espace sous chaque boîte, avant l'icône suivante */
    .skill-home-solid .box-area {
        margin-bottom: 35px;
    }

    /* Pas d'espace en trop après la dernière boîte */
    .skill-home-solid > [class*="col-"]:last-child .box-area {
        margin-bottom: 0;
    }
}

/* ==========================================
   FENETRES MODAL-AUTOHEIGHT (Conseils + Visualisation texte)
   Champ de recherche + boutons seulement
========================================== */

/* Champ de recherche : pilule avec loupe */
.modal-autoheight .modal-header input[type="search"] {
    height: 44px;
    padding: 0 18px 0 44px;                    /* place pour la loupe */
    font-size: 15px;
    color: #333;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c7a89' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 15px center / 18px 18px;
    border: 1px solid #ced4da;
    border-radius: 22px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.modal-autoheight .modal-header input[type="search"]:focus {
    border-color: #0D9394;
    box-shadow: 0 0 0 3px rgba(13, 147, 148, .15);
}

/* Boutons suivant / précédent / effacer : ronds */
.modal-autoheight .modal-header .btn[data-search] {
    width: 44px;
    height: 44px;
    padding: 0;
    margin-right: 6px;
    border-radius: 50% !important;
    font-size: 17px;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .18);
    transition: transform .2s ease, box-shadow .2s ease;
}

.modal-autoheight .modal-header .btn[data-search] .fa {
    margin: 0;
}

/* Bouton PDF (et tout autre bouton de l'en-tête) : pilule arrondie */
.modal-autoheight .modal-header .btn:not([data-search]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    padding: 0 18px;
    margin-right: 6px;
    border-radius: 22px !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .18);
    transition: transform .2s ease, box-shadow .2s ease;
}

.modal-autoheight .modal-header .btn:not([data-search]) .fa {
    margin: 0;
}

/* Survol, focus et clic : tous les boutons de l'en-tête */
.modal-autoheight .modal-header .btn:hover,
.modal-autoheight .modal-header .btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .25);
}

.modal-autoheight .modal-header .btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Mobile : boutons un peu plus petits pour garder la barre compacte */
@media screen and (max-width: 767px) {
    .modal-autoheight .modal-header .btn[data-search] {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .modal-autoheight .modal-header .btn:not([data-search]) {
        height: 38px;
        padding: 0 14px;
        font-size: 14px;
    }
}
/* Fenêtres Conseil : sur téléphone, l'en-tête devient une vraie barre avec une ligne jaune */
@media screen and (max-width: 767px) {

    .modal-autoheight .modal-header {
        position: relative;
        z-index: 2;                            /* reste au-dessus du texte */
        margin-top: 0 !important;              /* annule m-t-50 */
        margin-bottom: 0 !important;           /* annule m-b-50 */
        min-height: 155px;                     /* hauteur réelle : label + champ + boutons */
        background: #ececec;
        border-bottom: 4px solid #FFFFFF;      /* la barre rectangle */
        box-sizing: border-box;
    }
}

@media screen and (max-width: 767px) {
    .modal-autoheight .modal-content {
        max-height: calc(100vh - 45px);   /* 90px = bouton ✖ (~44px) + marges */
        display: flex;
        flex-direction: column;
    }

    .modal-autoheight .modal-body {
        flex: 1 1 auto;
        min-height: 0;                     /* indispensable pour que le scroll interne fonctionne */
        overflow-y: auto;
    }
}

/* ==========================================
   ONGLETS : le sous-menu CONSEILS passe au-dessus de la zone de recherche
========================================== */

/* La barre d'onglets (et son menu) est au-dessus du contenu */
.nav-tabs {
    position: relative;
    z-index: 30;
}

.nav-tabs > li.dropdown {
    position: relative;
}

/* Le menu déroulant lui-même */
.nav-tabs .dropdown-menu {
    z-index: 1000 !important;
}

/* Le contenu des onglets reste dessous */
.tab-content,
.border_tabs {
    position: relative;
    z-index: 1;
}

/* Le calendrier passe au-dessus des onglets et de leur menu */
.datepicker.datepicker-dropdown {
    z-index: 2000 !important;     /* !important est nécessaire : le plugin écrit z-index: 11 en inline */
}

/* ==========================================
   BARRE DU HAUT (topbar)
========================================== */

/* Les liens et le téléphone s'alignent sur une ligne */
.topbar .col-md-12 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 4px;
}

.topbar .col-md-12::before,
.topbar .col-md-12::after {
    display: none;                         /* annule le clearfix de Bootstrap, inutile en flex */
}

.topbar p {
    float: none;
    margin: 0;
    padding: 0 !important;                 /* annule p_padding_left */
}

/* Liens */
.topbar .top_a {
    position: relative;
    display: block;
    padding: 14px 12px;
    font-size: 14px;
    letter-spacing: .3px;
    color: #fff;
    text-decoration: none;
    transition: color .2s ease;
}

/* Soulignement jaune qui apparaît au survol */
.topbar .top_a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 8px;
    height: 2px;
    background: #FFC107;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.topbar .top_a:hover,
.topbar .top_a:focus {
    color: #FFC107;
    text-decoration: none;
    outline: none;
}

.topbar .top_a:hover::after,
.topbar .top_a:focus::after {
    transform: scaleX(1);
}

/* Téléphone : pastille à droite */
.topbar p.pull-right {
    margin-left: auto;
    padding: 6px 14px !important;
    font-size: 14px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border-radius: 20px;
}

.topbar p.pull-right .fa {
    margin-right: 8px;
    color: #FFC107;
}

/* Tablette : liens plus compacts */
@media screen and (max-width: 991px) {
    .topbar .top_a {
        padding: 12px 8px;
        font-size: 13px;
    }

    .topbar .top_a::after {
        left: 8px;
        right: 8px;
    }
}

/* Mobile : tous les liens restent visibles, sur deux lignes si nécessaire */
@media screen and (max-width: 767px) {

    .topbar .col-md-12 {
        flex-wrap: wrap;                   /* plus de défilement horizontal */
        overflow: visible;
        gap: 0 18px;                       /* espace entre les liens */
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .topbar .top_a {
        padding: 9px 0;                    /* aligné sur le bord gauche, comme avant */
        font-size: 13px;
        white-space: normal;
    }

    .topbar .top_a::after {
        left: 0;
        right: 0;
        bottom: 4px;
    }
}

/* ==========================================
   MENU PRINCIPAL (navbar)
========================================== */

/* Barre blanche avec ombre légère */
.navbar.navbar-default {
    background: #fff;
    border: 0;
    border-bottom: 1px solid #e3e8ee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

/* Liens */
.navbar-default .navbar-nav > li > a {
    position: relative;
    font-weight: 600;
    letter-spacing: .3px;
    color: #5c7391;
    background: transparent;
    transition: color .2s ease;
}

/* Barre jaune sous le lien : cachée par défaut */
.navbar-default .navbar-nav > li > a::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 0;
    height: 3px;
    background: #FFC107;
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

/* Survol et focus clavier */
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: #002d5b;
    background: transparent;
    outline: none;
}

.navbar-default .navbar-nav > li > a:hover::after,
.navbar-default .navbar-nav > li > a:focus::after {
    transform: scaleX(1);
}

/* Lien actif : bleu foncé + barre jaune visible */
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: #002d5b;
    background: transparent;
}

.navbar-default .navbar-nav > .active > a::after {
    transform: scaleX(1);
}

/* ------------------------------------------
   Tablette + mobile (moins de 992px) : menu replié avec bouton hamburger
------------------------------------------ */

/* 1. Bootstrap ne replie le menu qu'en dessous de 768px : on l'étend jusqu'à 991px */
@media screen and (min-width: 768px) and (max-width: 991px) {

    .navbar-header {
        float: none;
    }

    .navbar-toggle {
        display: block;
    }

    .container > .navbar-header,
    .container > .navbar-collapse {
        margin-left: -15px;
        margin-right: -15px;
    }

    .navbar-collapse {
        border-top: 1px solid #e3e8ee;
        box-shadow: none;
    }

    .navbar-collapse.collapse {
        display: none !important;
    }

    .navbar-collapse.collapse.in {
        display: block !important;
        overflow-y: auto !important;
    }

    .navbar-nav {
        float: none !important;
        margin: 0 -15px;
    }

    .navbar-nav > li {
        float: none;
    }
}

/* 2. Apparence du bouton et du menu déplié (tablette et mobile) */
@media screen and (max-width: 991px) {

    /* Bouton hamburger arrondi */
    .navbar-default .navbar-toggle {
        border: 1px solid #ced4da;
        border-radius: 10px;
        background: #fff;
    }

    .navbar-default .navbar-toggle:hover,
    .navbar-default .navbar-toggle:focus {
        background: #f4f6f9;
    }

    .navbar-default .navbar-toggle .icon-bar {
        background: #002d5b;
        border-radius: 2px;
    }

    /* Menu déplié : liens en liste verticale */
    .navbar-default .navbar-nav > li > a {
        padding: 13px 16px;
        border-left: 4px solid transparent;    /* repère à gauche à la place du soulignement */
    }

    .navbar-default .navbar-nav > li > a::after {
        display: none;
    }

    .navbar-default .navbar-nav > li > a:hover,
    .navbar-default .navbar-nav > li > a:focus,
    .navbar-default .navbar-nav > .active > a,
    .navbar-default .navbar-nav > .active > a:hover,
    .navbar-default .navbar-nav > .active > a:focus {
        background: #f4f6f9;
        border-left-color: #FFC107;
    }
}

/* ==========================================
   PAGE DIRCNLEGIS
========================================== */

.dir-page {
    max-width: 960px;
    margin: 0 auto;
    padding-bottom: 30px;
}

/* Paragraphes : alignés à gauche, plus aérés (fini le texte justifié) */
.dir-page .dir-texte {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.75;
    text-align: left;
    color: #2b2b2b;
}

/* Introduction mise en avant */
.dir-page .dir-intro {
    margin: 0 0 22px;
    padding: 16px 20px;
    font-size: 17px;
    line-height: 1.7;
    text-align: left;
    color: #2b2b2b;
    background: #fff;
    border-left: 5px solid #002d5b;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.dir-page .dir-intro b {
    color: #002d5b;
}

/* Listes en cartes */
.dir-page .dir-liste {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.dir-page .dir-liste li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    font-size: 15.5px;
    line-height: 1.6;
    text-align: left;
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dir-page .dir-liste li:hover {
    transform: translateX(4px);
    border-color: #FFC107;
    box-shadow: 0 6px 16px rgba(0, 45, 91, .12);
}

/* Puce ronde bleue avec symbole jaune */
.dir-page .dir-puce {
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: #FFC107;
    background: #002d5b;
    border-radius: 50%;
}

.dir-page .dir-liste li b {
    color: #002d5b;
}

/* Les deux services : côte à côte sur grand écran */
@media screen and (min-width: 768px) {
    .dir-page .dir-services {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* Encadré final : contact */
.dir-page .dir-contact {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 18px 22px;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
    color: #fff;
    background: #002d5b;
    border-bottom: 4px solid #FFC107;
    border-radius: 14px;
}

.dir-page .dir-contact svg {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    color: #FFC107;
}

/* Mobile */
@media screen and (max-width: 767px) {
    .dir-page .dir-texte { font-size: 15px; }
    .dir-page .dir-intro { padding: 14px 16px; font-size: 16px; }
    .dir-page .dir-liste li { padding: 12px 14px; font-size: 15px; }
    .dir-page .dir-liste li:hover { transform: none; }
    .dir-page .dir-contact { padding: 14px 16px; font-size: 15px; }
}

/* ==========================================
   PAGE SITUATION JURIDIQUE (réutilisable pour d'autres pages de texte)
========================================== */

.page-juridique {
    max-width: 960px;
    margin: 0 auto;
    padding-bottom: 30px;
}

/* Titres avec petit trait jaune */
.page-juridique .pj-titre {
    position: relative;
    margin: 34px 0 18px;
    padding-bottom: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #002d5b;
}

.page-juridique .pj-titre:first-child {
    margin-top: 0;
}

.page-juridique .pj-titre::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 4px;
    background: #FFC107;
    border-radius: 2px;
}

/* Paragraphes : alignés à gauche, plus aérés */
.page-juridique .pj-texte {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.75;
    text-align: left;
    color: #2b2b2b;
}

/* Cartes "nom + date" */
.page-juridique .pj-faits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.page-juridique .pj-faits li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 18px 16px 22px;
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.page-juridique .pj-faits li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #002d5b;
    transition: background-color .2s ease;
}

.page-juridique .pj-faits li:hover {
    transform: translateY(-3px);
    border-color: #FFC107;
    box-shadow: 0 8px 18px rgba(0, 45, 91, .13);
}

.page-juridique .pj-faits li:hover::before {
    background: #FFC107;
}

.page-juridique .pj-faits li b {
    font-size: 16px;
    line-height: 1.4;
    color: #002d5b;
}

/* Pastille de date */
.page-juridique .pj-date {
    display: inline-block;
    padding: 3px 12px;
    font-size: 14px;
    color: #002d5b;
    background: #eef3f9;
    border-radius: 14px;
}

/* Une seule carte (Cour pénale internationale) : pleine largeur */
.page-juridique .pj-faits-seul {
    grid-template-columns: 1fr;
}

.page-juridique .pj-faits-seul li {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

/* Citation de la Constitution */
.page-juridique .pj-citation {
    margin: 0 0 18px;
    padding: 18px 22px;
    font-size: 16px;
    line-height: 1.75;
    text-align: left;
    color: #2b2b2b;
    background: #fff;
    border-left: 5px solid #FFC107;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.page-juridique .pj-citation-label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #002d5b;
}

/* Note finale : bandeau bleu */
.page-juridique .pj-note {
    margin: 24px 0 0;
    padding: 18px 22px;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
    color: #fff;
    background: #002d5b;
    border-bottom: 4px solid #FFC107;
    border-radius: 14px;
}

/* Mobile */
@media screen and (max-width: 767px) {
    .page-juridique .pj-titre { font-size: 20px; }
    .page-juridique .pj-texte,
    .page-juridique .pj-citation,
    .page-juridique .pj-note { font-size: 15px; }
    .page-juridique .pj-citation,
    .page-juridique .pj-note { padding: 14px 16px; }
    .page-juridique .pj-faits li:hover { transform: none; }
}

/* ==========================================
   PAGE DROIT NATIONAL : compléments
========================================== */

/* Défilement doux vers les sections */
html {
    scroll-behavior: smooth;
}

/* Sommaire : boutons en pastille */
.page-juridique .pj-sommaire {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.page-juridique .pj-sommaire a {
    display: inline-block;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #002d5b;
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.page-juridique .pj-sommaire a:hover,
.page-juridique .pj-sommaire a:focus {
    color: #fff;
    background: #002d5b;
    border-color: #FFC107;
    outline: none;
}

/* Le premier titre suit directement le sommaire */
.page-juridique .pj-sommaire + .pj-titre {
    margin-top: 0;
}

/* Valeur d'une carte "libellé : valeur" */
.page-juridique .pj-valeur {
    font-size: 15.5px;
    line-height: 1.65;
    text-align: left;
    color: #2b2b2b;
}

/* Cartes pleine largeur, une par ligne, pour les textes longs */
.page-juridique .pj-faits-liste {
    grid-template-columns: 1fr;
}

/* Paragraphes d'explication des juridictions : cartes blanches */
.page-juridique .pj-carte-texte {
    margin: 0 0 12px;
    padding: 16px 20px;
    font-size: 15.5px;
    line-height: 1.7;
    text-align: left;
    color: #2b2b2b;
    background: #fff;
    border: 1px solid #e3e8ee;
    border-left: 4px solid #002d5b;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
}

/* Mobile */
@media screen and (max-width: 767px) {
    .page-juridique .pj-sommaire a {
        padding: 6px 12px;
        font-size: 13px;
    }

    .page-juridique .pj-carte-texte,
    .page-juridique .pj-valeur {
        font-size: 15px;
    }

    .page-juridique .pj-carte-texte {
        padding: 14px 16px;
    }
}

/* ==========================================
   PAGE LOIS ET REGLEMENTS
========================================== */

/* Paragraphe juridique : encadré à barre bleue */
.page-juridique .pj-intro {
    margin: 0 0 18px;
    padding: 18px 22px;
    font-size: 16px;
    line-height: 1.75;
    text-align: left;
    color: #2b2b2b;
    background: #fff;
    border-left: 5px solid #002d5b;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

/* Lien vers l'extrait : carte cliquable */
.page-juridique .pj-lien {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 22px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.page-juridique .pj-lien:hover,
.page-juridique .pj-lien:focus {
    transform: translateY(-3px);
    border-color: #FFC107;
    box-shadow: 0 8px 20px rgba(0, 45, 91, .15);
    outline: none;
}

.page-juridique .pj-lien-icone {
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #FFC107;
    background: #002d5b;
    border-radius: 50%;
}

.page-juridique .pj-lien-icone svg {
    width: 22px;
    height: 22px;
}

.page-juridique .pj-lien-texte {
    flex: 1 1 auto;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #002d5b;
}

.page-juridique .pj-lien-fleche {
    flex: 0 0 auto;
    font-size: 30px;
    line-height: 1;
    color: #b0bac5;
    transition: transform .2s ease, color .2s ease;
}

.page-juridique .pj-lien:hover .pj-lien-fleche {
    color: #FFC107;
    transform: translateX(4px);
}

/* ------------------------------------------
   Fenêtre "Ordonnance (extrait)"
------------------------------------------ */
#confirm-view-extrait .modal-content {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
    overflow: hidden;
}

#confirm-view-extrait .modal-header {
    padding: 20px 24px 16px;
    background: #002d5b;
    border-bottom: 4px solid #FFC107;
}

#confirm-view-extrait .modal-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .5px;
    color: #fff;
}

#confirm-view-extrait .modal-body {
    max-height: calc(100vh - 260px);
    padding: 22px 28px;
    overflow-y: auto;
}

#confirm-view-extrait .body-modal p {
    margin: 0 0 14px;
    font-size: 15.5px;
    line-height: 1.7;
    text-align: left;
    color: #2b2b2b;
}

/* "Article 2" : en gras bleu au lieu d'être souligné */
#confirm-view-extrait .body-modal u {
    font-weight: 700;
    color: #002d5b;
    text-decoration: none;
}

#confirm-view-extrait .modal-footer {
    padding: 14px 24px;
    background: #f4f6f9;
    border-top: 1px solid #e3e8ee;
}

/* Bouton Fermer : pilule, couleur rouge conservée */
#confirm-view-extrait #btnfermer_view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 22px;
    border-radius: 22px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .18);
}

/* Mobile */
@media screen and (max-width: 767px) {
    .page-juridique .pj-intro { padding: 14px 16px; font-size: 15px; }
    .page-juridique .pj-lien { padding: 14px; gap: 12px; }
    .page-juridique .pj-lien-icone { flex-basis: 40px; width: 40px; height: 40px; }
    .page-juridique .pj-lien-texte { font-size: 15px; }
    .page-juridique .pj-lien:hover { transform: none; }

    #confirm-view-extrait .modal-body { padding: 16px 18px; }
    #confirm-view-extrait .body-modal p { font-size: 15px; }
}

/* ==========================================
   PAGE JURISPRUDENCE : accordéon + cartes
========================================== */

/* ------------------------------------------
   Base de la page
------------------------------------------ */
.page-juridique {
    max-width: 960px;
    margin: 0 auto;
    padding-bottom: 30px;
}

/* Titres principaux (I., II.) avec trait jaune */
.page-juridique .pj-titre {
    position: relative;
    margin: 34px 0 18px;
    padding-bottom: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #002d5b;
}

.page-juridique .pj-titre:first-of-type {
    margin-top: 0;
}

.page-juridique .pj-titre::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 4px;
    background: #FFC107;
    border-radius: 2px;
}

/* Note finale : bandeau bleu */
.page-juridique .pj-note {
    margin: 24px 0 0;
    padding: 18px 22px;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
    color: #fff;
    background: #002d5b;
    border-bottom: 4px solid #FFC107;
    border-radius: 14px;
}

/* ------------------------------------------
   Texte collé depuis l'éditeur : styles inline neutralisés
------------------------------------------ */
.page-jurisprudence .jp-contenu p {
    margin: 0 0 14px !important;
    text-align: left !important;
    line-height: 1.75;
}

.page-jurisprudence .jp-contenu p,
.page-jurisprudence .jp-contenu span {
    font-family: inherit !important;
    font-size: 16px !important;
    color: #2b2b2b;
}

.page-jurisprudence .jp-contenu strong {
    color: #002d5b;
}

.page-jurisprudence .jp-contenu p:last-child {
    margin-bottom: 0 !important;
}

.page-jurisprudence .jp-intro {
    margin-bottom: 18px;
}

/* ------------------------------------------
   Boutons Tout ouvrir / Tout fermer
------------------------------------------ */
.page-jurisprudence .jp-outils {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 20px;
}

.page-jurisprudence .jp-outils button {
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #002d5b;
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.page-jurisprudence .jp-outils button:hover,
.page-jurisprudence .jp-outils button:focus {
    color: #fff;
    background: #002d5b;
    outline: none;
}

/* ------------------------------------------
   Accordéon
------------------------------------------ */
.page-jurisprudence .jp-item {
    margin: 0 0 10px;
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.page-jurisprudence .jp-item[open] {
    border-color: #FFC107;
    box-shadow: 0 6px 16px rgba(0, 45, 91, .12);
}

.page-jurisprudence .jp-resume {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background-color .2s ease;
}

.page-jurisprudence .jp-resume::-webkit-details-marker {
    display: none;
}

.page-jurisprudence .jp-resume:hover,
.page-jurisprudence .jp-resume:focus {
    background: #f7f9fc;
    outline: none;
}

.page-jurisprudence .jp-lettre {
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-size: 15px;
    font-weight: 700;
    color: #FFC107;
    background: #002d5b;
    border-radius: 50%;
}

.page-jurisprudence .jp-nom {
    flex: 1 1 auto;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #002d5b;
}

.page-jurisprudence .jp-chevron {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    margin-right: 4px;
    border-right: 2px solid #8a96a3;
    border-bottom: 2px solid #8a96a3;
    transform: rotate(45deg);
    transition: transform .25s ease, border-color .25s ease;
}

.page-jurisprudence .jp-item[open] .jp-chevron {
    border-color: #FFC107;
    transform: rotate(-135deg);
}

.page-jurisprudence .jp-panel {
    padding: 16px 22px 20px 66px;
    border-top: 1px solid #eef1f5;
}

.page-jurisprudence .jp-item[open] .jp-panel {
    animation: jpOuverture .25s ease;
}

@keyframes jpOuverture {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------
   Cartes des juridictions
------------------------------------------ */
.page-jurisprudence .jp-cours {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 28px;
}

.page-jurisprudence .jp-cour {
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    overflow: hidden;
}

/* Image responsive : entière, jamais déformée ni coupée */
.page-jurisprudence .jp-cour img {
    display: block;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    padding: 12px;
    object-fit: contain;
    background: #ffffff;
}

.page-jurisprudence .jp-cour-corps {
    padding: 18px 22px 22px;
}

.page-jurisprudence .jp-cour-corps h3 {
    position: relative;
    margin: 0 0 14px;
    padding-bottom: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #002d5b;
}

.page-jurisprudence .jp-cour-corps h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #FFC107;
    border-radius: 2px;
}

.page-jurisprudence .jp-cour-corps p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
    color: #2b2b2b;
}

/* ------------------------------------------
   Tablette
------------------------------------------ */
@media screen and (max-width: 991px) {
    .page-jurisprudence .jp-cours {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------
   Mobile
------------------------------------------ */
@media screen and (max-width: 767px) {

    .page-juridique .pj-titre {
        font-size: 20px;
    }

    .page-juridique .pj-note {
        padding: 14px 16px;
        font-size: 15px;
    }

    .page-jurisprudence .jp-outils {
        justify-content: center;
    }

    .page-jurisprudence .jp-resume {
        gap: 10px;
        padding: 12px 14px;
    }

    .page-jurisprudence .jp-lettre {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .page-jurisprudence .jp-nom {
        font-size: 15px;
    }

    .page-jurisprudence .jp-panel {
        padding: 14px 16px 18px;
    }

    .page-jurisprudence .jp-contenu p,
    .page-jurisprudence .jp-contenu span {
        font-size: 15px !important;
    }

    .page-jurisprudence .jp-cour img {
        aspect-ratio: 3 / 2;
        padding: 8px;
    }

    .page-jurisprudence .jp-cour-corps {
        padding: 16px;
    }
}


