/* ==========================================================================
   1. VARIABLES GLOBALES & RESET (Inspiration Minimaliste)
   ========================================================================== */
:root {
    --bg-color: #f9f9fb;        /* Fond blanc cassé haut de gamme */
    --text-color: #111111;      /* Texte presque noir pour le confort visuel */
    --text-muted: #555555;      /* Pour les descriptions et sous-titres */
    --accent-color: #000000;    /* Le noir pur comme couleur d'accentuation */
    --border-color: #e5e7eb;    /* Bordures très discrètes */
    --card-bg: #ffffff;         /* Fond des cartes blanc pur */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html, body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    overflow-x: hidden;
}

/* ==========================================================================
   2. HEADER & NAVIGATION ÉPURÉE
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(249, 249, 251, 0.75); /* Transparent avec flou moderne */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.title_bar a img {
    height: 35px; /* Logo plus discret, plus pro */
    display: block;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

.navbar ul li a {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 15px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.navbar ul li a:hover {
    opacity: 0.6; /* Effet de survol minimaliste très élégant */
}

.menu-mobile {
    display: none;
    cursor: pointer;
    width: 25px;
}

/* --- Logo Monogramme Fusionné --- */
.logo_premium {
    display: flex;
    align-items: center;
    gap: 15px; /* Espace entre le monogramme et le nom */
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--font-main);
}

.logo_premium:hover .monogram_ac {
    transform: scale(1.05); /* Léger effet dynamique au survol */
}

/* Le conteneur du monogramme */
.monogram_ac {
    position: relative;
    width: 48px;
    height: 48px;
    background-color: var(--accent-color); /* Fond noir pur */
    color: #ffffff; /* Lettres blanches */
    border-radius: 4px; /* Coins légèrement adoucis style icône app */
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    font-weight: 900; /* Extra Gras */
    font-size: 28px;
    letter-spacing: -3px; /* Force le rapprochement des lettres */
    overflow: hidden;
    transition: transform 0.2s ease;
}

/* Ajustement précis de la lettre A */
.letter_a {
    position: relative;
    left: -2px; /* Décale le A vers la gauche */
    z-index: 2;
}

/* Ajustement précis de la lettre C pour la fusion */
.letter_c {
    position: relative;
    left: -3px; /* Imbrique le C dans le A */
    color: rgba(255, 255, 255, 0.85); /* Légère transparence pour accentuer la superposition */
    z-index: 1;
}

/* Le nom à côté du monogramme */
.logo_name {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase; /* Donne un côté très institutionnel/studio */
    letter-spacing: 2px; /* Grand espacement des lettres pour le style premium */
    color: var(--text-color);
}

/* --- Menu Déroulant (Dropdown) --- */
.dropdown {
    position: relative;
}

.arrow {
    font-size: 10px;
    margin-left: 2px;
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Le menu caché par défaut */
.dropdown_menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 0;
    min-width: 220px;
    list-style: none;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.dropdown_menu li {
    width: 100%;
}

.dropdown_menu li a {
    display: block;
    padding: 12px 20px !important;
    font-size: 13px !important;
    color: var(--text-muted) !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

.dropdown_menu li a:hover {
    background-color: var(--bg-color);
    color: var(--text-color) !important;
    opacity: 1 !important;
}

/* Effet au Hover sur l'élément parent */
.dropdown:hover .dropdown_menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

/* ==========================================================================
   3. STRUCTURE DU CONTENU PRINCIPAL
   ========================================================================== */
.main {
    max-width: 1200px;
    margin: 80px auto 0 auto;
    padding: 0 40px;
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Titres de sections */
.acc_desc h1 {
    font-size: 32px;
    margin: 120px 0 40px 0;
    text-align: left;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 15px;
}

/* ==========================================================================
   4. SECTION INTRO (HERO SECTION) avec fond dégradé immersif
   ========================================================================== */
.acc_debut {
    height: calc(85vh - 80px); /* Un poil plus grand pour bien profiter du fond */
    display: flex;
    align-items: center;
    
    /* Dégradé moderne : un halo lumineux centré en haut qui s'estompe vers le bas */
    background: radial-gradient(100% 100% at 50% 0%, #edeef4 0%, var(--bg-color) 100%);
    
    /* On élargit la section pour qu'elle prenne tout l'écran visuellement */
    margin-left: -40px;
    margin-right: -40px;
    padding: 0 40px;
}

.acc_intro {
    width: 100%;
}

.acc_intro h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 10px;
    margin-bottom: 20px;
}

.acc_intro p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 650px;
    color: var(--text-muted);
}

.visitor_count {
    font-size: 14px !important;
    margin-top: 15px;
    font-style: italic;
    opacity: 0.7;
}

/* Bouton d'action minimaliste */
.acc_intro a {
    display: inline-block;
    margin-top: 40px;
    text-decoration: none;
}

.acc_intro a p {
    background-color: var(--accent-color);
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    padding: 15px 30px;
    border-radius: 4px;
    border: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.acc_intro a p:hover {
    background-color: #222222;
    transform: translateY(-2px);
}

/* ==========================================================================
   5. SECTION À PROPOS & EXPÉRIENCES (Flexbox moderne)
   ========================================================================== */
.about_me_txt {
    width: 60%;
    float: left;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-muted);
    padding-right: 40px;
}

.about_me_img {
    width: 40%;
    float: right;
    display: flex;
    justify-content: flex-end;
}

.about_me_img img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%; /* Image en cercle, très moderne */
    filter: grayscale(100%); /* Effet noir et blanc premium */
    transition: filter 0.3s ease;
}

.about_me_img img:hover {
    filter: grayscale(0%);
}

.about_exp {
    margin-top: 60px;
    background: none; /* Nettoyage de l'ancien fond papier */
    height: auto;
}

.about_exp h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--text-color);
}

