/* ============================================================
   FABCO DESIGN SYSTEM v2 — Variables, Animations & Composants
   Chargé une seule fois depuis layouts/app.blade.php
   ============================================================ */

/* ----------------------------------------------------------
   1. VARIABLES GLOBALES
   ---------------------------------------------------------- */
:root {
    /* Couleurs */
    --fabco-gold:          #cda274;
    --fabco-gold-hover:    #b58b5d;
    --fabco-gold-light:    rgba(205, 162, 116, 0.15);
    --fabco-gold-glow:     rgba(205, 162, 116, 0.35);
    --fabco-dark:          #0a0a0a;
    --fabco-dark-soft:     #141414;
    --fabco-light:         #ffffff;
    --fabco-gray-bg:       #f7f6f4;
    --fabco-text-main:     #1e1e1e;
    --fabco-text-muted:    #6b6b6b;
    --fabco-error:         #e53935;
    --fabco-success:       #2e7d32;

    /* Transitions */
    --transition-smooth:   all 0.55s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-fast:     all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce:   all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Shadows */
    --shadow-gold-sm:      0 8px 25px rgba(205, 162, 116, 0.25);
    --shadow-gold-md:      0 15px 40px rgba(205, 162, 116, 0.35);
    --shadow-gold-lg:      0 25px 60px rgba(205, 162, 116, 0.45);
    --shadow-card:         0 10px 35px rgba(0, 0, 0, 0.07);
    --shadow-card-hover:   0 25px 65px rgba(0, 0, 0, 0.13);
    --shadow-dark:         0 20px 50px rgba(0, 0, 0, 0.35);
}

/* ----------------------------------------------------------
   2. BASE — Sélection, Scrollbar, Focus
   ---------------------------------------------------------- */
::selection {
    background: rgba(205, 162, 116, 0.25);
    color: var(--fabco-text-main);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--fabco-dark); }
::-webkit-scrollbar-thumb {
    background: var(--fabco-gold);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--fabco-gold-hover); }

/* ----------------------------------------------------------
   3. TYPOGRAPHIE
   ---------------------------------------------------------- */
.font-serif {
    font-family: 'Playfair Display', 'Didot', 'Bodoni MT', 'Times New Roman', serif;
}

.lux-title {
    font-family: 'Playfair Display', serif;
    font-weight: 400 !important;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    line-height: 1.15;
    font-size: clamp(28px, 4vw, 46px) !important;
    color: var(--fabco-text-main);
}

.lux-subtitle {
    font-size: clamp(9px, 1.5vw, 11px);
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--fabco-gold);
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
}
/* Ligne décorative animée sous le lux-subtitle */
.lux-subtitle::after {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 0;
    height: 1px;
    background: var(--fabco-gold);
    margin-left: 12px;
    transition: width 0.6s ease 0.2s;
    opacity: 0.6;
}
.wow.animated .lux-subtitle::after,
section:hover .lux-subtitle::after,
.lux-subtitle.line-visible::after {
    width: 40px;
}

/* ----------------------------------------------------------
   4. UTILITAIRES
   ---------------------------------------------------------- */
.bg-dark-lux {
    background-color: var(--fabco-dark);
    color: var(--fabco-light);
}
.bg-dark-lux .lux-title { color: var(--fabco-light); }
.bg-dark-lux p { color: #9a9a9a; }
.section-padding { padding: clamp(70px, 9vw, 110px) 0; }

/* Séparateur doré décoratif */
.gold-sep {
    display: block;
    width: 45px; height: 2px;
    background: linear-gradient(90deg, var(--fabco-gold), transparent);
    margin: 18px 0;
}
.gold-sep.centered { margin: 18px auto; }

/* ----------------------------------------------------------
   5. MENU AU SCROLL
   ---------------------------------------------------------- */
header.autoshow.smaller,
header.smaller,
header.clone,
.sticky-header {
    background-color: rgba(8, 8, 8, 0.97) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6) !important;
    border-bottom: 1px solid rgba(205, 162, 116, 0.08) !important;
    transition: all 0.35s ease !important;
}

