/**
 * Styles pour le header et le footer de Skitterskoon
 */

/* Variables générales */
:root {
    --primary-color: #37726E; /* Andenver - Teal/Green (CORRECTED from #372E26) */
    --primary-dark-color: #2a5551; /* Darker shade of primary (Adjusted) */
    --secondary-color: #7EC7A8; /* Soora - Light Green */
    --accent-color: #F2FC32; /* Chenival - Yellow */
    --white-color: #FFFFFF; /* White */
    --dark-color: #372E26;
    --light-color: #f8fafc;
    --gray-color: #a0aec0;
    --success-color: #38c172;
    --warning-color: #ffed4a;
    --danger-color: #e3342f;
    --body-bg: #fff;
    --body-color: #2d3748;
    --header-bg: #fff;
    --footer-bg: #372E26;
    --footer-text: #f8fafc;
    --transition-speed: 0.3s;
}

 /* Reset et bases */
 body {
     margin: 0;
     padding: 0;
     /* font-family: 'Montserrat', sans-serif; */ /* Removed - Defined in style.css */
     font-size: 16px;
     line-height: 1.6;
     color: var(--body-color);
    background-color: var(--body-bg);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Utilitaires */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #286ac2;
    border-color: #286ac2;
}

.btn-outline-primary {
    color: var(--primary-color);
    background-color: transparent;
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Added Standard Button Variations */
.btn-secondary {
    color: var(--white-color);
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.btn-secondary:hover {
    /* Define a --secondary-dark variable or use a calculated darker shade */
    background-color: #69b193; /* Example darker shade */
    border-color: #69b193;
    color: var(--white-color);
}

.btn-accent {
    color: var(--dark-color); /* Text color for yellow button */
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}
.btn-accent:hover {
     /* Define a --accent-dark variable or use a calculated darker shade */
    background-color: #e0ea20; /* Example darker shade */
    border-color: #e0ea20;
    color: var(--dark-color);
}

.btn-outline-secondary {
    color: var(--secondary-color);
    background-color: transparent;
    border-color: var(--secondary-color);
}
.btn-outline-secondary:hover {
    color: var(--white-color);
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-accent {
    color: var(--dark-color); /* Text color for outline yellow */
    background-color: transparent;
    border-color: var(--accent-color);
}
.btn-outline-accent:hover {
    color: var(--dark-color);
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}
/* End Added Button Variations */


/* Header - Basic structure rules moved to header-styles.css */
/* .site-header { ... } */

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.site-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.site-title a:hover {
    color: var(--primary-color);
}

.site-description {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--gray-color);
}

.custom-logo-link {
    display: block;
    max-width: 200px;
}

.custom-logo {
    height: auto;
    max-width: 100%;
}

/* Navigation principale */
.main-navigation {
    flex: 1;
    margin: 0 2rem;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--dark-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.primary-menu-container {
    display: flex;
    justify-content: center;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    position: relative;
    margin: 0 0.5rem;
}

.primary-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.primary-menu a:hover, 
.primary-menu .current-menu-item > a {
    color: var(--primary-color);
}

/* Sous-menu */
.primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    min-width: 200px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    border-radius: 0.25rem;
    list-style: none;
}

.primary-menu li:hover > .sub-menu {
    display: block;
}

.primary-menu .sub-menu li {
    margin: 0;
}

.primary-menu .sub-menu a {
    padding: 0.5rem 1rem;
}

/* Actions dans le header */
.header-actions {
    display: flex;
    align-items: center;
}

.auth-links {
    display: flex;
    gap: 0.5rem;
}

.phone-link {
    display: flex;
    align-items: center;
    color: var(--dark-color);
    text-decoration: none;
    margin-left: 1rem;
    font-weight: 600;
}

.phone-link i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Menu utilisateur */
.user-menu {
    position: relative;
    margin-right: 1rem;
}

.dashboard-link {
    display: flex;
    align-items: center;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
}

.dashboard-link i {
    margin-right: 0.5rem;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 10;
    min-width: 200px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    border-radius: 0.25rem;
}

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

.user-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: background-color var(--transition-speed);
}

.user-dropdown a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.user-dropdown i {
    margin-right: 0.5rem;
    width: 1.25rem;
    text-align: center;
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    /* padding-top: 3rem; /* Removed top padding */
}

.footer-widgets-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.footer-widget-column {
    flex: 1;
    min-width: 250px;
    padding: 0 15px;
    margin-bottom: 2rem;
}

.footer-heading {
    position: relative;
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    font-weight: 600;
}

.footer-heading:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Footer info */
.footer-info p {
    margin-bottom: 0.75rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.footer-contact p i {
    margin-right: 0.5rem;
    width: 1.25rem;
    text-align: center;
    color: var(--primary-color);
}

/* Footer liens */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

/* Social links */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--footer-text);
    text-decoration: none;
    transition: all var(--transition-speed);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Newsletter */
.newsletter {
    margin-top: 1.5rem;
}

.newsletter h5 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.newsletter-form {
    display: flex;
    margin-bottom: 0.75rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.25rem 0 0 0.25rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--footer-text);
    outline: none;
}

.newsletter-form button {
    padding: 0.5rem 0.75rem;
    border-radius: 0 0.25rem 0.25rem 0;
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    color: #fff;
    cursor: pointer;
}

.newsletter-disclaimer {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* Copyright footer styling is now primarily in footer-styles.css */
/* .footer-copyright { ... } */ /* Removed rule block */

.copyright-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright-text {
    font-size: 0.875rem;
}

.footer-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.footer-menu-list li {
    margin-left: 1.5rem;
}

.footer-menu-list a {
    /* color: #333333 !important; /* Removed !important */
    color: var(--footer-text); /* Revert to variable, let footer-styles handle override */
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-speed);
}

.footer-menu-list a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 991px) {
    .header-wrapper {
        flex-wrap: wrap;
    }
    
    .site-branding {
        flex: 1;
    }
    
    .main-navigation {
        order: 3;
        flex-basis: 100%;
        margin: 1rem 0 0;
    }
    
    .header-actions {
        justify-content: flex-end;
    }
    
    .footer-widget-column {
        flex-basis: calc(50% - 30px);
    }
}

@media (max-width: 767px) {
    .menu-toggle {
        display: block;
        order: 2;
    }
    
    .primary-menu-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: 1rem;
    }
    
    .primary-menu {
        flex-direction: column;
    }
    
    .primary-menu li {
        margin: 0;
    }
    
    .primary-menu a {
        padding: 0.75rem 0;
    }
    
    .primary-menu .sub-menu {
        position: static;
        display: block;
        box-shadow: none;
        padding: 0 0 0 1rem;
        background-color: transparent;
    }
    
    .menu-toggle[aria-expanded="true"] + .primary-menu-container {
        display: block;
    }
    
    .phone-link span {
        display: none;
    }
    
    .header-actions {
        flex: 1;
    }
    
    .footer-widget-column {
        flex-basis: 100%;
    }
    
    .copyright-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-menu-list {
        margin-top: 1rem;
        justify-content: center;
    }
    
    .footer-menu-list li {
        margin: 0 0.75rem;
    }
    
    .dashboard-link span {
        display: none;
    }
}

@media (max-width: 575px) {
    .auth-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}
/* Enhanced responsive utilities for better mobile experience */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 10px;
    }

    h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    h3 {
        font-size: 1.25rem;
        line-height: 1.2;
    }

    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 375px) {
    body {
        font-size: 13px;
    }

    .container {
        padding: 0 8px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .btn {
        font-size: 0.85rem;
    }
}
