/* =============================================
   BANAATU — Luxury Jewelry E-commerce
   Palette: Black #1A1A1A, Rose Gold #C4A882, Ivory #FAF8F5
   Fonts: Marcellus (display) + Karla (body)
   ============================================= */

:root {
    --black: #1A1A1A;
    --black-soft: #2C2C2C;
    --rose: #C4A882;
    --rose-dark: #A8906E;
    --rose-light: #D4C0A8;
    --ivory: #FAF8F5;
    --ivory-dark: #F2EDE6;
    --warm-white: #FDFCFA;
    --grey-100: #F5F3F0;
    --grey-200: #E8E4DF;
    --grey-300: #D1CBC4;
    --grey-400: #A09890;
    --grey-500: #7A7168;
    --white: #FFFFFF;

    --font-display: 'Marcellus', Georgia, serif;
    --font-body: 'Karla', -apple-system, sans-serif;

    --container: 1220px;
    --radius: 6px;
    --radius-lg: 12px;
}

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    color: var(--black);
    background: var(--warm-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 32px);
}

/* TYPOGRAPHY — fluid */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--black);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(0.88rem, 1.2vw, 1rem); }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: clamp(12px, 1.5vw, 15px) clamp(24px, 3vw, 36px);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(0.8rem, 1vw, 0.92rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-dark {
    background: var(--black);
    color: var(--white);
}
.btn-dark:hover {
    background: var(--black-soft);
    transform: translateY(-1px);
}

.btn-light {
    background: var(--white);
    color: var(--black);
}
.btn-light:hover {
    background: var(--ivory);
    transform: translateY(-1px);
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement {
    background: var(--black);
    color: var(--white);
    text-align: center;
    font-size: clamp(0.7rem, 1vw, 0.82rem);
    letter-spacing: 0.04em;
}

.announce-inner {
    padding: 9px 24px;
}

.announcement a {
    color: var(--rose-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.announcement a:hover {
    color: var(--white);
}

/* ===== HEADER ===== */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--grey-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 32px);
    height: 64px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.logo {
    justify-self: center;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    letter-spacing: 0.35em;
    color: var(--black);
    text-transform: uppercase;
}

.header-search {
    display: flex;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 9px 16px;
    border: 1px solid var(--grey-200);
    border-right: none;
    background: var(--grey-100);
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--black);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.search-input::placeholder { color: var(--grey-400); }
.search-input:focus {
    border-color: var(--rose);
    background: var(--white);
}

.search-btn {
    padding: 0 14px;
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.search-btn:hover { background: var(--black-soft); }

.header-actions {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 18px);
}

.icon-btn {
    position: relative;
    color: var(--black);
    transition: color 0.2s;
    display: flex;
}

.icon-btn:hover { color: var(--rose); }

.search-toggle { display: none; }

.cart-badge {
    position: absolute;
    top: -5px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: var(--rose);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.burger span {
    width: 22px;
    height: 1.5px;
    background: var(--black);
    transition: all 0.3s;
}

/* CAT NAV */
.cat-nav {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 32px);
    border-top: 1px solid var(--grey-100);
}

.cat-list {
    display: flex;
    list-style: none;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: center;
}

.cat-list::-webkit-scrollbar { display: none; }

.cat-link {
    display: block;
    padding: 12px clamp(12px, 1.5vw, 20px);
    font-size: clamp(0.78rem, 1vw, 0.86rem);
    font-weight: 500;
    color: var(--grey-500);
    white-space: nowrap;
    letter-spacing: 0.02em;
    position: relative;
    transition: color 0.25s;
}

.cat-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: var(--black);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.cat-link:hover { color: var(--black); }
.cat-link:hover::after,
.cat-link.active::after { width: 60%; }
.cat-link.active { color: var(--black); }

.accent-link { color: var(--rose) !important; }

/* ===== HERO ===== */
.hero {
    position: relative;
    aspect-ratio: 21/9;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    width: 100%;
}

.hero-slide {
    position: absolute;
    width: 100%;
    inset: 0;
}

.hero-img-wrap {
    width: 100%;
    height: 100%;
}

.hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(26, 26, 26, 0.65) 0%,
        rgba(26, 26, 26, 0.25) 50%,
        transparent 100%
    );
}

.hero-content {
    position: absolute;
    top: 50%;
    left: clamp(32px, 6vw, 80px);
    transform: translateY(-50%);
    color: var(--white);
    max-width: 480px;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    padding: 5px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: clamp(0.65rem, 0.9vw, 0.78rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: clamp(12px, 2vw, 20px);
    color: var(--rose-light);
}

.hero h1 {
    color: var(--white);
    margin-bottom: clamp(12px, 2vw, 18px);
    letter-spacing: -0.01em;
}

.hero-content p {
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    line-height: 1.65;
    opacity: 0.85;
    margin-bottom: clamp(20px, 3vw, 28px);
}

.hero-nav {
    position: absolute;
    bottom: clamp(16px, 3vw, 28px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: all 0.3s;
}

.hero-dot.active {
    background: var(--white);
    width: 28px;
    border-radius: 4px;
}

/* ===== SECTION HEADS ===== */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: clamp(24px, 3vw, 36px);
    gap: 16px;
}

.link-arrow {
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    font-weight: 600;
    color: var(--rose);
    white-space: nowrap;
    transition: opacity 0.2s;
}

.link-arrow:hover { opacity: 0.7; }

/* ===== CATEGORIES — proportional cards ===== */
.categories {
    padding: clamp(48px, 7vw, 80px) 0;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(10px, 1.5vw, 18px);
}

.cat-card {
    position: relative;
    text-align: center;
    transition: transform 0.35s ease;
}

.cat-card:hover { transform: translateY(-4px); }

.cat-card-img {
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--grey-100);
}

.cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cat-card:hover .cat-card-img img {
    transform: scale(1.06);
}

.cat-card-label {
    display: block;
    margin-top: clamp(8px, 1vw, 12px);
    font-size: clamp(0.78rem, 1vw, 0.9rem);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ===== PRODUCT SECTIONS ===== */
.product-section {
    padding: clamp(48px, 7vw, 80px) 0;
}

.product-section.bg-ivory {
    background: var(--ivory);
}

.product-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(12px, 2vw, 22px);
}

.product-card {
    position: relative;
}

.product-badge {
    position: absolute;
    top: clamp(8px, 1vw, 12px);
    left: clamp(8px, 1vw, 12px);
    padding: 3px 10px;
    background: var(--black);
    color: var(--white);
    font-size: clamp(0.6rem, 0.8vw, 0.72rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    z-index: 2;
}

.product-badge.sale {
    background: var(--rose);
}

.product-img-link {
    display: block;
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--grey-100);
    border-radius: var(--radius);
}

.product-img {
    position: absolute;
    inset: 0;
    transition: opacity 0.45s ease;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-img-hover {
    opacity: 0;
}

.product-card:hover .product-img-hover {
    opacity: 1;
}

.product-card:hover .product-img:not(.product-img-hover) {
    opacity: 0;
}

.product-info {
    padding: clamp(10px, 1.2vw, 14px) 0 0;
}

.product-info h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(0.82rem, 1.1vw, 0.95rem);
    margin-bottom: 2px;
}

.product-info h3 a:hover { color: var(--rose); }

.product-mat {
    font-size: clamp(0.72rem, 0.9vw, 0.82rem);
    color: var(--grey-400);
    margin-bottom: clamp(4px, 0.5vw, 6px);
}

.product-price {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    color: var(--black);
}

.price-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-price-old {
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
    color: var(--grey-400);
    text-decoration: line-through;
}

/* ===== OCCASION SECTION ===== */
.occasion-section {
    padding: clamp(48px, 7vw, 80px) 0;
    background: var(--ivory);
}

.occasion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: clamp(10px, 1.5vw, 16px);
}

