/* mobile.css
   Load with: media="(max-width: 768px)"
   This file should contain ONLY mobile overrides.
*/

body {
  margin: 0;
  width: 100%;
  padding-top: 120px;
  overflow-x: hidden;

  background-attachment: scroll;
}


.contact-link.is-active .contact-tooltip {
  display: block;
}
.contact-link:hover .contact-tooltip {
  display: block;
}
.contact-link:active 
.contact-tooltip,
.contact-link:focus-within .contact-tooltip {
  display: block;
}

.intro {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 40px auto;
  padding: 24px 12px;
  box-sizing: border-box;
  text-align: center;
}
.intro p {
  text-align: center;
}

.intro-content h1 {
  font-size: 2rem;
  letter-spacing: 4px;
}
.intro-content p {
  font-size: 1rem;
  padding: 0 10px;
}

/* ---- PAGE CONTENT (mobile) ---- */
.page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 12px 34px;
  box-sizing: border-box;
}



/* ---- PHOTO FRAME ---- */
.photo-frame {
  display: block;
  width: calc(100% - 24px);
  max-width: 500px;
  margin: 0 auto 24px;
  box-sizing: border-box;
}
.photo-frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  box-sizing: border-box;
}



/* ---- PROCESS ---- */
.process-svg-wrap {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}
.process-svg {
  display: block;
  width: 100%;
  height: auto;
}
.product-grid{
  grid-template-columns: 1fr;
}
.section {
  padding: 16px;
  border-radius: 14px;
}
.section-title {
  font-size: 20px;
}

/* SUBNAV (mobile hamburger) */
.mobile-subnav-logo {
  display: none !important;
}
.mobile-subnav-logo img {
  height: 46px;
  width: auto;
  display: block;
}
.subnav {
  position: fixed !important;
  top: 70px !important;
  left: 0;
  width: 100%;
  height: 50px;
  background: #f0f0f0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.subnav-toggle {
  position: absolute;
  left: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 44px;
  border: 0;
  background: transparent;
  font-size: 24px;
  z-index: 100001;
  color: #222;
}
.subnav-list {
  position: fixed !important;
  display: none;
  top: 120px !important;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 12px 26px 18px;
  list-style: none;
  background: #f0f0f0;
  border-bottom: 1px solid rgba(0,0,0,0.10);
  box-sizing: border-box;
  z-index: 99998;
}
.subnav.is-open .subnav-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.subnav.is-open .subnav-close {
  display: block;
}
.subnav-list li {
  padding: 0;
}
.subnav a {
  display: block;
  font-size: 16px;
  color: #222;
  text-decoration: none;
}
.subnav-close {
  display: block;
  text-align: center;
  margin-top: 10px;
}
.subnav-icon {
  display: inline-block;
  font-size: 28px;
  line-height: 1;
}
/* ---- PAGE BASE ---- */
.subnav-close img {
  height: 32px;
  opacity: 0.7;
}
.subnav-toggle .subnav-icon {
  font-size: 34px;
}


/* ---- TOP BAR (mobile) ---- */
.topbar-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}


