/* ==========================================
   VARIABLES CSS - Définies dynamiquement via PHP
   ========================================== */
:root {
    /* Couleurs principales - injectées depuis config.php */
    --color-primary-light: var(--color-primary-light-value);
    --color-primary-dark: var(--color-primary-dark-value);
    --color-secondary-light: var(--color-secondary-light-value);
    --color-secondary-dark: var(--color-secondary-dark-value);
    
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #F9F9F9;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.15);
    --radius: 10px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================
   CONTAINER
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--white);
}

/* ==========================================
   HEADER
   ========================================== */
header {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 1001;
}

.logo img {
    height: 50px;
    width: auto;
}

.site-name {
    color: var(--color-site-name);
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: -0.5px;
    margin-left: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.logo:hover .site-name {
    transform: translateX(2px);
    opacity: 0.9;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.burger-menu span {
    width: 28px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

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

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    padding: 0.5rem 1rem;
    display: block;
}

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

.nav-phone {
    display: none;
}

.nav-phone a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
}

.nav-phone a:hover {
    background: var(--color-primary-dark);
    color: var(--white);
}

/* Bouton téléphone desktop */
.phone-desktop {
    background: var(--color-primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-desktop:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .site-name {
        font-size: 1.2rem;
        margin-left: 0.5rem;
    }
    
    .burger-menu {
        display: flex !important;
    }
    
    .phone-desktop {
        display: none !important;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, var(--color-secondary-dark), var(--color-secondary));
        padding: 100px 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    
    nav li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    nav a {
        padding: 1.2rem 0;
        font-size: 1.1rem;
    }
    
    .nav-phone {
        display: block;
        border-bottom: none;
        margin-top: 1rem;
    }
    
    .nav-phone a {
        justify-content: center;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background: linear-gradient(135deg, var(--color-secondary-dark) 0%, var(--color-secondary) 100%);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

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

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

footer a {
    color: var(--color-primary) !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--color-primary-dark) !important;
    text-shadow: 0 0 10px rgba(201, 104, 54, 0.5);
    transform: translateX(2px);
}

.footer-section .footer-title {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.17em;
    font-weight: bold;
    display: block;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
	
}
