/**
 * --------------------------------------------------------------------------------------------
 * @Package       BMS vCard 8.x
 * @Author        MSA Réalisations Sàrl
 * @Copyright     © 2026 MSA Réalisations Sàrl. Tous droits réservés.
 * @Version       8.1
 * --------------------------------------------------------------------------------------------
 * @File          bmscontent/Styles/css/style.css
 * @Description   Style unique de la carte — « Obsidian », repris de bms_test (thème v2.0) :
 *                fond sombre, halos colorés, anneau tournant autour du portrait, éléments
 *                en verre dépoli, apparition en cascade.
 *
 *                Règles vCard : aucun style inline, aucun JavaScript (rideau et apparitions
 *                en CSS pur), aucune source externe (polices servies en local depuis
 *                ../fonts/, licence OFL).
 *
 *                Style du PRODUIT, commun à tous les clients. Une nouvelle version se recopie à la
 *                main depuis le dépôt dans le projet local de chaque site ; le paquet de mise à jour
 *                emporte ensuite bmscontent/ tel quel (décision 33). Les couleurs du client sont dans
 *                colors.css, propre au site.
 *
 *                2026-10-05 — bloc ÉCRANS TACTILES, retour du premier site réel (75mm) :
 *                sur téléphone et tablette, ni rideau, ni halos, ni cascade ; la page s'ouvre
 *                par un fondu de 0,6 s. Voir le bloc pour le constat.
 * --------------------------------------------------------------------------------------------
 * @Created       2026-10-04
 * @Updated       2026-10-05
 * --------------------------------------------------------------------------------------------
 */

/* ================================================================
   POLICES — servies en local (../fonts/, licence OFL, sous-ensemble
   latin, @fontsource). Aucune source externe : la CSP l'interdit.
================================================================ */
@font-face {
    font-family: "Bebas Neue";
    src: url("../fonts/bebas-neue-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "DM Serif Display";
    src: url("../fonts/dm-serif-display-400-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Figtree";
    src: url("../fonts/figtree-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Figtree";
    src: url("../fonts/figtree-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Figtree";
    src: url("../fonts/figtree-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ================================================================
   VARIABLES
   Les couleurs du client (--c-accent, --c-accent2) vivent dans
   colors.css, chargé après ce fichier. Valeurs ci-dessous : repli.
================================================================ */
:root {
    /* Couleurs du client — repli, surchargées par colors.css */
    --c-accent   : #239a8f;
    --c-accent2  : #1a7a70;

    /* Palette de base — sombre */
    --c-bg       : #07070f;
    --c-surface  : #0d0d1a;
    --c-glass    : rgba(255, 255, 255, 0.04);
    --c-glass-hi : rgba(255, 255, 255, 0.07);
    --c-border   : rgba(255, 255, 255, 0.07);
    --c-text     : #eeeef8;
    --c-muted    : rgba(238, 238, 248, 0.5);

    /* Typographie — polices locales, repli sur les polices système */
    --ff-display : "Bebas Neue", "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --ff-serif   : "DM Serif Display", Georgia, "Times New Roman", serif;
    --ff-body    : "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Formes */
    --radius     : 18px;
    --radius-sm  : 12px;
    --max-w      : 450px;

    /* Courbes */
    --ease       : cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out   : cubic-bezier(0, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ================================================================
   RESET & FONDATIONS
================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--ff-body);
    background: var(--c-bg);
    color: var(--c-text);
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.sprite { display: none; }

/* ================================================================
   INTRO — RIDEAU (CSS pur)
   Deux panneaux s'écartent, puis le rideau disparaît.
================================================================ */
.intro {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    pointer-events: none;
    animation: introHide 0s linear 1.25s forwards;
}
.intro__panel {
    flex: 1;
    background: #000;
    animation: 0.95s var(--ease-out) 0.2s forwards;
}
.intro__panel--left  { animation-name: curtainLeft; }
.intro__panel--right { animation-name: curtainRight; }

@keyframes curtainLeft  { to { transform: translateX(-101%); } }
@keyframes curtainRight { to { transform: translateX(101%); } }
@keyframes introHide    { to { visibility: hidden; } }

/* ================================================================
   AURORA — HALOS D'AMBIANCE
================================================================ */
.aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.aurora__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.16;
    animation: blobDrift 22s ease-in-out infinite;
    will-change: transform;
}
.aurora__blob--1 { width: 550px; height: 550px; background: var(--c-accent);  top: -180px; left: -120px; }
.aurora__blob--2 { width: 450px; height: 450px; background: var(--c-accent2); bottom: 80px; right: -100px; animation-delay: -11s; animation-direction: reverse; }
.aurora__blob--3 { width: 320px; height: 320px; background: var(--c-accent);  top: 45%; left: 25%; opacity: 0.08; animation-delay: -6s; animation-duration: 32s; }

@keyframes blobDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(50px, -70px) scale(1.12); }
    66%      { transform: translate(-35px, 45px) scale(0.93); }
}

/* ================================================================
   PAGE
================================================================ */
.page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100svh;
    padding-bottom: 16px;
}

/* ================================================================
   HERO — BANNIÈRE
================================================================ */
.hero {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: var(--c-surface);
}
.hero--empty {
    background:
        radial-gradient(120% 90% at 20% 0%, var(--c-accent) 0%, transparent 60%),
        radial-gradient(100% 80% at 90% 20%, var(--c-accent2) 0%, transparent 55%),
        var(--c-surface);
    opacity: 0.9;
}
.hero__banner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.38;
    transform: scale(1.06);
    filter: blur(2px);
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(7, 7, 15, 0.25) 0%, rgba(7, 7, 15, 0.8) 65%, var(--c-bg) 100%);
}
.hero::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--c-accent) 30%, var(--c-accent2) 70%, transparent 100%);
    opacity: 0.55;
}

