/* =========================================================
   Boris AI — style.css
   Hero : 2 colonnes — texte gauche (fond sombre) / photo droite.
   Typo titre : Barlow Condensed 800 — condensé, bold, éditorial.
   Thème : dark uniquement. Accent : #00c853.
   ========================================================= */

/* === RESET & VARIABLES === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --accent:        #00c853;
    --accent-dim:    rgba(0, 200, 83, 0.12);

    --bg:            #0c0c14;
    --bg-nav:        rgba(12, 12, 20, 0.9);

    --text-primary:  #eeeef8;
    --text-secondary:#72729a;
    --border:        rgba(255, 255, 255, 0.07);

    /* Barlow Condensed pour les titres, Outfit pour le corps */
    --font-display:  'Barlow Condensed', sans-serif;
    --font-body:     'Outfit', sans-serif;

    --radius-sm:     6px;
    --radius-pill:   100px;

    /* Marge intérieure de la colonne gauche */
    --col-pad:       clamp(36px, 6vw, 88px);
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* === NAVIGATION === */
#navbar {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 100;
    padding-inline: 24px;
    transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--border);
}

.nav-container {
    max-width: 1280px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.75; }
.nav-logo span { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-links .nav-cta {
    color: var(--accent);
    border: 1px solid rgba(0, 200, 83, 0.38);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-links .nav-cta:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* Hamburger — masqué sur desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    inset-block-start: 72px;
    inset-inline: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 28px 24px;
    gap: 24px;
    align-items: flex-start;
}

/* ================================================
   HERO — 2 colonnes
   Gauche : fond sombre + texte
   Droite  : photo de Boris
   ================================================ */
#hero {
    display: grid;
    grid-template-columns: 54fr 46fr;
    min-height: 100svh;
    overflow: hidden;
}

/* --- Colonne gauche --- */
.hero-left {
    background: var(--bg);
    display: flex;
    flex-direction: column;
    position: relative;
    /* Assure que la colonne dépasse bien en hauteur sur grands écrans */
    min-height: 100svh;
}

/* Ligne décorative verte en bord gauche */
.hero-left::before {
    content: '';
    position: absolute;
    inset-block: 15%;
    left: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    opacity: 0.4;
}

/* Badge "Boris AI" — ancré en haut, sous la nav */
.hero-badge {
    position: absolute;
    top: 88px;
    left: var(--col-pad);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 200, 83, 0.28);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    pointer-events: none;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.25; }
}

/* Bloc texte principal — centré verticalement dans la colonne */
.hero-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px var(--col-pad) 32px;
    gap: 30px;
}

/* Label au-dessus du titre */
.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--accent);
    font-size: 0.73rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow-line {
    display: block;
    width: 28px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}

/* H1 — Barlow Condensed 800, très grand, condensé, tight */
.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    /* Taille agressive : condensé = caractères étroits, on peut monter haut */
    font-size: clamp(4.2rem, 7.5vw, 8rem);
    line-height: 0.97;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.hero-title .accent {
    color: var(--accent);
    /* Halo vert subtil sur le mot clé */
    text-shadow: 0 0 80px rgba(0, 200, 83, 0.35);
    /* Italique optionnel pour varier le rythme éditorial — retirer si non souhaité */
    font-style: italic;
}

/* Description */
.hero-description {
    font-size: 1.25rem;
    color: rgba(238, 238, 248, 0.55);
    max-width: 440px;
    line-height: 1.85;
    font-weight: 300;
}

/* === BOUTONS === */
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #000;
    font-weight: 600;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: #1adc6a;
    border-color: #1adc6a;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 200, 83, 0.28);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.18);
}

/* Barre de stats — bas de la colonne gauche */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 20px var(--col-pad);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.stat-number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.68rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-sep {
    width: 1px;
    height: 30px;
    background: var(--border);
    flex-shrink: 0;
}

/* --- Colonne droite : photo Boris --- */
.hero-right {
    position: relative;
    overflow: hidden;
    /* Fond de secours si la photo tarde à charger */
    background: #141424;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cadrage : centré-haut pour garder le visage visible */
    object-position: center 12%;
    display: block;
}

/* Fondu gauche — la photo se fond dans le fond sombre */
.hero-right::before {
    content: '';
    position: absolute;
    inset-block: 0;
    left: 0;
    width: clamp(80px, 12%, 140px);
    background: linear-gradient(to right, var(--bg), transparent);
    z-index: 1;
    pointer-events: none;
}

/* Fondu bas — renforce l'ancrage */
.hero-right::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 180px;
    background: linear-gradient(to top, var(--bg), transparent);
    z-index: 1;
    pointer-events: none;
}

