 /* ===== La charte graphique du site =====
           Chaque rubrique a sa couleur dominante, définie ici une seule fois.
           Une classe .bg-* par partie : utilisable partout (boutons, titres,
           bandeaux des pages intérieures...). */
        :root {
            /* Couleurs dominantes des parties du site */
            --c-legaphil: rgb(150, 0, 0);    /* LE GAPHIL      */
			--c-legaphil-fonce: #5C0000;    /* LE GAPHIL      */
            --c-manif:    rgb(65, 105, 225); /* MANIFESTATIONS */
			--c-manif-fonce:  rgb(46, 74, 158);   /* bleu roi profond */
            --c-compet:   rgb(150, 0, 150);  /* COMPÉTITION    */
			--c-compet-fonce:  rgb(105, 0, 105);   /* prune */
            --c-assoc:    rgb(34, 139, 34);  /* ASSOCIATIONS   */
			--c-assoc-fonce: #1B4D1B;  /* ASSOCIATIONS   */
            --c-jeun:     rgb(255, 165, 0);  /* JEUNESSE       */
			--c-jeun-fonce: #BF7A00;   /* ocre/ambré foncé */
            --c-lire:     rgb(250, 128, 114);/* À LIRE...      */
			--c-lire-fonce: rgb(175, 90, 80);   /* brique */
            --c-liens:    rgb(0, 0, 122);    /* LIENS          */
			--c-liens-fonce: rgb(0, 0, 85);      /* bleu très nuit */
            /* Nuances de la couleur LE GAPHIL (page de garde et rubrique) */
            --rouge-gaphil: var(--c-legaphil);
            --rouge-fonce:   rgb(105, 0, 0);
        }
        .bg-legaphil { background-color: var(--c-legaphil) !important; }
		.bg-legaphil-fonce { background-color: var(--c-legaphil-fonce) !important; }  /* encore plus foncé */
        .bg-manif     { background-color: var(--c-manif) !important; }
		.bg-manif-fonce     { background-color: var(--c-manif-fonce) !important; }
        .bg-compet    { background-color: var(--c-compet) !important; }
		.bg-compet-fonce    { background-color: var(--c-compet-fonce) !important; }
        .bg-assoc     { background-color: var(--c-assoc) !important; }
		.bg-assoc-fonce { background-color: var(--c-assoc-fonce) !important; }  /* vert foncé */
        .bg-jeun      { background-color: var(--c-jeun) !important; }
		.bg-jeun-fonce  { background-color: var(--c-jeun-fonce) !important; }
        .bg-lire      { background-color: var(--c-lire) !important; }
		.bg-lire-fonce  { background-color: var(--c-lire-fonce) !important; }
        .bg-liens     { background-color: var(--c-liens) !important; }
		.bg-liens-fonce { background-color: var(--c-liens-fonce) !important; }
        .bg-gaphil    { background-color: var(--rouge-gaphil) !important; }
        .bg-gaphil-f  { background-color: var(--rouge-fonce) !important; }
        .text-gaphil  { color: var(--rouge-gaphil) !important; }
		
		.bg-blanc { background-color: #fff;}
		
		/* Le fond de page de chaque rubrique (l'espace autour de la fenêtre) */
		.fond-assoc  { background: var(--c-assoc); }   /* ASSOCIATIONS : vert plein */

        /* Menu : chaque bouton garde la couleur de sa partie.
           request()->is('...') permet d'éclaircir le bouton de la page courante. */
        .navbar-gaphil a.nav-link {
            color: #fff; font-weight: 700; text-transform: uppercase;
            font-size: .8rem; border-radius: 6px; margin: 2px;
            padding: .45rem .9rem;
        }
        .navbar-gaphil a.nav-link:hover,
        .navbar-gaphil a.nav-link.active {
            filter: brightness(1.3); box-shadow: 0 0 0 2px rgba(255,255,255,.5);
        }

        /* Sous-menus : ouverture AU SURVOL (comme l'ancien site).
           Bootstrap ne l'ouvre normalement qu'au clic ; ces deux règles
           ajoutent le survol. Le clic continue de fonctionner (utile sur
           écran tactile). Chaque dropdown-menu reprend la couleur du
           bouton grâce à la classe bg-* qu'on lui met dans le HTML. */
        @media (min-width: 992px) {
            .navbar-gaphil .dropdown:hover .dropdown-menu {
                display: block; margin-top: 0;
            }
        }
        .navbar-gaphil .dropdown-menu {
            border: 0; border-radius: 0 0 8px 8px;
            box-shadow: 0 8px 20px rgba(0,0,0,.35);
        }
        .navbar-gaphil .dropdown-item {
            color: #fff; font-size: .8rem; font-weight: 600; padding: .4rem 1rem;
        }
        /* Bootstrap pose par défaut une barre de fond clair au survol
           (prévue pour du texte sombre) : texte blanc sur fond blanc, illisible.
           On la remplace par un voile BLANC TRÈS TRANSPARENT : comme chaque
           menu a déjà la couleur de sa partie (bg-*), le résultat visible
           est une barre nuance claire de LA COULEUR DE LA PARTIE. */
        .navbar-gaphil .dropdown-item:hover,
        .navbar-gaphil .dropdown-item:focus {
            background-color: rgba(255, 255, 255, 0.25) !important;
            color: #fff !important;
        }
		/* Flèches du carrousel : bandes fines sur les bords au lieu de 15 % */
		#carrouselDepartements .carousel-control-prev,
		#carrouselDepartements .carousel-control-next {
			width: 5%;
		}
		.ob-button-link{
    background:#333;          /* gris anthracite (pas noir pur) */
    color:#fff;               /* texte blanc */
    border-radius:9999px;     /* bouton en forme de pilule ! */
    padding:8px 16px;
    display:flex;
    flex-direction:row;
    align-items:center;
    cursor:pointer
}

		.ob-button-link > svg{
    height: 20px;          /* la bonne taille, comme avant */
    width: auto;
    fill: #fff;            /* logo blanc, obligatoire sur fond #333 */
    stroke: #fff;
    flex-shrink: 0;        /* le logo ne se déforme jamais */
}
		
	/* Le fond Timbres.jpg couvre TOUTE la page du navigateur */
