/* ========================================
   Tabea & Joel — page de remerciement
   Style repris du site principal (palette « Quiet Luxury »)
   ======================================== */

:root {
    /* Palette "Quiet Luxury" — identique au site principal */
    --color-terracotta: #C26552;
    --color-cream: #F7F5F0;
    --color-sand: #E6E2D6;
    --color-charcoal: #2A2826;
    --color-white: #FFFFFF;

    --font-heading: 'Great Vibes', cursive;
    --font-body: 'Lora', serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-charcoal);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Grain Texture Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
}

/* ========================
   Écran de choix de langue
   ======================== */
.lang-splash {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background-color: var(--color-cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-md);
    transition: opacity 1s ease, visibility 1s ease;
}

.lang-splash > * {
    max-width: 100%;
}

.lang-splash.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-monogram {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 11vw, 5rem);
    color: var(--color-terracotta);
    line-height: 1.2;
    opacity: 0;
    animation: slowFadeUp 2.4s ease forwards 0.3s;
}

.splash-hint {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    line-height: 2;
    color: rgba(42, 40, 38, 0.55);
    margin-top: var(--spacing-sm);
    opacity: 0;
    animation: slowFadeUp 2s ease forwards 1.8s;
}

.splash-hint span {
    display: block;
}

.splash-rule {
    width: 60px;
    height: 1px;
    background: rgba(194, 101, 82, 0.4);
    margin: var(--spacing-md) 0;
    opacity: 0;
    animation: slowFadeUp 2s ease forwards 2s;
}

.splash-choices {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: slowFadeUp 2s ease forwards 2.4s;
}

@keyframes slowFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .splash-monogram,
    .splash-hint,
    .splash-rule,
    .splash-choices {
        animation-duration: 0.01s;
        animation-delay: 0s;
    }
}

/* Boutons — outline élégant, comme le site principal */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--color-terracotta);
    color: var(--color-terracotta);
    background: transparent;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background: var(--color-terracotta);
    color: var(--color-white);
}

@media (max-width: 480px) {
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.75rem;
    }
}

/* ========================
   Contenu principal
   ======================== */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.lang-switch {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: var(--spacing-md) var(--spacing-sm) 0;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: rgba(42, 40, 38, 0.5);
}

.lang-switch button {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: rgba(42, 40, 38, 0.5);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

.lang-switch button:hover {
    color: var(--color-terracotta);
}

.lang-switch button.active {
    color: var(--color-terracotta);
    text-decoration: underline;
    text-underline-offset: 4px;
}

main {
    flex: 1;
    width: 90%;
    max-width: 720px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-sm) var(--spacing-xl);
    text-align: center;
}

h1 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--color-terracotta);
    font-size: clamp(5rem, 22vw, 10rem);
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

.lead {
    font-size: 1.15rem;
    color: rgba(42, 40, 38, 0.8);
    max-width: 34ch;
    margin: 0 auto var(--spacing-lg);
}

.links {
    display: grid;
    gap: var(--spacing-sm);
    text-align: left;
}

.link-card {
    position: relative;
    background-color: var(--color-sand);
    border: 1px solid rgba(194, 101, 82, 0.15);
    border-left: 4px solid var(--color-terracotta);
    padding: var(--spacing-md);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.link-card:hover,
.link-card:focus-within {
    background-color: #dfdac9;
    transform: translateY(-2px);
}

/* Toute la carte est cliquable, sans imbriquer les liens */
.card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.link-card .credit a {
    position: relative;
    z-index: 2;
}

.link-card .title {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-charcoal);
    line-height: 1.4;
}

.link-card .credit {
    display: block;
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(42, 40, 38, 0.65);
    margin-top: 0.25rem;
}

.link-card .credit a {
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--color-terracotta);
}

.link-card .arrow {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-terracotta);
}

/* Mots de passe de l'album de la photographe */
.link-card .passwords {
    display: block;
    position: relative;
    z-index: 2;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(194, 101, 82, 0.2);
}

.pw-row {
    display: block;
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(42, 40, 38, 0.7);
}

.pw-row + .pw-row {
    margin-top: 0.6rem;
}

.pw-label {
    display: block;
}

.pw-value {
    display: inline-block;
    margin-top: 0.2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    color: var(--color-charcoal);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(194, 101, 82, 0.3);
    padding: 0.1rem 0.55rem;
    user-select: all;
}

/* Notice « taguez l'artiste » */
.link-card .note {
    display: block;
    position: relative;
    z-index: 2;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(194, 101, 82, 0.2);
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(42, 40, 38, 0.7);
}

.link-card .note a {
    color: var(--color-terracotta);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.upload {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(194, 101, 82, 0.2);
}

.upload p {
    font-size: 1rem;
    color: rgba(42, 40, 38, 0.8);
    margin-bottom: var(--spacing-md);
}

/* Footer */
footer {
    background-color: var(--color-terracotta);
    color: var(--color-cream);
    padding: var(--spacing-lg) var(--spacing-sm);
    text-align: center;
}

footer .names {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 8vw, 3rem);
    color: var(--color-cream);
    font-weight: 400;
    margin-bottom: var(--spacing-sm);
}

footer p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

footer a.credit-link {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nickel-logo-link {
    display: inline-block;
    margin-top: var(--spacing-sm);
    position: relative;
    height: 35px;
    width: 120px;
}

.nickel-logo-link img {
    height: 35px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease;
}

.nickel-logo-link img:first-child { opacity: 0.8; }
.nickel-logo-link img:last-child  { opacity: 0; }
.nickel-logo-link:hover img:first-child { opacity: 0; }
.nickel-logo-link:hover img:last-child  { opacity: 0.8; }

@media (min-width: 768px) {
    main {
        padding-top: var(--spacing-xl);
    }
}
