/* ============================================================
   TIRAMISYOU — Page "Ouverture prochaine"
   Palette & typo issues de la plaquette de presentation.
   ============================================================ */

:root {
    /* Couleurs */
    --brand-bg:        #1A1008;   /* fond le plus profond */
    --brand-bg-2:      #2A1A12;   /* fond chocolat */
    --brand-frame:     #5A3018;   /* filet du cadre */
    --brand-cream:     #F5EDE0;   /* creme / texte clair */
    --brand-gold:      #F5C87A;   /* or — accent fort */
    --brand-gold-soft: #D4A97A;   /* or doux — taglines */
    --brand-muted:     #9A7A60;   /* texte discret */
    --brand-muted-2:   #C9A97A;   /* eyebrow clair */

    /* Typo */
    --font-sans: 'DM Sans', system-ui, sans-serif;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body.soon {
    font-family: var(--font-sans);
    color: var(--brand-cream);
    background: var(--brand-bg);
    /* Lueur centrale qui "respire" */
    background:
        radial-gradient(120% 120% at 50% 30%, #3A2415 0%, var(--brand-bg-2) 42%, var(--brand-bg) 100%);
    background-attachment: fixed;
    overflow-x: hidden;          /* pas de debordement horizontal */
    -webkit-font-smoothing: antialiased;
    animation: bgBreathe 14s ease-in-out infinite;
}

@keyframes bgBreathe {
    0%, 100% { background-size: 100% 100%; }
    50%      { background-size: 130% 130%; }
}

/* --- Canvas poussiere de cacao --- */
#dust {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Scene --- */
.soon-stage {
    position: relative;
    z-index: 1;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 4vw, 48px);
    text-align: center;
}

/* --- Cadre filet (rappel de la couverture plaquette) --- */
.soon-frame {
    position: relative;
    width: 100%;
    max-width: 860px;
    padding: clamp(40px, 7vw, 76px) clamp(20px, 5vw, 64px);
}
.soon-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--brand-frame);
    /* Le cadre se dessine au chargement */
    transform: scale(1.04);
    opacity: 0;
    animation: frameIn 1.4s cubic-bezier(.2,.7,.2,1) .1s forwards;
    pointer-events: none;
}
@keyframes frameIn {
    to { transform: scale(1); opacity: 1; }
}

/* --- Coins dores (look "encadre", bien carre) --- */
.corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid var(--brand-gold);
    opacity: 0;
    animation: cornerIn 1s cubic-bezier(.2,.7,.2,1) 1s forwards;
    pointer-events: none;
}
.corner.tl { top: -2px;    left: -2px;    border-right: 0; border-bottom: 0; }
.corner.tr { top: -2px;    right: -2px;   border-left: 0;  border-bottom: 0; }
.corner.bl { bottom: -2px; left: -2px;    border-right: 0; border-top: 0; }
.corner.br { bottom: -2px; right: -2px;   border-left: 0;  border-top: 0; }
@keyframes cornerIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* --- Eyebrow --- */
.soon-eyebrow {
    font-size: clamp(9px, 1.6vw, 11px);
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--brand-muted);
    margin-bottom: clamp(28px, 5vw, 44px);
}

/* --- Logo --- */
.soon-logo {
    font-weight: 300;
    font-size: clamp(30px, 8.2vw, 72px);
    line-height: .98;
    letter-spacing: clamp(2px, 0.7vw, 7px);
    text-transform: uppercase;
    color: var(--brand-cream);
    max-width: 100%;
}
.soon-logo-accent {
    position: relative;
    font-weight: 500;
    color: var(--brand-gold);
    padding-bottom: 4px;
    border-bottom: 2px solid var(--brand-gold);
    /* Reflet dore qui balaie le mot YOU */
    background: linear-gradient(100deg,
        var(--brand-gold) 0%, var(--brand-gold) 35%,
        #FFF4DD 50%,
        var(--brand-gold) 65%, var(--brand-gold) 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 5.5s ease-in-out 1.6s infinite;
}
@keyframes shimmer {
    0%, 100% { background-position: 130% 0; }
    50%      { background-position: -30% 0; }
}

/* --- Divider qui se trace --- */
.soon-divider {
    width: 56px;
    height: 1px;
    background: var(--brand-frame);
    margin: clamp(24px, 4vw, 34px) auto;
    transform-origin: center;
}

/* --- Accroche (la phrase qui claque) --- */
.soon-accroche {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(25px, 5.4vw, 48px);
    line-height: 1.14;
    color: var(--brand-cream);
    max-width: 18ch;
    margin: 0 auto clamp(16px, 3vw, 22px);
}
.soon-accroche em {
    font-style: italic;
    color: var(--brand-gold);
    /* trait dore sous "sous vos yeux" */
    background-image: linear-gradient(transparent 82%, rgba(245, 200, 122, .35) 0);
}

/* --- Description gourmande --- */
.soon-desc {
    font-size: clamp(13px, 2.4vw, 16px);
    font-weight: 300;
    line-height: 1.7;
    color: var(--brand-gold-soft);
    max-width: 46ch;
    margin: 0 auto clamp(28px, 5vw, 38px);
}

/* --- Contact (email en bouton carre) --- */
.soon-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: clamp(30px, 5vw, 42px);
}
.soon-contact-label {
    font-size: clamp(9px, 1.5vw, 10px);
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--brand-muted);
}
.soon-contact-link {
    position: relative;
    overflow: hidden;
    font-size: clamp(12px, 2vw, 14px);
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--brand-cream);
    text-decoration: none;
    padding: 14px 30px;
    border: 1px solid var(--brand-gold-soft);
    border-radius: 2px;                 /* carre, pas arrondi */
    transition: color .35s ease, border-color .35s ease;
    z-index: 0;
}
/* remplissage dore qui monte au survol */
.soon-contact-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--brand-gold);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .35s cubic-bezier(.2,.7,.2,1);
    z-index: -1;
}
.soon-contact-link:hover {
    color: var(--brand-bg);
    border-color: var(--brand-gold);
}
.soon-contact-link:hover::before {
    transform: scaleY(1);
}