/* ----------------------------------------------------------
   6. BOUTONS — avec shimmer au survol
   ---------------------------------------------------------- */
.btn-lux-solid,
.btn-lux-outline,
.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 15px 32px;
    transition: var(--transition-smooth);
    border-radius: 6px;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Flèche interne */
.btn-lux-solid i,
.btn-lux-outline i,
.btn-glass i {
    margin-left: 8px;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-lux-solid:hover i,
.btn-lux-outline:hover i,
.btn-glass:hover i { transform: translateX(6px); }

/* Effet shimmer sur les boutons */
.btn-lux-solid::before,
.btn-lux-outline::before {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
}
.btn-lux-solid:hover::before,
.btn-lux-outline:hover::before { left: 130%; }

/* Bouton solide (or) */
.btn-lux-solid {
    background: linear-gradient(135deg, var(--fabco-gold) 0%, var(--fabco-gold-hover) 100%);
    color: var(--fabco-light) !important;
    border: none;
    box-shadow: 0 8px 20px rgba(205, 162, 116, 0.28);
}
.btn-lux-solid:hover {
    background: linear-gradient(135deg, var(--fabco-gold-hover) 0%, #a07845 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold-md);
    color: var(--fabco-light) !important;
}

/* Bouton contour (or) */
.btn-lux-outline {
    background: transparent;
    border: 1.5px solid var(--fabco-gold);
    color: var(--fabco-gold) !important;
}
.btn-lux-outline:hover {
    background: linear-gradient(135deg, var(--fabco-gold), var(--fabco-gold-hover));
    color: var(--fabco-light) !important;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold-sm);
}

/* Bouton glass (hero) */
.btn-glass {
    background: rgba(255, 255, 255, 0.09);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    color: var(--fabco-light) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    color: var(--fabco-light) !important;
}

/* ----------------------------------------------------------
   7. HEADER DE PAGE INTERNE
   ---------------------------------------------------------- */
#subheader-lux {
    padding: clamp(140px, 15vw, 220px) 0 clamp(60px, 10vw, 100px);
    background-color: var(--fabco-dark);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    position: relative;
    overflow: hidden;
}
#subheader-lux::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--fabco-gold), transparent);
    opacity: 0.4;
}
.lux-page-title {
    font-size: clamp(35px, 5vw, 65px);
    color: var(--fabco-light);
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* ----------------------------------------------------------
   8. FORMULAIRES
   ---------------------------------------------------------- */
.form-lux-input {
    background: #f5f4f2 !important;
    border: 1.5px solid #e3e0db !important;
    color: var(--fabco-text-main) !important;
    padding: 16px 22px !important;
    border-radius: 10px !important;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s ease;
    margin-bottom: 22px;
    outline: none;
}
.form-lux-input::placeholder { color: #b0aca5 !important; font-weight: 300; }
.form-lux-input:focus {
    border-color: var(--fabco-gold) !important;
    box-shadow: 0 0 0 4px rgba(205, 162, 116, 0.08) !important;
    background: var(--fabco-light) !important;
}
.form-lux-input.is-invalid {
    border-color: var(--fabco-error) !important;
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.08) !important;
    background: #fffbfb !important;
}
.form-lux-label {
    color: var(--fabco-text-main);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: block;
    font-weight: 700;
}
.input-error-msg {
    color: var(--fabco-error);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -18px;
    margin-bottom: 18px;
    display: none;
    text-align: right;
}

/* Radio grid de sélection service */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}
.radio-lux { display: none; }
.radio-lux-label {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 14px 10px;
    border: 1.5px solid #e3e0db;
    background: var(--fabco-light);
    border-radius: 10px;
    cursor: pointer;
    font-size: 10px; letter-spacing: 1.5px;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    color: var(--fabco-text-muted);
    text-align: center; height: 100%; font-weight: 700;
}
.radio-lux:checked + .radio-lux-label {
    border-color: var(--fabco-gold);
    background: linear-gradient(135deg, var(--fabco-gold), var(--fabco-gold-hover));
    color: var(--fabco-light);
    box-shadow: var(--shadow-gold-sm);
    transform: translateY(-2px);
}
.radio-lux-label:hover {
    border-color: var(--fabco-gold);
    color: var(--fabco-gold);
    transform: translateY(-2px);
}

