/**
 * Fichier : /style.css
 * Description : Feuille de style principale du site Pranadara
 * Design Ayurvédique moderne avec espacements OPTIMISÉS
 * Marges réduites, conteneurs resserrés
 * Dernière modification : 26 Décembre 2025
 */

/* ====================================
   1. VARIABLES & COULEURS (Ambiance Ayurveda)
   ==================================== */
:root {
    --primary: #92400e;       /* Marron chaud (Terre) */
    --primary-light: #b45309; /* Marron plus clair */
    --secondary: #15803d;     /* Vert nature (Plantes) */
    --bg-sand: #fffaf0;       /* Sable très clair (Fond) */
    --bg-white: #ffffff;
    --text-dark: #1f2937;     /* Gris très foncé (Texte principal) */
    --text-muted: #4b5563;    /* Gris moyen (Sous-titres) */
    --border: #e5e7eb;
}

/* ====================================
   2. RESET & BASES
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-sand);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

/* ====================================
   3. TYPOGRAPHIE
   ==================================== */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

/* Tailles standards (Ordinateur) */
h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; } 
h3 { font-size: 1.5rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* ====================================
   4. LAYOUT UTILS - MARGES RÉDUITES
   ==================================== */
.container {
    max-width: 1400px; /* AUGMENTÉ de 1200px à 1400px */
    margin: 0 auto;
    padding: 0 60px; /* AUGMENTÉ de 20px à 60px */
}

.section-padding {
    padding: 50px 0; /* AUGMENTÉ de 40px à 50px */
}

.text-center { 
    text-align: center; 
}

/* ====================================
   5. BOUTONS
   ==================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 2px solid transparent;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.96); /* Effet d'appui */
}

/* Bouton Principal (Marron) */
.btn-primary {
    background-color: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
    box-shadow: 0 4px 6px rgba(146, 64, 14, 0.2);
}

.btn-primary:hover {
    background-color: white;
    color: var(--primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(146, 64, 14, 0.3);
}

/* ====================================
   6. HEADER & NAVIGATION
   ==================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

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

.nav-links li a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

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

/* ====================================
   STYLES PAGE ACTIVE
   ==================================== */
/* Page active dans le menu principal */
.nav-links li a.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Sous-menu actif */
.dropdown-menu a.active {
    background: var(--bg-sand);
    color: var(--primary);
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
}

/* ====================================
   SOUS-MENUS DROPDOWN
   ==================================== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 8px 0;
    margin-top: 10px;
    z-index: 1000;
}

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

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    transition: all 0.2s;
    white-space: nowrap; /* Empêche le texte de se couper */
}

.dropdown-menu a:hover {
    background: var(--bg-sand);
    color: var(--primary);
}

/* Anti-flickering menu */
.nav-links {
    visibility: hidden;
}

.nav-links.ready {
    visibility: visible;
}

/* ====================================
   CHAMP DE RECHERCHE DANS LE MENU
   ==================================== */
.search-container {
    margin-left: 20px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    padding: 5px 5px 5px 15px;
    transition: all 0.3s;
}

.search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(146, 64, 14, 0.1);
}

.search-input {
    border: none;
    outline: none;
    background: transparent;
    padding: 5px 10px;
    width: 200px;
    font-size: 0.9rem;
    color: var(--text-dark);
    height: auto;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-btn {
    background: var(--primary);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    flex-shrink: 0;
}

.search-btn:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

/* Masquer le lien recherche mobile sur desktop */
.mobile-search-link {
    display: none !important;
}

/* ====================================
   7. HERO SECTION (Bannière) - OPTIMISÉ
   ==================================== */
.hero {
    background: linear-gradient(rgba(255,250,240,0.8), rgba(255,255,255,1));
    padding: 100px 60px 60px; /* AUGMENTÉ padding horizontal */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
}

.hero .container {
    max-width: 1100px; /* AUGMENTÉ de 900px à 1100px */
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin: 0 auto;
    max-width: 800px; /* AUGMENTÉ de 700px à 800px */
}

/* ====================================
   8. CARTES & GRILLES
   ==================================== */
/* Grille de prix */
.grid-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px; /* AUGMENTÉ de 1200px à 1400px */
    margin: 0 auto;
}

/* Styles de cartes */
.card, .blog-card, .admin-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(146, 64, 14, 0.05) !important;
    box-shadow: 0 15px 35px -5px rgba(146, 64, 14, 0.06), 0 5px 15px -5px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    display: flex;
    flex-direction: column;
}

/* Effet hover sur les cartes */
.card:hover, .blog-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 60px -12px rgba(146, 64, 14, 0.12), 0 18px 36px -18px rgba(0, 0, 0, 0.08) !important;
}

/* ====================================
   9. BLOG
   ==================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px; /* AUGMENTÉ de 1200px à 1400px */
    margin: 0 auto;
}

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-date {
    font-size: 0.85rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-link {
    margin-top: auto;
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ====================================
   10. FAQ (Accordéon) - UNIFORMISÉ
   ==================================== */
.faq-accordion {
    max-width: 1400px; /* AUGMENTÉ de 1200px à 1400px */
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    overflow: hidden;
}

/* Bouton question */
.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Icône + ou - */
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
}

.faq-item.active .faq-question::after {
    content: '-';
}

/* Réponse dépliable */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-muted);
}