.occasion-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.occasion-large {
    grid-row: 1 / 3;
}

.occasion-img {
    width: 100%;
    height: 100%;
}

.occasion-card:not(.occasion-large) .occasion-img {
    aspect-ratio: 16/9;
}

.occasion-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.occasion-card:hover .occasion-img img {
    transform: scale(1.05);
}

.occasion-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.6) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(16px, 2.5vw, 28px);
    color: var(--white);
}

.occasion-label {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
}

.occasion-cta {
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
    font-weight: 600;
    color: var(--rose-light);
    margin-top: 4px;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}

.occasion-card:hover .occasion-cta {
    opacity: 1;
    transform: translateY(0);
}

/* ===== EDITORIAL ===== */
.editorial {
    padding: clamp(48px, 7vw, 80px) 0;
}

.editorial-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: var(--ivory);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 360px;
}

.editorial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editorial-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 56px);
}

.editorial-tag {
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rose);
    margin-bottom: 12px;
}

.editorial-content h2 {
    margin-bottom: clamp(10px, 1.5vw, 16px);
}

.editorial-content p {
    color: var(--grey-500);
    font-size: clamp(0.88rem, 1vw, 1rem);
    line-height: 1.7;
    margin-bottom: clamp(20px, 3vw, 28px);
    max-width: 380px;
}

