/* Responsive de Rivebois : AJOUT à la maquette de Grok (conçue à 1440 px). Rien ne s'applique au-dessus de 1100 px,
   le rendu à 1440 px reste donc celui de la maquette. Sélecteurs « html body .x » : ils l'emportent sur les classes
   « body .sXXXXXX » issues des styles en ligne (styles-pages.css). Les crochets « r-… » sont posés dans les gabarits. */

/* Libellés d'en-tête plus longs (« … (bientôt) ») : on resserre légèrement l'en-tête à toutes les largeurs pour que tout tienne dans les 1200 px de la maquette. */
html body .nav{gap:28px}
html body .nav .liens{gap:22px}
html body .nav .btn{padding:0 20px}
html body .nav .btn .bientot{font-size:.82em;font-weight:550;opacity:.92}

/* En-tête entre 1101 et 1439 px : la maquette est faite pour 1440 px (marges de 120 px). On resserre, puis on passe à la ligne. */
@media (max-width:1439px){
  html body .nav{gap:20px 20px;padding-left:32px;padding-right:32px}
  html body .nav .liens{gap:20px;min-width:0}
  html body .nav .logo-lien .logo-signature{white-space:nowrap}
}
@media (max-width:1379px){
  html body .nav{height:auto;flex-wrap:wrap;gap:8px 16px;padding-top:14px;padding-bottom:10px}
  html body .nav .logo-lien{margin-right:auto}
  html body .nav .liens{order:3;flex:1 0 100%;flex-wrap:wrap;white-space:normal;gap:0 24px}
  html body .nav .liens a{display:inline-flex;align-items:center;min-height:44px}
  html body .nav-heros{background:linear-gradient(180deg,rgba(247,244,236,.94),rgba(247,244,236,.82))}
}

@media (max-width:1259px){
  html body{font-size:18px}
  html body .wrap{width:auto;margin-left:24px;margin-right:24px}
  html body .nav{height:auto;flex-wrap:wrap;gap:12px 20px;padding:16px 24px}
  html body .nav .liens{order:3;flex:1 0 100%;flex-wrap:wrap;white-space:normal;gap:6px 22px}
  html body .nav .logo-lien{margin-right:auto}
  html body .nav-heros{position:static}
  html body .telephone{width:min(300px,38vw);height:auto;aspect-ratio:300/649;border-radius:clamp(28px,5vw,46px);padding:clamp(6px,1vw,10px)}
  html body .telephone img{border-radius:clamp(22px,4vw,37px)}
  /* accueil : tête */
  html body .heros{height:auto}
  html body .r-voile{background:linear-gradient(0deg,rgba(247,244,236,.94),rgba(247,244,236,.82))}
  html body .r-heros-corps{display:block;height:auto;padding:48px 0 56px}
  html body .r-heros-texte{width:auto;max-width:640px}
  html body .r-h1{font-size:52px;line-height:58px}
  html body .r-telephones{position:static;margin-top:40px;justify-content:center}
  html body .r-h2{font-size:38px;line-height:44px;margin-bottom:28px}
  html body .r-section{padding:72px 0 24px}
  html body .r-section-b{padding:48px 0 72px}
  html body .r-grille4{grid-template-columns:repeat(2,1fr)}
  html body .r-bande{padding-top:64px;padding-bottom:64px}
  html body .r-duo{grid-template-columns:1fr;gap:40px}
  html body .r-telephones-b{justify-content:center}
  html body .r-plan{height:420px}
  html body .r-offre{flex-direction:column;align-items:flex-start;gap:28px}
  html body .pied-grille{flex-wrap:wrap;gap:32px 48px}
  html body .pied-marque{flex:1 0 100%}
  html body .pied-col,html body .pied-col-2{flex:1 1 200px}
  html body .page-texte h1{font-size:44px;line-height:50px}
}

@media (max-width:700px){
  html body .wrap{margin-left:16px;margin-right:16px}
  html body .nav{padding:12px 16px;gap:10px 12px}
  html body .nav .logo-lien .logo-nom{font-size:26px}
  html body .nav .logo-lien .logo-signature{white-space:normal;font-size:15px}
  html body .nav .btn{flex:1 1 150px;min-height:48px;padding:0 12px;white-space:nowrap}
  html body .nav .liens{gap:0 14px;font-size:17px}
  html body .nav .liens a{display:inline-flex;align-items:center;min-height:44px}
  html body .btn{white-space:normal;text-align:center;padding-top:12px;padding-bottom:12px}
  html body .r-heros-corps{padding:32px 0 40px}
  html body .r-h1{font-size:40px;line-height:46px}
  html body .r-heros-texte .btn{flex:1 1 100%}
  html body .r-telephones,html body .r-telephones-b{gap:14px}
  html body .telephone{width:min(300px,44vw)}
  html body .r-telephones .telephone,html body .r-telephones-b .telephone{margin-top:0}
  html body .r-h2{font-size:32px;line-height:38px}
  html body .r-section{padding:56px 0 16px}
  html body .r-section-b{padding:32px 0 56px}
  html body .r-grille4{grid-template-columns:1fr}
  html body .r-bande{padding-top:48px;padding-bottom:48px}
  html body .r-plan{height:auto;min-height:420px}
  html body .r-plan .carte-ui{min-width:0}
  html body .pied-col,html body .pied-col-2{flex:1 1 100%}
  html body .pied{padding-top:40px}
  html body .page-texte{padding:40px 0 64px}
  html body .page-texte h1{font-size:36px;line-height:42px}
}

@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
