/* ============================================================================
   PROJET RESSOURCES COMMUNAUTAIRES — VAUD
   style.css — Feuille de style commune

   Les règles historiques du site sont conservées ci-dessous.
   La section finale « PRC_repertoire.php » contient les styles déplacés
   depuis le fichier PHP : formulaires, tableau, statuts et responsive.
   Ordre important : les styles du répertoire sont placés à la fin afin
   de conserver leur priorité sur les règles globales existantes.
   ============================================================================ */

/* =========================================================

   PROJET RESSOURCES COMMUNAUTAIRES - VAUD

   Feuille de style principale

   ========================================================= */

/* =========================================================

   GENERAL

   ========================================================= */

html,

body {

    margin: 0;

    padding: 0;

    min-height: 100%;

}

* {

    box-sizing: border-box;

}

body {

    background-image: url("./PICTURES/PRC_fond.png");

    background-size: cover;

    background-position: center;

    background-attachment: fixed;

    background-repeat: no-repeat;

    font-family: Arial, sans-serif;

    color: white;

}

/* =========================================================

   BANDEAU ET NAVIGATION

   ========================================================= */

.bandeau {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 70px;

    background: rgba(0, 0, 0, 0.65);

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

    display: flex;

    align-items: center;

    z-index: 1000;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);

}

.menu-container {

    width: 94%;

    max-width: 1800px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

}

/* =========================================================

   LOGO

   ========================================================= */

.logo {

    color: white;

    text-decoration: none;

    font-size: 24px;

    font-weight: bold;

    letter-spacing: 1px;

    max-width: 70%;

    white-space: normal;

    line-height: 1.2;

    transition: color 0.3s ease, transform 0.2s ease;

}

.logo span {

    color: #8fd3ff;

}

.logo:hover {

    color: #8fd3ff;

}

/* =========================================================

   NAVIGATION DESKTOP

   ========================================================= */

.navigation {

    display: flex;

    align-items: center;

    gap: 25px;

}

.navigation > a {

    color: white;

    text-decoration: none;

    font-weight: bold;

    font-size: 16px;

    transition: color 0.2s ease;

}

.navigation > a:hover {

    color: #4da3ff;

}

.dropdown {

    position: relative;

}

.menu-bouton {

    color: white;

    font-family: Arial, sans-serif;

    font-size: 16px;

    font-weight: bold;

    background: transparent;

    border: none;

    padding: 8px 0;

    cursor: pointer;

}

.menu-bouton:hover {

    color: #8fd3ff;

}

/* Sous-menu Plus / compte */

.dropdown-content {

    display: none;

    position: absolute;

    top: 100%;

    right: 0;

    min-width: 200px;

    padding: 10px 0;

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

    border-radius: 8px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);

    z-index: 1003;

}

.dropdown-content a {

    display: block;

    padding: 10px 15px;

    color: white;

    text-decoration: none;

    white-space: nowrap;

}

.dropdown-content a:hover {

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

}

/* Ouverture par survol sur ordinateur et par clic via .active */

@media (hover: hover) and (min-width: 801px) {

    .dropdown:hover > .dropdown-content {

        display: block;

    }

}

.dropdown.active > .dropdown-content {

    display: block;

}

/* =========================================================

   BOUTON HAMBURGER

   ========================================================= */

.menu-mobile {

    display: none;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 5px;

    width: 44px;

    height: 44px;

    padding: 8px;

    flex-shrink: 0;

    color: white;

    background: transparent;

    border: none;

    border-radius: 6px;

    cursor: pointer;

    z-index: 1002;

}

.menu-mobile span {

    display: block;

    width: 27px;

    height: 3px;

    background-color: white;

    border-radius: 3px;

    transition: transform 0.2s ease, opacity 0.2s ease;

}

/* Transformation facultative du hamburger en croix */

.menu-mobile.active span:first-child {

    transform: translateY(8px) rotate(45deg);

}

.menu-mobile.active span:nth-child(2) {

    opacity: 0;

}

.menu-mobile.active span:last-child {

    transform: translateY(-8px) rotate(-45deg);

}

.retour-accueil {

    color: white;

    text-decoration: none;

    font-weight: bold;

}

.retour-accueil:hover {

    color: #4da3ff;

}

/* =========================================================

   CONTENU GENERAL

   ========================================================= */

.contenu {

    width: 94%;

    max-width: 1800px;

    margin: 0 auto;

    padding-top: 130px;

    min-height: 200vh;

}

.contenu h1 {

    margin: 0 0 20px;

    color: white;

    font-size: 48px;

    line-height: 1.15;

    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.55);

}

.contenu > p {

    color: white;

    font-size: 20px;

    line-height: 1.5;

    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);

}

/* =========================================================

   PAGE CATEGORIE

   ========================================================= */

body.bodyDE {

    color: white;

}

main.containerDE {

    width: 94%;

    max-width: 1800px;

    margin: 0 auto;

    padding-top: 130px;

}

.containerDE h1 {

    color: white;

    font-size: 42px;

    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);

}

.containerDE h2 {

    color: white;

    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);

}

.containerDE p {

    color: white;

}


.message-succes {

    padding: 12px 15px;

    margin-bottom: 20px;

    background: rgba(0, 120, 0, 0.70);

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 8px;

    color: white;

    font-weight: bold;

}

.message-erreur {

    padding: 12px 15px;

    margin-bottom: 20px;

    background: rgba(160, 0, 0, 0.75);

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 8px;

    color: white;

    font-weight: bold;

}

/* =========================================================

   AJOUT CATEGORIE

   ========================================================= */

.form-ajout-categorie {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 25px;

}

.form-ajout-categorie input {

    min-width: 250px;

    padding: 10px 12px;

    border: none;

    border-radius: 7px;

    font-size: 16px;

}

.form-ajout-categorie button {

    padding: 10px 18px;

    border: none;

    border-radius: 7px;

    background: #1976b9;

    color: white;

    font-weight: bold;

    cursor: pointer;

}

.form-ajout-categorie button:hover {

    background: #125d91;

}

/* =========================================================

   RECHERCHE CATEGORIE

   ========================================================= */

.recherche-categories {

    margin-bottom: 20px;

}

#recherche-categorie {

    width: 100%;

    max-width: 500px;

    box-sizing: border-box;

    padding: 11px 13px;

    border: none;

    border-radius: 7px;

    font-size: 16px;

}

/* =========================================================

   FORMULAIRE DE RECHERCHE

   ========================================================= */

.form-recherche {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 20px;

}

.form-recherche input[type="text"] {

    flex: 1;

    min-width: 0;

    padding: 12px 14px;

    border: 1px solid rgba(255, 255, 255, 0.35);

    border-radius: 8px;

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

    color: #000;

    font-size: 16px;

    box-sizing: border-box;

}

.form-recherche input[type="text"]:focus {

    outline: none;

    border-color: #4da3ff;

    box-shadow: 0 0 0 2px rgba(77, 163, 255, 0.25);

}

.form-recherche button {

    padding: 12px 20px;

    border: none;

    border-radius: 8px;

    background: #1976b9;

    color: white;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    transition: background 0.2s ease, transform 0.1s ease;

}

.form-recherche button:hover {

    background: #125d91;

}

.form-recherche button:active {

    transform: translateY(1px);

}

.form-recherche a {

    color: white;

    font-weight: bold;

    text-decoration: underline;

}

/* =========================================================

   TABLE RESPONSIVE

   ========================================================= */

.table-responsive {

    width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;

}

/* =========================================================

   TABLE CATEGORIES

   ========================================================= */

.table-categories {

    width: 100%;

    border-collapse: separate;

    border-spacing: 0;

    color: #000;

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

    border: 1px solid rgba(0, 0, 0, 0.25);

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);

}

.table-categories th {

    padding: 14px 12px;

    color: #000;

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

    border-bottom: 2px solid rgba(0, 0, 0, 0.40);

    text-align: left;

    font-size: 14px;

    font-weight: bold;

}

.table-categories td {

    padding: 12px;

    color: #000;

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

    border-bottom: 1px solid rgba(0, 0, 0, 0.30);

    vertical-align: top;

    line-height: 1.4;

    transition: background 0.2s ease;

}

.table-categories tbody tr:last-child td {

    border-bottom: none;

}

.table-categories tbody tr:hover td {

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

}

.table-categories a {

    color: #000;

    text-decoration: underline;

}

.table-categories a:hover {

    color: #1976b9;

}


.bouton-supprimer {

    padding: 8px 12px;

    border: none;

    border-radius: 6px;

    background: #a00000;

    color: white;

    font-weight: bold;

    cursor: pointer;

}

.bouton-supprimer:hover {

    background: #7d0000;

}

.aucun-resultat {

    padding: 20px;

    color: white;

    text-align: center;

    font-weight: bold;

    background: rgba(0, 0, 0, 0.40);

    border-radius: 10px;

}

/* =========================================================

   TABLE DES RESSOURCES - DESKTOP

   ========================================================= */

