/* Atlas Club · « Soutenez l'atelier IT mobile » — v3.1 (29/09/2026), namespace .am3.
   Recalé sur les dimensions du site : conteneur 1200 px / 48 px (20 px ≤ 768), titres --fs-h2, CTA --btn-h-lg en pilule, rayons --radius-*.
   Assets réels uniquement : assets/mobile/explorer/exterieur.jpg (camionnette), assets/acm26/atlas-boy.webp (PNG officiel détouré), assets/club/acm-*.jpg.
   Aucune animation permanente : entrées ≤ 420 ms + survols. */
#atlas-mobile.am3{--am3-navy:#0a1a4a;--am3-ink:#2b4373;--am3-blue:#1d4ed8;--am3-blue2:#2563eb;--am3-cyan:#0891b2;--am3-orange:#f97316;--am3-line:rgba(37,99,235,.13);--am3-ease:cubic-bezier(.22,1,.36,1);position:relative;padding:92px 0;background:linear-gradient(180deg,#fff 0%,#f5f8ff 100%);overflow:clip}
.am3-wrap{max-width:1200px;margin:0 auto;padding:0 48px;display:grid;grid-template-columns:minmax(0,60fr) minmax(0,40fr);gap:20px;align-items:stretch}
/* ── grande carte ── */
.am3-hero{position:relative;isolation:isolate;overflow:hidden;min-height:580px;border-radius:var(--radius-xl,24px);border:1px solid var(--am3-line);background:radial-gradient(70% 60% at 100% 0,rgba(59,130,246,.10),transparent 70%),linear-gradient(165deg,#fff 0%,#f6f9ff 55%,#edf3ff 100%);box-shadow:0 36px 72px -48px rgba(15,40,110,.4),0 2px 6px rgba(15,40,110,.04)}
.am3-bg{position:absolute;inset:-24px;z-index:0;background:url(mobile/explorer/exterieur.jpg) 70% 30%/cover no-repeat;filter:blur(16px) saturate(1.05);opacity:.18;-webkit-mask:linear-gradient(105deg,transparent 35%,#000 85%);mask:linear-gradient(105deg,transparent 35%,#000 85%);pointer-events:none}
.am3-curves{position:absolute;inset:0;z-index:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.am3-curves path{fill:none;vector-effect:non-scaling-stroke}
.am3-curves .c1{stroke:rgba(59,130,246,.2);stroke-width:22;stroke-linecap:round}
.am3-curves .c2{stroke:rgba(249,115,22,.5);stroke-width:2;stroke-linecap:round}
.am3-copy{position:relative;z-index:3;width:min(100%,400px);padding:36px 0 0 36px;box-sizing:content-box}
.am3-pill{display:inline-flex;align-items:center;gap:8px;padding:6px 14px 6px 11px;border-radius:var(--radius-pill,999px);background:#eaf1ff;border:1px solid rgba(37,99,235,.14);font-family:'Space Grotesk',sans-serif;font-size:.75rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--am3-blue)}
.am3-pill i{width:7px;height:7px;border-radius:50%;background:var(--am3-orange);box-shadow:0 0 0 3px rgba(249,115,22,.16)}
#atlas-mobile .am3-copy h2{margin:16px 0 0;font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:clamp(1.75rem,1.3rem + 1.5vw,2.35rem);line-height:1.04;letter-spacing:-.03em;color:var(--am3-navy);text-wrap:balance}
#atlas-mobile .am3-copy h2 span{display:block;background:linear-gradient(95deg,var(--am3-blue) 0%,var(--am3-blue2) 45%,var(--am3-cyan) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;padding-bottom:.06em}
.am3-bar{display:block;width:104px;height:3px;margin:14px 0 18px;border-radius:3px;background:linear-gradient(90deg,var(--am3-blue2),var(--am3-orange));transform-origin:left}
#atlas-mobile .am3-copy p{margin:0 0 24px;font-size:1rem;line-height:1.6;color:var(--am3-ink);text-wrap:pretty}
.am3-cta{display:inline-flex;align-items:center;gap:10px;height:var(--btn-h-lg,54px);padding:0 26px;border-radius:var(--radius-pill,999px);font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:.98rem;color:#fff;text-decoration:none;white-space:nowrap;background:linear-gradient(135deg,#d6520f,#bf3f0b);box-shadow:0 14px 30px -14px rgba(234,88,12,.75),0 1px 0 rgba(255,255,255,.25) inset;transition:transform .25s var(--am3-ease),box-shadow .25s var(--am3-ease),filter .25s}
.am3-cta:hover{color:#fff;transform:translateY(-2px);filter:brightness(1.06);box-shadow:0 20px 40px -14px rgba(234,88,12,.85),0 0 24px -6px rgba(249,115,22,.5),0 1px 0 rgba(255,255,255,.3) inset}
.am3-cta:active{transform:translateY(0);filter:brightness(.97)}
.am3-cta svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s var(--am3-ease)}
.am3-cta:hover svg{transform:translateX(3px)}
/* ── visuel : camionnette + Atlas Boy ── */
.am3-visual{position:absolute;inset:0;z-index:2;pointer-events:none}
.am3-van{position:absolute;left:0;bottom:0;width:66%;aspect-ratio:16/9;margin:0;-webkit-mask:linear-gradient(to bottom,transparent 0,#000 26%,#000 92%,transparent 100%),linear-gradient(to right,transparent 0,#000 12%,#000 84%,transparent 100%);-webkit-mask-composite:source-in;mask:linear-gradient(to bottom,transparent 0,#000 26%,#000 92%,transparent 100%),linear-gradient(to right,transparent 0,#000 12%,#000 84%,transparent 100%);mask-composite:intersect}
.am3-van img{display:block;width:100%;height:100%;object-fit:cover;filter:saturate(1.04) brightness(1.05)}
.am3-van::after{content:'';position:absolute;inset:0;background:linear-gradient(155deg,rgba(255,255,255,.9) 0%,rgba(255,255,255,.4) 26%,rgba(255,255,255,0) 50%),linear-gradient(to top,rgba(246,249,255,.55) 0%,rgba(246,249,255,0) 20%)}
.am3-boy{position:absolute;right:4%;bottom:0;height:62%;aspect-ratio:540/900}
.am3-boy::before{content:'';position:absolute;left:12%;right:6%;bottom:-2%;height:7%;border-radius:50%;background:radial-gradient(closest-side,rgba(10,26,74,.3),transparent);filter:blur(4px)}
.am3-boy img{position:relative;display:block;height:100%;width:auto;filter:drop-shadow(0 18px 22px rgba(10,30,90,.22));transition:translate .4s var(--am3-ease)}
.am3-hero:hover .am3-boy img{translate:0 -3px}
.am3-pin{position:absolute;top:9%;right:9%;width:48px;height:48px;display:grid;place-items:center;border-radius:var(--radius-l,16px);background:#fff;border:1px solid var(--am3-line);box-shadow:0 14px 28px -16px rgba(15,40,110,.45)}
.am3-pin svg{width:22px;height:22px;fill:rgba(249,115,22,.16);stroke:var(--am3-orange);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.am3-route{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.am3-route path{fill:none;stroke:rgba(37,99,235,.4);stroke-width:1.5;stroke-dasharray:5 7;stroke-linecap:round;vector-effect:non-scaling-stroke}
/* ── cartes d'action ── */
.am3-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:1fr 1fr;gap:16px}
.am3-card{position:relative;display:flex;flex-direction:column;padding:10px 10px 58px;border-radius:var(--radius-xl,24px);border:1px solid var(--am3-line);background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 18px 38px -30px rgba(15,40,110,.36);text-decoration:none;color:inherit;transition:transform .3s var(--am3-ease),box-shadow .3s var(--am3-ease),border-color .3s}
.am3-card:hover{transform:translateY(-3px);border-color:rgba(37,99,235,.24);box-shadow:0 26px 48px -30px rgba(15,40,110,.46)}
.am3-card:focus-visible{outline:3px solid var(--am3-orange);outline-offset:3px}
.am3-media{position:relative;display:block;overflow:hidden;border-radius:var(--radius-l,16px);aspect-ratio:16/10;background:#e8eefb;flex:none}
.am3-media img{display:block;width:100%;height:100%;object-fit:cover;transition:scale .5s var(--am3-ease)}
.am3-card:hover .am3-media img{scale:1.04}
.am3-ico{position:relative;z-index:1;width:44px;height:44px;margin:-24px 0 0 10px;display:grid;place-items:center;border-radius:var(--radius-m,12px);background:#eaf1ff;box-shadow:0 0 0 5px #fff,0 10px 20px -12px rgba(15,40,110,.5);transition:scale .3s var(--am3-ease);flex:none}
.am3-card:hover .am3-ico{scale:1.04}
.am3-ico svg{width:21px;height:21px;fill:none;stroke:var(--am3-blue2);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.am3-body{display:flex;flex-direction:column;min-width:0;padding:0 6px}
#atlas-mobile .am3-card h3{margin:12px 0 0;font-family:'Space Grotesk',sans-serif;font-size:1.04rem;font-weight:700;letter-spacing:-.01em;line-height:1.2;color:var(--am3-navy);text-wrap:balance}
.am3-card h3::after{content:'';display:block;width:22px;height:3px;margin-top:8px;border-radius:3px;background:var(--am3-orange)}
#atlas-mobile .am3-card p{margin:8px 0 0;font-size:.875rem;line-height:1.5;color:var(--am3-ink);text-wrap:pretty}
.am3-go{position:absolute;right:14px;bottom:14px;width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#fff3ea;transition:background .25s}
.am3-go svg{width:15px;height:15px;fill:none;stroke:#c2410c;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s var(--am3-ease)}
.am3-card:hover .am3-go{background:#ffe6d3}
.am3-card:hover .am3-go svg{transform:translateX(3px)}
/* ── entrées (une fois, ≤ 420 ms) ── */
@keyframes am3Up{from{opacity:0;translate:0 14px}to{opacity:1;translate:0 0}}
@keyframes am3Side{from{opacity:0;translate:-22px 0}to{opacity:1;translate:0 0}}
@keyframes am3Bar{from{transform:scaleX(.15)}to{transform:scaleX(1)}}
.am3-hero.reveal.visible .am3-van{animation:am3Side .42s var(--am3-ease) .1s both}
.am3-hero.reveal.visible .am3-boy{animation:am3Up .42s var(--am3-ease) .22s both}
.am3-hero.reveal.visible .am3-pin{animation:am3Up .4s var(--am3-ease) .34s both}
.am3-hero.reveal.visible .am3-bar{animation:am3Bar .42s var(--am3-ease) .2s both}
.am3-cards.reveal{opacity:1;transform:none;transition:none}
.am3-cards.reveal.visible .am3-card{animation:am3Up .42s var(--am3-ease) both}
.am3-cards.reveal.visible .am3-card:nth-child(2){animation-delay:.06s}
.am3-cards.reveal.visible .am3-card:nth-child(3){animation-delay:.12s}
.am3-cards.reveal.visible .am3-card:nth-child(4){animation-delay:.18s}
/* ── sombre ── */
body.atlas-dark #atlas-mobile.am3,html.atlas-dark #atlas-mobile.am3{--am3-navy:#fff;--am3-ink:#c9d6f2;--am3-blue:#93c5fd;--am3-blue2:#60a5fa;--am3-cyan:#67e8f9;--am3-line:rgba(96,165,250,.18);background:#060e2b!important}
body.atlas-dark .am3-hero,html.atlas-dark .am3-hero{background:radial-gradient(70% 60% at 100% 0,rgba(59,130,246,.18),transparent 70%),linear-gradient(165deg,#10204f 0%,#0c1a44 60%,#0a1640 100%)!important;box-shadow:0 40px 80px -48px rgba(0,0,0,.8)}
body.atlas-dark .am3-bg,html.atlas-dark .am3-bg{opacity:.12}
body.atlas-dark .am3-van::after,html.atlas-dark .am3-van::after{background:linear-gradient(155deg,rgba(12,26,68,.9) 0%,rgba(12,26,68,.45) 26%,rgba(12,26,68,0) 50%),linear-gradient(to top,rgba(10,22,64,.5) 0%,rgba(10,22,64,0) 20%)}
body.atlas-dark .am3-pill,html.atlas-dark .am3-pill{background:rgba(96,165,250,.14);border-color:rgba(96,165,250,.3)}
body.atlas-dark .am3-pin,html.atlas-dark .am3-pin{background:#13265c}
body.atlas-dark .am3-route path,html.atlas-dark .am3-route path{stroke:rgba(147,197,253,.5)}
body.atlas-dark .am3-curves .c1,html.atlas-dark .am3-curves .c1{stroke:rgba(96,165,250,.14)}
body.atlas-dark .am3-card,html.atlas-dark .am3-card{background:linear-gradient(180deg,rgba(19,37,92,.85),rgba(12,26,68,.85))!important;box-shadow:0 18px 38px -26px rgba(0,0,0,.8)}
body.atlas-dark .am3-media,html.atlas-dark .am3-media{background:#13265c}
body.atlas-dark .am3-ico,html.atlas-dark .am3-ico{background:#16306f;box-shadow:0 0 0 5px #122457,0 10px 20px -12px rgba(0,0,0,.7)}
body.atlas-dark .am3-go,html.atlas-dark .am3-go{background:rgba(249,115,22,.16)}
body.atlas-dark .am3-go svg,html.atlas-dark .am3-go svg{stroke:#fdba74}
/* ── tablette (≤ 1080) : carte pleine largeur, 4 cartes en ligne puis 2×2 ── */
@media(max-width:1080px){
  .am3-wrap{grid-template-columns:minmax(0,1fr);gap:16px}
  .am3-hero{min-height:500px}
  .am3-copy{width:min(52%,420px)}
  .am3-van{left:auto;right:-3%;width:60%}
  .am3-boy{height:78%;right:8%}
  .am3-pin{right:5%}
  .am3-cards{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:auto}
}
@media(max-width:900px){.am3-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.am3-media{aspect-ratio:16/9}}
@media(max-width:768px){#atlas-mobile.am3{padding:60px 0}.am3-wrap{padding:0 20px}}
/* ── mobile (≤ 640) : texte → visuel → liste compacte ── */
@media(max-width:640px){
  .am3-hero{min-height:0;display:flex;flex-direction:column;border-radius:var(--radius-xl,24px)}
  .am3-copy{width:auto;padding:26px 22px 4px;box-sizing:border-box}
  #atlas-mobile .am3-copy p{font-size:.95rem;margin-bottom:20px}
  .am3-cta{width:100%;justify-content:center;height:var(--btn-h-lg,54px)}
  .am3-visual{position:relative;inset:auto;height:clamp(220px,62vw,300px)}
  .am3-van{width:94%;left:-6%}
  .am3-boy{height:86%;right:2%}
  .am3-pin{width:40px;height:40px;border-radius:var(--radius-m,12px);top:6%;right:5%}.am3-pin svg{width:19px;height:19px}
  .am3-route,.am3-bg,.am3-curves{display:none}
  .am3-cards{grid-template-columns:minmax(0,1fr);gap:10px}
  .am3-card{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;column-gap:14px;padding:10px 12px 10px 10px;border-radius:var(--radius-l,16px);min-height:108px}
  .am3-media{grid-row:1;grid-column:1;aspect-ratio:1;border-radius:var(--radius-m,12px)}
  .am3-ico{grid-row:1;grid-column:1;align-self:end;justify-self:end;width:32px;height:32px;margin:0 -6px -6px 0;border-radius:10px;box-shadow:0 0 0 3px #fff,0 6px 12px -6px rgba(15,40,110,.5)}
  .am3-ico svg{width:16px;height:16px}
  .am3-body{grid-row:1;grid-column:2;padding:0 34px 0 0}
  #atlas-mobile .am3-card h3{margin:0;font-size:1rem}
  .am3-card h3::after{width:18px;margin-top:6px}
  #atlas-mobile .am3-card p{margin-top:6px;padding:0;font-size:.85rem;line-height:1.45}
  .am3-go{top:50%;bottom:auto;right:12px;margin-top:-16px}
  body.atlas-dark .am3-ico,html.atlas-dark .am3-ico{box-shadow:0 0 0 3px #122457}
}
@media(hover:none){.am3-card:hover,.am3-cta:hover{transform:none}}
@media(prefers-reduced-motion:reduce){.am3-hero.reveal.visible *,.am3-cards.reveal.visible .am3-card{animation:none!important}.am3-card,.am3-cta,.am3-media img,.am3-boy img,.am3-ico,.am3-go svg,.am3-cta svg{transition:none}.am3-card:hover,.am3-cta:hover{transform:none}.am3-hero:hover .am3-boy img{translate:none}}
