/* Accueil : diaporama du haut de page et effet sur les tubes (demande de Manu du 27/10).
   Feuille propre à l'accueil : site.css est au budget de 50 Ko. */

/* Règles de l'accueil sorties de site.css le 02/11/2026 (budget CSS de 50 Ko par page catalogue) : classes présentes
   seulement dans templates/pages/accueil.php, dans l'ordre où elles étaient, avant les effets ci-dessous. */
.sec-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:8px 16px;margin-bottom:14px}
.arrows{display:flex;gap:10px}
.more{font-weight:700;white-space:nowrap}
.arrow{width:46px;height:46px;border-radius:50%;border:2px solid var(--bordeaux);background:var(--blanc);color:var(--bordeaux);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.arrow:hover{background:var(--bordeaux);color:var(--blanc)}
.track{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:6px 2px 22px}
.track::-webkit-scrollbar{display:none}
.track>*{scroll-snap-align:start;flex:none}
.track-types{gap:14px}
.sun-ring{position:relative;width:124px;height:138px;display:flex;align-items:flex-end;justify-content:center}
.sun-ring::before{content:"";position:absolute;left:50%;bottom:8px;width:112px;height:112px;margin-left:-56px;border-radius:50%;background:radial-gradient(circle at 38% 28%,#FFE2B0 0%,#FBC274 45%,#F59A3C 100%);box-shadow:0 12px 24px -14px rgba(128,44,51,.6);transition:transform .25s}
.sun-ring::after{content:"";position:absolute;bottom:2px;left:50%;width:70px;height:10px;margin-left:-35px;border-radius:50%;background:radial-gradient(ellipse,rgba(58,36,34,.25),transparent 70%)}
.sun-ring img{position:relative;z-index:1;height:118px;width:auto;max-width:96px;object-fit:contain;margin-bottom:8px;filter:drop-shadow(0 6px 6px rgba(58,36,34,.25));transition:transform .25s}
.type:hover .sun-ring::before{transform:scale(1.07)}
.type:hover .sun-ring img{transform:translateY(-4px)}
.kiosk{gap:24px;padding-top:24px}
.kiosk .pic{z-index:1;margin-left:34px}
.kiosk .pcard{width:calc((min(100vw,1240px) - 40px - 4*24px)/5);min-width:210px}
.hero-rings{position:absolute;inset:0;background:repeating-radial-gradient(circle at 72% 118%,rgba(255,255,255,0) 0 38px,rgba(255,255,255,.22) 38px 40px);pointer-events:none}
.hero-in{display:flex;flex-wrap:wrap;align-items:center;gap:10px 40px;padding-top:56px;position:relative}
.hero-txt{flex:1 1 420px;min-width:0;padding-bottom:64px;display:flex;flex-direction:column;gap:18px;align-items:flex-start}
.hero-h1{margin:0;font:800 54px/.98 var(--titre);color:var(--bordeaux);letter-spacing:-.02em;text-wrap:balance}
.hero-p{margin:0;font-size:17px;max-width:50ch}
.hero-btns{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.hero-avis{margin:0;font-size:14px;color:var(--texte-3);display:flex;align-items:center;gap:8px}
.hero-visual{flex:1 1 440px;min-width:0;position:relative;height:380px;display:flex;align-items:flex-end;justify-content:center;text-decoration:none}
.hero-visual .sun{position:absolute;width:470px;height:470px;border-radius:50%;background:radial-gradient(circle at 38% 28%,#FFC062 0%,#FBA735 28%,#F07E22 62%,#E26500 82%);box-shadow:0 0 90px 30px rgba(251,167,53,.55),0 0 200px 80px rgba(251,167,53,.25);bottom:-240px;left:50%;transform:translateX(-50%)}
.hero-pack{position:relative;display:flex;align-items:flex-end;gap:4px;padding-bottom:26px}
.hero-pack img{height:236px;width:auto;filter:drop-shadow(var(--ombre-x,0px) 18px 14px rgba(58,36,34,.35))}
.hero-pack img.big{height:280px;position:relative;z-index:1}
.hero-pack img.tilt-l{transform:translateY(-38px) rotate(-5deg);margin-right:-10px;filter:drop-shadow(var(--ombre-x,0px) 14px 10px rgba(58,36,34,.28))}
.hero-pack img.tilt-r{transform:translateY(-38px) rotate(5deg);margin-left:-10px;filter:drop-shadow(var(--ombre-x,0px) 14px 10px rgba(58,36,34,.28))}
.sticker{position:absolute;top:14px;right:10px;width:132px;height:132px;border-radius:50%;background:var(--bordeaux);color:var(--blanc);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;transform:rotate(10deg);box-shadow:0 16px 30px -12px rgba(58,36,34,.6);font:600 14px/1.15 var(--corps);z-index:2;padding:10px}
.sticker-new{font:800 22px/1 var(--titre);color:var(--orange-clair)}
.pro-wrap{position:relative;z-index:3}
.pro-p{margin:0;max-width:72ch;display:flex;gap:14px;align-items:center}
.pro-p strong{color:var(--bordeaux)}
.pro-dot{width:44px;height:44px;border-radius:50%;flex:none;background:var(--soleil);display:flex;align-items:center;justify-content:center;font:700 15px/1 var(--titre);color:var(--sur-orange)}
.promos-glow{position:absolute;right:-120px;top:-60px;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle at 40% 30%,rgba(251,167,53,.55),rgba(226,101,0,.15) 60%,transparent 70%);pointer-events:none}
.promos-in{padding-top:30px;padding-bottom:56px;position:relative}
.promos .sec-head{margin-bottom:22px}
.h2-light{color:var(--blanc)}
.lead-light{color:var(--creme-2)}
.promo-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px;padding-bottom:8px}
.promo-grid .pcard{width:auto}
.lots-t{font:800 26px/1 var(--titre)}
.lots-p{font-size:14.5px;line-height:1.4}
.lots-cta{font-weight:700;display:flex;align-items:center;gap:6px}
.allpromos{display:flex;flex-direction:column;gap:10px;border-radius:22px;padding:20px 16px;background:var(--bordeaux-nuit);box-shadow:inset 0 0 0 1px rgba(248,230,191,.18)}
.allpromos-t{font:800 24px/1 var(--titre);color:var(--blanc);margin-bottom:4px}
.chip{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-radius:14px;background:var(--blanc);color:var(--texte);text-decoration:none;font-weight:700;box-shadow:0 6px 14px -10px rgba(128,44,51,.5)}
.chip:hover{color:var(--bordeaux);transform:translateX(3px)}
.chip-badge{color:var(--orange);font-weight:800}
.sec-top{padding-top:60px}
.sec-top .sec-head{margin-bottom:8px}
.sec-new{padding-top:64px}
.sec-new .sec-head{margin-bottom:10px}
.sec-brands{padding-top:48px}
.brands-box{background:var(--creme);border-radius:28px;padding:30px 34px;display:flex;flex-direction:column;gap:16px}
.brands-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.brandwall{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px}
.brandwall a{font:700 22px/1.2 var(--titre);color:var(--texte);text-decoration:none;white-space:nowrap}
.brandwall a:hover{color:var(--bordeaux)}
.brandwall .dot{width:12px;height:12px;border-radius:50%;background:var(--soleil);flex:none}
.brands-m{background:var(--creme);border-radius:22px;padding:4px 18px}
.brands-m summary{list-style:none;display:flex;justify-content:space-between;align-items:center;min-height:56px;cursor:pointer;font:800 22px/1 var(--titre)}
.brands-m summary::-webkit-details-marker{display:none}
.brands-m summary span{color:var(--bordeaux);font-size:26px}
.brandwall-m{flex-direction:column;align-items:flex-start;gap:10px;padding-bottom:16px}
.sec-advice{padding-top:48px}
.advice{position:relative;overflow:hidden;display:flex;align-items:center;gap:20px 40px;border-radius:28px;padding:34px;background:linear-gradient(120deg,#3A2422,#802C33)}
.advice-sun{position:absolute;left:-90px;bottom:-150px;width:300px;height:300px;border-radius:50%;background:var(--soleil);box-shadow:0 0 80px 20px rgba(251,167,53,.35)}
.advice-txt{flex:1 1 auto;position:relative;padding-left:170px}
.advice-txt .h2{margin-bottom:10px}
.advice-txt p{margin:0;color:var(--creme-2);max-width:60ch}
.advice .btn{position:relative;flex:none}
.sec-reassure{padding-top:40px;padding-bottom:64px}
.reassure{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:18px}
.re-item{display:flex;gap:14px;align-items:center}
.re-item strong{display:block;font-family:var(--titre);font-size:18px;color:var(--bordeaux)}
.re-link{text-decoration:none;color:var(--texte)}
.re-link:hover{color:var(--texte)}
.re-link .u{text-decoration:underline}
.re-ico{width:54px;height:54px;border-radius:50%;flex:none;background:var(--creme);display:flex;align-items:center;justify-content:center}
.re-ico-sun{background:var(--soleil);font:700 26px/1 var(--titre);color:var(--sur-orange)}
main:has(.sec-reassure)+.foot{margin-top:0}
@media (max-width:760px){.hero-in{padding-top:26px}
.hero-h1{font-size:34px}
.hero-visual{height:250px}
.hero-visual .sun{width:300px;height:300px;bottom:-150px}
.hero-pack img{height:150px}
.hero-pack img.big{height:176px}
.hero-pack img.tilt-l{transform:translateY(-24px) rotate(-5deg);margin-right:-6px}
.hero-pack img.tilt-r{transform:translateY(-24px) rotate(5deg);margin-left:-6px}
.sticker{right:0;top:-44px;width:104px;height:104px;font-size:13px}
.kiosk .pcard{width:200px;min-width:0}
.promo-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.promo-grid>*{flex:none;width:200px;scroll-snap-align:start}
.promo-grid .pcard{width:200px}
.advice{flex-direction:column;align-items:flex-start;padding:26px 22px 130px}
.advice-txt{padding-left:0}}

/* Téléphone : l'espacement commun des sections (site.css, .sec à 40 px) passait après les règles ci-dessus quand elles
   étaient dans site.css ; même ordre ici. */
@media (max-width:760px){.sec{padding-top:40px}}

/* Diapos superposées en fondu : la première est visible sans JavaScript, toutes sont dans le HTML. */
.diapos{display:block}
.diapo{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;text-decoration:none;opacity:0;visibility:hidden;transition:opacity .7s ease,visibility 0s linear .7s}
.diapo.on{opacity:1;visibility:visible;transition:opacity .7s ease,visibility 0s}

/* Points de navigation */
.diapo-pts{position:absolute;left:50%;bottom:0;transform:translateX(-50%);display:flex;gap:10px;z-index:3;padding:5px 9px;border-radius:999px;background:rgba(255,247,234,.9)}
.diapo-pt{width:11px;height:11px;padding:0;border:2px solid var(--bordeaux);border-radius:50%;background:transparent;cursor:pointer;transition:background .2s,transform .2s}
.diapo-pt.on{background:var(--bordeaux);transform:scale(1.15)}
.diapo-pt:focus-visible{outline:2px solid var(--bordeaux);outline-offset:3px}

/* Pastille : nom de la marque puis un prix « dès » par format (tube, dosette), au tarif du visiteur */
.sticker-prix{width:154px;height:154px;gap:2px;padding:12px}
.sticker-nom{font-weight:700;font-size:14px;margin-bottom:2px}
.sticker-l{font-size:12px;white-space:nowrap;line-height:1.2}

/* Diapo Tulum Gold : composition native (soleil noir et or, tubes détourés en rangées, texte en HTML) */
.diapo-tulum{justify-content:space-between;gap:8px}
.hero-visual .sun-or{left:68%;background:radial-gradient(circle at 38% 28%,#6B5426 0%,#3A2D1A 38%,#1E1711 70%,#0E0B08 92%);box-shadow:0 0 90px 24px rgba(201,162,74,.45),0 0 200px 70px rgba(233,196,106,.22)}
.liquid-txt{position:relative;z-index:2;align-self:center;display:flex;flex-direction:column;align-items:flex-start;padding:0 0 30px 4px}
.liquid-marque{font:700 13px/1 var(--corps);letter-spacing:.28em;text-transform:uppercase;color:#8A6A1F}
.liquid-titre{font:800 34px/1 var(--titre);text-transform:uppercase;color:var(--bordeaux);margin-top:8px}
.liquid-pct{font:800 92px/.95 var(--titre);letter-spacing:-.03em;background:linear-gradient(100deg,#8E6A1C 0%,#D9AE4E 28%,#FFF0BE 44%,#D9AE4E 60%,#8E6A1C 100%);background-size:260% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 6px 10px rgba(58,36,34,.25));animation:reflet 3.6s linear infinite}
.liquid-sous{font-size:14px;color:var(--texte-2);margin-top:2px}
.liquid-prix{margin-top:12px;background:#1E1A16;color:#F5D68A;font:600 13px/1 var(--corps);padding:8px 14px;border-radius:999px;box-shadow:0 0 0 2px #C9A24A;white-space:nowrap}
.pack-or{margin-right:4%}
.pack-or img:first-child{height:304px;position:relative;z-index:1;transform:rotate(-3deg)}
.pack-or img:last-child{height:262px;transform:translateY(-36px) rotate(6deg);margin-left:-38px;filter:drop-shadow(var(--ombre-x,0px) 14px 10px rgba(58,36,34,.28))}
@keyframes reflet{0%{background-position:100% 0}100%{background-position:-160% 0}}

/* Bandeau pro : se connecter (client pro existant) ou s'enregistrer (formulaire de demande de compte pro) */
.pro-btns{display:flex;flex-wrap:wrap;gap:10px}
.pro-btns .btn-light{box-shadow:inset 0 0 0 2px var(--bordeaux)}

/* Effet sur les tubes de chaque diapo : un balancement à l'arrivée de la diapo, en continu au survol.
   Propriétés « rotate » et « translate » séparées : elles s'ajoutent au transform de rangée sans l'écraser. */
.hero-pack img{transform-origin:50% 100%;transition:scale .25s ease}
.diapo.on .hero-pack img{animation:balance 1.5s ease-in-out .3s 1}
.diapo:hover .hero-pack img{animation:balance 1.6s ease-in-out infinite}
.diapo .hero-pack img:nth-child(2){animation-delay:.42s}
.diapo .hero-pack img:nth-child(3){animation-delay:.54s}
.diapo .hero-pack img:nth-child(4){animation-delay:.66s}
.diapo .hero-pack img:hover{scale:1.05}
@keyframes balance{0%,100%{rotate:0deg;translate:0 0}25%{rotate:-2.5deg;translate:0 -6px}75%{rotate:2.5deg;translate:0 -3px}}

@media (prefers-reduced-motion:reduce){
  .diapo,.diapo.on{transition:none}
  .diapo .hero-pack img,.diapo:hover .hero-pack img,.liquid-pct{animation:none}
}

@media (max-width:760px){
  .sticker-prix{width:122px;height:122px;padding:8px;top:-44px}
  .sticker-prix .sticker-new{font-size:17px}
  .sticker-nom{font-size:12px}
  .sticker-l{font-size:10px}
  .hero-visual .sun-or{left:62%}
  .liquid-marque{font-size:10px}
  .liquid-titre{font-size:20px;margin-top:5px}
  .liquid-pct{font-size:56px}
  .liquid-sous{font-size:11px;max-width:15ch}
  .liquid-prix{font-size:11px;padding:6px 10px;margin-top:8px}
  .pack-or img:first-child{height:178px}
  .pack-or img:last-child{height:150px;transform:translateY(-22px) rotate(6deg);margin-left:-24px}
}

/* Effets (02/11, validés par Manu) : soleil qui se lève et rayon de lumière au chargement, halo qui suit la souris
   (ombres des tubes à l'opposé, soleil qui suit un peu), éclipse cachée (7 clics sur le logo, wow.js). */
.hero-visual .sun{translate:var(--sun-x,0px) var(--sun-y,0px);transition:translate .5s ease-out;overflow:hidden}
.diapo-glow .sun{animation:lever 3.2s cubic-bezier(.25,.6,.25,1) backwards}
@keyframes lever{0%{translate:0 190px;opacity:.35;filter:saturate(.7) brightness(.9)}100%{translate:0 0;opacity:1;filter:none}}
/* Reflet qui balaie le soleil une fois levé : dessiné dans le disque (overflow:hidden du .sun), aucun bord visible */
.diapo-glow .sun::before{content:"";position:absolute;inset:0;border-radius:50%;pointer-events:none;background:linear-gradient(105deg,transparent 35%,rgba(255,248,225,.55) 50%,transparent 65%) no-repeat;background-size:300% 100%;background-position:130% 0;animation:rayon 1.8s ease-in-out 3s 1 both}
@keyframes rayon{0%{background-position:130% 0}100%{background-position:-30% 0}}
.hero-rings::after{content:"";position:absolute;inset:0;opacity:0;transition:opacity .5s;background:radial-gradient(circle 300px at var(--mx,70%) var(--my,50%),rgba(255,236,200,.9),rgba(251,180,90,.42) 30%,rgba(251,167,53,.16) 60%,transparent 100%)}
.hero.halo-on .hero-rings::after{opacity:1}
.hero-rings::before{content:"";position:absolute;inset:0;opacity:0;background:radial-gradient(1.5px 1.5px at 12% 22%,#fff,transparent),radial-gradient(1px 1px at 28% 12%,#fff,transparent),radial-gradient(1.5px 1.5px at 44% 30%,#fff,transparent),radial-gradient(1px 1px at 61% 9%,#fff,transparent),radial-gradient(2px 2px at 83% 18%,#fff,transparent),radial-gradient(1px 1px at 92% 40%,#fff,transparent),radial-gradient(1.5px 1.5px at 6% 55%,#fff,transparent),radial-gradient(1px 1px at 36% 62%,#fff,transparent)}
.hero-visual .sun::after{content:"";position:absolute;inset:-1px;border-radius:50%;background:radial-gradient(circle at 40% 35%,#33241A,#0E0A07 70%);translate:-115% 8%}
html.eclipse .diapo.on .sun::after{animation:lune 6s ease-in-out both}
html.eclipse .diapo.on .sun{animation:couronne 6s ease-in-out}
html.eclipse .hero-rings{animation:nuit 6s ease-in-out}
html.eclipse .hero-rings::before{animation:etoiles 6s ease-in-out}
html.eclipse .logo-img{animation:logo-eclipse 6s ease-in-out}
@keyframes lune{0%{translate:-115% 8%}42%,62%{translate:0 0}100%{translate:115% -8%}}
@keyframes couronne{42%,62%{box-shadow:0 0 26px 6px rgba(255,246,220,.95),0 0 110px 40px rgba(255,214,140,.6),0 0 260px 100px rgba(201,162,74,.3)}}
@keyframes nuit{0%,100%{background-color:rgba(30,18,12,0)}42%,62%{background-color:rgba(30,18,12,.6)}}
@keyframes etoiles{0%,30%,78%,100%{opacity:0}46%,60%{opacity:1}}
@keyframes logo-eclipse{0%,100%{filter:none}42%,62%{filter:brightness(.3) drop-shadow(0 0 6px #F5D68A)}}
@media (prefers-reduced-motion:reduce){
  .diapo-glow .sun,.diapo-glow .sun::before{animation:none}
  .diapo-glow .sun::before{display:none}
  .hero-visual .sun{transition:none}
  html.eclipse .diapo.on .sun::after{animation:none;translate:0 0}
  html.eclipse .diapo.on .sun{animation:none;box-shadow:0 0 26px 6px rgba(255,246,220,.95),0 0 110px 40px rgba(255,214,140,.6)}
  html.eclipse .hero-rings,html.eclipse .hero-rings::before,html.eclipse .logo-img{animation:none}
  html.eclipse .hero-rings{background-color:rgba(30,18,12,.6)}
  html.eclipse .hero-rings::before{opacity:1}
  html.eclipse .logo-img{filter:brightness(.3) drop-shadow(0 0 6px #F5D68A)}
}
