/**
 * --------------------------------------------------------------------------------------------
 * @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.0
 * --------------------------------------------------------------------------------------------
 * @File          bmscontent/Styles/css/style.css
 * @Description   Style du site — thème clair « 75mm », calqué sur www.75mm.ch (_int/75mm) :
 *                Poppins, nom en capitales avec un mot en bleu et la barre bleue de 55 × 2 px
 *                du site, fonction en petites capitales bleues, bouton pilule, liste de contact
 *                à filets, tuiles sociales aux couleurs des réseaux (bandeau social de
 *                l'accueil), pied de page bleu nuit avec bande de copyright.
 *
 *                Remplace le style produit « Obsidian » (décision Marc 2026-10-07, option 1 :
 *                style propre au site ; une évolution du style produit se reporte à la main,
 *                le paquet de mise à jour emporte ce bmscontent/ tel quel, décision 33 de
 *                l'atelier). Plus de rideau, de halos ni d'anneau : le gabarit layout.html
 *                a perdu ce balisage le même jour.
 *
 *                Règles vCard conservées : aucun style inline, aucun JavaScript, aucune source
 *                externe (Poppins 300/400/500/600 servie depuis ../fonts/, sous-ensemble latin
 *                de @fontsource 5.3.0, licence OFL 1.1), fondu de page sur écrans tactiles
 *                (retour iPhone du 2026-10-05), mouvement réduit respecté. Bandeau : photo
 *                nette à 85 % (réglage du 2026-10-05, conservé sur décision Marc 2026-10-07).
 *                Les couleurs sont dans colors.css, chargé après ce fichier.
 * --------------------------------------------------------------------------------------------
 * @Created       2026-10-04
 * @Updated       2026-10-08
 * --------------------------------------------------------------------------------------------
 */

/* ================================================================
   POLICES — Poppins, servie en local (../fonts/, OFL 1.1, sous-ensemble
   latin, @fontsource 5.3.0). Aucune source externe : la CSP l'interdit.
================================================================ */
@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins-300.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ================================================================
   VARIABLES
   La palette vit dans colors.css, chargé après ce fichier.
   Valeurs ci-dessous : repli, identiques à colors.css.
================================================================ */
:root {
    /* Palette — repli */
    --c-accent       : #239ad6;
    --c-accent-hover : #14a5eb;
    --c-dark         : #1d1d1d;
    --c-navy         : #2d344d;
    --c-navy-deep    : #202538;
    --c-navy-text    : #a7b0b4;
    --c-navy-muted   : #4e5673;
    --c-bg           : #ffffff;
    --c-bg-alt       : #f8f8f8;
    --c-title        : #424242;
    --c-text         : #504645;
    --c-text-light   : #606060;
    --c-muted        : #a7b0b4;
    --c-border       : #ebebeb;

    /* Typographie */
    --ff-body    : "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Formes */
    --radius     : 18px;
    --radius-pill: 30px;
    --max-w      : 450px;
    --card-w     : 480px;

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

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

/* ================================================================
   PAGE — colonne blanche ; carte posée sur fond gris clair
   au-delà de 600 px (voir ÉCRANS PLUS LARGES)
================================================================ */
.page {
    position: relative;
    background: var(--c-bg);
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
}

/* ================================================================
   HERO — BANDEAU
   Photo nette à 85 % sur fond sombre ; voile léger en haut pour la
   marque, fondu discret en bas vers le portrait.
================================================================ */
.hero {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: var(--c-dark);
}
.hero__banner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.22) 100%);
}
.hero--empty {
    background:
        radial-gradient(120% 90% at 20% 0%, rgba(35, 154, 214, 0.55) 0%, transparent 60%),
        var(--c-dark);
}
.hero__brand {
    position: absolute;
    top: 16px;
    left: 18px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
}
.hero__brand img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}
.hero__brand span {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ================================================================
   PORTRAIT
================================================================ */
.profile-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin-top: -60px;
    padding: 0 20px;
}
.avatar-wrap { position: relative; display: inline-block; flex-shrink: 0; }
.avatar,
.avatar-initials {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--c-bg);
    background: var(--c-bg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}
.avatar { object-fit: cover; }
.avatar-initials {
    background: var(--c-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: #fff;
}

/* ================================================================
   IDENTITÉ — nom en capitales, un mot en bleu, barre bleue du site
================================================================ */
.identity {
    text-align: center;
    padding: 14px 24px 0;
    max-width: var(--max-w);
    margin: 0 auto;
}
.identity__name {
    font-size: clamp(1.55rem, 7vw, 1.9rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--c-title);
}
.identity__name-accent { color: var(--c-accent); }
.identity__bar {
    width: 55px;
    height: 2px;
    background: var(--c-accent);
    margin: 12px auto;
}
.identity__title {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-accent);
}
.identity__company {
    font-size: 0.84rem;
    font-weight: 300;
    color: var(--c-text-light);
    margin-top: 4px;
}
.identity__bio {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--c-text);
    max-width: 340px;
    margin: 14px auto 0;
}

/* ================================================================
   BOUTON « AJOUTER AUX CONTACTS » — pilule du site (.btn de main.css)
================================================================ */
.cta {
    display: flex;
    justify-content: center;
    padding: 20px 24px 0;
    max-width: var(--max-w);
    margin: 0 auto;
}
.cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 28px;
    border-radius: var(--radius-pill);
    background: var(--c-accent);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition:
        background   0.25s var(--ease),
        transform    0.25s var(--ease),
        box-shadow   0.25s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.cta__btn:hover,
