/* V19 — responsive uniquement. La version ordinateur (> 900px) de la V18 reste intacte.
   Les animations et les données des téléphones sont conservées. */
.v19-icon{width:1em;height:1em;display:inline-block;vertical-align:-.13em;flex-shrink:0;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;fill:none;pointer-events:none}
.v19-icon--spark{vertical-align:-.08em}
.v19-icon--arrow{stroke-width:1.55}
.v19-icon--spark{stroke-width:1.25}
.v19-icon--diamond{stroke-width:1.35}
@media(max-width:900px){
  .container{width:min(100% - 48px,700px)}
  .section-pad{padding-block:74px}
  .hero-grid{grid-template-columns:minmax(0,1fr);gap:10px}
  .hero-art{width:min(100%,510px);margin-inline:auto}
  .hero h1{font-size:clamp(46px,7vw,66px)}
  .world-pair{grid-template-columns:minmax(0,1fr);max-width:630px;margin-inline:auto;gap:24px}
  .gateway{min-height:590px}
  .gateway-books-art,.gateway-sms-art{height:350px}
  .gateway-books-art .gw-book-one{left:11% !important}
  .gateway-books-art .gw-book-two{left:33% !important}
  .gateway-books-art .gw-book-three{left:57% !important}
  .gateway-books-art img{width:31% !important;max-width:none}
  .feature-layout,.event-layout,.about-layout,.sms-intro-grid,.story-detail-layout,.sms-transition-layout,.club-page-grid,.about-page-layout{grid-template-columns:minmax(0,1fr);gap:42px}
  .feature-stage,.event-art,.about-pic{width:min(100%,560px);margin-inline:auto}
  .feature-stage{height:500px}
  .feature-copy h2,.event-copy h2,.about-copy h2{font-size:clamp(38px,5.3vw,53px)}
  .sms-intro-grid{gap:20px}
  .sms-intro-art{margin-inline:auto;width:min(100%,550px)}
  .story-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
  .club-inner h2{font-size:clamp(46px,7vw,67px)}
  .club-decor.deco-one{font-size:67px;top:30px;left:3%;opacity:.45}
  .event-spark .v19-icon,.small-symbol .v19-icon{width:1em;height:1em}
  .arrow-circle .v19-icon{width:27px;height:27px}
  .button .v19-icon,.text-link .v19-icon{width:1.25em;height:1.25em}
}
@media(max-width:650px){
  .container{width:calc(100% - 36px)}
  .section-pad{padding-block:58px}
  .section-heading{margin-bottom:28px}
  .section-heading h2{font-size:clamp(34px,8.4vw,43px);line-height:1.13}
  .section-heading p{font-size:14px;line-height:1.72}
  .eyebrow{letter-spacing:.14em}
  .hero-grid{padding:36px 0 14px;gap:10px}
  .hero h1{font-size:clamp(38px,9.8vw,46px);line-height:1.14;letter-spacing:-.047em;margin:18px 0}
  .hero .lead{font-size:13px;line-height:1.75;margin-bottom:24px}
  .hero-actions{gap:15px;flex-wrap:wrap}
  .hero-actions .button{width:auto;min-width:min(100%,230px)}
  .hero-art{height:410px;max-width:355px;scale:1 !important;margin:18px auto 0 !important;transform-origin:center center}
  .hero-art .hero-phone{--phone-width:186px;--phone-height:389px;--phone-text-size:8px}
  .hero-papercard{width:139px !important;left:0 !important;top:38px !important;padding:15px 12px 17px !important;z-index:4}
  .hero-papercard strong{font-size:18px !important;padding-right:15px !important;padding-bottom:12px !important;line-height:1.15}
  .hero-papercard>span{font-size:5.8px !important;line-height:1.5}
  .hero-papercard .papercard-heart{font-size:18px !important;right:9px !important;bottom:7px !important}
  .hero-papercard::before{left:50% !important;transform:translateX(-50%) rotate(-8deg) !important;width:50px !important}
  .hero-ring{left:6%;width:315px;height:315px}
  .ring-two{left:12%;width:270px;height:270px}
  .worlds{padding-top:62px}
  .world-pair{gap:20px}
  .gateway{min-height:0}
  .gateway-top{font-size:8px;letter-spacing:.10em;line-height:1.4;gap:8px}
  .gateway-books-art{height:284px !important;overflow:hidden}
  .gateway-sms-art{height:320px !important;overflow:hidden}
  .gateway-books-art img{width:35% !important;height:222px !important;object-fit:contain}
  .gateway-books-art .gw-book-one{left:8% !important;top:39px !important}
  .gateway-books-art .gw-book-two{left:32% !important;top:32px !important}
  .gateway-books-art .gw-book-three{left:57% !important;top:40px !important}
  .gateway-copy{padding:10px 22px 27px}
  .gateway-copy h3{font-size:clamp(29px,7.8vw,35px);margin:14px 0}
  .gateway-foot{align-items:center}
  .gateway-foot p{font-size:12px;line-height:1.6}
  .arrow-circle{width:44px;height:44px;font-size:23px}
  .gateway-sms-art .gateway-phone{--phone-width:152px !important;--phone-height:307px !important}
  .feature-layout,.event-layout,.about-layout{gap:35px}
  .feature-stage{height:390px}
  .feature-frame{max-width:100%}
  .feature-copy h2{font-size:clamp(34px,8.8vw,40px);line-height:1.15;letter-spacing:-.045em;margin:16px 0 25px}
  .feature-copy h3{font-size:clamp(30px,8vw,37px)}
  .feature-copy>p{line-height:1.75}
  .feature-stamp{width:89px;height:89px;font-size:18px;bottom:23px;right:22px}
  .small-symbol{font-size:31px;right:25px;top:26px}
  .event-art{height:250px}
  .event-ticket{width:min(83%,340px);min-height:250px;padding:24px;scale:.84}
  .event-spark{font-size:34px;top:0;right:8%}
  .event-copy h2{font-size:clamp(34px,8.6vw,40px);line-height:1.17}
  .event-copy p{font-size:14px;line-height:1.85}
  .about-copy h2{font-size:clamp(34px,8.5vw,41px)}
  .club-inner h2{font-size:clamp(36px,9.2vw,44px);line-height:1.2;margin:25px 0 20px}
  .club-section .club-decor.deco-one{left:auto;right:13px;top:17px;font-size:42px;opacity:.45;z-index:0}
  .club-inner{position:relative;z-index:1}
  .club-inner>p{font-size:14px;line-height:1.8}
  .club-perks{font-size:12px;gap:8px 16px;line-height:1.7}
  .join-fields input,.join-fields select{min-height:52px}
  .sms-intro{padding:48px 0 55px}
  .sms-intro h1{font-size:clamp(39px,10vw,49px);line-height:1.16}
  .sms-intro-art{height:465px;max-width:355px;overflow:hidden}
  .sms-intro-art .sms-page-phone{--phone-width:211px;--phone-height:434px}
  .sms-side-note{font-size:19px;right:4%}
  .story-grid{grid-template-columns:minmax(0,1fr) !important;gap:20px}
  .story-card{max-width:450px;width:100%;margin-inline:auto}
  .story-card-main{padding:19px 22px 23px}
  .story-card-top{font-size:10px;line-height:1.4;letter-spacing:.1em}
  .story-card .iphone-card-phone{--phone-width:150px !important;--phone-height:290px !important;margin:19px auto 23px !important}
  .story-card .iphone-card-phone .iphone-story-box{min-height:72px;margin:auto 9px;width:calc(100% - 18px);padding:8px}
  .story-card .iphone-card-phone .iphone-story-box strong{font-size:11px}
  .story-card .iphone-card-phone .iphone-story-box small{font-size:8px}
  .story-card .iphone-card-phone .imessage-header{padding-top:23px}
  .story-card .iphone-card-phone .header-title{font-size:8.9px}
  .story-card .iphone-card-phone .header-subtitle{font-size:6px}
  .story-card-bottom h3{font-size:27px;margin:14px 0 4px}
  .story-card-bottom p{font-size:12px;margin-bottom:14px}
  .story-card-bottom>span{font-size:12px}
  .story-showcase{height:420px}
  .story-detail-layout{gap:30px}
  .story-detail-copy h1{font-size:clamp(39px,10vw,48px)}
  .story-follow h2,.sms-transition-layout h2{font-size:clamp(36px,9.1vw,45px);line-height:1.18}
  .transition-note{padding:28px;min-height:280px}
  .transition-note b{font-size:clamp(40px,10vw,52px)}
  .transition-note i{font-size:52px;right:16px;top:15px}
  .subhero h1{font-size:clamp(38px,9.4vw,49px)}
  .books-toolbar h2{font-size:clamp(36px,9vw,45px)}
  .detail-copy h1{font-size:clamp(39px,10vw,49px)}
  .mini-club h2{font-size:clamp(36px,9vw,44px)}
  .club-page-copy h1,.about-page-copy h1{font-size:clamp(40px,10vw,49px)}
  .club-form-card h2{font-size:clamp(36px,9vw,44px)}
  .button{min-height:50px}
  .button,.text-link{gap:16px}
  .footer-top{gap:30px 24px}
  .footer-top a{min-height:35px;display:inline-flex;align-items:center}
  .mb-cd-headline{font-size:18px}
  .mb-cd-timer{justify-content:center}
  .mb-cd-link .v19-icon{height:1.15em;width:1.15em}
}
@media(max-width:375px){
  .hero-art{max-width:324px;scale:1 !important;margin-inline:auto !important}
  .hero-papercard{width:130px !important;left:0 !important}
  .hero-papercard strong{font-size:17px !important}
  .hero-art .hero-phone{--phone-width:176px;--phone-height:365px;--phone-text-size:7.6px}
  .hero-art{height:385px}
  .gateway-books-art img{height:215px !important;width:35% !important}
  .gateway-books-art .gw-book-one{left:8% !important}
  .gateway-copy h3{font-size:29px}
  .feature-copy h2{font-size:33px}
  .story-card .iphone-card-phone{--phone-width:146px !important;--phone-height:285px !important}
}
/* Respect du choix système ; les animations validées sont inchangées hors reduced motion. */
@media(prefers-reduced-motion:reduce){
  .v19-icon{animation:none!important}
}
/* Composition séparée du post-it et du téléphone sur écrans étroits :
   aucun des deux n'empiète sur le contenu de l'autre. */