/* ================================================================
   PORTRAIT
================================================================ */
.profile-header {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: -68px;
    padding: 0 20px;
}
.avatar-wrap { position: relative; display: inline-block; flex-shrink: 0; }
.avatar-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--c-accent) 0%, var(--c-accent2) 30%, transparent 55%, var(--c-accent) 100%);
    animation: ringRotate 5s linear infinite;
}
.avatar-ring::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--c-bg);
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

.avatar,
.avatar-initials {
    position: relative;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    z-index: 1;
}
.avatar { object-fit: cover; }
.avatar-initials {
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-display);
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: #fff;
}
.avatar-glow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 12px;
    background: var(--c-accent);
    border-radius: 50%;
    filter: blur(12px);
    opacity: 0.5;
}

/* ================================================================
   IDENTITÉ
================================================================ */
.identity {
    text-align: center;
    padding: 18px 24px 0;
    max-width: var(--max-w);
    margin: 0 auto;
}
.identity__name {
    font-family: var(--ff-display);
    font-size: clamp(2.3rem, 10vw, 3.4rem);
    font-weight: 400;
    letter-spacing: 1.5px;
    line-height: 0.95;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.identity__title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}
.identity__sep {
    height: 1px;
    width: 30px;
    background: var(--c-accent);
    flex-shrink: 0;
    opacity: 0.7;
}
.identity__title {
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--c-muted);
    font-weight: 500;
}
.identity__company {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--c-accent);
    margin-bottom: 18px;
}
.identity__bio {
    font-family: var(--ff-serif);
    font-style: italic;
    font-size: 1.08rem;
    line-height: 1.68;
    color: rgba(238, 238, 248, 0.72);
    max-width: 340px;
    margin: 0 auto;
}

/* ================================================================
   SÉPARATEUR
================================================================ */
.section-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 26px 24px 22px;
    max-width: var(--max-w);
    margin: 0 auto;
}
.section-divider__line { flex: 1; height: 1px; background: var(--c-border); }
.section-divider__dot  { width: 5px; height: 5px; border-radius: 50%; background: var(--c-accent); opacity: 0.6; }

/* ================================================================
   SECTIONS
================================================================ */
.section {
    padding: 0 20px;
    max-width: var(--max-w);
    margin: 0 auto 16px;
}
.section--social { margin-top: 4px; }
.section__eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--c-muted);
    margin-bottom: 10px;
    padding-left: 2px;
}

/* ================================================================
   CONTACT
================================================================ */
.contact-list { display: flex; flex-direction: column; gap: 7px; list-style: none; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    background: var(--c-glass);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition:
        background   0.28s var(--ease),
        border-color 0.28s var(--ease),
        transform    0.28s var(--ease-spring),
        box-shadow   0.28s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
a.contact-item:hover,
a.contact-item:focus-visible {
    background: var(--c-glass-hi);
    border-color: var(--c-accent);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}
a.contact-item:active { transform: translateY(0) scale(0.985); }

.contact-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--c-accent);
}
.contact-icon-wrap svg { width: 18px; height: 18px; fill: currentColor; }
.contact-body { flex: 1; min-width: 0; }
.contact-sublabel,
.contact-value { display: block; }
.contact-sublabel {
    font-size: 0.66rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-muted);
    line-height: 1;
    margin-bottom: 4px;
}
.contact-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.contact-value--wrap { white-space: normal; }
.contact-chevron {
    color: var(--c-muted);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.22s, transform 0.22s var(--ease-spring);
    flex-shrink: 0;
}
.contact-chevron svg { width: 15px; height: 15px; fill: currentColor; }
a.contact-item:hover .contact-chevron,
a.contact-item:focus-visible .contact-chevron { opacity: 1; transform: translateX(0); }

/* ================================================================
   RÉSEAUX SOCIAUX
================================================================ */
.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    list-style: none;
}
.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 14px 6px;
    background: var(--c-glass);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition:
        background   0.25s var(--ease),
        border-color 0.25s var(--ease),
        transform    0.3s var(--ease-spring),
        box-shadow   0.25s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.social-btn:hover,
.social-btn:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}
.social-btn:active { transform: scale(0.96); }

