/* ============================================
   CIRQUE ACHILLE ZAVATTA - STYLES GLOBAUX
   ============================================ */


/* === POLICES LOCALES === */
@font-face {
    font-family: 'Cinzel Black';
    src: url('/css/Cinzel-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cinzel Decorative';
    src: url('/css/CinzelDecorative-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alegreya Sans Light';
    src: url('/css/AlegreyaSans-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* === VARIABLES === */
:root {
    /* Couleurs principales */
    --red: #C41E2A;
    --red-dark: #9E1822;
    --red-light: #E8323E;
    --gold: #D4A017;
    --gold-light: #E8B830;
    --gold-dark: #B8880F;
    --purple: #6B1D5E;
    --purple-dark: #4E1545;
    --purple-light: #8A2575;

    /* Neutres */
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --light-gray: #F3F3F3;
    --gray: #888888;
    --dark-gray: #333333;
    --dark: #1A1A1A;

    /* Fonctionnel */
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s ease;

    /* Typographie */
    --font-heading: 'Open Sans', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --font-cinzel: 'Cinzel Black', 'Poppins', serif;
    --font-cinzel-deco: 'Cinzel Decorative', 'Poppins', serif;
    --font-alegreya: 'Alegreya Sans Light', 'Open Sans', sans-serif;
}

/* === BASE === */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    min-height: 100vh;
}

/* === TYPOGRAPHIE === */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; font-family: var(--font-cinzel-deco); }
h3 { font-size: 1.4rem; font-family: var(--font-cinzel-deco); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gold);
    margin: 0.8rem auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* === CONTAINER === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    overflow-x: hidden;
    scroll-margin-top: 30px;
}

/* === BOUTONS === */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition);
    text-align: center;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn-primary:hover {
    background-color: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(196, 30, 42, 0.4);
}

.btn-secondary {
    background-color: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.btn-secondary:hover {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--red);
    transform: translateY(-2px);
}

.btn-outline-red {
    background-color: transparent;
    color: var(--red);
    border-color: var(--red);
}

.btn-outline-red:hover {
    background-color: var(--red);
    color: var(--white);
    transform: translateY(-2px);
}

.btn.btn-nav {
    color: var(--white);
    padding: 8px 22px;
    font-size: 0.9rem;
}

.btn.btn-nav:hover {
    color: var(--white);
}

.btn-nav:hover {
    color: var(--white);
}

/* === TOPBAR === */
.topbar {
    background: linear-gradient(90deg, var(--dark) 0%, var(--red-dark) 15%, var(--red) 50%, var(--red-dark) 85%, var(--dark) 100%);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.875rem;
    z-index: 1001;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar-phones {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.topbar-phone {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-phone a {
    color: var(--white);
    transition: color var(--transition);
}

.topbar-phone a:hover {
    color: var(--gold-light);
}

.topbar-phone .phone-label {
    color: var(--gold-light);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.topbar-phone .phone-separator {
    color: rgba(255, 255, 255, 0.3);
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #25D366;
    border-radius: 50%;
    transition: opacity var(--transition);
}

.whatsapp-link svg {
    fill: var(--white);
    width: 13px;
    height: 13px;
}

.whatsapp-link:hover {
    opacity: 0.8;
}

.topbar-email a {
    color: var(--white);
    font-weight: 700;
    transition: color var(--transition);
}

.topbar-email a:hover {
    color: var(--white);
}

/* === HEADER / NAV === */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-family: var(--font-cinzel);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--red);
    letter-spacing: 0.5px;
}

.logo-text span {
    color: var(--gold);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
    position: relative;
    transition: color var(--transition);
    padding: 5px 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--red);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list .btn-nav::after {
    display: none;
}

.nav-list .btn-nav:hover {
    color: var(--white);
}

/* Burger menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    z-index: 1002;
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--dark);
    border-radius: 3px;
    transition: all var(--transition);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* === FOOTER === */
.footer {
    background: linear-gradient(135deg, var(--dark) 0%, var(--purple-dark) 100%);
    color: var(--white);
    padding: 60px 0 0;
    overflow-x: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--red);
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-contact-item strong {
    color: var(--gold-light);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition);
}

.footer-contact-item a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--gold);
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: var(--gold-light);
}

/* === FAQ ACCORDEON === */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-item:hover {
    border-color: var(--gold);
}

.faq-question {
    width: 100%;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--dark);
    background: var(--white);
    text-align: left;
    transition: all var(--transition);
}

.faq-question:hover {
    color: var(--red);
}

.faq-question .faq-icon {
    font-size: 1.4rem;
    color: var(--gold);
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.active .faq-question {
    color: var(--red);
    background: var(--off-white);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--dark-gray);
    line-height: 1.7;
}

/* === FORMULAIRE === */
.form-group {
    margin-bottom: 20px;
}

/* Honeypot anti-spam : invisible pour les humains, les bots le remplissent */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color var(--transition);
    background: var(--white);
    color: var(--dark);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    opacity: 1;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--red);
}

.form-message {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* === ANIMATIONS SCROLL === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* === WHATSAPP FLOTTANT === */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: var(--white);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablette */
/* Tablette + Mobile nav */
@media (max-width: 992px) {
    .burger {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        gap: 0;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right var(--transition);
        z-index: 1001;
    }

    .nav-list.open {
        right: 0;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        display: block;
        padding: 12px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--light-gray);
    }

    .nav-list a::after {
        display: none;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .nav-overlay.active {
        display: block;
    }

    .topbar-content {
        justify-content: center;
        gap: 8px;
    }

    .topbar-phones {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .topbar-email {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }

    section { padding: 50px 0; scroll-margin-top: 25px; }
}

/* Petit mobile */
@media (max-width: 480px) {
    .logo-text {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 15px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    section { padding: 40px 0; scroll-margin-top: 20px; }
}

@media (max-width: 320px) {
    body { font-size: 14px; }

    .container { padding: 0 12px; }

    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}
