html, body {
    margin: 0 ;
    padding: 0 ;
    width: 100% ;
}

body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    background: white; 
    height: 100vh; /* pas de défilement l'ajout */                   
}

body::before{
    content:"";
    position: fixed;
    inset:0;
    z-index: -1;
    
    background-image:
        linear-gradient(to right, rgba(83, 82, 82, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(83,82,82,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    ;
}

/* Header global */
.header {
    position: relative;
    padding: 40px 20px 20px;
    text-align: center;
}

/* Langue en haut à droite */
.lang {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 14px;
}

.lang a {
    text-decoration: none;
    color: black;
}

.active-lang {
    font-weight: bold;
}

/* Logo */
.logo img {
    height: 110px; 
    margin-bottom: 20px; 
}
.logo {
    margin-top: -20px; /* Augmente la marge basse du logo */
}

/* Menu */
.menu {
    display: flex;
    justify-content: center; /*Pour que ce ne soit plus resséré au centre */
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 0px;  /* Espace entre les deux boutons */
}

.menu a {
    padding: 10px 20px; /*Hauteur, padding des boutons*/  
    border: 1px solid #868484;
    text-decoration: none;
    color: black;
    background: #f5f5f5;
    text-align: center;
    
    width: 250px; /* Largeur fixe pour tous les boutons */
    white-space: nowrap;
}

/* LOGO JOB */
.job-logo {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    cursor: pointer;
    opacity: 1.00;
    transition: opacity 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.job-logo:hover {
    opacity: 1;
    transform: scale(1.08);
}

.job-logo img {
    height: 135px;
    width: 135px;
    object-fit: contain;
}

/* LOGO LINKEDIN */
.linkedin-logo {
    display: inline-block;
    margin: 4px 0 24px 0;
    cursor: pointer;
    opacity: 1.00;
    transition: opacity 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.linkedin-logo:hover {
    opacity: 1;
    transform: scale(1.08);
}

.linkedin-logo img {
    height: 28px;
    width: 28px;
    object-fit: contain;
}



@media (maax-width: 768px){
    .menu {
        flex-wrap: wrap;
        gap: 5px;
    }
    .menu a{
        padding: 8px 20px;
        font-size: 14px;
    }
    .lang {
        top: 15px;
        right: 20px;
        font-size: 12px;
    }
    
    .logo img {
        height: 80px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 30px 10px 15px;
    }
    
    .menu a {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .logo img {
        height: 70px;
    }
}



/* Hover */
.menu a:hover {
    background: #ddd;
}

/* Bouton actif */
.menu a.active {
    background: #e0e0e0; /*Couleur lorsque selectionné*/
    color: black;
    border-color: #868484;
    font-weight: bold;
    /*text-decoration: underline;*/
    /*text-underline-offset: 6px;*/
}


/* PARTIE "Inspirations" */ 

.desktop {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 60px;
    padding: 20px 60px 60px 60px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

/* Icône projet */
.project-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.project-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.project-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 8px;
    cursor: pointer;
}

.project-icon span {
    font-size: 14px;
    display: block;
    cursor: pointer;
}

.project-icon:hover span {
    text-decoration: underline;
}

/* Sélection simple (clic) */
.project-icon.selected {
    background-color: rgba(0, 123, 255, 0.1);
}

.project-icon.selected span {
    background: #e0e0e0;
    border: 1px dotted #888;
    padding: 2px 4px;
}


/* ============================================
   STYLES POUR LA FENÊTRE DU DOSSIER AROBASERIES
   ============================================ */

/* Fenêtre du dossier - cachée par défaut */
.folder-window {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 500;
    overflow: hidden;
    flex-direction: column;
    animation: slideIn 0.3s ease-out;
}

/* Affichage de la fenêtre */
.folder-window.active {
    display: flex;
}

/* Animation d'apparition */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -55%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* En-tête de la fenêtre */
.folder-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 12px 16px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    flex-shrink: 0;
}

/* Bouton de fermeture */
.close-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #999;
    background: #e74c3c;
    color: white;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 2px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-weight: bold;
}

.close-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.close-btn:active {
    transform: scale(0.95);
}

/* Contenu du dossier */
.folder-content {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 50px;
    padding: 40px;
    overflow-y: auto;
    flex-wrap: wrap;
    flex-grow: 1;
}

/* Icônes à l'intérieur du dossier */
.folder-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.folder-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.folder-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 8px;
    cursor: pointer;
}

.folder-icon span {
    font-size: 14px;
    display: block;
    cursor: pointer;
    word-wrap: break-word;
}

.folder-icon:hover span {
    text-decoration: underline;
}

/* Sélection des icônes du dossier */
.folder-icon.selected {
    background-color: rgba(0, 123, 255, 0.1);
}

.folder-icon.selected span {
    background: #e0e0e0;
    border: 1px dotted #888;
    padding: 2px 4px;
}

/* Responsive pour la fenêtre du dossier */
@media (max-width: 768px) {
    .folder-window {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .folder-content {
        gap: 30px;
        padding: 25px;
    }
    
    .folder-icon {
        width: 100px;
    }
    
    .folder-icon img {
        width: 56px;
        height: 56px;
    }
    
    .folder-icon span {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .folder-window {
        max-width: 100%;
        max-height: 90vh;
    }
    
    .folder-content {
        gap: 20px;
        padding: 15px;
    }
    
    .folder-icon {
        width: 80px;
    }
    
    .folder-icon img {
        width: 48px;
        height: 48px;
    }
    
    .folder-icon span {
        font-size: 11px;
    }
}


/* STYLES POUR LA PAGE BAGAGE */

.bagage-content {
    padding: 5px;
    text-align: left;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 60px; /* Alignement avec le reste du contenu */
    padding-right: 60px;
}

/* Titre de catégorie (centré) : Certificats, Articles, Collaborations, Papiers, Projets */
.bagage-subtitle-2 {
    text-align: left; /* aligné avec le bord gauche des bandeaux */
    font-size: 24px; /* Modifiable : taille du sous-titre */
    font-family: Arial, sans-serif; /* Modifiable : police du sous-titre */
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    margin-top: 30px;
}

/* Responsive pour la page bagage */
@media (max-width: 768px) {
    .bagage-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    .bagage-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}


/* STYLES POUR LA PAGE ACCUEIL */

.home-content {
    padding: 5px 20px 60px 20px;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 15px;
}

.home-wrapper {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.home-wrapper h1 {
    margin-bottom: 25px;
    font-size: 24px;
    font-family: Arial, sans-serif;
    color: #333;
}

.home-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.home-text-l {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 0px;
    color: #333;
    text-align: left;
}

.home-text-j {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #333;
    text-align: justify; 
}


/* ============================================
   ACCUEIL — CARROUSEL « À LA UNE »
   (la page d'accueil porte la classe .page-home)
   ============================================ */

/* Ordinateur : plus de défilement sur l'accueil.
   (si la fenêtre est vraiment très basse, le défilement revient pour ne rien couper) */
@media (min-width: 769px) and (min-height: 560px) {
    body.page-home {
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    .page-home .home-content {
        padding-bottom: 0;
        min-height: 0;
    }
}

/* Ordinateur : espacement de l'accueil.
   - on rapproche le titre « Accueil » de la barre de menu (−20 px : 15 px de marge + 5 px de padding) ;
   - on remet ces 20 px entre le texte de présentation et le cadre (+20 px).
   Bilan : le cadre « À la une » reste exactement à la même hauteur dans la page. */
@media (min-width: 769px) {
    .page-home .home-content {
        margin-top: 0;
        padding-top: 0;
    }

    .page-home .home-text {
        margin-bottom: 40px;     /* était 20px */
    }
}

.spotlight {
    /* hauteur de l'image = hauteur de l'écran moins l'en-tête, le titre et la légende */
    --spot-h: clamp(140px, calc(100vh - 458px), 340px);
    --bar-h: 34px;           /* hauteur de la barre d'intitulé (une seule ligne) */
    --img-opacity: 0.95;     /* opacité de l'image : 1 = pleine, 0.95 = 95 % */
    --accent: #b4b4b4;       /* gris du bandeau « À la une » et des flèches */
    --accent-hover: #a3a3a3;
    --accent-active: #8c8c8c;
    position: relative;
    width: 330px;            /* largeur FIXE (≈ la taille en anglais), indépendante du texte */
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    border: 1px solid #000;
    background: #fff;
    text-align: left;
    transition: box-shadow 0.15s ease;
}

@supports (height: 100dvh) {
    .spotlight {
        --spot-h: clamp(140px, calc(100dvh - 458px), 340px);
    }
}

/* Comme les bandeaux du site : cadre renforcé au survol, seulement si la nouveauté a un lien */
.spotlight:has(.is-link:hover) {
    box-shadow: 0 0 0 1px #000;
}

.spotlight:focus-visible {
    outline: 2px solid #4d4d4d;
    outline-offset: 3px;
}

/* Étiquette « À la une » : gris clair assombri, bord oblique "\" comme les bandeaux */
.spotlight-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 8px 34px 8px 14px;
    background: var(--accent);
    color: #1a1a1a;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
    pointer-events: none;
}

/* Piste : défilement horizontal avec accroche (balayage tactile) */
.spotlight-track {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.spotlight-track::-webkit-scrollbar {
    display: none;
}

@media (prefers-reduced-motion: no-preference) {
    .spotlight-track {
        scroll-behavior: smooth;
    }
}

.spotlight-slide {
    flex: 0 0 100%;
    box-sizing: border-box;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: block;
    color: #000;
    text-decoration: none;
    cursor: default;
}

.spotlight-slide.is-link {
    cursor: pointer;
}

/* Image centrée sur fond blanc (le GIF carré n'est jamais recadré) */
.spotlight-media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--spot-h);
    background: #fff;
}

.spotlight-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: var(--img-opacity, 0.95);
    user-select: none;
}

/* Intitulé : barre inférieure basse, flèches aux deux extrémités.
   Le texte tient toujours sur UNE seule ligne (police réduite si besoin). */
.spotlight-title {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: var(--bar-h);
    padding: 0 calc(var(--bar-h) + 6px);
    border-top: 1px solid #000;
    background: #f5f5f5;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.03em;
    line-height: 1.15;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
}

.spotlight-title-text {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;   /* sécurité : « … » si un titre est vraiment trop long */
}

/* Flèches intégrées au cadre : même gris que le bandeau « À la une » */
.spotlight-btn {
    position: absolute;
    bottom: 0;
    z-index: 3;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--bar-h);
    height: var(--bar-h);
    margin: 0;
    padding: 0;
    border: none;
    background: var(--accent);
    color: #000;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.spotlight-prev {
    left: 0;
    border-top: 1px solid #000;
    border-right: 1px solid #000;
}

.spotlight-next {
    right: 0;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
}

.spotlight-btn svg {
    width: 10px;
    height: 16px;
}

.spotlight-btn:hover:not(:disabled) {
    background: var(--accent-hover);
}

.spotlight-btn:active:not(:disabled) {
    background: var(--accent-active);
}

.spotlight-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.spotlight-btn:focus-visible {
    outline: 2px solid #4d4d4d;
    outline-offset: -4px;
}

/* LinkedIn en bas à gauche, logo Job en bas à droite (accueil) */
.page-home .linkedin-logo {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999;
    margin: 0;
}

.page-home .linkedin-logo img {
    width: 32px;
    height: 32px;
}

/* Ligne avec le code */
.code-line {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

/* Champ de saisie du code - discret mais intuitif */
.code-input {
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    padding: 4px 8px;
    font-size: 16px;
    width: 120px;
    outline: none;
    transition: border-color 0.3s ease;
    text-align: center;
    font-family: Arial, sans-serif;
}

.code-input:focus {
    border-bottom: 1px solid #666;
}

.code-input::placeholder {
    color: #bbb;
    font-style: italic;
}

/* Contenu caché */
.hidden-content {
    display: none;
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 123, 255, 0.05);
    border-left: 3px solid #426f9c;
    border-radius: 4px;
    animation: fadeIn 0.5s ease;
}

.special-text {
    margin: 0;
    color: #333;
    font-style: italic;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive pour la page accueil */
@media (max-width: 768px) {
    .home-content {
        padding: 40px 20px;
    }
    
    .home-wrapper h1 {
        font-size: 28px;
    }
    
    .home-text {
        font-size: 15px;
    }
    
    .code-input {
        width: 100px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .home-content {
        padding: 30px 15px;
    }
    
    .home-wrapper h1 {
        font-size: 24px;
    }
    
    .home-text {
        font-size: 14px;
    }
    
    .code-line {
        flex-direction: column;
        align-items: center;
    }
    
    .code-input {
        margin-top: 8px;
        width: 150px;
    }
}


/* ============================================
   PAGES BAGAGE ET ARTICLES / TRAVAUX — BANDEAUX
   (les deux pages partagent exactement ce design)
   ============================================ */

/* Colonne centrée : sous-groupes et bandeaux alignés sur le même bord gauche */
.bagage-column {
    max-width: 900px;
    margin: 0 auto;
}

/* Conteneur des bandeaux */
.banner-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Sous-titres de groupe : "Académique" / "Personnel" / "En cours" */
.bagage-group {
    font-size: 16px;
    font-weight: normal;
    color: #646464;
    margin: 26px 0 10px 0;
}

/* Sous-titre juste sous un titre de catégorie : espace réduit
   (marges fusionnées : 15px - 9px = 6px) */
.bagage-subtitle-2 + .bagage-group {
    margin-top: -9px;
}

/* "Document" / "Doc" : version courte réservée au mobile */
.lbl-short {
    display: none;
}

/* ─── MOTIFS ───────────────────────────────────
   Chaque bandeau a une classe "pattern-xxx".
   Pour changer le motif d'un bandeau, modifier
   uniquement la variable --pattern ci-dessous.
   Toute valeur de "background" est acceptée :
   couleur, dégradé, image (url(...)), etc.
   Le même motif s'applique en FR et en EN.
   ------------------------------------------- */
.pattern-toeic     { --pattern: #9fabb3; }
.pattern-cnil      { --pattern: #8e8181; }
.pattern-livreblanc{ --pattern: #e6e6e6; }
.pattern-ml        { --pattern: url("Images/Pattern/pattern data2.png"); }
.pattern-enquetes  { --pattern: #cabfab; }
.pattern-stats     { --pattern: #e6e6e6; }
.pattern-site      { --pattern: #d0cccc; }
.pattern-opensource   { --pattern: #b9c4b3; }
.pattern-explicabilite{ --pattern: #a9b7c6; }
.pattern-football     { --pattern: #c9d1b5; }

/* Exemples de motifs (à copier dans une des lignes ci-dessus) :
   rayures     : --pattern: repeating-linear-gradient(45deg, #e6e6e6 0 8px, #dcdcdc 8px 16px);
   points      : --pattern: radial-gradient(#cfcfcf 1.2px, #e6e6e6 1.5px) 0 0 / 12px 12px;
   image unique: --pattern: url("images/motif-toeic.png") center / cover no-repeat;
                 (PNG large ~1600x200 px, l'essentiel au centre)
   tuile       : --pattern: url("images/tuile.png") 0 0 / 64px 64px repeat;
                 (petit PNG carré, ex. 128x128 px pour rester net sur écran Retina)
   Si le PNG a des zones transparentes, la couleur derrière se règle ainsi :
                 --pattern: url("images/motif.png") center / cover no-repeat, #e6e6e6; */

/* ─── BANDEAU DE BASE ───
   Structure :  [ tête #f5f5f5 (titre) \ zone motif ][ bouton(s) ]
   --slant = décalage horizontal de la barre oblique "\"
   -------------------- */
.banner {
    --slant: 28px;
    display: flex;
    align-items: stretch;
    min-height: 48px;
    border: 1px solid #000;
    background: #f5f5f5;
    color: #000;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.4;
    transition: box-shadow 0.15s ease;
}

/* Survol : cadre extérieur renforcé (sans décalage du contenu).
   Bandeau-lien : le bandeau. Projet : le bandeau + les détails s'ils sont dépliés. */
a.banner:hover,
.project:hover {
    box-shadow: 0 0 0 1px #000;
}

.project {
    transition: box-shadow 0.15s ease;
}

/* Zone principale = tête grise (titre) + zone motif */
.banner-main {
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
    min-width: 0;
    background: #f5f5f5;
    text-align: left;
}

/* Tête : titre sur fond #f5f5f5 */
.banner-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: 12px 12px 12px 16px;
}

/* Barre oblique "\" : trait le long du bord du motif.
   Elle démarre juste à droite du titre (largeur du bandeau variable).
   Le trait est un SVG étiré (preserveAspectRatio="none") avec
   vector-effect="non-scaling-stroke" : son épaisseur reste de 1,25 px quelle
   que soit la taille du bandeau. L'ancien dégradé à arrêts nets était rendu
   sans lissage sur les écrans standard, d'où un trait plus pâle que les bordures. */
.banner-head::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    width: var(--slant);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1' preserveAspectRatio='none'%3E%3Cline x1='0' y1='0' x2='1' y2='1' stroke='%23000' stroke-width='1.25' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
}

.banner-title {
    font-weight: normal;
}

/* Zone motif : de la barre oblique jusqu'au(x) bouton(s) */
.banner-fill {
    position: relative;
    flex: 1 0 auto;
    min-width: calc(var(--slant) + 24px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Le padding gauche réserve la zone occupée par l'antislash : la date
       ne passe jamais sous la diagonale, même sur les petits écrans. */
    padding: 0 12px 0 calc(var(--slant) + 8px);
    background: #fff; /* sous le motif : les couleurs des motifs restent identiques */
    clip-path: polygon(0 0, 100% 0, 100% 100%, var(--slant) 100%);
}

/* Le motif (couleur ou image) est sur un calque à part pour que l'opacité
   ne touche pas la date. Modifier --pattern-opacity pour l'ajuster (0 à 1). */
.banner-fill::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--pattern, #e6e6e6);
    opacity: var(--pattern-opacity, 0.80);
}

/* Date : petite étiquette sur le motif, près du bouton */
.banner-date {
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.25);
    padding: 1px 8px;
    white-space: nowrap;
    position: relative;
}

/* ─── BOUTONS BLEUS ─── */
.banner-actions {
    display: flex;
    flex: 0 0 auto;
}

.banner-btn {
    flex: 0 0 144px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border-left: 1px solid #000;
    background: #d4cdc2;
    color: #000000;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.3;
    letter-spacing: 0.03em;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

/* ─── SURVOL ───
   Bandeau-lien : le bouton s'assombrit quand on survole le bandeau.
   Bandeau-projet : le bouton s'assombrit seulement quand on le survole lui-même. */
a.banner:hover .banner-btn,
.banner-btn:hover {
    background: #d3c6b1;
}

/* ─── CLIC / APPUI ───
   Variante encore plus foncée pendant l'appui (feedback tactile/souris). */
a.banner:active .banner-btn,
.banner-btn:active {
    background: #8a8276;
}

/* ─── BOUTON UNIQUE À CHOIX (ex. Document 1 / Document 2) ───
   Un seul bouton ; au survol (ou focus / appui sur mobile), une liste
   de choix apparaît juste en dessous. */
.banner-menu {
    position: relative;
    display: flex;
    flex: 0 0 auto;
}

.banner-menu > .banner-btn {
    border-top: none;
    border-right: none;
    border-bottom: none;
    font-family: inherit;
}

.banner-menu-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    flex-direction: column;
    border: 1px solid #000;
    border-top: none;
    background: #d4cdc2;
}

.banner-menu:hover .banner-menu-list,
.banner-menu:focus-within .banner-menu-list,
.banner-menu.open .banner-menu-list {
    display: flex;
}

.banner-menu-list a {
    display: block;
    padding: 8px;
    color: #000;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.03em;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.banner-menu-list a + a {
    border-top: 1px solid #000;
}

.banner-menu-list a:hover,
.banner-menu-list a:focus-visible {
    background: #d3c6b1;
}

.banner-menu-list a:active {
    background: #8a8276;
}

/* ─── BANDEAU-LIEN (certificats, collaborations) ─── */
a.banner {
    cursor: pointer;
}

/* ─── BANDEAU-PROJET : la zone principale déplie les détails ─── */
.banner-toggle {
    margin: 0;
    padding: 0;
    border: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

/* Chevron : ▸ fermé, ▾ ouvert */
.banner-chevron {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin: 0 12px 0 2px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}

.banner-toggle[aria-expanded="true"] .banner-chevron {
    transform: rotate(45deg);
}

/* ─── DÉTAILS DU PROJET ─── */
.project-details {
    border: 1px solid #000;
    border-top: none;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 16px 14px 16px;
    font-size: 15px;
    line-height: 1.6;
    color: #000;
}

.project-details[hidden] {
    display: none;
}

.project-details ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.project-details li {
    padding-left: 1.1em;
    text-indent: -1.1em;
    margin: 2px 0;
}

.project-details li::before {
    content: "– ";
}

/* ─── ACCESSIBILITÉ ─── */
.banner:focus-visible,
.banner-toggle:focus-visible,
.banner-btn:focus-visible {
    outline: 2px solid #4d4d4d;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .banner-btn,
    .banner-toggle,
    .banner-chevron {
        transition: none;
    }
}

/* ─── MOBILE ───
   Le bandeau passe sur deux rangées : titre + motif en haut,
   bouton(s) bleu(s) pleine largeur en dessous. */
@media (max-width: 600px) {
    /* Le bandeau tient sur une seule ligne : titre tronqué si besoin,
       bouton(s) en largeur fixe et réduite plutôt qu'en pleine largeur. */
    .banner {
        --slant: 14px;
        flex-wrap: nowrap;
        min-height: 38px;
        font-size: 12px;
    }

    .banner-main {
        flex: 1 1 auto;
        min-width: 0;
    }

    .banner-head {
        padding: 6px 4px 6px 8px;
        min-width: 0;
    }

    /* Titres longs : retour à la ligne (le bandeau s'agrandit en hauteur),
       police inchangée. --title-max = largeur max du titre : plus elle est
       faible, plus le titre passe tôt à la ligne et plus la couleur du
       bandeau reste visible. text-wrap: balance équilibre la longueur des lignes. */
    .banner-title {
        --title-max: 24ch;
        min-width: 0;
        max-width: var(--title-max);
        white-space: normal;
        overflow-wrap: anywhere;
        text-wrap: balance;
        line-height: 1.25;
    }

    /* Sous-catégories : 2px de moins */
    .bagage-group {
        font-size: 14px;
    }

    /* Choix de documents : "DOC 1" / "DOC 2" */
    .lbl-long {
        display: none;
    }

    .lbl-short {
        display: inline;
    }

    .banner-fill {
        min-width: calc(var(--slant) + 8px);
        padding: 0 6px;
    }

    /* Bandeau allégé : pas de dates en mobile */
    .banner-date {
        display: none;
    }

    .banner-menu-list a {
        font-size: 9px;
        padding: 8px 4px;
    }

    .banner-actions {
        flex: 0 0 auto;
    }

    .banner > .banner-btn,
    .banner-menu > .banner-btn,
    .banner-actions .banner-btn {
        flex: 0 0 auto;
        min-width: 60px;
    }

    .banner-btn {
        min-height: 38px;
        padding: 4px 6px;
        border-left: 1px solid #000;
        border-top: none;
        font-size: 9px;
        letter-spacing: 0.01em;
    }

    .project-details {
        font-size: 14px;
        padding: 10px 12px 12px 12px;
    }
}