.table-ressources {

    width: 100%;

    margin-top: 10px;

    color: #000;

    border-collapse: separate;

    border-spacing: 0;

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

    border: 1px solid rgba(0, 0, 0, 0.25);

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);

}

.table-ressources th {

    padding: 14px 12px;

    color: #000;

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

    border-bottom: 2px solid rgba(0, 0, 0, 0.40);

    text-align: left;

    font-size: 14px;

    font-weight: bold;

}

.table-ressources td {

    padding: 12px;

    color: #000;

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

    border-bottom: 1px solid rgba(0, 0, 0, 0.30);

    vertical-align: top;

    line-height: 1.4;

    transition: background 0.2s ease;

}

.table-ressources tbody tr:last-child td {

    border-bottom: none;

}

.table-ressources tbody tr:hover td {

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

}

/* =========================================================

   LIENS DES RESSOURCES

   ========================================================= */

.table-ressources a,

.table-ressources a:visited {

    color: #000;

    text-decoration: underline;

}

.table-ressources a:hover {

    color: #1976b9;

}

/* =========================================================

   COLONNES DE SELECTION

   ========================================================= */

.table-ressources .colonne-selection {

    width: 45px;

    text-align: center;

    vertical-align: middle;

}

.table-ressources .colonne-selection-id {

    display: none;

}

.table-ressources .case-selection {

    width: 18px;

    height: 18px;

    margin: 0;

    cursor: pointer;

}

.table-ressources .libelle-id {

    color: #333;

}

/* =========================================================

   LIGNE SELECTIONNEE

   ========================================================= */

.table-ressources tbody tr.ligne-selectionnee td {

    background: rgba(77, 163, 255, 0.20);

}

.table-ressources tbody tr.ligne-selectionnee:hover td {

    background: rgba(77, 163, 255, 0.28);

}

/* =========================================================

   IMAGES DES RESSOURCES

   ========================================================= */

.table-ressources td img {

    display: block;

    max-width: 80px;

    max-height: 60px;

    object-fit: contain;

}

/* =========================================================

   ACTIONS D'IMPRESSION

   ========================================================= */

.actions-impression {

    display: flex;

    align-items: center;

    gap: 15px;

    margin: 20px 0;

}

.bouton-imprimer {

    padding: 11px 18px;

    border: none;

    border-radius: 8px;

    background: #1976b9;

    color: white;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;

    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);

    transition: background 0.2s ease, transform 0.1s ease;

}

.bouton-imprimer:hover {

    background: #125d91;

}

.bouton-imprimer:active {

    transform: translateY(1px);

}

.nombre-selection {

    color: white;

    font-size: 15px;

    font-weight: bold;

    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.70);

}

/* =========================================================

   TRI MOBILE

   ========================================================= */

.tri-mobile {

    display: none;

}

/* =========================================================

   LOGIN

   ========================================================= */

.containerDE {

    width: 94%;

    max-width: 500px;

    margin: 0 auto;

    padding-top: 130px;

    color: white;

}

.containerDE h1 {

    color: white;

    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.60);

}

.inputDE {

    width: 100%;

    box-sizing: border-box;

    padding: 12px 14px;

    margin-bottom: 15px;

    border: none;

    border-radius: 8px;

    font-size: 16px;

}

.buttonDE {

    padding: 12px 20px;

    border: none;

    border-radius: 8px;

    background: #1976b9;

    color: white;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

}

.buttonDE:hover {

    background: #125d91;

}

#error-message {

    margin-top: 15px;

    padding: 12px;

    border-radius: 8px;

    background: rgba(160, 0, 0, 0.75);

    color: white;

    font-weight: bold;

}

/* =========================================================

   MOBILE - 800px

   ========================================================= */

@media (max-width: 800px) {

    /* Bandeau */

    .bandeau {

        height: 60px;

    }

    .menu-container {

        width: 94%;

        gap: 10px;

    }

    .logo {

        height: auto;

        flex: 1;

        min-width: 0;

        max-width: calc(100% - 60px);

        font-size: 18px;

        line-height: 1.1;

    }

    /* Navigation fermée par défaut */

    .navigation {

        display: none;

        position: absolute;

        top: calc(100% + 10px);

        left: 0;

        right: 0;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        max-height: calc(100vh - 85px);

        overflow-y: auto;

        padding: 10px;

        background: rgba(0, 0, 0, 0.96);

        border: 1px solid rgba(255, 255, 255, 0.15);

        border-radius: 10px;

        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);

        z-index: 1001;

        box-sizing: border-box;

    }

    /* Cette classe correspond au script.js */

    .navigation.active {

        display: flex;

    }

    .navigation > a {

        display: block;

        padding: 13px 12px;

        font-size: 16px;

    }

    /* Bouton hamburger */

    .menu-mobile {

        display: flex;

    }

    /* Sous-menu Plus */

    .navigation .dropdown {

        position: relative;

        width: 100%;

    }

    .navigation .menu-bouton {

        display: block;

        width: 100%;

        padding: 13px 12px;

        color: white;

        text-align: left;

        background: transparent;

        border: none;

        font-size: 16px;

        font-weight: bold;

        cursor: pointer;

    }

    .navigation .dropdown-content {

        position: static;

        width: 100%;

        min-width: 0;

        margin-top: 4px;

        padding: 4px 0;

        box-sizing: border-box;

        box-shadow: none;

        border: 1px solid rgba(255, 255, 255, 0.12);

        background: rgba(0, 0, 0, 0.45);

    }

    .navigation .dropdown-content a {

        display: block;

        padding: 12px 16px;

        white-space: normal;

    }

    /* Contenu */

    .contenu {

        width: 92%;

        padding-top: 95px;

        min-height: 100vh;

    }

    .contenu h1 {

        font-size: 34px;

    }

    .contenu > p {

        font-size: 17px;

    }

    /* Recherche */

    .form-recherche {

        flex-direction: column;

        align-items: stretch;

        gap: 8px;

    }

    .form-recherche input[type="text"],

    .form-recherche button {

        width: 100%;

    }

    .form-recherche a {

        text-align: center;

    }

    /* Catégories en cartes */

    .table-categories {

        border: none;

        background: transparent;

        box-shadow: none;

        border-spacing: 0 15px;

    }

    .table-categories thead {

        display: none;

    }

    .table-categories tbody,

    .table-categories tr,

    .table-categories td {

        display: block;

        width: 100%;

        box-sizing: border-box;

    }

    .table-categories tr {

        margin-bottom: 15px;

        padding: 15px;

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

        border: 1px solid rgba(0, 0, 0, 0.25);

        border-radius: 10px;

        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.20);

    }

    .table-categories td {

        padding: 8px 0;

        color: #000;

        background: transparent;

        border: none;

        line-height: 1.5;

        word-break: break-word;

        overflow-wrap: anywhere;

    }

    .table-categories td + td {

        border-top: 1px solid rgba(0, 0, 0, 0.12);

    }

    /* Ressources en cartes */

    .table-ressources {

        width: 100%;

        border-collapse: separate;

        border-spacing: 0 15px;

        background: transparent;

        border: none;

        box-shadow: none;

        table-layout: auto;

    }

    .table-ressources thead {

        display: none;

    }

    .table-ressources tbody,

    .table-ressources tr,

    .table-ressources td {

        display: block;

        width: 100%;

        box-sizing: border-box;

    }

    .table-ressources tr {

        margin-bottom: 15px;

        padding: 15px;

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

        border: 1px solid rgba(0, 0, 0, 0.25);

        border-radius: 10px;

        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.20);

    }

    .table-ressources td {

        width: 100%;

        padding: 8px 0;

        color: #000;

        background: transparent;

        border: none;

        line-height: 1.5;

        word-break: break-word;

        overflow-wrap: anywhere;

    }

    .table-ressources td + td {

        border-top: 1px solid rgba(0, 0, 0, 0.12);

    }

    /* Sélection mobile */

    .table-ressources td.colonne-selection {

        display: none;

    }

    .table-ressources td.colonne-selection-id {

        display: flex !important;

        align-items: center;

        gap: 10px;

        width: 100%;

        padding: 8px 0 12px;

        border-top: none;

        color: #333;

        font-size: 14px;

        font-weight: bold;

    }

    .table-ressources td.colonne-selection-id .case-selection {

        display: block !important;

        width: 20px;

        height: 20px;

        margin: 0;

        padding: 0;

        flex-shrink: 0;

        cursor: pointer;

        opacity: 1;

        visibility: visible;

        appearance: auto;

        -webkit-appearance: checkbox;

    }

    .table-ressources td.colonne-selection-id .libelle-id {

        font-size: 14px;

        font-weight: bold;

        color: #333;

        white-space: nowrap;

    }

    .table-ressources td.colonne-id-pc {

        display: none;

    }

    /* Contenu des cartes */

    .table-ressources td img {

        display: block;

        max-width: 120px;

        max-height: 80px;

        margin: 0 auto 10px;

        object-fit: contain;

    }

    .table-ressources td:nth-child(5) {

        padding-top: 12px;

        font-size: 19px;

        font-weight: bold;

        line-height: 1.3;

    }

    .table-ressources td:nth-child(6),

    .table-ressources td:nth-child(7),

    .table-ressources td:nth-child(8) {

        font-size: 16px;

    }

    .table-ressources td a {

        word-break: break-all;

        overflow-wrap: anywhere;

    }

    .table-ressources tbody tr:hover td {

        background: transparent;

    }

    /* Tri mobile */

    .tri-mobile {

        display: flex;

        align-items: center;

        justify-content: flex-start;

        gap: 12px;

        flex-wrap: nowrap;

        width: 100%;

        box-sizing: border-box;

        margin: 0 0 15px;

        padding: 10px 12px;

        background: rgba(0, 0, 0, 0.65);

        border: 1px solid rgba(255, 255, 255, 0.35);

        border-radius: 10px;

        color: #fff;

        font-family: Arial, sans-serif;

        font-size: 15px;

        font-weight: bold;

        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);

    }

    .tri-mobile-label {

        flex: 0 0 auto;

        color: #fff;

        font-size: 15px;

        font-weight: bold;

        white-space: nowrap;

        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);

    }

    .tri-mobile-liens {

        display: flex;

        align-items: center;

        gap: 12px;

        flex-wrap: nowrap;

        white-space: nowrap;

        color: #fff;

        font-weight: bold;

        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);

    }

    .tri-mobile a {

        display: inline-block;

        color: #fff;

        background: transparent;

        padding: 0;

        border: none;

        font-size: 15px;

        font-weight: bold;

        text-decoration: underline;

        text-decoration-thickness: 1px;

        text-underline-offset: 3px;

        white-space: nowrap;

        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);

    }

    .tri-mobile a:hover,

    .tri-mobile a:focus {

        color: #fff;

        text-decoration-thickness: 2px;

    }

    .tri-mobile .tri-actif {

        color: #fff;

        font-weight: 800;

    }

    /* Impression mobile */

    .actions-impression {

        flex-direction: column;

        align-items: stretch;

        gap: 8px;

    }

    .bouton-imprimer {

        width: 100%;

    }

    .nombre-selection {

        text-align: center;

    }

    /* Login */

    .containerDE {

        width: 92%;

        padding-top: 95px;

    }

}