/* ---- TITLE IMAGE (mobile) ---- */
.topbar-title-image {
  height: 46px;
  width: auto;
  display: block;
}
/* match desktop padding to prevent clipping on mobile too */
.topbar {
  display: flex !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: #f0f0f0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}


/* YouTube Shorts: slightly tighter spacing on mobile */
.yt-short {
  margin: 6px 0 14px;
}
.yt-short-frame {
  width: 180px;
}

/* === Deux menus déroulants, sans en-tête ni hamburger === */
body { padding-top: 0; }
.page { padding-top: 70px; }
.header-menus { top: 12px; right: 12px; gap: 8px; }
.header-menu-button {
  min-width: 92px;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 13px;
}
.header-menu-panel { min-width: 195px; max-width: calc(100vw - 24px); }


/* === Adaptation mobile : Contact, Liens et page détaillée === */
.header-menus { top: 10px; right: 10px; gap: 6px; }
.header-menu-button { min-width: 0; min-height: 39px; padding: 8px 10px; font-size: 12px; gap: 8px; border-radius: 10px; }
.header-menu-panel { min-width: 0; width: max-content; max-width: calc(100vw - 20px); }
#contact-menu .header-menu-panel { left: 50%; right: auto; transform: translateX(-50%); }
#links-menu .header-menu-panel { right: 0; }
.rayons-page { padding: 85px 13px 70px; }
.rayons-hero { margin: 0 auto 27px; }
.rayons-hero h1 { font-size: clamp(34px, 9vw, 47px); }
.rayons-eyebrow { font-size: 9px; letter-spacing: .15em; }
.rayons-hero p { font-size: 14px; max-width: 310px; }
.rayons-section { padding: 25px 18px 27px; border-radius: 18px; margin: 15px auto; }
.rayons-section-head p, .rayons-editorial > p { font-size: 14px; line-height: 1.7; }
.rayons-price-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.rayons-price { padding: 16px 13px; min-height: 123px; }
.rayons-price strong { font-size: 30px; }
.rayons-steps > li { grid-template-columns: 40px minmax(0,1fr); padding: 14px 12px; gap: 10px; }
.rayons-step-number { width: 36px; height: 36px; font-size: 14px; border-radius: 11px; }
.rayons-steps h3 { font-size: 15px; }
.rayons-steps p { font-size: 13px; }
.rayons-duration { display: block; margin: 3px 0 0; }
.rayons-principles { grid-template-columns: 1fr; gap: 10px; }
.rayons-principle { padding: 18px; }
.rayons-durability { flex-direction: column; align-items: start; gap: 15px; padding: 18px; }
.rayons-stat { flex-basis: auto; text-align: left; }
.rayons-stat strong { font-size: 30px; }
.rayons-quote { font-size: 16px; padding: 13px 15px; }

/* === Logo lime, en haut à gauche — tablettes et mobiles === */
.site-home-logo {
  top: 6px;
  left: 9px;
  width: 145px;
  max-width: none;
}
.site-home-logo img { width: 100%; min-width: 0; }
.page { padding-top: 88px; }
.rayons-page { padding-top: 106px; }
.header-menus { top: 10px; }

/* Petits téléphones : menus sur la ligne inférieure, sans chevaucher le logo. */
@media (max-width: 580px) {
  .site-home-logo { top: 5px; left: 8px; width: 160px; }
  .header-menus { top: 79px; right: 10px; }
  .page { padding-top: 134px; }
  .rayons-page { padding-top: 146px; }
}


/* === Accueil : même présentation que les cadres de la page Rayons === */
.home-page {
  padding: 103px 13px 64px;
}
.home-announcement {
  padding: 25px 18px 27px;
  border-radius: 18px;
}
.home-announcement h1 {
  font-size: clamp(25px, 6.5vw, 32px);
  margin: 12px 0 20px;
}
.home-announcement .rayons-section-head p {
  font-size: 14px;
  line-height: 1.7;
}
@media (max-width: 580px) {
  .home-page { padding-top: 145px; }
}


/* === Menu Services de l’accueil : doigt, petit écran, centrage === */
.home-services-feature { margin-top: 20px; padding: 0 8px 36px; }
.home-services-menu .header-menu-button { min-width: 158px; min-height: 47px; padding: 10px 16px; font-size: 15px; }
.home-services-menu .header-menu-panel { left: 50%; right: auto; transform: translateX(-50%); width: max-content; min-width: min(292px, calc(100vw - 32px)); max-width: calc(100vw - 32px); }
.rayons-back-link { margin-bottom: 12px; }


/* Accueil : liste déroulante centrée et utilisable au toucher. */
.home-page .home-menu-list {
  width: min(100%, 366px);
  margin-top: 20px;
  gap: 11px;
  padding: 0 8px 36px;
}
.home-menu-list .header-menu-button,
.home-menu-list .home-services-menu .header-menu-button {
  width: 100%;
  min-height: 49px;
  min-width: 0;
  padding: 11px 17px;
  font-size: 15px;
}
.home-menu-list .header-menu .header-menu-panel,
.home-menu-list #contact-menu .header-menu-panel,
.home-menu-list #links-menu .header-menu-panel,
.home-menu-list .home-services-menu .header-menu-panel {
  position: static;
  left: auto;
  right: auto;
  top: auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  transform: none;
}
@media (max-width: 580px) {
  /* Le menu fixe a quitté l'accueil : garder seulement l'espace du logo. */
  .home-page { padding-top: 108px; }
}


/* ========================================================================
  VERSION MOBILE: fond néon vélo, menus seuls + QR code fonctionnel.
  Conserve les styles des pages détaillées.
  ======================================================================== */
body.home-landing {
  padding-top: 0;
  min-height: 100svh;
  background-color: #0b0326;
  background-image: url("../images/background/neon-mobile.png");
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}
.home-landing .site-home-logo {
  top: 9px;
  left: 12px;
  width: clamp(105px, 25vw, 150px);
  z-index: 1001;
}
.home-landing .home-page {
  box-sizing: border-box;
  padding: clamp(155px, 21vh, 220px) 12px 70px;
  min-height: 100svh;
}
.home-landing .home-menu-list {
  width: min(69vw, 350px);
  margin: 0 auto;
  padding: 0;
  gap: 12px;
}
.home-landing .home-menu-list .header-menu-button,
.home-landing .home-menu-list .home-services-menu .header-menu-button {
  width: 100%;
  min-height: 54px;
  padding: 11px 14px;
  font-size: clamp(15px, 4.1vw, 19px);
  background: linear-gradient(125deg,rgba(42,10,89,.96),rgba(5,23,73,.97));
  border: 2px solid #b660f8;
  border-radius: 14px;
  box-shadow: 0 0 18px rgba(173,65,245,.36),inset 0 1px 0 rgba(255,255,255,.15);
}
.home-landing .home-menu-list .header-menu-button .header-menu-chevron {
  width: 9px;
  height: 9px;
  flex-basis: 9px;
}
.home-landing .home-menu-list .header-menu-panel {
  background: linear-gradient(145deg,rgba(32,10,78,.98),rgba(8,22,69,.99));
  box-shadow: 0 0 18px rgba(151,48,242,.3);
}
.home-landing .home-qr-card {
  width: min(70vw, 345px);
  margin: 25px auto 0;
  padding: 15px 14px 18px;
  border-radius: 19px;
}
.home-landing .home-qr-label {
  font-size: clamp(15px,4vw,20px);
  margin-bottom: 12px;
}
.home-landing .home-qr-image-link {
  width: min(100%, 245px);
  border-radius: 11px;
  padding: 5px;
  margin-bottom: 10px;
}
.home-landing .home-qr-web-link {
  font-size: clamp(15px,4.2vw,20px);
}
@media (max-width: 360px) {
  .home-landing .home-page { padding-top: 145px; }
  .home-landing .home-menu-list { width: min(73vw,290px); }
  .home-landing .home-qr-card { width: min(76vw,290px); }
  .home-landing .home-menu-list .header-menu-button { min-height: 50px; }
}


/* Accueil : portrait et présentation adaptés aux petits écrans. */
.home-landing .home-page { padding: 108px 14px 52px; }
.home-intro-card {
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
  border-radius: 20px;
}
.home-intro-photo { align-self: start; border-radius: 14px; }
.home-intro-content h1 { font-size: clamp(23px, 4.2vw, 30px); }
.home-intro-content > p:not(.home-intro-eyebrow) { font-size: 14px; }
.home-landing .home-menu-list { width: min(100%, 370px); margin-top: 22px; }
@media (max-width: 620px) {
  .home-landing .home-page { padding: 108px 12px 46px; }
  .home-intro-card { display: flex; flex-direction: column; gap: 20px; padding: 22px 20px 25px; }
  .home-intro-photo { width: 176px; aspect-ratio: 4 / 4.7; align-self: center; }
  .home-intro-content { width: 100%; }
  .home-intro-eyebrow { font-size: 10px; margin-bottom: 10px; text-align: center; }
  .home-intro-content h1 { font-size: clamp(24px, 6.4vw, 31px); text-align: center; margin-bottom: 16px; }
  .home-intro-content > p:not(.home-intro-eyebrow) { font-size: 15px; line-height: 1.6; }
  .home-appointment { margin-top: 19px; }
  .home-contact-cta { width: 100%; justify-content: center; }
  .home-landing .home-menu-list { width: min(100%, 340px); }
}
@media (max-width: 360px) {
  .home-landing .home-page { padding: 93px 9px 35px; }
  .home-intro-card { padding: 19px 16px 22px; }
  .home-intro-photo { width: 146px; }
  .home-intro-content h1 { font-size: 23px; }
}


/* FORMULAIRE DE CONTACT : confort de lecture sur téléphone. */
.contact-landing .site-home-logo { top: 9px; left: 12px; width: clamp(105px,25vw,150px); }
.contact-landing .contact-page { padding: 110px 14px 55px; }
.contact-landing .contact-card { padding: 26px 22px; border-radius: 20px; }
.contact-form-grid { grid-template-columns: 1fr; gap: 17px; }
.contact-submit { width: 100%; justify-content: center; min-height: 48px; }
@media (max-width: 620px) {
  .home-direct-contact { margin-top: 18px; }
  .contact-landing .contact-page { padding: 108px 12px 48px; }
  .contact-landing .contact-card { padding: 24px 19px; }
  .contact-intro { font-size: 15px; }
}
@media (max-width: 360px) {
  .contact-landing .contact-page { padding: 93px 9px 38px; }
  .contact-landing .contact-card { padding: 23px 16px; }
}


/* Miniature et annonce sur une même ligne, même sur smartphone. */
.home-landing .home-intro-card { grid-template-columns: minmax(0, 1fr); }
.home-workshop-inline { gap: 14px; }
.home-intro-card .home-intro-photo-workshop { flex-basis: 80px; width: 80px; align-self: center; }
.home-workshop-inline p { font-size: 15px; }
@media (max-width: 620px) { .home-intro-card .home-intro-photo-workshop { flex-basis: 70px; width: 70px; } .home-workshop-inline { gap: 12px; } }
