/* ══════════════════════════════════════════════════════
   NAVBAR - MotivationRD
   ══════════════════════════════════════════════════════ */

:root {
    --nav-bg: #2a2a2a;
    --nav-text: #ffffff;
    --nav-accent: #ff6b35;
    --nav-hover: #3d3d3d;
    --nav-glow: #ffb347;
    --nav-height: 60px;
    --transition: 0.3s ease;
}

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-top: var(--nav-height);
}

/* ──────────────────────────────────────────────────────
   Navbar principale
   ────────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--nav-bg);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ──────────────────────────────────────────────────────
   Logo / Brand
   ────────────────────────────────────────────────────── */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--nav-text);
    text-decoration: none;
    letter-spacing: -0.5px;
    min-width: 200px; /* Réserve l'espace */
}

.navbar-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.navbar-brand:hover {
    color: var(--nav-accent);
}

.navbar-brand:hover img {
    filter: drop-shadow(0 0 8px var(--nav-glow));
}

/* ──────────────────────────────────────────────────────
   Menu desktop
   ────────────────────────────────────────────────────── */
.navbar-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.navbar-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
}

.navbar-menu li a:hover {
    background: var(--nav-hover);
    color: var(--nav-accent);
}

.navbar-menu li a.active {
    color: var(--nav-accent);
    background: var(--nav-hover);
    position: relative;
}

.navbar-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--nav-accent);
    border-radius: 3px 3px 0 0;
}

/* ──────────────────────────────────────────────────────
   Burger button (caché en desktop)
   ────────────────────────────────────────────────────── */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--nav-text);
    position: relative;
    transition: background var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--nav-text);
    transition: transform var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Animation burger → X */
.navbar-toggle.open .hamburger {
    background: transparent;
}

.navbar-toggle.open .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggle.open .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE - Mobile (< 768px)
   ══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }

    .navbar-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--nav-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        transform: translateX(100%);
        transition: transform var(--transition);
    }

    .navbar-menu.open {
        transform: translateX(0);
    }

    .navbar-menu li a {
        font-size: 1.25rem;
        padding: 15px 40px;
    }
}

/* ══════════════════════════════════════════════════════
   UTILITAIRES
   ══════════════════════════════════════════════════════ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ══════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════ */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(42,42,42,0.85) 0%, rgba(42,42,42,0.6) 50%, rgba(42,42,42,0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.btn-hero {
    display: inline-block;
    padding: 15px 40px;
    background: var(--nav-accent);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,107,53,0.4);
}

/* ══════════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════════ */
.intro {
    padding: 60px 0;
}

.intro h2 {
    font-size: 2rem;
    color: #2a2a2a;
    margin-bottom: 20px;
}

.intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.footer {
    background: var(--nav-bg);
    color: var(--nav-text);
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-brand img {
    height: 40px;
    width: auto;
}

.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: var(--nav-text);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--nav-accent);
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.9rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color var(--transition);
}

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

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-top: 10px;
}

/* ══════════════════════════════════════════════════════
   PAGES LÉGALES
   ══════════════════════════════════════════════════════ */
.legal {
    padding: 60px 20px;
}

.legal h1 {
    font-size: 2.5rem;
    color: #2a2a2a;
    margin-bottom: 40px;
}

.legal section {
    margin-bottom: 40px;
}

.legal h2 {
    font-size: 1.4rem;
    color: var(--nav-accent);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.legal p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.legal a {
    color: var(--nav-accent);
    text-decoration: none;
}

.legal a:hover {
    text-decoration: underline;
}

.legal-update {
    font-style: italic;
    color: #888;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* ══════════════════════════════════════════════════════
   PAGE CONTACT
   ══════════════════════════════════════════════════════ */
.page-contact {
    padding: 60px 20px;
    max-width: 600px;
}

.page-contact h1 {
    font-size: 2.5rem;
    color: #2a2a2a;
    margin-bottom: 15px;
}

.page-intro {
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #2a2a2a;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--nav-accent);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    padding: 15px 40px;
    background: var(--nav-accent);
    color: #ffffff;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    align-self: flex-start;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,107,53,0.35);
}

/* Alertes */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}