/* =========================================================

   MOBILE - 500px

   ========================================================= */

@media (max-width: 500px) {

    .bandeau {

        height: 55px;

    }

    .logo {

        height: auto;

        font-size: 16px;

        letter-spacing: 0.3px;

    }

    .menu-mobile {

        width: 42px;

        height: 42px;

    }

    .contenu {

        width: 92%;

        padding-top: 85px;

    }

    .contenu h1 {

        font-size: 29px;

    }

    .contenu > p {

        font-size: 16px;

    }

    /* Recherche */

    .form-recherche input[type="text"],

    .form-recherche button {

        font-size: 15px;

    }

    /* Catégories */

    .table-categories tr {

        padding: 12px;

    }

    .table-categories td {

        padding: 7px 0;

        font-size: 15px;

    }

    /* Ressources */

    .table-ressources {

        border-spacing: 0 12px;

    }

    .table-ressources tr {

        padding: 12px;

    }

    .table-ressources td {

        padding: 7px 0;

        font-size: 15px;

    }

    .table-ressources td.colonne-selection-id {

        padding: 7px 0 10px;

        gap: 10px;

    }

    .table-ressources td.colonne-selection-id .case-selection {

        width: 20px;

        height: 20px;

    }

    .table-ressources td.colonne-selection-id .libelle-id {

        font-size: 14px;

    }

    .table-ressources td:nth-child(5) {

        font-size: 18px;

    }

    .table-ressources td:nth-child(6),

    .table-ressources td:nth-child(7),

    .table-ressources td:nth-child(8) {

        font-size: 15px;

    }

    .table-ressources td img {

        max-width: 100px;

        max-height: 70px;

    }

    /* Tri mobile */

    .tri-mobile {

        gap: 9px;

        padding: 9px 10px;

        font-size: 14px;

        overflow-x: auto;

    }

    .tri-mobile-label,

    .tri-mobile a {

        font-size: 14px;

    }

    .tri-mobile-liens {

        gap: 9px;

    }

    /* Login */

    .containerDE {

        width: 92%;

        padding-top: 85px;

    }

}

/* =========================================================

   IMPRESSION

   ========================================================= */

@media print {

    body {

        background: white !important;

        color: black !important;

    }

    .bandeau,

    .form-recherche,

    .resultats-recherche,

    .actions-impression,

    .menu-mobile,

    .tri-mobile {

        display: none !important;

    }

    .container {

        display: none !important;

    }

    .contenu {

        width: 100% !important;

        max-width: none !important;

        margin: 0 !important;

        padding: 0 !important;

    }

    .contenu h1 {

        color: black !important;

        margin-top: 0 !important;

    }

    .contenu > p {

        color: black !important;

    }

    .colonne-selection,

    .colonne-selection-id {

        display: none !important;

    }

    .ligne-non-selectionnee {

        display: none !important;

    }

    .table-responsive {

        width: 100% !important;

        overflow: visible !important;

    }

    .table-ressources {

        width: 100% !important;

        color: black !important;

        background: white !important;

        border: 1px solid black !important;

        box-shadow: none !important;

    }

    .table-ressources th,

    .table-ressources td {

        color: black !important;

        background: white !important;

        border-color: black !important;

    }

    .table-ressources th a {

        color: black !important;

        text-decoration: none !important;

    }

    .table-ressources img {

        max-width: 100px !important;

        max-height: 70px !important;

    }

}

/* =========================================================

   FILTER PAR CATEGORIE

   ========================================================= */

.filtre-categorie {

    display: flex;

    align-items: center;

    gap: 10px;

    margin: 0;

}

.filtre-categorie label {

    margin: 0;

    white-space: nowrap;

}

.form-recherche input[type="text"],

.filtre-categorie select,

.form-recherche button[type="submit"] {

    height: 44px;

    box-sizing: border-box;

    margin: 0;

}

.filtre-categorie select {

    padding: 0 12px;

    font-size: 16px;

    border: 1px solid rgba(255, 255, 255, 0.35);

    border-radius: 8px;

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

    color: #000;

}

@media (max-width: 800px) {

    .filtre-categorie {

        width: 100%;

    }

    .filtre-categorie select {

        flex: 1;

        min-width: 0;

    }

}

/* =========================================

   FORMULAIRE MODIFICATION DE LA CATEGORIE

========================================= */

/* Message lorsqu'aucune catégorie n'est trouvée */

#aucun-resultat {

    display: none;

}

.form-actions-categorie {

    width: 100%;

    display: grid;

    grid-template-columns:

        minmax(350px, 1fr)

        auto;

    align-items: center;

    gap: 12px;

}

.form-actions-categorie input[type="text"] {

    width: 100%;

    min-width: 0;

    box-sizing: border-box;

    padding: 10px 12px;

    color: white;

    background: rgba(0, 0, 0, 0.45);

    border:

        1px solid rgba(255, 255, 255, 0.20);

    border-radius: 7px;

    font-family: Arial, sans-serif;

    font-size: 14px;

    outline: none;

    transition:

background 0.2s ease,

        border-color 0.2s ease,

        box-shadow 0.2s ease;

}

/* =========================================

   BOUTONS ACTIONS

========================================= */

.actions-boutons {

    display: flex;

    align-items: center;

    gap: 8px;

    white-space: nowrap;

}

.form-actions-categorie button {

    min-width: 90px;

    padding: 10px 13px;

    color: white;

    border: none;

    border-radius: 7px;

    font-family: Arial, sans-serif;

    font-size: 13px;

    font-weight: bold;

    cursor: pointer;

    white-space: nowrap;

    transition:

background 0.2s ease,

        transform 0.15s ease,

        box-shadow 0.2s ease;

}

.form-actions-categorie .bouton-modifier {

    background: #1976b9;

}

.form-actions-categorie .bouton-modifier:hover {

    background: #238bd0;

    transform: translateY(-1px);

    box-shadow:

        0 4px 10px rgba(0, 0, 0, 0.25);

}

.form-actions-categorie .bouton-supprimer {

    background: #9e2a2a;

}

.form-actions-categorie .bouton-supprimer:hover {

    background: #c03939;

    transform: translateY(-1px);

    box-shadow:

        0 4px 10px rgba(0, 0, 0, 0.25);

}

@media screen and (max-width: 800px) {

    /* Champ de modification puis boutons en dessous */

    .form-actions-categorie {

        grid-template-columns: minmax(0, 1fr);

        width: 100%;

        min-width: 0;

    }

    .form-actions-categorie input[type="text"] {

        width: 100%;

        min-width: 0;

        box-sizing: border-box;

    }

    .form-actions-categorie .actions-boutons {

        display: flex;

        flex-direction: column;

        align-items: stretch;

        width: 100%;

        gap: 8px;

    }

    .form-actions-categorie .actions-boutons button {

        width: 100%;

        min-width: 0;

        min-height: 44px;

        box-sizing: border-box;

    }

    /* Formulaire d’ajout */

    .form-ajout-categorie {

        flex-direction: column;

        align-items: stretch;

    }

    .form-ajout-categorie input[type="text"],

    .form-ajout-categorie button {

        width: 100%;

        min-width: 0;

        min-height: 44px;

        box-sizing: border-box;

    }

}