@media(max-width:650px){
  .hero-art .hero-phone{
    position:absolute;right:2px;top:8px;
    transform:rotate(6deg) translateY(0);
    animation:v19-mobile-phone-float 8.5s ease-in-out infinite;
  }
}
@media(max-width:375px){
  .hero-art .hero-phone{right:1px;top:7px}
}
@keyframes v19-mobile-phone-float{
  0%,100%{transform:rotate(6deg) translateY(0)}
  50%{transform:rotate(6deg) translateY(-6px)}
}
@media(prefers-reduced-motion:reduce){
  .hero-art .hero-phone{animation:none!important}
}
/* Tablettes paysage / petits ordinateurs : espace sûr, sans toucher au
   rendu desktop 13 pouces (>= 1101px). */
@media(min-width:901px) and (max-width:1100px){
  .gateway-books-art .gw-book-one{left:7%}
  .gateway-books-art .gw-book-two{left:31%}
  .gateway-books-art .gw-book-three{left:56%}
  .gateway-books-art img{width:36%}
  .world-pair{gap:20px}
  .gateway-copy h3{font-size:clamp(28px,2.8vw,32px)}
  .story-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* ===============================================================
   V20 · Correctifs recette mobile Safari iPhone
   =============================================================== */
@media(max-width:650px){
  /* CTA : aligner le départ du texte avec les boutons arrondis */
  .text-link{
    padding-left:27px;
  }

  /* Hero : sécuriser la lecture des bulles iPhone */
  .hero-phone .message-bubble.received{
    padding-left:12px;
    margin-left:2px;
  }
  .hero-phone .message-bubble.received::before{left:-7px}
  .hero-phone .message-bubble.received::after{left:-10px}

  /* Bulle emoji du hero : pas de queue parasite sur Safari */
  .hero-phone .message-bubble-emoji::before,
  .hero-phone .message-bubble-emoji::after{
    display:none !important;
    content:none !important;
  }
  .hero-phone .message-bubble-emoji{
    border-bottom-right-radius:18px !important;
    padding-inline:9px !important;
  }

  /* Deux portes : réactiver l'animation mobile validée */
  .gateway-books-art .gw-book{
    animation-duration:6.8s !important;
    animation-timing-function:ease-in-out !important;
    animation-iteration-count:infinite !important;
    animation-fill-mode:both !important;
  }
  .gateway-books-art .gw-book-one{animation-name:site-books-gather-loop-one !important;}
  .gateway-books-art .gw-book-two{animation-name:site-books-gather-loop-two !important;}
  .gateway-books-art .gw-book-three{animation-name:site-books-gather-loop-three !important;}
  .gateway-sms-art .gateway-phone{
    animation:site-gateway-phone-sway 6.8s ease-in-out infinite !important;
  }

  /* Deux portes : corriger la teinte/position de la queue des bulles grises */
  .gateway-phone .message-bubble.received::before{
    left:-6px !important;
    background:#241a28 !important;
  }
  .gateway-phone .message-bubble.received::after{
    left:-9px !important;
    background:#09050b !important;
  }

  /* Roman du moment : pastille plus lisible sur mobile */
  .feature-stamp{
    background:rgba(248,239,244,.92);
    border-color:#8b5d74;
    box-shadow:0 10px 22px rgba(78,47,64,.18);
  }

  /* Projet A&D : mock-up un peu plus présent */
  .upcoming-project-mockup{
    max-width:232px !important;
  }

  /* Footer : réaligner le bloc marque sur la colonne */
  .footer .brand-footer{
    margin-left:-1px;
    min-width:0;
  }
  .footer .brand-footer span{
    padding-left:0;
  }
}

@media(prefers-reduced-motion:reduce){
  .gateway-books-art .gw-book,
  .gateway-sms-art .gateway-phone{
    animation:none !important;
  }
}