body {
    padding: 16px;   /* la marge tout autour où l'on voit les timbres */
    background-image: url('../images/fonds/Timbres.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
/* ICI les trois codes suivants pour le BANDEAU de l'ACCUEIL
   La fenêtre : on ne voit qu'une bande de 200px de haut */
.galerie-img {
    width: 100%;
    height: 200px;
    overflow: hidden;        /* indispensable : cache ce qui dépasse */
}

/* Le bandeau qui se déplace */
#cadre-galerie-img {
    display: inline-block;
    animation: defile-bandeau 40s linear infinite alternate;
	animation-delay: 5s;
}

/* De gauche à droite, puis retour, indéfiniment */
@keyframes defile-bandeau {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(100vw - 7320px)); }
}

/* ── Aperçu agrandi au survol de l'image ─────────────── */
.apercu1 {
    display: inline-block;          /* la boîte épouse l'image */
    position: relative;            /* point d'ancrage pour le zoom */
}

.apercu1 img {
    transition: transform 0.3s ease;   /* l'agrandissement en douceur */
}

.apercu1:hover img {
    transform: scale(2);           /* ×2 au survol — ajustez à volonté */
    z-index: 1050;                 /* passe AU-DESSUS du reste de la page */
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);   /* ombre pour la détacher */
}
/* ── Aperçu agrandi au survol de l'image du home (répertoire des timbres ─────────────── */
.apercu2 img {
    display: block;
    width: 100px;
    max-width: 100%;
    height: auto;
}

/* Copie agrandie, indépendante du tableau */
.apercu2-agrandie {
    position: fixed;
    z-index: 999999;
    width: 450px !important;
    max-width: none !important;
    height: auto !important;
    display: block;
    pointer-events: none;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.45);
    border: 2px solid white;
    background: white;
}
/* Fond gris à texture, utilisable sur n'importe quelle zone
   (menu, zone de contenu...). L'image se dessine sur la couleur. */
.text-tangerine {
    font-family: 'Tangerine', serif;
    color: blue;
    text-shadow: 4px 4px 4px;
}
.fond-gris {
    background-image: url("../images/fonds/gris1.jpe");
    background-repeat: repeat;
}
.fond-bleu {
    background-color:  rgb(0, 0, 122); 
    background-repeat: repeat;
}
.fond-monde {
    background-image: url("../images/fonds/monde.gif");
    background-repeat: repeat;
}
.fond-plan-du-site {
    background-image: url("../images/fonds/plan-du-site.jpg");
    background-repeat: no;
}

