/* CSS Variables - Brand Colors */
:root {
    --primary-cream: #e5d7ca;
    --primary-beige: #b29b82;
    --primary-dark: #1a1613;
    --primary-brown: #463128;

    --font-primary: 'Poppins', sans-serif;
    --font-titles: 'PT Serif', Georgia, serif;
    --font-logo-rachel: 'Le Jour Serif', 'PT Serif', Georgia, serif;
    --font-logo-subtitle: 'Brittany Signature', 'Sacramento', cursive;

    --border-radius: 12px;
    --transition: all 0.3s ease;
    --shadow-soft: 0 4px 20px rgba(26, 22, 19, 0.1);
}

body {
    font-family: var(--font-primary);
    color: var(--primary-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Styles personnalisés pour Klaro.js - Bannière de consentement */
.klaro .cookie-notice {
    background: rgba(26, 22, 19, 0.95) !important;
    backdrop-filter: blur(10px);
    border-top: 3px solid var(--primary-beige) !important;
    color: var(--primary-cream) !important;
    font-family: var(--font-primary) !important;
    box-shadow: 0 -4px 20px rgba(26, 22, 19, 0.3) !important;
}

.klaro .cookie-notice .cn-body {
    color: var(--primary-cream) !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

.klaro .cookie-notice .cn-buttons {
    gap: 0.75rem !important;
}

.klaro .cookie-notice .cm-btn {
    font-family: var(--font-primary) !important;
    font-weight: 500 !important;
    border-radius: var(--border-radius) !important;
    transition: var(--transition) !important;
    border: 2px solid transparent !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
}

.klaro .cookie-notice .cm-btn.cm-btn-success {
    background: linear-gradient(135deg, var(--primary-beige), var(--primary-brown)) !important;
    color: white !important;
    border-color: var(--primary-beige) !important;
}

.klaro .cookie-notice .cm-btn.cm-btn-success:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(178, 155, 130, 0.4) !important;
}

.klaro .cookie-notice .cm-btn.cm-btn-info {
    background: transparent !important;
    color: var(--primary-beige) !important;
    border-color: var(--primary-beige) !important;
}

.klaro .cookie-notice .cm-btn.cm-btn-info:hover {
    background: var(--primary-beige) !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

.klaro .cookie-notice .cm-btn.cm-btn-danger {
    background: transparent !important;
    color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.klaro .cookie-notice .cm-btn.cm-btn-danger:hover {
    background: #dc3545 !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

/* Modal de gestion des cookies */
.klaro .cookie-modal {
    font-family: var(--font-primary) !important;
}

.klaro .cookie-modal .cm-modal {
    background: white !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow-soft) !important;
}

.klaro .cookie-modal .cm-header {
    background: var(--primary-cream) !important;
    color: var(--primary-dark) !important;
    border-bottom: 1px solid var(--primary-beige) !important;
    font-family: var(--font-titles) !important;
}

.klaro .cookie-modal .cm-header h1 {
    color: var(--primary-brown) !important;
    font-family: var(--font-titles) !important;
}

.klaro .cookie-modal .cm-body {
    color: var(--primary-dark) !important;
}

.klaro .cookie-modal .cm-footer .cm-btn {
    font-family: var(--font-primary) !important;
    border-radius: var(--border-radius) !important;
    transition: var(--transition) !important;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .klaro .cookie-notice .cn-buttons {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .klaro .cookie-notice .cm-btn {
        width: 100% !important;
        text-align: center !important;
    }
}

/* Navigation Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(178, 155, 130, 0.1);
    height: 100px;
    display: flex;
    align-items: center;
    overflow: visible;
}

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

.brand-link {
    text-decoration: none;
    color: var(--primary-brown);
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 200px;
    width: auto;
    transition: var(--transition);
    position: relative;
    z-index: 10;
    margin: -50px 0;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.brand-logo:hover {
    transform: scale(1.05);
}

/* Styles pour mobile */
@media (max-width: 768px) {
    .navbar {
        height: 80px;
    }

    .brand-logo {
        height: 150px;
        margin: -35px 0;
    }
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-primary);
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-beige);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Styles spéciaux pour les liens utilisateur */
.nav-link.user-space {
    background: linear-gradient(135deg, var(--primary-beige), var(--primary-brown));
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-link.user-space::after {
    display: none;
}

.nav-link.user-space:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(178, 155, 130, 0.4);
}

.nav-link.login-link {
    color: var(--primary-beige);
    font-weight: 500;
    border: 2px solid var(--primary-beige);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link.login-link::after {
    display: none;
}

.nav-link.login-link:hover {
    background: var(--primary-beige);
    color: white;
    transform: translateY(-1px);
}

/* Style pour le bouton de déconnexion */
.nav-link.logout-button {
    background: none;
    border: 2px solid #dc3545;
    color: #dc3545;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: inherit;
    margin-left: 0.5rem;
}

.nav-link.logout-button::after {
    display: none;
}

.nav-link.logout-button:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-brown);
    transition: var(--transition);
}

/* Footer Styles */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.footer-logo:hover {
    transform: scale(1.02);
}

/* Styles pour mobile */
@media (max-width: 768px) {
    .footer-logo {
        height: 60px;
    }
}

.footer-section h4 {
    font-family: var(--font-titles);
    color: var(--primary-cream);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

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

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary-beige);
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-dev {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

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

.footer-dev a:hover {
    color: var(--primary-cream);
    text-decoration: underline;
}

/* Main content spacing */
main {
    margin-top: 4rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        border-top: 1px solid rgba(178, 155, 130, 0.1);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* Ajustement mobile pour le bouton de déconnexion */
    .nav-link.logout-button {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }
}