.cta__btn:focus-visible {
    background: var(--c-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(35, 154, 214, 0.3);
}
.cta__btn:active { transform: scale(0.97); }
.cta__icon       { display: flex; width: 16px; height: 16px; }
.cta__icon svg   { width: 16px; height: 16px; fill: currentColor; }

/* ================================================================
   SECTIONS
================================================================ */
.section {
    padding: 26px 22px 0;
    max-width: var(--max-w);
    margin: 0 auto;
}
.section__eyebrow {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-muted);
    margin-bottom: 4px;
}

/* ================================================================
   CONTACT — lignes à filets, icône bleue
================================================================ */
.contact-list { list-style: none; }
.contact-list li + li .contact-item { border-top: 1px solid var(--c-border); }
.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    -webkit-tap-highlight-color: transparent;
}
.contact-icon-wrap {
    width: 22px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    color: var(--c-accent);
}
.contact-icon-wrap svg { width: 20px; height: 20px; fill: currentColor; }
.contact-body { flex: 1; min-width: 0; }
.contact-sublabel,
.contact-value { display: block; }
.contact-sublabel {
    font-size: 0.64rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-muted);
    line-height: 1;
    margin-bottom: 3px;
}
.contact-value {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s var(--ease);
}
.contact-value--wrap { white-space: normal; }
a.contact-item:hover .contact-value,
a.contact-item:focus-visible .contact-value { color: var(--c-accent-hover); }
.contact-chevron {
    color: var(--c-muted);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.22s, transform 0.22s var(--ease);
    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 — tuiles pleine largeur aux couleurs des réseaux,
   comme le bandeau social de l'accueil du site (.into-slider .item)
================================================================ */
.section--social { padding: 26px 0 0; max-width: none; }
.section--social .section__eyebrow {
    max-width: var(--max-w);
    margin: 0 auto 8px;
    padding: 0 22px;
}
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
    list-style: none;
}
.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 16px 6px 12px;
    background: var(--c-accent);
    color: #fff;
    transition: filter 0.2s var(--ease), transform 0.2s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.social-btn:hover,
.social-btn:focus-visible { filter: brightness(1.08); }
.social-btn:active        { filter: brightness(0.94); }

.social-icon-wrap {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-icon-wrap svg { width: 24px; height: 24px; fill: currentColor; }

/* Couleurs de marque */
.social-btn--linkedin,
.social-btn--linkedinc { background: #0a66c2; }
.social-btn--instagram { background: #e4405f; }
.social-btn--facebook  { background: #1877f2; }
.social-btn--youtube   { background: #ff0000; }
.social-btn--whatsapp  { background: #25d366; }
.social-btn--twitter,
.social-btn--tiktok,
.social-btn--github    { background: #111111; }

.social-label {
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}

/* ================================================================
   PIED DE PAGE — bleu nuit du site, bande de copyright
================================================================ */
.footer {
    background: var(--c-navy);
    margin-top: 26px;
    text-align: center;
}
.section--social + .footer { margin-top: 0; }
.footer__content { padding: 26px 20px 22px; }
.footer__logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 10px;
}
.footer__brand {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.footer__copy {
    background: var(--c-navy-deep);
    color: var(--c-navy-muted);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    padding: 12px 20px;
}

/* ================================================================
   PAGE NEUTRE (404, 405, 500) — template et page de secours
================================================================ */
.card--error {
    position: relative;
    max-width: var(--max-w);
    margin: 14vh auto 0;
    padding: 0 24px;
    text-align: center;
}
.card__code {
    font-size: 4.5rem;
    font-weight: 600;
    line-height: 1;
    color: var(--c-accent);
}
.card__bio { margin: 12px 0 24px; color: var(--c-text); font-weight: 300; }
.card__back {
    display: inline-block;
    padding: 12px 26px;
    border: 1px solid var(--c-accent);
    border-radius: var(--radius-pill);
    color: var(--c-accent);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.card__back:hover,
.card__back:focus-visible { background: var(--c-accent); color: #fff; }

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

/* ================================================================
   APPARITION EN CASCADE (CSS pur, écrans avec pointeur)
================================================================ */
.anim { animation: rise 0.6s var(--ease-out) both; }
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.2s; }
.delay-5 { animation-delay: 0.25s; }
.delay-6 { animation-delay: 0.3s; }

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

/* ================================================================
   ÉCRANS PLUS LARGES — carte posée sur fond gris clair
================================================================ */
@media (min-width: 480px) {
    .hero { height: 240px; }
}
@media (min-width: 600px) {
    body { background: var(--c-bg-alt); }
    .page {
        max-width: var(--card-w);
        min-height: 0;
        margin: 32px auto;
        border-radius: var(--radius);
        overflow: hidden;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    }
}

/* ================================================================
   ÉCRANS TACTILES (téléphone, tablette) — retour iPhone du 2026-10-05 :
   pas de montées en cascade, 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.
================================================================ */
@media (hover: none) and (pointer: coarse) {
    .anim { animation: none; opacity: 1; transform: none; }
    .page { animation: pageFade 0.6s ease-out both; }
}
@keyframes pageFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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