/*
 * DJ Innovations — V2 New Sections Styles
 * Toutes les nouvelles sections ajoutées dans la V2
 */

/* ─── MOBILE NAV (Hamburger) ─── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    transition: 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

@media (max-width: 900px) {
    .hamburger { display: flex; }

    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        top: 65px;
        background: rgba(10,10,10,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        z-index: 999;
        padding: 40px 20px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links .nav-link {
        font-size: 1.3rem;
        font-weight: 600;
    }

    .nav-links .btn {
        width: 100%;
        max-width: 260px;
        text-align: center;
        justify-content: center;
    }
}

/* ─── HOW IT WORKS ─── */
.how-it-works {
    padding: 120px 0;
    position: relative;
    z-index: 1;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.hiw-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin-top: 60px;
}

.hiw-step {
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    position: relative;
    transition: 0.4s ease;
}

.hiw-step:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(186, 117, 23, 0.12);
}

.hiw-number {
    font-family: 'DM Serif Display', serif;
    font-size: 4rem;
    color: rgba(186, 117, 23, 0.12);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
    user-select: none;
}

.hiw-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.hiw-step h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.hiw-step p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

.hiw-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    flex-shrink: 0;
    opacity: 0.4;
    position: relative;
}

.hiw-connector::after {
    content: '→';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary);
    font-size: 1.2rem;
    background: var(--card-bg);
    padding: 0 8px;
}

@media (max-width: 768px) {
    .hiw-connector { display: none; }
    .hiw-steps { gap: 16px; }
    .hiw-step { max-width: 100%; width: 100%; }
}

/* ─── STATS GRID ─── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    background: var(--surface-2);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 30px 20px; }
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-family: 'DM Serif Display', serif;
    font-size: 3rem;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ─── TEMOIGNAGES ─── */
.temoignages-section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-color);
}

.temoignages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 0;
}

@media (max-width: 900px) {
    .temoignages-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
    .temoignages-grid { grid-template-columns: 1fr; }
}

.temo-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: relative;
    transition: 0.4s ease;
    overflow: hidden;
}

.temo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(186,117,23,0.05), transparent 60%);
    pointer-events: none;
}

.temo-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.temo-badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    letter-spacing: 0.04em;
}

.temo-quote {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 24px;
    font-style: italic;
}

.temo-quote::before { content: '"'; color: var(--primary); font-size: 1.5rem; line-height: 0; vertical-align: -0.4em; margin-right: 2px; }
.temo-quote::after  { content: '"'; color: var(--primary); font-size: 1.5rem; line-height: 0; vertical-align: -0.4em; margin-left: 2px; }

.temo-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.temo-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-gold);
}

.temo-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    border: 2px solid var(--border-gold);
}

.temo-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.temo-service {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
}

.temo-stars {
    color: var(--accent);
    font-size: 0.85rem;
    margin-top: 2px;
}

.temo-loader, .faq-loader {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ─── PORTFOLIO CAMPAGNES ─── */
.portfolio-section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1000px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .portfolio-grid { grid-template-columns: 1fr; } }

.portfolio-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    position: relative;
    transition: 0.4s ease;
    overflow: hidden;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.portfolio-platform-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    color: white;
}

.portfolio-sector {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.portfolio-budget {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.portfolio-metric {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.portfolio-metric-value {
    font-family: 'DM Serif Display', serif;
    font-size: 2.2rem;
    color: var(--accent);
    line-height: 1;
}

.portfolio-metric-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.portfolio-result {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.portfolio-periode {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: var(--card-bg);
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

/* ─── ENTREPRISES SECTION ─── */
.entreprises-section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-color);
}

.entreprises-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

@media (max-width: 900px) {
    .entreprises-inner { grid-template-columns: 1fr; gap: 50px; }
}

.ent-content h2 {
    font-size: 2.8rem;
    margin: 16px 0 20px;
    line-height: 1.15;
}

.ent-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 32px;
}

.ent-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ent-list li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.ent-list li:last-child { border-bottom: none; }

.ent-form-wrap {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-xl);
    padding: 44px 40px;
    position: relative;
    overflow: hidden;
}

.ent-form-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.ent-form-wrap h3 {
    font-size: 1.6rem;
    margin-bottom: 28px;
    color: var(--text-primary);
}

.devis-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ─── FAQ SECTION ─── */
.faq-section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: 0.3s ease;
    background: var(--bg-color);
}

