/* ==========================================================
   hermes grau — Coming soon
   ----------------------------------------------------------
   SOMMAIRE
   1. Variables (couleurs, police, réglages vidéo)
   2. Base
   3. Vidéo de fond
   4. Scène (contenu desktop)
   5. Éléments : logo, titre, services, contact, footer
   6. Animations d'apparition (textes de droite)
   7. Interactions (hover)
   8. Mobile / tablette portrait
   ========================================================== */


/* ==========================================================
   1. VARIABLES — modifie ici les couleurs et réglages
   ========================================================== */

@font-face {
    font-family: Boska;
    src: url(webfonts/Boska-Variable.woff2);
}


:root {
    --bg: #ffffff;
    /* fond de page : doit être le même blanc que la vidéo */
    --text: #007d6e;
    /* texte principal */
    --muted: #e7a7b9;
    /* texte secondaire (gris) */
    --accent: #FA0047;
    /* couleur du titre et du hover e-mail */
    --font: "Figtree", "Circular Std", "Helvetica Neue", Arial, sans-serif;

    /* Part de l'écran que le grillage peut occuper (0.5 = petit, 1 = plein écran).
     Baisse la valeur pour voir plus de marge blanche autour du grillage. */
    --grid-fill: 0.50;
}


/* ==========================================================
   2. BASE
   ========================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    background: var(--bg);
}

body {
    min-height: 100%;
    font-family: var(--font);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}


/* ==========================================================
   3. VIDEO DE FOND
   La vidéo (16:9) est centrée au milieu de l'écran. Le grillage
   occupe ~38,5 % de la largeur et ~96 % de la hauteur de la vidéo
   et est centré dans la composition : il reste donc centré sur
   tous les écrans.
   La taille de la vidéo est calculée pour que le grillage tienne
   toujours en entier (jamais coupé, jamais déformé) :
     - écran large  -> limité par la hauteur
     - téléphone    -> limité par la largeur (seul le blanc des
                       côtés est rogné)
   ========================================================== */
.bg-video {
    position: fixed;
    inset: 0;
    z-index: 0;
    /* derrière le contenu */
    overflow: hidden;
    background: var(--bg);
    pointer-events: none;
}

.bg-video__media {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* centrage exact */
    aspect-ratio: 16 / 9;
    /* ratio d'origine : aucune déformation */
    height: auto;
    /* Largeur de la vidéo = la plus petite des deux contraintes */
    width: min(calc(100vw * var(--grid-fill) * 2.6),
            /* grillage tient en largeur */
            calc(100vh * var(--grid-fill) * 1.856)
            /* grillage tient en hauteur */
        );
    object-fit: contain;
}

/* Écrans mobiles : utilise la vraie hauteur visible (barre d'adresse) */
@supports (height: 100dvh) {
    .bg-video__media {
        width: min(calc(100vw * var(--grid-fill) * 2.6),
                calc(100dvh * var(--grid-fill) * 1.856));
    }
}


/* ==========================================================
   4. SCÈNE (contenu au-dessus de la vidéo)
   Desktop : reproduit la capture (ratio 1745 × 891).
   Toutes les tailles sont en cqw (% de la largeur de la scène).
   ========================================================== */
.stage {
    position: relative;
    z-index: 1;
    /* au-dessus de la vidéo */
    width: min(100vw, 195.8vh);
    /* 1745 / 891 = 1.958 */
    aspect-ratio: 1745 / 891;
    container-type: inline-size;
}

.stage header,
.stage main,
.stage footer {
    display: contents;
}

/* Tous les blocs sont positionnés par rapport à la scène */
.logo,
.title,
.services,
.contact,
.social,
.soon {
    position: absolute;
}


/* ==========================================================
   5. ÉLÉMENTS
   ========================================================== */

/* ---------- Logo (haut gauche) ---------- */
.logo {
    color: black;
    font-family: Boska bold;
    left: 3.67%;
    top: 7.1%;
    transform: translateY(-50%);
    font-size: 1.5cqw;
    font-weight: 400;
    letter-spacing: .01em;
    white-space: nowrap;
}

/* ---------- Titre (gauche) ---------- */
.title {
    font-family: Boska;
    left: 3.67%;
    top: 32%;
    font-size: 4.02cqw;
    font-weight: 500;
    line-height: 1.19;
    letter-spacing: -.005em;
    white-space: nowrap;
    color: var(--accent);
    /* #FA0047 */
}