/* La fenêtre volante : un seul bloc compact, coins arrondis */
.fenetre-site {
	width: 85%;
    background-color: #f8f8f8;          /* ou blanc */
    border-radius: 16px;               /* les QUATRE coins en une ligne */
    overflow: hidden;                  /* tout ce qui est dedans suit l'arrondi */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);  /* effet "posée sur le fond" */
    min-height: 70vh;        /* compromis : hauteur minimum raisonnable */
    margin: 0 auto 40px;     /* centrée + 40px de fond visibles dessous */
    max-width: 1400px;
                      /* centrée horizontalement */
}

.timbre{
  width: 650px;
  border: 5px dashed white;
}
.table, .table td, .table th {
    background-color: transparent !important;
}
/* Bordures visibles : plus épaisses et plus foncées */
.table-bordered td,
.table-bordered th {
    border: 1px solid #555 !important;   /* épaisseur + gris foncé */
}

/* La table des nouveautés : fond rouge GAPHIL, texte blanc */
.table-gaphil {
    --bs-table-bg: rgb(150, 0, 0);              /* fond rouge */
    --bs-table-color: #fff;                     /* texte blanc */
    --bs-table-striped-bg: rgb(120, 0, 0);      /* ligne sur 2 en rouge plus sombre */
    --bs-table-striped-color: #fff;
    --bs-table-hover-bg: rgb(105, 0, 0);        /* ligne survolée */
    --bs-table-hover-color: #fff;
}

/* Aperçu au survol : petite image visible, grande cachée, qui apparaît au survol */
.apercu { text-decoration: none; position: relative; }

.apercu span {
    display: none;
    border-radius: 6px;
    color: black;
    background: white;
}

.apercu span img { float: left; margin: 0 8px 8px 0; }

.apercu:hover span {
    display: inline;
    position: absolute;
    top: 0; left: 0;
    z-index: 1000;
    max-width: 620px;
    min-height: 128px;
    border: 1px solid black;
    margin-top: 12px;
    margin-left: 32px;
    overflow: hidden;
    padding: 8px;
}
/* ── Ligne plan du site / mise à jour, sous le menu ── */
.ligne-plan-date {
    font-size: 0.85em;
    color: #6c757d;               /* le gris discret de Bootstrap */
}

.lien-plan {
    color: red;
    text-decoration: none;
}

.lien-plan:hover {
    text-decoration: none;   /* le lien s'affirme au survol */
}

.texte-maj {
    font-style: italic;
}

/* ── Le cadre des textes de conférence ── */
.cadre-conference {
    border: 2px solid #dc3545;      /* l'ancien liseré rouge */
    min-height: 550px;
    background-color: #fff;
}

/* Justifié par défaut dans les pages  : */

/* Bibliographie : tout le texte justifié */
.fond-timbres .card-body {
    text-align: justify;
}

/* Boutons de téléchargement archives : */

/* ── Les boutons d'archives ── */
.btn-archive {
    background-color: rgb(0, 100, 0);
    color: yellow;
    font-weight: bold;
    text-decoration: none;
    padding: 0 7px;
    border: 1px solid black;
    cursor: pointer;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
    transition: background-color 0.2s, box-shadow 0.2s;
}
/* Survol du timbre avec home */
.btn-archive:hover {
    background-color: orange;
    box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.7);
}

.zoom-timbre img {
    transition: transform 0.2s ease;
}
.zoom-timbre:hover img {
    transform: scale(4.5);
    transform-origin: center;
    z-index: 10;
    position: relative;
}
/* Les flèches restent fixes et centrées verticalement */
.fleche-tableau {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1040;
}

/* Flèches agrandies */
.fleche-tableau a {
    display: inline-block;
    font-size: 36px;           /* Taille des flèches */
    line-height: 1;
    padding: 16px 18px;        /* Zone cliquable agrandie */
    color: #fff;
    background-color: rgba(0, 0, 0, 0.45);
    border-radius: 10px;
    text-decoration: none;
    user-select: none;
    transition: background-color 0.2s ease,
                transform 0.2s ease;
}

/* Effet au survol */
.fleche-tableau a:hover {
    background-color: rgba(0, 0, 0, 0.75);
    color: #ffd700;
}

