/* ==========================================================================
   STARS EVOLUTION - RESPONSIVE
   ========================================================================== */

/* ---------- TABLET (max-width: 1200px) ---------- */
@media (max-width: 1200px) {
    :root {
        --header-height: 76px;
        --topbar-height: 38px;
        --header-total: 114px;
    }

    .topbar-info .topbar-sep:last-of-type,
    .topbar-info span:last-child { display: none; }

    .topbar-hours { display: none; }

    .nav-menu a { padding: 0 12px; font-size: 0.83rem; }
    
    .container {
        padding: 0 24px;
    }
    
    .section {
        padding: 90px 0;
    }
    
    .section-header {
        margin-bottom: 60px;
    }
    
    .hero {
        height: 640px;
    }
    
    .hero-container {
        max-width: 100%;
    }
    
    .hero-bg img {
        object-position: 65% center;
    }
    
    .hero-bg::after {
        background:
            linear-gradient(90deg, rgba(11, 17, 32, 0.95) 0%, rgba(11, 17, 32, 0.82) 60%, rgba(11, 17, 32, 0.5) 100%),
            linear-gradient(180deg, rgba(11, 17, 32, 0.5) 0%, transparent 40%, rgba(11, 17, 32, 0.6) 100%);
    }
    
    .hero-stats {
        gap: 36px;
    }
    
    .hero-float {
        display: none;
    }
    
    /* Témoignages */
    .testimonials-stage { padding: 0 54px; }
    .t-nav-btn { width: 42px; height: 42px; }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-content .section-header {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-grid::before {
        display: none;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ---------- MOBILE (max-width: 768px) ---------- */
@media (max-width: 768px) {
    :root {
        --header-height: 66px;
        --topbar-height: 0px;
        --header-total: 66px;
    }

    /* La barre de contact disparaît : elle n'apporte rien sur petit écran */
    .topbar { display: none; }
    
    body {
        font-size: 15px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .section {
        padding: 70px 0;
    }
    
    /* Header */
    .header-cta {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 85%;
        height: 100vh;
        background: var(--se-white);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 2px;
        padding: 96px 20px 30px;
        box-shadow: -20px 0 50px rgba(11, 17, 32, 0.2);
        transition: right 0.45s var(--ease-smooth);
        overflow-y: auto;
    }
    
    .nav-menu.active { right: 0; }
    
    .nav-menu a {
        height: auto;
        padding: 14px 16px;
        text-align: left;
        border-radius: 10px;
        font-size: 0.95rem;
        border-bottom: 1px solid var(--se-line);
    }
    
    /* En vertical, le soulignement animé devient un liseré à gauche */
    .nav-menu a::after {
        left: 0;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        width: 3px !important;
        height: 0;
        border-radius: 0 3px 3px 0;
        transition: height 0.3s var(--ease-smooth);
    }
    
    .nav-menu a:hover::after,
    .nav-menu a.active::after { height: 60%; }
    
    .nav-menu a.active {
        background: rgba(230, 57, 70, 0.05);
        padding-left: 20px;
    }
    
    .nav-menu a.active::before { display: none; }
    
    .nav-mobile-cta {
        margin-top: 20px;
        display: block !important;
    }
    
    /* Hero */
    .hero {
        height: auto;
        max-height: none;
        min-height: 520px;
        padding: calc(var(--header-height) + 56px) 0 56px;
        align-items: flex-end;
    }
    
    .hero-bg img {
        object-position: 62% center;
    }
    
    .hero-bg::after {
        background:
            linear-gradient(180deg, rgba(11, 17, 32, 0.72) 0%, rgba(11, 17, 32, 0.88) 55%, rgba(11, 17, 32, 0.96) 100%);
    }
    
    .hero::after {
        mask-image: none;
        -webkit-mask-image: none;
        opacity: 0.5;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 26px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding-top: 24px;
    }
    
    .hero-stat-number {
        font-size: 1.35rem;
    }
    
    .hero-stat-label {
        font-size: 0.62rem;
        letter-spacing: 0.06em;
    }
    
    .hero-scroll {
        display: none;
    }
    
    /* Section headers */
    .section-title {
        font-size: 1.65rem;
    }
    
    .section-subtitle {
        font-size: 0.94rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 24px;
    }
    
    .service-number {
        font-size: 3rem;
    }
    
    /* About */
    .about-visual {
        height: 500px;
    }
    
    .about-badge {
        padding: 14px 18px;
    }
    
    .about-badge-content strong {
        font-size: 1.25rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2.75rem;
    }
    
    /* Marquee */
    .marquee-item {
        font-size: 1.75rem;
    }
    
    /* Portfolio */
    .portfolio-filters {
        margin-bottom: 40px;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
    }
    
    .portfolio-filter {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .portfolio-item.tall,
    .portfolio-item.wide {
        grid-row: auto;
        grid-column: auto;
        aspect-ratio: 4 / 3;
    }
    
    .portfolio-overlay {
        padding: 20px;
    }
    
    .portfolio-title {
        font-size: 1.25rem;
    }
    
    /* Process */
    .process-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .process-number {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }
    
    /* Testimonials */
    .testimonials { padding: 70px 0 80px; }
    
    .testimonials-stage { padding: 0; }
    
    /* Les flèches passent sous le carrousel, à côté des points */
    .t-nav-btn {
        position: static;
        transform: none;
        width: 40px;
        height: 40px;
    }
    
    .testimonials-nav {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 22px;
    }
    
    .t-nav-btn#testiPrev:hover,
    .t-nav-btn#testiNext:hover { transform: translateY(-2px); }
    
    .testimonials-trust {
        font-size: 0.82rem;
        text-align: center;
    }
    
    .page-hero { padding: calc(var(--header-total) + 52px) 0 64px; }
    .page-hero::after { height: 34px; }
    
    .stats { padding: 70px 0; }
    .cta { padding: 70px 0; }
    
    .testimonial-card {
        min-width: 320px;
        padding: 24px;
    }
    
    /* Pricing */
    .pricing-card {
        padding: 32px 24px;
    }
    
    .pricing-amount {
        font-size: 2.5rem;
    }
    
    /* Pricing tables */
    .pricing-category-header {
        padding: 20px 24px;
    }
    
    .pricing-table {
        display: block;
        overflow-x: auto;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 16px 20px;
        font-size: 0.9rem;
    }
    
    /* CTA */
    .cta {
        padding: 70px 0;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
    
    /* Contact */
    .contact-info,
    .contact-form-wrap {
        padding: 32px 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer {
        padding: 60px 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    /* Page hero */
    .page-hero {
        padding: calc(var(--header-height) + 50px) 0 60px;
    }
    
    .page-title {
        font-size: 2.25rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    /* FAQ */
    .faq-question {
        padding: 20px 24px;
        font-size: 0.98rem;
    }
    
    .faq-answer-inner {
        padding: 0 24px 20px;
    }
    
    /* Floating buttons */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }
    
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }
}

/* ---------- SMALL MOBILE (max-width: 480px) ---------- */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.15rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .marquee-item {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.82rem;
    }
    
    .hero-stats {
        gap: 10px;
    }
    
    .hero-stat-number {
        font-size: 1.2rem;
    }
    
    .testimonial-card {
        padding: 26px 22px 22px;
    }
    
    .testimonial-company {
        display: none;
    }
}

/* ---------- PRINT ---------- */
@media print {
    .header,
    .footer,
    .back-to-top,
    .whatsapp-float,
    .preloader,
    .custom-cursor,
    .custom-cursor-outline {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
