/* ============================================================
   HOME — accueil
   ============================================================ */

/* ---------- HERO ---------- */
.hero{
  position:relative; height:100vh; min-height:640px;
  display:flex; flex-direction:column; justify-content:flex-end;
  overflow:hidden; background: var(--noir);
}
.hero-slides{ position:absolute; inset:0; z-index:0; }
.hero-slides .slide{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  opacity:0; transform: scale(1.18);
  transition: opacity 1.6s var(--ease), transform 7s linear;
}
.hero-slides .slide.active{ opacity:1; transform: scale(1.02); z-index:1; }
.hero-slides .slide-video{ width:100%; height:100%; object-fit:cover; object-position:center; background-size:cover; background-position:center; }
.hero::after{
  content:''; position:absolute; inset:0; z-index:2;
  background: linear-gradient(180deg, rgba(22,22,21,.55) 0%, rgba(22,22,21,.18) 38%, rgba(22,22,21,.78) 100%);
}
.hero-content{
  position:relative; z-index:3; padding: 0 5vw 6.5rem;
}
.hero-eyebrow{
  color: var(--sage-light); font-size: var(--fs-small); letter-spacing:.3em; text-transform:uppercase;
  font-weight:700; margin-bottom:1.4rem; display:flex; align-items:center; gap:.8rem;
}
.hero-eyebrow::before{ content:''; width:36px; height:1.5px; background: var(--sage-light); }
.hero h1{
  color:#fff; font-size: clamp(2.4rem, 6.4vw, 5.6rem); font-weight:800; line-height:1.02;
  letter-spacing:-.02em; max-width: 16ch; margin:0;
}
.hero-foot{
  display:flex; justify-content:space-between; align-items:flex-end; gap:2rem;
  margin-top:2.6rem; flex-wrap:wrap;
}
.hero-sub{ color: rgba(255,255,255,.78); max-width:380px; font-size:1.02rem; line-height:1.65; }
.scroll-cue{
  display:flex; flex-direction:column; align-items:center; gap:.6rem;
  color: rgba(255,255,255,.7); font-size:.72rem; letter-spacing:.2em; text-transform:uppercase;
}
.scroll-cue .line{ width:1.5px; height:46px; background: rgba(255,255,255,.35); overflow:hidden; position:relative; }
.scroll-cue .line::after{
  content:''; position:absolute; top:-100%; left:0; width:100%; height:100%;
  background: var(--sage-light); animation: scrollDrip 1.8s ease-in-out infinite;
}
@keyframes scrollDrip{ 0%{ top:-100%; } 60%{ top:100%; } 100%{ top:100%; } }

@media (max-width: 640px){
  .hero{ height: 100vh; height: 100svh; min-height: 480px; }
  .hero-slides .slide{ background-position: center 25%; }
  .hero-slides .slide-video{ object-position: center 25%; }
  .hero-eyebrow{ margin-bottom:.7rem; }
  .hero-content{ padding: 0 5vw 1.8rem; }
  .hero h1{ font-size: clamp(1.7rem, 7.5vw, 2.6rem); }
  .hero-foot{ flex-direction:column; gap:.8rem; align-items:flex-start; margin-top:1.2rem; }
  .hero-sub{ font-size:.86rem; line-height:1.5; }
  .hero-dots{ display:none; }
  .scroll-cue{ display:none; }
}

