/* --- VARIABLES DE TA DA --- */
:root {
    --bg-body: #fef6dd; /* Ton fond beige clair */
    --bg-card: #ffffff;
    --primary-gold: #b89650; /* Ton doré */
    --text-dark: #333333;
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- MASQUER LA BARRE DE DÉFILEMENT (Tout en gardant le scroll actif) --- */

/* Pour Chrome, Safari, Opera et Edge (moteur WebKit/Blink) */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

/* Pour Firefox et les anciens navigateurs */
html,
body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE et Edge Legacy */
}

html,
body {
    overflow-x: hidden; /* Empêche physiquement la page de déborder sur les côtés */
    max-width: 100vw; /* Verrouille la largeur à 100% de l'écran, pas un pixel de plus */
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-body);
    /* Le pattern RPG : une petite grille de points dorés clairs */
    background-image: radial-gradient(#d1c5b4 1.5px, transparent 1.5px);
    background-size: 25px 25px;
    color: var(--text-dark);
    padding: 1rem;
}

/* --- LE LAYOUT MAÎTRE --- */
.layout-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem; /* Un peu plus d'espace entre les deux blocs */
    max-width: 1400px; /* C'EST ÇA QUI POUSSE TA SIDEBAR À GAUCHE */
    width: 95%; /* Utilise presque tout l'écran */
    margin: 0 auto;
    align-items: start;
}

/* --- LA SIDEBAR (Mise à jour) --- */
.sidebar {
    background: #ffffff;
    border: 2px solid var(--primary-gold);
    border-radius: var(--border-radius);
    padding: 0 2rem 2rem 2rem; /* Pas de padding en haut pour laisser la place à l'image */
    text-align: center;
    position: sticky;
    top: 4rem;
    margin-top: 3rem; /* Espace nécessaire pour l'avatar qui dépasse */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-rectangle {
    /* ... garde tout ton CSS existant pour cette classe ... */

    /* LA LIGNE MAGIQUE POUR SAUVER CSS GRID : */
    min-width: 0;

    /* Et une petite sécurité pour couper les longs mots si besoin : */
    overflow-wrap: break-word;
}

.sidebar,
.content-rectangle {
    background: var(--bg-card);
    border: 3px solid var(--text-dark); /* Bordure noire assumée */
    border-radius: 8px; /* Angles plus vifs */
    box-shadow: 8px 8px 0px var(--primary-gold); /* L'ombre 3D massive */
}

/* Le trick pro pour l'avatar qui dépasse */
.avatar-wrapper {
    margin-top: -3rem;
    background: var(--bg-body);
    padding: 4px;
    border-radius: 360px; /* Angles vifs */
    display: inline-block;
    margin-bottom: 1rem;
}

.avatar {
    width: 110px;
    height: 110px;
    border-radius: 360px;
    padding: 3px;
    border: 1px solid var(--primary-gold);
    display: block;
    object-fit: cover;
    background: #fef6dd; /* Au cas où ton image a de la transparence */
}

.sidebar-name {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 800;
}

.sidebar-title {
    background: var(--bg-body);
    border: 2px solid var(--primary-gold);
    border-radius: 8px;
    padding: 0.6rem 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    font-weight: 500;
    width: 100%;
}

/* --- ICÔNES SOCIAUX --- */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-icons a {
    background-color: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--text-dark);
    border-radius: 50%;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.social-icons a:hover {
    background: var(--primary-gold);
    color: white;
    border-color: var(--primary-gold);
    transform: translateY(-3px);
}

/* --- BOÎTE DE CONTACT --- */
.contact-box {
    background: var(--bg-body);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    width: 100%;
    margin-bottom: 2rem;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 2px dotted #d1c5b4; /* Ta fameuse ligne en pointillés */
    font-size: 0.9rem;
}

.contact-item.no-border {
    border-bottom: none;
}

/* --- CORRECTION DU DÉBORDEMENT DE TEXTE --- */
.contact-text {
    overflow-wrap: anywhere; /* Autorise le texte à se couper s'il touche le bord */
    word-break: break-word; /* Sécurité supplémentaire pour les vieux navigateurs */
    line-height: 1.4; /* On aère un peu au cas où ça passe sur deux lignes */
}

.contact-icon {
    background: #e3dbcc; /* Le petit fond gris/beige pour l'icône */
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 1rem;
    color: var(--text-dark);
    flex-shrink: 0;
}

/* --- BADGES LINGUISTIQUES (Sidebar) --- */
.languages-badges {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.lang-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-dark);
    background: var(--bg-body);
    border-radius: 6px;
    text-transform: uppercase;
    transition: transform 0.2s ease;
    cursor: default;
}

