/**
 * Les Galeries 27 — page d'attente.
 *
 * Même direction artistique que le futur site : façade en plein écran,
 * Cormorant Garamond, filets et or, tokens identiques. Le contenu est
 * ancré en bas, comme sur le site : c'est là que le voile est dense,
 * donc là que le texte est lisible.
 *
 * Une seule verticale gouverne la page (--shell) : barre du haut, corps
 * et pied de page partagent exactement la même colonne.
 */

:root {
    --paper: #f7f4ee;
    --ink: #1d1d1b;
    --gold: #a8865f;
    --gold-soft: #c9ab82;

    --font-display: "Cormorant Garamond", "Times New Roman", Times, serif;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

    --ease-silk: cubic-bezier(0.19, 1, 0.22, 1);
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --shell: min(100% - 2 * var(--gutter), 90rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: clip;
}

body {
    margin: 0;
    background: #0c0a08;
    color: var(--paper);
    font-family: var(--font-sans);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

::selection {
    background: var(--paper);
    color: var(--ink);
}

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

/* Double anneau : l'un des deux contraste toujours, clair ou sombre. */
:focus-visible {
    outline: 2px solid var(--paper);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(12, 10, 8, 0.85);
}

/* ─────────────────────────  SCÈNE  ───────────────────────── */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    overflow: hidden;
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
    filter: contrast(1.08) saturate(0.88) brightness(0.92);
    animation: hero-zoom 20s var(--ease-silk) both;
}

.hero-veil,
.hero-amber,
.hero-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Dense en bas, où vit le texte ; transparent en haut, où la façade parle. */
.hero-veil {
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.2) 150px, transparent 280px),
        linear-gradient(to top,
            rgba(12, 10, 8, 0.96) 0%,
            rgba(12, 10, 8, 0.9) 20%,
            rgba(12, 10, 8, 0.72) 40%,
            rgba(12, 10, 8, 0.45) 58%,
            rgba(12, 10, 8, 0.15) 78%,
            transparent 92%),
        linear-gradient(105deg, rgba(12, 10, 8, 0.5) 0%, transparent 55%),
        radial-gradient(ellipse at center, transparent 38%, rgba(8, 6, 4, 0.45) 100%);
}

.hero-amber {
    mix-blend-mode: soft-light;
    opacity: 0.4;
    background: linear-gradient(160deg, rgba(168, 134, 95, 0.35) 0%, transparent 45%, rgba(92, 58, 40, 0.25) 100%);
}

.hero-grain {
    opacity: 0.14;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─────────────────────────  BARRE HAUTE  ───────────────────────── */

.topbar {
    position: relative;
    z-index: 2;
    width: var(--shell);
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.5rem, 3.5vh, 2.5rem) 0;
    animation: silk-fade 1.8s var(--ease-silk) both;
}

.brand {
    display: block;
    width: clamp(6.5rem, 13vw, 10rem);
    height: auto;
    color: var(--paper);
    filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.55));
}

.topbar-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    margin: 0;
    padding-top: 0.35rem;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: right;
    color: rgba(247, 244, 238, 0.9);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.topbar-soon {
    color: var(--gold-soft);
}

/* ─────────────────────────  CORPS  ───────────────────────── */

.stage {
    position: relative;
    z-index: 2;
    flex: 1;
    min-height: 0;
    width: var(--shell);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: clamp(2rem, 6vw, 5rem);
    padding: clamp(2rem, 6vh, 5rem) 0 clamp(1.75rem, 4vh, 3rem);
}

.say {
    min-width: 0;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.5);
    animation: silk-up 1.4s var(--ease-silk) both;
}

.title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(3rem, 8.5vw, 6.5rem);
    line-height: 1.02;
    letter-spacing: -0.015em;
}

.title span {
    display: block;
}

.title-alt {
    font-style: italic;
    color: var(--gold-soft);
}

.lead {
    margin: clamp(1.25rem, 2.5vh, 2rem) 0 0;
    max-width: 42ch;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 300;
    line-height: 1.65;
    letter-spacing: -0.015em;
    color: rgba(247, 244, 238, 0.88);
    animation: silk-fade 1.8s var(--ease-silk) 0.2s both;
}

/* ─────────────────────────  RECRUTEMENT  ───────────────────────── */

.jobs {
    display: inline-flex;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-top: clamp(1.75rem, 4vh, 2.75rem);
    padding: 1rem 1.5rem;
    border: 1px solid rgba(201, 171, 130, 0.55);
    background: rgba(12, 10, 8, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: border-color 0.6s var(--ease-silk), background-color 0.6s var(--ease-silk);
    animation: silk-fade 1.8s var(--ease-silk) 0.4s both;
}

.jobs-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.jobs-title {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    line-height: 1;
    color: var(--paper);
}

.jobs-count {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold-soft);
}

.jobs-arrow {
    font-size: 1.1rem;
    color: var(--gold-soft);
    transition: transform 0.6s var(--ease-silk);
}

.jobs:hover,
.jobs:focus-visible {
    border-color: var(--gold-soft);
    background: rgba(12, 10, 8, 0.55);
}

.jobs:hover .jobs-arrow {
    transform: translateX(0.4rem);
}

/* ─────────────────────────  LES ENSEIGNES  ───────────────────────── */

