/* Landing MyAmbassador · hero (L02, charte v2 « Story », charte-landing-banc/CONTRAT-v2.md). Jetons : app.css § 1.
   1. Texte  2. Scène : photo du shooting et gros carrés  3. Story dans un téléphone carré  4. Notifications
   5. Tablette et ordinateur. Le bandeau sidéral du titre est décrit au § 1.
   Gabarit : templates/signup/landing/_hero.html.twig. Ni trait ni ombre : profondeur par aplats, superposition,
   dégradés et flou d'arrière-plan. Aucun mouvement en CSS : GSAP (hero_controller.js) pose les états de départ,
   donc sans JavaScript ou avec « réduire les animations », tout est visible et posé. */

/* 1. Texte -------------------------------------------------------------------------------------------------- */
.ma-hero {
    container-type: inline-size;
    display: grid;
    gap: var(--ma-space-7);
}

.ma-hero__texte {
    display: grid;
    justify-items: start;
    gap: var(--ma-space-5);
}

/* Bandeau sidéral (retour d'Allan du 24/11/2026 : « le fond paraît vide ») : le fond de l'en-tête descend derrière
   le surtitre et le titre, sur toute la largeur de l'écran ; la carte du formulaire le chevauche. Le fond part du haut
   de la page (l'en-tête le recouvre) ; .ma-landing coupe le débordement latéral (overflow-x: clip, shell.css). */
.ma-hero__bandeau {
    position: relative;
    display: grid;
    justify-items: start;
    gap: var(--ma-space-5);
    width: 100%;
    padding-bottom: var(--ma-space-7);
    color: var(--ma-papier);
}

.ma-hero__bandeau::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: calc(-1 * (var(--ma-landing-header-height, 0rem) + var(--ma-space-6))) -100vw 0;
    background: linear-gradient(180deg, var(--ma-sideral) 0%, var(--ma-sideral-bleu) 100%);
}

/* Photo de fond du bandeau (retour d'Allan du 24/11/2026 : « photo en fond, assombrie, ambiance réseau social,
   des gens qui font des photos, en bannière ») : créateurs fictifs qui se photographient la nuit, sous des néons,
   générée par Codex pour MyAmbassador (assets/images/landing/hero-fond-reseau-*.webp). Le calque fait la largeur de
   l'écran : il part du bord gauche de l'écran (marge du conteneur centré de 112 rem, page.css) pour que l'image se
   cadre sur l'écran et non sur le débordement de 100 vw. Voile sidéral plus dense à gauche, sous le titre. */
.ma-hero__bandeau::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: calc(-1 * (var(--ma-landing-header-height, 0rem) + var(--ma-space-6)));
    bottom: 0;
    left: calc(-1 * (max(0px, (100vw - 112rem) / 2) + var(--ma-space-4)));
    width: 100vw;
    background:
        linear-gradient(90deg,
            color-mix(in srgb, var(--ma-sideral) 92%, transparent) 0%,
            color-mix(in srgb, var(--ma-sideral) 78%, transparent) 45%,
            color-mix(in srgb, var(--ma-sideral-bleu) 58%, transparent) 100%),
        url("../../images/landing/hero-fond-reseau-1200-QnbfiJW.webp") 62% 35% / cover no-repeat;
    pointer-events: none;
}

@media (min-width: 1100px) {
    .ma-hero__bandeau::after {
        background:
            linear-gradient(90deg,
                color-mix(in srgb, var(--ma-sideral) 90%, transparent) 0%,
                color-mix(in srgb, var(--ma-sideral) 72%, transparent) 40%,
                color-mix(in srgb, var(--ma-sideral-bleu) 55%, transparent) 100%),
            url("../../images/landing/hero-fond-reseau-2172-qAkEBNz.webp") 70% 35% / cover no-repeat;
    }
}

.ma-hero__surtitre,
.ma-hero__intro {
    margin: 0;
}

