/* main.css - styles partagés sur toutes les pages (variables, reset, header, nav, footer, container) */

:root {
    --rose-principal: #c87b8a;
    --rose-clair: #e8b4bf;
    --beige: #f5e6d3;
    --marron: #4a3428;
    --blanc: #ffffff;
    --font-heading: 'Quicksand', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-body: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--marron);
    line-height: 1.6;
    background-color: var(--beige);
}

h1, h2, h3, h4, h5, h6,
header .logo,
header .subtitle,
nav a,
.btn-galerie,
.back-button {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--rose-principal) 0%, var(--rose-clair) 100%);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '🐾';
    position: absolute;
    font-size: 8rem;
    opacity: 0.1;
    top: -2rem;
    right: 2rem;
    transform: rotate(-20deg);
}

header::after {
    content: '🐾';
    position: absolute;
    font-size: 6rem;
    opacity: 0.1;
    bottom: -1rem;
    left: 2rem;
    transform: rotate(20deg);
}

header .logo {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.logo-heart {
    width: 0.75em;
    height: 0.75em;
    vertical-align: -0.05em;
    margin-left: 0.1em;
    fill: currentColor;
}

header .tagline {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

header .subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Navigation */
nav {
    background-color: var(--blanc);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav li {
    display: inline;
}

nav a {
    text-decoration: none;
    color: var(--marron);
    transition: color 0.3s;
    font-size: 1.1rem;
}

nav a:hover,
nav a.active {
    color: var(--rose-principal);
}

/* Bouton hamburger (mobile uniquement) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: auto;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--marron);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Footer */
footer {
    background: var(--marron);
    color: var(--blanc);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer p {
    font-size: 1.1rem;
}

footer .footer-legal {
    margin-top: 1rem;
    font-size: 0.9rem;
}

footer a {
    color: var(--blanc);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 1.25rem 1rem;
    }

    header::before {
        font-size: 5rem;
    }

    header::after {
        font-size: 4rem;
    }

    header .logo {
        font-size: 2.3rem;
    }

    header .tagline {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    header .subtitle {
        font-size: 1.1rem;
        margin-top: 0.5rem;
    }

    nav {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        margin-top: 0.75rem;
    }

    nav ul.is-open {
        display: flex;
    }

    nav li {
        display: block;
        width: 100%;
    }

    nav a {
        display: block;
        padding: 0.75rem 0.25rem;
        border-top: 1px solid rgba(0,0,0,0.08);
    }
}
