/* ============================================================
   STYLE GLOBAL - FaitPart
   Header + Footer + Composants + Menu Mobile
   ============================================================ */

/* ============================================================
   BASE
   ============================================================ */
body {
    font-family: var(--font-body, 'Cormorant Garamond', Georgia, serif);
    font-size: 1rem;
    color: var(--color-text, #2c2416);
    background: var(--color-bg, #faf7f2);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.site-main {
    flex: 1;
    padding-top: var(--header-height, 70px);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-sm { max-width: 640px; }
.container-md { max-width: 768px; }
.container-lg { max-width: 1024px; }
.container-2xl { max-width: 1440px; }

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    color: var(--royal-blue, #1a1a3e);
    line-height: 1.2;
    letter-spacing: 0.02em;
    font-weight: 600;
}

h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

.title-cursive {
    font-family: 'Great Vibes', cursive;
    font-size: 3.75rem;
    font-weight: normal;
    letter-spacing: 0;
}

.text-muted { color: var(--color-text-muted, #6b6456); }
.text-light { color: var(--color-text-light, #999082); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-danger { color: #c62828 !important; }
.text-success { color: #2e7d32; }

a {
    color: var(--royal-gold-dark, #8b7238);
    transition: color 0.15s ease;
    text-decoration: none;
}

a:hover {
    color: var(--royal-blue, #1a1a3e);
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'Cinzel', serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
    user-select: none;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: linear-gradient(135deg, #1a1a3e, #0d0d24);
    color: #e6c988;
    border-color: #c9a961;
    box-shadow: 0 4px 12px rgba(26, 26, 62, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c9a961, #8b7238);
    color: #1a1a3e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 169, 97, 0.3);
}

.btn-secondary {
    background: #c9a961;
    color: #1a1a3e;
    border-color: #8b7238;
}

.btn-secondary:hover {
    background: #8b7238;
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #1a1a3e;
    border-color: #1a1a3e;
}

.btn-outline:hover {
    background: #1a1a3e;
    color: #e6c988;
}

.btn-ghost {
    background: transparent;
    color: #2c2416;
    border-color: transparent;
}

.btn-ghost:hover {
    background: rgba(26, 26, 62, 0.05);
}

.btn-danger {
    background: #c62828;
    color: #fff;
    border-color: #c62828;
}

.btn-danger:hover { background: #a01a1a; }

.btn-sm { padding: 8px 16px; font-size: 0.75rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ============================================================
   FORMULAIRES
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }

.form-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1a1a3e;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-label .required { color: #c62828; margin-left: 4px; }

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: #2c2416;
    background: #f8f5ee;
    border: 2px solid rgba(26, 26, 62, 0.1);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #c9a961;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999082;
    font-style: italic;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #c62828;
    background: #ffebee;
}

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

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6b6456;
    font-style: italic;
}

.form-error {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #c62828;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem 0;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.form-check-box {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid #c9a961;
    border-radius: 4px;
    position: relative;
    transition: all 0.25s ease;
    background: #fff;
}

.form-check input[type="radio"] + .form-check-box { border-radius: 50%; }

.form-check input:checked + .form-check-box {
    background: #c9a961;
    border-color: #8b7238;
}

.form-check input:checked + .form-check-box::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.form-check input[type="radio"]:checked + .form-check-box::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    margin: auto;
}

/* ============================================================
   CARTES & BADGES
   ============================================================ */
.card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(26, 26, 62, 0.1);
    border: 1px solid rgba(26, 26, 62, 0.1);
    padding: 1.5rem;
    transition: all 0.25s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26, 26, 62, 0.12);
}

.card-header {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(26, 26, 62, 0.1);
}

.card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    color: #1a1a3e;
    margin-bottom: 0.25rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 50px;
    background: #f8f5ee;
    color: #6b6456;
}

.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-warning { background: #fff4e5; color: #ed6c02; }
.badge-error { background: #ffebee; color: #c62828; }
.badge-info { background: #e1f5fe; color: #0277bd; }
.badge-basic { background: #f5f5f5; color: #a0a0a0; }
.badge-premium { background: #faf5e6; color: #c9a961; }
.badge-luxury { background: linear-gradient(135deg, #d4af37, #b8860b); color: #fff; }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-container {
    position: fixed;
    top: calc(var(--header-height, 70px) + 1rem);
    right: 1rem;
    z-index: 700;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    width: calc(100% - 32px);
    pointer-events: none;
}

.flash {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(26, 26, 62, 0.12);
    border-left: 4px solid #0277bd;
    pointer-events: auto;
    animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flash-success { border-left-color: #2e7d32; background: #e8f5e9; }
.flash-error { border-left-color: #c62828; background: #ffebee; }
.flash-warning { border-left-color: #ed6c02; background: #fff4e5; }
.flash-info { border-left-color: #0277bd; background: #e1f5fe; }

.flash-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.flash-message { flex: 1; font-size: 0.875rem; }

.flash-close {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #6b6456;
    border-radius: 4px;
    transition: all 0.15s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.flash-close:hover { background: rgba(0, 0, 0, 0.05); color: #2c2416; }

@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

.flash.removing { animation: slideOutRight 0.25s forwards; }

/* ============================================================
   HEADER PUBLIC
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height, 70px);
    background: rgba(250, 247, 242, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 26, 62, 0.08);
    z-index: 200;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
    background: rgba(250, 247, 242, 0.98);
    box-shadow: 0 2px 12px rgba(26, 26, 62, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 1rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Cinzel', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a3e;
    letter-spacing: 0.05em;
    transition: transform 0.25s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.logo:hover { transform: scale(1.03); color: #1a1a3e; }

.logo-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(201, 169, 97, 0.4));
}

/* Navigation principale (desktop) */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 8px 16px;
    font-family: 'Cinzel', serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #2c2416;
    border-radius: 8px;
    transition: all 0.15s ease;
    text-decoration: none;
}

.nav-link:hover {
    background: rgba(201, 169, 97, 0.1);
    color: #1a1a3e;
}

.nav-link.active {
    color: #8b7238;
    font-weight: 600;
}

/* Actions header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Menu utilisateur */
.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a961, #8b7238);
    color: #fff;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    transition: transform 0.25s ease;
    border: 2px solid #e6c988;
    cursor: pointer;
}

.user-menu-trigger:hover { transform: scale(1.05); }

.user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-fallback { font-size: 16px; }

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(26, 26, 62, 0.15);
    border: 1px solid rgba(26, 26, 62, 0.1);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 100;
}

.user-menu.open .user-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(26, 26, 62, 0.1);
    margin-bottom: 0.5rem;
}

.user-menu-header strong {
    display: block;
    font-family: 'Cinzel', serif;
    color: #1a1a3e;
    font-size: 0.875rem;
}

.user-menu-header span {
    display: block;
    font-size: 0.75rem;
    color: #6b6456;
    margin-top: 2px;
}

.user-menu-dropdown a {
    display: block;
    padding: 10px 16px;
    font-size: 0.875rem;
    color: #2c2416;
    border-radius: 8px;
    transition: all 0.15s ease;
    text-decoration: none;
}

.user-menu-dropdown a:hover {
    background: #f8f5ee;
    color: #1a1a3e;
}

.user-menu-dropdown hr {
    border: none;
    border-top: 1px solid rgba(26, 26, 62, 0.1);
    margin: 0.5rem 0;
}

/* Burger */
.burger {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 8px;
    transition: background 0.15s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.burger:hover { background: rgba(26, 26, 62, 0.05); }

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1a1a3e;
    border-radius: 2px;
    transition: all 0.25s ease;
}

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

/* ============================================================
   MOBILE NAV (DRAWER) — Version complète
   ============================================================ */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: min(85vw, 360px);
    background: #ffffff;
    box-shadow: -12px 0 50px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
    visibility: hidden;
}

.mobile-nav.open {
    right: 0;
    visibility: visible;
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 36, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* En-tête du drawer */
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(26, 26, 62, 0.08);
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.06), rgba(201, 169, 97, 0.02));
    flex-shrink: 0;
}

.mobile-nav-header .logo {
    color: #1a1a3e;
    font-size: 1rem;
}

.mobile-nav-close {
    font-size: 26px;
    color: #1a1a3e;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(26, 26, 62, 0.05);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1;
    flex-shrink: 0;
}

.mobile-nav-close:hover {
    background: #1a1a3e;
    color: #e6c988;
    transform: rotate(90deg);
}

/* Liens */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 16px;
    flex: 1;
}

.mobile-nav-links a {
    padding: 16px 18px;
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a3e;
    border-radius: 12px;
    transition: all 0.25s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.mobile-nav-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 60%;
    background: #c9a961;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.mobile-nav-links a:hover {
    background: rgba(201, 169, 97, 0.08);
    color: #1a1a3e;
    padding-left: 24px;
}

.mobile-nav-links a:hover::before,
.mobile-nav-links a.active::before {
    transform: translateY(-50%) scaleY(1);
}

.mobile-nav-links a.active {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.15), rgba(201, 169, 97, 0.05));
    color: #8b7238;
    font-weight: 600;
}

.mobile-nav-links a span {
    font-size: 18px;
    flex-shrink: 0;
}

/* Actions en bas */
.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 16px;
    border-top: 1px solid rgba(26, 26, 62, 0.08);
    background: linear-gradient(180deg, rgba(201, 169, 97, 0.02), rgba(201, 169, 97, 0.05));
    flex-shrink: 0;
}

.mobile-nav-actions .btn {
    padding: 16px 20px;
    font-size: 13px;
    letter-spacing: 1.5px;
}

.mobile-nav-support {
    color: #25D366 !important;
    border-color: rgba(37, 211, 102, 0.3) !important;
}

.mobile-nav-support:hover {
    background: #25D366 !important;
    color: #fff !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: linear-gradient(135deg, #1a1a3e 0%, #0d0d24 100%);
    color: #f5f0e1;
    padding: 4rem 0 1.5rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 15% 30%, rgba(201, 169, 97, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(74, 14, 46, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.site-footer .container {
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand .logo {
    color: #e6c988;
    margin-bottom: 1rem;
}

.footer-brand .logo:hover { color: #e6c988; }

.footer-tagline {
    font-size: 0.875rem;
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    max-width: 340px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 169, 97, 0.15);
    border-radius: 50%;
    color: #e6c988;
    transition: all 0.25s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: #c9a961;
    color: #1a1a3e;
    transform: translateY(-3px);
}

.footer-col h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #e6c988;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col a {
    font-size: 0.875rem;
    color: rgba(245, 240, 225, 0.75);
    transition: color 0.15s ease;
    text-decoration: none;
}

.footer-col a:hover { color: #e6c988; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(201, 169, 97, 0.2);
    font-size: 0.75rem;
    opacity: 0.85;
}

.footer-bottom p { margin: 0; }

.footer-payment-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.payment-badge {
    padding: 4px 12px;
    background: rgba(201, 169, 97, 0.15);
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 50px;
    font-size: 11px;
    color: #e6c988;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
}

.footer-legal {
    display: flex;
    gap: 1rem;
}

.footer-legal a {
    color: rgba(245, 240, 225, 0.7);
    text-decoration: none;
}

.footer-legal a:hover { color: #e6c988; }

/* ============================================================
   BOUTON WHATSAPP FLOTTANT
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 300;
    transition: all 0.25s ease;
    animation: whatsappPulse 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
    color: #fff;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0.15); }
}

/* ============================================================
   PAGE LOADER
   ============================================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #c9a961, #4a0e2e);
    z-index: 9999;
    transition: width 0.25s ease;
}

.page-loader.active { animation: loadBar 1.5s ease-in-out; }

@keyframes loadBar {
    0% { width: 0; }
    40% { width: 70%; }
    100% { width: 100%; }
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 36, 0.6);
    backdrop-filter: blur(6px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.modal-backdrop.active { opacity: 1; visibility: visible; }

.modal {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(26, 26, 62, 0.15);
    max-width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.active .modal { transform: scale(1); }

.modal-sm { width: 100%; max-width: 400px; }
.modal-md { width: 100%; max-width: 560px; }
.modal-lg { width: 100%; max-width: 800px; }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(26, 26, 62, 0.1);
}

.modal-title {
    font-family: 'Cinzel', serif;
    font-size: 1.125rem;
    color: #1a1a3e;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #6b6456;
    border-radius: 8px;
    transition: all 0.15s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.modal-close:hover { background: #f8f5ee; color: #2c2416; }

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(26, 26, 62, 0.1);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.875rem;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb a { color: #6b6456; text-decoration: none; }
.breadcrumb a:hover { color: #8b7238; }
.breadcrumb-sep { color: #999082; margin: 0 0.25rem; }

/* ============================================================
   HELPERS
   ============================================================ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.items-center { align-items: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.hidden { display: none !important; }
.invisible { visibility: hidden; }
.w-full { width: 100%; }
.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }
.rounded-full { border-radius: 50px; }

/* ============================================================
   SECTION GÉNÉRIQUE
   ============================================================ */
.section { padding: 5rem 0; }

.section-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #1a1a3e;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: normal;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.25rem; }
    .title-cursive { font-size: 3rem; }
    
    /* Cache la nav desktop + boutons non essentiels */
    .main-nav { display: none; }
    .header-actions .btn { display: none; }
    .header-actions .btn.btn-primary { display: inline-flex; }
    
    /* Affiche le burger */
    .burger { display: flex; }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .flash-container {
        top: auto;
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 54px;
        height: 54px;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .mobile-nav {
        width: 88vw;
    }
}