/* ==========================================================================
   BoomInternet inc. — Feuille de style principale
   --------------------------------------------------------------------------
   Sommaire
     1. Variables (couleurs, typographie, espacements)
     2. Base et réinitialisation
     3. Utilitaires
     4. En-tête et navigation
     5. Boutons
     6. Sections (héros, statistiques, brands, caractéristiques, CTA)
     7. Formulaire de contact
     8. Pied de page
     9. Animations
    10. Responsive (tablette, mobile)
   ========================================================================== */

/* 1. Variables ------------------------------------------------------------ */
:root {
    --black:      #000000;   /* Noir profond   */
    --blue:       #007BFF;   /* Bleu électrique */
    --red:        #FF073A;   /* Rouge néon     */

    --surface:    #0b0b0b;   /* Cartes */
    --surface-2:  #121212;   /* Sections alternées */
    --line:       #1f1f1f;   /* Bordures fines */
    --line-2:     #2c2c2c;
    --text:       #ffffff;
    --text-muted: #a3a3a3;
    --text-dim:   #6f6f6f;

    --glow-blue:  0 0 24px rgba(0, 123, 255, .45);
    --glow-red:   0 0 24px rgba(255, 7, 58, .45);

    --font-body:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-title: "Space Grotesk", "Inter", system-ui, sans-serif;

    --radius:     8px;
    --container:  1160px;
    --gutter:     24px;
    --header-h:   72px;
    --ease:       cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 .5em;
    letter-spacing: -.01em;
}

p { margin: 0 0 1em; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: #3d9bff; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection { background: var(--blue); color: #fff; }

/* 3. Utilitaires ---------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.narrow { max-width: 720px; }

.text-blue { color: var(--blue); }
.text-red  { color: var(--red); }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    background: var(--blue);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 500;
    color: var(--blue);
    border: 1px solid var(--blue);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.eyebrow-red { color: var(--red); border-color: var(--red); }

.section       { padding: 88px 0; }
.section-alt   { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 40px; }

.badge {
    display: inline-block;
    font-size: .8rem;
    color: var(--text-muted);
    border: 1px dashed var(--line-2);
    padding: 6px 12px;
    border-radius: var(--radius);
}

/* 4. En-tête et navigation ------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(0, 0, 0, .85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

/* Logo officiel (PNG blanc sur fond transparent) */
.logo { display: inline-flex; align-items: center; }
.logo img {
    height: 38px;
    width: auto;
    transition: filter .25s;
}
.logo:hover img { filter: drop-shadow(0 0 8px rgba(0, 123, 255, .7)); }
.logo-footer img { height: 32px; }

.main-nav ul { display: flex; align-items: center; gap: 8px; }

.main-nav a {
    display: block;
    padding: 8px 14px;
    color: var(--text-muted);
    font-size: .95rem;
    font-weight: 500;
    border-radius: var(--radius);
    position: relative;
}
.main-nav a:hover { color: var(--text); }

.main-nav a.is-active { color: var(--text); }
.main-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    background: var(--blue);
    box-shadow: var(--glow-blue);
}

