/* ===== ALLO EPAVISTE 47 — Styles partagés ===== */
:root {
    --yellow: #FFD600;
    --yellow-light: #FFF176;
    --yellow-bg: #FFF9C4;
    --red: #D32F2F;
    --red-dark: #B71C1C;
    --black: #1A1A1A;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray: #9E9E9E;
    --green: #43A047;
    --shadow: 0 4px 24px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'DM Sans', sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
}

/* ===== NAV ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--black); padding: 0 2rem;
    transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.nav-logo {
    display: flex; align-items: center; gap: 0.7rem;
    text-decoration: none;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links {
    display: flex; gap: 1.6rem; list-style: none; align-items: center;
}
.nav-links a {
    color: var(--white); text-decoration: none;
    font-size: 0.86rem; font-weight: 500;
    transition: color 0.2s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--yellow); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--yellow); transition: width 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-phones {
    display: flex; gap: 0.5rem;
}
.nav-cta {
    background: var(--red) !important; color: var(--white) !important;
    padding: 0.45rem 0.8rem; border-radius: 6px;
    font-weight: 700 !important; font-size: 0.78rem !important;
    transition: background 0.2s, transform 0.2s !important;
    white-space: nowrap;
}
.nav-cta:hover { background: var(--red-dark) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.burger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; background: none; border: none; padding: 4px;
}
.burger span {
    width: 26px; height: 3px; background: var(--white);
    border-radius: 2px; transition: all 0.3s;
}
.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); }

/* ===== SECTIONS ===== */
.section { padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
    display: inline-block; background: var(--yellow); color: var(--black);
    padding: 0.3rem 1rem; border-radius: 50px;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1rem;
}
.section-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.15;
}
.section-subtitle {
    margin-top: 0.8rem; font-size: 1.05rem; color: var(--gray);
    max-width: 600px; margin-left: auto; margin-right: auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 1rem 2rem; border-radius: 8px;
    font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 700;
    text-decoration: none; transition: all 0.25s; cursor: pointer; border: none;
}
.btn-primary {
    background: var(--red); color: var(--white);
    box-shadow: 0 4px 16px rgba(211,47,47,0.35);
}
.btn-primary:hover {
    background: var(--red-dark); transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(211,47,47,0.45);
}
.btn-secondary { background: var(--black); color: var(--yellow); }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-yellow:hover { background: var(--yellow-light); transform: translateY(-2px); }
.btn .icon { font-size: 1.2rem; }

/* ===== CTA PHONE BANNER ===== */
.cta-phone { background: var(--red); padding: 3rem 2rem; text-align: center; }
.cta-phone-inner { max-width: 800px; margin: 0 auto; }
.cta-phone h2 {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--white); margin-bottom: 0.5rem;
}
.cta-phone p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }
.cta-phone-buttons {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}
.cta-phone-buttons .btn { font-size: 1.05rem; }
.cta-phone-buttons .btn span.loc {
    font-size: 0.75rem; opacity: 0.75; display: block; font-weight: 500;
}

/* ===== FOOTER ===== */
.footer { background: var(--black); color: rgba(255,255,255,0.5); padding: 2.5rem 2rem; }
.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
    font-family: 'Archivo Black', sans-serif;
    color: var(--yellow); font-size: 1rem;
}
.footer-logo span { color: rgba(255,255,255,0.5); }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a {
    color: rgba(255,255,255,0.5); text-decoration: none;
    font-size: 0.85rem; transition: color 0.2s;
}
.footer-links a:hover { color: var(--yellow); }
.footer-copy { font-size: 0.8rem; }

/* ===== CARDS ===== */
.card {
    background: var(--white); border-radius: 16px;
    padding: 2rem; box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: var(--yellow);
    transform: scaleX(0); transition: transform 0.3s;
}
.card:hover::before { transform: scaleX(1); }
.card-icon {
    width: 56px; height: 56px; background: var(--yellow);
    border-radius: 12px; display: flex; align-items: center;
    justify-content: center; font-size: 1.6rem; margin-bottom: 1.2rem;
}
.card h3 { font-family: 'Archivo Black', sans-serif; font-size: 1.15rem; margin-bottom: 0.6rem; }
.card p { color: rgba(26,26,26,0.65); font-size: 0.95rem; }

/* ===== ANIMATIONS ===== */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
.fade-in {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 72px; left: 0; right: 0;
        background: var(--black); flex-direction: column;
        padding: 1.5rem 2rem 2rem; gap: 1rem;
        transform: translateY(-120%); transition: transform 0.35s ease;
        box-shadow: var(--shadow-lg);
    }
    .nav-links.open { transform: translateY(0); }
    .burger { display: flex; }
    .nav-phones { flex-direction: column; gap: 0.5rem; }
    .section { padding: 3.5rem 1.2rem; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
    .cta-phone-buttons { flex-direction: column; align-items: center; }
}