.hero-dots{ position:absolute; right:5vw; top:50%; transform:translateY(-50%); z-index:3; display:flex; flex-direction:column; gap:.6rem; }
.hero-dots span{ width:6px; height:6px; border-radius:50%; background: rgba(255,255,255,.35); transition: all .5s var(--ease); }
.hero-dots span.active{ background:#fff; height:22px; border-radius:4px; }

/* ---------- STATS / chiffres clés ---------- */
.stats{
  background: var(--creme);
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}
.stats-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.stat{
  text-align:center; padding: 2.4rem 1rem; position:relative;
}
.stat:not(:last-child)::after{
  content:''; position:absolute; right:-1rem; top:18%; bottom:18%; width:1px; background: rgba(60,60,59,.14);
}
.stat::before{
  content:''; display:block; width:34px; height:4px; border-radius:4px; background: var(--anthracite); margin: 0 auto .9rem;
}
.stat-number{
  font-size: clamp(3.2rem, 7vw, 5.6rem); font-weight:800; color: var(--sage-dark);
  line-height:1; letter-spacing:-.02em; display:flex; justify-content:center; align-items:baseline; gap:.2rem;
}
.stat-number .suffix{ font-size: .42em; color: var(--sage-dark); font-weight:700; }
.stat-label{ margin-top:.9rem; font-size:.92rem; color: var(--anthracite); font-weight:600; max-width:220px; margin-inline:auto; }

@media (max-width: 760px){
  .stats-grid{ grid-template-columns: repeat(3,1fr); gap: .6rem; }
  .stat:not(:last-child)::after{ display:none; }
  .stat{ padding: 1.2rem .4rem; }
  .stat-number{ font-size: clamp(1.8rem, 7vw, 3.2rem); }
  .stat-label{ font-size: .72rem; max-width:none; margin-top:.5rem; }
  .stat::before{ margin-bottom:.5rem; }
}

/* ---------- SERVICES bulles ---------- */
.services-intro{ background: var(--anthracite); color:#fff; position:relative; overflow:hidden; }
.services-intro .section-head{ max-width:760px; }
.services-intro .section-head h2{ color:#fff; }
.services-intro .section-head h2 em{ color: var(--sage-light); font-style:normal; }
.services-intro .section-head p{ color: rgba(247,246,242,.66); font-size: var(--fs-lead); margin-top:1rem; }

.bubbles{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
}
.bubble{
  position:relative; padding: 2.6rem 1.8rem 2.2rem;
  border-radius: 30px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  transition: transform .55s var(--ease), background .55s var(--ease), border-color .55s var(--ease);
  cursor:pointer;
}
.bubble:hover{
  transform: translateY(-10px) rotate(-0.6deg);
  background: var(--sage);
  border-color: var(--sage);
}
.bubble:hover .bubble-icon{ background: var(--anthracite); transform: scale(1.08) rotate(8deg); }
.bubble:hover .bubble-icon svg path, .bubble:hover .bubble-icon svg circle, .bubble:hover .bubble-icon svg rect{ stroke:#fff; }
.bubble:hover h3, .bubble:hover p{ color: var(--anthracite); }
.bubble-icon{
  width:64px; height:64px; border-radius:50%;
  background: rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:1.6rem; transition: all .55s var(--ease);
}
.bubble-icon svg{ width:30px; height:30px; }
.bubble-icon svg path, .bubble-icon svg circle, .bubble-icon svg rect{
  stroke: var(--sage-light); fill:none; stroke-width:1.6; transition: stroke .4s;
}
.bubble h3{ font-size:1.18rem; font-weight:700; margin:0 0 1rem; transition: color .4s; }
.bubble .subs{ display:flex; flex-wrap:wrap; gap:.5rem; }
.bubble .subs span{
  font-size:.76rem; line-height:1.3; padding:.4rem .8rem; border-radius:100px;
  background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14);
  color: rgba(247,246,242,.72); transition: background .4s, border-color .4s, color .4s;
}
.bubble:hover .subs span{ background: rgba(22,22,21,.12); border-color: rgba(22,22,21,.22); color: var(--anthracite); }

@media (max-width: 900px){ .bubbles{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){
  .stats{ padding: clamp(1.6rem, 4vw, 2.4rem) 0; }
  .stats-grid{ gap: .4rem; }
  .stat{ padding: .9rem .3rem; }
  .stat-number{ font-size: clamp(1.4rem, 6vw, 2.2rem); }
  .stat-label{ font-size: .62rem; margin-top:.3rem; }
}
@media (max-width: 600px){
  .bubbles{ grid-template-columns: repeat(2,1fr); gap:.9rem; }
  .bubble{ padding: 1rem .8rem 1rem; border-radius:16px; min-width:0; }
  .bubble-icon{ width:36px; height:36px; margin-bottom:.7rem; }
  .bubble-icon svg{ width:18px; height:18px; }
  .bubble h3{ font-size:.76rem; overflow-wrap:break-word; word-break:break-word; }
  .bubble .subs span{ font-size:.58rem; padding:.2rem .38rem; }
}
@media (max-width: 400px){
  .bubble h3{ font-size:.7rem; }
  .bubbles{ gap:.6rem; }
  .bubble{ padding:.8rem .65rem .8rem; }
  .bubble-icon{ width:30px; height:30px; margin-bottom:.5rem; }
  .bubble-icon svg{ width:15px; height:15px; }
}

/* ---------- PARTENAIRES ---------- */
.partners{ background: var(--creme); }
.partners-marquee{
  overflow:hidden; position:relative; margin-top:1rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partners-track{
  display:flex; gap: 3.4rem; width:max-content;
  animation: marquee 26s linear infinite;
}
.partners-track:hover{ animation-play-state: paused; }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
.partner-card{
  display:flex; align-items:center; gap:.9rem;
  padding: 1.4rem 2rem; border:1px solid rgba(60,60,59,.14); border-radius:100px;
  white-space:nowrap; transition: border-color .4s, background .4s;
}
.partner-card:hover{ border-color: var(--sage); background:#fff; }
.partner-mark{
  width:38px; height:38px; border-radius:50%; background: #fff;
  color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:.82rem;
  overflow:hidden; border:1px solid rgba(60,60,59,.12); padding:6px; flex-shrink:0;
}
.partner-mark img, .partner-mark svg{ width:100%; height:100%; object-fit:contain; }
.partner-mark--word{ border-radius:8px; font-size:.78rem; letter-spacing:-.01em; padding:0 .15rem; }
.partner-card--photo{
  width:230px; height:84px; box-sizing:border-box;
  padding: 1rem 1.6rem; gap:0; background:#fff;
  justify-content:center; align-items:center; flex-shrink:0;
}
.partner-card--photo img{ width:100%; height:100%; object-fit:contain; display:block; }
.partner-card--photo img[alt="BigMat"]{ object-fit:cover; object-position:center; }
.partner-card--photo:has(img[alt="Bechtle"]){ padding: 0; overflow:hidden; }
.partner-card--photo img[alt="Bechtle"]{ transform: scale(2); }
.partner-card--photo:has(img[alt="Hansgrohe"]){ padding: .2rem .5rem; }
.partner-card--photo:has(img[alt="Carrefour City"]){ padding: .5rem 1rem; }
.partner-card--photo:has(img[alt="Uvex"]){ padding: .2rem .5rem; }
.partner-card span{ font-weight:700; color: var(--anthracite); font-size:.98rem; }

/* ---------- PROMESSE ---------- */
.promise{ background: var(--anthracite); color:#fff; overflow:hidden; }
.promise .tag{ color: var(--sage-light); justify-content:flex-start; }
.promise .tag::before{ background: var(--sage-light); }
.promise-grid{
  display:grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items:center;
}
.promise-photo{ border-radius: var(--radius); overflow:hidden; aspect-ratio: 4/5; }
.promise-photo img{ width:100%; height:100%; object-fit:cover; }
.promise-text{ text-align:left; }
.promise-steps{
  display:flex; justify-content:flex-start; align-items:center; flex-wrap:wrap; gap: clamp(1rem,4vw,3.4rem);
  margin: 2.6rem 0 1.8rem;
}
/* promise-step base rules AVANT les media queries — garantit que les overrides mobiles l'emportent sur la cascade */
.promise-step{ position:relative; }
.promise-step h3{
  font-size: clamp(2.4rem, 7vw, 5.2rem); font-weight:800; margin:0; letter-spacing:-.02em;
  color: rgba(247,246,242,.18); transition: color .5s var(--ease), transform .5s var(--ease);
  cursor:default;
}
.promise-step:hover h3{ color: var(--sage-light); transform: translateY(-6px); }
.promise-sub{ color: rgba(247,246,242,.6); font-size: var(--fs-lead); max-width:520px; margin: 0 auto; }

.promise-cta{
  display:inline-flex; align-items:center; gap:.55rem;
  text-decoration:none; color:#fff;
  font-weight:600; font-size:.95rem; letter-spacing:.02em;
}
.promise-cta-text{
  text-decoration:underline; text-underline-offset:5px;
  text-decoration-thickness:1.5px; text-decoration-color: rgba(255,255,255,.5);
  background: linear-gradient(90deg,
    #fff 0%, #fff 20%,
    var(--sage-light) 40%, var(--sage-light) 60%,
    #fff 80%, #fff 100%
  );
  background-size: 220% 100%;
  background-clip: text; -webkit-background-clip: text; color: transparent;
  animation: sweepGreenPromise 2s linear infinite;
}
.promise-cta-arrow{ color:#fff; }
@keyframes sweepGreenPromise{
  0%   { background-position: 100% center; }
  100% { background-position: -50% center; }
}

/* ============================================================
   RESPONSIVE — media queries TOUJOURS après les règles de base
   ============================================================ */
@media (max-width: 640px){
  .promise-grid{ grid-template-columns:1fr; gap:1.4rem; }
  .promise-text{ text-align:center; }
  .promise-text .tag, .promise-steps{ justify-content:center; }
  .promise-steps{ gap:.9rem; margin: 1.6rem 0 1.2rem; }
  .promise-step h3{ font-size: clamp(1.8rem, 9vw, 2.8rem); }
  .promise-photo{ aspect-ratio:16/9; }
  .promise-sub{ font-size:.9rem; }
  .hero-content{ padding: 0 5vw 1.8rem; }
  .hero h1{ font-size: clamp(1.7rem, 7.5vw, 2.4rem); }
  .hero-sub{ font-size:.84rem; line-height:1.5; }
}
@media (max-width: 480px){
  .hero{ min-height: 420px; }
  .hero h1{ font-size: clamp(1.45rem, 7vw, 2rem); }
  .hero-content{ padding: 0 5vw 1.4rem; }
  .hero-foot{ margin-top:.9rem; gap:.6rem; }
  .hero-sub{ font-size:.8rem; }
  .stats-grid{ gap:.3rem; }
  .stat{ padding:.7rem .2rem; }
  .stat-number{ font-size: clamp(1.2rem, 5.5vw, 1.8rem); }
  .stat-label{ font-size: .56rem; }
  .partner-card--photo{ width:155px; height:62px; padding: .7rem 1rem; }
  .hero-eyebrow{ font-size: .65rem; }
}