.main-nav a.nav-cta { color: var(--red); border: 1px solid var(--red); margin-left: 8px; }
.main-nav a.nav-cta:hover,
.main-nav a.nav-cta.is-active { background: var(--red); color: #fff; box-shadow: var(--glow-red); }
.main-nav a.nav-cta.is-active::after { display: none; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line-2);
    color: var(--text);
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open  { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* 5. Boutons -------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .25s, background .2s, color .2s;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary          { background: var(--blue); color: #fff; }
.btn-primary:hover    { color: #fff; box-shadow: var(--glow-blue); }

.btn-red              { background: var(--red); color: #fff; }
.btn-red:hover        { color: #fff; box-shadow: var(--glow-red); }

.btn-outline          { border-color: var(--line-2); color: var(--text); }
.btn-outline:hover    { border-color: var(--blue); color: var(--text); box-shadow: var(--glow-blue); }

.btn-outline-red      { border-color: var(--red); color: var(--red); }
.btn-outline-red:hover{ background: var(--red); color: #fff; box-shadow: var(--glow-red); }

.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row-center { justify-content: center; }

/* 6. Sections -------------------------------------------------------------- */

/* Héros de l'accueil */
.hero {
    position: relative;
    padding: 120px 0 104px;
    overflow: hidden;
}
/* Halos de couleur discrets en arrière-plan */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: .28;
    pointer-events: none;
}
.hero::before { width: 520px; height: 520px; background: var(--blue); top: -220px; right: -120px; }
.hero::after  { width: 380px; height: 380px; background: var(--red);  bottom: -240px; right: 22%; opacity: .18; }
.hero .container { position: relative; z-index: 1; }

.hero-title {
    font-size: clamp(2.2rem, 6.2vw, 4.6rem);
    margin-bottom: 24px;
}
.hero-lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 32px;
}

/* Héros des pages intérieures */
.page-hero {
    padding: 96px 0 40px;
    border-bottom: 1px solid var(--line);
}
.page-hero-center { text-align: center; border-bottom: 0; padding: 120px 0; }
.page-hero-center .hero-lead { margin-left: auto; margin-right: auto; }
.page-title { font-size: clamp(2.1rem, 5vw, 3.6rem); }

.error-code {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: clamp(5rem, 16vw, 9rem);
    line-height: 1;
    margin-bottom: 8px;
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 50%;
    border: 2px solid var(--blue);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-blue);
}
.success-icon .icon { width: 34px; height: 34px; }

/* Statistiques */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat {
    padding: 32px 16px;
    text-align: center;
    border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat-value {
    display: block;
    font-family: var(--font-title);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.1;
}
.stat-label { font-size: .9rem; color: var(--text-dim); }

/* Cartes des brands (accueil) */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.brand-card {
    --accent: var(--blue);
    --glow: var(--glow-blue);
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    padding: 28px;
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.brand-red { --accent: var(--red); --glow: var(--glow-red); }
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: var(--accent); }
.brand-icon { width: 32px; height: 32px; color: var(--accent); margin-bottom: 18px; }
.brand-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.brand-card p  { color: var(--text-muted); font-size: .95rem; }
.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 500;
    font-size: .95rem;
}
.brand-link:hover { color: var(--text); }
.brand-link .icon { width: 16px; height: 16px; }

/* Liste détaillée des brands (page Nos brands) */
.brand-list { display: grid; gap: 24px; }
.brand-row {
    --accent: var(--blue);
    --glow: var(--glow-blue);
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 32px;
    align-items: start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    padding: 36px;
    transition: box-shadow .3s, border-color .3s;
}
.brand-row:hover { box-shadow: var(--glow); border-color: var(--accent); }
.brand-row-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}
.brand-row-icon .icon { width: 48px; height: 48px; }
.brand-number   { font-family: var(--font-title); color: var(--accent); font-size: .9rem; letter-spacing: .1em; }
.brand-row h2   { font-size: 1.75rem; margin: 4px 0; }
.brand-tagline  { color: var(--accent); font-weight: 500; }
.brand-row p.brand-trademark {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--text);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    padding: 6px 12px;
    margin: 4px 0 16px;
}
.brand-trademark .icon { color: var(--accent); }
.brand-row p:not(.brand-tagline) { color: var(--text-muted); max-width: 640px; }

/* Caractéristiques */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--black);
}
.feature-icon { width: 28px; height: 28px; color: var(--blue); margin-bottom: 16px; }
.feature h3   { font-size: 1.15rem; }
.feature p    { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* Texte en deux colonnes (À propos) */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.prose h2 { font-size: 1.6rem; }
.prose p  { color: var(--text-muted); }

/* Bandeau d'appel à l'action */
.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 40px;
    border: 1px solid var(--blue);
    border-radius: 12px;
    background: linear-gradient(120deg, rgba(0, 123, 255, .08), rgba(255, 7, 58, .05));
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 4px; }
.cta-band p  { color: var(--text-muted); margin: 0; }

/* 7. Formulaire de contact ------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 36px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field    { margin-bottom: 22px; }

.field label {
    display: block;
    font-size: .9rem;
    font-weight: 500;
    margin-bottom: 8px;
}
.req { color: var(--red); }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
    width: 100%;
    font: inherit;
    font-size: 1rem;              /* 16 px : évite le zoom automatique sur iPhone */
    color: var(--text);
    background: var(--black);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    padding: 12px 14px;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a3a3a3' stroke-width='1.8'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, .25);
}