/* ===== BENEFITS ===== */
.benefits {
    padding: clamp(40px, 5vw, 60px) 0;
    border-top: 1px solid var(--grey-200);
    border-bottom: 1px solid var(--grey-200);
}

.benefits-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 2vw, 24px);
}

.benefit {
    display: flex;
    align-items: flex-start;
    gap: clamp(10px, 1.2vw, 14px);
}

.benefit svg {
    color: var(--rose);
    flex-shrink: 0;
    margin-top: 2px;
}

.benefit strong {
    display: block;
    font-size: clamp(0.82rem, 1vw, 0.92rem);
    font-weight: 700;
    margin-bottom: 2px;
}

.benefit span {
    font-size: clamp(0.72rem, 0.9vw, 0.82rem);
    color: var(--grey-400);
    line-height: 1.5;
}

/* ===== NEWSLETTER ===== */
.newsletter {
    padding: clamp(56px, 8vw, 90px) 0;
    text-align: center;
}

.nl-inner h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    margin-bottom: 8px;
}

.nl-inner p {
    color: var(--grey-500);
    font-size: clamp(0.88rem, 1vw, 1rem);
    margin-bottom: clamp(20px, 3vw, 28px);
}

.nl-form {
    display: flex;
    max-width: 440px;
    margin: 0 auto;
}

.nl-input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--grey-300);
    border-right: none;
    font-family: var(--font-body);
    font-size: 0.88rem;
    outline: none;
    background: var(--white);
    transition: border-color 0.2s;
}

.nl-input:focus { border-color: var(--rose); }

.nl-btn { border-radius: 0; }

/* ===== FOOTER ===== */
.footer {
    background: var(--black);
    color: rgba(255, 255, 255, 0.65);
    padding: clamp(48px, 6vw, 64px) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: clamp(24px, 4vw, 40px);
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.3rem;
    letter-spacing: 0.3em;
    color: var(--white);
    margin-bottom: 14px;
}

.footer-brand-col p {
    font-size: 0.86rem;
    line-height: 1.7;
    max-width: 260px;
    margin-bottom: 18px;
}

.social-row {
    display: flex;
    gap: 14px;
}

.social-row a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.25s;
}

.social-row a:hover {
    border-color: var(--rose);
    color: var(--rose);
}

.footer-col h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    padding: 3px 0;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--rose-light); }

.footer-pay {
    margin-top: 16px;
}

.footer-pay span {
    font-size: 0.78rem;
    display: block;
    margin-bottom: 6px;
}

.pay-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pay-b {
    padding: 3px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    font-size: 0.78rem;
}

.footer-bottom a {
    color: var(--rose-light);
    font-weight: 600;
}

.footer-bottom a:hover { color: var(--white); }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 54px;
    height: 54px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    z-index: 999;
    transition: transform 0.3s;
}

.wa-float:hover { transform: scale(1.1); }

/* ===== REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE — proportional scaling ===== */

