/* =========================================
   1. POLICES & VARIABLES
========================================= */
/* On importe une police moderne (Inter) et une plus stylée (Oswald) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Oswald:wght@700&display=swap');

:root {
    /* Couleurs */
    --bg-color: #0c0d10;      /* Un noir plus profond, "cinématographique" */
    --bg-card: #16171a;      /* Fond des cartes vidéo légèrement plus clair */
    --text-primary: #f0f0f0;   /* Blanc cassé pour la lecture */
    --text-secondary: #a0a0a0; /* Gris pour les sous-titres */
    --accent: #2ecc71;       /* Un vert néon pour l'action (tu peux changer !) */
    --hover-overlay: rgba(46, 204, 113, 0.85); /* Overlay au survol */

    /* Espacement */
    --gap: 20px; /* Espace réduit entre les vidéos */
}

/* =========================================
   2. RESET & STYLES GLOBAUX
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif; /* Police globale */
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2 {
    font-family: 'Oswald', sans-serif; /* Police pour les titres */
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================
   3. NAVIGATION (Plus discrète)
========================================= */
header {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(12, 13, 16, 0.95);
    z-index: 100;
}

nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%; height: 70px;
}

.logo {
    font-family: 'Oswald', sans-serif; font-size: 1.8rem; font-weight: bold;
    color: var(--accent);
}

nav ul { display: flex; gap: 30px; }
nav a { font-size: 0.9rem; transition: color 0.3s; }
nav a:hover { color: var(--accent); }

/* =========================================
   4. HERO SECTION (Plus de style)
========================================= */
.hero {
    height: 90vh; /* Un peu plus grand pour l'impact */
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 0 10%;
    border-bottom: 2px solid var(--accent); /* Petite ligne stylée */
}

.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 1.5rem; color: #fff; }
.hero p { color: var(--text-secondary); max-width: 600px; margin-bottom: 3rem; }

.btn {
    background: transparent;
    color: var(--accent);
    padding: 12px 30px;
    border: 2px solid var(--accent);
    font-weight: bold; text-transform: uppercase;
    border-radius: 5px; cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--accent);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--accent);
}

/* =========================================
   5. PORTFOLIO GRID (Modifiée !)
========================================= */
.portfolio { padding: 6rem 5%; }
.portfolio h2 { text-align: center; font-size: 2.5rem; margin-bottom: 4rem; color: #fff; }

.grid {
    display: grid;
    /* On force 3 colonnes sur PC, 1 sur mobile */
    grid-template-columns: repeat(3, 1fr); 
    gap: var(--gap);
}

.video-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    position: relative; /* Pour l'overlay */
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Effet de zoom sur la carte entière */
.video-card:hover { transform: scale(1.02); }

/* Le container de l'image (l'emplacement vidéo) */
.thumbnail {
    position: relative;
    width: 100%;
    /* On force un ratio 16:9 (cinéma) */
    aspect-ratio: 16 / 9; 
    overflow: hidden;
}

.thumbnail img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .thumbnail img { transform: scale(1.1); } /* Zoom de l'image dedans */

/* Overlay stylé au survol */
.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--hover-overlay);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease;
    text-align: center; padding: 20px;
}

.video-card:hover .overlay { opacity: 1; }

.overlay .btn-watch {
    font-weight: bold; text-transform: uppercase; font-size: 0.9rem;
    color: white; border: 1px solid white; padding: 8px 16px;
    border-radius: 4px;
}

/* Infos sous la vidéo (cachées par défaut pour un style épuré, visibles si besoin) */
.card-info {
    display: none; /* Cache les infos sous la carte pour le style overlay */
    padding: 15px;
}

/* =========================================
   6. CONTACT / FOOTER
========================================= */
footer {
    text-align: center;
    padding: 5rem 10%;
    background: var(--bg-card);
    border-top: 1px solid #222;
}

footer p { color: var(--text-secondary); margin-bottom: 2rem; }

.btn-alt {
    background: var(--accent); color: var(--bg-color);
    padding: 12px 30px; font-weight: bold; text-transform: uppercase;
    border-radius: 5px; transition: 0.3s;
}

.btn-alt:hover { box-shadow: 0 0 15px var(--accent); }

/* =========================================
   7. RESPONSIVE (Mobile)
========================================= */
@media (max-width: 900px) {
    .grid { grid-template-columns: repeat(2, 1fr); } /* 2 colonnes sur tablette */
    .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 600px) {
    .grid { grid-template-columns: 1fr; } /* 1 colonne sur mobile */
    .hero h1 { font-size: 2rem; }
    nav ul { gap: 15px; }
}
/* =========================================
   SECTION SERVICES & TARIFS
========================================= */
.services {
    padding: 6rem 5%;
    background: var(--bg-color);
    text-align: center;
}

.services-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.service-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    width: 350px;
    border: 1px solid #222;
    transition: 0.3s;
    position: relative;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.service-card.highlight {
    border: 2px solid var(--accent);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.1);
}

.price-tag {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.service-card h3 { margin-bottom: 15px; font-size: 1.5rem; }
.description { color: var(--text-secondary); margin-bottom: 20px; font-style: italic; }

.service-card ul {
    text-align: left;
    margin-top: 20px;
}

.service-card ul li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.service-card ul li::before {
    content: "✓";
    color: var(--accent);
    margin-right: 10px;
    font-weight: bold;
}

/* Étapes de collaboration */
.collaboration-steps {
    margin-top: 5rem;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 15px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 2rem;
}

.step span {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    color: rgba(46, 204, 113, 0.2);
    margin-bottom: -25px;
}

.step p {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .service-card { width: 100%; }
}