/* =====================================================================
   Méthode et contact — style Corporate réaliste
   ===================================================================== */

/* ---------- Méthode : quatre étapes, chacune avec sa scène ---------- */
.reel .methode{background:var(--clair)}
.reel .etape{border-top:none;padding-top:0}
.reel .etape-photo{margin:0 0 1.4rem;aspect-ratio:16/10;border-radius:18px;overflow:hidden;
  box-shadow:0 2px 4px rgba(20,33,61,.08),0 18px 40px -12px rgba(20,33,61,.35)}
.reel .etape-photo img{width:100%;height:100%;object-fit:cover;display:block}
.reel .etape span{color:var(--corail)}
.reel .etape h3{color:var(--marine)}
.reel .avance-m{display:none}

@supports (animation-timeline: view()) {
@media (prefers-reduced-motion: no-preference) and (min-width:900px) and (min-height:560px) {
  .reel .methode .scene{background:linear-gradient(180deg,var(--clair) 0%,#E9EEF6 100%)}
  .reel .etape{width:min(42vw,560px);margin-right:4rem;padding:0}
  .reel .etape span{font-size:7rem;line-height:.9;display:block;margin-bottom:.4rem;-webkit-text-stroke:2px var(--corail);color:transparent}
  .reel .etape h3{font-size:3.2rem;margin:.2rem 0 .6rem}
  /* La photo de chaque étape se dévoile quand l'étape entre à l'écran */
  .reel .etape-photo,.reel .etape-photo img{animation-timeline:--methode;animation-fill-mode:both;animation-timing-function:cubic-bezier(.45,0,.25,1)}
  .reel .etape-photo{animation-name:devoile-etape}
  .reel .etape-photo img{animation-name:recul-etape}
  .reel .etape:nth-child(1) .etape-photo,.reel .etape:nth-child(1) .etape-photo img{animation-range:contain -10% contain 10%}
  .reel .etape:nth-child(2) .etape-photo,.reel .etape:nth-child(2) .etape-photo img{animation-range:contain 10% contain 35%}
  .reel .etape:nth-child(3) .etape-photo,.reel .etape:nth-child(3) .etape-photo img{animation-range:contain 35% contain 60%}
  .reel .etape:nth-child(4) .etape-photo,.reel .etape:nth-child(4) .etape-photo img{animation-range:contain 60% contain 85%}
  @keyframes devoile-etape{from{clip-path:inset(0 0 0 100% round 18px)}to{clip-path:inset(0 0 0 0 round 18px)}}
  @keyframes recul-etape{from{transform:scale(1.15)}to{transform:scale(1)}}
  /* Barre d'avancement sous le rail */
  .reel .avance-m{display:block;margin:2.5rem clamp(1.25rem,5vw,4rem) 0;height:4px;border-radius:2px;background:rgba(20,33,61,.12);overflow:hidden}
  .reel .avance-m span{display:block;height:100%;background:var(--corail);transform-origin:left;
    animation:jauge-m linear both;animation-timeline:--methode;animation-range:contain 0% contain 100%}
  @keyframes jauge-m{from{transform:scaleX(0)}to{transform:scaleX(1)}}
}
}

/* ---------- Contact : vidéo plein cadre, carte en verre dépoli ---------- */
.reel .contact{position:relative;overflow:hidden;background:#0d1526}
.reel .contact-video{position:absolute;inset:0;z-index:0}
.reel .contact-video video{width:100%;height:100%;object-fit:cover;display:block}
.reel .contact-video::after{content:'';position:absolute;inset:0;background:radial-gradient(70% 70% at 50% 50%,rgba(13,21,38,.55),rgba(13,21,38,.92))}
.reel .contact-carte{position:relative;z-index:1;max-width:820px;padding:3.5rem clamp(1.5rem,5vw,4rem);border-radius:28px;
  background:rgba(20,33,61,.72);border:1px solid rgba(255,255,255,.16);box-shadow:0 40px 80px -30px rgba(0,0,0,.6)}
.reel .contact h2{color:#fff}
.reel .contact .sous{color:rgba(255,255,255,.82)}
.reel .contact .btn{border-radius:999px}
.reel .contact .btn.plein{background:var(--corail);border-color:var(--corail)}
.reel .contact .btn:hover{box-shadow:0 12px 28px -8px rgba(242,107,78,.7);transform:translateY(-2px)}

@supports (animation-timeline: view()) {
@media (prefers-reduced-motion: no-preference) {
  .reel .contact-video video{animation:approche-c linear both;animation-timeline:view();animation-range:entry 0% cover 60%}
  @keyframes approche-c{from{transform:scale(1.25)}to{transform:scale(1.02)}}
  .reel .contact-carte{animation:monte-c linear both;animation-timeline:view();animation-range:entry 10% cover 45%}
  @keyframes monte-c{from{opacity:0;transform:translateY(80px) scale(.96)}to{opacity:1;transform:none}}
  .reel .contact h2{animation:none}
}
}

/* =====================================================================
   Mobile (moins de 900 px) : tout reste lisible, sans séquence épinglée
   ===================================================================== */
@media (max-width:899px), (max-height:559px){
  .reel .hero-texte{background:linear-gradient(180deg,rgba(20,33,61,.55) 0%,rgba(20,33,61,.92) 55%)}
  .reel .hero-texte{min-height:100vh;min-height:100svh}   /* hauteur visible, barre d'adresse du téléphone comprise */
  .reel .offre{overflow-x:clip}   /* le socle du portable ne fait plus déborder la page de côté (clip : aucune zone défilante) */
  .reel .hero h1{font-size:clamp(2.6rem,11vw,3.6rem)}
  .reel .offre .scene{padding-top:5rem}
  .reel .brique{display:flex;flex-direction:column;gap:1.5rem;padding:2.5rem 0}
  .reel .fond-photo{display:block;position:relative;aspect-ratio:16/10;border-radius:18px;overflow:hidden}
  .reel .fond-photo:has(> video){align-self:stretch}   /* cadre vidéo en pleine largeur dès l'affiche : il ne rétrécit plus au démarrage de la vidéo */
  .reel .fond-photo video,.reel .fond-photo img{width:100%;height:100%;object-fit:cover}
  .reel .portable{max-width:100%}
  /* Téléphone : une offre avec ordinateur n'affiche que l'ordinateur (comme Gestion) ;
     seule l'offre sans écran (document unique) garde sa scène de fond */
  .reel .brique:not(.sans-ecran) > .fond-photo{display:none}
  .reel .telephone{right:-2%;width:26%}
  .reel .legende-fictif{color:var(--gris);bottom:-1.8rem}
  .reel .garanties .scene-g{padding:5rem 1.25rem}
  .reel .garanties .tuiles{display:grid;gap:1rem}
  .reel .illu{width:84px;height:84px}
  .reel .contact-carte{padding:2.5rem 1.25rem}
}

/* =====================================================================
   Ordinateur sans séquence épinglée : Firefox (pas d'animation-timeline)
   ou « réduire les animations » demandé par le système. Sans ces règles,
   les vidéos de fond restent masquées et chaque offre n'est qu'un texte.
   Même mise en page empilée que sur téléphone, en deux colonnes.
   ===================================================================== */
/* Repli empilé seulement quand sequences.js ne pilote pas (sinon style-firefox.css épingle) */
@supports not (animation-timeline: view()) {
@media (min-width:900px) and (min-height:560px){
  html:not(.seq) .reel .brique{display:grid;grid-template-columns:1fr 1fr;grid-template-areas:none;align-items:center;gap:2rem 4rem;padding:4rem 0}
  html:not(.seq) .reel .brique > .texte{grid-column:1;grid-row:1 / span 2}
  html:not(.seq) .reel .brique > .fond-photo,html:not(.seq) .reel .brique > .portable{grid-column:2}
  html:not(.seq) .reel .fond-photo{display:block;position:relative;aspect-ratio:16/10;border-radius:18px;overflow:hidden}
  html:not(.seq) .reel .fond-photo video,html:not(.seq) .reel .fond-photo img{width:100%;height:100%;object-fit:cover}
}
}
@media (prefers-reduced-motion: reduce) and (min-width:900px) and (min-height:560px){
  .reel .brique{display:grid;grid-template-columns:1fr 1fr;grid-template-areas:none;align-items:center;gap:2rem 4rem;padding:4rem 0}
  .reel .brique > .texte{grid-column:1;grid-row:1 / span 2}
  .reel .brique > .fond-photo,.reel .brique > .portable{grid-column:2}
  .reel .fond-photo{display:block;position:relative;aspect-ratio:16/10;border-radius:18px;overflow:hidden}
  .reel .fond-photo video,.reel .fond-photo img{width:100%;height:100%;object-fit:cover}
}
