/* ============================================================
   BASE.CSS — remplace Bootstrap : variables, reset, layout,
   navbar, footer. À charger sur toutes les pages AVANT le CSS
   spécifique de chaque page.
   ============================================================ */

:root {
    --yellow-pale: #FFF8DC;
    --pink-pale: #FFB6C1;
    --yellow-accent: #F0E68C;
    --pink-accent: #FF69B4;
    --color-yellow: #f5df2b;
    --color-pink: #ff66c4;
    --color-blue: #48abe0;
    --color-green: #48e049;
    --color-dark: #333;
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --color-ColorDblue: #0d1421;
    --gradient-primary: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-pink) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-pink) 0%, var(--color-yellow) 100%);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

button {
    font: inherit;
    cursor: pointer;
}

ul.no-bullets {
    list-style: none;
}

/* ---------- Conteneur ---------- */
.container {
    width: 100%;
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: 15px;
}

/* ---------- Utilitaires ---------- */
.text-center { text-align: center; }

/* ---------- Navbar ---------- */
.navbar {
    background: var(--color-ColorDblue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-block: 8px;
}

.navbar-brand {
    width: 100px;
    height: 100px;
    background: var(--color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.navbar-brand img {
    width: 100%;
    object-fit: cover;
}

.navbar-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    margin-inline: auto;
}

.nav-links a {
    display: block;
    color: var(--color-yellow);
    text-decoration: none;
    font-family: "Dancing Script", cursive;
    font-size: 30px;
    font-weight: 500;
    margin: 0 10px;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--pink-accent);
}

/* Réseaux sociaux (navbar) */
.social-links {
    display: flex;
    align-items: center;
}

.social-links a {
    color: var(--color-light);
    font-size: 2rem;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links .bi-facebook { color: #3b5998; }
.social-links .bi-instagram { color: rgb(255, 140, 40); }
.social-links .bi-youtube { color: red; }

.social-links a:hover {
    color: var(--pink-accent);
    transform: translateY(-2px);
}

/* Bouton hamburger */
.navbar-toggler {
    display: none;
    border: 2px solid var(--pink-accent);
    background: none;
    padding: 8px;
    border-radius: 4px;
}

.navbar-toggler:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(255, 105, 180, 0.25);
}

.hamburger {
    width: 25px;
    height: 20px;
    position: relative;
    display: block;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: var(--pink-accent);
    border-radius: 1px;
    transition: all 0.3s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}
.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
}
.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    top: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #212529;
    color: var(--color-light);
    padding: 48px 0;
    margin-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}

.site-footer h2 {
    color: var(--color-green) !important;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.site-footer ul {
    list-style: none;
}

.site-footer li {
    margin-bottom: 0.5rem;
}

.site-footer a {
    color: var(--color-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--pink-accent);
}

.site-footer a.link-instagram { color: #ffc107; }
.site-footer a.link-youtube { color: #dc3545; }

.site-footer i {
    width: 1.25em;
    text-align: center;
    display: inline-block;
    margin-right: 0.5rem;
}

.footer-divider {
    border: none;
    border-top: 1px solid #6c757d;
    margin: 24px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .navbar-toggler {
        display: block;
    }

    .navbar-menu {
        flex-basis: 100%;
        flex-direction: column;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.8s ease-in-out;
    }

    .navbar-menu.open {
        max-height: 600px;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        width: 100%;
        margin-top: 10px;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .social-links {
        margin-block: 1rem;
        justify-content: center;
    }

    .social-links a {
        margin: 0 5px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
