/*
 * vitrine.css — Styles spécifiques à la landing page publique TechAstro.
 *
 * Ce fichier complète aurora.css (tokens, polices, utilitaires HUD).
 * Toutes les classes sont préfixées ta-v-* pour éviter les collisions.
 * Zéro CDN, zéro inline runtime, CSP self.
 *
 * Sections :
 *   1. Reset & base vitrine
 *   2. Animations (au-drift, au-rise)
 *   3. Fond animé (blobs radiaux)
 *   4. Header (glass sticky)
 *   5. Hero
 *   6. Sections communes
 *   7. Cartes services
 *   8. Étapes méthode
 *   9. Section contact & formulaire
 *  10. Footer
 *  11. Flashes
 *  12. Responsive (~720px)
 *
 * @author TechAstro / Vitrine V1
 * @since  2026-06-27
 */

/* ═══════════════════════════════════════════════════════════════════
   1. RESET & BASE VITRINE
   ═══════════════════════════════════════════════════════════════════ */

/* Override du fond ta-theme (navy dark) — la vitrine est sur fond clair */
body.ta-theme {
    background-color: var(--c-bg);
    background-image: none;
    color: var(--c-navy);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Scrollbar personnalisée (maquette) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb {
    background: rgba(26, 111, 255, 0.25);
    border-radius: 10px;
}
::-webkit-scrollbar-track { background: transparent; }

/* Sélection de texte bleue */
::selection {
    background: var(--c-blue);
    color: #fff;
}

/* Liens sans décoration par défaut dans la vitrine */
.ta-v-header a,
.ta-v-footer a {
    text-decoration: none;
    color: inherit;
}

/* Utilitaire dégradé texte bleu→violet (utilisé sur H1 + numéros étapes) */
.ta-v-grad-text {
    background: var(--grad-aurora);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ═══════════════════════════════════════════════════════════════════
   2. ANIMATIONS
   Reprises exactement depuis la maquette.
   ═══════════════════════════════════════════════════════════════════ */

/* Dérive lente des blobs (blob 1 & 3) */
@keyframes ta-v-drift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(4%, -3%) scale(1.08); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Dérive alternative (blob 2 : sens opposé) */
@keyframes ta-v-drift2 {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-5%, 4%) scale(1.12); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Apparition de bas en haut (hero, badge) */
@keyframes ta-v-rise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════
   3. FOND ANIMÉ (BLOBS)
   3 sphères radiales en position fixed derrière tout le contenu.
   pointer-events:none → n'interfèrent pas avec les clics.
   ═══════════════════════════════════════════════════════════════════ */

.ta-v-blobs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Blob bleu : en haut à gauche */
.ta-v-blob--blue {
    position: absolute;
    top: -20%;
    left: -12%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(26, 111, 255, 0.34), transparent 62%);
    filter: blur(44px);
    animation: ta-v-drift 18s ease-in-out infinite;
}

/* Blob violet : en haut à droite */
.ta-v-blob--violet {
    position: absolute;
    top: 12%;
    right: -16%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(120, 90, 255, 0.28), transparent 62%);
    filter: blur(48px);
    animation: ta-v-drift2 22s ease-in-out infinite;
}

/* Blob cyan : en bas au centre */
.ta-v-blob--cyan {
    position: absolute;
    bottom: -24%;
    left: 26%;
    width: 52vw;
    height: 52vw;
    background: radial-gradient(circle, rgba(60, 200, 230, 0.24), transparent 62%);
    filter: blur(52px);
    animation: ta-v-drift 26s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════════
   4. HEADER (GLASS STICKY)
   Glassmorphism : fond translucide + backdrop-blur + bordure blanche.
   ═══════════════════════════════════════════════════════════════════ */

.ta-v-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 34px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(234, 241, 251, 0.62);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

/* Logo : SVG + wordmark monospace */
.ta-v-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}

.ta-v-wordmark {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.28em;
    color: var(--c-navy);
}

/* Navigation principale */
.ta-v-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.ta-v-nav__link {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: #5b6b8c;
    transition: color 0.2s;
    text-decoration: none;
}

.ta-v-nav__link:hover,
.ta-v-nav__link:focus-visible {
    color: var(--c-blue);
}

/* Bouton "ESPACE CLIENT →" : pilule bleue */
.ta-v-nav__cta {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--c-blue);
    border: 1px solid rgba(26, 111, 255, 0.3);
    border-radius: 999px;
    padding: 9px 18px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.ta-v-nav__cta:hover,
.ta-v-nav__cta:focus-visible {
    background: var(--c-blue);
    color: #fff;
    outline: 2px solid var(--c-blue);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════════
   5. HERO
   Section plein centre, animation au-rise décalée sur les éléments.
   ═══════════════════════════════════════════════════════════════════ */

.ta-v-hero {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 96px 34px 88px;
    text-align: center;
}

/* Badge "STUDIO WEB & SAAS SUR-MESURE" */
.ta-v-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--c-blue);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    padding: 8px 16px;
    margin-bottom: 28px;
    animation: ta-v-rise 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