/* Le style spécifique pour le drapeau */
.lang-flag {
    font-size: 2rem; /* Taille du drapeau */
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

/* --- BOUTON CV --- */
.btn-download {
    display: inline-block;
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--text-dark);
    border-radius: 8px;
    background: var(--bg-body);
    color: var(--text-dark);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-download:hover {
    background: var(--text-dark);
    color: white;
}

/* --- LE RECTANGLE DE CONTENU --- */
.content-rectangle {
    background: var(--bg-card);
    border: 2px solid var(--primary-gold);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    min-height: 85vh;
}

/* --- LES ONGLETS DE NAVIGATION (STYLE RPG / PIXEL 3D) --- */
.tabs-navigation {
    display: flex;
    gap: 1.2rem;
    border-bottom: 3px dashed #d1c5b4; /* Ligne d'aventure façon carte au trésor */
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.tabs-navigation a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 800;
    padding: 0.6rem 1.5rem;
    border-radius: 6px; /* Des angles plus vifs */
    background: #ffffff;
    border: 2px solid var(--text-dark); /* Contour noir assumé */
    box-shadow: 4px 4px 0px var(--primary-gold); /* L'ombre 3D solide (sans flou) */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.1s ease; /* Transition ultra rapide pour l'effet mécanique */
}

/* Effet de survol (le bouton se soulève un peu plus) */
.tabs-navigation a:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--primary-gold);
    background: #fdfbf7;
}

/* L'ÉTAT ACTIF (Le bouton est pressé/enfoncé) */
.tabs-navigation a.active {
    transform: translate(4px, 4px); /* On le pousse vers le bas à droite */
    box-shadow: 0px 0px 0px var(--primary-gold); /* L'ombre disparaît */
    background: var(--primary-gold);
    color: white;
    border-color: var(--text-dark);
}

/* --- LE TEXTE DU CONTENU --- */
.page-content h2 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.page-content p {
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

/* --- TITRES DE SECTIONS --- */
.section-title {
    color: var(--primary-gold);
    font-size: 1.6rem;
    margin-bottom: 2rem;
    margin-top: 1rem;
    border-bottom: 2px solid #f0e6d2;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* --- LA TIMELINE --- */
.timeline {
    border-left: 3px solid var(--primary-gold);
    margin-left: 1rem;
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.timeline-item {
    position: relative;
}

/* Le petit point doré sur la ligne */
.timeline-item::before {
    content: "";
    position: absolute;
    left: -2.55rem; /* Ajuste légèrement si le point n'est pas centré sur la ligne */
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--bg-card);
    border: 3px solid var(--primary-gold);
    border-radius: 50%;
}

.timeline-date {
    display: inline-block;
    background: var(--bg-body);
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--primary-gold);
}

.timeline-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    font-weight: 800;
}

.timeline-subtitle {
    font-style: italic;
    color: #666;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-desc {
    line-height: 1.6;
    color: #444;
}

/* Lien vers les projets */
.btn-link-projet {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-link-projet:hover {
    color: var(--primary-gold);
    transform: translateX(5px);
}

/* --- CERTIFICATIONS --- */
.certifs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.certif-card {
    background: var(--bg-body);
    border: 1px solid #e3dbcc;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.certif-card i {
    color: var(--primary-gold);
    font-size: 1.5rem;
}

/* --- GRILLE DES COMPÉTENCES --- */
.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.skill-card {
    background: var(--bg-body);
    border: 1px solid #e3dbcc;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.skill-card h3 {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px dotted #e3dbcc;
    padding-bottom: 0.8rem;
}

/* Les petits badges technos */
.badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid #d1c5b4;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.tech-badge i {
    font-size: 1.1rem;
    /* On force les couleurs de certaines icônes pour le style */
}

/* --- SECTION MINDSET (Soft Skills) --- */
.mindset-section {
    background: linear-gradient(135deg, var(--bg-body), #fff);
    border: 2px solid var(--primary-gold);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.mindset-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Force strictement 2 colonnes ! */
    gap: 2rem;
}

.mindset-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mindset-item h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mindset-item h4 i {
    color: var(--primary-gold);
}

.mindset-item p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

/* --- FORMULAIRE DE CONTACT --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin-top: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-control {
    padding: 1rem;
    border: 2px solid #e3dbcc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-body);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(184, 150, 80, 0.2);
    background: var(--bg-card);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    background: var(--text-dark);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    align-self: flex-start;
}

.btn-submit:hover {
    background: var(--primary-gold);
    transform: translateY(-2px);
}

/* Les messages de retour JS */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 1rem;
    display: none; /* Masqué par défaut */
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* --- PAGE VEILLE --- */
.veille-intro {
    background: var(--bg-card);
    border-left: 4px solid var(--primary-gold);
    padding: 1.5rem 2rem;
    border-radius: 0 12px 12px 0;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.veille-intro h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.veille-intro p {
    color: #555;
    line-height: 1.6;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--bg-card);
    border: 2px solid #e3dbcc;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 25px rgba(184, 150, 80, 0.15);
}

.article-header {
    background: var(--bg-body);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e3dbcc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-gold);
    background: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    border: 1px solid var(--primary-gold);
}

