/* ========================================
   RESET ET STYLES DE BASE
   ======================================== */

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #4a5568;
    background: linear-gradient(135deg, #E0F6E3 0%, #FAF9F0 50%, #FAE7E3 100%);
    min-height: 100vh;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   HEADER
   ======================================== */

header {
    background: linear-gradient(135deg, #BBF1C4 0%, #F4D0D5 100%);
    padding: 25px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

header nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

header nav h1 {
    font-size: 28px;
    font-weight: 600;
    color: #2d3748;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

header nav ul li a {
    display: inline-block;
    padding: 12px 24px;
    color: #2d3748;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

header nav ul li a:hover {
    background: linear-gradient(135deg, #F4B5C7 0%, #77DD76 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 181, 199, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Style pour le lien actif */
header nav ul li a.active {
    background: linear-gradient(135deg, #F49AC2 0%, #77DD76 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(244, 154, 194, 0.3);
}

/* Emoji couronne */
header nav ul li a[href*="prive"] {
    background: linear-gradient(135deg, #ffd3a5 0%, #fd6585 100%);
    color: white;
    font-size: 20px;
    padding: 10px 20px;
}

header nav ul li a[href*="prive"]:hover {
    transform: rotate(10deg) translateY(-2px);
    box-shadow: 0 8px 25px rgba(253, 101, 133, 0.4);
}

/* ========================================
   MAIN CONTENT
   ======================================== */

main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 30px;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: linear-gradient(135deg, #E0F6E3 0%, #F4D0D5 100%);
    color: #4a5568;
    text-align: center;
    padding: 30px 20px;
    margin-top: auto;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
}

footer p {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ========================================
   STYLES UTILITAIRES
   ======================================== */

/* Container générique */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Cartes/Sections */
.card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(187, 241, 196, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(244, 154, 194, 0.2);
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, #77DD76 0%, #F49AC2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(119, 221, 118, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(244, 154, 194, 0.4);
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 600;
}

h1 {
    font-size: 42px;
    background: linear-gradient(135deg, #77DD76, #F49AC2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 32px;
}

h3 {
    font-size: 24px;
}

/* Liens dans le contenu */
main a {
    color: #F49AC2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

main a:hover {
    color: #77DD76;
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablettes */
@media screen and (max-width: 768px) {
    header nav {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }

    header nav h1 {
        font-size: 24px;
    }

    header nav ul {
        justify-content: center;
        gap: 8px;
    }

    header nav ul li a {
        padding: 10px 18px;
        font-size: 14px;
    }

    main {
        padding: 30px 20px;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 26px;
    }

    .card {
        padding: 20px;
    }
}

/* Mobile */
@media screen and (max-width: 500px) {
    header {
        padding: 20px 0;
    }

    header nav h1 {
        font-size: 20px;
    }

    header nav ul {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    header nav ul li a {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }

    main {
        padding: 20px 15px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 22px;
    }

    footer {
        padding: 25px 15px;
    }

    footer p {
        font-size: 13px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

main {
    animation: fadeIn 0.6s ease-out;
}

/* Effet de scintillement subtil pour le header */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}
