/* =============================================================
   DESIGNER-DRAWER.CSS — Fenêtre "Qui suis-je & me soutenir"
   Extrait de base.css pour être partagé entre base.html (layout
   connecté) et login.html (page publique, hors layout commun),
   sans dépendre du reste de base.css. Dépend uniquement des tokens
   --hub-* de parchemin-tokens.css.
   ============================================================= */
/* ==========================================================================
   VOLET LATÉRAL DE BASE (DRAWER) - DESIGNER PROFILE
   ========================================================================== */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(43, 35, 24, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 8vh 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.designer-drawer {
    width: 1000px;
    max-width: 95vw;
    background: var(--hub-surface);
    border: 2px solid var(--hub-border);
    border-radius: var(--hub-radius-lg);
    box-shadow: var(--hub-shadow-xl);
    outline: 1px solid rgba(139, 69, 19, 0.15);
    outline-offset: -6px;
    display: grid;
    grid-template-columns: 360px 1fr;
    grid-template-rows: minmax(0, 1fr);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--hub-text);
    position: relative;
}

/* Add the modal wooden pin */
.designer-drawer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 12px;
    background: #9d5c32;
    border-radius: 0 0 5px 5px;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.2), 0 1px 3px rgba(0,0,0,0.15);
    z-index: 10;
}

.drawer-overlay.active .designer-drawer {
    transform: translateY(0) scale(1);
}

.btn-close-drawer {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; cursor: pointer;
    transition: var(--hub-transition);
    background: var(--hub-surface); color: var(--hub-text-muted); border: 1px solid var(--hub-border);
    box-shadow: var(--hub-shadow-sm);
    z-index: 10;
}
.btn-close-drawer:hover {
    background: var(--hub-surface-card); color: var(--hub-accent); border-color: var(--hub-border-dark);
    transform: rotate(90deg);
}

/* Split Hero - Left Column (Transparent now) */
.col-left-hero {
    background-color: var(--hub-bg-subtle);
    background-image: 
        linear-gradient(rgba(209, 199, 176, 0.25) 1px, transparent 1px),
        linear-gradient(90deg, rgba(209, 199, 176, 0.25) 1px, transparent 1px);
    background-size: 24px 24px;
    border-radius: var(--hub-radius-lg) 0 0 var(--hub-radius-lg);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem 2.5rem;
    gap: 1.5rem;
    border-right: 1px solid var(--hub-border);
}

.avatar-ring {
    width: 140px; height: 140px;
    border-radius: 50%;
    border: 5px solid var(--hub-surface);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative; z-index: 1;
    flex-shrink: 0;
}
.avatar-ring img { width: 100%; height: 100%; object-fit: cover; }

.hero-name {
    font-family: var(--hub-font-headings);
    font-size: 1.8rem;
    color: var(--hub-text-dark);
    font-weight: 700;
    text-align: center;
    line-height: 1.15;
    position: relative; z-index: 1;
}
.hero-subtitle {
    font-family: var(--hub-font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hub-accent);
    text-align: center;
    margin-top: -0.75rem;
    position: relative; z-index: 1;
}
.hero-bio {
    font-family: var(--hub-font-body);
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--hub-text);
    text-align: justify;
    position: relative; z-index: 1;
}

.hero-socials {
    display: flex; gap: 0.7rem; justify-content: center;
    margin-top: auto;
    position: relative; z-index: 1;
    flex-wrap: wrap;
}
.hero-socials .social-icon {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--hub-surface-card);
    border: 1px solid var(--hub-border);
    color: var(--hub-text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--hub-transition);
    box-shadow: var(--hub-shadow-sm);
    flex-shrink: 0;
}
.hero-socials .social-icon svg { width: 18px; height: 18px; fill: currentColor; }
.hero-socials .social-icon:hover {
    background: var(--hub-accent);
    border-color: var(--hub-accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--hub-shadow-md);
}
.hero-socials .social-icon .kofi-img { width: 20px; height: 20px; object-fit: contain; }
.hero-socials .social-icon:hover .kofi-img { filter: brightness(0) invert(1); }

/* Split Hero - Right Column (Light) */
.col-right {
    padding: 0 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    min-height: 0;
    overflow-y: auto;
}

.section-label {
    font-family: var(--hub-font-headings);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hub-text-muted);
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--hub-border);
    padding-bottom: 0.35rem;
}

.section-title {
    font-family: var(--hub-font-headings);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--hub-text);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--hub-border);
    padding-bottom: 0.5rem;
}

.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--hub-border), transparent);
}