@media (max-width: 1024px) {
    .cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-row {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Hide last product to keep 3 even */
    .product-row .product-card:nth-child(4) {
        display: none;
    }

    .benefits-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .editorial-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .editorial-img {
        aspect-ratio: 16/9;
    }
}

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

    .header-search { display: none; }
    .search-toggle { display: flex; }
    .burger { display: flex; }

    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    .burger.active span:nth-child(2) { opacity: 0; }
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .cat-nav {
        overflow-x: auto;
    }

    .cat-list {
        justify-content: flex-start;
    }

    .cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-row .product-card:nth-child(4) {
        display: block;
    }

    .occasion-grid {
        grid-template-columns: 1fr;
    }

    .occasion-large {
        grid-row: auto;
    }

    .occasion-card:not(.occasion-large) .occasion-img {
        aspect-ratio: 16/8;
    }

    .hero {
        aspect-ratio: 16/10;
        min-height: 320px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .announcement { font-size: 0.7rem; }

    .header-actions .icon-btn:not(.cart-icon):not(.search-toggle) {
        display: none;
    }

    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .benefits-row {
        grid-template-columns: 1fr;
    }

    .hero {
        aspect-ratio: 9/12;
        min-height: 420px;
        max-height: 560px;
    }

    .hero-content {
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .nl-form {
        flex-direction: column;
        gap: 10px;
    }

    .nl-input {
        border-right: 1px solid var(--grey-300);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

/* =============================================
   BANAATU — Ajouts CSS (ajouter à la fin de styles.css)
   Messages, formulaires, pages comptes
   ============================================= */

/* ===== MESSAGES DJANGO ===== */
.messages-container {
    position: fixed;
    top: 120px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 380px;
    transition: opacity 0.4s ease;
}

.msg {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    line-height: 1.5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    animation: msg-in 0.3s ease;
}

@keyframes msg-in {
    from { transform: translateX(20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.msg-success {
    background: #ecfdf5;
    color: #065f46;
    border-left: 3px solid #10b981;
}

.msg-error {
    background: #fef2f2;
    color: #991b1b;
    border-left: 3px solid #ef4444;
}

.msg-info {
    background: #eff6ff;
    color: #1e40af;
    border-left: 3px solid #3b82f6;
}

.msg-warning {
    background: #fffbeb;
    color: #92400e;
    border-left: 3px solid #f59e0b;
}

.msg-close {
    font-size: 1.2rem;
    line-height: 1;
    color: inherit;
    opacity: 0.5;
    padding: 0 4px;
}

.msg-close:hover {
    opacity: 1;
}

/* ===== FORMULAIRES ===== */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--black);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(196, 168, 130, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--grey-400);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A7168' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 6px;
}

.form-error {
    color: #dc2626;
    font-size: 0.78rem;
    margin-top: 4px;
}

.form-help {
    color: var(--grey-400);
    font-size: 0.78rem;
    margin-top: 4px;
}

/* ===== AUTH PAGES ===== */
.auth-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(40px, 6vw, 80px) 0;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: clamp(28px, 4vw, 40px);
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg);
}

.auth-card h1 {
    text-align: center;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    margin-bottom: 8px;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--grey-400);
    font-size: 0.88rem;
    margin-bottom: 28px;
}

.auth-card .btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--grey-500);
}

.auth-footer a {
    color: var(--rose);
    font-weight: 600;
}

.auth-footer a:hover {
    color: var(--rose-dark);
}

/* ===== PAGES STATIQUES ===== */
.page-static {
    padding: clamp(48px, 7vw, 80px) 0;
}

.page-static h1 {
    margin-bottom: clamp(20px, 3vw, 32px);
}

.page-static p,
.page-static li {
    color: var(--grey-500);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ===== SEARCH ===== */
.search-results {
    padding: clamp(48px, 7vw, 80px) 0;
}

.search-results h1 {
    margin-bottom: 24px;
}

.search-empty {
    text-align: center;
    color: var(--grey-400);
    padding: 60px 0;
    font-size: 0.95rem;
}

@media (max-width: 520px) {
    .messages-container {
        left: 12px;
        right: 12px;
        max-width: none;
    }

    .auth-card {
        border: none;
        padding: 20px;
    }
}