/* ----------------------------------------------------------
   9. MODAL LUXE
   ---------------------------------------------------------- */
.lux-modal-overlay {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.45s ease;
}
.lux-modal-overlay.active { opacity: 1; visibility: visible; }
.lux-modal-box {
    background: var(--fabco-light);
    width: 90%; max-width: 460px;
    border-radius: 20px;
    padding: 50px 38px;
    text-align: center;
    box-shadow: var(--shadow-dark);
    transform: translateY(40px) scale(0.94);
    transition: all 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border-top: 3px solid var(--fabco-gold);
}
.lux-modal-overlay.active .lux-modal-box { transform: translateY(0) scale(1); }
.lux-modal-close {
    position: absolute; top: 18px; right: 22px;
    background: transparent; border: none;
    font-size: 28px; font-weight: 300;
    color: #bbb; cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    line-height: 1;
}
.lux-modal-close:hover { color: var(--fabco-dark); transform: rotate(90deg); }
.lux-modal-icon { font-size: 60px; margin-bottom: 22px; display: inline-block; }

/* ----------------------------------------------------------
   10. BOUTONS FLOTTANTS (WhatsApp + CTA)
   ---------------------------------------------------------- */
.floating-actions {
    position: fixed;
    bottom: clamp(20px, 4vw, 28px);
    right: clamp(16px, 4vw, 28px);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.sticky-cta {
    background: linear-gradient(135deg, var(--fabco-gold) 0%, var(--fabco-gold-hover) 100%);
    color: var(--fabco-light) !important;
    padding: 0 22px;
    height: 52px;
    border-radius: 26px;
    box-shadow: var(--shadow-gold-sm);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition-bounce);
    text-decoration: none !important;
    border: 1.5px solid rgba(255,255,255,0.25);
    white-space: nowrap;
    overflow: hidden;
}
.sticky-cta::before {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
}
.sticky-cta:hover::before { left: 130%; }
.sticky-cta span {
    margin-left: 9px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px;
}
.sticky-cta:hover {
    transform: scale(1.04) translateY(-3px);
    box-shadow: var(--shadow-gold-md);
}

/* WhatsApp avec pulse */
.whatsapp-btn {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: #25D366;
    color: #fff !important;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none !important;
    transition: var(--transition-bounce);
    font-size: 22px;
    flex-shrink: 0;
    animation: wa-pulse 2.8s infinite;
}
.whatsapp-btn:hover {
    transform: scale(1.12) translateY(-3px);
    color: #fff !important;
    animation: none;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

@keyframes wa-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    60%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 400px) {
    .sticky-cta span { display: none; }
    .sticky-cta { width: 52px; padding: 0; border-radius: 50%; }
}

/* ----------------------------------------------------------
   11. KEYFRAMES GLOBAUX
   ---------------------------------------------------------- */
@keyframes fabco-fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fabco-shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

@keyframes gold-line-grow {
    from { width: 0; opacity: 0; }
    to   { width: 45px; opacity: 1; }
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 6px rgba(205, 162, 116, 0.12), inset 0 0 6px rgba(205, 162, 116, 0.04); }
    50%       { box-shadow: 0 0 28px rgba(205, 162, 116, 0.42), inset 0 0 14px rgba(205, 162, 116, 0.1); }
}

@keyframes scroll-wheel {
    0%   { top: 7px; opacity: 1; }
    50%  { top: 20px; opacity: 0; }
    100% { top: 7px; opacity: 0; }
}

@keyframes faq-reveal {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