/* =========================================================

   EN COURS DE TEST

   ========================================================= */


/* ============================================================================
   PAGE PRC_repertoire.php — Styles transférés du fichier PHP

   - Formulaire : création / modification d'une ressource.
   - Champs readonly : jaune clair (Contact et historique d'audit).
   - Lignes en validation : violet (validation = 1 et deleted = 1).
   - Lignes supprimées : rouge (deleted = 1 hors validation).
   - Responsive : présentation en fiches sur petits écrans.
   Ces styles restent volontairement à la fin de la feuille commune.
   ============================================================================ */

:root { --prc-blue:#187dc1; --prc-red:#a5252a; }
        * { box-sizing:border-box; }
        html { min-height:100%; }
        /* Le fond montagne provient uniquement de la feuille CSS globale :
           body { background-image: url("./PICTURES/PRC_fond.png"); } */
        /* Le bandeau et sa navigation sont fournis par PRC_include_HTML_header.php. */
        main.containerDE { width:94%; max-width:1800px; margin:0 auto;
            padding:130px 0 70px; background:transparent; color:#fff; }
        .containerDE h1 { font-size:40px; margin:20px 0 25px; font-weight:700; color:#fff; }
        .containerDE h2 { font-size:25px; margin:25px 0 18px; font-weight:700; color:#fff; }
        .containerDE .texte-introduction { font-size:16px; margin:0 0 22px; color:#f4f7fb; }
        .containerDE label { color:#fff; font-weight:600; }
        .containerDE .retour-accueil { display:inline-block; margin:12px 0; color:#a9dcff; }
        .rep-form-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(235px,1fr)); gap:16px 20px; }
        .rep-champ { display:flex; flex-direction:column; gap:7px; min-width:0; }
        .rep-champ input,.rep-champ select,.rep-champ textarea,
        #recherche-repertoire { display:block; width:100%; min-height:41px; padding:10px 12px; border:1px solid #d4dce6; border-radius:6px; background:#fff; color:#222; font:15px Arial,Helvetica,sans-serif; outline-offset:2px; }
        .rep-champ textarea { min-height:92px; resize:vertical; }
        .rep-champ small { color:#ffe1a3; }
        .rep-champ .rep-supprimer-logo { display:flex; align-items:center; gap:8px; }
        .rep-champ .rep-supprimer-logo input { width:auto; min-height:0; }
        .rep-champ-logo > span { overflow-wrap:anywhere; font-size:13px; }
        .rep-ouvrir-url { align-self:flex-start; margin-top:3px; }
        .ajout-repertoire { margin:20px 0 28px; }
        .form-ajout-repertoire { padding:22px; background:rgba(4,18,35,.68); border:1px solid rgba(255,255,255,.22); border-radius:9px; }
        .rep-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0; }
        .form-ajout-repertoire > .rep-actions { margin-top:20px; }
        .rep-actions form { margin:0; }
        .rep-actions a:not(.bouton-modifier) { color:#fff; }
        .bouton-ajouter,.bouton-modifier,.bouton-supprimer { display:inline-block; border:0; border-radius:6px; padding:11px 16px; color:#fff!important; text-decoration:none; font-size:13px; font-weight:600; line-height:1.2; cursor:pointer; white-space:nowrap; }
        .bouton-ajouter,.bouton-modifier { background:var(--prc-blue); }
        .bouton-supprimer { background:var(--prc-red); }
        .bouton-ajouter:hover,.bouton-modifier:hover { background:#12639a; }
        .bouton-supprimer:hover { background:#821a20; }
        /* Même dimension pour Modifier et Supprimer dans le tableau. */
        .table-repertoires .rep-actions .bouton-modifier,
        .table-repertoires .rep-actions .bouton-supprimer {
            box-sizing: border-box;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 100px;
            min-height: 40px;
            padding: 10px 8px;
            font: 600 13px/1.2 Arial, Helvetica, sans-serif;
            text-align: center;
        }
        .liste-repertoires { margin-top:26px; }
        .liste-repertoires > label { display:block; margin-bottom:10px; }
        #recherche-repertoire { max-width:500px; margin:0; }
        /* Commandes de recherche : effacement explicite, sans stockage navigateur. */
        .outils-recherche-repertoire { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:0 0 20px; }
        #effacer-recherche-repertoire { cursor:pointer; padding:10px 14px; border-radius:6px; border:1px solid #12639a; background:var(--prc-blue); color:#fff; font:600 15px Arial,Helvetica,sans-serif; }
        #effacer-recherche-repertoire:hover, #effacer-recherche-repertoire:focus-visible { background:#12639a; }
        .table-responsive { overflow-x:auto; border-radius:9px; background:rgba(255,255,255,.77); }
        .table-repertoires { width:100%; border-collapse:collapse; color:#111; font-size:14px; }
        .table-repertoires th,.table-repertoires td { padding:13px 12px; border-bottom:1px solid rgba(65,65,65,.36); text-align:left; vertical-align:middle; }
        .table-repertoires th { background:rgba(255,255,255,.30); font-weight:700; }
        .table-repertoires tr:last-child td { border-bottom:0; }
        .table-repertoires tbody tr:hover { background:rgba(255,255,255,.18); }
        /* Code couleur des statuts : rouge = supprimée, violet = en validation.
           Les règles de survol conservent le statut visuellement identifiable. */
        /* Ressources supprimées : rouge même au survol. */
        .table-repertoires tbody tr.ligne-supprimee td { background:rgba(220,53,69,.48); color:#4b0b12; }
        .table-repertoires tbody tr.ligne-supprimee:hover td { background:rgba(220,53,69,.62); }
        /* En attente de validation : priorité sur la couleur supprimée. */
        .table-repertoires tbody tr.ligne-validation td { background:rgba(164,105,215,.50); color:#39134f; }
        .table-repertoires tbody tr.ligne-validation:hover td { background:rgba(164,105,215,.67); }
        .rep-statut-validation { display:inline-block; margin-left:9px; padding:3px 8px; border-radius:5px; background:#7433a1; color:#fff; font-size:12px; font-weight:bold; }
        .rep-champ input.rep-lecture-seule,
        /* Les champs readonly (audit et Contact calculé) sont jaunes.
           readonly interdit la saisie, mais laisse le texte sélectionnable. */
        .rep-champ input[readonly],
        .rep-champ textarea[readonly] { background:#fff2a8; color:#403600; border-color:#d4b94e; cursor:default; }
        .rep-statut-supprime { display:inline-block; margin-left:9px; padding:3px 8px; border-radius:5px; background:#a00000; color:#fff; font-size:12px; font-weight:bold; }
        .rep-cellule-logo { width:100px; text-align:center!important; }
        .rep-logo-miniature { display:block; max-width:90px; max-height:65px; width:auto; height:auto; object-fit:contain; margin:auto; }
        .rep-sans-logo { color:#555; }
        .table-repertoires td:nth-child(2) { min-width:230px; }
        .table-repertoires td:last-child { min-width:195px; }
        .rep-details { margin:9px 0 0; }
        .rep-details summary { color:#075f9c; cursor:pointer; font-weight:600; }
        .rep-details dl { display:grid; grid-template-columns:minmax(110px,1fr) 2fr; gap:8px 12px; margin:12px 0; }
        .rep-details dt { font-weight:700; }
        .rep-details dd { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
        .message-erreur,.message-succes { padding:13px 16px; margin:16px 0; border-radius:6px; }
        .message-erreur { background:#fff0f0; color:#8c1b1b; }
        .message-succes { background:#edf9ef; color:#185d27; }
        .ligne-repertoire[hidden],#aucun-resultat[hidden] { display:none!important; }
        /* Affichage tactile : la liste devient une série de fiches, sans défilement horizontal. */
        .rep-selecteur-logo { display:flex; align-items:center; flex-wrap:wrap; gap:10px; min-width:0; }
        .rep-bouton-parcourir { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 14px; background:#f0f2f5; color:#17212b!important; border:1px solid #9ca3af; border-radius:6px; cursor:pointer; }
        .rep-bouton-parcourir:hover { background:#e0e7ef; }
        .rep-fichier-masque { position:absolute!important; width:1px!important; height:1px!important; opacity:0; overflow:hidden; padding:0!important; min-height:0!important; }
        .rep-fichier-masque:focus-visible + span { outline:2px solid #fff; }
        #nom-fichier-logo { min-width:0; overflow-wrap:anywhere; }
        @media (max-width:900px) {
            main.containerDE { width:94%; padding-top:110px; }
            .containerDE h1 { font-size:clamp(26px,5vw,36px); }
            .form-ajout-repertoire { padding:16px; }
            .rep-form-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); }
        }
        @media (max-width:700px) {
            html, body { max-width:100%; }
            main.containerDE { width:calc(100% - 24px); max-width:100%; padding:95px 0 42px; overflow-wrap:anywhere; }
            .containerDE h1 { font-size:29px; }
            .containerDE h2 { font-size:22px; }
            .form-ajout-repertoire { padding:14px; }
            .rep-form-grid { grid-template-columns:minmax(0,1fr); }
            .rep-champ input,.rep-champ select,.rep-champ textarea,#recherche-repertoire { max-width:100%; font-size:16px; }
            .rep-actions { align-items:stretch; }
            .form-ajout-repertoire > .rep-actions > button { min-height:44px; }
            .outils-recherche-repertoire { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }
            #recherche-repertoire { max-width:none; }
            #effacer-recherche-repertoire { width:100%; min-height:44px; }
            .table-responsive { overflow:visible; background:transparent; border-radius:0; }
            .table-repertoires,.table-repertoires tbody,.table-repertoires tr,.table-repertoires td { display:block; width:100%; min-width:0!important; }
            .table-repertoires { border-collapse:separate; font-size:15px; }
            .table-repertoires thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
            .table-repertoires tbody tr { margin:0 0 16px; border-radius:9px; overflow:hidden; background:rgba(255,255,255,.92); box-shadow:0 2px 9px rgba(0,0,0,.16); }
            .table-repertoires tbody tr[hidden] { display:none!important; }
            .table-repertoires tbody tr.ligne-supprimee { background:rgba(255,194,199,.97); }
            .table-repertoires tbody tr.ligne-validation { background:rgba(215,183,240,.97); }
            .table-repertoires tbody tr td { padding:10px 14px; border-bottom:1px solid rgba(65,65,65,.18); text-align:left!important; overflow-wrap:anywhere; }
            .table-repertoires tbody tr td::before { content:attr(data-label); display:block; margin-bottom:5px; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.035em; color:#394657; }
            .table-repertoires tbody tr td:last-child { border-bottom:0; }
            .table-repertoires .rep-cellule-logo { width:100%; }
            .rep-logo-miniature { margin:0; max-width:110px; max-height:75px; }
            .table-repertoires .rep-actions { display:flex; gap:10px; flex-wrap:wrap; }
            .table-repertoires .rep-actions form { flex:1 1 120px; }
            .table-repertoires .rep-actions > a { flex:1 1 120px; }
            .table-repertoires .rep-actions .bouton-modifier,
            .table-repertoires .rep-actions .bouton-supprimer { width:100%; min-height:44px; }
            /* Les actions administrateur restent visibles dans chaque fiche mobile,
               même si le CSS global du site masque des colonnes de tableau. */
            .table-repertoires tbody tr td[data-label="Actions"] {
                display:block!important;
                visibility:visible!important;
                opacity:1!important;
                width:100%!important;
                height:auto!important;
                overflow:visible!important;
            }
            .table-repertoires tbody tr td[data-label="Actions"] .rep-actions,
            .table-repertoires tbody tr td[data-label="Actions"] .rep-actions form {
                display:flex!important;
                visibility:visible!important;
                opacity:1!important;
            }
            .table-repertoires tbody tr td[data-label="Actions"] .bouton-modifier,
            .table-repertoires tbody tr td[data-label="Actions"] .bouton-supprimer {
                display:inline-flex!important;
                visibility:visible!important;
                opacity:1!important;
                align-items:center;
                justify-content:center;
                min-height:44px;
                width:100%!important;
                color:#fff!important;
                position:static!important;
            }
            .table-repertoires tbody tr td[data-label="Actions"] .bouton-modifier { background:#1976ad!important; }
            .table-repertoires tbody tr td[data-label="Actions"] .bouton-supprimer { background:#a3262d!important; }
            .rep-statut-supprime,.rep-statut-validation { margin:6px 0 0; }
        }
        @media (max-width:360px) {
            main.containerDE { width:calc(100% - 16px); }
            .table-repertoires .rep-actions { flex-direction:column; }
            .table-repertoires .rep-actions form,.table-repertoires .rep-actions > a { flex:auto; width:100%; }
        }


/* =========================================================
   PAGE MON COMPTE (PRC_user.php) — MESSAGES
   =========================================================
   Ces classes remplacent les attributs style="color: ..."
   présents auparavant directement dans le code HTML.
   Elles permettent de centraliser l'apparence dans style.css.
   ========================================================= */

/* Confirme que le changement de mot de passe a réussi. */
.user-message-succes {
    color: #32cd32;
}

/* Signale une erreur de changement de mot de passe. */
.user-message-erreur {
    color: #ff5555;
}

/* =========================================================
   PRC_validation.php — Fenêtre de refus et remarque
   =========================================================
   Fenêtre affichée lors d'un clic sur « Refuser ».
   Elle reste au premier plan et permet de saisir le motif.
   Les couleurs des boutons de validation existants sont conservées.
   ========================================================= */
.dialog-refus {
    width: min(92vw, 520px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    border: 1px solid #bbb;
    border-radius: 12px;
    background: #fff;
    color: #222;
    box-shadow: 0 12px 35px rgba(0,0,0,.35);
}
/* Assombrir la page en arrière-plan pendant la saisie du refus. */
.dialog-refus::backdrop { background: rgba(0,0,0,.65); }
.dialog-refus h2 { margin-top: 0; color: #222; }
.dialog-refus label { display: block; margin: 12px 0 6px; font-weight: bold; }
/* Champ multiligne pour saisir ou modifier la remarque. */
.dialog-refus textarea {
    width: 100%; box-sizing: border-box; padding: 10px;
    border: 1px solid #888; border-radius: 6px;
    font: inherit; resize: vertical;
}
.dialog-refus .aide-refus { font-size: 13px; color: #555; }
/* Actions Annuler et Confirmer, alignées en bas de la fenêtre. */
.boutons-dialog-refus { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.boutons-dialog-refus button { padding: 9px 14px; border: 0; border-radius: 6px; cursor: pointer; font-weight: bold; }
.boutons-dialog-refus .validation-non { background: #a82e36; color: #fff; }
.boutons-dialog-refus .validation-non:hover { background: #87242b; }

/* =========================================================
   PRC_validation.php — Boutons Valider et Refuser
   Présentation harmonisée avec les autres boutons du PRC.
   ========================================================= */

/* Présentation commune aux deux boutons. */
.validation-actions button.validation-oui,
.validation-actions button.validation-non {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 10px 18px;

    border: none;
    border-radius: 8px;

    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;

    cursor: pointer;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease,
                box-shadow 0.2s ease,
                transform 0.2s ease;
}

/* VERT : valider la ressource. */
.validation-actions button.validation-oui {
    background-color: #167443;
}

/* ROUGE : refuser la ressource. */
.validation-actions button.validation-non {
    background-color: #a82e36;
}

/* Effets au survol. */
.validation-actions button.validation-oui:hover {
    background-color: #105a33;
}

.validation-actions button.validation-non:hover {
    background-color: #87242b;
}

.validation-actions button:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.20);
    transform: translateY(-1px);
}

/* Indication visuelle pour la navigation au clavier. */
.validation-actions button:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

/* Espacement entre les deux boutons. */
.validation-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* ==========================================================================
   PRC_categorie.php : CSS auparavant intégré dans la page.
   Sélecteurs limités à cette page pour éviter les régressions ailleurs.
   ========================================================================== */
/*
         * Catégories supprimées :
         * même présentation que le répertoire.
         */
body.prc-css-prc-categorie .table-categories tbody tr.ligne-supprimee td {
            background: rgba(220, 53, 69, .48);
            color: #4b0b12;
        }
body.prc-css-prc-categorie .table-categories tbody tr.ligne-supprimee:hover td {
            background: rgba(220, 53, 69, .62);
        }
body.prc-css-prc-categorie .cat-statut-supprime {
            display: inline-block;
            margin-left: 9px;
            padding: 3px 8px;
            border-radius: 5px;
            background: #a00000;
            color: #fff;
            font-size: 12px;
            font-weight: bold;
        }
@media  (max-width: 700px) {
body.prc-css-prc-categorie .table-categories tbody tr.ligne-supprimee {
                background: rgba(255, 194, 199, .97);
            }
}


/* ==========================================================================
   PRC_repertoire_creation.php : CSS auparavant intégré dans la page.
   Sélecteurs limités à cette page pour éviter les régressions ailleurs.
   ========================================================================== */
body.prc-css-prc-repertoire-creation { --prc-blue:#187dc1; --prc-red:#a5252a; }
body.prc-css-prc-repertoire-creation * { box-sizing:border-box; }
body.prc-css-prc-repertoire-creation { min-height:100%; }
/* Le fond montagne provient uniquement de la feuille CSS globale :

           body { background-image: url("./PICTURES/PRC_fond.png"); } */
/* Le bandeau et sa navigation sont fournis par PRC_include_HTML_header.php. */
body.prc-css-prc-repertoire-creation main.containerDE { width:94%; max-width:1800px; margin:0 auto;

            padding:130px 0 70px; background:transparent; color:#fff; }
body.prc-css-prc-repertoire-creation .containerDE h1 { font-size:40px; margin:20px 0 25px; font-weight:700; color:#fff; }
body.prc-css-prc-repertoire-creation .containerDE h2 { font-size:25px; margin:25px 0 18px; font-weight:700; color:#fff; }
body.prc-css-prc-repertoire-creation .containerDE .texte-introduction { font-size:16px; margin:0 0 22px; color:#f4f7fb; }
body.prc-css-prc-repertoire-creation .containerDE label { color:#fff; font-weight:600; }
body.prc-css-prc-repertoire-creation .containerDE .retour-accueil { display:inline-block; margin:12px 0; color:#a9dcff; }
body.prc-css-prc-repertoire-creation .rep-form-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(235px,1fr)); gap:16px 20px; }
body.prc-css-prc-repertoire-creation .rep-champ { display:flex; flex-direction:column; gap:7px; min-width:0; }
body.prc-css-prc-repertoire-creation .rep-champ input,
body.prc-css-prc-repertoire-creation .rep-champ select,
body.prc-css-prc-repertoire-creation .rep-champ textarea,
body.prc-css-prc-repertoire-creation #recherche-repertoire { display:block; width:100%; min-height:41px; padding:10px 12px; border:1px solid #d4dce6; border-radius:6px; background:#fff; color:#222; font:15px Arial,Helvetica,sans-serif; outline-offset:2px; }
body.prc-css-prc-repertoire-creation .rep-champ textarea { min-height:92px; resize:vertical; }
body.prc-css-prc-repertoire-creation .rep-champ small { color:#ffe1a3; }
body.prc-css-prc-repertoire-creation .rep-champ .rep-supprimer-logo { display:flex; align-items:center; gap:8px; }
body.prc-css-prc-repertoire-creation .rep-champ .rep-supprimer-logo input { width:auto; min-height:0; }
body.prc-css-prc-repertoire-creation .rep-champ-logo > span { overflow-wrap:anywhere; font-size:13px; }
body.prc-css-prc-repertoire-creation .rep-ouvrir-url { display:inline-block; align-self:flex-start; margin-top:3px; padding:11px 16px; border-radius:6px; background:var(--prc-blue); color:#fff!important; text-decoration:none; font-size:13px; font-weight:600; line-height:1.2; cursor:pointer; }
body.prc-css-prc-repertoire-creation .rep-ouvrir-url:hover { background:#12639a; }
body.prc-css-prc-repertoire-creation .rep-ouvrir-url:not([href]) { opacity:.55; cursor:not-allowed; }
body.prc-css-prc-repertoire-creation .ajout-repertoire { margin:20px 0 28px; }
body.prc-css-prc-repertoire-creation .form-ajout-repertoire { padding:22px; background:rgba(4,18,35,.68); border:1px solid rgba(255,255,255,.22); border-radius:9px; }
body.prc-css-prc-repertoire-creation .rep-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0; }
body.prc-css-prc-repertoire-creation .form-ajout-repertoire > .rep-actions { margin-top:20px; }
body.prc-css-prc-repertoire-creation .rep-actions form { margin:0; }
body.prc-css-prc-repertoire-creation .rep-actions a:not(.bouton-modifier) { color:#fff; }
body.prc-css-prc-repertoire-creation .bouton-ajouter,
body.prc-css-prc-repertoire-creation .bouton-modifier,
body.prc-css-prc-repertoire-creation .bouton-supprimer { display:inline-block; border:0; border-radius:6px; padding:11px 16px; color:#fff!important; text-decoration:none; font-size:13px; font-weight:600; line-height:1.2; cursor:pointer; white-space:nowrap; }
body.prc-css-prc-repertoire-creation .bouton-ajouter,
body.prc-css-prc-repertoire-creation .bouton-modifier { background:var(--prc-blue); }
body.prc-css-prc-repertoire-creation .bouton-supprimer { background:var(--prc-red); }
body.prc-css-prc-repertoire-creation .bouton-ajouter:hover,
body.prc-css-prc-repertoire-creation .bouton-modifier:hover { background:#12639a; }
body.prc-css-prc-repertoire-creation .bouton-supprimer:hover { background:#821a20; }
/* Même dimension pour Modifier et Supprimer dans le tableau. */
body.prc-css-prc-repertoire-creation .table-repertoires .rep-actions .bouton-modifier,
body.prc-css-prc-repertoire-creation .table-repertoires .rep-actions .bouton-supprimer {

            box-sizing: border-box;

            display: inline-flex;

            align-items: center;

            justify-content: center;

            width: 100px;

            min-height: 40px;

            padding: 10px 8px;

            font: 600 13px/1.2 Arial, Helvetica, sans-serif;

            text-align: center;

        }
body.prc-css-prc-repertoire-creation .liste-repertoires { margin-top:26px; }
body.prc-css-prc-repertoire-creation .liste-repertoires > label { display:block; margin-bottom:10px; }
body.prc-css-prc-repertoire-creation #recherche-repertoire { max-width:500px; margin:0; }
/* Commandes de recherche : effacement explicite, sans stockage navigateur. */
body.prc-css-prc-repertoire-creation .outils-recherche-repertoire { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:0 0 20px; }
body.prc-css-prc-repertoire-creation #effacer-recherche-repertoire { cursor:pointer; padding:10px 14px; border-radius:6px; border:1px solid #12639a; background:var(--prc-blue); color:#fff; font:600 15px Arial,Helvetica,sans-serif; }
body.prc-css-prc-repertoire-creation #effacer-recherche-repertoire:hover,
body.prc-css-prc-repertoire-creation #effacer-recherche-repertoire:focus-visible { background:#12639a; }
body.prc-css-prc-repertoire-creation .table-responsive { overflow-x:auto; border-radius:9px; background:rgba(255,255,255,.77); }
body.prc-css-prc-repertoire-creation .table-repertoires { width:100%; border-collapse:collapse; color:#111; font-size:14px; }
body.prc-css-prc-repertoire-creation .table-repertoires th,
body.prc-css-prc-repertoire-creation .table-repertoires td { padding:13px 12px; border-bottom:1px solid rgba(65,65,65,.36); text-align:left; vertical-align:middle; }
body.prc-css-prc-repertoire-creation .table-repertoires th { background:rgba(255,255,255,.30); font-weight:700; }
body.prc-css-prc-repertoire-creation .table-repertoires tr:last-child td { border-bottom:0; }
body.prc-css-prc-repertoire-creation .table-repertoires tbody tr:hover { background:rgba(255,255,255,.18); }
/* Ressources supprimées : rouge même au survol. */
body.prc-css-prc-repertoire-creation .table-repertoires tbody tr.ligne-en-attente td { background:rgba(255,240,185,.65); }
body.prc-css-prc-repertoire-creation .table-repertoires tbody tr.ligne-en-attente:hover td { background:rgba(255,233,150,.75); }
body.prc-css-prc-repertoire-creation .rep-statut-attente { display:inline-block; margin-left:9px; padding:3px 8px; border-radius:5px; background:#8b6200; color:#fff; font-size:12px; font-weight:bold; }
body.prc-css-prc-repertoire-creation .rep-cellule-logo { width:100px; text-align:center!important; }
body.prc-css-prc-repertoire-creation .rep-logo-miniature { display:block; max-width:90px; max-height:65px; width:auto; height:auto; object-fit:contain; margin:auto; }
body.prc-css-prc-repertoire-creation .rep-sans-logo { color:#555; }
body.prc-css-prc-repertoire-creation .table-repertoires td:nth-child(2) { min-width:230px; }
body.prc-css-prc-repertoire-creation .table-repertoires td:last-child { min-width:195px; }
body.prc-css-prc-repertoire-creation .rep-details { margin:9px 0 0; }
body.prc-css-prc-repertoire-creation .rep-details summary { color:#075f9c; cursor:pointer; font-weight:600; }
body.prc-css-prc-repertoire-creation .rep-details dl { display:grid; grid-template-columns:minmax(110px,1fr) 2fr; gap:8px 12px; margin:12px 0; }
body.prc-css-prc-repertoire-creation .rep-details dt { font-weight:700; }
body.prc-css-prc-repertoire-creation .rep-details dd { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
body.prc-css-prc-repertoire-creation .message-erreur,
body.prc-css-prc-repertoire-creation .message-succes { padding:13px 16px; margin:16px 0; border-radius:6px; }
body.prc-css-prc-repertoire-creation .message-erreur { background:#fff0f0; color:#8c1b1b; }
body.prc-css-prc-repertoire-creation .message-succes { background:#edf9ef; color:#185d27; }
body.prc-css-prc-repertoire-creation .ligne-repertoire[hidden],
body.prc-css-prc-repertoire-creation #aucun-resultat[hidden] { display:none!important; }
/* Affichage tactile : la liste devient une série de fiches, sans défilement horizontal. */
body.prc-css-prc-repertoire-creation .rep-selecteur-logo { display:flex; align-items:center; flex-wrap:wrap; gap:10px; min-width:0; }
body.prc-css-prc-repertoire-creation .rep-bouton-parcourir { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 14px; background:#f0f2f5; color:#17212b!important; border:1px solid #9ca3af; border-radius:6px; cursor:pointer; }
body.prc-css-prc-repertoire-creation .rep-bouton-parcourir:hover { background:#e0e7ef; }
body.prc-css-prc-repertoire-creation .rep-fichier-masque { position:absolute!important; width:1px!important; height:1px!important; opacity:0; overflow:hidden; padding:0!important; min-height:0!important; }
body.prc-css-prc-repertoire-creation .rep-fichier-masque:focus-visible + span { outline:2px solid #fff; }
body.prc-css-prc-repertoire-creation #nom-fichier-logo { min-width:0; overflow-wrap:anywhere; }
@media  (max-width:900px) {
body.prc-css-prc-repertoire-creation main.containerDE { width:94%; padding-top:110px; }
body.prc-css-prc-repertoire-creation .containerDE h1 { font-size:clamp(26px,5vw,36px); }
body.prc-css-prc-repertoire-creation .form-ajout-repertoire { padding:16px; }
body.prc-css-prc-repertoire-creation .rep-form-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); }
}
@media  (max-width:700px) {
body.prc-css-prc-repertoire-creation,
body.prc-css-prc-repertoire-creation { max-width:100%; }
body.prc-css-prc-repertoire-creation main.containerDE { width:calc(100% - 24px); max-width:100%; padding:95px 0 42px; overflow-wrap:anywhere; }
body.prc-css-prc-repertoire-creation .containerDE h1 { font-size:29px; }
body.prc-css-prc-repertoire-creation .containerDE h2 { font-size:22px; }
body.prc-css-prc-repertoire-creation .form-ajout-repertoire { padding:14px; }
body.prc-css-prc-repertoire-creation .rep-form-grid { grid-template-columns:minmax(0,1fr); }
body.prc-css-prc-repertoire-creation .rep-champ input,
body.prc-css-prc-repertoire-creation .rep-champ select,
body.prc-css-prc-repertoire-creation .rep-champ textarea,
body.prc-css-prc-repertoire-creation #recherche-repertoire { max-width:100%; font-size:16px; }
body.prc-css-prc-repertoire-creation .rep-actions { align-items:stretch; }
body.prc-css-prc-repertoire-creation .form-ajout-repertoire > .rep-actions > button { min-height:44px; }
body.prc-css-prc-repertoire-creation .outils-recherche-repertoire { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }
body.prc-css-prc-repertoire-creation #recherche-repertoire { max-width:none; }
body.prc-css-prc-repertoire-creation #effacer-recherche-repertoire { width:100%; min-height:44px; }
body.prc-css-prc-repertoire-creation .table-responsive { overflow:visible; background:transparent; border-radius:0; }
body.prc-css-prc-repertoire-creation .table-repertoires,
body.prc-css-prc-repertoire-creation .table-repertoires tbody,
body.prc-css-prc-repertoire-creation .table-repertoires tr,
body.prc-css-prc-repertoire-creation .table-repertoires td { display:block; width:100%; min-width:0!important; }
body.prc-css-prc-repertoire-creation .table-repertoires { border-collapse:separate; font-size:15px; }
body.prc-css-prc-repertoire-creation .table-repertoires thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
body.prc-css-prc-repertoire-creation .table-repertoires tbody tr { margin:0 0 16px; border-radius:9px; overflow:hidden; background:rgba(255,255,255,.92); box-shadow:0 2px 9px rgba(0,0,0,.16); }
body.prc-css-prc-repertoire-creation .table-repertoires tbody tr[hidden] { display:none!important; }
body.prc-css-prc-repertoire-creation .table-repertoires tbody tr.ligne-en-attente { background:rgba(255,243,203,.97); }
body.prc-css-prc-repertoire-creation .table-repertoires tbody tr td { padding:10px 14px; border-bottom:1px solid rgba(65,65,65,.18); text-align:left!important; overflow-wrap:anywhere; }
body.prc-css-prc-repertoire-creation .table-repertoires tbody tr td::before { content:attr(data-label); display:block; margin-bottom:5px; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.035em; color:#394657; }
body.prc-css-prc-repertoire-creation .table-repertoires tbody tr td:last-child { border-bottom:0; }
body.prc-css-prc-repertoire-creation .table-repertoires .rep-cellule-logo { width:100%; }
body.prc-css-prc-repertoire-creation .rep-logo-miniature { margin:0; max-width:110px; max-height:75px; }
body.prc-css-prc-repertoire-creation .table-repertoires .rep-actions { display:flex; gap:10px; flex-wrap:wrap; }
body.prc-css-prc-repertoire-creation .table-repertoires .rep-actions form { flex:1 1 120px; }
body.prc-css-prc-repertoire-creation .table-repertoires .rep-actions > a { flex:1 1 120px; }
body.prc-css-prc-repertoire-creation .table-repertoires .rep-actions .bouton-modifier,
body.prc-css-prc-repertoire-creation .table-repertoires .rep-actions .bouton-supprimer { width:100%; min-height:44px; }
/* Les actions administrateur restent visibles dans chaque fiche mobile,

               même si le CSS global du site masque des colonnes de tableau. */
body.prc-css-prc-repertoire-creation .table-repertoires tbody tr td[data-label="Actions"] {

                display:block!important;

                visibility:visible!important;

                opacity:1!important;

                width:100%!important;

                height:auto!important;

                overflow:visible!important;

            }
body.prc-css-prc-repertoire-creation .table-repertoires tbody tr td[data-label="Actions"] .rep-actions,
body.prc-css-prc-repertoire-creation .table-repertoires tbody tr td[data-label="Actions"] .rep-actions form {

                display:flex!important;

                visibility:visible!important;

                opacity:1!important;

            }
body.prc-css-prc-repertoire-creation .table-repertoires tbody tr td[data-label="Actions"] .bouton-modifier,
body.prc-css-prc-repertoire-creation .table-repertoires tbody tr td[data-label="Actions"] .bouton-supprimer {

                display:inline-flex!important;

                visibility:visible!important;

                opacity:1!important;

                align-items:center;

                justify-content:center;

                min-height:44px;

                width:100%!important;

                color:#fff!important;

                position:static!important;

            }
body.prc-css-prc-repertoire-creation .table-repertoires tbody tr td[data-label="Actions"] .bouton-modifier { background:#1976ad!important; }
body.prc-css-prc-repertoire-creation .table-repertoires tbody tr td[data-label="Actions"] .bouton-supprimer { background:#a3262d!important; }
body.prc-css-prc-repertoire-creation .rep-statut-attente { margin:6px 0 0; }
}
@media  (max-width:360px) {
body.prc-css-prc-repertoire-creation main.containerDE { width:calc(100% - 16px); }
body.prc-css-prc-repertoire-creation .table-repertoires .rep-actions { flex-direction:column; }
body.prc-css-prc-repertoire-creation .table-repertoires .rep-actions form,
body.prc-css-prc-repertoire-creation .table-repertoires .rep-actions > a { flex:auto; width:100%; }
}


/* ==========================================================================
   PRC_repertoire_maintenance.php : CSS auparavant intégré dans la page.
   Sélecteurs limités à cette page pour éviter les régressions ailleurs.
   ========================================================================== */
body.prc-css-prc-repertoire-maintenance .maintenance-barre-recherche {
            display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
            margin: 16px 0 10px;
        }
body.prc-css-prc-repertoire-maintenance .maintenance-barre-recherche input {
            flex: 1 1 350px; min-width: 180px;
        }
body.prc-css-prc-repertoire-maintenance .maintenance-barre-recherche select {
            flex: 1 1 250px; min-width: 180px;
        }
body.prc-css-prc-repertoire-maintenance .maintenance-barre-recherche input,
body.prc-css-prc-repertoire-maintenance .maintenance-barre-recherche select {
            box-sizing: border-box; padding: 11px 12px; border-radius: 5px;
            border: 1px solid #c6cbd0; font: inherit;
            background: rgba(255,255,255,.93); color: #222;
        }
body.prc-css-prc-repertoire-maintenance .maintenance-barre-recherche label { white-space: nowrap; }
body.prc-css-prc-repertoire-maintenance #bouton-rechercher-maintenance {
            padding: 11px 19px; border: 0; border-radius: 5px;
            background: #1675b9; color: white; font: inherit; font-weight: 600;
            cursor: pointer;
        }
body.prc-css-prc-repertoire-maintenance .maintenance-bouton-batch {
            display: inline-flex; align-items: center; justify-content: center;
            padding: 11px 19px; border-radius: 5px; text-decoration: none;
            font-weight: 600; box-sizing: border-box;
        }
body.prc-css-prc-repertoire-maintenance .maintenance-recherche-actions {
            display: flex; align-items: center; gap: 16px;
            flex-wrap: wrap; margin-bottom: 14px;
        }
@media  (max-width: 700px) {
body.prc-css-prc-repertoire-maintenance .maintenance-barre-recherche { align-items: stretch; }
body.prc-css-prc-repertoire-maintenance .maintenance-barre-recherche input,
body.prc-css-prc-repertoire-maintenance .maintenance-barre-recherche select { flex-basis: 100%; }
}


/* ==========================================================================
   PRC_traite_non.php : CSS auparavant intégré dans la page.
   Sélecteurs limités à cette page pour éviter les régressions ailleurs.
   ========================================================================== */
body.prc-css-prc-traite-non .traite-non-contenu { max-width: 760px; margin: 35px auto; padding: 0 20px 50px; }
body.prc-css-prc-traite-non .traite-non-avertissement { border-left: 4px solid #b66b00; padding: 12px 16px; background: #fff6e7; color: #4d3300; margin: 20px 0; }
body.prc-css-prc-traite-non .traite-non-erreur { color: #a00000; font-weight: bold; }
body.prc-css-prc-traite-non .traite-non-succes { color: #17652a; font-weight: bold; }
body.prc-css-prc-traite-non .traite-non-actions { margin-top: 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
body.prc-css-prc-traite-non .traite-non-bouton { background: #9e330d; color: #fff; padding: 10px 18px; border: 0; border-radius: 5px; cursor: pointer; font: inherit; }
body.prc-css-prc-traite-non .traite-non-bouton:hover { background: #762609; }

/* PRC_ressources : fond du tableau harmonisé avec la maintenance. */
@media screen {
  body.prc-css-prc-ressources .table-responsive {
    background: rgba(255, 255, 255, .77);
    border-radius: 9px;
  }
  body.prc-css-prc-ressources .table-ressources {
    background: transparent;
  }
  body.prc-css-prc-ressources .table-ressources th {
    background: rgba(255, 255, 255, .30);
  }
  body.prc-css-prc-ressources .table-ressources td {
    background: transparent;
  }
  body.prc-css-prc-ressources .table-ressources tbody tr:hover td {
    background: rgba(255, 255, 255, .18);
  }
}
@media screen and (max-width: 800px) {
  body.prc-css-prc-ressources .table-responsive {
    background: transparent;
    border-radius: 0;
  }
  body.prc-css-prc-ressources .table-ressources tbody tr {
    background: rgba(255, 255, 255, .92);
  }
  body.prc-css-prc-ressources .table-ressources tbody tr:hover td {
    background: transparent;
  }
}
/* ============================================
   PRC - Présentation du formulaire de contact
   ============================================ */

/* Zone de saisie du message */
#message {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 220px;
    padding: 12px;
    resize: vertical;
}

/* Formulaire plus large sur ordinateur */
@media (min-width: 900px) {
    .prc-contact-form {
        width: 100%;
        max-width: 900px;
    }
}

/* =========================================================
   PRC_contact.php
   Présentation du formulaire de contributions
   ========================================================= */

/* ============================================
   Largeur générale du formulaire
   ============================================ */

.prc-contact-form {
    width: 100%;
    max-width: 900px;
}

/* ============================================
   Zone de saisie du message
   ============================================ */

.prc-contact-form #message {
    display: block;
    width: 100%;
    min-height: 220px;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #d4dce6;
    border-radius: 6px;
    background: #ffffff;
    color: #222222;
    font: 16px Arial, sans-serif;
    resize: vertical;
}

/* ============================================
   Bouton d'envoi - Bleu PRC
   ============================================ */

.prc-contact-form button[type="submit"] {
    background: #1976b9;
    color: #ffffff;
    border: none;
    border-radius: 7px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

/* Survol */
.prc-contact-form button[type="submit"]:hover {
    background: #125d91;
}

/* Navigation au clavier */
.prc-contact-form button[type="submit"]:focus-visible {
    outline: 3px solid #8fd3ff;
    outline-offset: 3px;
}

/* ============================================
   Adaptation aux écrans mobiles
   ============================================ */

@media (max-width: 600px) {
    .prc-contact-form {
        max-width: 100%;
    }

    .prc-contact-form #message {
        min-height: 180px;
    }

    .prc-contact-form button[type="submit"] {
        min-height: 44px;
    }
}



/* =========================================================
   PRC_contact.php - Dimensions des champs et du bouton
   ========================================================= */

/* ===== Liste déroulante : Type de contribution ===== */
.prc-contact-form #type {
    display: block;
    width: 100%;
    max-width: 400px;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #d4dce6;
    border-radius: 7px;
    background: #ffffff;
    color: #222222;
    font-size: 16px;
}

/* ===== Champ Adresse e-mail ===== */
.prc-contact-form #email {
    display: block;
    width: 100%;
    max-width: 400px;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #d4dce6;
    border-radius: 7px;
    background: #ffffff;
    color: #222222;
    font-size: 16px;
}

/* ===== Bouton Envoyer ma contribution ===== */
.prc-contact-form button[type="submit"] {
    min-height: 46px;
    padding: 12px 24px;
    font-size: 16px;
}

/* ===== Adaptation mobile ===== */
@media (max-width: 600px) {
    .prc-contact-form #type,
    .prc-contact-form #email {
        max-width: 100%;
    }
}


/* PRC_COLLECTE — administration des contributions */
.prc-collecte-admin { max-width: 1400px; margin: 0 auto; }
.prc-collecte-admin .collecte-filtres { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 20px 0; }
.prc-collecte-admin .collecte-filtres > div { display: flex; flex-direction: column; gap: 5px; }
.prc-collecte-admin input, .prc-collecte-admin select { min-height: 42px; padding: 8px; border: 1px solid #ccd5df; border-radius: 6px; box-sizing: border-box; }
.prc-collecte-admin #recherche { width: min(100%, 340px); }
.prc-collecte-admin button { background: #1976b9; color: #fff; border: 0; border-radius: 6px; padding: 10px 16px; min-height: 42px; cursor: pointer; }
.prc-collecte-admin button:hover { background: #125d91; }
.prc-collecte-admin .collecte-table-scroll { overflow-x: auto; }
.prc-collecte-admin .collecte-table { width: 100%; border-collapse: collapse; }
.prc-collecte-admin .collecte-table th, .prc-collecte-admin .collecte-table td { padding: 12px; border: 1px solid #dce2e9; text-align: left; vertical-align: top; }
.prc-collecte-admin .collecte-table th { background: #eef3f7; }
.prc-collecte-admin .collecte-message { min-width: 260px; max-width: 520px; overflow-wrap: anywhere; white-space: normal; }
.prc-collecte-admin .collecte-decision { display: flex; flex-direction: column; gap: 6px; min-width: 160px; }
.prc-collecte-admin .collecte-decision label { font-size: .9rem; }
.prc-collecte-admin .collecte-succes { color: #176238; font-weight: bold; }
.prc-collecte-admin .collecte-erreur { color: #a12626; font-weight: bold; }
.prc-collecte-admin .collecte-pagination { display: flex; gap: 20px; align-items: center; margin: 22px 0; }
@media (max-width: 650px) { .prc-collecte-admin .collecte-filtres { display: block; } .prc-collecte-admin .collecte-filtres > div { margin-bottom: 12px; } }


/* PRC_COLLECTE — Fond légèrement opaque du tableau */

.prc-collecte-admin .collecte-table {
    background-color: rgba(255, 255, 255, 0.20);
    border-collapse: collapse;
}

.prc-collecte-admin .collecte-table th {
    background-color: rgba(235, 240, 245, 0.30);
}

.prc-collecte-admin .collecte-table td {
    background-color: rgba(255, 255, 255, 0.20);
}


/* PRC_COLLECTE — Modification de statut en attente */

.prc-collecte-admin .collecte-decision button.statut-modifie {
    background-color: #c62828;
    border-color: #c62828;
    color: #ffffff;
}

.prc-collecte-admin .collecte-decision button.statut-modifie:hover {
    background-color: #a61e1e;
    border-color: #a61e1e;
}




/* PRC_COLLECTE — Messages de confirmation et d'erreur */

.prc-collecte-admin p.collecte-succes,
p.collecte-succes {
    background: #198754 !important;
    color: #ffffff !important;
    border: 2px solid #146c43;
    border-left: 5px solid #0f5132;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: bold;
    text-shadow: none !important;
    opacity: 1 !important;
}

.prc-collecte-admin p.collecte-erreur,
p.collecte-erreur {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: 2px solid #b91c1c;
    border-left: 5px solid #991b1b;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: bold;
    text-shadow: none !important;
    opacity: 1 !important;
}


/* ==========================================
   PRC2 — Notice de confidentialité
   Fond opaque pour faciliter la lecture
   ========================================== */

.prc-confidentialite {
    background: #101e30 !important;
    color: #ffffff;
    padding: 30px 35px;
    border-radius: 10px;
    box-sizing: border-box;
    max-width: 1200px;
    margin: 30px auto;
}

.prc-confidentialite h1,
.prc-confidentialite h2,
.prc-confidentialite p {
    color: #ffffff;
    text-shadow: none;
}

.prc-confidentialite a {
    color: #8ed4ff;
    text-decoration: underline;
}

.prc-confidentialite a:hover {
    color: #ffffff;
}

/* Adaptation aux smartphones */
@media (max-width: 768px) {
    .prc-confidentialite {
        margin: 15px;
        padding: 20px;
        border-radius: 8px;
    }
}

