/* ============================
   Style général du site Dopamined
   (Navbar, Accueil, About, Pro, Contact, Footer)
============================ */

/* Reset + Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body, html {
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
    background: linear-gradient(-45deg, #F6D04D, #456BE0, #6EE7B7, #F4F0EB);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #2F2F6F;
    overflow-x: hidden;
}

/* Loader */
#loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #F4F0EB;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #456BE0;
    border-top: 5px solid #F6D04D;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Navbar */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    background: #F4F0EB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    cursor: pointer;
}
.burger div {
    width: 25px;
    height: 3px;
    background-color: #2F2F6F;
    margin: 3px;
    transition: all 0.3s ease;
}
.logo {
    flex: 1;
}
.logo a {
    display: flex;
    align-items: center;
}
.logo-img {
    width: 50px;
    height: auto;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}
.nav-links li {
    margin: 0;
}
.nav-links a {
    text-decoration: none;
    color: #2F2F6F;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: #456BE0;
}

/* Toggle Burger */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
    opacity: 0;
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Main Content */
#main-container {
    padding-top: 0;
    padding-bottom: 80px;
    min-height: calc(100vh - 80px);
    transition: opacity 0.5s ease;
}
.fade-container {
    opacity: 1;
}
.fade-out {
    opacity: 0;
}

/* Sections générales */
section {
    padding: 100px 20px 50px 20px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
h1, h2, h3 {
    margin-bottom: 20px;
}
p {
    max-width: 600px;
    margin-bottom: 20px;
    font-weight: 400;
}

/* Boutons */
.btn-primary, .btn-secondary {
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}
.btn-primary {
    background: #F6D04D;
    color: #2F2F6F;
}
.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #F6D04D;
}
.btn-secondary {
    background: #456BE0;
    color: white;
}
.btn-secondary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #456BE0;
}

/* Tuiles Home, About, Pro */
.tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
    gap: 20px;
}
.tile {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex: 1 1 300px;
    text-align: center;
    transition: all 0.3s ease;
}
.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Formulaire de Contact */
.contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 15px;
    border: 1px solid #ccc;
    background: #F4F0EB;
    font-family: 'Outfit', sans-serif;
    color: #2F2F6F;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #456BE0;
    outline: none;
}

/* Footer */
.footer {
    width: 100%;
    text-align: center;
    padding: 20px;
    background: #F4F0EB;
    margin-top: 100px;
    font-size: 14px;
}

/* Animations */
@keyframes gradientBG {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}
@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

/* Responsive */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: #F4F0EB;
        position: fixed;
        top: 70px;
        left: 0;
        width: 70%;
        height: calc(100% - 70px);
        padding: 30px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
    }
    .nav-links.active {
        display: flex;
    }
    .burger {
        display: flex;
    }
    .tiles {
        flex-direction: column;
        align-items: center;
    }
}
