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

/* FONTS */
body {
    font-family: Montserrat, sans-serif;
}

/* SECTION DIVIDER LINES */
.section-line {
    border: none;
    border-top: 9px solid #3b0066;
    margin: 0;
}

/* HEADER */
header {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    z-index: 10;
    font-family: Poppins, sans-serif;
}

header h1 {
    font-size: 32px;
    font-weight: 600;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    margin-top: 80px; /* so header doesn't overlap */
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    bottom: 40px;
    right: 40px;
    font-size: 120px;
    font-weight: 700;
    color: #3b0066;
    line-height: 1.1;
    text-align: right;
    font-family: Poppins, sans-serif;
    text-shadow: 0 0 15px white;
}

/* SCROLL SECTION */
.scroll-section {
    height: 100vh;
    background: url("bgski.webp");
    background-size: cover;
    background-position: center;
    position: relative;
}

.scroll-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
}

.buttons {
    position: relative;
    top: 20%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.buttons button {
    width: 260px;
    padding: 18px;
    font-size: 22px;
    border: none;
    border-radius: 12px;
    background: #3b0066;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    font-family: Poppins, sans-serif;
}

.buttons button:hover {
    background: #5a0099;
}

/* FOOTER */
footer {
    background: #3b0066;
    padding: 40px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-family: Poppins, sans-serif;
    color: white;
}

footer ul {
    list-style: none;
    margin-top: 10px;
}

.footer-logo {
    width: 90px;
    height: auto;
}

/* SUBSCRIBE BUTTON */
.subscribe-btn {
    background: white;
    color: #3b0066;
    padding: 10px 18px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    font-family: Poppins, sans-serif;
    transition: 0.3s;
}

.subscribe-btn:hover {
    background: #e8d6f7;
}

/* POPUP BACKDROP */
.subscribe-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    justify-content: center;
    align-items: center;
    z-index: 9999; /* ABOVE HEADER */
}

/* POPUP BOX */
.popup-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 330px;
    text-align: center;
    position: relative;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    animation: popupFade 0.3s ease-out;
    margin: 0; /* ensures perfect centering */
}

/* POPUP ANIMATION */
@keyframes popupFade {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* LOGO INSIDE POPUP */
.popup-logo {
    width: 80px;
    margin-bottom: 10px;
}

/* CLOSE BUTTON */
.close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 28px;
    cursor: pointer;
    color: #3b0066;
    font-weight: bold;
}

/* FORM */
.popup-content input {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border-radius: 8px;
    border: 1px solid #aaa;
    font-size: 15px;
}

.popup-content button {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    border: none;
    border-radius: 8px;
    background: #3b0066;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.popup-content button:hover {
    background: #5a0099;
}

.history-container {
    max-width: 900px;
    margin: auto;
    padding: 40px 20px;
    text-align: center;
}

.history-photo {
    width: 300px;
    border-radius: 10px;
    border: 4px solid #ddd;
    margin: 20px 0;
}

.history-text {
    text-align: left;
    line-height: 1.7;
    font-size: 1.1rem;
}

.return-button {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 25px;
    background: white;
    border: 2px solid black;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    color: black;
}

.history-container {
    margin-top: 120px; /* Ajuste la valeur selon la hauteur de ton header */
}

.login-btn {
    background: white;
    color: #3b0066;
    padding: 10px 18px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    font-family: Poppins, sans-serif;
    transition: 0.3s;
}

.login-btn:hover {
    background: #e8d6f7;
}

.login-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* ============================
   PAGE PROFIL — STYLE COMPLET
   ============================ */

.profile-container {
    max-width: 700px;
    margin: 60px auto;
    text-align: center;
    padding: 20px;
}

.profile-card {
    background: #f7f7f7;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    margin-bottom: 40px;
    animation: fadeIn 0.4s ease-out;
}

.profile-pic {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #ddd;
}

.profile-extra {
    margin: 15px 0 25px;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}

.logout-btn {
    background: #d9534f;
    color: white;
    padding: 12px 22px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
    margin-bottom: 20px;
}

.logout-btn:hover {
    background: #c9302c;
}

.return-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    background: #333;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s;
}

.return-button:hover {
    background: #555;
}

/* Animation douce */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.header-premium {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: white;
    background: linear-gradient(90deg, #d4af37, #f7d774);
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    margin-left: auto;
    margin-right: 20px;
    align-self: center;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

/* ============================
   POPUP PREMIUM (ACCÈS BLOQUÉ)
   ============================ */

#premium-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.premium-popup-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 330px;
    text-align: center;
    position: relative;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    animation: popupFade 0.3s ease-out;
}

.premium-popup-box h2 {
    font-family: Poppins, sans-serif;
    color: #3b0066;
    margin-bottom: 10px;
}

.premium-popup-box p {
    font-size: 15px;
    margin-bottom: 20px;
}

.premium-popup-box button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #3b0066;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.premium-popup-box button:hover {
    background: #5a0099;
}