.about_exp ul {
    list-style: none;
}

.about_exp li {
    margin-bottom: 35px;
    border-left: 3px solid var(--border-color);
    padding-left: 20px;
}

.about_exp li strong {
    font-size: 18px;
    color: var(--text-color);
}

.about_exp li small {
    display: block;
    color: var(--text-muted);
    margin: 5px 0 10px 0;
    font-size: 14px;
}

.about_exp li p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ==========================================================================
   6. NOUVEAU PANNEAU DES RÉALISATIONS (Grid Layout)
   ========================================================================== */
.projects_panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes parfaites */
    gap: 30px;
    margin-bottom: 60px;
}

.project_card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.04);
}

.project_image {
    height: 220px;
    background-color: #eaeaea; /* Devient le fond si pas d'image */
    overflow: hidden;
}

.project_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.project_info {
    padding: 30px;
}

.project_tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.project_info h3 {
    font-size: 20px;
    margin: 10px 0;
}

.project_info p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project_tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project_tech span {
    font-size: 12px;
    background-color: var(--bg-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   7. COMPÉTENCES (Flexbox moderne au lieu de inline-grid)
   ========================================================================== */
.about_comp {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.about_comp div {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    flex: 1;
    height: auto;
    width: auto;
    margin: 0;
    text-align: left;
}

.about_comp h3 {
    font-size: 16px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about_comp p {
    font-size: 14px !important;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ==========================================================================
   8. SECTION ATOUTS (Ancien "Pourquoi me choisir")
   ========================================================================== */
.choix_gauche, .choix_droit {
    width: 48%;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 100px;
}

.choix_gauche { float: left; }
.choix_droit { float: right; }

.choix_gauche h3, .choix_droit h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.choix_gauche p, .choix_droit p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
footer {
    border-top: 1px solid var(--border-color);
    background-color: #ffffff;
    padding: 40px 0;
    clear: both;
}

.footbar ul {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footbar ul li a {
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footbar ul li a:hover {
    color: var(--text-color);
}

/* ==========================================================================
   10. CONSERVATION DE TES ANIMATIONS (Glitch & Scroll Reveal)
   ========================================================================== */
.main .main_title {
    position: relative;
    font-size: 64px; /* Plus grand pour l'effet de style */
}

.main .main_title::after {
    animation: 2s linear 0s infinite alternate-reverse none running noise-anim;
    left: -3px;
    text-shadow: rgb(255, 105, 180) 3px 0px;
}

.main .main_title::before, .main .main_title::after {
    content: attr(data-text);
    position: absolute;
    top: 0px;
    width: 100%;
    height: 100%;
}

.main .main_title::before {
    text-shadow: rgb(0, 255, 255) -1px 0px;
    left: 2px;
    animation: 15s linear 0s infinite alternate-reverse none running noise-anim-2;
}

.anim_reveal {
    transform: translateY(60px); /* Transition plus douce */
    opacity: 0;
    transition: 1s cubic-bezier(0.215, 0.610, 0.355, 1) all;
}

.active {
    transform: translateY(0);
    opacity: 1;
}

/* Garder les Keyframes inchangées */
@keyframes noise-anim { 0% { clip-path: inset(29% 0px 25%); } 5% { clip-path: inset(9% 0px 38%); } 10% { clip-path: inset(96% 0px 1%); } 15% { clip-path: inset(75% 0px 23%); } 20% { clip-path: inset(46% 0px 50%); } 25% { clip-path: inset(3% 0px 46%); } 30% { clip-path: inset(82% 0px 2%); } 35% { clip-path: inset(88% 0px 1%); } 40% { clip-path: inset(91% 0px 8%); } 45% { clip-path: inset(96% 0px 2%); } 50% { clip-path: inset(59% 0px 38%); } 55% { clip-path: inset(41% 0px 53%); } 60% { clip-path: inset(21% 0px 47%); } 65% { clip-path: inset(89% 0px 4%); } 70% { clip-path: inset(1% 0px 95%); } 75% { clip-path: inset(86% 0px 4%); } 80% { clip-path: inset(95% 0px 5%); } 85% { clip-path: inset(54% 0px 36%); } 90% { clip-path: inset(70% 0px 27%); } 95% { clip-path: inset(6% 0px 16%); } 100% { clip-path: inset(95% 0px 2%); } }
@keyframes noise-anim-2 { 0% { clip-path: inset(76% 0px 21%); } 5% { clip-path: inset(54% 0px 7%); } 10% { clip-path: inset(55% 0px 29%); } 15% { clip-path: inset(89% 0px 3%); } 20% { clip-path: inset(33% 0px 40%); } 25% { clip-path: inset(17% 0px 56%); } 30% { clip-path: inset(37% 0px 51%); } 35% { clip-path: inset(38% 0px 19%); } 40% { clip-path: inset(93% 0px 4%); } 45% { clip-path: inset(44% 0px 14%); } 50% { clip-path: inset(53% 0px 26%); } 55% { clip-path: inset(67% 0px 11%); } 60% { clip-path: inset(85% 0px 13%); } 65% { clip-path: inset(27% 0px 37%); } 70% { clip-path: inset(87% 0px 4%); } 75% { clip-path: inset(10% 0px 8%); } 80% { clip-path: inset(51% 0px 27%); } 85% { clip-path: inset(10% 0px 60%); } 90% { clip-path: inset(83% 0px 3%); } 95% { clip-path: inset(23% 0px 55%); } 100% { clip-path: inset(1% 0px 81%); } }

/* Garder ton curseur sur grand écran */
@media (min-width: 980px) {
    .no-link .curs_point { width: 8px; height: 8px; border-radius: 100%; background-color: #000; position: fixed; transform: translate(-50%, -50%) scale(1); pointer-events: none; }
    .no-link .curs_hexa1 { width: 35px; height: 35px; border: 1px solid #111; transition: all 150ms ease-out; pointer-events: none; left: 0; top: 0; }
    .no-link .curs_hexa2 { width: 55px; height: 55px; border: 1px solid #ccc; transition: all 300ms ease-out; pointer-events: none; left: 0; top: 0; }
    .no-link .curs_point, .no-link .curs_hexa1, .no-link .curs_hexa2 { transform: translate(-50%, -50%) scale(1); pointer-events: none; position: fixed; border-radius: 50%; z-index: 9222; }
}

/* ==========================================================================
   11. RESPONSIVE DESIGN (Mobile & Tablettes)
   ========================================================================== */
@media screen and (max-width: 980px) {
    .navbar { display: none; } /* Pour simplifier ici, à lier avec ton bouton JS */
    .about_me_txt, .about_me_img { width: 100%; float: none; }
    .about_me_img { justify-content: center; margin-top: 30px; }
    .projects_panel { grid-template-columns: 1fr; }
    .about_comp { flex-direction: column; }
    .choix_gauche, .choix_droit { width: 100%; float: none; margin-bottom: 20px; }
    .main .main_title { font-size: 40px; }
}

/* ==========================================================================
   12. PAGE DOCUMENTS (Mise en page & Onglets)
   ========================================================================== */
.docs_section {
    padding-top: 40px;
    margin-bottom: 80px;
}

.docs_intro {
    margin-bottom: 40px;
}

.docs_intro h1 {
    font-size: 32px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.docs_intro p {
    color: var(--text-muted);
    font-size: 16px;
}

/* Le mini-menu d'onglets */
.docs_tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.tab_btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tab_btn:hover {
    color: var(--text-color);
}

/* Ligne noire sous l'onglet actif */
.tab_btn.active {
    color: var(--text-color);
    font-weight: 600;
}

.tab_btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

/* Gestion de l'affichage des contenus */
.tab_content {
    display: none; /* Cache par défaut */
}

.tab_content.active {
    display: block; /* Affiche si actif */
}

/* Le cadre du PDF (Viewer) */
.doc_viewer_wrapper {
    width: 100%;
    height: 700px; /* Grande hauteur confortable pour lire le CV */
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.doc_viewer_wrapper iframe {
    border: none;
}

/* Les boutons d'actions en dessous */
.doc_actions {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.btn_download {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 25px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.btn_download:hover {
    background-color: #222222;
}

.btn_secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 25px;
    border-radius: 4px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn_secondary:hover {
    background-color: #f0f0f2;
    border-color: #cccccc;
}

/* Ajustement mobile */
@media screen and (max-width: 768px) {
    .doc_viewer_wrapper { height: 450px; }
    .doc_actions { flex-direction: column; }
}

/* ==========================================================================
   13. PAGE CONTACT (Formulaire épuré haut de gamme)
   ========================================================================== */
.contact_section {
    padding-top: 40px;
    margin-bottom: 80px;
    max-width: 800px; /* On réduit la largeur du formulaire pour le rendre élégant */
    margin-left: auto;
    margin-right: auto;
}

.contact_header {
    margin-bottom: 40px;
}

.contact_header h1 {
    font-size: 32px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.contact_header p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

/* Le conteneur du formulaire */
.contact_container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.01);
}

/* Organisation en ligne (Pour Nom / Prénom) */
.form_row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form_row .form_group {
    flex: 1;
    margin-bottom: 0; /* Annule le margin pour la ligne */
}

/* Structure de chaque groupe d'input */
.form_group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.form_group label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-color);
    margin-bottom: 8px;
}

/* Style des champs de saisie (Inputs et Textarea) */
.form_group input[type="text"],
.form_group input[type="email"],
.form_group textarea {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--text-color);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form_group textarea {
    resize: vertical; /* Permet d'agrandir uniquement en hauteur */
}

/* Effet de focus premium au clic */
.form_group input:focus,
.form_group textarea:focus {
    border-color: var(--accent-color);
    background-color: #ffffff;
}

/* Bouton d'envoi */
.form_submit {
    margin-top: 10px;
}

.form_submit input[type="submit"] {
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 500;
    padding: 15px 35px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    width: 100%; /* S'étale sur tout le bas sur mobile, très ergonomique */
}

.form_submit input[type="submit"]:hover {
    background-color: #222222;
    transform: translateY(-1px);
}

/* Messages d'alerte (Succès / Erreur) */
.msg_status {
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 25px;
}

.msg_status.success {
    background-color: #e6f4ea;
    color: #137333;
    border: 1px solid #c2e7cd;
}

.msg_status.error {
    background-color: #fce8e6;
    color: #c5221f;
    border: 1px solid #fad2cf;
}

/* Ajustement responsive mobile */
@media screen and (max-width: 600px) {
    .form_row {
        flex-direction: column;
        gap: 25px;
    }
    .contact_container {
        padding: 20px;
    }
}

/* ==========================================================================
   14. PAGE PORTFOLIO (Grille de photos / Projets)
   ========================================================================== */
.portfolio_section {
    padding-top: 40px;
    margin-bottom: 80px;
}

.portfolio_header {
    margin-bottom: 50px;
}

.portfolio_header h1 {
    font-size: 32px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.portfolio_header p {
    color: var(--text-muted);
    font-size: 16px;
}

/* La Grille */
.portfolio_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes massives, très haut de gamme */
    gap: 40px;
}

.gallery_item {
    text-decoration: none;
    color: #ffffff;
    display: block;
}

.gallery_thumb {
    position: relative;
    width: 100%;
    height: 450px; /* Grande hauteur pour les visuels */
    background-color: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.gallery_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Le voile noir au survol */
.gallery_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    align-items: flex-end; /* Texte en bas à gauche */
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.overlay_content h3 {
    font-size: 24px;
    margin: 8px 0 15px 0;
    font-weight: 600;
}

.item_category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
}

.item_link {
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 2px;
}

/* HOVER EFFECTS */
.gallery_item:hover img {
    transform: scale(1.04); /* Zoom très léger et fluide */
}

.gallery_item:hover .gallery_overlay {
    opacity: 1;
    visibility: visible;
}

@media screen and (max-width: 850px) {
    .portfolio_grid { grid-template-columns: 1fr; } /* 1 seule colonne sur mobile */
    .gallery_thumb { height: 350px; }
    .gallery_overlay { opacity: 1; visibility: visible; } /* Toujours visible sur mobile */
}

/* ==========================================================================
   15. PAGE DÉTAIL PROJET (Case Study)
   ========================================================================== */
.project_detail_section {
    padding-top: 30px;
    margin-bottom: 100px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.back_to_portfolio {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 30px;
    transition: color 0.2s ease;
}

.back_to_portfolio:hover {
    color: var(--text-color);
}

.project_detail_header h1 {
    font-size: 38px;
    line-height: 1.3;
    margin: 10px 0 20px 0;
    letter-spacing: -0.03em;
}

.project_meta_tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.project_subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-muted);
}

.project_hero_image {
    width: 100%;
    height: 450px;
    background-color: #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin: 40px 0;
}

.project_hero_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Grille technique */
.project_meta_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 40px;
    margin-bottom: 50px;
}

.meta_block h4 {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.meta_block p {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.project_external_btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    text-align: center;
}

.project_external_btn:hover {
    background-color: #222222;
}

/* Contenu rédactionnel */
.project_body_content .content_section {
    margin-bottom: 40px;
}

.project_body_content h2 {
    font-size: 22px;
    margin-bottom: 15px;
}

.project_body_content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
}

.project_body_content ul {
    margin-top: 15px;
    padding-left: 20px;
}

.project_body_content li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
    .project_meta_grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .project_detail_header h1 { font-size: 28px; }
    .project_hero_image { height: 250px; }
}