/*
Theme Name: Sen-Agence Theme
Theme URI: https://sen-agence.com
Author: Sen-Agence
Author URI: https://sen-agence.com
Description: Thème premium mobile-first pour la plateforme Sen-Agence. Conçu comme une application mobile native.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sen-agence-theme
*/

/* ═══════════════════════════════════════════════════════
   DESIGN SYSTEM
   ═══════════════════════════════════════════════════════ */

:root {
    --sa-primary: #0F52BA;
    --sa-primary-dark: #0A3B8C;
    --sa-secondary: #FF6B6B;
    --sa-success: #10B981;
    --sa-danger: #EF4444;
    --sa-dark: #0F172A;
    --sa-gray: #64748B;
    --sa-light: #F8FAFC;
    --sa-white: #ffffff;
    --sa-border: rgba(15, 23, 42, 0.06);
    --sa-glass: rgba(255, 255, 255, 0.75);

    --sa-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --sa-radius: 24px;
    --sa-radius-sm: 14px;
    --sa-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 10px -6px rgba(15, 23, 42, 0.01);
    --sa-shadow-lg: 0 20px 40px -8px rgba(15, 23, 42, 0.08), 0 10px 15px -8px rgba(15, 23, 42, 0.04);
    --sa-shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.25);

    --header-height: 72px;
    --bottom-nav-height: 80px;
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--sa-font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--sa-dark);
    background: var(--sa-light);
    -webkit-font-smoothing: antialiased;
    padding-bottom: var(--bottom-nav-height);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--sa-radius-sm);
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.2s;
}

button,
input,
select {
    font-family: inherit;
}

/* ── Container ── */
.sa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 1024px) {
    body {
        background: var(--sa-white);
    }

    .sa-bottom-nav {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════
   HEADER (APP BAR)
   ═══════════════════════════════════════════════════════ */

.sa-site-header {
    height: var(--header-height);
    background: var(--sa-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.02);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.sa-site-header__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ── Desktop Nav ── */
.sa-desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .sa-desktop-nav {
        display: flex;
    }

    .sa-header-actions {
        display: none;
    }
}

.sa-desktop-nav a {
    font-weight: 700;
    color: var(--sa-dark);
    font-size: 0.95rem;
}

.sa-desktop-nav a:hover {
    color: var(--sa-primary);
}

.sa-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sa-logo img {
    max-height: 36px;
    width: auto;
}

.sa-logo__text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--sa-primary);
    letter-spacing: -0.02em;
}

.sa-header-icon {
    font-size: 1.75rem;
    color: var(--sa-dark);
    display: flex;
}

/* ═══════════════════════════════════════════════════════
   BOTTOM NAVIGATION
   ═══════════════════════════════════════════════════════ */

.sa-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--sa-white);
    border-top: 1px solid var(--sa-border);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.03);
}

.sa-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--sa-gray);
    position: relative;
}

.sa-bottom-nav__item ion-icon {
    font-size: 1.5rem;
    transition: 0.2s;
}

.sa-bottom-nav__item span {
    font-size: 0.65rem;
    font-weight: 600;
}

.sa-bottom-nav__item.is-active {
    color: var(--sa-primary);
}

.sa-bottom-nav__item--action {
    color: var(--sa-primary);
}

.sa-bottom-nav__icon-circle {
    width: 44px;
    height: 44px;
    background: var(--sa-primary);
    color: var(--sa-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -30px;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
    border: 4px solid var(--sa-white);
}

.sa-bottom-nav__item--action ion-icon {
    font-size: 1.75rem;
}

/* ═══════════════════════════════════════════════════════
   COMPONENTS
   ═══════════════════════════════════════════════════════ */

.sa-site-main {
    padding: 1.5rem 0;
    min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
    background: var(--sa-white);
}

/* ── Buttons ── */
.sa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--sa-radius-sm);
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}

.sa-btn--primary {
    background: linear-gradient(135deg, var(--sa-primary), var(--sa-primary-dark));
    color: var(--sa-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(15, 82, 186, 0.25);
}

.sa-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 82, 186, 0.35);
}

.sa-btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ── Footer ── */
.sa-site-footer {
    padding: 3rem 0;
    background: var(--sa-light);
    text-align: center;
    color: var(--sa-gray);
    font-size: 0.875rem;
}

.sa-site-footer__links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.sa-site-footer__links a {
    font-weight: 600;
    color: var(--sa-dark);
}

.sa-copyright {
    margin-bottom: 0.5rem;
}

.sa-tagline {
    font-style: italic;
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════
   PLUGIN OVERRIDES (App-ify plugin UI)
   ═══════════════════════════════════════════════════════ */

.sa-search-root,
.sa-hero,
.sa-section {
    border-radius: 0 !important;
}

.sa-card--prestataire {
    border-radius: var(--sa-radius) !important;
    box-shadow: var(--sa-shadow) !important;
    border: 1px solid var(--sa-border) !important;
}

.sa-profil__content {
    border-radius: var(--sa-radius) !important;
    box-shadow: none !important;
    border: none !important;
    padding: 1.25rem !important;
}

.sa-hero {
    border-radius: 0 0 30px 30px !important;
    margin-bottom: 1.5rem;
}