.social-icon-wrap {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-accent);
}
.social-icon-wrap svg { width: 22px; height: 22px; fill: currentColor; transition: transform 0.2s var(--ease-spring); }
.social-btn:hover .social-icon-wrap svg { transform: scale(1.12); }

/* Couleurs de marque — anciennement inline, désormais ici */
.social-btn--linkedin  .social-icon-wrap,
.social-btn--linkedinc .social-icon-wrap { color: #0a66c2; }
.social-btn--instagram .social-icon-wrap { color: #e4405f; }
.social-btn--facebook  .social-icon-wrap { color: #1877f2; }
.social-btn--youtube   .social-icon-wrap { color: #ff0000; }
.social-btn--twitter   .social-icon-wrap,
.social-btn--tiktok    .social-icon-wrap,
.social-btn--github    .social-icon-wrap { color: #ffffff; }
.social-btn--whatsapp  .social-icon-wrap { color: #25d366; }

.social-label {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-muted);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}

/* ================================================================
   LOGO & PIED DE PAGE
================================================================ */
.brand { display: flex; justify-content: center; padding: 18px 20px 0; }
.brand img { max-width: 140px; max-height: 60px; opacity: 0.85; }

.footer {
    text-align: center;
    padding: 28px 20px 36px;
    color: rgba(238, 238, 248, 0.25);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    line-height: 1.8;
}
.footer strong { color: rgba(238, 238, 248, 0.42); font-weight: 600; }

/* ================================================================
   APPARITION EN CASCADE (CSS pur, après le rideau)
================================================================ */
.anim { animation: rise 0.75s var(--ease-out) both; animation-delay: 0.7s; }
.delay-1 { animation-delay: 0.75s; }
.delay-2 { animation-delay: 0.85s; }
.delay-3 { animation-delay: 0.95s; }
.delay-4 { animation-delay: 1.05s; }
.delay-5 { animation-delay: 1.15s; }
.delay-6 { animation-delay: 1.25s; }

@keyframes rise {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   PAGE NEUTRE (404, 405, 500) — template et page de secours
================================================================ */
.card--error {
    position: relative;
    z-index: 1;
    max-width: var(--max-w);
    margin: 18vh auto 0;
    padding: 0 24px;
    text-align: center;
}
.card__code {
    font-family: var(--ff-display);
    font-size: 5rem;
    font-weight: 400;
    line-height: 1;
    color: var(--c-accent);
}
.card__bio { margin: 14px 0 22px; color: var(--c-muted); }
.card__back {
    display: inline-block;
    padding: 12px 22px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: var(--c-glass);
    color: var(--c-text);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.card__back:hover, .card__back:focus-visible { border-color: var(--c-accent); }

/* ================================================================
   ACCESSIBILITÉ
================================================================ */
:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ================================================================
   ÉCRANS PLUS LARGES
================================================================ */
@media (min-width: 480px) {
    .hero           { height: 270px; }
    .social-grid    { grid-template-columns: repeat(5, 1fr); }
    .identity__name { font-size: 3.8rem; }
}
@media (min-width: 680px) {
    .identity__name { font-size: 4.3rem; }
}

/* ================================================================
   MOUVEMENT RÉDUIT
================================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        transition-duration: 0.01ms !important;
    }
    .intro { display: none; }
}

/* ================================================================
   AJOUT BMS vCard 8.0 (2026-10-05) — ÉCRANS TACTILES (téléphone, tablette)
   Constat sur iPhone (Safari iOS, site 75mm en production, 2026-10-05) : le rideau ne
   glisse pas — écran noir 1 à 3 s, puis la page entière d'un coup — et la cascade ne se
   voit pas. Cause supposée, non confirmée : les halos (blur 110 px, animation infinie)
   saturent le GPU du téléphone. Règle validée sur l'appareil : pas de rideau ni de
   montées en fondu, halos retirés (lourds, à peine visibles) ; la page entière s'ouvre
   par un fondu d'opacité de 0,6 s, propriété la moins coûteuse. Ciblage par le pointeur,
   pas par la largeur : Safari réduit à 400 px anime très bien, le défaut tient à l'appareil.
================================================================ */
@media (hover: none) and (pointer: coarse) {
    .aurora { display: none; }
    .intro  { display: none; }
    .anim   { animation: none; opacity: 1; transform: none; }
    .page   { animation: pageFade 0.6s ease-out both; }
}
@keyframes pageFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ================================================================
   AJOUT BMS vCard 8.0 (2026-10-04) — BOUTON « AJOUTER AUX CONTACTS »
   Avec le bloc ÉCRANS TACTILES, les deux seuls blocs qui ne viennent pas du style
   Obsidian d'origine.
================================================================ */
.cta {
    display: flex;
    justify-content: center;
    padding: 22px 24px 0;
    max-width: var(--max-w);
    margin: 0 auto;
}
.cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent2));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s var(--ease-spring), box-shadow 0.25s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.cta__btn:hover,
.cta__btn:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45); }
.cta__btn:active        { transform: scale(0.97); }
.cta__icon              { display: flex; width: 18px; height: 18px; }
.cta__icon svg          { width: 18px; height: 18px; fill: currentColor; }
