/* =========================================================
   KUURASYS — FEUILLE DE STYLE COMMUNE
   Thème clair/sombre alterné, inspiré de kreezus.com.
   Chargée par les 5 pages. Chaque page garde un <style> propre
   pour son contenu spécifique (hero, blocs de contenu uniques).
   ========================================================= */

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --cream: #FAFAF7;
    --cream-alt: #F5F0E8;
    --deep-ocean: #042838;
    --deep-ocean-card: #0d3a4f;
    --text-dark: #1A1A1A;
    --text-dark-secondary: #5b5a52;
    --text-dark-muted: #8a887d;
    --text-light: #FAFAF7;
    --text-light-secondary: rgba(250, 250, 247, 0.72);
    --text-light-muted: rgba(250, 250, 247, 0.5);
    --border-light: #E5E0D8;
    --border-dark: rgba(250, 250, 247, 0.14);
    --gold: #c8a45c;
    --gold-light: #d4b87a;
    --gold-gradient: linear-gradient(135deg, #EEDEBC 0%, #C9A885 50%, #9A7A5F 100%);
    --gold-gradient-hover: linear-gradient(135deg, #fff5d4 0%, #EEDEBC 50%, #C9A885 100%);
    --green: #22c55e;
    --green-bg: rgba(34, 197, 94, 0.12);
    --red: #ef4444;
    --radius: 12px;
    --radius-lg: 16px;
    --max-width: 1140px;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: #9a7a5f; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }

h1, h2, h3 { font-family: var(--font-display); }

/* ===== ANIMATIONS KEYFRAMES ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 164, 92, 0.35); } 50% { box-shadow: 0 0 20px 4px rgba(200, 164, 92, 0.18); } }
@keyframes gradientMove { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.5); } }
@keyframes checkmark { from { transform: scale(0) rotate(-45deg); opacity: 0; } to { transform: scale(1) rotate(0deg); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== SCROLL REVEAL BASE ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.15s; }
.stagger > *:nth-child(4) { transition-delay: 0.2s; }
.stagger > *:nth-child(5) { transition-delay: 0.25s; }

/* ===== HEADER / NAV (sombre, fixe) ===== */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(4, 40, 56, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-dark);
    transition: box-shadow 0.3s, background 0.3s;
}

.nav-wrapper { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 0; }

.logo { display: flex; align-items: center; gap: 0.6rem; }
.logo img { width: 40px; height: 40px; border-radius: 6px; }
.logo span { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--text-light); letter-spacing: 0.3px; }

.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a { color: var(--text-light-secondary); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }

.nav-cta {
    background: var(--gold-gradient);
    color: var(--deep-ocean) !important;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.85rem;
    animation: pulseGlow 3s ease-in-out infinite;
}
.nav-cta:hover { background: var(--gold-gradient-hover); color: var(--deep-ocean) !important; animation: none; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text-light); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--deep-ocean);
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transition: left 0.5s;
}
.btn-primary:hover::after { left: 100%; }
.btn-primary:hover {
    background: var(--gold-gradient-hover);
    color: var(--deep-ocean);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 164, 92, 0.35);
}

.btn-outline {
    border: 1.5px solid var(--border-light);
    color: var(--text-dark);
    background: transparent;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.82rem; }

/* Boutons sur fond sombre */
.section-dark .btn-outline,
.cta-section .btn-outline,
.page-hero .btn-outline,
.hero .btn-outline {
    border-color: rgba(250, 250, 247, 0.3);
    color: var(--text-light);
}
.section-dark .btn-outline:hover,
.cta-section .btn-outline:hover,
.page-hero .btn-outline:hover,
.hero .btn-outline:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
}

/* ===== SECTIONS COMMON ===== */
section { padding: 5rem 0; }

.section-dark { background: var(--deep-ocean); color: var(--text-light); }
.section-alt { background: var(--cream-alt); }

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text-dark);
}
.section-dark .section-title { color: var(--text-light); }