/* Point vert "en ligne" dans le badge */
.ta-v-hero__badge-dot {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1f9d4d;
    flex-shrink: 0;
}

/* H1 principal */
.ta-v-hero__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 62px;
    line-height: 1.04;
    letter-spacing: -0.02em;
    margin: 0 auto 22px;
    max-width: 880px;
    color: var(--c-navy);
    animation: ta-v-rise 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) 0.05s both;
}

/* Sous-titre descriptif */
.ta-v-hero__subtitle {
    font-size: 18px;
    line-height: 1.65;
    color: #5b6b8c;
    max-width: 600px;
    margin: 0 auto 38px;
    animation: ta-v-rise 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) 0.1s both;
}

/* Groupe de CTA */
.ta-v-hero__ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    animation: ta-v-rise 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) 0.15s both;
}

/* ═══════════════════════════════════════════════════════════════════
   BOUTONS COMMUNS
   ═══════════════════════════════════════════════════════════════════ */

.ta-v-btn {
    display: inline-block;
    border-radius: 14px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    padding: 16px 30px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.18s, box-shadow 0.25s;
}

/* Bouton primaire (dégradé bleu→violet) */
.ta-v-btn--primary {
    background: var(--grad-aurora);
    color: #fff;
    box-shadow: 0 14px 34px -10px rgba(26, 111, 255, 0.6);
}

.ta-v-btn--primary:hover,
.ta-v-btn--primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px -10px rgba(26, 111, 255, 0.65);
    color: #fff;
    text-decoration: none;
}

/* Bouton ghost (verre blanc) */
.ta-v-btn--ghost {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: var(--c-navy);
}

.ta-v-btn--ghost:hover,
.ta-v-btn--ghost:focus-visible {
    transform: translateY(-2px);
    color: var(--c-navy);
    text-decoration: none;
}

/* Focus visible global (accessibilité) */
.ta-v-btn:focus-visible {
    outline: 2px solid var(--c-blue);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════════
   6. SECTIONS COMMUNES
   Eyebrow (label mono bleu), titre h2, espacement.
   ═══════════════════════════════════════════════════════════════════ */

.ta-v-section {
    position: relative;
    z-index: 1;
    max-width: 1160px;
    margin: 0 auto;
    padding: 40px 34px 80px;
}

.ta-v-section__head {
    text-align: center;
    margin-bottom: 42px;
}

/* Eyebrow : petite étiquette au-dessus du titre (ex. "CE QUE NOUS FAISONS") */
.ta-v-section__eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--c-blue);
    margin-bottom: 12px;
}

/* Titre de section h2 */
.ta-v-section__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 38px;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--c-navy);
}

/* ═══════════════════════════════════════════════════════════════════
   7. CARTES SERVICES (GLASSMORPHISM)
   Grille 3 colonnes auto-fit, effet verre + hover lift.
   ═══════════════════════════════════════════════════════════════════ */

.ta-v-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.ta-v-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    padding: 30px 28px;
    box-shadow: 0 16px 40px -22px rgba(26, 60, 140, 0.4);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.3s;
}

.ta-v-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -24px rgba(26, 60, 140, 0.5);
}

/* Icône de la carte : carré dégradé bleu→violet */
.ta-v-card__icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--grad-aurora);
    margin-bottom: 20px;
    box-shadow: 0 12px 28px -10px rgba(26, 111, 255, 0.55);
}

.ta-v-card__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 21px;
    margin: 0 0 10px;
    color: var(--c-navy);
}

.ta-v-card__desc {
    font-size: 14px;
    line-height: 1.6;
    color: #5b6b8c;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   8. ÉTAPES MÉTHODE (PROCESS)
   Grille 4 colonnes auto-fit, numéros dégradés.
   ═══════════════════════════════════════════════════════════════════ */

.ta-v-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.ta-v-step {
    position: relative;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 22px;
    padding: 28px 24px;
}

/* Numéro (01, 02, 03, 04) en dégradé */
.ta-v-step__num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 34px;
    background: var(--grad-aurora);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 14px;
}

.ta-v-step__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
    margin: 0 0 8px;
    color: var(--c-navy);
}

.ta-v-step__desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: #5b6b8c;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   9. SECTION CONTACT & FORMULAIRE
   Carte dégradée bleu→violet. Textes blancs. Formulaire intégré.
   ═══════════════════════════════════════════════════════════════════ */

.ta-v-section--contact {
    max-width: 1000px;
}

