/* ==========================================================================
   PORTFOLIO CSS — Structure claire, thème sombre élégant
   Remplace le style Bigoudens par un style portfolio professionnel
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES — Personnalisation centralisée
   Toutes les couleurs, images et fonts se changent ICI
   ========================================================================== */
   /* MODIFIER FOND D ECRAN 
   <style>
    body {
        background-image: url('/images/ton_image_de_fond.jpg') !important; /* Remplace par ton image *//*
        background-repeat: no-repeat !important;
        background-attachment: fixed !important;
        background-size: cover !important;
        background-position: center !important;
    }
</style>
*/
:root {
    /* ── Palette principale ─────────────────────────── */
    --accent:          #00d4ff;       /* Cyan vif — accent principal */
    --accent-alt:      #7b5ea7;       /* Violet — accent secondaire  */
    --accent-warm:     #f0a500;       /* Ambre  — accent tertiaire   */

    /* ── Backgrounds ────────────────────────────────── */
    --bg-base:         #33476d;       /* Fond global (body)          */
    /*--bg-base:         #0e1117;       /* Fond global (body)          */
    --bg-surface:      #000000;       /* Cards, panels               */
    /*Couleur fond header etc --bg-surface:      #161b22;       /* Cards, panels               */
    --bg-elevated:     #1c2330;       /* Hover states, inputs        */
    --bg-glass:        rgba(255,255,255,0.04); /* Glassmorphism léger */

    /* ── Textes ─────────────────────────────────────── */
    --text-primary:    #e6edf3;       /* Titre / texte principal     */
    --text-secondary:  #8b949e;       /* Sous-titres, meta           */
    --text-muted:      #484f58;       /* Placeholders, désactivé     */

    /* ── Bordures ───────────────────────────────────── */
    --border:          rgba(255,255,255,0.08);
    --border-hover:    rgba(0,212,255,0.35);

    /* ── Ombres ─────────────────────────────────────── */
    --shadow-card:     0 4px 24px rgba(0,0,0,0.4);
    --shadow-hover:    0 8px 40px rgba(0,212,255,0.12);
    --shadow-glow:     0 0 20px rgba(0,212,255,0.2);

    /* ── Rayons ─────────────────────────────────────── */
    --radius-sm:       6px;
    --radius-md:       12px;
    --radius-lg:       18px;
    --radius-pill:     999px;

    /* ── Transitions ────────────────────────────────── */
    --transition:      0.28s cubic-bezier(0.4, 0, 0.2, 1);

    /* ── Typography ─────────────────────────────────── */
    --font-display:    'DM Sans', 'Segoe UI', sans-serif;
    --font-body:       'DM Sans', 'Segoe UI', sans-serif;
    --font-mono:       'JetBrains Mono', 'Fira Code', monospace;

    /* ════════════════════════════════════════════════
       IMAGES — CHANGER ICI pour personnaliser les fonds
       ════════════════════════════════════════════════ */
    --img-header-bg:    url('/images/banniere_pointeRaz.jpg');       /* Fond header        */
    --img-footer-bg:    url('/images/banniere_pointeRaz.jpg');     /* Fond footer        */
    --img-body-bg:      none;                              /* Fond global (body) */
    --img-hero-bg:      none;                              /* Fond section hero  */
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    background-image: var(--img-body-bg);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ==========================================================================
   3. HEADER
   ========================================================================== */
.header-principal {
    position: relative;
    padding: 0;
    background-color: var(--bg-surface);
    background-image: var(--img-header-bg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 80px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* Overlay semi-transparent si image de fond présente */
/* ❌ Supprimez ou commentez tout ce bloc pour enlever le voile sombre */
.header-principal::before {
    /* content: '';
    position: absolute;
    inset: 0;
    background: rgba(14, 17, 23, 0.65); 
    pointer-events: none; */
}

/* --- Dans la section 3. HEADER --- */

.header-content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* max-width: 1400px;  <-- Supprimez ou commentez cette ligne pour que ça touche les bords */
    margin: 0;             /* <-- Changez '0 auto' par '0' */
    padding: 10px 20px;    /* <-- Réduisez le padding latéral (ex: 20px au lieu de 5%) */
}

.header-gauche .logo img {
    height: 120px;          /* <-- Réduisez un peu la taille si c'est trop gros (était à 160px) */
    object-fit: contain;
    display: block;        /* Évite les espaces vides sous l'image */
}


.header-centre {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banniere-header {
    height: 56px;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.9;
}

.header-droite {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── Badge utilisateur ── */
.badge-utilisateur {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
}

.badge-nom {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.badge-role {
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ── Boutons header ── */
.btn-connexion {
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.88rem;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-connexion:hover {
    background: var(--accent);
    color: var(--bg-base);
    text-decoration: none;
    box-shadow: var(--shadow-glow);
}

.btn-deconnexion {
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.88rem;
    border: 1px solid rgba(255,255,255,0.15);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-deconnexion:hover {
    border-color: #ff4d4d;
    color: #ff4d4d;
    background: rgba(255,77,77,0.08);
    text-decoration: none;
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.container-full { flex: 1; padding: 48px 5%; }

.hero-section {
    text-align: center;
    margin-bottom: 56px;
    background-image: var(--img-hero-bg);
    background-size: cover;
    background-position: center;
    padding: 20px 20px; /* top right bottom left */
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,212,255,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 12px;
    /* ✅ CORRECTION : z-index pour passer au-dessus du ::before (halo cyan) */
    position: relative;
    z-index: 1;
}

.hero-section h1 span { color: var(--accent); }

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
    /* ✅ CORRECTION : idem, passe au-dessus du halo */
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   5. CAROUSEL — Élément principal
   ========================================================================== */
.carousel-section {
    max-width: 1200px;
    margin: 0 auto 60px auto;
}

.carousel-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.carousel-wrapper {
    position: relative;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ── Carte carousel ── */
.card-app {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    position: relative;
    text-decoration: none;
    color: inherit;
}

.card-app:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}

/* ── Image box en haut de chaque carte ── */
.card-image-box {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
    background: var(--bg-elevated);
    flex-shrink: 0;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(0.85);
}

.card-app:hover .card-image-box img {
    transform: scale(1.06);
    filter: brightness(1);
}

/* Fallback : gradient + emoji si pas d'image */
.card-image-box .card-image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.card-image-box .card-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
}

/* Couleurs badge selon type */
.badge-projet  { background: rgba(0,212,255,0.2);  color: var(--accent); }
.badge-stage   { background: rgba(123,94,167,0.2); color: #b48adb; }
.badge-veille  { background: rgba(240,165,0,0.2);  color: var(--accent-warm); }

/* ── Corps de la carte ── */
.card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-app h3 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.card-app p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
    font-size: 0.88rem;
}

/* ── Bouton carte ── */
.btn-card {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.83rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
    letter-spacing: 0.01em;
}

.btn-card-primary {
    background: var(--accent);
    color: var(--bg-base);
}
.btn-card-primary:hover {
    background: #33ddff;
    color: var(--bg-base);
    text-decoration: none;
    box-shadow: 0 0 16px rgba(0,212,255,0.3);
}

.btn-card-secondary {
    background: transparent;
    color: var(--accent-alt);
    border: 1px solid var(--accent-alt);
}
.btn-card-secondary:hover {
    background: rgba(123,94,167,0.12);
    color: #c0a0e8;
    text-decoration: none;
    border-color: #c0a0e8;
}

/* Alias compatibilité anciens JS */
.btn-card-orange { background: var(--accent); color: var(--bg-base); }
.btn-card-orange:hover { background: #33ddff; text-decoration: none; color: var(--bg-base); }
.btn-card-jaune  { background: transparent; color: var(--accent-alt); border: 1px solid var(--accent-alt); }
.btn-card-jaune:hover { background: rgba(123,94,167,0.12); text-decoration: none; }

/* ── Navigation carousel ── */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.btn-nav {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-nav:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0,212,255,0.06);
}
.btn-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: var(--border);
    color: var(--text-muted);
}

/* Indicateur de position */
.carousel-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.carousel-dot.active {
    background: var(--accent);
    width: 20px;
    border-radius: 3px;
}

/* ── Message invitation connexion ── */
.card-invite {
    background: var(--bg-surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    color: var(--text-secondary);
    width: 100%;
}

.card-invite p { margin-bottom: 20px; font-size: 1.05rem; }

/* ==========================================================================
   6. CARDS DE GESTION — Section secondaire (facultative)
   ========================================================================== */
.cards-section {
    max-width: none; /* ← supprime la limite */
    margin: 0 0 48px 0;
    padding: 0 24px; /* ← juste un peu d'air sur les bords */
}

.cards-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Les barres de chaque côté */
.cards-section-title::before,
.cards-section-title::after {
    content: "";
    flex: 1; /* Prend tout l'espace disponible */
    border-bottom: 2px solid #ccc; /* Épaisseur et couleur de la barre */
    margin: 0 15px; /* Espace entre le texte et la barre */
}

.grid-apps {
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); ANCIENNE VERSION */
    grid-template-columns: repeat(8, 1fr);/* ← 8 cards = 8 colonnes égales */
    gap: 16px;
    justify-content: center; /* Centre les cartes horizontalement */
    justify-items: center;    /* Centre le contenu à l'intérieur des colonnes */
    margin: 0 auto;           /* Centre le bloc entier dans la page */
    width: 100%;
}

/* Card admin ribbon */
.card-admin {
    position: relative;
    overflow: hidden;
}

.card-admin::after {
    content: 'ADMIN';
    position: absolute;
    top: 12px;
    right: -22px;
    background: var(--accent-warm);
    color: var(--bg-base);
    font-size: 0.58rem;
    font-weight: 800;
    padding: 3px 28px;
    transform: rotate(45deg);
    letter-spacing: 0.08em;
}
/* Card admin ribbon */
.card-formateur {
    position: relative;
    overflow: hidden;
}

.card-formateur::after {
    content: 'FORMATEUR';
    position: absolute;
    top: 12px;
    right: -22px;
    background: var(--accent-warm);
    color: var(--bg-base);
    font-size: 0.58rem;
    font-weight: 800;
    padding: 3px 28px;
    transform: rotate(45deg);
    letter-spacing: 0.08em;
}

/* Injection de contenu sous les cards */
.details-container {
    background: var(--bg-surface); /* Utilise tes variables existantes */
    border: 1px solid var(--accent);
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Force les textes du contenu injecté à rester lisibles */
#details-content {
    color: var(--text-primary);
    /* ✅ CORRECTION : fond explicite pour éviter le blanc transparent */
    background: transparent;
}

#details-content p,
#details-content li,
#details-content span,
/* ✅ CORRECTION AJOUT : strong, em et a souvent oubliés */
#details-content strong,
#details-content em,
#details-content td,
#details-content th {
    color: var(--text-secondary);
}

/* ✅ CORRECTION : les liens dans le contenu injecté */
#details-content a {
    color: var(--accent);
}

#details-content h1,
#details-content h2,
#details-content h3,
/* ✅ CORRECTION AJOUT : h4 était dans un bloc séparé en dessous, on le regroupe ici */
#details-content h4,
#details-content h5,
#details-content h6 {
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}


/* ==========================================================================
   7. ZONE BOUTONS DIVERS
   ========================================================================== */
.zone-boutons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.zone-boutons .btn-connexion {
    font-size: 0.82rem;
    padding: 7px 16px;
    opacity: 0.7;
}
.zone-boutons .btn-connexion:hover { opacity: 1; }

/* ==========================================================================
   8. TOOLBARS & FILTRES
   ========================================================================== */
#toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 14px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border-bottom: none;
}

#input-recherche, #select-course {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-family: var(--font-body);
}

#input-recherche { flex: 1; min-width: 200px; }
#input-recherche:focus, #select-course:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-filtre, .btn-tri, #btn-filtre-non-envoye {
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.88rem;
    transition: var(--transition);
}

.btn-filtre.actif, .btn-tri.actif, #btn-filtre-non-envoye.actif {
    background: var(--accent);
    color: var(--bg-base);
    border-color: var(--accent);
    font-weight: 600;
}

