/* =========================================
   MOBILE
========================================= */


@media (max-width: 992px) {
  /* Header top */

  .topbar-desktop {
    display: none;
  }

  .topbar-mobile {
    display: block;
    font-size: 18px;
  }

  .topbar .container {
    width: 100%;
    padding: 8px 12px;
    flex-direction: row;
    justify-content: space-between;
    gap: 6px;
  }

  .topbar-mobile .menu-toggle {
    flex: 0 0 44px;
    margin: 0 10px 0 0;
  }

  .topbar-marquee-mobile {
    width: 100%;
    margin: 0;
  }

  .topbar-marquee-mobile .topbar-marquee-track span {
    padding-right: 48px;
    font-size: 18px;
    line-height: 1.4;
  }

  .topbar-marquee-mobile a {
    color: #fff;
    text-decoration: none;
  }

  .topbar-left {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .topbar-left a {
    gap: 6px;
  }

  .topbar-left i {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .topbar .separator {
    display: none;
  }

  .topbar-right {
    justify-content: center;
    text-align: center;
  }

  .topbar-right p {
    margin: 0;
    font-size: 11px;
    line-height: 1.3;
  }

    .header-cta {
    display: none;
  }

  .site-logo span {
    font-size: 22px;
  }

  .site-logo img {
    width: 65%;
  }


  /* Header mobile */

  .desktop-header {
    display: none;
  }
  .desktop-header .main-navigation {
    display: none;
  }

  .mobile-navigation {
    display: flex;

    justify-content: flex-end;

    align-items: center;

    flex: 1;

    margin-left: auto;

    position: static;
  }

  .mobile-navigation ul {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    width: 260px;

    margin: 0;
    padding: 20px;

    background: #fff;

    border-radius: 8px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);

    z-index: 999;
  }

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    position: relative;

    width: 100%;

  min-height: 125px;

  padding: 20px;

    /* position:relative;

        z-index:1000; */
  }

  .mobile-logo {
    flex-shrink: 0;

    width: min(78vw, 320px) !important;

    display: flex;

    align-items: center;

    position: absolute;

    left: 50vw;

    transform: translateX(-50%);

    z-index: 1;
  }

  .mobile-logo a {
    display: block;
    width: 100% !important;
  }

  .mobile-logo img {
    display: block;

    width: 80% !important;

    max-width: none !important;
    

    height: auto;

    aspect-ratio: 524 / 175;

    object-fit: contain;

    filter: drop-shadow(0 3px 15px rgba(0, 0, 0, 0.65));

  }

  body.single-service .mobile-logo,
  body.single-post .mobile-logo,
  body.page:not(.home) .mobile-logo {
    width: min(62vw, 245px) !important;
  }

  body.single-service .mobile-logo img,
  body.single-post .mobile-logo img,
  body.page:not(.home) .mobile-logo img {
    width: 100% !important;

    display: block;
  }

  /* Burger */

  .menu-toggle {

    position: relative;

    top: auto;

    right: auto;

    z-index: 10001;

    margin-left: auto;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 6px;

    width: 44px;

    height: 44px;

    border: 0;

    border-radius: 0;

    background: transparent;

    box-shadow: none;

    cursor: pointer;

    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  }

  .menu-toggle:hover,
  .menu-toggle:focus-visible,
  .menu-toggle[aria-expanded="true"] {
    background: transparent;
  }

  .menu-toggle:hover {
    transform: translateY(-2px);
  }

  .menu-toggle span {
    width: 28px;

    height: 2px;

    background: #fff;

    border-radius: 2px;

    transition: 0.3s;
  }

  .menu-toggle .screen-reader-text {
    display: none;
  }

  /* Animation burger */

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Menu */

  .mobile-navigation ul {
    display: none;

    position: fixed;

    inset: 0;

    width: 100vw;
    height: 100vh;

    margin: 0;
    padding: 140px 40px 40px;

    background: rgba(20, 20, 20, 0.96);

    backdrop-filter: blur(12px);

    list-style: none;

    overflow-y: auto;

    z-index: 9999;
  }

  .main-navigation.toggled ul {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: flex-start;

    gap: 20px;
  }

  .mobile-navigation li {
    width: 100%;
    max-width: 400px;
  }

  .mobile-navigation li a {
    display: block;

    padding: 8px 0;

    text-align: center;

    color: #fff;

    font-size: 28px;

    font-weight: 700;

    text-decoration: none;

    border-bottom: 1px solid rgba(255, 255, 255, 0.15);

    transition: 0.25s;
  }

  .mobile-navigation li:hover > a {
    color: #d9a489;

    background: none;
  }

  /* Sous-menu */
 .mobile-navigation .sub-menu{

    margin-top:10px;

    padding:10px 0 10px 145px;

    gap:4px;

    border-left:2px solid rgba(217,164,137,.45);

  }

 .mobile-navigation .sub-menu li{

    margin:0;
  }

.mobile-navigation .sub-menu a{

    display:block;

    padding:8px 0;

    font-size:22px;

    line-height:1.1;

    font-weight:500;

    color:#cfcfcf;

    border:none;

    transition:.25s;
  }

.mobile-navigation .sub-menu a:hover{

    color:#D9A489;

    padding-left:10px;
  }

.site-header {

    padding: 120px 0;
}
  /* =========================================
   GOOGLE AVIS + MAP
========================================= */


    .home-googleavis-map {
      padding: 60px 20px;
    }

    .googleavis-map-grid {
      display: flex;

      flex-direction: column;

      gap: 30px;
    }

    .google-avis,
    .google-map,
    .instagram-gallery-panel {
      width: 110%;

      padding: 30px;

      border-radius: 5px;
    }

    .google-avis h2,
    .google-map h2 {
      font-size: 28px;

      text-align: center;

      margin-bottom: 20px;
    }

    .google-widget {
      min-height: auto;

      overflow: hidden;
    }

    .map-wrapper {
      border-radius: 15px;

      overflow: hidden;
    }

    .map-wrapper iframe {
      width: 100%;

      height: 280px;

      display: block;
    }

    .instagram-gallery-panel { padding: 20px; }
    .instagram-gallery-heading { align-items:flex-end; gap:12px; }
    .instagram-gallery-heading h2 { font-size:23px; }
    .instagram-follow-button { padding:7px 7px; font-size:0; }
    .instagram-follow-button i { font-size:18px; }
    .instagram-gallery { gap:1px; }
    .instagram-gallery > a { border-radius:9px; }

    .footer-instagram-widget {
      padding: 50px 20px;
    }

    .footer-instagram-widget .instagram-gallery-panel {
      width: 100%;
    }


  /* HOME SLIDER OWL ARROWS */

  .section-header {
    flex-direction: column;

    align-items: center;

    gap: 20px;

    margin-bottom: 35px;
  }

  /* HOME LOGOS MARQUEE*/

  .logos-group {
    width: max(100vw, calc(var(--logo-count) * 200px));
  }

  .logo-item {
    width: 180px;

    padding: 0 10px;
  }

  .logo-item img {
    max-width: 180px;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  /*  HOME PARTENAIRES */

  .partenaire-logo img {
    max-width: 350px;
    width: 320px !important;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  }

  /* HOME HERO */

  .hero-home {
    min-height: 700px;
  }

  .hero-content {
    min-height: 80vh;
    padding: 220px 20px 60px;
  }

  .hero-content h1 {
    font-size: 42px;
    text-align: center;
  }

  .hero-slide-title {
    font-size: clamp(76px, 20vw, 110px);
  }

  .hero-slider .owl-nav {
    bottom: 50px;
  }

  /*  TITLE HERO  */ 


.hero-title .line1{
    font-size:75px;
}

.hero-title .line2{

    font-size:85px;

}

  /* POSTS */

  .home-presentation {
    padding: 20px 20px 35px;
  }

  .s3m-slider-v2 + .home-presentation {
    padding-top: 140px;
  }

  .home-presentation-inner {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 30px 22px;
    border-radius: 20px;
  }

  .home-presentation-intro {
    text-align: center;
  }

  .home-presentation-intro h2 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .home-presentation-intro p {
    font-size: 16px;
  }

  .home-presentation-features {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .home-presentation-feature {
    grid-template-columns: 42px 1fr;
    gap: 15px;
    text-align: left;
  }

  .home-presentation-feature > i {
    font-size: 34px;
  }

  .home-presentation-feature h3 {
    font-size: 23px;
  }

 .home-posts{

        padding: 45px;
        position: relative;
        background-color: #f8f8f8;
        isolation: isolate;
    }

    .home-posts::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        /* background-image: url('https://www.serrurerie-3m.com/wp-content/uploads/2026/09/cropped-icon-1.webp'); */
        background-position: top center;
        background-size: 120% auto;
        background-repeat: no-repeat;
        opacity: 0.06;
    }

    .home-posts h2{
        text-align: center;
        font-size: 46px;
        margin-bottom: 40px;
        line-height: 1.15;
    }

    /* Container */

    .posts-grid{

        width: calc(100% + 50px);

        margin-left: -25px;

        margin-right: -25px;

        display:flex;

        flex-direction:column;

        gap:35px;

        padding:0 20px;

        background:none;

        border: 1px solid rgba(17, 24, 39, 0.08);

        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);

        border-radius: 20px;

        background: #fff;

        padding: 18px;
    }

    /* Article principal */

    .left-post{

        width:100%;

        height:300px;

        border-radius:5px;

        overflow:hidden;
    }

    .featured-post{

        border-radius:18px;

        overflow:hidden;
    }

    .post-content{

        left:25px;

        right:25px;

        bottom:25px;
    }

    .post-content h2{

        font-size:32px;

        line-height:1.15;

        max-width:100%;
    }

    /* Liste des articles */

    .right-posts{

        display:flex;

        flex-direction:column;

        gap:12px;
    }

    .small-post{
        padding-bottom:0;

        border-bottom:none;
    }

    .small-post:last-child{

        border-bottom:none;

        padding-bottom:0;
    }

    .small-post a{

        display:flex;

        flex-direction:row;

        align-items:center;

        gap:18px;

        min-height: 0;

        padding: 10px;

        border-radius: 14px;
    }

    /* Miniatures */

    .small-post-image{

        width: 156px;
        height: 181px;

        border-radius:12px;

        overflow:hidden;

        flex-shrink:0;
    }

    .small-post-image img{

        width:100%;

        height:100%;

        object-fit:cover;
    }

    /* Texte */

    .small-post-content{

        flex:1;
    }

    .small-post-content h3{

        font-size:20px;

        line-height:1.3;

        margin:0 0 10px;
    }

    .small-post-content .post-category{

        margin:0;

        font-size:10px;
    }


  /* SINGLE */

  .service-partners { margin: 0 0 38px; padding-bottom: 32px; }
  .service-partners-grid { gap: 12px; }
  .service-partner-card { width: calc(50% - 6px); }
  .service-partner-card a { width: 100%; height: 118px; padding: 10px; }
  .service-partner-logo { padding: 5px; }

  .partner-establishment-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin-bottom: 34px;
    padding: 20px;
    border-radius: 20px;
  }

  .partner-establishment-logo {
    min-height: 130px;
    padding: 18px;
  }

  .partner-establishment-logo-image { max-height: 165px; }
  .partner-establishment-details { gap: 16px; }

  .partner-establishment-info {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .partner-establishment-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .partner-establishment-info strong { font-size: 17px; }

  .single-hero {
    min-height: 500px;
  }

  .single-hero-content {
   
    margin: 5px auto;
}

  .single-hero h1 {
    font-size: 46px;
  }

  .single-content-container {
    padding: 40px 25px;
  }

  .single-content-container p {
    font-size: 18px;
  }

  .single-content-container ul,
  .single-content-container ol {
    font-size: 18px;
  }

  .single-content-container h2 {
    margin-top: 15px;
  }

  /* CONTACT */

  .contact-widget {
    padding: 55px 0;
  }

  .contact-widget-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    width: 90%;
  }

  .contact-widget-intro h2 {
    font-size: 36px;
  }

  .contact-widget-intro p {
    font-size: 16px;
  }

  .contact-widget-phone {
    font-size: 20px;
  }

  .contact-widget-form-wrap {
    width: 100%;
    padding: 25px 20px;
    box-sizing: border-box;
  }

  .contact-widget-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .contact-widget-form input,
  .contact-widget-form textarea {
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-page {
    padding: 50px 0;
  }

  .contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    width: 90%;
  }

  .contact-info,
  .contact-form,
  .contact-success {
    width: 100%;
    min-width: 0;
  }

  .contact-info h2 {
    font-size: 38px;
    overflow-wrap: anywhere;
  }

  .contact-info p,
  .contact-list li {
    font-size: 16px;
  }

  .contact-list li {
    overflow-wrap: anywhere;
  }

  .contact-form select,
  .form-group input,
  .form-group textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-form button {
    width: 100%;
  }

  /* FAQ */

  .faq-intro h2 {
    font-size: 42px;
  }

  .faq-question {
    font-size: 20px;

    padding: 24px;
  }

  /* IMAGE BLOCK */

  .image-side img {
    height: 350px;
  }

  .text-side h2 {
    font-size: 42px;
  }

  .text-side p {
    font-size: 18px;
  }

  /* FOOTER */

  .footer-container{
      display:grid;
      grid-template-columns:1fr !important;
      gap:40px;
      text-align:center;
  }

  .footer-brand{
      margin-right:0;

  }

  .footer-brand p {

    font-size: 29px;
    line-height: 1.2;
    margin: 0;
}

  .footer-links{
      text-align:center;
  }

  .footer-bottom-container{
      display:flex;
      flex-direction:column;
      align-items:center;
      justify-content:center;
      gap:15px;
      text-align:center;
  }

}

/* Team marquee cards mobile */
@media (max-width: 900px) {
    .logos-marquee {
        padding: 34px 0;
        background: #f5f8fc;
    }

    .logos-marquee .logos-group {
        width: max(100vw, calc(var(--logo-count) * 250px));
    }

    .logos-marquee .logo-item {
        width: 230px;
        padding: 10px;
    }

    .logos-marquee .logo-item a {
        flex-direction: column;
        gap: 11px;
        padding: 8px 8px 13px;
        background: #fff;
        border: 1px solid rgba(24, 59, 91, 0.1);
        border-radius: 17px;
        box-shadow: 0 12px 30px rgba(24, 59, 91, 0.13);
        color: #183b5b;
    }

    .logos-marquee .logo-item img {
        width: 100%;
        max-width: 210px;
        height: 245px;
        max-height: none;
        border-radius: 12px;
        object-fit: cover;
    }

    .logos-marquee .team-logo-name {
        font-size: 18px;
        font-weight: 800;
        line-height: 1.2;
        text-align: center;
    }
}