/*
Theme Name: Webi
Theme URI: https://webiweb.fr
Author: Webiweb
Description: Thème sur-mesure Webiweb — Haute Performance Numérique
Version: 1.0
Text Domain: webi
*/

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Variables Dark (défaut) ── */
:root {
    --bg:       #060608;
    --bg-card:  #0F0F18;
    --bg-nav:   rgba(6,6,8,0.95);
    --text:     #F0EEE6;
    --text-sub: #9999BB;
    --acid:     #C6FF00;
    --acid-dk:  #3D7A00;
    --violet:   #6B3FCC;
    --border:   #1A1A2E;
    --font-titre: 'Syne', sans-serif;
    --font-corps: 'DM Sans', sans-serif;
    color-scheme: dark;
}

/* ── Variables Light ── */
[data-theme="light"] {
    --bg:       #F0EEE6;
    --bg-card:  #FFFFFF;
    --bg-nav:   rgba(240,238,230,0.95);
    --text:     #0A0910;
    --text-sub: #6B6B8A;
    --acid:     #3D7A00;
    --acid-dk:  #2A5500;
    --violet:   #6B3FCC;
    --border:   #DDDBD0;
    color-scheme: light;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ── */
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-corps);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-titre);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
}

a { color: var(--acid); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

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

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.site-logo {
    font-family: var(--font-titre);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    text-decoration: none;
}

.site-logo span { color: var(--acid); }

.site-nav { display: flex; gap: 2rem; align-items: center; }
.site-nav a {
    color: var(--text-sub);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
}
.site-nav a:hover,
.site-nav a.active { color: var(--text); }

.nav-cta {
    background: var(--acid) !important;
    color: #060608 !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 6px;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
}

/* ── Toggle Dark/Light ── */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 100px;
    width: 48px;
    height: 26px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-sub);
    transition: transform 0.3s ease, background 0.3s ease;
}

[data-theme="light"] .theme-toggle::before {
    transform: translateX(22px);
    background: var(--acid);
}

.theme-toggle:hover {
    border-color: var(--acid);
}

/* Icônes lune/soleil */
.theme-toggle .icon-dark,
.theme-toggle .icon-light {
    position: absolute;
    font-size: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.2s;
    pointer-events: none;
}

.theme-toggle .icon-dark  { right: 6px; opacity: 1; }
.theme-toggle .icon-light { left: 6px;  opacity: 0; }

[data-theme="light"] .theme-toggle .icon-dark  { opacity: 0; }
[data-theme="light"] .theme-toggle .icon-light { opacity: 1; }

/* ── Footer ── */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem 2rem;
    margin-top: 6rem;
    transition: background 0.3s ease;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo {
    font-family: var(--font-titre);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.footer-logo span { color: var(--acid); }
.footer-tagline { color: var(--text-sub); font-size: 0.85rem; }

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-sub);
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: var(--text-sub);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-col a:hover { color: var(--acid); }

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-sub);
    font-size: 0.8rem;
}

/* ── Boutons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-titre);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--acid);
    color: #060608;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    text-decoration: none;
    color: #060608;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--acid);
    color: var(--acid);
    text-decoration: none;
}

/* ── Cards ── */
.webi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.2s, transform 0.2s, background 0.3s;
}

.webi-card:hover {
    border-color: var(--acid);
    transform: translateY(-2px);
}

/* ── Badge ── */
.webi-badge {
    display: inline-block;
    background: rgba(198,255,0,0.1);
    color: var(--acid);
    border: 1px solid rgba(198,255,0,0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-titre);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

/* ── Hero ── */
.webi-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.webi-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(198,255,0,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Gutenberg ── */
.wp-block-group { margin: 0; }

.has-noir-background-color  { background-color: var(--bg) !important; }
.has-acid-background-color  { background-color: var(--acid) !important; }
.has-blanc-background-color { background-color: var(--bg-card) !important; }
.has-noir-color  { color: var(--text) !important; }
.has-acid-color  { color: var(--acid) !important; }
.has-gris-color  { color: var(--text-sub) !important; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .site-nav { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .webi-hero { min-height: 70vh; padding: 4rem 1.5rem; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}