.faq-item.open {
    border-color: var(--border-gold);
    box-shadow: 0 8px 30px rgba(186,117,23,0.08);
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 26px;
    cursor: pointer;
    user-select: none;
    gap: 16px;
    transition: background 0.2s;
}

.faq-q:hover { background: rgba(186,117,23,0.04); }

.faq-q-text {
    font-weight: 600;
    font-size: 0.97rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.faq-chevron {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(186,117,23,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: 0.3s;
    color: var(--primary);
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    background: var(--primary);
    color: white;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, padding 0.3s ease;
    padding: 0 26px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.75;
}

.faq-item.open .faq-a {
    max-height: 300px;
    padding: 0 26px 22px;
}

/* ─── NOUVEAU FOOTER ─── */
.site-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding-top: 70px;
    position: relative;
    z-index: 1;
}

.footer-grid-v2 {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 60px;
}

@media (max-width: 1000px) {
    .footer-grid-v2 { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 600px) {
    .footer-grid-v2 { grid-template-columns: 1fr; gap: 32px; }
}

.footer-col-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 20px;
}

.footer-brand-col .footer-logo {
    height: 36px;
    margin-bottom: 16px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: 0.25s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.bottom-footer {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
}

.bottom-footer p {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

/* Socials in footer */
.footer-socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-socials .social-btn,
.footer-socials .social-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.3s;
}

.footer-socials .social-btn:hover,
.footer-socials .social-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* ─── WHATSAPP FLOTTANT ─── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(0,0,0,0.3);
    transition: 0.3s ease;
    text-decoration: none;
    animation: waPulse 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 36px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0,0,0,0.3);
    animation: none;
}

@keyframes waPulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.3); }
    50% { box-shadow: 0 6px 24px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0); }
}

.whatsapp-tooltip {
    position: absolute;
    right: 72px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10,10,10,0.9);
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    border: 1px solid var(--border-color);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

/* ─── BACK TO TOP ─── */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 46px;
    height: 46px;
    background: rgba(17,17,17,0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    color: var(--primary);
    transition: 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary);
}

/* ─── TOAST NOTIFICATIONS ─── */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
}

.toast {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(20px);
}

.toast.hiding { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0);   opacity: 1; }
    to   { transform: translateX(120%); opacity: 0; }
}

.toast-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.toast-content { flex: 1; }
.toast-title { font-weight: 700; font-size: 0.88rem; color: var(--text-primary); margin-bottom: 3px; }
.toast-msg { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.4; }

.toast.success { border-left: 3px solid #22c55e; }
.toast.error   { border-left: 3px solid #ef4444; }
.toast.info    { border-left: 3px solid var(--primary); }

/* ─── FORM GROUP (used in devis form) ─── */
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 12px 16px;
    font-size: 0.92rem;
    font-family: 'DM Sans', sans-serif;
    transition: 0.25s;
    outline: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(186,117,23,0.12);
}

.dash-select {
    width: 100%;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 12px 16px;
    font-size: 0.92rem;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
}

/* ─── HEADER SCROLLED ─── */
header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

/* ─── ACTIVE NAV LINK ─── */
.nav-link.active-nav {
    color: var(--accent) !important;
}

.nav-link.active-nav::after {
    width: 100%;
}

/* ─── BOUNCE IN (devis success) ─── */
@keyframes bounceIn {
    0%   { transform: scale(0.3); opacity: 0; }
    50%  { transform: scale(1.15); opacity: 1; }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* ─── PAYMENT LOADING STATE ─── */
#pay-button.loading {
    opacity: 0.7;
    pointer-events: none;
    cursor: not-allowed;
}

#pay-button.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ─── RESPONSIVE TWEAKS ─── */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top {
        right: 20px;
        bottom: 90px;
    }

    .ent-form-wrap {
        padding: 30px 24px;
    }

    .faq-q { padding: 18px 20px; }
    .faq-item.open .faq-a { padding: 0 20px 18px; }
}

/* ─── NEW BADGE ANIMATION ─── */
.badge-new-anim {
    background: var(--accent);
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
    animation: badgePulse 2s infinite;
    display: inline-block;
}

@keyframes badgePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(186, 117, 23, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(186, 117, 23, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(186, 117, 23, 0); }
}
