/* ==========================================================================
   QWANDLY MINI-SITE - STYLES PERSONNALISÉS TEMPLATE ZAZIE
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & CONFIGURATION GLOBALE
   -------------------------------------------------------------------------- */
:root {
    /* Couleurs standards (peuvent être remplacées par les variables PHP) */
    --primary-color: #007bff;
    --primary-color-rgb: 0, 123, 255;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --text-color: #212529;
    --header-bg-color: #F9F2EC;
    --footer-bg-color: #1F2937;
    
    /* Polices */
    --heading-font: 'Cinzel', serif;
    --body-font: 'Montserrat', sans-serif;
}

/* Ajout pour les polices Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:wght@300;400;500;600&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Style de base pour page entière avec flexbox pour footer sticky */
html, body {
    height: 100%;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--primary-color);
}

/* --------------------------------------------------------------------------
   2. HEADER, LOGO ET TITRE DU SITE
   -------------------------------------------------------------------------- */
/* Header principal - Template Zazie */
header.relative {
    min-height: 450px !important;
    background-color: var(--header-bg-color);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 1023px) {
    header.relative {
        min-height: 350px !important;
    }
}

/* Slogan - style amélioré avec ombre pour lisibilité */
.text-green-700 {
    color: #15803d !important;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
    line-height: 1.4 !important;
}

/* Logo de l'entreprise - style amélioré et centré */
.business-logo {
    border: 2px solid #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #fff;
    padding: 8px;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
    display: block;
}

.business-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

@media (min-width: 1024px) {
    .business-logo {
        max-width: 300px;
    }
}

/* Container du logo - centré */
.logo-container {
    width: fit-content;
    margin: 0 auto;
    padding: 20px;
    z-index: 15 !important;
    position: relative;
}

@media (min-width: 1024px) {
    .logo-container {
        padding: 40px 20px;
    }
}

/* --------------------------------------------------------------------------
   3. NAVIGATION - TEMPLATE ZAZIE CORRIGÉ
   -------------------------------------------------------------------------- */

/* Navigation Desktop - Position fixe en haut à droite */
@media (min-width: 1024px) {
    /* Reset de toutes les règles nav conflictuelles */
    nav#main-nav {
        position: static !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        width: auto !important;
        background-color: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
        z-index: auto !important;
        display: none !important; /* Cacher le nav mobile sur desktop */
    }
    
    /* La div de navigation desktop */
    .absolute.top-6.right-4.hidden.lg\\:block,
    div[style*="position: absolute"][style*="top: 1.5rem"][style*="right: 1rem"] {
        position: absolute !important;
        top: 1.5rem !important;
        right: 1rem !important;
        z-index: 50 !important;
        display: block !important;
    }
    
    /* Styles pour la navigation desktop */
    .absolute ul {
        display: flex !important;
        background-color: rgba(255, 255, 255, 0.6) !important;
        border-radius: 30px !important;
        padding: 4px 10px !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
        backdrop-filter: blur(5px) !important;
        align-items: center !important;
    }
    
    .absolute ul a {
        color: #1a365d !important;
        font-weight: 600 !important;
        padding: 6px 10px !important;
        border-radius: 20px !important;
        transition: all 0.3s ease !important;
        white-space: nowrap !important;
        text-decoration: none !important;
    }
    
    .absolute ul a:hover {
        color: #2b6cb0 !important;
    }
    
    .absolute ul a.font-bold {
        color: var(--primary-color) !important;
    }
    
    /* Style spécial pour le bouton Contact */
    .absolute ul a[href="/contact"] {
        background-color: var(--accent-color) !important;
        color: #1a365d !important;
        padding: 6px 12px !important;
        border-radius: 30px !important;
        margin-left: 5px !important;
    }
    
    .absolute ul a[href="/contact"]:hover {
        background-color: #e6a800 !important;
    }
    
    /* Cacher le bouton mobile sur desktop */
    #mobile-menu-button {
        display: none !important;
    }
}

