/* RIF Trott' — harmonisation mobile, sans modifier la mise en page ordinateur */
@media (max-width: 700px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  body * { box-sizing: border-box; }
  img, video, iframe { max-width: 100%; }

  body .brand-row,
  #rif-home-mockup .brand-row {
    min-height: 104px !important;
    padding: 17px 18px 14px !important;
    margin: 0 !important;
  }
  body .brand-row img.header-logo,
  #rif-home-mockup .brand-row img.header-logo {
    width: 112px !important;
    max-height: 76px !important;
    object-fit: contain !important;
  }
  body .nav,
  #rif-home-mockup .nav {
    display: block !important;
    padding: 0 !important;
    border-top: 1px solid rgba(25,27,26,.08) !important;
  }
  body .nav .links,
  #rif-home-mockup .nav .links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
    width: 100% !important;
    font-size: 12.5px !important;
    line-height: 1.25 !important;
  }
  body .nav .links a,
  #rif-home-mockup .nav .links a,
  #rif-home-mockup .links a:not(.btn) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    min-height: 43px !important;
    padding: 8px 7px !important;
    white-space: normal !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(25,27,26,.08) !important;
  }

  /* Bannière d'accueil */
  #rif-home-mockup .hero.hero.hero {
    display: block !important;
    position: relative !important;
    min-height: 510px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  #rif-home-mockup .hero.hero.hero .hero-visual {
    position: absolute !important;
    inset: 0 !important;
    min-height: 100% !important;
  }
  #rif-home-mockup .hero-video {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: 60% center !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
  #rif-home-mockup .hero.hero.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(20,21,20,.96) 0%, rgba(20,21,20,.87) 58%, rgba(20,21,20,.42) 100%);
    pointer-events: none;
  }
  #rif-home-mockup .hero.hero.hero > div:first-child {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 510px !important;
    margin: 0 !important;
    padding: 45px 24px 38px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  #rif-home-mockup .hero.hero.hero h1 {
    max-width: 335px !important;
    font-size: clamp(30px, 8.4vw, 36px) !important;
    line-height: 1.08 !important;
    margin-bottom: 16px !important;
  }
  #rif-home-mockup .hero.hero.hero p {
    max-width: 330px !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
  }
  #rif-home-mockup .hero-actions { gap: 9px !important; }

  /* Bannières des pages intérieures */
  body .page-hero,
  body .pro-hero,
  body .business-hero,
  body .contact-hero {
    min-height: 430px !important;
    overflow: hidden !important;
  }
  body .page-hero-inner,
  body .business-hero,
  body .pro-hero,
  body .contact-hero {
    grid-template-columns: 1fr !important;
  }
  body .page-hero-copy,
  body .business-hero-copy,
  body .pro-hero-copy,
  body .contact-hero-copy {
    width: 100% !important;
    max-width: none !important;
    min-height: 430px !important;
    padding: 42px 24px !important;
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  body .page-hero h1,
  body .business-hero h1,
  body .pro-hero h1,
  body .contact-hero h1 {
    font-size: clamp(28px, 8vw, 34px) !important;
    line-height: 1.1 !important;
  }
  body .page-hero p,
  body .business-hero p,
  body .pro-hero p,
  body .contact-hero p {
    font-size: 15px !important;
    line-height: 1.55 !important;
  }
  body .repair-hero-photo,
  body .business-hero-photo,
  body .pro-hero-visual,
  body .contact-hero-photo {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    z-index: 0 !important;
    opacity: .42 !important;
  }
  body .repair-hero-photo img,
  body .business-hero-photo img,
  body .pro-hero-visual img,
  body .contact-hero-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Sections et cartes */
  #rif-home-mockup .flow-section,
  #rif-home-mockup .battery-section,
  #rif-home-mockup .pro-section,
  #rif-home-mockup .why-section,
  #rif-home-mockup .advice-section,
  body section { padding-left: 20px !important; padding-right: 20px !important; }
  body .repair-grid,
  body .service-list,
  body .limits-grid,
  body .process-list,
  body .diagnostic-points,
  body .important-grid,
  body .why-grid,
  body .guide-grid,
  body .secondary-guide-grid,
  body .need-grid,
  body .business-signals,
  body .business-flow-list,
  body .experience-columns,
  body .method-list,
  body .about-facts,
  body .about-method-grid,
  body .location-layout {
    grid-template-columns: 1fr !important;
  }
  body .repair-grid { gap: 14px !important; }
  body .section-head h2,
  body .guides-section-head h2,
  body .business-flow-head h2,
  body .experience-head h2 {
    font-size: clamp(25px, 7vw, 31px) !important;
    line-height: 1.15 !important;
  }
  body .btn,
  #rif-home-mockup .btn {
    min-height: 44px !important;
    padding: 0 17px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
  }
  body .hero-actions,
  body .business-actions,
  body .pro-actions,
  body .final-actions {
    display: flex !important;
    flex-wrap: wrap !important;
  }
  body .map-wrap iframe { width: 100% !important; height: 330px !important; }

  /* Pied de page */
  body .rif-trott-footer,
  #rif-home-mockup .rif-trott-footer,
  body .site-footer,
  #rif-home-mockup .site-footer {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    padding: 42px 24px 32px !important;
    text-align: left !important;
  }
  body .rif-trott-footer > div,
  #rif-home-mockup .rif-trott-footer > div {
    width: 100% !important;
    padding: 0 !important;
    border-left: 0 !important;
  }
  body .rif-trott-footer a,
  #rif-home-mockup .rif-trott-footer a { min-height: 32px; }
  body .legal-footer,
  #rif-home-mockup .legal-footer {
    padding: 18px 20px 24px !important;
    line-height: 1.7 !important;
  }
  body .legal-links,
  #rif-home-mockup .legal-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 5px 10px !important;
  }
}

