/*
Theme Name: VaxAI Theme
Theme URI: https://beepfake.fr
Author: Beepfake Team
Description: VaxAI Theme — Home whitelist + onepager. Style Barbara Kruger. PHP classique, tout éditable via WordPress.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 8.0
*/

/* =========================================
   TOKENS
   ========================================= */
:root {
    --bf-black:  #000;
    --bf-white:  #fff;
    --bf-red:    #ff0000;
    --bf-red-dk: #cc0000;
    --bf-grey:   #f0f0f0;
    --bf-mid:    #888;
    --font:      'Inter', 'Helvetica Neue', Arial, sans-serif;
    --max-w:     1200px;
    --header-h:  64px;
}

/* =========================================
   RESET
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bf-black); color: var(--bf-white); line-height: 1.6; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* =========================================
   HEADER
   ========================================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: var(--bf-black);
    border-bottom: 3px solid var(--bf-red);
    z-index: 1000;
    display: flex;
    align-items: center;
}
.header-container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-logo img {
    height: 44px;
    width: auto;
}
.nav-about {
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bf-white);
    border: 2px solid var(--bf-red);
    padding: 0.45rem 1.1rem;
    transition: background 0.2s;
    white-space: nowrap;
}
.nav-about:hover { background: var(--bf-red); }

/* =========================================
   HOME — WHITELIST
   ========================================= */
.wl-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-h) + 3rem) 2rem 5rem;
    background: var(--bf-black);
    position: relative;
    overflow: hidden;
}

/* Grille décorative Kruger */
.wl-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,0,0,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,0,0,.05) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

/* Contenu centré */
.wl-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 680px;
    text-align: center;
}

/* Titre */
.wl-headline {
    font-size: clamp(2.8rem, 8vw, 7rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.92;
    letter-spacing: -0.02em;
    color: var(--bf-white);
    margin-bottom: 2rem;
}
.hl-red {
    background: var(--bf-red);
    color: var(--bf-white);
    padding: 0 0.1em;
    display: inline;
}
.hl-outline {
    -webkit-text-stroke: 3px var(--bf-white);
    color: transparent;
}

/* Sous-titre */
.wl-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
    margin-bottom: 3rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Bloc formulaire blanc */
.wl-form-block {
    background: var(--bf-white);
    color: var(--bf-black);
    padding: 2.25rem 2.25rem 2rem;
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}
.wl-form-eyebrow {
    display: block;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--bf-black);
    margin-bottom: 0.5rem;
    text-align: center;
}
.wl-form-eyebrow .bf-dot { color: var(--bf-red); }
.wl-form-title {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--bf-black);
    margin-bottom: 1.25rem;
    line-height: 1.2;
    text-align: center;
}

