/* RESET & BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, sans-serif; color: #334155; background: #f8fafc; align-items: center; text-align: center; }

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 60px;
    z-index: 100;
}
.navbar .logo { color: white; font-weight: bold; font-size: 18px; text-decoration: none; }
.navbar ul { list-style: none; display: flex; gap: 8px; }
.navbar ul a {
    color: #94a3b8;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}
.navbar ul a:hover, .navbar ul a.actif {
    background: #0891b2;
    color: white;
}

/* HERO */
.hero {
    min-height: 90vh;
    background: linear-gradient(135deg, #0f172a 0%, #0e4f6e 60%, #0891b2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 40px 20px;
}
.hero h1 { font-size: 52px; line-height: 1.2; margin-bottom: 20px; }
.hero h1 span { color: #38bdf8; }
.hero p { font-size: 18px; color: #cbd5e1; max-width: 500px; margin: 0 auto 32px; }
.hero-boutons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}



/* BOUTONS */
.btn-principal { 
    display: inline-block; 
    padding: 13px 28px; 
    background: #0891b2; 
    color: white; 
    text-decoration: none; 
    border-radius: 10px; 
    font-weight: bold; 
    font-size: 15px; 
    border: none; 
    cursor: pointer; 
    transition: background 0.2s, transform 0.1s; }
    
.btn-principal:hover { background: #0e7490; transform: translateY(-1px); }

.btn-secondaire {
    display: inline-block;
    padding: 13px 28px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 15px;
    transition: background 0.2s;
}
.btn-secondaire:hover { background: rgba(255,255,255,0.2); }

/* SECTIONS */
.section-cours { padding: 60px 40px; }
.section-cours h2 { text-align: center; font-size: 32px; color: #1e293b; margin-bottom: 36px; }
.section-atouts { text-align: center; }
.section-cta-final {text-align: center;}
.entete-page {
    background: linear-gradient(135deg, #0f172a, #0e4f6e);
    color: white;
    text-align: center;
    padding: 60px 20px;
}
.entete-page h1 { font-size: 36px; margin-bottom: 10px; }
.entete-page p { color: #94a3b8; }

/* GRILLE COURS */
.grille-cours {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

/* CARTE COURS */
.carte-cours {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
}
.carte-cours:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.carte-cours img { width: 100%; height: 180px; object-fit: cover; }
.carte-corps { padding: 16px; }
.carte-corps h3 { font-size: 16px; color: #1e293b; margin: 8px 0 6px; }
.carte-corps p { font-size: 13px; color: #64748b; margin-bottom: 14px; }
.carte-pied { display: flex; justify-content: space-between; align-items: center; }
.carte-pied strong { font-size: 20px; color: #0891b2; }
.carte-pied a { font-size: 13px; color: #0891b2; text-decoration: none; font-weight: bold; }

/* BADGES NIVEAU */
.badge {
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 999px;
}
.badge-débutant    { background: #d1fae5; color: #065f46; }
.badge-intermédiaire { background: #fef3c7; color: #92400e; }
.badge-expert      { background: #fee2e2; color: #991b1b; }

/* FILTRES */
.filtres {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 24px;
}
.filtres a {
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}
.filtres a.actif, .filtres a:hover {
    background: #0891b2;
    color: white;
    border-color: #0891b2;
}

/* FORMULAIRES */
.champ { margin-bottom: 18px; }
.champ label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #475569;
    margin-bottom: 6px;
}
.champ input, .champ select, .champ textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(8,145,178,0.12);
}
.obligatoire { color: #ef4444; }

/* ALERTES */
.alerte-erreur {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
}

/* FOOTER */
footer {
    background: #0f172a;
    color: #64748b;
    text-align: center;
    padding: 30px 20px;
    font-size: 13px;
    line-height: 2;
}
footer strong { color: white; }
