/* 
=============================================================================
PROJET : Bénin Guest Houses
FICHIER : style/styles.css
DESCRIPTION : Système de design Premium - Global & Shared
=============================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary: #008751; /* Vert Bénin */
    --secondary: #ffb400; /* Jaune/Or Bénin */
    --accent: #e81123; /* Rouge Bénin */
    --dark: #0a192f;
    --navy: #112240;
    --light: #f8fafc;
    --gray: #64748b;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 30px 60px rgba(0, 135, 81, 0.12);
    --transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    --glass: rgba(255, 255, 255, 0.85);
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 90px; /* Espace pour le header fixe */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Conteneur principal pour le contenu */
main {
    flex: 1;
    width: 100%;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* --- Header Premium --- */
header {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

header.scrolled {
    height: 70px;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    font-size: 1.6rem;
    filter: drop-shadow(0 2px 5px rgba(0, 135, 81, 0.3));
}

.logo span { color: var(--secondary); }

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav ul li a:hover::after { width: 100%; }

nav ul li a:hover { color: var(--primary); }

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark);
    transition: var(--transition);
    z-index: 1001;
    position: relative;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* --- Boutons Premium --- */
.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 135, 81, 0.2);
}

.btn-primary:hover {
    background: var(--dark);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(10, 25, 47, 0.25);
}

/* --- Sections --- */
.section { padding: 80px 8%; position: relative; }

.section-title { 
    margin-bottom: 50px; 
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.section-title.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.section-title h2 { 
    font-size: 3.5rem; 
    font-weight: 800;
    color: var(--dark); 
    margin-bottom: 10px;
    line-height: 1.2;
}

.section-title p { 
    color: var(--gray); 
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* --- Animations Pro --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Global --- */
/* Tablettes (992px - 1200px) */
@media (max-width: 1200px) {
    header { padding: 0 40px; }
    .section { padding: 100px 40px; }
    nav ul { gap: 30px; }
}

/* Tablettes (768px - 992px) */
@media (max-width: 992px) {
    .menu-toggle { display: block; order: 3; pointer-events: auto !important; }
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        transition: var(--transition);
        z-index: 1000;
        padding: 100px 40px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        pointer-events: auto !important;
    }
    nav.active { right: 0; }
    nav ul { flex-direction: column; gap: 30px; align-items: flex-start; }
    nav ul li a { font-size: 1.8rem; pointer-events: auto !important; }
    .auth-buttons { order: 2; margin-left: auto; margin-right: 20px; }
    .logo { font-size: 1.8rem; }
    .logo i { font-size: 1.4rem; }
}

/* Mobiles (max 768px) */
@media (max-width: 768px) {
    header { padding: 0 20px; height: 80px; }
    header.scrolled { height: 65px; }
    body { padding-top: 80px; }
    .logo { font-size: 1.6rem; }
    .logo i { font-size: 1.3rem; }
    .section { padding: 80px 25px; }
    .section-title h2 { font-size: 2.5rem; }
    .section-title p { font-size: 1rem; }
    .auth-buttons span { display: none; }
    .btn-primary { padding: 12px 20px; font-size: 0.9rem; }
    nav { width: 85%; padding: 80px 30px; }
}

/* Petits mobiles (max 480px) */
@media (max-width: 480px) {
    header { padding: 0 15px; height: 70px; }
    header.scrolled { height: 60px; }
    body { padding-top: 70px; }
    .logo { font-size: 1.4rem; }
    .logo i { font-size: 1.2rem; }
    .section { padding: 60px 20px; }
    .section-title h2 { font-size: 2rem; }
    .section-title p { font-size: 0.95rem; }
    .btn-primary { padding: 10px 18px; font-size: 0.85rem; }
    .auth-buttons { gap: 15px; }
    nav { width: 90%; padding: 70px 25px; }
    nav ul li a { font-size: 1.5rem; }
}