/* Titre géant : Saira 900 serrée et penchée, en capitales. La taille suit la largeur de la colonne (cqi) : le mot
   le plus long (« AMBASSADEUR », 5,1 em) remplit une ligne, jusqu'au plafond de --ma-titre-geant (11 rem). */
.ma-hero__titre {
    margin: 0;
    font-family: var(--ma-font-display);
    font-size: min(18.5cqi, 11rem);
    font-stretch: 80%;
    font-style: italic;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    overflow-wrap: break-word;
}

/* Mot fort en texte dégradé « sport » (rose → violet) : contraste ≥ 3:1 sur le papier pour un très gros texte ;
   le dégradé story, qui commence au jaune, serait illisible ici. */
.ma-hero__accent,
.ma-hero__accent .ma-hero__mot {
    padding-inline-end: 0.08em;
    background: var(--ma-degrade-sport);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* Pendant l'entrée, SplitText découpe le titre ; ses masques de ligne gardent la place des accents et de l'italique. */
.ma-hero__ligne-mask {
    margin: -0.12em -0.14em -0.06em 0;
    padding: 0.12em 0.14em 0.06em 0;
}

.ma-hero__intro {
    max-width: 38rem;
    font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
    line-height: 1.5;
}

.ma-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ma-space-4) var(--ma-space-6);
    width: 100%;
}

.ma-hero__cta {
    width: 100%;
    min-height: 3.5rem;
    padding: 0 var(--ma-space-6);
    border: 0;
    background: var(--ma-rose);
    color: var(--ma-encre);
    font-family: var(--ma-font-display);
    font-size: var(--ma-text-lg);
    font-stretch: 87.5%;
    font-style: italic;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: background-color var(--ma-duration) var(--ma-ease-sport), color var(--ma-duration) var(--ma-ease-sport);
}

.ma-hero__cta:focus-visible,
.ma-hero__lien-marque:focus-visible {
    outline: 3px solid var(--ma-violet);
    outline-offset: 3px;
}

@media (hover: hover) {
    .ma-hero__cta:hover {
        background: var(--ma-encre);
        color: var(--ma-papier);
    }

    .ma-hero__lien-marque:hover {
        color: var(--ma-rose-texte);
    }
}

.ma-hero__lien-marque {
    color: var(--ma-violet-texte);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.3em;
}

.ma-hero__reperes {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ma-space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ma-hero__repere {
    padding: var(--ma-space-1) var(--ma-space-3);
    color: var(--ma-encre);
    font-size: var(--ma-text-sm);
    font-weight: 700;
}

.ma-hero__repere--menthe { background: var(--ma-menthe); }
.ma-hero__repere--jaune { background: var(--ma-jaune); }
.ma-hero__repere--bleu { background: var(--ma-bleu); }

/* 2. Scène (décor, aria-hidden) : grande photo de selfie (assets/images/landing/createurs-selfie-*.webp, générée pour
   MyAmbassador, personne fictive) posée sur un grand bloc sidéral (encre, retour d'Allan du 24/11/2026 : fond blanc,
   gros blocs bleu-noir, couleurs vives en accent, plus de jaune en fond). Le carré porte la parallaxe (L07), son
   aplat l'entrée.
   Correction du 24/11/2026 (Allan : « l'image des ambassadeurs à corriger ») : la photo garde son format 3:2 entier,
   sans recadrage (le visage de l'homme était coupé au téléphone) ; la story et les notifications se posent sous les
   visages ; la bande de vitesse quitte le téléphone du selfie ; les carrés restent collés à la scène (parallaxe
   faible). Téléphone : photo pleine largeur, story et notifications dessous. Hauteur de la scène = photo + débord. */
.ma-hero__scene {
    position: relative;
    width: 100%;
    height: calc(100cqi * 2 / 3 + 42cqi);
}

.ma-hero__carre {
    position: absolute;
    z-index: 0;
    aspect-ratio: 1;
}

.ma-hero__aplat {
    display: block;
    width: 100%;
    height: 100%;
}

.ma-hero__carre--nuit { bottom: 0; left: 0; width: 80%; }
.ma-hero__carre--rose { right: 0; bottom: 0; width: 24%; }
.ma-hero__carre--violet { right: 62%; bottom: 2%; width: 10%; }

/* Bloc sidéral (v2.3) coupé en biais en haut : code sport (v2.2), angles droits ailleurs. */
.ma-hero__carre--nuit .ma-hero__aplat {
    background: var(--ma-degrade-sideral);
    clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%);
}
.ma-hero__carre--rose .ma-hero__aplat { background: var(--ma-rose); }
.ma-hero__carre--violet .ma-hero__aplat { background: var(--ma-violet); }

