/* ==========================================
   1. VARIABLES & CONFIGURATION
   ========================================== */
:root {
    --primary: #1a1a1a;
    --accent: #D71E00;   /* Rouge Aïkido */
    --gold: #d4af37;     /* Optionnel : pour le côté traditionnel */
    --text: #333;
    --light: #f4f4f4;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* ==========================================
   2. RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

ul { list-style: none; }
a { text-decoration: none; }

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

/* ==========================================
   3. NAVIGATION (Fixed & Dynamic)
   ========================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 20px 0;
}

/* État lors du scroll (via JS) */
.nav-scrolled {
    background-color: var(--white);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    background: url(logo.jpg) no-repeat center center/cover;
    height: 50px; /* Taille fixe plus propre que 5vh */
    width: 50px;
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li a {
    margin-left: 2rem;
    font-weight: 500;
    color: var(--white); /* Par défaut sur le Hero */
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--accent);
}

/* Inversion des couleurs au scroll */
.nav-scrolled ul li a {
    color: var(--text);
}

/* ==========================================
   4. COMPOSANTS (Buttons, Cards)
   ========================================== */
.btn-main {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    margin-left: 5rem;
    padding: 0.5rem 2rem; 
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.btn-main:hover {
    transform: scale(1.05);
}

.card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 4px; /* Bord plus sec, plus pro */
    border-top: 4px solid var(--primary); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-top-color: var(--accent); /* La bordure change au survol */
}

.card h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--primary);
}
/* Liste à l'intérieur des cartes */
.card ul {
    text-align: left;
    margin: 1rem 0;
}

.card ul li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.card ul li:last-child {
    border-bottom: none;
}

.card ul li strong {
    color: var(--primary);
    width: 80px;
    display: inline-block;
}

/* Focus sur le prix */
.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1.5rem 0;
    line-height: 1;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: #888;
}

/* Badge pour le cours d'essai */
.try {
    display: inline-block;
    background: rgba(215, 30, 0, 0.1); /* Rouge très léger */
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.card p {
    font-style: normal;
    color: var(--text);
    line-height: 1.8;
}

/* On peut ajouter une icône via CSS ou simplement booster le gras */
.card p br + br {
    margin-top: 10px;
}

/* ==========================================
   5. SECTIONS SPECIFIQUES
   ========================================== */

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('main.webp') no-repeat center/cover;
    background-position: 75% 50%;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-content {
    padding-left: 5vw;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
}

/* --- Section Infos --- */
#infos {
    background: linear-gradient(to bottom, #ffffff, #fcfcfc);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

/* Petit trait décoratif sous le titre */
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 10px auto 0;
}

/* Sections génériques */
section { padding: 5rem 0; }
.bg-light { background: var(--light); }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

/* Grid & Gallery */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(20%);
    transition: var(--transition);
}

.gallery-item img:hover {
    filter: grayscale(0%);
    transform: translateY(-5px);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    background: var(--primary);
    color: var(--white);
}

/* ==========================================
   6. MEDIA QUERIES (Responsive)
   ========================================== */
@media (max-width: 768px) {
    nav ul { display: none; } /* Simplification mobile */
    
    .hero h1 { 
        font-size: 2.2rem; 
    }
    
    .hero-content {
        padding-left: 0;
        text-align: center;
        width: 100%;
    }
    
    section { padding: 3rem 0; }
}