/* ==========================================================================
   My Line Collection — page "Bientôt"
   Mobile-first. Palette chaude, typographie éditoriale, mouvement sobre.
   ========================================================================== */

:root {
    --ink: #140f0c;
    --ink-2: #1e1713;
    --cream: #faf7f4;
    --cream-dim: rgb(250 247 244 / 72%);
    --accent: #b07a4a;
    --accent-dark: #8a5a32;
    --gold: #c9a875;
    --line: rgb(255 255 255 / 14%);
    --glass: rgb(255 255 255 / 7%);

    --font-display: "Playfair Display", Georgia, serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--ink);
    color: var(--cream);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, p { margin: 0; }

.sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Arrière-plan ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }

.bg__img {
    position: absolute; inset: -4%;
    width: 108%; height: 108%;
    object-fit: cover;
    filter: saturate(0.85);
    animation: kenburns 28s ease-in-out infinite alternate;
}
@keyframes kenburns {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to   { transform: scale(1.16) translate3d(-1.5%, -1%, 0); }
}

.bg__veil {
    position: absolute; inset: 0;
    background:
        radial-gradient(120% 80% at 50% 0%, rgb(20 15 12 / 55%) 0%, rgb(20 15 12 / 88%) 70%),
        linear-gradient(180deg, rgb(20 15 12 / 70%), rgb(20 15 12 / 92%));
}

.orb {
    position: absolute; border-radius: 50%;
    filter: blur(70px); opacity: 0.55;
    will-change: transform;
}
.orb--1 { width: 46vmax; height: 46vmax; top: -14vmax; left: -12vmax; background: radial-gradient(circle, #b07a4a, transparent 65%); animation: float1 18s ease-in-out infinite alternate; }
.orb--2 { width: 38vmax; height: 38vmax; bottom: -12vmax; right: -10vmax; background: radial-gradient(circle, #c9a875, transparent 65%); animation: float2 22s ease-in-out infinite alternate; }
.orb--3 { width: 26vmax; height: 26vmax; top: 40%; left: 45%; background: radial-gradient(circle, #8a5a32, transparent 65%); opacity: 0.35; animation: float3 26s ease-in-out infinite alternate; }

@keyframes float1 { to { transform: translate3d(14vw, 10vh, 0) scale(1.15); } }
@keyframes float2 { to { transform: translate3d(-12vw, -12vh, 0) scale(1.1); } }
@keyframes float3 { to { transform: translate3d(-20vw, 8vh, 0) scale(0.85); } }

#sparkles { position: absolute; inset: 0; width: 100%; height: 100%; }

.bg__grain {
    position: absolute; inset: 0; opacity: 0.07; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Mise en page ---------- */
.page {
    position: relative; z-index: 1;
    display: flex; flex-direction: column;
    min-height: 100vh; min-height: 100dvh;
    width: min(100% - 2rem, 1100px);
    margin-inline: auto;
    padding-top: max(1rem, env(safe-area-inset-top));
}

.top {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding-block: 0.75rem;
    animation: fadeDown 900ms var(--ease) both;
}

.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand__mark {
    display: grid; place-items: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    font-family: var(--font-display); font-weight: 600;
    box-shadow: 0 8px 22px rgb(138 90 50 / 45%);
}
.brand__name { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.22em; font-weight: 500; }

.pill {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0.85rem; border-radius: 999px;
    background: var(--glass); border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
    white-space: nowrap;
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgb(201 168 117 / 60%); }
    50%      { box-shadow: 0 0 0 7px rgb(201 168 117 / 0%); }
}

.hero {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    padding-block: 2.5rem 2rem;
}

.eyebrow {
    display: inline-flex; align-items: center; gap: 0.7rem;
    margin-bottom: 1.25rem;
    color: var(--gold);
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 1px; background: var(--gold); opacity: 0.7; }

/* ---------- Titre ---------- */
.title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.6rem, 11vw, 6rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}
.line { display: block; }
.word {
    display: inline-block;
    opacity: 0;
    transform: translateY(70%) rotate(3deg);
    filter: blur(8px);
    animation: wordIn 1000ms var(--ease) forwards;
    animation-delay: calc(0.25s + var(--i) * 0.09s);
}
.word--em {
    font-style: italic;
    background: linear-gradient(100deg, var(--gold), #f1e2cf 40%, var(--accent) 70%, var(--gold));
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: wordIn 1000ms var(--ease) forwards, shine 5s linear 1.4s infinite;
    animation-delay: calc(0.25s + var(--i) * 0.09s), 1.4s;
}
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes shine { to { background-position: -220% 0; } }

.lead {
    max-width: 34rem;
    margin-bottom: 2rem;
    color: var(--cream-dim);
    font-size: clamp(0.95rem, 3.6vw, 1.1rem);
}

/* ---------- Apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); animation: rise 900ms var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* ---------- Compte à rebours ---------- */
.countdown {
    display: flex; align-items: flex-start; justify-content: center;
    gap: clamp(0.3rem, 2vw, 0.9rem);
    margin-bottom: 2rem;
}
.cd {
    display: grid; justify-items: center; gap: 0.35rem;
    min-width: clamp(60px, 19vw, 104px);
    padding: clamp(0.7rem, 3vw, 1.1rem) 0.4rem;
    border-radius: 18px;
    background: var(--glass); border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgb(0 0 0 / 28%), inset 0 1px 0 rgb(255 255 255 / 10%);
}
.cd__num {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 8vw, 3.2rem);
    font-weight: 500; line-height: 1;
    font-variant-numeric: tabular-nums;
}
.cd__num.is-tick { animation: tick 380ms var(--ease); }
@keyframes tick { 0% { transform: translateY(-35%); opacity: 0.2; } 100% { transform: none; opacity: 1; } }
.cd__label { font-size: clamp(0.55rem, 2.2vw, 0.68rem); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-dim); }
.cd__sep { padding-top: clamp(0.8rem, 3.4vw, 1.4rem); font-family: var(--font-display); font-size: clamp(1.2rem, 5vw, 2rem); color: var(--gold); opacity: 0.7; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.15; } }

.launched { margin-bottom: 2rem; font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); }

/* ---------- Formulaire ---------- */
.signup { width: min(100%, 520px); margin-bottom: 2.75rem; }

.signup__field {
    display: flex; gap: 0.4rem;
    padding: 0.4rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 9%); border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px rgb(0 0 0 / 30%);
    transition: border-color 250ms, box-shadow 250ms;
}
.signup__field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgb(201 168 117 / 18%), 0 20px 50px rgb(0 0 0 / 30%); }
.signup__field.is-error { border-color: #e48a77; animation: shake 420ms; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.signup__field input {
    flex: 1; min-width: 0; min-height: 50px;
    padding-inline: 1.1rem;
    border: 0; outline: 0; background: transparent;
    font-size: 1rem; /* 16px : évite le zoom automatique sur iOS */
}
.signup__field input::placeholder { color: rgb(250 247 244 / 50%); }

.btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 50px; padding-inline: 1.4rem;
    border: 0; border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 10px 26px rgb(138 90 50 / 50%);
    transition: transform 250ms var(--ease), box-shadow 250ms;
}
.btn::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 35%) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 700ms var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgb(138 90 50 / 60%); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.7; cursor: progress; }
.btn__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 250ms var(--ease); }
.btn:hover .btn__icon { transform: translateX(3px); }
.btn.is-done { background: linear-gradient(135deg, #3f7a53, #2f6143); }

.signup__msg { margin-top: 0.85rem; font-size: 0.82rem; color: var(--cream-dim); min-height: 1.3em; }
.signup__msg.is-error { color: #f0a08f; }
.signup__msg.is-ok { color: var(--gold); }

/* ---------- Aperçus ---------- */
.teasers {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: clamp(0.5rem, 2.5vw, 1.25rem);
    width: min(100%, 760px);
    perspective: 900px;
}
.teaser {
    position: relative; aspect-ratio: 3 / 4; overflow: hidden;
    border-radius: 18px; border: 1px solid var(--line);
    box-shadow: 0 24px 50px rgb(0 0 0 / 40%);
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 400ms var(--ease), box-shadow 400ms;
    will-change: transform;
}
.teaser:nth-child(2) { margin-top: -1.2rem; }
.teaser img {
    width: 100%; height: 100%; object-fit: cover;
    filter: blur(3px) saturate(0.9) brightness(0.8);
    transform: scale(1.1);
    transition: filter 700ms var(--ease), transform 900ms var(--ease);
}
.teaser:hover img { filter: blur(0) saturate(1) brightness(0.95); transform: scale(1.04); }
.teaser::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(20 15 12 / 80%), transparent 55%); }
.teaser__tag {
    position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0.6rem; z-index: 1;
    font-size: clamp(0.58rem, 2.4vw, 0.74rem); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---------- Bandeau défilant ---------- */
.marquee {
    overflow: hidden; margin-block: 1rem;
    border-block: 1px solid var(--line);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; gap: 2rem; padding-block: 0.8rem; animation: scrollx 30s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--cream-dim); white-space: nowrap; }
.marquee__track span:nth-child(even) { color: var(--gold); font-style: normal; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Pied de page ---------- */
.foot {
    display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
    padding-block: 1rem calc(1.25rem + env(safe-area-inset-bottom));
}
.social { display: flex; gap: 0.65rem; }
.social a {
    display: grid; place-items: center; width: 44px; height: 44px;
    border-radius: 50%; border: 1px solid var(--line); background: var(--glass);
    transition: transform 250ms var(--ease), background 250ms, border-color 250ms;
}
.social a:hover { transform: translateY(-3px); background: rgb(255 255 255 / 14%); border-color: var(--gold); }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.copy { font-size: 0.72rem; color: rgb(250 247 244 / 50%); text-align: center; }

/* ---------- Petits écrans ---------- */
@media (max-width: 480px) {
    .brand__name { display: none; }
    .eyebrow::before, .eyebrow::after { width: 16px; }
    .hero { padding-block: 1.5rem; }

    .signup__field { flex-direction: column; border-radius: 22px; padding: 0.5rem; }
    .signup__field input { min-height: 52px; text-align: center; }
    .btn { width: 100%; min-height: 52px; }

    .teaser { border-radius: 14px; }
    .teaser:nth-child(2) { margin-top: -0.6rem; }
}

@media (max-width: 360px) {
    .cd { min-width: 54px; border-radius: 14px; }
    .cd__sep { display: none; }
}

@media (min-width: 900px) {
    .page { width: min(100% - 4rem, 1100px); }
    .top { padding-block: 1.25rem; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .reveal, .word { opacity: 1; transform: none; filter: none; }
    #sparkles { display: none; }
}