/* ==========================================================================
   Animation d'arrivée « Trois roues » (2,5 s) — pilotée par intro.js
   Sur fond blanc, une ligne de sol se trace ; une roue turquoise arrive en roulant, rejointe par deux autres :
   les trois roues du véhicule. Elles se rangent, puis le logo Cobrane se découvre au-dessus et la barre
   tricolore (fabriqué en France) se déroule dessous ; l'écran se lève et découvre la page.
   Jouée seulement si html.cb-intro-on (script du <head>) : une fois par session, jamais si « réduire les animations ».
   ========================================================================== */
#cb-intro{display:none}
.cb-intro-on #cb-intro{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;cursor:pointer;background:#fff;
  clip-path:inset(0 0 0 0);animation:cb-leve .65s cubic-bezier(.7,0,.3,1) 1.85s forwards}
.cb-intro-lock,.cb-intro-lock body{overflow:hidden}

.cb-intro__scene{position:relative;width:min(80vw,420px);display:flex;flex-direction:column;align-items:center;animation:cb-recul .65s cubic-bezier(.7,0,.3,1) 1.85s forwards}
.cb-intro__logo{width:100%;height:auto;clip-path:inset(0 100% 0 0);animation:cb-devoile .55s cubic-bezier(.6,0,.2,1) 1.05s forwards}
.cb-intro__sol{position:relative;width:100%;height:64px;margin-top:18px}
.cb-intro__ligne{position:absolute;left:0;right:0;bottom:0;height:3px;background:#1E2223;transform:scaleX(0);transform-origin:left;animation:cb-trace .5s cubic-bezier(.4,0,.2,1) .05s forwards}
.cb-intro__tricolore{position:absolute;left:0;right:0;bottom:0;height:3px;display:flex}
.cb-intro__tricolore i{flex:1;transform:scaleX(0);transform-origin:left}
.cb-intro__tricolore i:nth-child(1){background:#002395;animation:cb-trace .22s ease-out 1.3s forwards}
.cb-intro__tricolore i:nth-child(2){background:#fff;animation:cb-trace .22s ease-out 1.44s forwards}
.cb-intro__tricolore i:nth-child(3){background:#ED2939;animation:cb-trace .22s ease-out 1.58s forwards}

/* Les trois roues : arrivent de la gauche en roulant (la rotation suit la distance), s'arrêtent côte à côte */
.cb-intro__roue{position:absolute;bottom:3px;width:58px;height:58px;color:#3FB1B5;transform:translateX(-70vw)}
.cb-intro__roue svg{width:100%;height:100%;animation:cb-tourne .9s cubic-bezier(.2,.7,.25,1) both}
.cb-intro__roue--1{left:calc(50% + 50px);animation:cb-roule .9s cubic-bezier(.2,.7,.25,1) .15s forwards}
.cb-intro__roue--2{left:calc(50% - 29px);animation:cb-roule .9s cubic-bezier(.2,.7,.25,1) .27s forwards}
.cb-intro__roue--3{left:calc(50% - 108px);animation:cb-roule .9s cubic-bezier(.2,.7,.25,1) .39s forwards}
.cb-intro__roue--1 svg{animation-delay:.15s}.cb-intro__roue--2 svg{animation-delay:.27s}.cb-intro__roue--3 svg{animation-delay:.39s}

@keyframes cb-roule{from{transform:translateX(-70vw)}to{transform:translateX(0)}}
@keyframes cb-tourne{from{transform:rotate(-900deg)}to{transform:rotate(0)}}
@keyframes cb-trace{to{transform:scaleX(1)}}
@keyframes cb-devoile{to{clip-path:inset(0 0 0 0)}}
@keyframes cb-leve{to{clip-path:inset(0 0 100% 0)}}
@keyframes cb-recul{to{transform:translateY(-36px);opacity:0}}

/* Entrée du haut de page après l'intro */
.cb-intro-hold .hero__texte,.cb-intro-hold .hero__media{opacity:0;transform:translateY(22px)}
.cb-intro-revealed .hero__texte,.cb-intro-revealed .hero__media{transition:opacity .7s ease,transform .7s cubic-bezier(.2,.8,.2,1)}
.cb-intro-revealed .hero__media{transition-delay:.12s}