#bandeau-selection {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 18px;
    background: rgba(240,165,0,0.06);
    border: 1px solid rgba(240,165,0,0.2);
    border-bottom: none;
    color: var(--accent-warm);
}

#btn-envoyer-mail {
    background: #2ea043;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
}
#btn-envoyer-mail:disabled { background: var(--text-muted); cursor: not-allowed; }

#btn-envoyer-mail-custom {
    background: var(--accent-alt);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
}
#btn-envoyer-mail-custom:disabled { background: var(--text-muted); cursor: not-allowed; }

#btn-refresh {
    background: var(--dark-blue, #1976d2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

#barre-info {
    padding: 8px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-top: none;
    font-size: 0.83rem;
    color: var(--text-secondary);
}

#compteur-resultats { font-weight: 700; color: var(--accent); }

/* ==========================================================================
   9. TABLEAU
   ========================================================================== */
.table-wrapper {
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow-x: auto;
    background: var(--bg-surface);
}

table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }

thead tr { background: var(--bg-elevated); }

th {
    padding: 12px 10px;
    text-align: left;
    border: 1px solid var(--border);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 10px;
    border: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text-primary);
}

tbody tr:hover { background-color: var(--bg-elevated) !important; }
tr.ligne-selectionnee { background-color: rgba(0,212,255,0.06) !important; }
tr.ligne-envoye { color: var(--text-muted); }

