@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;1,600&family=Montserrat:wght@300;400;600&display=swap');

/* --- VARIABLES --- */
:root {
    --coffee-dark: rgb(19, 15, 10);
    --coffee-brown: #653e26;
    --coffee-light: #9c8679;
    --coffee-light2: #c6ab9c;
    --coffee-cream: #c9c4bf;
    --text-light: #ffffff;
    
    --font-titles: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body { 
    color: var(--coffee-cream); 
    background: linear-gradient(to top, var(--coffee-dark) 10%, var(--coffee-brown) 96%, var(--coffee-light) 100%); 
    min-height: 100vh; 
    line-height: 1.7; 
    font-family: var(--font-body);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

/* Texture bois en overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://www.transparenttextures.com/patterns/wood-pattern.png');
    opacity: 0.01;
    pointer-events: none;
    z-index: 0;
}

body.loaded .logo-img { animation: fadeInUp 0.8s ease forwards; }
body.loaded main { animation: fadeInUp 0.8s ease forwards; }

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* --- LOADER --- */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--coffee-dark) 40%, var(--coffee-brown) 96%, var(--coffee-light) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 0.1s ease 0.6s forwards;
}

.loader-content {
    text-align: center;
    color: var(--coffee-cream);
    font-size: 1rem;
    letter-spacing: 2px;
}

/* --- HEADER --- */
header {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    overflow: hidden;
}

.logo-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    z-index: 10;
}

.logo-img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 10;
    opacity: 1;
}

body.loaded .logo-img {
    opacity: 1;
}

.header-bg-image {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 60%;
    background: 
        linear-gradient(rgba(243, 182, 31, 0.2), rgba(243, 182, 31, 0.2)), 
        url('./img/marble.jpg') center top / cover no-repeat;
    background-blend-mode: overlay;
    filter: brightness(1.1) contrast(0.9);
    z-index: 1;
}

.header-lines-container {
    position: absolute;
    top: calc(60% - 40px);
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.line1 { width: 100%; height: 10px; background-color: var(--text-light); }
.line2 { width: 100%; height: 20px; background-color: var(--text-light); }

/* --- MAIN CONTENT --- */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 40px 20px;
    min-height: 400px;
}

.content {
    text-align: center;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

body.loaded .content {
    opacity: 1;
}

h1 {
    font-family: var(--font-titles);
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 2rem;
}

.content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.content a {
    color: var(--coffee-light);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.content a:hover {
    color: var(--coffee-cream);
    opacity: 0.8;
}

.content a.copied {
    color: var(--coffee-light2);
    font-weight: bold;
}

/* --- TOAST NOTIFICATION --- */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--coffee-brown);
    color: var(--text-light);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 0.95rem;
    animation: slideIn 0.3s ease, slideOut 0.3s ease 2.7s;
    z-index: 1000;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

strong { 
    font-weight: 600; 
    color: var(--text-light); 
}

/* --- FOOTER --- */
footer {
    padding: 40px 20px;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

footer a {
    color: var(--coffee-light);
    text-decoration: none;
    font-weight: 600;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    header {
        min-height: 380px;
        padding-top: 10px;
        margin-bottom: 0;
    }

    .header-bg-image {
        height: 60%;
        background-position: center top; 
        background-size: 200%;
    }

    .header-lines-container {
        top: calc(56% - 30px);
        gap: 8px;
    }

    .line1 { height: 6px; }
    .line2 { height: 12px; }

    .logo-container {
        margin-top: 20px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    header {
        min-height: 300px;
        margin-bottom: 0;
    }

    .logo-container {
        width: 95%;
        margin-top: 25px;
    }

    .header-bg-image {
        height: 65%;
        background-size: 250%;
    }

    .header-lines-container {
        top: 48%;
        gap: 5px;
    }

    .line1 { height: 4px; }
    .line2 { height: 8px; }

    h1 {
        font-size: 1.2rem;
    }

    .content p {
        font-size: 0.9rem;
    }
}