/* =========================================================
   Au Cœur de Soi — la porte de la forêt
   Une seule image, une seule source de lumière (le filet de miel
   entre les battants), et le texte du cabinet posé dessus.
   ========================================================= */

:root {
    --porte-night: #141a10;
    --porte-cream: #fbf7ed;
    --porte-cream-soft: #efe6d4;
    --porte-honey-light: #f2d9a8;
    --porte-ink: #2b3320;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    background: var(--porte-night);
}

body.porte {
    margin: 0;
    min-height: 100vh;
    background: var(--porte-night);
    color: var(--porte-cream);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---------- L'image ---------- */

.porte__hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
}

.porte__picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.porte__picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 46%;
    display: block;
    animation: porte-drift 54s ease-in-out infinite alternate;
    transform-origin: 50% 46%;
}

/* La peinture respire très lentement : 4 % en une minute. */
@keyframes porte-drift {
    from { transform: scale(1); }
    to { transform: scale(1.045); }
}

/* Un voile sombre au centre : le filet de lumière reste visible,
   le texte garde un contraste franc au-dessus de la porte. */
.porte__veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(14, 10, 4, 0.32);
}

/* ---------- Le texte ---------- */

/* La vie de la clairière : papillons, lucioles, pollen.
   Au-dessus du voile (pour rester lumineux), sous le texte (qui garde sa lisibilité). */
.porte__scene {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.porte__inner {
    position: relative;
    z-index: 3;
    pointer-events: none;
    flex: 1 1 auto;
    display: grid;
    justify-items: center;
    align-content: center;
    text-align: center;
    padding: clamp(28px, 7vh, 64px) 20px 24px;
}

.porte__medallion {
    margin: 0 0 16px;
    width: 50px;
    height: 50px;
    padding: 3px;
    border-radius: 50%;
    background: var(--porte-cream);
    border: 1px solid rgba(242, 217, 168, 0.55);
}

.porte__medallion img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
}

.porte__eyebrow {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--porte-honey-light);
}

.porte__title {
    margin: 0;
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.04;
    letter-spacing: -0.015em;
    color: var(--porte-cream);
    text-wrap: balance;
    text-shadow: 0 2px 18px rgba(10, 7, 2, 0.55);
}

.porte__soon {
    margin: 10px auto 0;
    max-width: 26ch;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1rem, 1.7vw, 1.3rem);
    line-height: 1.34;
    color: var(--porte-honey-light);
    text-wrap: balance;
    text-shadow: 0 1px 12px rgba(10, 7, 2, 0.55);
}

/* ---------- Compte à rebours ---------- */

.porte__compte {
    margin: 20px 0 0;
}

.porte__compteTitre {
    margin: 0 0 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(251, 247, 237, 0.64);
}

.porte__chiffres {
    display: flex;
    align-items: stretch;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.porte__chiffre {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 0 clamp(9px, 2.2vw, 20px);
}

.porte__chiffre + .porte__chiffre {
    border-left: 1px solid rgba(242, 217, 168, 0.24);
}

.porte__chiffre b {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.2rem, 2.1vw, 1.6rem);
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--porte-cream);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 14px rgba(10, 7, 2, 0.5);
}

.porte__chiffre i {
    font-style: normal;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(242, 217, 168, 0.82);
}

.porte__chiffre--seul {
    padding: 0;
}

.porte__entrer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid rgba(242, 217, 168, 0.75);
    color: var(--porte-honey-light);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.porte__entrer:hover,
.porte__entrer:focus-visible {
    background: var(--porte-honey-light);
    border-color: var(--porte-honey-light);
    color: var(--porte-ink);
}

.porte__chiffre--seul b {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: var(--porte-honey-light);
}

.porte__action {
    margin: 22px 0 0;
}

.porte__inner a {
    pointer-events: auto;
}

.porte__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid rgba(251, 247, 237, 0.5);
    background: rgba(18, 13, 6, 0.45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--porte-cream);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.porte__cta:hover,
.porte__cta:focus-visible {
    background: var(--porte-honey-light);
    border-color: var(--porte-honey-light);
    color: var(--porte-ink);
}

/* ---------- Le pied : cadenas et mentions ---------- */

.porte__foot {
    position: relative;
    z-index: 3;
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 0 20px clamp(14px, 2.4vh, 26px);
}

.porte__lock {
    width: min(260px, 100%);
}

.porte__lock summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    color: rgba(251, 247, 237, 0.7);
    cursor: pointer;
    list-style: none;
    padding: 4px 0;
}

.porte__lock summary::-webkit-details-marker {
    display: none;
}

.porte__lock summary:hover,
.porte__lock[open] summary {
    color: var(--porte-cream);
}

.porte__lockIcon {
    width: 14px;
    height: 14px;
    flex: none;
    fill: none;
    stroke: var(--porte-honey-light);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.porte__form {
    margin: 10px 0 0;
    display: grid;
    gap: 7px;
    text-align: left;
}

.porte__form label {
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(251, 247, 237, 0.78);
}

.porte__formRow {
    display: flex;
    gap: 8px;
}

.porte__form input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
    font-family: var(--sans);
    font-size: 15px;
    color: var(--porte-cream);
    background: rgba(14, 10, 4, 0.62);
    border: 1px solid rgba(251, 247, 237, 0.34);
    border-radius: 10px;
}

.porte__form button {
    flex: none;
    min-height: 44px;
    padding: 0 18px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--porte-ink);
    background: var(--porte-cream);
    border: 1px solid var(--porte-cream);
    border-radius: 999px;
    cursor: pointer;
}

.porte__form button:hover {
    background: var(--porte-honey-light);
    border-color: var(--porte-honey-light);
}

.porte__formError {
    margin: 2px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--porte-honey-light);
}

.porte__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 14px;
    margin: 0;
    font-size: 12px;
    color: rgba(251, 247, 237, 0.78);
}

.porte__legal a {
    color: rgba(251, 247, 237, 0.9);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.porte__legal a:hover {
    color: var(--porte-cream);
}

:where(a, button, input):focus-visible,
summary:focus-visible {
    outline: 2px solid var(--porte-honey-light);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------- Téléphone ---------- */

@media (max-width: 899px) {
    .porte__picture img {
        object-position: 50% 42%;
    }

    .porte__veil {
        background: rgba(14, 10, 4, 0.34);
    }

    .porte__inner {
        padding: 12vh 18px 16px;
        align-content: center;
    }

    .porte__medallion {
        width: 50px;
        height: 50px;
        margin-bottom: 16px;
    }

    .porte__eyebrow {
        font-size: 11px;
        letter-spacing: 0.06em;
    }

    .porte__title {
        font-size: clamp(1.6rem, 7.4vw, 2.1rem);
    }

    .porte__soon {
        font-size: clamp(0.95rem, 4vw, 1.15rem);
        max-width: 24ch;
    }

    .porte__compte {
        margin-top: 16px;
    }

    .porte__chiffre {
        padding: 0 8px;
    }

    .porte__chiffre b {
        font-size: 1.15rem;
    }

    .porte__chiffre i {
        font-size: 8.5px;
        letter-spacing: 0.08em;
    }

    .porte__action {
        margin-top: 22px;
    }

    .porte__foot {
        padding-bottom: 18px;
    }

    .porte__cta {
        min-height: 44px;
        padding: 0 18px;
        font-size: 13.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .porte__cta {
        transition: none;
    }

    .porte__picture img {
        animation: none;
    }
}

