   /* ==========================================================
   RESPONSIVE

   Ce fichier centralise l'ensemble des règles responsive
   du projet.

   Les fichiers de composants (header.css, hero.css,
   components.css, etc.) contiennent uniquement
   les styles desktop.

   ========================================================== */

/* ==========================================================
   HEADER <= 1180 px
   ========================================================== */

@media (max-width: 1180px) {

    /* ------------------------------------------------------
       HEADER
       ------------------------------------------------------ */

    .site-header {
        height: auto;
    }

    .navbar {
        position: relative;
        min-height: var(--header-height);
        gap: 16px;
    }

    .navbar-brand {
        flex: 0 0 auto;
    }

    .site-logo {
        height: 88px;
    }

    .navbar-action {
        display: none;
    }

    .theme-toggle {
        margin-left: auto;
        width: 42px;
        height: 42px;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: calc(var(--header-height) + 8px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: calc(100vh - var(--header-height) - 20px);
        overflow-y: auto;
        padding: 22px;
        background: var(--color-background-elevated);
        border-top: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
        z-index: 200;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 18px 0;
        text-align: center;
    }

    .nav-menu a::after {
        display: none;
    }

    .site-header :is(.solutions-toggle, .company-toggle) {
        width: 100%;
        justify-content: center;
        padding: 18px 0;
    }

    .site-header :is(.solutions-toggle, .company-toggle)::after {
        display: none;
    }

    .site-header :is(.solutions-submenu, .company-submenu) {
        position: static;
        transform: none;
        width: 100%;
        margin: 0;
        padding: 0 0 0 var(--spacing-md);
        border: 0;
        border-inline-start: 2px solid var(--color-border);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .nav-menu-mobile-action {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 28px;
    }

    .nav-menu-mobile-action a {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 360px;
        padding: 14px 20px;
        border-radius: var(--radius-pill);
        background: var(--gradient-primary);
        color: var(--color-text-inverted);
        text-align: center;
    }

    .nav-menu-mobile-action a::after {
        display: none;
    }


}

/* Les autres composants conservent leur seuil mobile existant. */
@media (max-width: 768px) {

    /* ------------------------------------------------------
       HERO
       ------------------------------------------------------ */

    .hero {
        padding: 48px 0;
    } 

    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-trust {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .hero-trust > div {
        width: 100%;
        min-width: 0;
        text-align: center;
    }

    .hero-card {
        max-width: 100%;
    }


    /* ------------------------------------------------------
       COMPONENTS
       ------------------------------------------------------ */

    .cards-grid,
    .timeline-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .info-card,
    .timeline-card {
        padding: 30px;
    }

    .solution-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 34px;
    }

    .solution-button {
        align-self: center;
    }

    #solutions .solution-button[href="ambk-comptabilisation.html"] {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    #solutions .solution-button[href="ambk-comptabilisation.html"] > span > span {
        white-space: nowrap;
    }

    .solution-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .info-card h3,
    .timeline-card h3,
    .solution-content h3 {
        width: 100%;
        text-align: center;
    }

    .solution-card p {
        text-align: center;
    }

    .solution-card p {
        text-align: center;
    }

    .founder-card {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 38px;
        text-align: center;
    }

    .founder-image {
        width: 220px;
        height: 220px;
    }

    .cta-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
        padding: 38px;
    }

    .cta-card .btn-primary {
        width: 100%;
        text-align: center;
        white-space: normal;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

/* ==========================================================
   <= 900 px
   ========================================================== */

@media (max-width: 900px) {

    #expertises .expertises-grid {
        grid-template-columns: 1fr;
    }

    /* ------------------------------------------------------
       HERO
       ------------------------------------------------------ */

    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-actions,
    .hero-trust {
        justify-content: center;
    }

    .hero-card {
        max-width: 100%;
    }
}

/* ==========================================================
   <= 600 px
   ========================================================== */

@media (max-width: 600px) {

    /* ------------------------------------------------------
       HEADER
       ------------------------------------------------------ */


    /* ------------------------------------------------------
       HERO
       ------------------------------------------------------ */

    .hero-main {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .hero-visual {
        width: 100%;
    }

    .hero-card {
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(34px, 8vw, 44px);
    }

    .hero-description {
        font-size: 17px;
        line-height: 1.7;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
    }

    .hero-trust {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-trust > div {
        width: 100%;
        min-width: 0;
        text-align: center;
    }

    .hero-card-body {
        padding: 28px;
    }

    .hero-card-grid {
        grid-template-columns: 1fr;
    }


    /* ------------------------------------------------------
       COMPONENTS
       ------------------------------------------------------ */

    .section {
        padding: 56px 0;
    }

    .section-header {
        margin-bottom: 42px;
    }

    .section-header h2 {
        font-size: 30px;
    }

    .section-header p {
        font-size: 16px;
        line-height: 1.7;
    }

    .info-card,
    .timeline-card,
    .solution-card,
    .founder-card,
    .contact-card {
        padding: 28px;
    }

    .info-card h3,
    .timeline-card h3 {
        font-size: 22px;
    }

    .solution-card h3 {
        font-size: 26px;
    }

    .founder-content h2,
    .contact-grid h2 {
        font-size: 30px;
    }

    .founder-content p,
    .contact-grid p {
        font-size: 16px;
        line-height: 1.75;
    }

    .cta-card {
        padding: 32px;
    }

    .cta-card h2 {
        font-size: 30px;
    }

    .site-footer {
        padding: 52px 0 24px;
    }
}