/* Carte principale contact */
.ta-v-contact-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(26, 111, 255, 0.95), rgba(120, 90, 255, 0.95));
    border-radius: 30px;
    padding: 64px 48px;
    color: #fff;
    box-shadow: 0 30px 70px -26px rgba(26, 111, 255, 0.7);
}

.ta-v-contact-card__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 40px;
    letter-spacing: -0.01em;
    margin: 0 0 14px;
    color: #fff;
}

.ta-v-contact-card__subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
    margin: 0 auto 24px;
}

/* Lien email anti-scraping */
.ta-v-contact-card__email-hint {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 32px;
    text-align: center;
}

.ta-v-email-link {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ta-v-email-link:hover,
.ta-v-email-link:focus-visible {
    color: #fff;
}

/* ── Formulaire de contact ── */
.ta-v-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 8px;
}

/* Ligne horizontale : 2 champs côte à côte */
.ta-v-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.ta-v-form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Label mono */
.ta-v-form__label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.ta-v-form__optional {
    font-weight: 400;
    opacity: 0.7;
    text-transform: none;
    letter-spacing: normal;
    font-size: 10px;
}

/* Input / Textarea */
.ta-v-form__input {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 13px 16px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.ta-v-form__input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.ta-v-form__input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.22);
}

.ta-v-form__input:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 1px;
}

/* Textarea */
.ta-v-form__textarea {
    resize: vertical;
    min-height: 120px;
}

/* Bouton d'envoi */
.ta-v-btn--submit {
    align-self: flex-start;
    background: #fff;
    color: var(--c-blue);
    border-radius: 14px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    padding: 16px 30px;
    cursor: pointer;
    border: none;
    transition: transform 0.18s, box-shadow 0.25s;
    font-weight: 700;
}

.ta-v-btn--submit:hover,
.ta-v-btn--submit:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px -10px rgba(0, 0, 0, 0.3);
    color: var(--c-blue);
}

.ta-v-btn--submit:focus-visible {
    outline: 2px solid var(--c-blue);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════════
   10. FOOTER
   ═══════════════════════════════════════════════════════════════════ */

.ta-v-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(26, 60, 140, 0.1);
    padding: 30px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.ta-v-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ta-v-footer__wordmark {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: #7a89aa;
}

.ta-v-footer__copy {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #9aa8c6;
    letter-spacing: 0.04em;
}

.ta-v-footer__links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ta-v-footer__link {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #7a89aa;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: color 0.2s;
}

.ta-v-footer__link:hover,
.ta-v-footer__link:focus-visible {
    color: var(--c-blue);
}

/* Lien CTA espace client en bleu */
.ta-v-footer__link--cta {
    color: var(--c-blue);
}

.ta-v-footer__sep {
    color: #bcc6d8;
    font-size: 10px;
}

/* ═══════════════════════════════════════════════════════════════════
   11. FLASHES (succès / erreur)
   ═══════════════════════════════════════════════════════════════════ */

.ta-v-flash {
    padding: 14px 20px;
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.ta-v-flash--success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.4);
    color: #1a5e2e;
}

.ta-v-flash--error {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.35);
    color: #7b1b22;
}

/* ═══════════════════════════════════════════════════════════════════
   12. RESPONSIVE (~720px)
   Nav compacte, grilles en 1 colonne, hero réduit.
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 720px) {

    /* Header : nav compacte avec gap réduit */
    .ta-v-header {
        padding: 14px 20px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .ta-v-nav {
        gap: 14px;
        flex-wrap: wrap;
    }

    /* Masquer les liens de nav secondaires, garder ESPACE CLIENT */
    .ta-v-nav__link:not(.ta-v-nav__cta) {
        font-size: 11px;
    }

    /* Hero : titre réduit */
    .ta-v-hero {
        padding: 60px 20px 60px;
    }

    .ta-v-hero__title {
        font-size: 36px;
    }

    .ta-v-hero__subtitle {
        font-size: 16px;
    }

    /* Sections : padding réduit */
    .ta-v-section {
        padding: 30px 20px 60px;
    }

    .ta-v-section__title {
        font-size: 28px;
    }

    /* Grilles en 1 colonne */
    .ta-v-cards {
        grid-template-columns: 1fr;
    }

    .ta-v-steps {
        grid-template-columns: 1fr 1fr;
    }

    /* Formulaire : colonnes en 1 */
    .ta-v-form__row {
        grid-template-columns: 1fr;
    }

    /* Contact card : padding réduit */
    .ta-v-contact-card {
        padding: 40px 24px;
    }

    .ta-v-contact-card__title {
        font-size: 28px;
    }

    /* Bouton submit : pleine largeur sur mobile */
    .ta-v-btn--submit {
        align-self: stretch;
        text-align: center;
    }

    /* Footer : colonne */
    .ta-v-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
    }

    .ta-v-footer__links {
        justify-content: center;
    }
}

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

    .ta-v-hero__title {
        font-size: 28px;
    }
}
