* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
}

/* ===== FOND DE BASE (neutre) ===== */
.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== FOND PAR DÉFAUT (si aucune classe) ===== */
body .wrapper {
    background: #2b1a61; /* fond uni de secours */
}

/* ===== PAGE ACCUEIL : IMAGE MONTAGNE ===== */
body.page-accueil .wrapper {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), 
                url('https://images.pexels.com/photos/1366919/pexels-photo-1366919.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2');
    background-size: cover;
    background-position: center 30%;
    background-attachment: fixed;
}

/* ===== PAGE À PROPOS : FOND UNI (vert forêt) ===== */
body.page-apropos .wrapper {
    background: #2c4c3b;
    background-attachment: fixed;
}

/* ===== PAGE ORTHOPRACTIE : IMAGE ===== */
body.page-orthopractie .wrapper {
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.6)), 
                url('https://images.pexels.com/photos/258154/pexels-photo-258154.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* ===== PAGE RÉÉDUCATION PÉRINÉALE : FOND UNI (bordeaux doux) ===== */
body.page-reeducation .wrapper {
    background: #5c2a3a;
    background-attachment: fixed;
}

/* ===== PAGE MA FORMATION : FOND UNI (bleu marine) ===== */
body.page-formation .wrapper {
    background: #1b2a4a;
    background-attachment: fixed;
}

/* ===== PAGE CONTACT : FOND UNI (gris anthracite) ===== */
body.page-contact .wrapper {
    background: #2d2d2d;
    background-attachment: fixed;
}

/* Navigation Transparente */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    background: transparent;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
    border-bottom: none !important;
}

.logo-img {
    height: 95px;
    width: auto;
    display: block;
    transition: transform 0.3s, opacity 0.3s;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.logo-img:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
    .logo-img {
        height: 45px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 2.5rem;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    border-bottom: 2px solid #e67e22;
}

/* ===== MENU DROPDOWN ===== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    min-width: 240px;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    z-index: 10;
}

.dropdown-content a {
    display: block;
    margin: 0 !important;
    padding: 0.9rem 1.5rem;
    color: white;
    text-decoration: none;
    border-bottom: none !important;
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background: #e67e22;
    border-radius: 12px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Contenu Principal Centré */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 4px 4px 15px rgba(0,0,0,0.5);
    letter-spacing: 5px;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

/* Boutons */
.btn-primary {
    background: #e67e22;
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    display: inline-block;
    cursor: pointer;
}

.btn-primary:hover {
    background: #d35400;
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2.5rem;
    border: 2px solid white;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: background 0.2s;
    backdrop-filter: blur(5px);
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

/* Contenu texte pour pages internes */
.content-card {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 24px;
    max-width: 700px;
    margin: 2rem auto;
    border: 1px solid rgba(255,255,255,0.2);
}

.content-card p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-card ul {
    color: white;
    font-size: 1.1rem;
    padding-left: 1.5rem;
}

.content-card ul li {
    margin-bottom: 0.5rem;
}

/* Formulaire */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    backdrop-filter: blur(5px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e67e22;
    background: rgba(255,255,255,0.15);
}

/* ===== FOOTER ENRICHI ===== */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 2rem 5%;
    text-align: center;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    letter-spacing: 1px;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.footer-info p {
    margin: 0;
    font-weight: 400;
}

.footer-copy {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        margin: 0 1rem;
    }
    
    .dropdown-content {
        position: static;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        border: none;
        margin-top: 0.5rem;
        padding-left: 1rem;
    }
    
    .dropdown-content a {
        padding: 0.5rem 1rem;
    }
    
    .dropdown-content a:hover {
        background: rgba(230, 126, 34, 0.3);
    }
    
    .footer-info {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .content-card {
        padding: 2rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
}