.floors {
    animation: silk-fade 1.8s var(--ease-silk) 0.55s both;
}

.floors ol {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin: 0;
    padding: 0 0 0 clamp(1.25rem, 2.5vw, 2rem);
    list-style: none;
    border-left: 1px solid rgba(247, 244, 238, 0.22);
}

.floors li {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
}

.floors-level {
    min-width: 2.25rem;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}

.floors-name {
    color: rgba(247, 244, 238, 0.88);
}

/* ─────────────────────────  PIED DE PAGE  ───────────────────────── */

.baseline {
    position: relative;
    z-index: 2;
    width: var(--shell);
    margin: 0 auto;
    padding: 0 0 clamp(1.5rem, 3.5vh, 2.5rem);
    animation: silk-fade 1.8s var(--ease-silk) 0.7s both;
}

.claim {
    margin: 0 0 clamp(1.25rem, 3vh, 2rem);
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    line-height: 1.3;
    color: rgba(247, 244, 238, 0.82);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
}

.baseline-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(1.5rem, 5vw, 3rem);
    padding-top: clamp(1.25rem, 3vh, 1.75rem);
    border-top: 1px solid rgba(247, 244, 238, 0.18);
}

.baseline-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.baseline-block-end {
    align-items: flex-end;
}

.baseline-label {
    margin: 0;
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(247, 244, 238, 0.62);
}

.logos {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* La zone cliquable atteint 44 px sans écarter les logos entre eux. */
.logos a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 0.75rem;
    opacity: 0.75;
    transition: opacity 0.5s var(--ease-silk);
}

.logos a:first-child {
    padding-left: 0;
}

.baseline-block-end .logos a:last-child {
    padding-right: 0;
}

.logos a:hover,
.logos a:focus-visible {
    opacity: 1;
}

.logo-24 {
    display: block;
    width: auto;
    height: 24px;
    color: var(--paper);
}

/* Détouré du fond bleu d'origine : se fond comme le SVG voisin. */
.logo-broye {
    display: block;
    height: 26px;
    width: auto;
}

.logo-ig {
    display: block;
    width: 22px;
    height: 22px;
    color: var(--paper);
}

.metricool-pixel {
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
}

/* ─────────────────────────  ANIMATIONS  ───────────────────────── */

@keyframes hero-zoom {
    from { transform: scale(1.05); }
    to { transform: scale(1); }
}

@keyframes silk-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes silk-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes gold-sheen {
    from { background-position: -180% 0; }
    to { background-position: 280% 0; }
}

.hero-sheen {
    background: linear-gradient(
        100deg,
        #f3eee6 0%,
        #f3eee6 18%,
        #e8d5a8 30%,
        #d4af6a 40%,
        #e8c878 50%,
        #d4af6a 60%,
        #e8d5a8 70%,
        #f3eee6 82%,
        #f3eee6 100%
    );
    background-size: 280% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gold-sheen 5.5s var(--ease-silk) 0.7s 1 both;
}

/* ─────────────────────────  RESPONSIVE  ───────────────────────── */

/* Sous 900 px la colonne des enseignes passe en ligne, sous le texte. */
@media (max-width: 900px) {
    .stage {
        grid-template-columns: 1fr;
        align-content: end;
        gap: clamp(1.5rem, 4vh, 2.25rem);
    }

    .floors ol {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem 0;
        padding: 0;
        border-left: none;
    }

    .floors li {
        gap: 0.5rem;
        font-size: 10px;
        letter-spacing: 0.16em;
    }

    .floors li:not(:last-child)::after {
        content: "·";
        margin-left: 0.5rem;
        color: rgba(247, 244, 238, 0.4);
    }

    .floors-level {
        display: none;
    }

    .jobs {
        width: 100%;
        justify-content: space-between;
    }

    .baseline-row {
        align-items: center;
    }

    .baseline-label {
        display: none;
    }

    .logos a {
        padding: 0 0.6rem;
    }
}

/* Écrans courts (vieux mobiles, paysage) : tout doit rester visible sans
   défilement, donc on comprime plutôt que de laisser filer la page. */
@media (max-height: 700px) {
    .topbar {
        padding: 1rem 0;
    }

    .brand {
        width: 5.5rem;
    }

    .stage {
        gap: 1rem;
        padding: 1.25rem 0 1rem;
    }

    .title {
        font-size: clamp(2.1rem, 7vw, 3rem);
    }

    .lead {
        margin-top: 0.85rem;
        font-size: 0.9375rem;
        line-height: 1.5;
    }

    .jobs {
        margin-top: 1.1rem;
        padding: 0.7rem 1.1rem;
    }

    .jobs-title {
        font-size: 1.15rem;
    }

    .claim {
        margin-bottom: 0.85rem;
        font-size: 1.1rem;
    }

    .baseline {
        padding-bottom: 1rem;
    }

    .baseline-row {
        padding-top: 0.9rem;
    }
}

@media (max-width: 560px) {
    .topbar {
        align-items: center;
    }

    .topbar-meta {
        font-size: 10px;
        letter-spacing: 0.14em;
    }

    .topbar-soon {
        display: none;
    }

    .claim {
        margin-bottom: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .hero-sheen {
        color: var(--paper);
        background: none;
        -webkit-background-clip: border-box;
        background-clip: border-box;
    }
}