/* --- Statut "en developpement" --- */
.soon-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    border: 1px solid var(--brand-frame);
    border-radius: 2px;
    background: rgba(0, 0, 0, .18);
}
.soon-status-text {
    font-size: clamp(9px, 1.5vw, 10px);
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--brand-muted-2);
}
.soon-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-gold);
    box-shadow: 0 0 0 0 rgba(245, 200, 122, .55);
    animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(245, 200, 122, .55); }
    70%  { box-shadow: 0 0 0 9px rgba(245, 200, 122, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 200, 122, 0); }
}

/* Ellipse animee "..." */
.soon-ellipsis { display: inline-flex; gap: 3px; }
.soon-ellipsis i {
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--brand-muted-2);
    opacity: .3;
    animation: blink 1.4s ease-in-out infinite;
}
.soon-ellipsis i:nth-child(2) { animation-delay: .2s; }
.soon-ellipsis i:nth-child(3) { animation-delay: .4s; }
@keyframes blink {
    0%, 100% { opacity: .3; }
    50%      { opacity: 1; }
}

/* --- Pied --- */
.soon-foot {
    margin-top: clamp(36px, 7vw, 64px);
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--brand-frame);
}

/* ============================================================
   REVEAL — apparition en cascade au chargement
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: revealUp 1s cubic-bezier(.2,.7,.2,1) forwards;
}
.reveal[data-delay="1"] { animation-delay: .45s; }
.reveal[data-delay="2"] { animation-delay: .60s; }
.reveal[data-delay="3"] { animation-delay: .78s; }
.reveal[data-delay="4"] { animation-delay: .94s; }
.reveal[data-delay="5"] { animation-delay: 1.10s; }
.reveal[data-delay="6"] { animation-delay: 1.28s; }
.reveal[data-delay="7"] { animation-delay: 1.46s; }
.reveal[data-delay="8"] { animation-delay: 1.62s; }
.reveal[data-delay="9"] { animation-delay: 1.78s; }

@keyframes revealUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Le divider s'etire plutot que de glisser */
.soon-divider.reveal {
    transform: scaleX(0);
    animation: divLine 1s cubic-bezier(.2,.7,.2,1) forwards;
    animation-delay: .78s;
}
@keyframes divLine {
    to { opacity: 1; transform: scaleX(1); }
}

/* ============================================================
   ACCESSIBILITE — respect du "reduce motion"
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    body.soon { animation: none; }
    .reveal,
    .soon-divider.reveal,
    .soon-frame::before,
    .corner {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .soon-logo-accent { animation: none; -webkit-text-fill-color: var(--brand-gold); }
    .soon-dot, .soon-ellipsis i { animation: none; }
    #dust { display: none; }
}

/* ============================================================
   404 — meme univers
   ============================================================ */
.soon-404-code {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(64px, 18vw, 120px);
    line-height: 1;
    color: var(--brand-gold);
    margin-bottom: 8px;
}
.soon-404-text {
    font-size: clamp(11px, 2vw, 13px);
    letter-spacing: 2px;
    color: var(--brand-gold-soft);
    margin-bottom: 32px;
}
.soon-link {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--brand-cream);
    text-decoration: none;
    padding: 12px 26px;
    border: 1px solid var(--brand-frame);
    border-radius: 100px;
    transition: border-color .3s ease, color .3s ease, background .3s ease;
}
.soon-link:hover {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
    background: rgba(245, 200, 122, .06);
}