/* Onglets de la colonne droite (Soutenir / Mentions / Confidentialité / CGU) */
.drawer-tabbar {
    display: flex;
    align-items: flex-end;
    gap: 0.25rem;
    border-bottom: 1px solid var(--hub-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: sticky;
    top: 0;
    background: var(--hub-surface);
    z-index: 2;
    flex-shrink: 0;
    padding-top: 3rem;
}
.drawer-tab {
    font-family: var(--hub-font-headings);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.6rem 0.75rem;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--hub-text-muted);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.drawer-tab:hover { color: var(--hub-accent); }
.drawer-tab.active {
    color: var(--hub-accent);
    border-bottom-color: var(--hub-accent);
}

.drawer-pane {
    flex-shrink: 0;
}

.drawer-pane-text h3.section-title { margin-bottom: 0.75rem; }
.drawer-pane-text h4 {
    font-family: var(--hub-font-headings);
    font-size: 0.95rem;
    color: var(--hub-text);
    margin: 1.25rem 0 0.4rem;
}
.drawer-pane-text p {
    font-size: 0.85rem;
    color: var(--hub-text-muted);
    line-height: 1.6;
    margin: 0 0 0.5rem;
}
.drawer-pane-text a { color: var(--hub-accent); }
.drawer-legal-lead { font-style: italic; }
.drawer-legal-todo {
    background: #fff3cd;
    color: #6b4e00;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.82rem;
    display: inline-block;
}

.drawer-legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75rem 0 1rem;
    font-size: 0.82rem;
}
.drawer-legal-table th, .drawer-legal-table td {
    border: 1px solid var(--hub-border);
    padding: 0.4rem 0.6rem;
    text-align: left;
    vertical-align: top;
    color: var(--hub-text);
}
.drawer-legal-table th {
    background: var(--hub-surface);
    font-family: var(--hub-font-headings);
    white-space: nowrap;
}

/* Support elements */
.support-card {
    padding: 0.8rem 1rem;
    display: flex; justify-content: space-between; align-items: center;
    text-decoration: none; border-radius: var(--hub-radius-md);
    transition: var(--hub-transition); box-shadow: var(--hub-shadow-sm);
    background: var(--hub-surface-card);
    border: 1px solid var(--hub-border);
    color: var(--hub-text);
}
.support-card.primary {
    background: var(--hub-accent);
    color: #fff; border: 1px solid var(--hub-accent-hover);
    box-shadow: var(--hub-shadow-md);
}
.support-card.primary:hover { transform: translateY(-3px); box-shadow: var(--hub-shadow-lg); background: var(--hub-accent-hover); }
.support-card.primary .support-card-logo { background: rgba(255,255,255,0.2); color: #fff; }
.support-card.primary .sub-text { color: rgba(255,255,255,0.85); }
.support-card.primary .arrow-icon { color: rgba(255,255,255,0.7); transition: var(--hub-transition); }
.support-card.primary:hover .arrow-icon { color: #fff; transform: translateX(5px); }

.support-card-info { display: flex; align-items: center; gap: 0.9rem; }
.support-card-logo {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.support-card-text h4 { font-family: var(--hub-font-headings); font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 0.4rem; margin: 0; }
.support-card-text .sub-text { font-family: var(--hub-font-body); font-size: 0.83rem; color: rgba(255, 255, 255, 0.85); margin-top: 0.15rem; }
.badge-rec { font-size: 0.6rem; font-weight: 800; padding: 0.2rem 0.45rem; background: #fff; color: var(--hub-accent); border-radius: 4px; text-transform: uppercase; }

/* Gallery elements */
.creation-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
.gallery-item {
    position: relative; border-radius: var(--hub-radius-md); overflow: hidden;
    cursor: pointer; transition: var(--hub-transition); aspect-ratio: 4/5;
    box-shadow: var(--hub-shadow-sm); border: 1px solid var(--hub-border);
    background: var(--hub-surface-card);
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--hub-shadow-lg); border-color: var(--hub-accent); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 2rem 0.6rem 0.6rem;
    background: linear-gradient(to top, rgba(20,15,8,0.9) 0%, transparent 100%);
}
.gallery-item-name { font-family: var(--hub-font-headings); font-size: 0.85rem; font-weight: 700; color: #fdfaf6; text-align: center; }

.gallery-item.see-more {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--hub-surface-card);
    border: 1px solid var(--hub-border); text-decoration: none;
    color: var(--hub-accent); font-weight: 700; font-size: 0.82rem;
    gap: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; text-align: center;
    padding: 1rem;
}
.gallery-item.see-more .arrow-icon { font-size: 1.5rem; font-weight: 300; transition: transform 0.3s ease; margin-bottom: 0.2rem; }
.gallery-item.see-more:hover { background: var(--hub-accent); color: #fff; border-color: var(--hub-accent); box-shadow: var(--hub-shadow-md); }
.gallery-item.see-more:hover .arrow-icon { transform: translateX(5px); color: #fff; }

/* Responsive Media Queries */
@media (max-width: 850px) {
    .designer-drawer {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        max-width: 90vw;
    }
    .col-left-hero {
        padding: 2.5rem 1.5rem;
        gap: 1.25rem;
        border-right: none;
        border-bottom: 1px solid var(--hub-border);
    }
    .hero-bio {
        display: none; /* Hide bio to save vertical space on tablets/mobile */
    }
    .col-right {
        padding: 0 1.5rem 2rem;
        gap: 1.75rem;
    }
    .drawer-tabbar {
        padding-top: 2rem;
    }
    .creation-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .creation-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

