/* ===================================
   AUDIT-SEO.FR - STYLE GLOBAL
   Design moderne type Elementor
   =================================== */

/* ============= RESET & BASE ============= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette de couleurs professionnelle */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #0f172a;
    --accent-color: #f59e0b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 35px; /* Espace pour le bandeau promo fixe */
}

/* ============= TYPOGRAPHIE ============= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.125rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ============= CONTAINER & LAYOUT ============= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-fluid {
    max-width: 100%;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.section-lg {
    padding: 7rem 0;
}

/* ============= BANDEAU PROMOTIONNEL FIXE ============= */
.promo-banner-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 10001 !important;
    padding: 0.5rem 1rem !important;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

.promo-banner-sticky p {
    margin: 0 !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

/* ============= HEADER & NAVIGATION ============= */
header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 35px; /* En dessous du bandeau promo */
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 120px;
    width: auto;
    background: transparent;
    mix-blend-mode: multiply;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

nav ul li a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    min-width: 280px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    z-index: 1000;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 2rem;
}

.dropdown-menu li a::after {
    display: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Menu Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

/* Animation du burger quand actif */
.menu-toggle.menu-open span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.menu-toggle.menu-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.menu-open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ============= MAIN CONTENT ============= */
main {
    min-height: 60vh;
}

/* ============= FOOTER ============= */
footer {
    background-color: var(--secondary-color);
    color: var(--bg-light);
    padding: 3.5rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 2.5rem;
}

.footer-section h3 {
    color: var(--bg-white);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.footer-section p,
.footer-section ul li a {
    color: var(--bg-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--bg-light);
    font-size: 0.9rem;
}

/* ============= BANDEAU DE COOKIES ============= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 1rem 1.5rem;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    flex: 1;
    min-width: 250px;
}

.cookie-content p {
    margin: 0;
    color: white;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-content a {
    color: #3b82f6;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn-accept {
    background: #10b981;
    color: white;
}

.cookie-btn-accept:hover {
    background: #059669;
    transform: translateY(-2px);
}

.cookie-btn-refuse {
    background: #6b7280;
    color: white;
}

.cookie-btn-refuse:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

/* ============= BARRE D'ACTION MOBILE FIXE ============= */
.mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    border-top: 1px solid var(--border-color);
}

.mobile-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.6rem 0.5rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    min-height: 52px;
    border: none;
}

.mobile-action-btn svg {
    width: 20px;
    height: 20px;
}

.mobile-action-btn-call {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
}

.mobile-action-btn-call:active {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

.mobile-action-btn-devis {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
}

.mobile-action-btn-devis:active {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

/* ============= UTILITAIRES ============= */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.bg-light {
    background-color: var(--bg-light);
}

/* ============= RESPONSIVE ============= */
@media (max-width: 968px) {
    .menu-toggle {
        display: flex;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    nav.menu-open {
        max-height: 600px !important;
        padding: 1rem 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 2rem;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: var(--bg-light);
        margin: 0.5rem 1rem;
        border-radius: 4px;
        display: none;
    }
    
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .dropdown.dropdown-open .dropdown-menu {
        display: block !important;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-lg {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    /* BANDEAU PROMOTIONNEL ULTRA-COMPACT SUR MOBILE */
    .promo-banner-sticky {
        padding: 0.2rem 0.3rem !important;
    }
    
    .promo-banner-sticky p {
        font-size: 0.6rem !important;
        flex-wrap: nowrap !important;
        gap: 0.2rem !important;
        line-height: 1 !important;
    }
    
    .promo-banner-sticky span:first-child {
        font-size: 0.7rem !important;
    }
    
    .promo-banner-sticky strong {
        font-size: 0.7rem !important;
    }
    
    .promo-banner-sticky span[style*="background: white"] {
        padding: 0.08rem 0.25rem !important;
        font-size: 0.45rem !important;
    }
    
    /* Réduire le logo sur mobile pour éviter chevauchement */
    .logo img {
        height: 65px !important;
    }
    
    /* Ajuster le header pour mobile - hauteur encore réduite */
    header {
        top: 18px !important; /* Hauteur ultra-réduite du bandeau promo */
    }
    
    body {
        padding-top: 18px !important;
    }
    
    /* BARRE D'ACTION MOBILE VISIBLE */
    .mobile-action-bar {
        display: flex;
        padding: 0;
    }
    
    /* OPTIMISATION DU BANDEAU PROMOTIONNEL STICKY */
    div[style*="position: sticky"][style*="top: 70px"],
    div[style*="position: sticky"][style*="top: 70px"] p {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
    }
    
    div[style*="position: sticky"][style*="top: 70px"] strong {
        font-size: 0.95rem !important;
    }
    
    div[style*="position: sticky"][style*="top: 70px"] span[style*="font-size: 1.5rem"],
    div[style*="position: sticky"][style*="top: 70px"] span:first-child {
        font-size: 1.1rem !important;
        margin-right: 0.25rem;
    }
    
    div[style*="position: sticky"][style*="top: 70px"] span[style*="background: white"] {
        padding: 0.2rem 0.5rem !important;
        font-size: 0.65rem !important;
        white-space: nowrap;
    }
    
    /* COOKIE BANNER MOBILE */
    .cookie-banner {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        bottom: 52px; /* Au-dessus de la barre d'action mobile */
    }
    
    .cookie-content p {
        font-size: 0.85rem;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: stretch;
    }
    
    .cookie-btn {
        flex: 1;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Ajustement du body pour la barre fixe */
    body {
        padding-bottom: 52px;
    }
    
    /* Grilles responsives */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    .container,
    .container-fluid {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* RÉDUCTION MAXIMALE DU BANDEAU PROMO SUR TRÈS PETITS ÉCRANS */
    div[style*="position: sticky"][style*="top: 70px"] {
        padding: 0.4rem 0.5rem !important;
    }
    
    div[style*="position: sticky"][style*="top: 70px"] p {
        font-size: 0.75rem !important;
        gap: 0.35rem !important;
    }
    
    div[style*="position: sticky"][style*="top: 70px"] span[style*="background: white"] {
        display: none !important; /* Masquer le badge "plus que X places" sur très petits écrans */
    }
}
