/* Mobile refinements for Gestion PVJM — 2026-10-13 */
@media (max-width: 640px){
  /* Hero: explain first, ask for action later */
  .hero{padding:34px 0 34px}
  .hero-copy{max-width:none}
  .hero .eyebrow{margin-bottom:12px}
  .hero h1{font-size:clamp(2.25rem,10.8vw,3.35rem);line-height:1.01;letter-spacing:-.05em}
  .lead{font-size:1rem;line-height:1.55;margin:18px 0 24px}
  .hero-actions{display:none!important}
  .trust-row{margin-top:8px;padding-top:20px;border-top:1px solid rgba(16,24,40,.08);gap:16px 12px}
  .trust-row span{padding-left:12px}
  .trust-row b{font-size:1rem}
  .trust-row small{font-size:.78rem}

  /* The dark panel must never overlap itself on iPhone */
  .hero-grid{gap:28px}
  .hero-panel{
    min-height:0;
    padding:64px 18px 20px;
    border-radius:26px;
    display:grid;
    gap:12px;
    overflow:hidden;
  }
  .hero-panel-label{left:20px;top:21px}
  .hero-monogram{right:18px;top:10px;font-size:5.2rem}
  .panel-card,
  .panel-card-1,
  .panel-card-2,
  .panel-card-3{
    position:relative;
    inset:auto;
    top:auto;
    right:auto;
    bottom:auto;
    left:auto;
    width:100%;
    padding:17px 18px;
    animation:none;
    transform:none;
    border-radius:18px;
    background:rgba(255,255,255,.085);
  }
  .panel-card:hover{transform:none}
  .panel-card .icon{width:34px;height:34px;margin-bottom:8px}
  .panel-card strong{font-size:1.05rem;margin:0 0 4px}
  .panel-card small{font-size:.89rem;line-height:1.45}
  .hero-panel-foot{display:none}

  /* First three themes: no more repeated 01/02/03 cards */
  .quick-services{padding:18px 0 54px;background:#f6f8fb}
  .cards-3{gap:12px}
  .feature-num{display:none}
  .feature-card{
    min-height:0;
    padding:24px 22px 24px 72px;
    border-radius:20px;
    box-shadow:none;
    overflow:visible;
  }
  .feature-card:after{display:none}
  .feature-card .feature-icon{
    left:20px;
    right:auto;
    top:24px;
    width:36px;
    height:36px;
  }
  .feature-card h2{font-size:1.14rem;margin:0 0 5px}
  .feature-card p{font-size:.91rem;line-height:1.5}
  .feature-card:nth-child(1){border-left:3px solid var(--accent)}
  .feature-card:nth-child(2){background:var(--navy);border-color:var(--navy);color:#fff}
  .feature-card:nth-child(2) p{color:#d0d7e2}
  .feature-card:nth-child(2) .feature-icon{background:rgba(255,255,255,.1);color:#fff}
  .feature-card:nth-child(3){background:#fff8f2;border-color:#efddcd}

  /* Services: editorial list, no false click affordance */
  .services .section-head{margin-bottom:22px}
  .service-grid{gap:0;border-top:1px solid var(--line)}
  .service-card,
  .service-card.service-card-accent{
    min-height:0;
    padding:24px 0 24px 18px;
    border:0;
    border-bottom:1px solid var(--line);
    border-radius:0;
    background:transparent;
    box-shadow:none;
    overflow:visible;
  }
  .service-card::before{
    content:"";
    position:absolute;
    left:0;
    top:27px;
    width:3px;
    height:28px;
    border-radius:4px;
    background:linear-gradient(180deg,var(--accent),rgba(181,106,45,.22));
  }
  .service-card:hover{transform:none;box-shadow:none;border-bottom-color:var(--line)}
  .service-card>span{display:none}
  .service-card h3{font-size:1.06rem;margin:0 0 6px}
  .service-card p{font-size:.91rem;line-height:1.5}
  .service-card>i{display:none!important}

  .process-grid{gap:18px}
  .process-grid article{display:grid;grid-template-columns:44px 1fr;column-gap:14px;align-items:start}
  .process-grid article>span{grid-column:1;grid-row:1 / span 2;margin:0}
  .process-grid article h3{grid-column:2;margin:0 0 4px}
  .process-grid article p{grid-column:2}
  .process-line{display:none}

  .section{padding:62px 0}
  .about{padding-top:68px}

  /* Footer: copyright and location on one centered line */
  .footer-bottom{
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    gap:10px!important;
    flex-wrap:nowrap!important;
  }
  .footer-bottom span{
    display:inline!important;
    width:auto!important;
    text-align:center!important;
    white-space:nowrap!important;
  }
}

/* iPhone only: replace the desktop-style stacked application visual with a clean vertical showcase.
   Desktop and other devices are intentionally unchanged. */
@media (max-width: 640px){
  .is-iphone .applications .app-showcase{
    padding:28px 18px 24px;
    border-radius:26px;
    gap:24px;
  }
  .is-iphone .applications .app-copy h2{
    font-size:2.15rem;
    line-height:1.02;
  }
  .is-iphone .applications .app-copy p{
    font-size:.95rem;
    line-height:1.55;
  }
  .is-iphone .applications .app-stack{
    display:grid;
    gap:12px;
    margin:0;
  }
  .is-iphone .applications .mini-app,
  .is-iphone .applications .mini-app:nth-child(1),
  .is-iphone .applications .mini-app:nth-child(2),
  .is-iphone .applications .mini-app:nth-child(3),
  .is-iphone .applications .mini-app:nth-child(4),
  .is-iphone .applications .mini-app:nth-child(5){
    width:100%;
    margin:0;
    transform:none;
    padding:15px;
    border-radius:18px;
    box-shadow:0 10px 24px rgba(0,0,0,.13);
    background:rgba(255,255,255,.09);
    border:1px solid rgba(255,255,255,.12);
  }
  .is-iphone .applications .mini-app-head{
    gap:12px;
    align-items:center;
  }
  .is-iphone .applications .mini-icon{
    width:42px;
    height:42px;
    flex:0 0 42px;
    border-radius:13px;
    font-size:19px;
  }
  .is-iphone .applications .mini-app-head strong{
    font-size:1rem;
    line-height:1.15;
  }
  .is-iphone .applications .mini-app-head small{
    font-size:.78rem;
    line-height:1.3;
  }
  .is-iphone .applications .mini-agenda,
  .is-iphone .applications .mini-metrics,
  .is-iphone .applications .weather-row,
  .is-iphone .applications .simulator-strip{
    margin-top:12px;
  }
  .is-iphone .applications .mini-agenda span,
  .is-iphone .applications .mini-metrics span,
  .is-iphone .applications .weather-row span,
  .is-iphone .applications .simulator-strip span{
    min-width:0;
  }
  .is-iphone .applications .nutri-score-bar{
    margin-top:12px;
    border-radius:9px;
  }
  .is-iphone .applications .nutri-score-bar span{
    padding:8px 0;
    font-size:14px;
  }
}

@media (max-width: 390px){
  .feature-card{padding-left:66px}
  .feature-card .feature-icon{left:18px}
  .is-iphone .applications .app-showcase{padding-left:15px;padding-right:15px}
}