.article-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-source {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #888;
    margin-bottom: 0.5rem;
    display: block;
}

.article-title {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Zone pensée pour tes notes d'oral */
.article-notes {
    background: #fdfbf7;
    border-left: 3px solid #ccc;
    padding: 1rem;
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.article-notes ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.btn-read {
    margin-top: auto; /* Pousse le bouton tout en bas */
    padding: 0.8rem;
    text-align: center;
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--primary-gold);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-read:hover {
    background: var(--primary-gold);
    color: white;
}

.intro-text strong {
    color: var(--primary-gold);
    font-weight: 700;
}

/* --- PAGE PROJETS --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: var(--bg-card);
    border: 2px solid #e3dbcc;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 20px rgba(184, 150, 80, 0.1);
}

.project-ribbon {
    position: absolute;
    top: 25px;
    left: -45px;
    background: #e3dbcc; /* Ton beige 'parchemin' */
    color: var(--text-dark);
    padding: 6px 40px;
    width: 190px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(-45deg);
    border-top: 2px solid var(--text-dark); /* DA RPG */
    border-bottom: 2px solid var(--text-dark);
    z-index: 10;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Le Badge de Statut en haut à droite */
.project-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 10;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.status-progress {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.project-header {
    background: #fdfbf7;
    padding: 2.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid #e3dbcc;
}

.project-header {
    margin-top: 1.8rem;
    padding-left: 0.5rem;
}

.project-header h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.project-date {
    font-size: 0.85rem;
    color: #888;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.project-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-desc {
    color: #555;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Les petits tags de technologies */
.project-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.p-badge {
    background: var(--bg-body);
    color: var(--primary-gold);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #e3dbcc;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-project {
    margin-top: auto;
    display: block;
    text-align: center;
    background: var(--bg-body);
    color: var(--text-dark);
    padding: 0.8rem;
    border: 2px solid var(--text-dark);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-project:hover {
    background: var(--text-dark);
    color: white;
}

/* --- UNIFICATION DA 3D : GALERIE DE PROJETS (Version intelligente) --- */
.projet-galerie {
    display: grid;
    /* On garde une grille flexible pour l'organisation générale */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem; /* Un bel espace entre les 'loots' */
    margin-bottom: 2.5rem;

    /* TRICK 1 : On aligne les éléments au début de leur cellule, pas centrés, 
       pour que les cartes de tailles différentes soient bien rangées */
    align-items: start;

    /* TRICK 2 : On centre les éléments horizontalement dans leur cellule grille */
    justify-items: center;
}

/* NOUVEAU CONTENEUR : La "Carte de Loot" s'adapte à l'image */
.projet-img-card {
    background-color: #fdfbf7;
    border: 3px solid var(--text-dark); /* Bordure épaisse RPG */
    border-radius: 6px;
    box-shadow: 6px 6px 0px var(--primary-gold); /* Ombre 3D */
    overflow: hidden;

    /* SOLUTION : On supprime aspect-ratio: 1/1 ! */

    /* TRICK 3 : On force le conteneur à ne pas être plus large que l'image 
       qu'il contient (shrink-wrap) */
    display: inline-block;
    width: auto;

    transition: all 0.2s ease;
}

/* Effet au survol (loot) sur la CARTE entière */
.projet-img-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0px var(--primary-gold);
}

/* STYLISATION DE L'IMAGE DANS LA CARTE */
.projet-detail-img {
    display: block; /* Supprime l'espace fantôme sous l'image */
    width: auto;
    max-width: 100%; /* L'image s'adapte à la largeur max de sa carte */
    height: auto;

    /* TRICK 4 : On met une hauteur max raisonnable pour ne pas que les 
       screenshots de téléphone prennent toute la hauteur de la page. 
       500px est un bon compromis pour un portfolio. */
    max-height: 500px;

    object-fit: contain; /* Toujours visible en entier, sans zoom */

    /* Nettoyage des anciennes propriétés */
    margin: 0;
    border: none;
    box-shadow: none;
}

/* --- UNIFICATION DA 3D : CARTES --- */
.skill-card,
.project-card,
.article-card {
    border: 2px solid var(--text-dark);
    border-radius: 6px;
    box-shadow: 4px 4px 0px var(--primary-gold);
    transition: all 0.1s ease;
}

/* L'effet de soulèvement au survol (le loot du RPG) */
.skill-card:hover,
.project-card:hover,
.article-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0px var(--primary-gold);
    border-color: var(
        --text-dark
    ); /* On force le noir au lieu de ta bordure dorée d'avant */
}

/* L'encart intro de la veille technologique */
.veille-intro {
    border: 2px solid var(--text-dark);
    border-left: 6px solid var(--primary-gold);
    box-shadow: 4px 4px 0px var(--primary-gold);
    border-radius: 6px;
}

/* --- UNIFICATION DA 3D : BOUTONS --- */
.btn-download,
.btn-submit,
.btn-project,
.btn-read {
    border: 2px solid var(--text-dark);
    border-radius: 6px;
    box-shadow: 3px 3px 0px var(--primary-gold);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.1s ease;
    background: var(--bg-body);
    color: var(--text-dark);
}

.btn-download:hover,
.btn-submit:hover,
.btn-project:hover,
.btn-read:hover {
    background: var(--primary-gold);
    color: white;
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px var(--text-dark); /* L'ombre devient noire au survol pour le contraste */
}

/* L'effet "Clic mécanique" (Active) */
.btn-download:active,
.btn-submit:active,
.btn-project:active,
.btn-read:active {
    transform: translate(3px, 3px);
    box-shadow: 0px 0px 0px transparent;
}

/* --- FOOTER --- */
.site-footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    border-top: 2px dashed #d1c5b4; /* Rappel de tes lignes pointillées */
    color: #888;
    font-size: 0.85rem;
}

.legal-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.5rem;
    display: inline-block;
    transition: color 0.2s ease;
}

.legal-link:hover {
    color: var(--primary-gold);
    text-decoration: underline;
}
/* ==========================================================================
   RESPONSIVE DESIGN (MOBILES, TABLETTES & PETITS ÉCRANS) 
   ========================================================================== */

/* --- POINT DE RUPTURE INTERMÉDIAIRE (PC Portables 13/15" : 1100px - 1400px) --- */
@media (min-width: 1100px) and (max-width: 1400px) {
    /* On sacrifie la symétrie 2x2 avant que le layout ne se brise */
    .mindset-grid,
    .skills-container,
    .projects-grid {
        grid-template-columns: 1fr !important;
    }

    /* On réduit légèrement l'espacement pour que le contenu respire */
    .skills-container {
        gap: 1.5rem;
    }

    .tabs-navigation {
        gap: 0.5rem; /* On resserre l'espace entre les boutons */
        justify-content: center; /* On les centre si jamais ils passent sur 2 lignes */
        flex-wrap: wrap;
    }

    .tabs-navigation a {
        padding: 0.5rem 1rem; /* On réduit le padding interne des boutons */
        font-size: 0.85rem; /* On diminue un poil la taille du texte */
    }
}

@media (max-width: 1100px) {
    /* On déclenche le mode mobile plus tôt ! */

    .layout-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 95%;
    }

    /* LA MAGIE EST ICI : min-width: 0 */
    .sidebar,
    .content-rectangle {
        min-width: 0;
        max-width: 100%;
    }

    .sidebar {
        position: relative;
        top: 0;
        margin-top: 3rem;
        padding: 0 1.5rem 1.5rem 1.5rem; /* Ajuste le padding si besoin */
    }

    .content-rectangle {
        padding: 1.5rem;
    }

    /* 3. Le Rectangle de contenu respire */
    .content-rectangle {
        padding: 1.5rem; /* On réduit le padding pour laisser la place au texte */
        width: 100%;
    }

    /* 4. Les Onglets Scrollables (Le trick de pro) */
    .tabs-navigation {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        padding-bottom: 1.5rem;
        padding-right: 1rem; /* Laisse la place pour l'ombre du dernier onglet */
        padding-left: 0.2rem;
    }

    .tabs-navigation::-webkit-scrollbar {
        display: none;
    }

    /* 5. LE VERROUILLAGE DES GRILLES INTERNES */
    /* On force TOUT à passer sur 1 seule colonne pour éviter les débordements */
    .projects-grid,
    .skills-container,
    .articles-grid,
    .mindset-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    /* Ajustement des textes pour mobile */
    .timeline {
        padding-left: 1.5rem;
    }

    .section-title {
        font-size: 1.3rem; /* Titres un peu plus petits sur mobile */
    }
}