/* ---------- Services (droite) ---------- */
.services {
    left: 77.8%;
    top: 32.7%;
    font-size: 1cqw;
    font-weight: 500;
    line-height: 1.86;
}

/* ---------- Contact (droite) ---------- */
.contact {
    left: 77.8%;
    top: 66.6%;
    font-size: .96cqw;
    line-height: 1.85;
}

.contact__label {
    color: var(--muted);
    font-weight: 400;
}

.contact__mail {
    font-weight: 500;
}

/* ---------- Réseaux sociaux (bas gauche) ---------- */
.social {
    left: 3.67%;
    top: 93.8%;
    transform: translateY(-50%);
    display: flex;
    gap: 3.3cqw;
    font-size: 1cqw;
    color: var(--muted);
}

/* ---------- "Full site is coming soon" (bas droite) ---------- */
.soon {
    left: 77.8%;
    top: 93.2%;
    transform: translateY(-50%);
    font-size: 1.5cqw;
    font-weight: 400;
    color: var(--muted);
    white-space: nowrap;
}


/* ==========================================================
   6. ANIMATIONS D'APPARITION (textes de droite)
   Fondu + léger glissement vers le haut, avec décalage entre
   chaque bloc. Pour régler :
     --reveal-duration : durée de l'animation
     --reveal-distance : distance du mouvement
     animation-delay   : moment d'apparition de chaque bloc
   On anime la propriété "translate" (et non "transform") pour ne
   pas écraser le centrage vertical de .soon.
   ========================================================== */
:root {
    --reveal-duration: 1.2s;
    --reveal-distance: 18px;
    --reveal-ease: cubic-bezier(.22, 1, .36, 1);
    /* départ doux, arrivée lente */
}

@keyframes reveal {
    from {
        opacity: 0;
        translate: 0 var(--reveal-distance);
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

.services li,
.contact,
.soon {
    opacity: 0;
    /* caché avant l'animation */
    animation: reveal var(--reveal-duration) var(--reveal-ease) forwards;
}

/* Décalage : services un par un, puis contact, puis bas de page */
.services li:nth-child(1) {
    animation-delay: .4s;
}

.services li:nth-child(2) {
    animation-delay: .55s;
}

.services li:nth-child(3) {
    animation-delay: .7s;
}

.services li:nth-child(4) {
    animation-delay: .85s;
}

.contact {
    animation-delay: 1.1s;
}

.soon {
    animation-delay: 1.4s;
}

/* Accessibilité : pas d'animation si l'utilisateur la désactive */
@media (prefers-reduced-motion: reduce) {

    .services li,
    .contact,
    .soon {
        animation: none;
        opacity: 1;
    }
}


/* ==========================================================
   7. INTERACTIONS (hover)
   ========================================================== */
a {
    transition: color .2s ease, opacity .2s ease;
}

a:hover {
    opacity: .6;
}

a:focus-visible {
    outline: 1px solid var(--text);
    outline-offset: 4px;
}

/* E-mail : passe en #FA0047 en douceur au survol */
.contact__mail {
    transition: color .4s ease;
}

.contact__mail:hover,
.contact__mail:focus-visible {
    color: var(--accent);
    opacity: 1;
    /* annule l'opacité des autres liens */
}


/* ==========================================================
   8. MOBILE / TABLETTE PORTRAIT (< 900px) : mise en colonne
   ========================================================== */
@media (max-width: 899px) {
    body {
        display: block;
    }

    .stage {
        width: 100%;
        aspect-ratio: auto;
        container-type: normal;
        min-height: 100vh;
        padding: 28px 24px 32px;
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .stage header {
        display: flex;
        align-items: center;
    }

    .stage main {
        display: flex;
        flex-direction: column;
        gap: 28px;
        flex: 1;
    }

    .stage footer {
        display: flex;
        flex-direction: column;
        gap: 22px;
    }

    .logo,
    .title,
    .services,
    .contact,
    .social,
    .soon {
        position: static;
        transform: none;
    }

    .logo {
        font-size: 20px;
    }

    .title {
        font-size: clamp(38px, 11vw, 64px);
        white-space: normal;
        margin-top: 4px;
    }

    .services {
        font-size: 16px;
        line-height: 1.9;
    }

    .contact {
        font-size: 15px;
    }

    .social {
        gap: 32px;
        font-size: 16px;
    }

    .soon {
        font-size: 22px;
    }
}