/* Bande de vitesse (v2.2) : 3 traits obliques, de plus en plus courts, comme une trace d'élan. Posée sur le coin
   haut droit de la photo (feuillage), loin du téléphone et des visages. */
.ma-hero__vitesse {
    position: absolute;
    z-index: 2;
    top: 3%;
    right: -2%;
    display: grid;
    justify-items: end;
    gap: 6%;
    width: 24%;
    height: 7%;
    transform: skewX(-24deg);
    pointer-events: none;
}

.ma-hero__trait {
    display: block;
    min-height: 3px;
    transform-origin: right center;
}

.ma-hero__trait--jaune { width: 100%; background: var(--ma-jaune); }
.ma-hero__trait--blanc { width: 72%; background: var(--ma-papier); }
.ma-hero__trait--bleu { width: 48%; background: var(--ma-bleu); }

/* Photo du selfie : grand bloc à angles droits, sans trait, au format de l'image (3:2) : rien n'est recadré. */
.ma-hero__cliche {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--ma-violet);
}

.ma-hero__cliche-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 3. Story dans un téléphone carré : tailles internes en cqh/cqw du téléphone, qui grandit avec la scène. ---- */
.ma-hero__telephone {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 2%;
    height: 56%;
    aspect-ratio: 9 / 16;
    container-type: size;
}

.ma-hero__story {
    display: flex;
    flex-direction: column;
    gap: 2.4cqh;
    height: 100%;
    padding: 3.5cqh 6cqw 4cqh;
    overflow: hidden;
    background: var(--ma-degrade-sport);
    color: var(--ma-papier);
}

.ma-hero__progres {
    display: flex;
    gap: 2cqw;
}

.ma-hero__barre {
    flex: 1;
    height: 0.7cqh;
    min-height: 2px;
    background: color-mix(in srgb, var(--ma-papier) 35%, transparent);
}

.ma-hero__barre--vue,
.ma-hero__barre-plein {
    background: var(--ma-papier);
}

.ma-hero__barre-plein {
    display: block;
    height: 100%;
    transform: scaleX(0.45);
    transform-origin: left center;
}

.ma-hero__story-tete {
    display: flex;
    align-items: center;
    gap: 3cqw;
    font-size: 2.6cqh;
    line-height: 1.2;
}

/* Anneau de story carré : dégradé flamme autour d'un carré jaune (aucun trait). */
.ma-hero__avatar {
    flex: none;
    width: 6.5cqh;
    height: 6.5cqh;
    padding: 0.6cqh;
    background: var(--ma-degrade-flamme);
}

.ma-hero__avatar-fond {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--ma-jaune);
}

.ma-hero__story-nom {
    font-weight: 700;
}

.ma-hero__story-temps {
    opacity: 0.8;
}

.ma-hero__photo {
    position: relative;
    flex: 1;
    min-height: 0;
    background: var(--ma-jaune);
}

/* La story montre une autre créatrice en prise de parole face caméra. */
.ma-hero__photo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
}

