/*
Theme Name: Aurore
Author: Andre
Description: Thème personnalisé Aurore - Version Optimisée
Version: 1.6
Text Domain: aurore
*/

/* =========================================
   0. VARIABLES & CONFIGURATION
   ========================================= */
:root {
    --primary-green: #2C5E50;      /* Vert Profond */
    --accent-gold: #C5A059;        /* Or */
    --text-white: #ffffff;
    --text-dark: #333333;
    
    --header-height: 80px;
    --container-width: 1200px;     /* Largeur site (Header & Footer) */
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
}

/* =========================================
   1. RESET (INDISPENSABLE)
   ========================================= */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    overflow-x: hidden;
    font-family: var(--font-sans);
}

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

/* =========================================
   2. HEADER DESKTOP
   ========================================= */
#masthead.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 999;
    transition: all 0.3s ease-in-out;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
}

/* État Scrolled */
#masthead.scrolled {
    background-color: var(--primary-green);
    height: 70px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-bottom: none;
}

.nav-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo a {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

/* Menu Desktop */
.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 35px;
}

.main-navigation ul li a {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-white);
    position: relative;
    padding: 5px 0;
}

.main-navigation ul li a:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-gold);
}

/* =========================================
   5. RESPONSIVE (Tablette & Mobile)
   ========================================= */
.burger { display: none; }

@media screen and (max-width: 768px) {
    
    body { overflow-x: hidden; }
    
    .main-navigation ul {
        flex-direction: column;
    }

    /* LE BURGER */
    .burger {
        display: block;
        cursor: pointer;
        position: fixed;
        top: 25px;
        right: 20px;
        z-index: 2001; 
    }
    
    .burger div { 
        width: 25px; 
        height: 2px; 
        background-color: #ffffff; 
        margin: 5px 0;
        transition: 0.3s;
    }

    /* Animation Croix */
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    /* LE MENU (Ciblé par la classe .nav-links pour correspondre au JS) */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: var(--primary-green);
        
        /* Force la colonne verticale */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 2000;
    }

    /* État ouvert (Classe ajoutée par JS) */
    .nav-links.nav-active {
        transform: translateX(0%) !important;
    }

    /* Les éléments de liste (force le saut de ligne) */
    .nav-links li {
        display: block !important; 
        width: 100% !important; 
        text-align: center !important;
        margin: 15px 0 !important; 
        padding: 0 !important;
        opacity: 1 !important;
    }

    .nav-links li a {
        font-family: var(--font-serif);
        font-size: 1.8rem !important;
        color: #ffffff !important;
        display: inline-block;
    }
}

/* =========================================
   6. FOOTER STYLES
   ========================================= */
.site-footer {
    background-color: var(--primary-green);
    padding: 40px 0 30px 0;
    color: var(--text-white);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%; 
}

.footer-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin: 0;
    font-weight: 400;
}

.footer-legal-links {
    display: flex;
    gap: 25px;
}

.footer-legal-links a {
    color: var(--text-white);
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-legal-links a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
    opacity: 1;
}

.footer-row-bottom {
    width: 100%;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 0.75rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .footer-row-top {
        flex-direction: column;
        text-align: center;
    }
    .footer-legal-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* =========================================
   7. FORMULAIRE DE CONTACT
   ========================================= */
.aurore-form-container {
    background-color: #FDFBF7;
    padding: 20px 25px;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    max-width: 420px;
    margin: 0 auto;
    font-family: var(--font-sans);
}

.aurore-form-container .form-group {
    margin-bottom: 0px;
}

.aurore-form-container label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #2C5E50;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aurore-form-container input[type="text"],
.aurore-form-container input[type="email"],
.aurore-form-container input[type="tel"],
.aurore-form-container select,
.aurore-form-container textarea {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid rgba(44, 94, 80, 0.2);
    border-radius: 3px;
    padding: 6px 10px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: #333;
    transition: all 0.2s ease;
    height: auto;
}

.aurore-form-container textarea {
    height: 60px !important;
    min-height: 60px;
    resize: vertical;
}

.aurore-form-container input:focus,
.aurore-form-container select:focus,
.aurore-form-container textarea:focus {
    outline: none;
    border-color: #C5A059;
    background-color: #fff;
}

.aurore-form-container select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23C5A059%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 9px auto;
}

.aurore-form-container input[type="submit"] {
    background-color: #2C5E50;
    color: #ffffff;
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    border: none;
    padding: 10px 15px;
    border-radius: 3px;
    cursor: pointer;
    width: 100%;
    margin-top: 5px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.aurore-form-container input[type="submit"]:hover {
    background-color: #234b40;
    transform: none;
}

@media (max-width: 768px) {
    .aurore-form-container {
        padding: 15px;
        max-width: 100%;
    }
}

/* =========================================
   8. NOTIFICATIONS TOAST (CF7)
   ========================================= */
/* On cache les messages par défaut de CF7 pour ne pas casser le design */
.wpcf7-response-output {
    display: none !important;
}

#aurore-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    background-color: var(--primary-green);
    color: white;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#aurore-toast.show {
    transform: translateY(0);
    opacity: 1;
}

#aurore-toast.error {
    background-color: #c0392b; /* Rouge en cas d'erreur */
}

#aurore-toast::before {
    content: '🌿'; /* Petit rappel nature */
}

/* --- Animation de la barre Admin --- */
#wpadminbar {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    transform: translateY(-100%);
    position: fixed !important;
}

body.show-admin-bar #wpadminbar {
    transform: translateY(0);
}

html {
    margin-top: 0 !important;
    transition: margin-top 0.4s ease;
}

body.show-admin-bar {
    margin-top: 32px !important;
}

#custom-admin-bar-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #222;
    color: #00bcd4;
    border: 2px solid #00bcd4;
    border-radius: 50%;
    text-align: center;
    line-height: 41px;
    cursor: pointer;
    z-index: 999999;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

body.show-admin-bar #custom-admin-bar-toggle {
    background: #00bcd4;
    color: #fff;
    transform: rotate(360deg);
}