/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com
Template: generatepress
Author: Ton nom
Description: Thème enfant pour GeneratePress - Projet campings
Version: 1.0
*/

/* Import du style parent */
@import url("../generatepress/style.css");

/* ============================================ */
/* STYLES PERSONNALISÉS */
/* ============================================ */

/* Menu principal */
.main-navigation {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.main-navigation a {
    color: #1e293b;
    font-weight: 500;
    transition: color 0.2s;
}

.main-navigation a:hover {
    color: #10b981;
}

.main-navigation .current-menu-item > a {
    color: #10b981;
    font-weight: 600;
}

/* Bouton dans le menu */
.menu-button a {
    background: #10b981;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 100px !important;
    transition: background 0.2s;
}

.menu-button a:hover {
    background: #059669;
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.site-footer a {
    color: #cbd5e1;
    text-decoration: none;
}

.site-footer a:hover {
    color: #10b981;
}

.footer-widgets {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-widgets .widget-title {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid #1e293b;
    font-size: 13px;
}

/* ============================================ */
/* CORRECTIONS POUR GENERATEPRESS */
/* ============================================ */

/* Centrer le contenu */
.site-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

.inside-content {
    max-width: 100%;
    margin: 0;
}

/* Ajuster le header */
.inside-header {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Menu à gauche (ou centré) */
.main-navigation {
    margin-left: auto;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    font-weight: 500;
    color: #1e293b;
}

.main-navigation a:hover {
    color: #10b981;
}

/* Menu mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .main-navigation ul.show {
        display: flex;
    }
    
    .inside-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-navigation {
        width: 100%;
        margin-left: 0;
    }
}

/* ============================================ */
/* FOOTER - VERSION CLAIRE ET AÉRÉE */
/* ============================================ */

.site-footer {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #475569;
    margin-top: 60px;
    padding: 0;
    width: 100%;
    border-top: 1px solid #e2e8f0;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px 30px;
    box-sizing: border-box;
}

/* Lignes du footer */
.footer-row {
    margin-bottom: 30px;
}

.footer-row-bottom {
    margin-bottom: 0;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

/* Première ligne : Logo + newsletter */
.footer-row-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.footer-brand {
    flex: 2;
    min-width: 250px;
}

.footer-logo a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 12px;
}

.footer-logo-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 18px;
    display: inline-block;
}

.footer-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.footer-description {
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
    margin: 0;
}

.footer-newsletter {
    flex: 1;
    min-width: 280px;
}

.footer-newsletter h4 {
    color: #0f172a;
    font-size: 16px;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.footer-newsletter p {
    font-size: 12px;
    margin: 0 0 12px 0;
    color: #64748b;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 100px;
    background: white;
    color: #0f172a;
    font-size: 13px;
    box-sizing: border-box;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16,185,129,0.1);
}

.newsletter-form button {
    background: #10b981;
    border: none;
    border-radius: 100px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    background: #059669;
}

.newsletter-form button i {
    color: white;
    font-size: 14px;
}

/* Deuxième ligne : Liens */
.footer-row-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 15px 0;
}

.footer-column h4 {
    color: #0f172a;
    font-size: 15px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #64748b;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #10b981;
}

/* Réseaux sociaux */
.footer-social {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 34px;
    height: 34px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    text-decoration: none;
    border: 1px solid #e2e8f0;
}

.footer-social a:hover {
    background: #10b981;
    transform: translateY(-2px);
    border-color: #10b981;
}

.footer-social a i {
    font-size: 14px;
    color: #64748b;
    transition: color 0.2s;
}

.footer-social a:hover i {
    color: white;
}

/* Partenaires */
.footer-partners {
    margin-top: 15px;
}

.footer-partners p {
    font-size: 11px;
    margin: 0 0 6px 0;
    color: #64748b;
}

.partner-logo {
    max-height: 25px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.partner-logo:hover {
    opacity: 1;
}

/* Troisième ligne : Copyright */
.footer-row-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 11px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.footer-copyright {
    color: #64748b;
}

.footer-copyright strong {
    color: #10b981;
}

.footer-credits a {
    color: #64748b;
    text-decoration: none;
}

.footer-credits a:hover {
    color: #10b981;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .footer-row-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-row-top {
        flex-direction: column;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-newsletter {
        width: 100%;
        text-align: center;
    }
    
    .newsletter-form {
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .footer-row-links {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-row-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-newsletter h4,
    .footer-newsletter p {
        text-align: center;
    }
}

/* ============================================ */
/* HEADER - VERSION ÉPURÉE */
/* ============================================ */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Logo */
.site-branding {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    font-size: 24px;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.3px;
}

/* Menu principal */
.main-navigation {
    margin: 0;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    transition: color 0.2s;
}

.main-navigation a:hover {
    color: #10b981;
}

.main-navigation .current-menu-item a,
.main-navigation .current-page-ancestor a {
    color: #10b981;
    font-weight: 600;
}

/* Menu mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    padding: 8px 12px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #ffffff;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 12px 20px;
        border-top: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
        gap: 0;
    }
    
    .main-navigation ul.show {
        display: flex;
    }
    
    .main-navigation a {
        padding: 12px 0;
    }
    
    .header-container {
        position: relative;
    }
}