/* ===== RESET DE BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    color: #f1f1f1;
    background: #1e1e1e;
    position: relative;
    overflow-x: hidden;
}

/* Décoration de fond animée */
body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

body::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #f39c12, transparent);
    top: -300px;
    right: -300px;
    animation: float 20s ease-in-out infinite;
}

body::after {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, #e67e22, transparent);
    bottom: -400px;
    left: -400px;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

h1,
h2,
h3,
h4 {
    margin-bottom: 0.5em;
    font-weight: 600;
    color: #f39c12;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Décoration sous les titres */
h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    margin: 10px auto 0;
    border-radius: 2px;
}

p {
    margin-bottom: 1em;
    color: #ddd;
}

section {
    height: 100vh;
    position: relative;
    z-index: 1;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    box-shadow: 0 6px 25px rgba(243, 156, 18, 0.6);
    transform: translateY(-5px);
}

.back-to-top:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
}