.section-subtitle {
    color: var(--text-dark-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin-bottom: 3rem;
}
.section-dark .section-subtitle { color: var(--text-light-secondary); }

.section-center { text-align: center; }
.section-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ===== PAGE HERO (services / produit / a-propos / contact) — fond sombre ===== */
.page-hero {
    padding: 9rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(200, 164, 92, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(200, 164, 92, 0.06) 0%, transparent 50%),
        var(--deep-ocean);
    color: var(--text-light);
}
.page-hero::before {
    content: '';
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 40% 30%, rgba(200, 164, 92, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 60% 70%, rgba(200, 164, 92, 0.05) 0%, transparent 40%);
    animation: gradientMove 12s ease-in-out infinite;
    background-size: 200% 200%;
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5vw, 3.1rem);
    font-weight: 700; line-height: 1.2; margin-bottom: 1rem;
    color: var(--text-light);
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.page-hero h1 .highlight {
    background: linear-gradient(90deg, var(--gold), var(--gold-light), #fff5d4, var(--gold));
    background-size: 300% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    animation: shimmer 4s linear infinite;
}
.page-hero p {
    font-size: 1.1rem; color: var(--text-light-secondary); max-width: 600px; margin: 0 auto;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.breadcrumb {
    font-size: 0.82rem; color: var(--text-light-muted); margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.breadcrumb a { color: var(--text-light-muted); }
.breadcrumb a:hover { color: var(--gold-light); }

/* ===== CTA SECTION (commune, fond sombre) ===== */
.cta-section {
    text-align: center;
    background: radial-gradient(ellipse at 50% 50%, rgba(200, 164, 92, 0.12) 0%, transparent 60%), var(--deep-ocean);
    color: var(--text-light);
}
.cta-section .section-title { max-width: 500px; margin: 0 auto 1.5rem; color: var(--text-light); }
.cta-section p { color: var(--text-light-secondary); margin-bottom: 2rem; }

.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== CARTES (composant réutilisable, fond clair) ===== */
.card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: border-color 0.3s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
}
.card:hover {
    border-color: rgba(200, 164, 92, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(4, 40, 56, 0.1);
}

/* ===== TAG CHIP (composant réutilisable) ===== */
.service-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }

.service-tag {
    display: inline-block;
    font-size: 0.75rem; font-weight: 600;
    padding: 0.3rem 0.8rem; border-radius: 20px;
    border: 1px solid var(--border-light);
    color: var(--text-dark-secondary);
    transition: border-color 0.3s, color 0.3s;
}
.service-tag:hover { border-color: var(--gold); color: #9a7a5f; }

/* ===== STACK TECHNIQUE (composant réutilisable) ===== */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    background: #ffffff;
    color: var(--text-dark-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: border-color 0.3s, color 0.3s, transform 0.3s;
}

.tech-badge:hover {
    border-color: var(--gold);
    color: #9a7a5f;
    transform: translateY(-3px);
}

/* ===== ZONE D'ACTION (composant réutilisable) ===== */
.zone-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.zone-card, .zone-reach {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: border-color 0.3s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.zone-card:hover, .zone-reach:hover { border-color: rgba(200, 164, 92, 0.4); transform: translateY(-4px); }

.zone-flag { font-size: 2.2rem; margin-bottom: 0.6rem; }
.zone-card h3, .zone-reach h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.3rem; color: var(--text-dark); }

.zone-badge {
    display: inline-block;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: 0.6rem;
}

.zone-card p, .zone-reach p { color: var(--text-dark-secondary); font-size: 0.88rem; line-height: 1.6; }
.zone-reach p { margin-bottom: 1.2rem; }

.zone-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.zone-tag-pill {
    background: var(--deep-ocean);
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .zone-layout { grid-template-columns: 1fr; }
}

/* ===== FAQ ACCORDÉON (composant réutilisable) ===== */
.faq-grid { max-width: 700px; margin: 3rem auto 0; }

.faq-item { border-bottom: 1px solid var(--border-light); }

.faq-question {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
    padding: 1.2rem 0;
    background: none; border: none;
    color: var(--text-dark);
    font-family: var(--font-body); font-size: 0.95rem; font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
}
.faq-question:hover { color: var(--gold); }

.faq-arrow { flex-shrink: 0; font-size: 0.8rem; color: var(--text-dark-muted); transition: transform 0.3s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--gold); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.3s;
}
.faq-item.open .faq-answer { max-height: 260px; padding-bottom: 1.2rem; }
.faq-answer p { color: var(--text-dark-secondary); font-size: 0.9rem; line-height: 1.7; }

/* ===== FOOTER (sombre) ===== */
.site-footer { background: var(--deep-ocean); color: var(--text-light); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand p { color: var(--text-light-secondary); font-size: 0.9rem; margin-top: 0.8rem; max-width: 300px; }
.site-footer .logo span { color: var(--text-light); }
.footer-heading { font-size: 0.8rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-light); margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: var(--text-light-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
    font-size: 0.82rem; color: var(--text-light-muted);
}

.flag-bf { width: 18px; height: auto; vertical-align: -3px; border-radius: 2px; margin-left: 2px; }

/* ===== RESPONSIVE (commun) ===== */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--deep-ocean);
        border-bottom: 1px solid var(--border-dark);
        flex-direction: column; padding: 1.5rem; gap: 1rem;
    }
    .nav-links.open { display: flex; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-brand .logo { justify-content: center; }
    .footer-brand p { margin-left: auto; margin-right: auto; }
    .footer-links { align-items: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
