/* =====================================================================
   Responsive — points de rupture Bootstrap 5 (1400 / 1200 / 992 / 768 / 576)
   Chargé en dernier (après custom.css).
   ===================================================================== */

/* ---------------------------------------------- ≤ 1399 */
@media (max-width: 1399.98px) {
    .header-infos { padding: 0 30px; font-size: .875rem; }
    .header-infos li + li::before { margin-right: 12px; }
    .header-infos img { width: 20px; height: 20px; }
    .site-header-in { padding: 0 30px; gap: 20px; }
    .site-logo img { width: 150px; }
    .site-header nav > ul { gap: 20px; }
    .site-header nav > ul > li > a, .menu-top { font-size: .9375rem; }
    .form-quote { padding: 20px 40px 20px 70px; gap: 28px; }
}

/* ---------------------------------------------- ≤ 1199 : menu burger */
@media (max-width: 1199.98px) {
    :root { --header-h: 120px; }
    .site-header { left: 10px; right: 10px; }
    .header-infos { padding: 0 24px; justify-content: center; gap: 14px; font-size: .875rem; }
    .header-infos li.header-infos__hours, .header-infos li.header-infos__addr { display: none; }
    .header-infos img { width: 20px; height: 20px; }
    .header-topbar { max-height: 40px; }
    .header-infos { min-height: 40px; }
    .site-header-in { min-height: 76px; padding: 0 24px; border-radius: 0 0 40px 40px; gap: 16px; }
    .site-logo img { width: 140px; }

    .nav-toggle {
        position: relative; z-index: 130; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 48px; height: 48px; padding: 0 13px; margin-left: auto; border: 0; border-radius: 50%;
        background: var(--c-dark); cursor: pointer; -webkit-tap-highlight-color: transparent;
    }
    .nav-toggle span { display: block; width: 100%; height: 2px; border-radius: 2px; background: #fff; transition: transform .5s var(--ease), opacity .35s var(--ease); }
    .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .header-collapse {
        position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 120; display: block;
        max-height: calc(100dvh - 140px); overflow-y: auto;
        padding: 10px 24px 24px; background: var(--c-surface); border-radius: 30px;
        box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
        visibility: hidden; opacity: 0; transform: translateY(-14px);
        transition: opacity .55s var(--ease), transform .7s var(--ease-out), visibility .55s;
    }
    .nav-open .header-collapse { visibility: visible; opacity: 1; transform: none; }
    .site-header nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
    .site-header nav > ul > li { border-bottom: 1px solid #dcdcdc; }
    .site-header nav > ul > li > a, .menu-top { display: flex; width: 100%; justify-content: space-between; padding: 15px 4px; }
    .site-header nav > ul > li > a::after, .menu-top::after { display: none; }
    .has-sub.is-open .menu-caret { transform: rotate(180deg); }
    .submenu { overflow: hidden; max-height: 0; padding-left: 10px; transition: max-height .6s var(--ease); }
    .has-sub.is-open .submenu { max-height: 600px; }
    .submenu a { display: block; padding: 10px 4px; color: var(--c-sub); font-family: var(--font-inter); font-size: .9375rem; font-weight: 500; transition: color .4s var(--ease), padding .5s var(--ease-out); }
    .submenu a:hover { color: var(--c-red); padding-left: 10px; }
    .header-actions { margin-top: 18px; }

    .nav-scrim { position: fixed; inset: 0; z-index: 90; display: block; background: rgba(0, 0, 0, .55); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
    .nav-open .nav-scrim { opacity: 1; visibility: visible; }

    .hero-slide { min-height: 800px; }
    .hero-title { font-size: 3.5rem; }
    .hero--intern .hero-title { font-size: 3rem; }

    .simple-devis { margin-top: -80px; }
    .form-quote { flex-direction: column; align-items: stretch; gap: 22px; padding: 40px 50px; border-radius: 60px; text-align: center; }
    .form-quote h2 br { display: none; }
    .form-quote form { flex-direction: column; }
    .form-quote__inputs { max-width: none; width: 100%; }

    .services-list-items { column-gap: 30px; }
    .service-image { flex-basis: 100px; height: 320px; }
    .service-title { font-size: 1.25rem; }

    .home-about-tab__media { flex-basis: 50%; }
    .home-about-tab__text { padding-left: 25px; }
    .home-about-tab__head { padding-left: 25px; }

    .footer-col-wrap { gap: 40px; }
}

/* ---------------------------------------------- ≤ 991 */
@media (max-width: 991.98px) {
    h1, .h1, h2, .h2, .sec-title, .home-about__title, .service-faq__aside h3, .form-quote h2 { font-size: 2rem; }

    .hero-slide { min-height: 720px; }
    .hero-title { font-size: 2.875rem; }
    .hero--intern { min-height: 520px; }
    .hero--intern .hero-title { font-size: 2.5rem; }

    .form-quote { padding: 34px 30px; border-radius: 40px; }

    .company-benefit { padding-top: 90px; }
    .benefit-list { grid-template-columns: 1fr; gap: 100px; padding-top: 57px; max-width: 480px; margin: 0 auto; }
    .benefit-item { height: auto; min-height: 208px; }
    .benefit-item:hover .benefit-item__card, .benefit-item:focus-within .benefit-item__card { transform: none; }
    .benefit-item__num { display: none; }

    .home-about { padding: 90px 0; }
    .about-photos { margin: 60px auto 0; }

    .home-about-tab__tabs { gap: 14px; margin-bottom: 40px; }
    .home-about-tab__tab { flex-direction: column; justify-content: center; gap: 10px; min-height: 0; padding: 14px 10px; border-radius: 30px; font-size: 1.0625rem; text-align: center; }
    .home-about-tab__ic { flex-basis: 56px; width: 56px; height: 56px; }
    .home-about-tab__ic img { width: 36px; height: 36px; }
    .home-about-tab__panel { padding: 30px 25px; }
    .home-about-tab__head, .home-about-tab__text { padding-left: 0; }
    .home-about-tab__body { flex-direction: column; }
    .home-about-tab__text { flex: none; }
    .home-about-tab__media { flex: none; width: 100%; }
    .home-about-tab__media img { height: 380px; }

    .testimonials__rw .rw-slide { flex-basis: 480px; }

    .home-intro { padding-top: 120px; }

    .services-list { padding: 90px 0; }
    .services-list-items { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
    .services-list-item:nth-child(4n+2), .services-list-item:nth-child(4n+3), .services-list-item:nth-child(4n+4) { padding-top: 0; }
    .services-list-item:nth-child(2n) { padding-top: 80px; }

    .service-faq { grid-template-columns: 1fr; }
    .service-faq-img { min-height: 420px; }

    .home-actus .blog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 100px; }
    .home-actus .sec-head { margin-bottom: 110px; }

    .footer-certif-in { flex-wrap: wrap; justify-content: center; }
    .footer-col-wrap { flex-wrap: wrap; padding-top: 80px; }
    .footer-col { flex: 1 1 40%; }
    .footer-col--hours { flex-basis: 100%; max-width: 360px; width: auto; }

    .contact-band { padding-top: 120px; }
    .contact-map { height: 380px; }
}

/* ---------------------------------------------- ≤ 767 */
@media (max-width: 767.98px) {
    h1, .h1, h2, .h2, .sec-title, .home-about__title, .service-faq__aside h3, .form-quote h2 { font-size: 1.75rem; }
    .header-infos li.header-infos__mail { display: none; }

    .hero-slide { min-height: 680px; }
    .hero-title { font-size: 2.375rem; }
    .hero-text { font-size: 1.0625rem; }
    .hero--intern .hero-title { font-size: 2.125rem; }

    .form-quote__inputs { grid-template-columns: 1fr; }
    .form-quote__field--wide { grid-column: auto; }
    .form-quote__submit { width: 110px; height: 110px; }

    .home-about-tab__tabs { grid-template-columns: 1fr; }
    .home-about-tab__tab { flex-direction: row; justify-content: flex-start; text-align: left; border-radius: 99px; }
    .home-about-tab__media img { height: 280px; }
    .home-about-tab__media::after { box-shadow: inset 0 0 0 10px #fff; }

    .testimonials__rw .rw-slide { flex-basis: 340px; }
    .testimonials__rw .rw-card { padding: 22px; }
    .testimonials__rw .rw-meta { gap: 16px; }
    .testimonials__rw .rw-avatar { flex-basis: 60px; width: 60px; height: 60px; font-size: 1.75rem; }
    .testimonials__rw .rw-author { font-size: 1.125rem; }
    .testimonials__rw .rw-text { font-size: 1.0625rem; }
    .testimonials__rw .rw-viewport--rev .rw-track { margin-left: -170px; }

    .home-intro__card { padding: 40px 24px 26px; }
    .home-intro__text { font-size: 1.1875rem; }

    .home-actus .blog-list { grid-template-columns: minmax(0, 1fr); max-width: 420px; margin-inline: auto; }

    .footer-certif { border-radius: 40px 40px 0 0; }
    .footer-certif-in { padding-block: 22px; }
    .footer-col { flex-basis: 100%; }
    .footer-bottom-wrap { flex-direction: column; align-items: flex-start; }

    .contact-infos .header-infos { flex-direction: column; gap: 10px; }
    .contact-infos .header-infos li + li::before { display: none; }
    .contact-band .contact-form .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }

    main > article:not(.home-article) > h1 { font-size: 2.25rem; }
}

/* ---------------------------------------------- ≤ 575 */
@media (max-width: 575.98px) {
    .site-header-in { padding: 0 16px 0 20px; }
    .site-logo img { width: 120px; }
    .header-collapse { padding-inline: 18px; }

    .hero-slide { min-height: 640px; }
    .hero-content { padding: 140px 15px 80px; }
    .hero-title { font-size: 2rem; }
    .hero--intern .hero-title { font-size: 1.875rem; }
    .hero-actions { flex-direction: column; align-items: center; gap: 14px; }
    .t-eyebrow { font-size: 1.125rem; padding: 6px 18px; }

    .simple-devis { margin-top: -60px; }
    .form-quote { padding: 28px 18px; border-radius: 30px; box-shadow: inset 0 0 0 6px #fff, 0 30px 60px -30px rgba(0, 0, 0, .8); }

    .about-photos__xp { width: 110px; padding: 8px; }
    .about-photos__xp strong { height: 62px; font-size: 1.875rem; }
    .about-photos__xp span { font-size: .9375rem; }
    .about-photos__lines { gap: 8px; }

    .services-list-items { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
    .services-list-item:nth-child(2n) { padding-top: 0; }
    .service-image { flex-basis: 110px; height: 300px; }

    .service-faq-img { min-height: 340px; }
    .service-faq-img .btn-round { width: 104px; height: 104px; right: 16px; bottom: 16px; }

    .footer-certif-item { font-size: .9375rem; }
    .footer-certif .footer-logo { flex-basis: 100%; display: flex; justify-content: center; }
}