/* Champ + bouton */
.wl-input-row {
    display: flex;
    margin-bottom: 1rem;
    border: 2px solid var(--bf-black);
}
.wl-input-row input[type="email"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-family: var(--font);
    background: var(--bf-white);
    color: var(--bf-black);
    min-width: 0;
}
.wl-input-row input[type="email"]::placeholder { color: #aaa; }
.wl-input-row button {
    background: var(--bf-red);
    color: var(--bf-white);
    border: none;
    padding: 0.85rem 1.5rem;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    font-family: var(--font);
    white-space: nowrap;
    transition: background 0.2s;
}
.wl-input-row button:hover { background: var(--bf-red-dk); }

/* RGPD */
.wl-gdpr {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    margin-bottom: 0.6rem;
}
.wl-gdpr input[type="checkbox"] {
    width: 15px; height: 15px; min-width: 15px;
    margin-top: 3px; flex-shrink: 0;
    accent-color: var(--bf-red);
}
.wl-gdpr-text { font-size: 0.7rem; color: #555; line-height: 1.5; }
.wl-gdpr-text a { color: var(--bf-red); text-decoration: underline; }

/* Note */
.wl-form-note { font-size: 0.65rem; color: #aaa; margin-top: 0.5rem; text-align: center; }

/* Succès */
.wl-success {
    display: none;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: #f0fff4;
    color: #276749;
    border-left: 4px solid #00cc66;
    font-weight: 700;
    font-size: 0.88rem;
}

/* =========================================
   BREVO — layout email + bouton côte à côte
   Structure réelle générée par sibwp_form :
   form > ul > li (label+input) + li (button)
   ========================================= */

/* Reset conteneur */
.wl-form-block form,
.wl-form-block .sibwp-form {
    margin: 0 !important;
    padding: 0 !important;
}

/* Masquer label "Email Address*" au-dessus du champ */
.wl-form-block label,
.wl-form-block .sib-form-title,
.wl-form-block .sib-form-description {
    display: none !important;
}

/* La liste ul devient un flex row */
.wl-form-block ul,
.wl-form-block ul.sib_signup_form {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 1rem 0 !important;
    border: 2px solid var(--bf-black) !important;
    gap: 0 !important;
}

/* Chaque li occupe l'espace disponible */
.wl-form-block ul li,
.wl-form-block ul.sib_signup_form li {
    display: flex !important;
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    list-style: none !important;
}

/* Le li du bouton ne grossit pas */
.wl-form-block ul li:last-child {
    flex: 0 0 auto !important;
}

/* Champ email */
.wl-form-block input[type="email"],
.wl-form-block input[type="text"] {
    flex: 1 !important;
    width: 100% !important;
    border: none !important;
    outline: none !important;
    padding: 0.9rem 1rem !important;
    font-size: 0.95rem !important;
    font-family: var(--font) !important;
    background: var(--bf-white) !important;
    color: var(--bf-black) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    display: block !important;
}
.wl-form-block input[type="email"]::placeholder,
.wl-form-block input[type="text"]::placeholder {
    color: #aaa !important;
}

/* Bouton M'INSCRIRE */
.wl-form-block input[type="submit"],
.wl-form-block button[type="submit"] {
    flex-shrink: 0 !important;
    background: var(--bf-red) !important;
    color: var(--bf-white) !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0.9rem 1.5rem !important;
    font-weight: 900 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    cursor: pointer !important;
    font-family: var(--font) !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    transition: background 0.2s !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}
.wl-form-block input[type="submit"]:hover,
.wl-form-block button[type="submit"]:hover {
    background: var(--bf-red-dk) !important;
}

/* Messages succès / erreur */
.wl-form-block .sib-form-message-panel { margin-top: 0.75rem !important; padding: 0.75rem 1rem !important; font-weight:700 !important; font-size:0.88rem !important; }
.wl-form-block .sib-form-message-panel--active { display: block !important; }

/* Case RGPD */
.wl-form-block .bf-gdpr-field { margin: 0.75rem 0 0.5rem; text-align: left; }
.wl-form-block .bf-gdpr-label { display:flex; align-items:flex-start; gap:0.6rem; cursor:pointer; }
.wl-form-block .bf-gdpr-checkbox { width:15px; height:15px; min-width:15px; margin-top:3px; flex-shrink:0; accent-color:var(--bf-red); }
.wl-form-block .bf-gdpr-text { font-size:0.7rem; color:#555; line-height:1.5; text-align:left; }
.wl-form-block .bf-gdpr-text a { color:var(--bf-red); text-decoration:underline; }

/* Responsive mobile */
@media (max-width: 560px) {
    .wl-form-block ul,
    .wl-form-block ul.sib_signup_form {
        flex-direction: column !important;
        border: none !important;
    }
    .wl-form-block ul li { flex: 1 1 auto !important; }
    .wl-form-block input[type="email"],
    .wl-form-block input[type="text"] {
        border: 2px solid var(--bf-black) !important;
        border-bottom: none !important;
    }
    .wl-form-block input[type="submit"],
    .wl-form-block button[type="submit"] {
        border: 2px solid var(--bf-red) !important;
    }
}


/* =========================================
   PAGE À PROPOS
   ========================================= */
.about-page { background: var(--bf-white); color: var(--bf-black); padding-top: var(--header-h); }

/* Hero about */
.op-hero { background: var(--bf-black); color: var(--bf-white); padding: 5rem 0 4rem; }
.op-hero-inner,
.op-hero .op-section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.op-headline {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.95;
    margin-bottom: 1.5rem;
}
.op-subline { font-size: 1rem; color: rgba(255,255,255,.7); max-width:580px; line-height:1.65; margin-bottom:2rem; }
.op-scroll-nav { display:flex; gap:.5rem; flex-wrap:wrap; }
.op-scroll-nav a {
    font-size:0.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em;
    color:rgba(255,255,255,.55); padding:.4rem .9rem;
    border:1px solid rgba(255,255,255,.2); transition:all .2s;
}
.op-scroll-nav a:hover { color:#fff; border-color:var(--bf-red); }

/* Stats bande rouge */
.op-threat-band { background: var(--bf-red); color: var(--bf-white); padding: 2.5rem 0; }
.op-threat-grid { max-width:var(--max-w); margin:0 auto; padding:0 2rem; display:grid; grid-template-columns:repeat(3,1fr); }
.op-threat-item { padding:1.5rem 2rem; text-align:center; border-right:1px solid rgba(255,255,255,.2); }
.op-threat-item:last-child { border-right:none; }
.op-threat-num { display:block; font-size:clamp(2rem,4vw,3rem); font-weight:900; line-height:1; }
.op-threat-label { display:block; font-size:.68rem; text-transform:uppercase; letter-spacing:.1em; opacity:.8; margin-top:.4rem; }

/* Sections génériques */
.op-section { padding: 4.5rem 0; }
.op-section-inner { max-width:var(--max-w); margin:0 auto; padding:0 2rem; }
.op-section.bg-white { background:var(--bf-white); color:var(--bf-black); }
.op-section.bg-black { background:var(--bf-black); color:var(--bf-white); }
.op-section.bg-grey  { background:var(--bf-grey);  color:var(--bf-black); }

.op-tag { font-size:.65rem; font-weight:900; text-transform:uppercase; letter-spacing:.15em; color:var(--bf-red); display:block; margin-bottom:.5rem; }
.op-title { font-size:clamp(1.8rem,4vw,2.8rem); font-weight:900; text-transform:uppercase; line-height:1; margin-bottom:2.5rem; }

/* Équipe */
.op-team-grid { display:grid; grid-template-columns:1fr 1fr; gap:4rem; align-items:center; }
.op-inria-badge { display:inline-flex; align-items:center; gap:.6rem; background:var(--bf-black); color:var(--bf-white); padding:.6rem 1rem; font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; margin-bottom:1.5rem; }
.op-inria-badge img { height:20px; filter:invert(1); }
.op-quote { border-left:4px solid var(--bf-red); padding:1.1rem 1.4rem; background:var(--bf-grey); }
.op-quote p { font-size:.95rem; line-height:1.65; color:#222; }
.op-quote cite { display:block; margin-top:.6rem; font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--bf-red); font-style:normal; }

/* Manifeste */
.op-manifesto { padding:4.5rem 0; background:var(--bf-black); color:var(--bf-white); text-align:center; }
.op-manifesto-inner { max-width:800px; margin:0 auto; padding:0 2rem; }
.op-manifesto-quote { font-size:clamp(1.6rem,3.5vw,3rem); font-weight:900; text-transform:uppercase; line-height:1.15; letter-spacing:-0.01em; }

/* Contact */
.op-contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:4rem; align-items:start; }
/* WPForms */
.wpforms-container .wpforms-field input,
.wpforms-container .wpforms-field textarea { border:2px solid var(--bf-black) !important; border-radius:0 !important; padding:.75rem 1rem !important; font-family:var(--font) !important; }
.wpforms-container .wpforms-field input:focus,
.wpforms-container .wpforms-field textarea:focus { border-color:var(--bf-red) !important; outline:none !important; box-shadow:none !important; }
.wpforms-container .wpforms-submit { background:var(--bf-red) !important; border-radius:0 !important; font-weight:900 !important; text-transform:uppercase !important; border:none !important; font-family:var(--font) !important; }

/* =========================================
   PAGES LÉGALES
   ========================================= */
.legal-page { background:var(--bf-white); color:var(--bf-black); padding-top:var(--header-h); }
.legal-inner { max-width:780px; margin:0 auto; padding:4rem 2rem 6rem; }
.legal-back { font-size:.68rem; font-weight:900; text-transform:uppercase; letter-spacing:.1em; color:var(--bf-red); display:inline-block; margin-bottom:2.5rem; }
.legal-back:hover { text-decoration:underline; }
.legal-page-title { font-size:clamp(2rem,5vw,3rem); font-weight:900; text-transform:uppercase; line-height:1; border-bottom:4px solid var(--bf-red); padding-bottom:1rem; margin-bottom:3rem; color:var(--bf-black); }
.legal-content { font-size:1rem; line-height:1.8; color:#222; }
.legal-content h2 { font-size:1.05rem; font-weight:900; text-transform:uppercase; letter-spacing:.04em; margin:2.5rem 0 .75rem; padding-left:1rem; border-left:4px solid var(--bf-red); }
.legal-content h3 { font-size:1rem; font-weight:700; color:var(--bf-red); text-transform:uppercase; margin:1.5rem 0 .5rem; }
.legal-content p { margin-bottom:1rem; }
.legal-content ul { margin:.5rem 0 1rem 1.5rem; list-style:disc; }
.legal-content ul li { margin-bottom:.4rem; }
.legal-content a { color:var(--bf-red); text-decoration:underline; }
.legal-content strong { font-weight:700; }
.legal-content hr { border:none; border-top:1px solid #ddd; margin:2rem 0; }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: var(--bf-black);
    color: var(--bf-white);
    border-top: 3px solid var(--bf-red);
    padding: 2rem 0;      /* compact */
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-inria-text a { text-decoration:none; }
.footer-inria-text a:hover span { opacity:0.8; }
.footer-copy { font-size:.72rem; color:rgba(255,255,255,.4); }
.footer-links { display:flex; gap:1.5rem; }
.footer-links a { font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:rgba(255,255,255,.45); transition:color .2s; }
.footer-links a:hover { color:#fff; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .op-team-grid       { grid-template-columns:1fr; gap:2rem; }
    .op-contact-grid    { grid-template-columns:1fr; gap:2rem; }
    .op-threat-grid     { grid-template-columns:1fr; }
    .op-threat-item     { border-right:none; border-bottom:1px solid rgba(255,255,255,.2); }
}
@media (max-width: 640px) {
    .wl-inner           { text-align:left; }
    .wl-form-block      { padding:1.5rem; }
    .wl-input-row       { flex-direction:column; border:none; gap:0; }
    .wl-input-row input[type="email"] { border:2px solid var(--bf-black); border-bottom:none; }
    .wl-input-row button{ width:100%; border:2px solid var(--bf-red); }
    .wl-form-block input[type="email"] { border-bottom:none !important; }
    .wl-form-block input[type="submit"],
    .wl-form-block button[type="submit"] { width:100% !important; }
    .footer-inner       { flex-direction:column; align-items:flex-start; gap:.75rem; }
}

/* =========================================
   FORMULAIRE CONTACT — natif (fallback)
   et amélioration WPForms
   ========================================= */

/* Champs natifs */
.bf-contact-form { display: flex; flex-direction: column; gap: 1rem; }
.bf-field { display: flex; flex-direction: column; gap: 0.35rem; }
.bf-label {
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000;
}
.bf-contact-form input[type="text"],
.bf-contact-form input[type="email"],
.bf-contact-form textarea {
    border: 2px solid #000;
    border-radius: 0;
    outline: none;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    font-family: var(--font);
    color: #000;
    background: #fff;
    transition: border-color 0.2s;
    width: 100%;
}
.bf-contact-form input:focus,
.bf-contact-form textarea:focus { border-color: var(--bf-red); }
.bf-contact-form textarea { resize: vertical; min-height: 130px; }
.bf-submit-btn {
    background: var(--bf-red);
    color: #fff;
    border: none;
    padding: 0.9rem 2rem;
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    font-family: var(--font);
    align-self: flex-start;
    transition: background 0.2s;
}
.bf-submit-btn:hover { background: var(--bf-red-dk); }
