/* --- VARIABLES ET PARAMÈTRES DE BASE --- */
:root {
    --bg-color: #0a0a0a;
    --card-bg: #111;
    --text-color: #f5f5f5;
    --text-muted: #999;
    --accent-color: #a3e635;
    --dollar-green: #85bb65; 
    --border-color: #262626;
    --font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='40' viewBox='0 0 100 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20 Q 25 5, 50 20 T 100 20' fill='none' stroke='rgba(255, 255, 255, 0.04)' stroke-width='1'/%3E%3Cpath d='M0 20 Q 25 35, 50 20 T 100 20' fill='none' stroke='rgba(255, 255, 255, 0.02)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 100px 40px;
    background-position: center;
    background-attachment: fixed;
}

/* --- MISE EN PAGE GLOBALE --- */
section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

h1, h2, h3 {
    margin-top: 0;
    font-weight: 700;
}

strong {
    color: #fff;
    font-weight: 700;
}

p {
    margin-bottom: 24px;
}

/* --- ENTÊTE --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    font-size: 1.2rem;
    font-weight: 700;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 20px;
}

header nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

header nav a:hover {
    color: var(--text-color);
}

/* --- SECTION HERO --- */
#hero {
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    background: radial-gradient(circle at center, rgba(163, 230, 53, 0.08), transparent 60%);
}

#hero .container-text {
    max-width: 800px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.status .point {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-color);
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000;
}

.btn-primary:hover {
    background-color: #bdf26e;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
}

/* --- ANIMATIONS D'ENTRÉE (HERO / PAGES) --- */
.hero-anim {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

#hero .status.hero-anim { animation-delay: 0.1s; }
#hero h1.hero-anim { animation-delay: 0.3s; }
#hero .subtitle.hero-anim { animation-delay: 0.5s; }
#hero .hero-buttons.hero-anim { animation-delay: 0.7s; }

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

/* --- SECTION PROJETS --- */
.projets-header {
    margin-bottom: 60px;
}

.projets-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.projets-header p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.format-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-format {
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-format.active {
    background-color: #262626;
    border-color: #fff;
    color: #fff;
}

.btn-format:hover:not(.active) {
    border-color: var(--text-muted);
}

/* --- GRILLES VIDÉO RESPONSIVES --- */
.video-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 60px;
}

.grid-horizontal {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-vertical {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* --- ANIMATION DES ONGLETS DE FORMATS --- */
.tab-enter {
    animation: tabFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* CARTES VIDÉO ET LEUR HALO VERT DOLLAR */
.video-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    position: relative; 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease;
}

.video-card:hover {
    transform: translateY(-5px) scale(1.03); 
    box-shadow: 0 15px 35px rgba(133, 187, 101, 0.1), 
                0 0 20px rgba(133, 187, 101, 0.25);
    border-color: rgba(133, 187, 101, 0.4); 
    z-index: 10; 
}

.video-card h3 {
    font-size: 1.1rem;
    margin-top: 16px;
    margin-bottom: 8px;
    text-align: left;
}

.project-type {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-align: left;
    margin-bottom: 12px;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: left;
    margin-bottom: 0;
}

.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    background-color: #000;
}

.ratio-16-9 {
    padding-bottom: 56.25%;
}

.ratio-9-16 {
    padding-bottom: 177.78%;
}

.video-thumbnail-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- SECTION PHILOSOPHIE & CONTACT --- */
#philosophie .container-text,
#contact .container-text {
    max-width: 800px;
    margin: 0 auto;
}

#contact {
    border-top: 1px solid var(--border-color);
    padding-bottom: 120px;
}

.email-link {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 8px;
    display: inline-block; /* Permet les animations fluides sur le texte */
    transition: color 0.2s, transform 0.2s;
}

.email-link:hover {
    color: var(--accent-color);
}

/* --- PIED DE PAGE --- */
footer {
    padding: 20px 40px;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 16px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-color);
}

/* --- AJUSTEMENTS POUR MOBILE --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    h1 {
        font-size: 2rem;
    }

    section {
        padding: 40px 15px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .email-link {
        font-size: 1.3rem;
    }

    footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* --- ANIMATIONS JAVASCRIPT (REVEAL AU SCROLL) --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* --- PAGES ANNEXES (MENTIONS LÉGALES / TEXTES LONGS) --- */
.text-left {
    text-align: left !important;
}

.legal-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.legal-block {
    margin-bottom: 32px;
}

.legal-block:last-child {
    margin-bottom: 0;
}

.legal-block h2 {
    font-size: 1.2rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.legal-block p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.text-link {
    color: var(--accent-color);
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s, transform 0.2s;
}

.text-link:hover {
    color: var(--dollar-green);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 20px;
    }
}

/* --- ANIMATION TEXTE COPIÉ --- */
.text-copied {
    color: var(--dollar-green) !important;
    transform: scale(1.05); /* Petit effet de rebond */
}