/* ====================================
   11. FOOTER
   ==================================== */
footer {
    background: #2e2e2e; 
    color: #d1d5db;
    padding: 60px 0 20px;
}

footer h3, footer h4 {
    color: white;
    margin-bottom: 20px;
}

footer a {
    color: #9ca3af;
}

footer a:hover {
    color: white;
}

/* ====================================
   12. RESPONSIVE (Tablette & Mobile)
   ==================================== */

/* Tablettes */
@media (max-width: 1024px) {
    .container { 
        padding: 0 40px; 
    }
    
    .section-padding { 
        padding: 40px 0; 
    }
    
    h1 { 
        font-size: 2.8rem; 
    }
    
    /* Hero adapté pour tablette */
    .hero {
        padding: 90px 40px 50px;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

/* Smartphones */
@media (max-width: 768px) {
    .container { 
        padding: 0 20px; 
    }
    
    .section-padding { 
        padding: 30px 0; 
    }
    
    /* Titres adaptés */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    /* Hero adapté pour mobile */
    .hero {
        padding: 80px 20px 40px;
    }
    
    .hero p {
        font-size: 1rem;
        max-width: 100%;
    }
    
    /* Menu mobile */
    .mobile-menu-btn { 
        display: block; 
    }

    .nav-links {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 40px 20px !important;
        gap: 20px !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
    }

    .nav-links.active { 
        display: flex; 
    }

    /* Cartes adaptées */
    .card, .blog-card {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    /* Grilles en 1 colonne */
    .grid-pricing, .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* FAQ pleine largeur */
    .faq-accordion {
        max-width: 100%;
    }
    
    /* RECHERCHE RESPONSIVE */
    /* Masquer le champ de recherche desktop */
    .search-container {
        display: none;
    }
    
    /* Afficher le lien recherche dans le menu mobile */
    .mobile-search-link {
        display: block !important;
    }
}

/* ====================================
   13. FORMULAIRES
   ==================================== */
form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Champs de formulaire */
input[type="text"], 
input[type="email"], 
input[type="tel"], 
input[type="date"], 
input[type="number"],
select, 
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background-color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    transition: 0.3s;
    outline: none;
    height: 50px;
    appearance: none;
    /* Icône de flèche pour les selects */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2392400e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

/* Number inputs spécifique */
input[type="number"] {
    background-image: none;
}

/* Textarea spécifique */
textarea {
    height: auto; 
    min-height: 120px;
    background-image: none; /* Pas d'icône */
}

/* Focus sur les champs */
input:focus, 
select:focus, 
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(146, 64, 14, 0.1);
}

/* ====================================
   14. STYLE DU CONTENU RICHE (Éditeur Quill)
   ==================================== */
.page-content {
    line-height: 1.8;
    max-width: 1100px; /* AUGMENTÉ de 900px à 1100px */
    margin: 0 auto;
}

/* Espacements des titres - RÉDUITS */
.page-content h2, 
.page-content h3 { 
    margin-top: 1em;
    margin-bottom: 0.5em; 
}

/* Premier titre sans marge en haut */
.page-content h2:first-child,
.page-content h3:first-child {
    margin-top: 0;
}

/* Paragraphes */
.page-content p { 
    margin-bottom: 1em; 
}

/* Listes - ESPACEMENTS RÉDUITS */
.page-content ul { 
    list-style: disc; 
    margin-left: 20px; 
    margin-top: 0.3em;
    margin-bottom: 0.8em;
}

.page-content ol { 
    list-style: decimal; 
    margin-left: 20px; 
    margin-top: 0.3em;
    margin-bottom: 0.8em;
}

/* Citations */
.page-content blockquote { 
    border-left: 4px solid var(--primary); 
    padding: 10px 15px; 
    background: #fffbf0; 
    font-style: italic; 
    color: var(--text-muted);
    margin: 1.5em 0;
    border-radius: 0 8px 8px 0;
}

/* Images */
.page-content img { 
    max-width: 100%; 
    height: auto; 
    border-radius: 8px; 
    margin: 1em 0; 
}

/* Texte en gras */
.page-content strong { 
    color: var(--primary); 
}

/* ====================================
   15. BARRE DE DÉFILEMENT PREMIUM
   ==================================== */
::-webkit-scrollbar { 
    width: 8px; 
}

::-webkit-scrollbar-track { 
    background: var(--bg-sand); 
}

::-webkit-scrollbar-thumb { 
    background: #d1d5db; 
    border-radius: 10px; 
}

::-webkit-scrollbar-thumb:hover { 
    background: var(--primary-light); 
}

/* ====================================
   16. LOOK "GALET" ORGANIQUE (Images)
   ==================================== */
.img-organic {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: border-radius 1s ease-in-out;
    object-fit: cover;
}

.img-organic:hover {
    border-radius: 50%;
}