/* Positionnement sur les bords */
.fleche-gauche {
    left: 12px;
}

.fleche-droite {
    right: 12px;
}

/* ===== Pagination Laravel : chiffres navy ===== */

.pagination .page-link {
    color: var(--c-liens) !important;
    background-color: blue !important;
    border-color: #ccc !important;
}

/* Numéro de la page active */
.pagination .page-item.active .page-link {
    color: brown !important;
    background-color: darkturquoise !important;
    border-color: var(--c-liens) !important;
}

/* Survol des numéros */
.pagination .page-link:hover {
    color: #fff !important;
    background-color: var(--c-liens) !important;
    border-color: var(--c-liens) !important;
}

/* Texte indiquant les résultats affichés */
.pagination-info,
.small.text-muted {
    color: var(--c-liens) !important;
}

/* ===== Home : Pagination : affichage vertical ===== */

nav[aria-label="Pagination Navigation"] {
    display: block !important;
}

/* Empile les informations et la navigation */
nav.d-flex.justify-items-center.justify-content-between {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px;
}

/* Le bloc des informations sur les résultats */
.pagination-info {
    display: block;
    width: 100%;
    margin-bottom: 0.25rem;
}

/* Le bloc des numéros de pages */
nav.d-flex.justify-items-center.justify-content-between > div:last-child {
    width: 100%;
}

/* Évite que les numéros soient étirés */
nav.d-flex.justify-items-center.justify-content-between .pagination {
    margin-bottom: 0;
}

/* Texte des informations de pagination en blanc */
.pagination-info {
    color: #fff !important;
}

/* Sécurité : les nombres restent également blancs */
.pagination-info .fw-semibold {
    color: #fff !important;
}
/* Conteneur général de la pagination */
nav.d-flex.justify-items-center.justify-content-between {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100%;
    gap: 10px;
}

/* Centrage du texte des résultats */
nav.d-flex.justify-items-center.justify-content-between .pagination-info {
    display: block;
    width: 100%;
    text-align: center !important;
    margin: 0 auto;
}

/* Centrage du bloc des numéros */
nav.d-flex.justify-items-center.justify-content-between > div:last-child {
    display: flex;
    justify-content: center !important;
    width: 100%;
}

/* Centrage de la liste des pages */
nav.d-flex.justify-items-center.justify-content-between .pagination {
    display: flex;
    justify-content: center !important;
    margin: 0 auto;
}

/* PAGE GAPHIL INFO */
.gaphil-archives section {
    margin-bottom: 3rem;
}

.gaphil-archives h1,
.gaphil-archives h2 {
    margin-bottom: 1.5rem;
}

.section-banner {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
}

.publication-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.publication-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

.publication-image img {
    display: block;
    width: 150px;
    height: auto;
}

.publication-title {
    color: #174a85;
    margin: 0;
}

.download-button,
.recap-button,
.publication-download {
    display: inline-block;
    padding: 0.65rem 1rem;
    border: 0;
    border-radius: 4px;
    background: #333;
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.recap-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 0;
}

@media (max-width: 650px) {
    .publication-card {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .publication-image img {
        width: 100px;
    }
	
.publication-fieldset {
    box-sizing: border-box;
    width: 100%;
    max-width: 900px;
    margin: 15px auto;
    padding: 15px;
    border: 1px solid #999;
    border-radius: 4px;
}

.publication-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 150px;
    align-items: center;
    gap: 20px;
    width: 100%;
    text-align: center;
}

.publication-image {
    display: block;
    width: 150px;
}

.publication-image > img {
    display: block;
    width: 150px;
    height: auto;
}

.publication-title {
    color: blue;
    text-align: center;
}

.publication-actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

.publication-actions form {
    margin: 0;
}

.ob-button-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ob-button-link > svg {
    width: 28px;
    height: 36px;
    fill: #333;
}

.ob-button-link input[type="submit"] {
    cursor: pointer;
}

.tooltip-preview {
    display: none;
}

.tooltip:hover .tooltip-preview {
    display: block;
}

.tooltip-preview img {
    width: 450px;
    max-width: 80vw;
    height: auto;
}

@media (max-width: 650px) {
    .publication-card {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 12px;
    }

    .publication-image,
    .publication-image > img {
        width: 100px;
    }

    .publication-actions {
        grid-column: 2;
        justify-content: center;
    }
}
