/* =====================================================
   VARIABLES GLOBALES
===================================================== */
:root {
    --notaire-blue: #0A2342;
    --notaire-gold: #B8860B;
    --notaire-gold-light: #D4AF37;
    --notaire-light: #F5F5F5;
    --notaire-dark: #1A1A1A;
    --accent-blue: #2C5282;
}

/* =====================================================
   BASE
===================================================== */
body {
    font-family: 'Lato', sans-serif;
    color: #334155;
    overflow-x: hidden;
    background-color: var(--notaire-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* =====================================================
   ANIMATIONS
===================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes shine {
    to { background-position: 200% center; }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* =====================================================
   TEXTES & EFFETS
===================================================== */
.gold-gradient-text {
    background: linear-gradient(
        135deg,
        var(--notaire-gold),
        var(--notaire-gold-light),
        #FFD700
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

/* =====================================================
   NAVIGATION
===================================================== */
.nav-glass {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
}

.nav-scrolled {
    background: rgba(10, 35, 66, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--notaire-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* =====================================================
   HERO / CANVAS
===================================================== */
#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
}

/* =====================================================
   GLASSMORPHISM
===================================================== */
.glass-panel {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

/* =====================================================
   BOUTONS
===================================================== */
.btn-primary {
    background: linear-gradient(
        135deg,
        var(--notaire-gold),
        var(--notaire-gold-light)
    );
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(184,134,11,0.3);
}

.btn-gold {
    position: relative;
    overflow: hidden;
}

.btn-gold::after {
    content: '';
    position: absolute;
    inset: 0;
    left: -100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.25),
        transparent
    );
    transition: 0.5s;
}

.btn-gold:hover::after {
    left: 100%;
}

/* =====================================================
   CARTES & SERVICES
===================================================== */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* =====================================================
   IMAGES
===================================================== */
.image-hover {
    transition: transform 0.6s ease;
}

.image-hover:hover {
    transform: scale(1.03);
}

.image-overlay {
    position: absolute;
    inset: auto 0 0 0;
    height: 50%;
    background: linear-gradient(
        to top,
        rgba(10,35,66,0.8),
        transparent
    );
}

/* =====================================================
   FAQ
===================================================== */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--notaire-gold);
    box-shadow: 0 4px 12px rgba(184,134,11,0.1);
}

.faq-answer {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

/* =====================================================
   FORMULAIRES
===================================================== */
.form-input:focus {
    border-color: var(--notaire-gold);
    box-shadow: 0 0 0 3px rgba(184,134,11,0.1);
}

/* =====================================================
   LAYOUT
===================================================== */
.section-padding {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }
}

/* =====================================================
   FOOTER
===================================================== */
.footer-link {
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

/* =====================================================
   SCROLLBAR
===================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        var(--notaire-gold),
        var(--notaire-gold-light)
    );
    border-radius: 4px;
}

/* =====================================================
   PATTERN BACKGROUND
===================================================== */
.pattern-bg {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23B8860B' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM36 4V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