/* Navigation Mobile */
@media (max-width: 1023px) {
    /* Menu mobile */
    #main-nav {
        transform: translateX(-100%) !important;
        max-width: 80%;
        width: 300px;
        height: 100%;
        position: fixed !important;
        top: 0;
        left: 0;
        overflow-y: auto;
        z-index: 1000 !important;
        background-color: #1F2937 !important;
        transition: transform 0.3s ease-in-out;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0);
    }
    
    #main-nav.is-open {
        transform: translateX(0) !important;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    /* Bouton menu mobile */
    #mobile-menu-button {
        background-color: rgba(255, 255, 255, 0.2);
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex !important;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s ease;
        border: none;
        cursor: pointer;
    }
    
    #mobile-menu-button:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }
    
    /* Cacher la navigation desktop sur mobile */
    .hidden.lg\\:flex {
        display: none !important;
    }
}

/* Overlay du menu mobile */
#mobile-menu-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

#mobile-menu-overlay.is-visible {
    opacity: 0.7;
    pointer-events: auto;
}

/* --------------------------------------------------------------------------
   4. CONTENU PRINCIPAL ET TYPO
   -------------------------------------------------------------------------- */
main {
    padding-top: 40px;
    padding-bottom: 20px;
}

/* Styles pour le contenu TinyMCE */
.prose img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.prose p {
    margin-bottom: 18px;
    line-height: 1.7;
}

.prose h2, .prose h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.prose h2 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-size: 1.8rem;
}

.prose h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-size: 1.4rem;
}

.prose ul, .prose ol {
    margin-bottom: 18px;
    padding-left: 25px;
}

.prose li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.prose a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-color);
    transition: border-bottom 0.2s ease;
}

.prose a:hover {
    border-bottom: 1px solid var(--primary-color);
}

/* --------------------------------------------------------------------------
   5. SECTION SERVICES
   -------------------------------------------------------------------------- */
/* Cartes de service */
.service-card {
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card .card-header {
    background-color: rgba(var(--primary-color-rgb), 0.05);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.service-card h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

.service-card .card-body {
    padding: 20px;
    flex-grow: 1;
}

.service-card .card-footer {
    padding: 15px 20px;
    background-color: rgba(var(--primary-color-rgb), 0.03);
    border-top: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

/* Prix mis en évidence */
.service-card .font-bold.text-primary-color {
    font-size: 1.2em;
    padding: 6px 12px;
    border-radius: 6px;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    display: inline-block;
}

.service-card .book-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.service-card .book-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .service-card {
        margin-bottom: 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   6. PIED DE PAGE
   -------------------------------------------------------------------------- */
footer {
    background-color: var(--footer-bg-color) !important;
    color: white;
    font-size: 0.9em;
    padding: 2rem 0;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: white;
}

/* --------------------------------------------------------------------------
   7. UTILITAIRES ET CORRECTIONS SPÉCIFIQUES
   -------------------------------------------------------------------------- */

/* Contrainte du slogan pour éviter le chevauchement */
.max-w-2xl {
    max-width: 42rem;
}

.max-w-4xl {
    max-width: 56rem;
}

/* Couleurs des guillemets */
.text-green-600 {
    color: #16a34a !important;
}

/* Responsive fixes */
@media (max-width: 640px) {
    .text-2xl {
        font-size: 1.5rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .lg\\:text-4xl {
        font-size: 2.25rem;
    }
    
    .lg\\:text-5xl {
        font-size: 3rem;
    }
}

/* --------------------------------------------------------------------------
   2. HEADER, LOGO ET TITRE DU SITE
   -------------------------------------------------------------------------- */
/* Header principal - Template Zazie */
header.relative {
    min-height: 450px !important;
    background-color: var(--header-bg-color);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 1023px) {
    header.relative {
        min-height: 350px !important;
    }
}

/* Signature professionnelle */
.signature-author {
    font-family: var(--body-font);
    background-color: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(21, 128, 61, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    max-width: 250px;
    position: relative;
    z-index: 35;
}

.signature-author:hover {
    background-color: rgba(255, 255, 255, 0.95) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 640px) {
    .signature-author {
        max-width: 180px;
        font-size: 0.75rem;
        padding: 0.5rem !important;
    }
    
    .signature-author span.block.text-xs {
        font-size: 0.65rem;
    }
    
    .signature-author span.block.font-semibold {
        font-size: 0.8rem;
    }
}

/* Assurer la visibilité sur mobile */
@media (max-width: 1023px) {
    .absolute.bottom-4.right-4.z-30 {
        position: absolute !important;
        bottom: 1rem !important;
        right: 1rem !important;
        z-index: 30 !important;
        display: block !important;
    }
}