.field [aria-invalid="true"] { border-color: var(--red); }
.field-error { color: var(--red); font-size: .875rem; margin: 6px 0 0; }
.field-hint  { color: var(--text-dim); font-size: .85rem; margin: 6px 0 0; }

.field-check { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.field-check input {
    width: 20px;
    height: 20px;
    margin: 3px 0 0;
    accent-color: var(--blue);
    flex-shrink: 0;
}
.field-check label { flex: 1; font-weight: 400; color: var(--text-muted); margin: 0; }
.field-check .field-error { flex-basis: 100%; }

/* Pot de miel antispam : hors écran, mais pas display:none (certains robots le détectent) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert {
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: .95rem;
}
.alert-error { border: 1px solid var(--red); background: rgba(255, 7, 58, .08); }

.contact-info { display: grid; gap: 16px; }
.info-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px 24px;
}
.info-icon     { width: 24px; height: 24px; color: var(--blue); margin-bottom: 10px; }
.info-card h2  { font-size: 1rem; margin-bottom: 4px; }
.info-card p   { margin: 0; color: var(--text-muted); }
.info-card a   { word-break: break-all; }
.info-note     { color: var(--text-dim); font-size: .9rem; }

/* 8. Pied de page ---------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--line);
    padding-top: 64px;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}
.footer-brand p { color: var(--text-dim); margin-top: 12px; max-width: 300px; font-size: .95rem; }
.footer-col h2 {
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-dim);
    margin-bottom: 14px;
}
.footer-col li { margin-bottom: 8px; color: var(--text-muted); font-size: .95rem; }
.footer-col a  { color: var(--text-muted); }
.footer-col a:hover { color: var(--blue); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 20px;
    padding-bottom: 28px;
    border-top: 1px solid var(--line);
    font-size: .85rem;
    color: var(--text-dim);
}
.back-top       { color: var(--text-dim); }
.back-top:hover { color: var(--red); }

/* 9. Animations ------------------------------------------------------------ */
/* Les éléments .reveal apparaissent au défilement (seulement si JavaScript est actif). */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* 10. Responsive ------------------------------------------------------------ */
@media (max-width: 960px) {
    .brand-grid, .feature-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid, .two-col    { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid               { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --gutter: 16px; --header-h: 64px; }

    /* Menu mobile. Le flou d'arrière-plan est retiré ici : il empêcherait
       le menu (position: fixed) de couvrir tout l'écran. */
    .site-header { background: var(--black); -webkit-backdrop-filter: none; backdrop-filter: none; }
    .nav-toggle { display: inline-flex; }
    .logo img { height: 32px; }
    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--black);
        padding: 24px var(--gutter);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform .3s var(--ease), visibility .3s;
    }
    .nav-open .main-nav { transform: none; visibility: visible; }
    .nav-open { overflow: hidden; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
    .main-nav a { font-size: 1.2rem; padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .main-nav a.is-active::after { left: 0; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; }
    .main-nav a.nav-cta { margin: 16px 0 0; text-align: center; border-radius: var(--radius); }

    .section    { padding: 64px 0; }
    .hero       { padding: 72px 0 64px; }
    .page-hero  { padding: 64px 0 32px; }
    .page-hero-center { padding: 80px 0; }
    .hero-lead  { font-size: 1.05rem; }
    .btn-row .btn { flex: 1 1 100%; }

    .stats-grid { grid-template-columns: 1fr; }
    .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 16px; }
    .stat:last-child { border-bottom: 0; }

    .brand-grid, .feature-grid, .form-row { grid-template-columns: 1fr; }
    .form-row { gap: 0; }

    .brand-row { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
    .brand-row-icon { width: 72px; height: 72px; }
    .brand-row-icon .icon { width: 32px; height: 32px; }

    .contact-form { padding: 24px 20px; }
    .cta-band { padding: 28px 22px; }
    .cta-band .btn { width: 100%; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