/* === RESPONSIVE === */
@media (max-width: 960px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    /* Bascule en colonne unique : photo en haut, texte en bas */
    #hero {
        grid-template-columns: 1fr;
        grid-template-rows: 52svh 1fr;
    }

    .hero-right { order: -1; }

    .hero-left { min-height: auto; }

    .hero-left::before { display: none; }

    .hero-badge { top: 16px; left: 24px; }

    .hero-main {
        justify-content: flex-start;
        padding: 32px 24px 24px;
    }

    .hero-title { font-size: clamp(3.2rem, 10vw, 5.5rem); }

    .hero-description { max-width: 100%; }

    .hero-stats { padding-inline: 24px; flex-wrap: wrap; gap: 20px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 3.2rem; }

    .hero-actions { flex-direction: column; align-items: stretch; }

    .btn { justify-content: center; }
}

/* ================================================
   SECTIONS COMMUNES
   ================================================ */
.section-container {
    max-width: 1280px;
    margin-inline: auto;
    padding: 96px clamp(24px, 5vw, 80px);
}

.section-header {
    margin-bottom: 56px;
}

.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--accent);
    font-size: 0.73rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    line-height: 1.0;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--text-primary);
}

/* ================================================
   BUILDS
   ================================================ */
.builds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr));
    gap: 28px;
    justify-items: center;
}

/* Carte centrée, largeur max définie */
.build-card {
    width: 100%;
    max-width: 640px;
}

.build-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s;
}

.build-card:hover {
    border-color: rgba(0, 200, 83, 0.25);
    transform: translateY(-3px);
}


/* Iframe responsive 16:9 */
.build-video {
    aspect-ratio: 16 / 9;
    width: 100%;
}

.build-video iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

.build-title {
    padding: 22px 24px 20px;
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.45;
    border-left: 3px solid var(--accent);
    margin-left: 0;
}

/* ================================================
   CONTACT
   ================================================ */
.contact-inner {
    max-width: 680px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

/* Nom + Email côte à côte sur desktop */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 13px 16px;
    transition: border-color 0.2s;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-confirm {
    font-size: 0.9rem;
    color: var(--accent);
    min-height: 1.4em;
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}

/* ================================================
   RÉSEAUX SOCIAUX
   ================================================ */
#reseaux {
    border-top: 1px solid var(--border);
}

.socials-inner {
    display: flex;
    justify-content: center;
}

.socials-list {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.social-link:hover {
    color: var(--accent);
    border-color: rgba(0, 200, 83, 0.4);
    background: rgba(0, 200, 83, 0.07);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* ================================================
   FOOTER
   ================================================ */
#footer {
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.footer-inner {
    max-width: 1280px;
    margin-inline: auto;
    padding: 28px clamp(24px, 5vw, 80px);
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
}
.footer-logo span { color: var(--accent); }

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-inline-end: auto;
}

.footer-link {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-link:hover { color: var(--accent); }

/* ================================================
   NAV — lien page active
   ================================================ */
.nav-links .nav-active {
    color: var(--accent) !important;
}

/* ================================================
   NEWSLETTER
   ================================================ */
#newsletter {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(0, 200, 83, 0.03);
}

.newsletter-inner {
    max-width: 600px;
    margin-inline: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.newsletter-inner .section-eyebrow {
    justify-content: center;
}

.newsletter-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.newsletter-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.72;
    font-weight: 300;
    max-width: 480px;
}

.newsletter-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.newsletter-fields {
    display: flex;
    gap: 10px;
    width: 100%;
}

.newsletter-fields input[type="email"] {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 13px 18px;
    transition: border-color 0.2s;
}

.newsletter-fields input[type="email"]::placeholder {
    color: var(--text-secondary);
}

.newsletter-fields input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
}

.newsletter-message {
    font-size: 0.9rem;
    min-height: 1.4em;
    transition: color 0.2s;
}

.newsletter-message--success { color: var(--accent); }
.newsletter-message--error   { color: #ff5f5f; }

/* Classe utilitaire accessibilité */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 480px) {
    .newsletter-fields { flex-direction: column; }
    .newsletter-fields .btn { width: 100%; justify-content: center; }
}

/* ================================================
   PAGE OUTILS — EN-TÊTE
   ================================================ */
.page-header-area {
    padding-top: 72px; /* compense la nav fixe */
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.page-header-area .section-container {
    padding-block: 64px 56px;
}

.page-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3.2rem, 7vw, 6.5rem);
    line-height: 1.0;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.75;
    font-weight: 300;
}

/* Variante du container pour la page outils (padding-top réduit car pas de hero) */
.section-container--tools {
    padding-block: 56px 96px;
}

/* ================================================
   OUTILS — GRILLE
   Scalable : 1 col → 2 col → 3 col selon le nb de cartes
   ================================================ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 28px;
    align-items: start;
}

.tool-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.25s;
}

.tool-card:hover {
    border-color: rgba(0, 200, 83, 0.22);
}

.tool-card-header {
    padding: 28px 32px 24px;
    border-bottom: 1px solid var(--border);
}

.tool-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(0, 200, 83, 0.2);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
}

.tool-title {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

/* Nom de l'outil mis en vert */
.tool-name {
    color: var(--accent);
}

.tool-card-body {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tool-card-body p {
    font-size: 1rem;
    color: rgba(238, 238, 248, 0.72);
    line-height: 1.78;
    font-weight: 300;
}

.tool-card-footer {
    padding: 0 32px 28px;
}