/* Autocollant de mention, comme dans une vraie story. */
.ma-hero__mention {
    position: absolute;
    right: 6%;
    bottom: 12%;
    max-width: 88%;
    padding: 1.2cqh 3cqw;
    overflow: hidden;
    background: var(--ma-papier);
    color: var(--ma-violet-texte);
    font-family: var(--ma-font-display);
    font-size: 3.6cqh;
    font-style: italic;
    font-weight: 800;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform: rotate(-4deg);
}

.ma-hero__story-titre {
    margin: 0;
    font-family: var(--ma-font-display);
    font-size: 7.5cqh;
    font-stretch: 80%;
    font-style: italic;
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
}

.ma-hero__story-reponse {
    margin: 0;
    padding: 1.6cqh 4cqw;
    background: color-mix(in srgb, var(--ma-papier) 22%, transparent);
    font-size: 2.4cqh;
}

/* 4. Notifications : blocs posés sur la scène, sans trait ni ombre ; le premier en verre dépoli. ------------ */
.ma-hero__notifs {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 4%;
    display: grid;
    justify-items: end;
    gap: var(--ma-space-3);
    width: 58%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ma-hero__notif {
    display: flex;
    align-items: center;
    gap: var(--ma-space-3);
    max-width: 100%;
    padding: var(--ma-space-3) var(--ma-space-4);
    color: var(--ma-encre);
    font-size: var(--ma-text-sm);
    line-height: 1.3;
}

.ma-hero__notif--vue {
    background: color-mix(in srgb, var(--ma-color-surface) 82%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.ma-hero__notif--points {
    margin-right: 14%;
    background: var(--ma-jaune);
}

.ma-hero__notif--bon {
    background: var(--ma-encre);
    color: var(--ma-papier);
}

.ma-hero__notif-texte {
    min-width: 0;
}

.ma-hero__notif-icone {
    display: grid;
    flex: none;
    place-items: center;
    width: 2rem;
    height: 2rem;
    color: var(--ma-encre);
    font-family: var(--ma-font-display);
    font-weight: 800;
}

.ma-hero__notif-icone--rose { background: var(--ma-rose); }
.ma-hero__notif-icone--menthe { background: var(--ma-menthe); }

/* Téléphone : 2 notifications seulement, pour laisser voir la photo. */
@media (max-width: 767.98px) {
    .ma-hero__notif--vue {
        display: none;
    }
}

.ma-hero__notif-pts {
    flex: none;
    font-family: var(--ma-font-display);
    font-size: var(--ma-text-xl);
    font-style: italic;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

/* 5. Tablette et ordinateur : scène plus large que haute. La photo prend 86 % de la hauteur à son format 3:2, en
   haut à droite ; la story se pose à sa gauche et ne la mord que sur le bord ; les notifications chevauchent le bas
   de la photo, sous les visages. */
@media (min-width: 768px) {
    .ma-hero__cta {
        width: auto;
    }

    .ma-hero__scene {
        height: min(60cqi, 44rem);
    }

    .ma-hero__carre--nuit { bottom: 0; left: 0; width: 66%; }
    .ma-hero__carre--rose { right: 0; bottom: 0; width: 14%; }
    .ma-hero__carre--violet { right: 16%; bottom: 0; width: 6%; }

    .ma-hero__cliche {
        top: 0;
        width: auto;
        height: 86%;
    }

    .ma-hero__vitesse {
        top: 4%;
        right: -1.5%;
        width: 20%;
        height: 7%;
    }

    .ma-hero__telephone {
        bottom: 0;
        left: 1%;
        height: 76%;
    }

    .ma-hero__notifs {
        top: auto;
        right: 3%;
        bottom: 2%;
        width: min(46%, 24rem);
        gap: var(--ma-space-4);
    }

    .ma-hero__notif {
        font-size: var(--ma-text-md);
    }

    .ma-hero__notif--points {
        margin-right: 18%;
    }
}