@media (max-width:700px) {
  html body header{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;min-height:82px!important;padding:8px 58px!important;overflow:visible!important;z-index:1000!important}
  html body header .brand-row{width:100%!important;margin:0!important;padding:0!important;display:flex!important;justify-content:center!important}
  html body header .header-logo{margin:0 auto!important}
  html body header>.mobile-menu-toggle{position:absolute!important;left:18px!important;top:50%!important;transform:translateY(-50%)!important;display:grid!important;place-items:center!important;width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;border:0!important;border-radius:7px!important;background:#62b83f!important}
  html body header>.mobile-menu-toggle>span:first-child{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}
  html body header>.mobile-menu-toggle .mobile-menu-icon,html body header>.mobile-menu-toggle .mobile-menu-icon:before,html body header>.mobile-menu-toggle .mobile-menu-icon:after{width:22px!important;height:2px!important;background:#fff!important}
  html body header>.nav{position:absolute!important;top:100%!important;left:0!important;right:0!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;overflow:visible!important}
  html body header>.nav .links{display:none!important;width:min(88%,330px)!important;grid-template-columns:1fr!important;padding:8px 0!important;background:#62b83f!important;box-shadow:0 14px 28px rgba(18,24,18,.22)!important}
  html body header>.nav.is-open .links{display:grid!important}
  html body header>.nav .links a{min-height:46px!important;padding:11px 22px!important;justify-content:flex-start!important;color:#fff!important;border:0!important;text-align:left!important}
  html body header>.nav .links a:hover,html body header>.nav .links a[aria-current=page]{background:rgba(255,255,255,.15)!important;color:#fff!important}
  #rif-home-mockup .flow-grid:before{display:none!important}
  #rif-home-mockup .flow-step:not(:last-child):after{content:""!important;position:absolute!important;left:29px!important;top:60px!important;width:2px!important;height:calc(100% - 6px)!important;background:#b8c5b2!important;z-index:0!important}
  #rif-home-mockup .flow-step{grid-template-columns:60px minmax(0,1fr)!important;grid-template-areas:"icon title" "icon text"!important;align-items:start!important}
  #rif-home-mockup .flow-step .step-number{grid-area:icon!important;width:60px!important;height:60px!important}
  #rif-home-mockup .flow-step h3{grid-area:title!important;min-height:0!important;margin:3px 0 7px!important;align-items:flex-start!important;justify-content:flex-start!important}
  #rif-home-mockup .flow-step p{grid-area:text!important}
  #rif-home-mockup .pro-photo{opacity:.58!important}
  #rif-home-mockup .pro-section:after{background:rgba(247,248,245,.38)!important}
  #rif-home-mockup .repair-page .repair-card,#rif-home-mockup .repair-page .repair-card:nth-child(n){background:#fff!important;color:#202320!important;border-color:rgba(25,27,26,.12)!important}
  #rif-home-mockup .repair-page .repair-card p{color:#62675f!important}
  #rif-home-mockup .repair-page .repair-card:hover,#rif-home-mockup .repair-page .repair-card:active,#rif-home-mockup .repair-page .repair-card:focus-within{background:#62b83f!important;color:#fff!important}
  #rif-home-mockup .repair-page .repair-card:hover p,#rif-home-mockup .repair-page .repair-card:active p,#rif-home-mockup .repair-page .repair-card:focus-within p{color:#fff!important}
  #rif-home-mockup .repair-page .process-list:before{display:none!important}
  #rif-home-mockup .repair-page .process-item,#rif-home-mockup .repair-page .process-item+.process-item{border:0!important}
  #rif-home-mockup .business-hero,html body .contact-hero{position:relative!important;display:block!important;min-height:430px!important;background:#080a09!important;color:#fff!important;overflow:hidden!important}
  #rif-home-mockup .business-hero-copy,html body .contact-hero-copy{position:relative!important;z-index:3!important;width:100%!important;min-height:430px!important;padding:44px 24px!important;justify-content:center!important;background:transparent!important;color:#fff!important}
  #rif-home-mockup .business-hero-photo,html body .contact-hero-photo{position:absolute!important;inset:0!important;z-index:0!important;width:100%!important;height:100%!important;min-height:100%!important;opacity:.68!important;object-fit:cover!important}
  #rif-home-mockup .business-hero:after,html body .contact-hero:after{content:""!important;position:absolute!important;inset:0!important;z-index:1!important;background:linear-gradient(90deg,rgba(8,10,9,.92),rgba(8,10,9,.68) 58%,rgba(8,10,9,.28))!important}
  #rif-home-mockup .business-hero h1,#rif-home-mockup .business-hero p,html body .contact-hero h1,html body .contact-hero p{color:#fff!important}
  #rif-home-mockup .business-signals{display:block!important;padding:12px 22px!important;background:#f5f6f3!important}
  #rif-home-mockup .business-signal{display:flex!important;align-items:center!important;gap:13px!important;padding:13px 0!important;border:0!important;background:transparent!important}
  html body .about-photo{height:auto!important;min-height:0!important;padding:0!important;overflow:visible!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
  html body .about-photo img{display:block!important;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;object-fit:contain!important;border-radius:0!important}
  html body header>.mobile-menu-toggle>.mobile-menu-icon{position:relative!important;display:block!important;width:22px!important;height:2px!important;overflow:visible!important;clip:auto!important;background:#fff!important}
}

/* Ajustements mobiles validés après contrôle des structures de chaque page. */
@media (max-width:700px) {
  html body .mobile-header-shell{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;min-height:96px!important;padding:14px 62px 18px!important;background:#fff!important;overflow:visible!important;z-index:1000!important}
  html body header.mobile-header-shell{min-height:96px!important;padding:14px 62px 18px!important}
  html body .mobile-header-shell .brand-row{width:100%!important;margin:0!important;padding:0!important;display:flex!important;justify-content:center!important}
  html body .mobile-header-shell .header-logo{display:block!important;width:auto!important;max-width:118px!important;max-height:64px!important;margin:0 auto!important;object-fit:contain!important}
  html body .mobile-header-shell>.mobile-menu-toggle{position:absolute!important;left:18px!important;top:46px!important;transform:translateY(-50%)!important;display:grid!important;place-items:center!important;width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
  html body .mobile-header-shell>.mobile-menu-toggle>.mobile-menu-icon{position:relative!important;display:block!important;width:25px!important;height:2px!important;overflow:visible!important;clip:auto!important;border-radius:2px!important;background:#202320!important}
  html body .mobile-header-shell>.mobile-menu-toggle>.mobile-menu-icon:before,html body .mobile-header-shell>.mobile-menu-toggle>.mobile-menu-icon:after{content:""!important;position:absolute!important;left:0!important;display:block!important;width:25px!important;height:2px!important;border-radius:2px!important;background:#202320!important}
  html body .mobile-header-shell>.mobile-menu-toggle>.mobile-menu-icon:before{top:-7px!important}
  html body .mobile-header-shell>.mobile-menu-toggle>.mobile-menu-icon:after{top:7px!important}
  html body .mobile-header-shell>.nav{position:absolute!important;top:100%!important;left:0!important;right:0!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;overflow:visible!important}
  html body .mobile-header-shell>.nav .links{display:none!important;width:min(88%,330px)!important;grid-template-columns:1fr!important;padding:8px 0!important;background:#62b83f!important;box-shadow:0 14px 28px rgba(18,24,18,.22)!important}
  html body .mobile-header-shell>.nav.is-open .links{display:grid!important}
  html body .mobile-header-shell>.nav .links a{display:flex!important;min-height:46px!important;padding:11px 22px!important;align-items:center!important;justify-content:flex-start!important;color:#fff!important;border:0!important;text-align:left!important;font-size:14px!important}
  html body .mobile-header-shell>.nav .links a:hover,html body .mobile-header-shell>.nav .links a[aria-current=page]{background:rgba(255,255,255,.15)!important;color:#fff!important}

  #rif-home-mockup .repair-page .service-item,#rif-home-mockup .repair-page .service-item:nth-child(n){background:linear-gradient(180deg,#fff 0%,#f7faf5 100%)!important;color:#202320!important;border-color:rgba(76,158,49,.25)!important;box-shadow:0 10px 24px rgba(32,35,32,.09)!important}
  #rif-home-mockup .repair-page .service-item>svg,#rif-home-mockup .repair-page .service-item:nth-child(n)>svg{background:#62b83f!important;color:#fff!important}
  #rif-home-mockup .repair-page .service-item p,#rif-home-mockup .repair-page .service-item:nth-child(n) p{color:#62675f!important}
  #rif-home-mockup .repair-page .service-item ul,#rif-home-mockup .repair-page .service-item:nth-child(n) ul{border-top-color:rgba(98,184,63,.5)!important}
  #rif-home-mockup .repair-page .service-item li,#rif-home-mockup .repair-page .service-item:nth-child(n) li{color:#3d423c!important}
  #rif-home-mockup .repair-page .service-item li:before,#rif-home-mockup .repair-page .service-item:nth-child(n) li:before{color:#4c9e31!important}
  #rif-home-mockup .repair-page .service-item:active,#rif-home-mockup .repair-page .service-item:focus-within{background:#62b83f!important;color:#fff!important}
  #rif-home-mockup .repair-page .service-item:active p,#rif-home-mockup .repair-page .service-item:active li,#rif-home-mockup .repair-page .service-item:active li:before,#rif-home-mockup .repair-page .service-item:focus-within p,#rif-home-mockup .repair-page .service-item:focus-within li,#rif-home-mockup .repair-page .service-item:focus-within li:before{color:#fff!important}

  #rif-home-mockup .business-hero-photo{opacity:.42!important}
  #rif-home-mockup .business-hero:after{background:rgba(8,10,9,.76)!important}

  html body .about-photo img{border-radius:16px!important}

  html body .contact-hero{display:grid!important;grid-template-columns:1fr!important;min-height:0!important;background:#eef1eb!important;color:#202320!important}
  html body .contact-hero-copy{position:relative!important;order:1!important;min-height:0!important;padding:42px 24px 36px!important;background:#eef1eb!important;color:#202320!important}
  html body .contact-hero-photo{position:relative!important;order:2!important;inset:auto!important;display:block!important;height:230px!important;min-height:230px!important;opacity:.8!important;object-fit:cover!important}
  html body .contact-hero:after{display:none!important}
  html body .contact-hero h1{color:#202320!important}
  html body .contact-hero p{color:#4f5650!important}
}

@media (max-width:700px) {
  #rif-home-mockup .mobile-header-shell,html body header.mobile-header-shell{min-height:102px!important;padding:17px 62px 21px!important;background:transparent!important}
  #rif-home-mockup .mobile-header-shell .header-logo,html body header.mobile-header-shell .header-logo{width:108px!important;max-width:108px!important;height:auto!important;max-height:60px!important;margin:0 auto!important}
  #rif-home-mockup .mobile-header-shell>.mobile-menu-toggle,html body header.mobile-header-shell>.mobile-menu-toggle{top:50%!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
  #rif-home-mockup .mobile-header-shell>.mobile-menu-toggle>.mobile-menu-icon,#rif-home-mockup .mobile-header-shell>.mobile-menu-toggle>.mobile-menu-icon:before,#rif-home-mockup .mobile-header-shell>.mobile-menu-toggle>.mobile-menu-icon:after,html body header.mobile-header-shell>.mobile-menu-toggle>.mobile-menu-icon,html body header.mobile-header-shell>.mobile-menu-toggle>.mobile-menu-icon:before,html body header.mobile-header-shell>.mobile-menu-toggle>.mobile-menu-icon:after{background:#202320!important}
  html body .about-visual{padding:0 20px 36px!important;background:transparent!important;border-radius:0!important}
  html body .about-photo{width:100%!important;margin:0!important;background:transparent!important;border-radius:16px!important;box-shadow:none!important;overflow:hidden!important}
  html body .about-photo img{width:100%!important;height:auto!important;margin:0!important;border-radius:16px!important;object-fit:cover!important}
  html body .story-copy{padding:28px 2px 0!important}
  html body .contact-hero .appointment-notice{color:#fff!important;font-weight:600!important}
}

@media (max-width:700px) {
  /* Masque les anciens blocs de la maquette d'accueil conservés dans les fichiers intérieurs. */
  #rif-home-mockup:has(> .repair-page)>.hero,
  #rif-home-mockup:has(> .repair-page)>.trust,
  #rif-home-mockup:has(> .repair-page)>.repairs,
  #rif-home-mockup:has(> .repair-page)>.important-section,
  #rif-home-mockup:has(> .repair-page)>.flow-section,
  #rif-home-mockup:has(> .repair-page)>.pro-section,
  #rif-home-mockup:has(> .repair-page)>.why-section,
  #rif-home-mockup:has(> .repair-page)>.advice-section,
  #rif-home-mockup:has(> .repair-page)>.final-cta{display:none!important}
  #rif-home-mockup.mobile-repair-page>.hero,#rif-home-mockup.mobile-repair-page>.trust,#rif-home-mockup.mobile-repair-page>.repairs,#rif-home-mockup.mobile-repair-page>.important-section,#rif-home-mockup.mobile-repair-page>.flow-section,#rif-home-mockup.mobile-repair-page>.pro-section,#rif-home-mockup.mobile-repair-page>.why-section,#rif-home-mockup.mobile-repair-page>.advice-section,#rif-home-mockup.mobile-repair-page>.final-cta{display:none!important}
  #rif-home-mockup:has(> .pro-business-page)>.hero,
  #rif-home-mockup:has(> .pro-business-page)>.trust,
  #rif-home-mockup:has(> .pro-business-page)>.repairs,
  #rif-home-mockup:has(> .pro-business-page)>.important-section,
  #rif-home-mockup:has(> .pro-business-page)>.flow-section,
  #rif-home-mockup:has(> .pro-business-page)>.pro-section,
  #rif-home-mockup:has(> .pro-business-page)>.why-section,
  #rif-home-mockup:has(> .pro-business-page)>.advice-section,
  #rif-home-mockup:has(> .pro-business-page)>.final-cta,
  #rif-home-mockup:has(> .pro-business-page)>.pro-page,
  #rif-home-mockup:has(> .pro-business-page)>.repair-page{display:none!important}
  #rif-home-mockup.mobile-pro-page>.hero,#rif-home-mockup.mobile-pro-page>.trust,#rif-home-mockup.mobile-pro-page>.repairs,#rif-home-mockup.mobile-pro-page>.important-section,#rif-home-mockup.mobile-pro-page>.flow-section,#rif-home-mockup.mobile-pro-page>.pro-section,#rif-home-mockup.mobile-pro-page>.why-section,#rif-home-mockup.mobile-pro-page>.advice-section,#rif-home-mockup.mobile-pro-page>.final-cta,#rif-home-mockup.mobile-pro-page>.pro-page,#rif-home-mockup.mobile-pro-page>.repair-page{display:none!important}

  #rif-home-mockup .repair-page .page-hero-copy,
  #rif-home-mockup .pro-business-page .business-hero-copy{transform:translateY(-24px)!important}

  #rif-home-mockup .guides-page .guides-label,
  #rif-home-mockup .guides-section#conseils .page-intro-head .guides-label{color:#4c9e31!important;font-family:inherit!important;font-size:12px!important;line-height:1.3!important;font-weight:500!important;letter-spacing:.04em!important}

  #rif-home-mockup .mobile-header-shell .brand-row .header-logo,
  html body header.mobile-header-shell .brand-row .header-logo{width:108px!important;min-width:0!important;max-width:108px!important;height:60px!important;min-height:0!important;max-height:60px!important;object-fit:contain!important}
}

/* Correctifs mobiles harmonisés — 09/09/2026 */
@media (max-width: 700px) {
  /* En-tête identique sur toutes les pages : bouton à gauche du logo et volet vert */
  html body header { position: relative !important; display: flex !important; align-items: center !important; justify-content: center !important; min-height: 82px !important; padding: 8px 58px !important; overflow: visible !important; z-index: 1000 !important; }
  html body header .brand-row { width: 100% !important; margin: 0 !important; padding: 0 !important; display: flex !important; justify-content: center !important; }
  html body header .header-logo { margin: 0 auto !important; }
  html body header > .mobile-menu-toggle { position: absolute !important; left: 18px !important; top: 50% !important; transform: translateY(-50%) !important; display: grid !important; place-items: center !important; width: 42px !important; height: 42px !important; min-height: 42px !important; padding: 0 !important; border: 0 !important; border-radius: 7px !important; background: #62b83f !important; }
  html body header > .mobile-menu-toggle > span:first-child { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; }
  html body header > .mobile-menu-toggle .mobile-menu-icon,
  html body header > .mobile-menu-toggle .mobile-menu-icon::before,
  html body header > .mobile-menu-toggle .mobile-menu-icon::after { width: 22px !important; height: 2px !important; background: #fff !important; }
  html body header > .nav { position: absolute !important; top: 100% !important; left: 0 !important; right: 0 !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; overflow: visible !important; }
  html body header > .nav .links { display: none !important; width: min(88%, 330px) !important; grid-template-columns: 1fr !important; padding: 8px 0 !important; background: #62b83f !important; box-shadow: 0 14px 28px rgba(18,24,18,.22) !important; }
  html body header > .nav.is-open .links { display: grid !important; }
  html body header > .nav .links a { min-height: 46px !important; padding: 11px 22px !important; justify-content: flex-start !important; color: #fff !important; border: 0 !important; text-align: left !important; }
  html body header > .nav .links a:hover,
  html body header > .nav .links a[aria-current="page"] { background: rgba(255,255,255,.15) !important; color: #fff !important; }

  /* Accueil : étapes parfaitement alignées et photographie professionnelle visible */
  #rif-home-mockup .flow-grid::before { top: 29px !important; bottom: 29px !important; height: auto !important; }
  #rif-home-mockup .flow-step { grid-template-columns: 60px minmax(0,1fr) !important; grid-template-areas: "icon title" "icon text" !important; align-items: start !important; }
  #rif-home-mockup .flow-step .step-number { grid-area: icon !important; width: 60px !important; height: 60px !important; }
  #rif-home-mockup .flow-step h3 { grid-area: title !important; min-height: 0 !important; margin: 3px 0 7px !important; align-items: flex-start !important; justify-content: flex-start !important; }
  #rif-home-mockup .flow-step p { grid-area: text !important; }
  #rif-home-mockup .pro-photo { opacity: .58 !important; }
  #rif-home-mockup .pro-section::after { background: rgba(247,248,245,.38) !important; }

  /* Réparer : toutes les cartes sont claires au repos ; aucun trait entre les étapes */
  #rif-home-mockup .repair-page .repair-card,
  #rif-home-mockup .repair-page .repair-card:nth-child(n) { background: #fff !important; color: #202320 !important; border-color: rgba(25,27,26,.12) !important; }
  #rif-home-mockup .repair-page .repair-card p { color: #62675f !important; }
  #rif-home-mockup .repair-page .repair-card:hover,
  #rif-home-mockup .repair-page .repair-card:active,
  #rif-home-mockup .repair-page .repair-card:focus-within { background: #62b83f !important; color: #fff !important; }
  #rif-home-mockup .repair-page .repair-card:hover p,
  #rif-home-mockup .repair-page .repair-card:active p,
  #rif-home-mockup .repair-page .repair-card:focus-within p { color: #fff !important; }
  #rif-home-mockup .repair-page .process-list::before { display: none !important; }
  #rif-home-mockup .repair-page .process-item { border: 0 !important; }
  #rif-home-mockup .repair-page .process-item + .process-item { border: 0 !important; }

  /* Professionnels et Contact : même composition que la bannière Réparer */
  #rif-home-mockup .business-hero,
  html body .contact-hero { position: relative !important; display: block !important; min-height: 430px !important; background: #080a09 !important; color: #fff !important; overflow: hidden !important; }
  #rif-home-mockup .business-hero-copy,
  html body .contact-hero-copy { position: relative !important; z-index: 3 !important; width: 100% !important; min-height: 430px !important; padding: 44px 24px !important; justify-content: center !important; background: transparent !important; color: #fff !important; }
  #rif-home-mockup .business-hero-photo,
  html body .contact-hero-photo { position: absolute !important; inset: 0 !important; z-index: 0 !important; width: 100% !important; height: 100% !important; min-height: 100% !important; opacity: .68 !important; object-fit: cover !important; }
  #rif-home-mockup .business-hero::after,
  html body .contact-hero::after { content: "" !important; position: absolute !important; inset: 0 !important; z-index: 1 !important; background: linear-gradient(90deg,rgba(8,10,9,.92),rgba(8,10,9,.68) 58%,rgba(8,10,9,.28)) !important; }
  #rif-home-mockup .business-hero h1,
  #rif-home-mockup .business-hero p,
  html body .contact-hero h1,
  html body .contact-hero p { color: #fff !important; }
  #rif-home-mockup .business-signals { display: block !important; padding: 12px 22px !important; background: #f5f6f3 !important; }
  #rif-home-mockup .business-signal { display: flex !important; align-items: center !important; gap: 13px !important; padding: 13px 0 !important; border: 0 !important; background: transparent !important; }

  /* Qui sommes-nous : la photo seule, sans carré vide derrière */
  html body .about-photo { height: auto !important; min-height: 0 !important; padding: 0 !important; overflow: visible !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
  html body .about-photo img { display: block !important; width: 100% !important; height: auto !important; min-height: 0 !important; margin: 0 !important; object-fit: contain !important; border-radius: 0 !important; }
}

/* Priorité sur les anciens correctifs intégrés en fin de certaines pages. */
@media (max-width: 700px) {
  html body .brand-row {
    min-height: 104px !important;
    padding: 17px 18px 14px !important;
    margin: 0 !important;
  }
  html body .nav {
    display: block !important;
    padding: 0 !important;
    border-top: 1px solid rgba(25,27,26,.08) !important;
  }
  html body .nav .links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 0 !important;
    width: 100% !important;
  }
  html body .nav .links a {
    display: flex !important;
    min-height: 43px !important;
    padding: 8px 7px !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: normal !important;
  }
}

@media (max-width: 390px) {
  body .nav .links,
  #rif-home-mockup .nav .links { font-size: 12px !important; }
  body .nav .links a,
  #rif-home-mockup .nav .links a { padding-inline: 5px !important; }
}

.mobile-menu-toggle { display: none; }

@media (max-width: 700px) {
  /* Menu mobile compact */
  html body .nav { position: relative !important; min-height: 52px !important; background: #f5f6f3 !important; }
  html body .mobile-menu-toggle { display: flex !important; width: 100% !important; min-height: 52px !important; padding: 0 20px !important; align-items: center !important; justify-content: space-between !important; border: 0 !important; background: transparent !important; color: #202320 !important; font-family: inherit !important; font-size: 14px !important; font-weight: 600 !important; line-height: 1.2 !important; cursor: pointer !important; }
  html body .mobile-menu-icon, html body .mobile-menu-icon::before, html body .mobile-menu-icon::after { display: block !important; width: 22px !important; height: 2px !important; border-radius: 2px !important; background: #202320 !important; transition: transform .2s ease !important; }
  html body .mobile-menu-icon { position: relative !important; }
  html body .mobile-menu-icon::before, html body .mobile-menu-icon::after { content: "" !important; position: absolute !important; left: 0 !important; }
  html body .mobile-menu-icon::before { top: -7px !important; }
  html body .mobile-menu-icon::after { top: 7px !important; }
  html body .nav.is-open .mobile-menu-icon { background: transparent !important; }
  html body .nav.is-open .mobile-menu-icon::before { top: 0 !important; transform: rotate(45deg) !important; }
  html body .nav.is-open .mobile-menu-icon::after { top: 0 !important; transform: rotate(-45deg) !important; }
  html body .nav .links { display: none !important; grid-template-columns: 1fr !important; background: #fff !important; border-top: 1px solid rgba(25,27,26,.09) !important; }
  html body .nav.is-open .links { display: grid !important; }
  html body .nav .links a { min-height: 46px !important; padding: 11px 20px !important; justify-content: flex-start !important; text-align: left !important; font-size: 14px !important; }

  /* Accueil */
  #rif-home-mockup .hero.hero.hero::after { background: linear-gradient(90deg,rgba(20,21,20,.84),rgba(20,21,20,.65) 55%,rgba(20,21,20,.20)) !important; }
  #rif-home-mockup .hero-video { filter: brightness(1.18) contrast(1.03) saturate(1.08) !important; }
  #rif-home-mockup .trust, html body .trust { display: grid !important; grid-template-columns: 1fr !important; padding: 0 20px !important; }
  #rif-home-mockup .trust-item, html body .trust-item { min-height: 58px !important; justify-content: flex-start !important; padding: 12px 4px !important; border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.24) !important; }
  #rif-home-mockup .trust-item:last-child, html body .trust-item:last-child { border-bottom: 0 !important; }
  #rif-home-mockup .flow-grid, html body .flow-grid { display: grid !important; grid-template-columns: 1fr !important; gap: 24px !important; }
  #rif-home-mockup .flow-step, html body .flow-step { display: grid !important; grid-template-columns: 42px minmax(0,1fr) !important; grid-template-areas: "icon title" "icon text" !important; column-gap: 14px !important; align-items: start !important; text-align: left !important; }
  #rif-home-mockup .flow-step .step-number, html body .flow-step .step-number { grid-area: icon !important; margin: 0 !important; }
  #rif-home-mockup .flow-step h3, html body .flow-step h3 { grid-area: title !important; margin: 2px 0 7px !important; text-align: left !important; }
  #rif-home-mockup .flow-step p, html body .flow-step p { grid-area: text !important; margin: 0 !important; text-align: left !important; }
  #rif-home-mockup .pro-section { position: relative !important; display: block !important; overflow: hidden !important; background: #eef1eb !important; }
  #rif-home-mockup .pro-art { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; }
  #rif-home-mockup .pro-photo { width: 100% !important; height: 100% !important; object-fit: cover !important; opacity: .30 !important; }
  #rif-home-mockup .pro-section::after { content: "" !important; position: absolute !important; inset: 0 !important; background: rgba(247,248,245,.55) !important; }
  #rif-home-mockup .pro-copy { position: relative !important; z-index: 1 !important; color: #202320 !important; text-align: left !important; }
  #rif-home-mockup .pro-copy p, #rif-home-mockup .pro-points { color: #303530 !important; }
  #rif-home-mockup .pro-actions { justify-content: center !important; margin-top: 20px !important; }
  #rif-home-mockup .why-section { background: #f5f6f3 !important; color: #202320 !important; }

  /* Réparations */
  html body .repair-page .repair-card, html body .repair-page .repair-card:nth-child(n) { background: #fff !important; color: #202320 !important; border-color: rgba(25,27,26,.12) !important; }
  html body .repair-page .repair-card .repair-icon { background: #62b83f !important; color: #fff !important; }
  html body .repair-page .repair-card:hover, html body .repair-page .repair-card:active, html body .repair-page .repair-card:focus-within { background: #62b83f !important; color: #fff !important; }
  html body .repair-page .repair-card:hover h3, html body .repair-page .repair-card:hover p, html body .repair-page .repair-card:active h3, html body .repair-page .repair-card:active p { color: #fff !important; }

  /* Professionnels et Contact : texte puis photo, comme la page Réparer */
  html body .business-hero, html body .contact-hero { display: grid !important; grid-template-columns: 1fr !important; min-height: 0 !important; background: #eef1eb !important; }
  html body .business-hero-copy, html body .contact-hero-copy { order: 1 !important; min-height: 0 !important; padding: 42px 24px 36px !important; background: #eef1eb !important; color: #202320 !important; }
  html body .business-hero-photo, html body .contact-hero-photo { order: 2 !important; position: relative !important; inset: auto !important; display: block !important; height: 230px !important; min-height: 230px !important; opacity: .80 !important; object-fit: cover !important; }
  html body .business-hero-photo img, html body .contact-hero-photo img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
  html body .business-signals { display: block !important; padding: 14px 22px !important; background: #fff !important; }
  html body .business-signal { display: grid !important; grid-template-columns: 38px 1fr !important; padding: 15px 0 !important; border: 0 !important; border-bottom: 1px solid rgba(25,27,26,.12) !important; background: transparent !important; text-align: left !important; }
  html body .business-signal:last-child { border-bottom: 0 !important; }
  html body .business-signal .signal-icon { grid-row: 1 / span 2 !important; }

  /* Conseils, photo Qui sommes-nous et pieds de page */
  html body .secondary-guide, html body .secondary-guide-title { text-align: center !important; justify-content: center !important; }
  html body .secondary-guide p { text-align: center !important; }
  html body:has(.guides-page) .guides-page ~ .hero { display: none !important; }
  html body .about-photo img { display: block !important; width: 100% !important; height: auto !important; opacity: 1 !important; }
  html body .rif-trott-footer .logo-name, html body .site-footer .logo-name { display: inline-flex !important; gap: .22em !important; align-items: baseline !important; }
  html body .rif-trott-footer .repair-word, html body .rif-trott-footer .trott-word, html body .site-footer .repair-word, html body .site-footer .trott-word { display: inline !important; color: #62b83f !important; }
}

/* Ces règles finales priment sur les anciens styles mobiles propres aux pages. */
@media (max-width:700px) {
  html body header{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;min-height:82px!important;padding:8px 58px!important;overflow:visible!important;z-index:1000!important}
  html body header .brand-row{width:100%!important;margin:0!important;padding:0!important;display:flex!important;justify-content:center!important}
  html body header .header-logo{margin:0 auto!important}
  html body header>.mobile-menu-toggle{position:absolute!important;left:18px!important;top:50%!important;transform:translateY(-50%)!important;display:grid!important;place-items:center!important;width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;border:0!important;border-radius:7px!important;background:#62b83f!important}
  html body header>.mobile-menu-toggle>span:first-child{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}
  html body header>.mobile-menu-toggle .mobile-menu-icon,html body header>.mobile-menu-toggle .mobile-menu-icon:before,html body header>.mobile-menu-toggle .mobile-menu-icon:after{width:22px!important;height:2px!important;background:#fff!important}
  html body header>.nav{position:absolute!important;top:100%!important;left:0!important;right:0!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;overflow:visible!important}
  html body header>.nav .links{display:none!important;width:min(88%,330px)!important;grid-template-columns:1fr!important;padding:8px 0!important;background:#62b83f!important;box-shadow:0 14px 28px rgba(18,24,18,.22)!important}
  html body header>.nav.is-open .links{display:grid!important}
  html body header>.nav .links a{min-height:46px!important;padding:11px 22px!important;justify-content:flex-start!important;color:#fff!important;border:0!important;text-align:left!important}
  html body header>.nav .links a:hover,html body header>.nav .links a[aria-current=page]{background:rgba(255,255,255,.15)!important;color:#fff!important}
  #rif-home-mockup .flow-grid:before{display:none!important}
  #rif-home-mockup .flow-step:not(:last-child):after{content:""!important;position:absolute!important;left:29px!important;top:60px!important;width:2px!important;height:calc(100% - 6px)!important;background:#b8c5b2!important;z-index:0!important}
  #rif-home-mockup .flow-step{grid-template-columns:60px minmax(0,1fr)!important;grid-template-areas:"icon title" "icon text"!important;align-items:start!important}
  #rif-home-mockup .flow-step .step-number{grid-area:icon!important;width:60px!important;height:60px!important}
  #rif-home-mockup .flow-step h3{grid-area:title!important;min-height:0!important;margin:3px 0 7px!important;align-items:flex-start!important;justify-content:flex-start!important}
  #rif-home-mockup .flow-step p{grid-area:text!important}
  #rif-home-mockup .pro-photo{opacity:.58!important}
  #rif-home-mockup .pro-section:after{background:rgba(247,248,245,.38)!important}
  #rif-home-mockup .repair-page .repair-card,#rif-home-mockup .repair-page .repair-card:nth-child(n){background:#fff!important;color:#202320!important;border-color:rgba(25,27,26,.12)!important}
  #rif-home-mockup .repair-page .repair-card p{color:#62675f!important}
  #rif-home-mockup .repair-page .repair-card:hover,#rif-home-mockup .repair-page .repair-card:active,#rif-home-mockup .repair-page .repair-card:focus-within{background:#62b83f!important;color:#fff!important}
  #rif-home-mockup .repair-page .repair-card:hover p,#rif-home-mockup .repair-page .repair-card:active p,#rif-home-mockup .repair-page .repair-card:focus-within p{color:#fff!important}
  #rif-home-mockup .repair-page .process-list:before{display:none!important}
  #rif-home-mockup .repair-page .process-item,#rif-home-mockup .repair-page .process-item+.process-item{border:0!important}
  #rif-home-mockup .business-hero,html body .contact-hero{position:relative!important;display:block!important;min-height:430px!important;background:#080a09!important;color:#fff!important;overflow:hidden!important}
  #rif-home-mockup .business-hero-copy,html body .contact-hero-copy{position:relative!important;z-index:3!important;width:100%!important;min-height:430px!important;padding:44px 24px!important;justify-content:center!important;background:transparent!important;color:#fff!important}
  #rif-home-mockup .business-hero-photo,html body .contact-hero-photo{position:absolute!important;inset:0!important;z-index:0!important;width:100%!important;height:100%!important;min-height:100%!important;opacity:.68!important;object-fit:cover!important}
  #rif-home-mockup .business-hero:after,html body .contact-hero:after{content:""!important;position:absolute!important;inset:0!important;z-index:1!important;background:linear-gradient(90deg,rgba(8,10,9,.92),rgba(8,10,9,.68) 58%,rgba(8,10,9,.28))!important}
  #rif-home-mockup .business-hero h1,#rif-home-mockup .business-hero p,html body .contact-hero h1,html body .contact-hero p{color:#fff!important}
  #rif-home-mockup .business-signals{display:block!important;padding:12px 22px!important;background:#f5f6f3!important}
  #rif-home-mockup .business-signal{display:flex!important;align-items:center!important;gap:13px!important;padding:13px 0!important;border:0!important;background:transparent!important}
  html body .about-photo{height:auto!important;min-height:0!important;padding:0!important;overflow:visible!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
  html body .about-photo img{display:block!important;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;object-fit:contain!important;border-radius:0!important}
}

@media (max-width:700px) {
  #rif-home-mockup .mobile-header-shell,html body header.mobile-header-shell{min-height:102px!important;padding:17px 62px 21px!important;background:transparent!important}
  #rif-home-mockup .mobile-header-shell .header-logo,html body header.mobile-header-shell .header-logo{width:108px!important;max-width:108px!important;height:auto!important;max-height:60px!important;margin:0 auto!important}
  #rif-home-mockup .mobile-header-shell>.mobile-menu-toggle,html body header.mobile-header-shell>.mobile-menu-toggle{top:50%!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
  #rif-home-mockup .mobile-header-shell>.mobile-menu-toggle>.mobile-menu-icon,html body header.mobile-header-shell>.mobile-menu-toggle>.mobile-menu-icon{position:relative!important;display:block!important;width:25px!important;height:2px!important;overflow:visible!important;clip:auto!important;background:#202320!important}
  #rif-home-mockup .mobile-header-shell>.mobile-menu-toggle>.mobile-menu-icon:before,#rif-home-mockup .mobile-header-shell>.mobile-menu-toggle>.mobile-menu-icon:after,html body header.mobile-header-shell>.mobile-menu-toggle>.mobile-menu-icon:before,html body header.mobile-header-shell>.mobile-menu-toggle>.mobile-menu-icon:after{content:""!important;position:absolute!important;left:0!important;display:block!important;width:25px!important;height:2px!important;border-radius:2px!important;background:#202320!important}
  #rif-home-mockup .mobile-header-shell>.mobile-menu-toggle>.mobile-menu-icon:before,html body header.mobile-header-shell>.mobile-menu-toggle>.mobile-menu-icon:before{top:-7px!important}
  #rif-home-mockup .mobile-header-shell>.mobile-menu-toggle>.mobile-menu-icon:after,html body header.mobile-header-shell>.mobile-menu-toggle>.mobile-menu-icon:after{top:7px!important}
  #rif-home-mockup .mobile-header-shell>.nav,html body header.mobile-header-shell>.nav{position:absolute!important;top:100%!important;left:0!important;right:0!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;overflow:visible!important}
  #rif-home-mockup .mobile-header-shell>.nav .links,html body header.mobile-header-shell>.nav .links{display:none!important;width:min(88%,330px)!important;grid-template-columns:1fr!important;padding:8px 0!important;background:#62b83f!important}
  #rif-home-mockup .mobile-header-shell>.nav.is-open .links,html body header.mobile-header-shell>.nav.is-open .links{display:grid!important}
  html body .about-visual{padding:0 20px 36px!important;background:transparent!important;border-radius:0!important}
  html body .about-photo{width:100%!important;margin:0!important;background:transparent!important;border-radius:16px!important;box-shadow:none!important;overflow:hidden!important}
  html body .about-photo img{width:100%!important;height:auto!important;margin:0!important;border-radius:16px!important;object-fit:cover!important}
  html body .story-copy{padding:28px 2px 0!important}
  html body .contact-hero .appointment-notice{color:#fff!important;font-weight:600!important}
}