.tag-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
}
.tag-envoye  { background: rgba(46,160,67,0.15); color: #3fb950; border: 1px solid rgba(46,160,67,0.3); }
.tag-attente { background: rgba(240,165,0,0.15); color: var(--accent-warm); border: 1px solid rgba(240,165,0,0.3); }
.tag-course  { background: var(--bg-elevated); color: var(--text-secondary); border: 1px solid var(--border); font-size: 0.7rem; padding: 3px 8px; border-radius: var(--radius-pill); display: inline-block; }

.btn-toggle-selection {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.78rem;
    transition: var(--transition);
}
.btn-toggle-selection:hover { background: var(--accent); color: var(--bg-base); }

/* ==========================================================================
   10. FORMULAIRES & MODALES
   ========================================================================== */
.form-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-card);
}

.form-card h2, .form-card h3 { color: var(--text-primary); margin-bottom: 20px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.88rem; color: var(--text-secondary); font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.08);
}

.btn-primary {
    padding: 10px 22px;
    background: var(--accent);
    color: var(--bg-base);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}
.btn-primary:hover { background: #33ddff; box-shadow: var(--shadow-glow); }

.btn-secondary {
    padding: 10px 22px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}
.btn-secondary:hover { border-color: var(--text-secondary); color: var(--text-primary); }

.btn-danger {
    padding: 10px 22px;
    background: transparent;
    color: #ff4d4d;
    border: 1px solid rgba(255,77,77,0.4);
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}
.btn-danger:hover { background: rgba(255,77,77,0.08); border-color: #ff4d4d; }

/* Modale */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 560px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   11. NOTIFICATIONS
   ========================================================================== */
#notification-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 380px;
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    transition: var(--transition);
}

#notification-container.notif-success { background: rgba(46,160,67,0.15); border-color: #3fb950; }
#notification-container.notif-error   { background: rgba(255,77,77,0.15);  border-color: #ff4d4d; }
#notification-container.notif-info    { background: rgba(0,212,255,0.1);   border-color: var(--accent); }
#notification-container.notif-notification { background: var(--bg-surface); }

#notification-message { color: var(--text-primary); }

#notification-container.notification-hidden {
    transform: translateX(420px);
    opacity: 0;
    visibility: hidden;
}

