/* ============ MODERN DESIGN INSPIRED BY HAITIBRAND.CO ============ */

/* VARIABLES */
:root {
    /* Colors - Modern Blue/Purple Gradient Theme */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    --bg: #0a0b1e;
    --bg-alt: #151932;
    --bg-card: rgba(20, 25, 45, 0.95);
    --accent: #667eea;
    --accent-soft: rgba(102, 126, 234, 0.12);
    --text: #ffffff;
    --muted: #a8b2d1;
    --border: rgba(255, 255, 255, 0.1);
    --border-dark: rgba(255, 255, 255, 0.05);
    --radius-xl: 1.5rem;
    --radius-lg: 1rem;
    --shadow-soft: 0 25px 50px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.4);
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Modern Background with Gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(79, 70, 229, 0.2) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, p {
    margin: 0;
}

img, video {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-lg);
}

.container {
    width: 100%;
    max-width: 1120px;
    padding: 0 1.6rem;
    margin: 0 auto;
}

/* ============ HEADER TRANSPARENT -> PILL (STYLE HAITIBRAND.CO) ============ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 2rem;
    transition: padding 0.4s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem 2rem;
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header scrolled - s'arrondit doucement sans changer de position */
.site-header.scrolled {
    padding: 1.5rem 2rem;
}

.site-header.scrolled .header-inner {
    padding: 0.9rem 2rem;
    background: rgba(20, 25, 45, 0.85);
    backdrop-filter: blur(20px) saturate(150%);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.logo a {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #a8b2d1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.logo a:hover {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Nav */
.main-nav {
    position: relative;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover:not(.btn-cta) {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active:not(.btn-cta) {
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
}

/* Bouton CTA dans le header - Style dark pill */
.btn-cta {
    background: rgba(10, 11, 30, 0.95) !important;
    color: white !important;
    padding: 0.65rem 1.5rem !important;
    border-radius: 50px !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease !important;
}

.btn-cta:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    background: rgba(10, 11, 30, 1) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Logo plus visible au début */
.site-header .logo a {
    font-size: 1.2rem;
}

.site-header.scrolled .logo a {
    font-size: 1.1rem;
}

/* Burger menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background-color: var(--text);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ============ SECTIONS ============ */
.section {
    padding: 6rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section:first-of-type {
    padding-top: 8rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ============ HERO SECTION CRÉATIF ============ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

/* Animated gradient orbs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.hero::before {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.8) 0%, transparent 70%);
    animation-delay: 0s;
}

.hero::after {
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.6) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
    }
    33% { 
        transform: translate(30px, -30px) scale(1.1);
    }
    66% { 
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.hero-tagline::before {
    content: '✨';
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a8b2d1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    color: var(--muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.hero-roles span {
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: rgba(10, 11, 20, 0.9);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Modern Buttons avec effets créatifs */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn.primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 
        0 10px 30px rgba(102, 126, 234, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 30px rgba(102, 126, 234, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.btn.primary:active {
    transform: translateY(0);
}

.btn.ghost {
    background: rgba(20, 25, 45, 0.5);
    backdrop-filter: blur(10px);
    color: var(--text);
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.btn.ghost:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

/* Hero Visual avec effets 3D */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-photo-frame {
    position: relative;
    width: 450px;
    height: 450px;
    border-radius: 2rem;
    background: var(--primary-gradient);
    padding: 4px;
    box-shadow: var(--shadow-soft);
}

.hero-photo-glow {
    position: absolute;
    inset: 20px;
    background: rgba(102, 126, 234, 0.3);
    border-radius: 1.5rem;
    filter: blur(20px);
    z-index: 1;
}

.hero-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
    position: relative;
    z-index: 2;
}

.hero-label-card {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 250px;
    box-shadow: var(--shadow-soft);
}

.hero-label-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.hero-label-role {
    color: var(--muted);
    font-size: 0.875rem;
}

/* ============ ABOUT ============ */
.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.about-tags {
    align-self: stretch;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background-color: rgba(5, 6, 14, 0.9);
    padding: 1.2rem 1.2rem;
}

.about-tags-title {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.about-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.about-tags-grid span {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background-color: rgba(10, 11, 20, 0.95);
}

/* ============ SERVICES ============ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: var(--shadow-soft);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--muted);
    line-height: 1.6;
}

/* ============ PORTFOLIO CRÉATIF - BENTO GRID ============ */
.portfolio-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    background: rgba(20, 25, 45, 0.5);
    backdrop-filter: blur(10px);
    color: var(--muted);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.5);
    color: var(--text);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Masonry / puzzle layout (home) */
.portfolio-grid {
    column-count: 3;
    column-gap: 1.6rem;
}

.portfolio-item {
    width: 100%;
    display: inline-block;
    margin: 0 0 1.6rem;
    border-radius: var(--radius-lg);
    background-color: var(--bg-card);
    border: 1px solid var(--border-dark);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    break-inside: avoid-column;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow-soft);
}

/* Masonry / puzzle aussi pour la page portfolio complet */
.portfolio-grid-full {
    column-count: 3;
    column-gap: 1.6rem;
}

.portfolio-grid-full .portfolio-item {
    break-inside: avoid-column;
}

/* media : aucune hauteur fixe → pas de crop */
.portfolio-media {
    position: relative;
    overflow: hidden;
}

.portfolio-media img,
.portfolio-media video {
    width: 100%;
    height: auto;
    border-radius: 0;
    display: block;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0.7rem 0.9rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent 60%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-transform: capitalize;
}

.overlay-cta {
    font-size: 0.8rem;
    text-decoration: underline;
}

.portfolio-info {
    padding: 0.8rem 1rem 1.1rem;
}

.portfolio-info h3 {
    font-size: 0.98rem;
    margin-bottom: 0.25rem;
}

.portfolio-info p {
    font-size: 0.85rem;
    color: var(--muted);
}

/* bouton "Voir tout le portfolio" sous la grille sur la home */
.portfolio-more {
    margin-top: 4rem;
    text-align: center;
}

/* Responsive portfolio grid */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        grid-auto-rows: 250px;
    }
    
    .portfolio-item:nth-child(1) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .portfolio-item:nth-child(4) {
        grid-column: span 1;
    }
}

/* blocs par catégorie sur portfolio.php */
.portfolio-category-block {
    margin-top: 2.5rem;
}

.portfolio-category-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* call-to-action bas de page sur portfolio.php */
.portfolio-cta {
    margin-top: 3rem;
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-cta h2 {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

.portfolio-cta p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
}

/* ============ CONTACT ============ */

.contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

/* Bloc de gauche (texte + coord.) */
.contact-details {
    margin-top: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Chips email / téléphone */
.contact-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.contact-chip {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.55rem 0.9rem;
    border-radius: 0.9rem;
    border: 1px solid var(--border);
    background-color: rgba(5, 6, 14, 0.95);
    text-decoration: none;
    color: var(--text);
    font-size: 0.8rem;
    min-width: 220px;
    transition:
        border-color var(--transition-fast),
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

.contact-chip:hover {
    border-color: var(--accent);
    background-color: rgba(255, 92, 53, 0.06);
    transform: translateY(-2px);
}

.chip-label {
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.7rem;
    color: var(--muted);
}

.chip-value {
    font-size: 0.86rem;
}

/* Réseaux sociaux */
.contact-socials-label {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.contact-socials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.social-pill {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background-color: rgba(10, 11, 20, 0.95);
    color: var(--text);
    text-decoration: none;
    transition:
        border-color var(--transition-fast),
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

.social-pill:hover {
    border-color: var(--accent);
    background-color: rgba(255, 92, 53, 0.06);
    transform: translateY(-1px);
}

/* Formulaire */
.contact-form {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.4rem;
    border: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 0.65rem;
    border: 1px solid var(--border);
    background-color: #0a0d16;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background-color var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(255, 92, 35, 0.5);
    background-color: #0d111c;
}

/* Honeypot */
.honeypot {
    display: none;
}

.form-note {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--muted);
}

/* message d'alerte (succès / erreur) du formulaire */
.contact-inner .form-alert {
    margin-bottom: 1rem;
    padding: 0.6rem 0.9rem;
    border-radius: 0.7rem;
    font-size: 0.85rem;
}

.form-alert-success {
    background-color: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #bbf7d0;
}

.form-alert-error {
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fecaca;
}

/* ============ FOOTER ============ */
.site-footer {
    padding: 1.8rem 0 2.1rem;
    border-top: 1px solid var(--border);
    background-color: #05060a;
}

.footer-inner {
    text-align: center;
}

.footer-small {
    font-size: 0.8rem;
    color: var(--muted);
}

/* ============ ADMIN DASHBOARD ============ */

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.admin-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.admin-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.6rem 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.admin-card h2 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.admin-card-messages {
    max-height: 540px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.admin-messages-wrapper {
    margin-top: 0.5rem;
    overflow: auto;
    border-radius: 1rem;
}

.admin-form {
    margin-bottom: 1.6rem;
    padding: 1rem 1rem 1.2rem;
    border-radius: 1rem;
    background-color: rgba(5, 6, 14, 0.85);
    border: 1px solid var(--border);
}

.admin-error {
    color: #ffb0b0;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.admin-table-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.admin-hint {
    font-size: 0.8rem;
    color: var(--muted);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0.4rem;
    vertical-align: middle;
}

.admin-table th {
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.admin-order-index {
    font-weight: 600;
    font-size: 0.8rem;
}

/* drag & drop (peut rester) */
.admin-table-draggable tbody tr {
    cursor: move;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.admin-table-draggable tbody tr.dragging {
    opacity: 0.7;
    background-color: rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

/* badge réutilisable */
.badge {
    display: inline-flex;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.admin-delete-btn {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
}

.admin-actions-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.8rem;
}

/* ============ LIGHTBOX ============ */

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 1.5rem;
}

.lightbox.open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
}

.lightbox-dialog {
    position: relative;
    max-width: min(1100px, 100%);
    max-height: min(90vh, 100%);
    width: auto;
    background-color: #0c0f16;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    padding: 1.2rem 1.4rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1;
}

.lightbox-media {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    border-radius: 1rem;
    background-color: #05060a;
}

.lightbox-media img,
.lightbox-media video {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.9rem;
}

.lightbox-title {
    font-size: 1rem;
    margin-top: 0.2rem;
}

.lightbox-description {
    font-size: 0.9rem;
    color: var(--muted);
}

.lightbox-close {
    position: absolute;
    top: 0.4rem;
    right: 0.8rem;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
}

/* ============ ANIMATIONS ============ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

/* Stagger animations */
.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.4s; }
.reveal:nth-child(5) { transition-delay: 0.5s; }

/* ============ RESPONSIVE DESIGN ============ */

/* Tablette */
@media (max-width: 1024px) {
    .header-inner {
        gap: 2.5rem;
        padding: 1rem 2rem;
    }
    
    .site-header.scrolled .header-inner {
        padding: 0.85rem 1.75rem;
    }
    
    .hero-inner {
        gap: 3rem;
    }
    
    .portfolio-grid {
        column-count: 2;
    }

    .portfolio-grid-full {
        column-count: 2;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .site-header {
        padding: 1rem 1rem;
    }
    
    .site-header.scrolled {
        padding: 1rem 1rem;
    }
    
    .header-inner {
        padding: 0.85rem 1.25rem;
        gap: 1.5rem;
    }
    
    .site-header.scrolled .header-inner {
        padding: 0.85rem 1.25rem;
        border-radius: 40px;
    }
    
    .logo a {
        font-size: 1.1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
    }
    
    .hero {
        padding: 7rem 0 3rem;
        min-height: auto;
    }
    
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-photo-frame {
        width: 320px;
        height: 320px;
        margin: 0 auto;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .about-layout,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        column-count: 1;
    }

    .portfolio-grid-full {
        column-count: 1;
    }
    
    .section {
        padding: 4rem 0;
    }

    .admin-columns {
        grid-template-columns: 1fr;
    }
}

/* Sur grand écran : message d’alerte aligné sur la colonne du formulaire (droite) */
@media (min-width: 901px) {
    .contact-inner .form-alert {
        grid-column: 2 / 3;
    }
}

/* Petit mobile */
@media (max-width: 480px) {
    .site-header {
        padding: 0.75rem 0.75rem;
    }
    
    .header-inner {
        padding: 0.75rem 1rem;
        gap: 1rem;
    }
    
    .site-header.scrolled .header-inner {
        padding: 0.75rem 1rem;
    }
    
    .logo a {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-photo-frame {
        width: 250px;
        height: 250px;
    }
    
    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .nav-links.open {
        display: flex;
        position: fixed;
        top: 5rem;
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        background: rgba(20, 25, 45, 0.98);
        backdrop-filter: blur(30px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 24px;
        padding: 1.25rem;
        gap: 0.5rem;
        box-shadow: 
            0 20px 50px rgba(0, 0, 0, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        animation: slideDown 0.25s ease-out;
        z-index: 999;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-links.open a {
        padding: 0.85rem 1.25rem;
        text-align: center;
        font-size: 1rem;
        border-radius: 12px;
    }
    
    .nav-links.open a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav-links.open .btn-cta {
        margin-top: 0.5rem;
        background: var(--primary-gradient) !important;
        border: none !important;
    }
}