@keyframes slideInRight  { from { transform: translateX(420px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideOutRight { from { transform: none; opacity: 1; } to { transform: translateX(420px); opacity: 0; } }

#notification-container.notification-visible { animation: slideInRight 0.3s ease-out forwards; }
#notification-container.notification-hidden  { animation: slideOutRight 0.3s ease-in forwards; }

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.footer-bigouden {
    background: var(--bg-surface);
    background-image: var(--img-footer-bg);
    background-size: cover;
    background-position: center;
    padding: 24px 5%;
    text-align: center;
    border-top: 1px solid var(--border);
    position: relative;
}

.footer-bigouden::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(14,17,23,0.72);
    pointer-events: none;
}

.footer-bigouden > * { position: relative; z-index: 1; color: var(--text-secondary); }

.banniere-footer-large { height: 80px !important; width: auto; opacity: 0.85; }

/* ==========================================================================
   13. ADMIN — GRILLE & SPÉCIFIQUES
   ========================================================================== */
.grid-apps-admin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto 40px auto;
}

.form-card-reset { border-top: 3px solid var(--accent-warm); }

/* ==========================================================================
   14. PREVIEW CSV
   ========================================================================== */
.preview-zone { margin-top: 40px; animation: fadeIn 0.4s ease-out; }

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

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.preview-info-badge {
    background: rgba(0,212,255,0.12);
    color: var(--accent);
    border: 1px solid rgba(0,212,255,0.25);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.preview-table-wrapper {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow-x: auto;
}

.preview-th {
    background: var(--bg-elevated) !important;
    color: var(--text-secondary) !important;
    padding: 10px 10px !important;
    text-align: left;
    font-weight: 600;
    border: 1px solid var(--border) !important;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}

.preview-td {
    padding: 10px !important;
    border: 1px solid var(--border) !important;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.cell-empty { color: var(--text-muted); font-style: italic; }
.preview-table tbody tr:hover { background-color: var(--bg-elevated) !important; }
.preview-note { margin-top: 12px; font-style: italic; color: var(--text-muted); font-size: 0.8rem; }

/* ==========================================================================
   15. UTILITAIRES
   ========================================================================== */
.hidden { display: none !important; }

#zoneMessage { margin-top: 20px; }

/* Scrollbar custom */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }



/* ==========================================================================
   16. TABLEAU SYNTHESE E4
   ========================================================================== */

   /* --- GESTION DU FOND FACILE --- */
.full-screen-bg {
    background-color: #000000 !important; /* CHANGE ICI : #000 pour noir, #fff pour blanc */
    padding: 40px 0 !important; /* Un peu d'espace en haut et en bas */
}

/* Conteneur principal pour centrer le contenu */
/* On élargit le conteneur pour le portfolio */
.container-synthese {
    max-width: 100%; /* On autorise le conteneur à prendre toute la largeur */
    width: 90%;
    padding: 10;
    margin: 20px auto;
    text-align: center;
    font-family: Arial, sans-serif;
    padding: 0 15px; /* Sécurité pour le mobile */
}

/* S'assure que le titre H3 est noir aussi */
.container-synthese h3 {
    color: #000000 !important;
}

/* Optimisation de l'enveloppe d'image */
.image-wrapper {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 5px; /* Réduit pour laisser plus de place à l'image */
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(243, 58, 58, 0.15);
    margin-bottom: 30px;
    overflow: hidden; /* Évite les débordements */
}

/* Rendre l'image vraiment imposante */
.img-tableau {
    width: 100%;      /* Force la largeur à 100% du parent */
    height: auto;     /* Garde le ratio pour ne pas écraser le texte */
    display: block;
    margin: 0 0 20px 0; /* Espace entre les différentes images */
    border-bottom: 2px solid #eee; /* Séparation visuelle entre les captures */
}

.img-tableau:last-child {
    border-bottom: none;
    margin-bottom: 0;
}


/* Si les images ne chargent pas, on affiche un cadre pour le voir */
.img-tableau {
    transition: transform 0.3s ease;
    cursor: zoom-in;
    min-height: 50px;
    background-color: #eee; /* Gris clair si l'image est absente */
    /*border: 1px dashed #000;*/
}

.img-tableau:hover {
    transform: scale(1.00); /* Léger agrandissement au survol */
}

/* Légende sous les images *//* Légende */
/* Force l'affichage de TOUTES les légendes en NOIR */
.legende {
    color: #000000 !important;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    margin: 10px 0;
    font-weight: bold; /* Pour être sûr de les voir */
}

.legende-blanc {
    color: #ffffff !important;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    margin: 10px 0;
    font-weight: bold; /* Pour être sûr de les voir */
}

.titre-blanc {
    color: #ffffff !important;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    margin: 10px 0;
    font-weight: bold; /* Pour être sûr de les voir */
}

/* --- FORCE LE NOIR PUR SUR TOUT LE TABLEAU --- */
.tableau-competences, 
.tableau-competences th, 
.tableau-competences td, 
.tableau-competences h2, 
.tableau-competences li, 
.tableau-competences span {
    color: #000000 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* --- TITRES H2 (Correction visibilité) --- */
.tableau-competences h2 {
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: 800 !important; /* Très gras */
    display: block !important;
}

/* --- COLONNE DE DROITE (Gras) --- */
/* On cible la cellule qui n'a PAS la classe .titre-bloc */
.tableau-competences td:not(.titre-bloc) {
    font-weight: bold !important; 
}

/* --- STRUCTURE ET DESIGN LÉGER --- */
.tableau-competences {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    background-color: #ffffff;
}

.tableau-competences th {
    background-color: #f2f2f2; 
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #000000; /* Ligne noire sous l'entête */
    color: #000000 !important; /* Force le noir pur */
    font-weight: bold !important; /* Force le gras */
}

.tableau-competences td {
    padding: 15px;
    border-bottom: 1px solid #eeeeee;
    vertical-align: top;
    line-height: 1.5;
}

/* Couleurs de fond alternées (très subtiles) */
.tableau-competences tr:nth-child(odd) {
    background-color: #ffffff;
}
.tableau-competences tr:nth-child(even) {
    background-color: #fafafa; /* Démarquage ultra léger */
}

/* Survol de ligne */
.tableau-competences tr:hover {
    background-color: #f0f0f0 !important;
}

/* Colonne de gauche (Titres de blocs) */
.titre-bloc {
    width: 40%;
    font-weight: bold;
    border-right: 1px solid #f0f0f0;
}

.liste-activites {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.liste-activites li {
    margin-bottom: 8px;
}

/* --- LIENS (Doivent rester visibles mais en noir gras) --- */
.tableau-competences a {
    color: #000000 !important;
    text-decoration: underline;
    font-weight: 900 !important;
}

.tableau-competences a:hover {
    background-color: #000000;
    color: #ffffff !important;
}

/* Style pour le lien de téléchargement */
.btn-download {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #f39c12; /* Orange pour attirer l'oeil */
    color: #ffffff !important; /* Texte blanc sur le bouton */
    text-decoration: none !important;
    border-radius: 5px;
    font-weight: bold !important;
    transition: background 0.3s ease;
}

.btn-download:hover {
    background-color: #e67e22;
    transform: translateY(-2px); /* Petit effet de levée au survol */
}



/* ==========================================================================
   17. TABLEAU SYNTHESE E4 : REALISATIONS .HTML 
   ========================================================================== */



/* ── Scoped sous .rn1 pour ne pas polluer le portfolio ── */
.rn1 {
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  color: var(--text-primary, #e6edf3);
  padding: .5rem 0 2rem;
}

/* ── BLOC LABEL (tout en haut) ── */
.rn1 .bloc-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent, #00d4ff);
  background: rgba(0,212,255,.08);
  border: 1px solid rgba(0,212,255,.2);
  padding: .3rem .85rem;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}
.rn1 .bloc-label::before {
  content: '//';
  opacity: .5;
}

/* ── TITRE PRINCIPAL (Réalisation N1) ── */
.rn1 .rn1-title {
  font-family: 'Syne', 'DM Sans', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--text-primary, #e6edf3);
  line-height: 1.1;
  margin-bottom: .5rem;
}
.rn1 .rn1-title em {
  color: var(--accent, #00d4ff);
  font-style: normal;
}

/* ── SOUS-TITRE PROJET ── */
.rn1 .rn1-subtitle {
  font-size: .9rem;
  color: var(--text-muted, #8b949e);
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

/* ══ SÉPARATEUR HORIZONTAL ══
   Utilise la class .rn1-sep pour l'afficher,
   sinon il est invisible */
.rn1 .rn1-sep {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.75rem 0;
}
.rn1 .rn1-sep::before,
.rn1 .rn1-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(0,212,255,.25),
    transparent
  );
}
.rn1 .rn1-sep span {
  font-family: 'JetBrains Mono', monospace;
  font-size: .6rem;
  color: rgba(0,212,255,.4);
  letter-spacing: .15em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── SECTION HEADERS (Ce que j'ai fait, Technologies…) ── */
.rn1 .section-label {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .85rem;
}
.rn1 .section-label::before {
  content: '';
  display: block;
  width: 3px;
  height: 1em;
  background: var(--accent, #00d4ff);
  border-radius: 2px;
  flex-shrink: 0;
}
.rn1 .section-label h5 {
  font-family: 'Syne', 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-primary, #e6edf3);
  margin: 0;
}

/* ── CORPS DU CONTENU ── */
.rn1 .rn1-body {
  font-size: .88rem;
  color: var(--text-secondary, #adbac7);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ── TECH LIST ── */
.rn1 .tech-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.rn1 .tech-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  color: var(--text-secondary, #adbac7);
}
.rn1 .tech-list li::before {
  content: '▸';
  color: var(--accent, #00d4ff);
  font-size: .65rem;
}

/* ── GRILLE CONTENU + IMAGES ── */
.rn1 .rn1-grid {
  display: grid;
  gap: 2rem;
}
/* Sans images : 1 colonne */
.rn1 .rn1-grid.no-media {
  grid-template-columns: 1fr;
}
/* Avec images : 2 colonnes, hauteurs égales */
.rn1 .rn1-grid.with-media {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.rn1 .rn1-media-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/* Toutes les images s'étirent à la même hauteur */
.rn1 .rn1-media-col img,
.rn1 .rn1-media-col .rn1-yt {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.08);
  display: block;
  object-fit: cover;
}
/* Miniature YouTube */
.rn1 .rn1-yt {
  position: relative;
  display: block;
  text-decoration: none;
}
.rn1 .rn1-yt img { border-radius: 6px; }
.rn1 .rn1-yt .play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3);
  border-radius: 6px;
}
.rn1 .rn1-yt .play span {
  width: 46px; height: 46px;
  background: rgba(0,212,255,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; padding-left: 3px;
  color: #000;
}

/* ── TEXTE LEAD — plus lisible, légèrement plus grand ── */
.rn1 .rn1-body--lead {
  font-size: .98rem;
  color: var(--text-primary, #e6edf3);
  font-weight: 500;
  line-height: 1.65;
  border-left: 2px solid rgba(0,212,255,.3);
  padding-left: .85rem;
  margin-bottom: 1rem;
}

/* ── BLOC DÉCALÉ — explication secondaire ── */
.rn1 .rn1-indent {
  margin-left: 1.5rem;
  padding: .85rem 1rem;
  border-left: 1px solid rgba(255,255,255,.08);
  background: rgba(0,212,255,.03);
  border-radius: 0 4px 4px 0;
  margin-bottom: 1rem;
}
.rn1 .rn1-indent p {
  font-size: .84rem;
  color: var(--text-muted, #8b949e);
  line-height: 1.75;
  margin: 0;
}

@media (max-width: 640px) {
  .rn1 .rn1-grid.with-media { grid-template-columns: 1fr; }
  .rn1 .rn1-title { font-size: 1.4rem; }
}

