/* ==========================================================================
   FAMMED — Accueil : habillage plein écran (chargé uniquement par index.php)
   1. Haut de page : photo du stand FAMMED plein écran + dégradé bleu de la marque
   2. « Nos gammes » : fond nid d'abeille de l'ancienne version (includes/bg-medical-4.php)
   3. « Qui sommes-nous » : tampon FAMMED « Depuis 1998 »
   Le contenu et les animations existants (vitrine.css, pro.css) ne changent pas.
   ========================================================================== */

/* ═══════════════ 1. HAUT DE PAGE ═══════════════ */
.pr-hero3d{background:#0F1B3D; color:#fff}
.pr-hero3d::before{display:none}                     /* l'ancien halo clair est remplacé par le fond photo */

.hx-bg{position:absolute; inset:0; z-index:0; overflow:hidden; pointer-events:none}
.hx-bg > span{position:absolute; inset:0}
.pr-hero3d .vt-hero-in{z-index:1}

/* Photo : version légère sur mobile, grande version au-delà de 1280 px */
.hx-photo{
    background:#17295C url("../img/hero-fond-salon-1280.webp") 50% 62% / cover no-repeat;
    transform-origin:70% 55%; animation:hx-zoom 32s ease-in-out infinite alternate;
}
@media (min-width:1281px){ .hx-photo{ background-image:url("../img/hero-fond-salon.webp") } }
@keyframes hx-zoom{from{transform:scale(1.03)} to{transform:scale(1.12)}}

/* Dégradé bleu FAMMED : opaque côté texte, transparent côté photo */
.hx-shade{
    background:
        radial-gradient(42rem 30rem at 76% 52%, rgba(14,165,233,.28), transparent 70%),
        linear-gradient(180deg, rgba(15,27,61,.45) 0%, transparent 28%, transparent 72%, rgba(15,27,61,.6) 100%),
        linear-gradient(90deg, rgba(11,21,50,.97) 0%, rgba(15,27,61,.93) 28%, rgba(23,41,92,.76) 50%, rgba(43,79,163,.42) 74%, rgba(43,79,163,.26) 100%);
}
[dir="rtl"] .hx-shade{
    background:
        radial-gradient(42rem 30rem at 24% 52%, rgba(14,165,233,.28), transparent 70%),
        linear-gradient(180deg, rgba(15,27,61,.45) 0%, transparent 28%, transparent 72%, rgba(15,27,61,.6) 100%),
        linear-gradient(270deg, rgba(11,21,50,.97) 0%, rgba(15,27,61,.93) 28%, rgba(23,41,92,.76) 50%, rgba(43,79,163,.42) 74%, rgba(43,79,163,.26) 100%);
}
/* Quadrillage technique très discret */
.hx-grid{
    opacity:.55;
    background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);
    background-size:3rem 3rem;
    -webkit-mask-image:linear-gradient(90deg,#000 0%,rgba(0,0,0,.4) 55%,transparent 100%);
            mask-image:linear-gradient(90deg,#000 0%,rgba(0,0,0,.4) 55%,transparent 100%);
}
[dir="rtl"] .hx-grid{-webkit-mask-image:linear-gradient(270deg,#000 0%,rgba(0,0,0,.4) 55%,transparent 100%); mask-image:linear-gradient(270deg,#000 0%,rgba(0,0,0,.4) 55%,transparent 100%)}

/* Textes en clair sur le fond sombre */
.pr-hero3d .vt-badge{background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.28); color:#fff; box-shadow:none;
    -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px)}
.pr-hero3d .vt-h1{color:#fff; text-shadow:0 2px 24px rgba(0,0,0,.25)}
.pr-hero3d .vt-h1 .text-brand{color:#7DD3FC}
.pr-hero3d .vt-lead{color:rgba(255,255,255,.82)}
.pr-hero3d .pr-search--light{border-color:transparent; box-shadow:0 30px 60px -24px rgba(0,0,0,.6)}
.pr-hero3d .pr-freq--light span{color:rgba(255,255,255,.65)}
.pr-hero3d .pr-freq--light a{background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.22); color:#fff}
.pr-hero3d .pr-freq--light a:hover{background:#fff; border-color:#fff; color:#2B4FA3}
.pr-hero3d .vt-btn{box-shadow:0 16px 34px -14px rgba(0,0,0,.6)}
.pr-hero3d .vt-btn--ghost{background:rgba(255,255,255,.08); color:#fff; box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.5);
    -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px)}
.pr-hero3d .vt-btn--ghost:hover{background:#fff; color:#2B4FA3; box-shadow:inset 0 0 0 1.5px #fff}
.pr-hero3d :where(a,button):focus-visible{outline-color:#7DD3FC}

/* Scène produit : le galet clair ressort sur la photo */
.pr-hero3d .vt-stage{max-width:40rem}
.pr-hero3d .vt-scene{box-shadow:inset 0 0 0 1px #fff, 0 0 0 10px rgba(255,255,255,.07), 0 50px 100px -40px rgba(0,0,0,.75)}

/* Hauteur : le haut de page remplit l'écran (sous l'en-tête), sans excès sur les très grands écrans */
@media (min-width:1024px){
    .pr-hero3d .vt-hero-in{min-height:min(calc(100svh - 7.25rem), 60rem); padding-block:3rem}
}
@media (min-width:1440px){
    .pr-hero3d .vt-hero-in{grid-template-columns:1fr 1.05fr; gap:4.5rem}
    .pr-hero3d .vt-stage{max-width:44rem}
}
@media (min-width:1800px){
    .pr-hero3d .vt-hero-in{grid-template-columns:1.1fr 1fr}
    .pr-hero3d .vt-h1{font-size:clamp(3.8rem,3vw,4.4rem)}
    .pr-hero3d .vt-lead{font-size:1.2rem; max-width:38rem}
    .pr-hero3d .pr-search{max-width:42rem}
}

/* Mobile / tablette : la scène passe au-dessus du texte, le dégradé devient vertical */
@media (max-width:1023px){
    .hx-shade, [dir="rtl"] .hx-shade{background:linear-gradient(180deg, rgba(15,27,61,.72) 0%, rgba(15,27,61,.88) 42%, rgba(11,21,50,.97) 100%)}
    .hx-photo{background-position:50% 40%}
}
@media (prefers-reduced-motion:reduce){ .hx-photo{animation:none; transform:scale(1.03)} }

/* Diaporama du haut de page : 7 photos qui se succèdent en fondu (6 s chacune, cycle de 42 s) */
.hx-bg > .hx-s{opacity:0; animation:hx-fade 42s linear infinite, hx-zoom 18s ease-in-out infinite alternate}
.hx-bg > .hx-s:not(.hx-photo){background:#17295C var(--img) 50% 55% / cover no-repeat; transform-origin:60% 55%}
@media (min-width:1281px){ .hx-bg > .hx-s:not(.hx-photo){background-image:var(--img-lg)} }
.hx-bg > .hx-s:nth-child(1){animation-delay:-1s,0s}
.hx-bg > .hx-s:nth-child(2){animation-delay:5s,0s}
.hx-bg > .hx-s:nth-child(3){animation-delay:11s,0s}
.hx-bg > .hx-s:nth-child(4){animation-delay:17s,0s}
.hx-bg > .hx-s:nth-child(5){animation-delay:23s,0s}
.hx-bg > .hx-s:nth-child(6){animation-delay:29s,0s}
.hx-bg > .hx-s:nth-child(7){animation-delay:35s,0s}
@keyframes hx-fade{0%{opacity:0} 2.4%{opacity:1} 14.3%{opacity:1} 16.7%{opacity:0} 100%{opacity:0}}
@media (max-width:1023px){ .hx-bg > .hx-s:not(.hx-photo){background-position:50% 45%} }
@media (prefers-reduced-motion:reduce){
    .hx-bg > .hx-s{animation:none}
    .hx-bg > .hx-s.hx-photo{opacity:1}
}


/* ═══════════════ 2. NOS GAMMES : fond nid d'abeille ═══════════════ */
.go::before{display:none}                 /* trame de points remplacée par le nid d'abeille */
.go > .bgmed4{z-index:0}
.go > .go-in{z-index:1}
@media (min-width:1800px){ .go .bgmed4-side{width:30vw} }
/* Alvéoles bleu foncé : plus présentes que la version claire */
.go .bgmed4--navy .bgmed4-side{opacity:.95}
@media (max-width:767px){ .go .bgmed4--navy .bgmed4-side{display:none} }   /* mobile : alvéoles trop grandes, on garde un fond clair */


/* ═══════════════ 3. QUI SOMMES-NOUS : tampon FAMMED ═══════════════ */
.pr-about-media img.hx-stamp{
    position:absolute; z-index:2; top:-2.2rem; inset-inline-end:-1.8rem;
    width:clamp(8.5rem,15vw,12.5rem); height:auto; aspect-ratio:auto; object-fit:contain;
    border-radius:0; box-shadow:none; rotate:-12deg; pointer-events:none;
    filter:drop-shadow(0 6px 10px rgba(15,27,61,.18));
}
[dir="rtl"] .pr-about-media img.hx-stamp{rotate:12deg}
/* « Coup de tampon » quand la section apparaît */
.js .pr-about-media.reveal .hx-stamp{opacity:0; transform:scale(2.2)}
.js .pr-about-media.reveal.in .hx-stamp{animation:hx-stamp .55s cubic-bezier(.3,1.4,.5,1) .45s forwards}
@keyframes hx-stamp{
    0%{opacity:0; transform:scale(2.2)}
    60%{opacity:1; transform:scale(.94)}
    100%{opacity:1; transform:scale(1)}
}
@media (max-width:640px){ .pr-about-media img.hx-stamp{top:-1.6rem; inset-inline-end:-.6rem; width:7.5rem} }
@media (prefers-reduced-motion:reduce){ .js .pr-about-media.reveal .hx-stamp{opacity:1; transform:none; animation:none} }


/* ═══════════════ 4. AJUSTEMENT À LA TAILLE DE L'ÉCRAN (haut de page) ═══════════════
   Sur les portables (1366×768, 1280×720…) le titre prenait 4 lignes et les boutons
   passaient sous la ligne de flottaison. Le titre suit maintenant la largeur ET la
   hauteur de l'écran, et la colonne texte est un peu plus large. */
@media (min-width:1024px){
    .pr-hero3d .vt-hero-in{grid-template-columns:1.12fr 1fr; gap:clamp(2rem,4vw,4rem)}
    .pr-hero3d .vt-h1{font-size:clamp(2.4rem, min(4.3vw, 7.4vh), 4rem); line-height:1.05}
    .pr-hero3d .vt-lead{font-size:clamp(1rem, .55rem + .6vw, 1.15rem); max-width:36rem}
    .pr-hero3d .vt-stage{width:100%; max-width:min(40rem, calc(100svh - 10rem)); justify-self:center}
}
/* Écrans peu hauts : on resserre seulement les espaces verticaux */
@media (min-width:1024px) and (max-height:900px){
    .pr-hero3d .vt-hero-in{padding-block:1.75rem 2.25rem}
    .pr-hero3d .vt-h1{margin-top:1rem}
    .pr-hero3d .vt-lead{margin:1rem 0 1.4rem}
    .pr-hero3d .pr-search input{padding-block:.95rem}
    .pr-hero3d .pr-freq--light{margin:.8rem 0 1.3rem}
    .pr-hero3d .vt-btn{padding:.85rem 1.5rem}
}
@media (min-width:1440px){ .pr-hero3d .vt-hero-in{grid-template-columns:1.08fr 1fr} }
/* Tablette / mobile : titre et texte plus aérés */
@media (max-width:1023px){
    .pr-hero3d .vt-h1{font-size:clamp(2rem, 7.2vw, 3.2rem); line-height:1.08}
    .pr-hero3d .vt-lead{font-size:1rem; line-height:1.6}
    .pr-hero3d .vt-cta .vt-btn{flex:1 1 12rem; justify-content:center}
}
/* Beaucoup de diapositives : les tirets deviennent une fine barre continue */
.pr-hero3d .vt-dots{gap:.2rem}
.pr-hero3d .vt-dots button{min-width:0}

/* Nid d'abeille « clair » : alvéoles bleu pâle, bandes plus étroites, fondu plus long vers le centre */
.go .bgmed4--soft .bgmed4-side{opacity:.9; width:clamp(140px,26vw,440px);
    -webkit-mask-image:linear-gradient(90deg,#000 30%,transparent 100%); mask-image:linear-gradient(90deg,#000 30%,transparent 100%)}
.go .bgmed4--soft .bgmed4-side--right{-webkit-mask-image:linear-gradient(270deg,#000 30%,transparent 100%); mask-image:linear-gradient(270deg,#000 30%,transparent 100%)}
@media (min-width:1800px){ .go .bgmed4--soft .bgmed4-side{width:24vw} }
@media (max-width:767px){ .go .bgmed4--soft .bgmed4-side{display:none} }


/* ═══════════════ 5. TEXTE DU HAUT DE PAGE FLUIDE ═══════════════
   Badge « Depuis 1998 · Tizi-Ouzou », grand titre et phrase d'introduction :
   la taille suit l'écran en continu (petit téléphone → écran 32"), sans paliers.
   Le titre tient aussi compte de la hauteur de l'écran (portables peu hauts). */
.pr-hero3d .vt-badge{font-size:clamp(.72rem, .6rem + .3vw, 1rem); padding:.45em 1.1em}
.pr-hero3d .vt-h1{font-size:clamp(2rem, 1.2rem + 3.6vw, 3.2rem); line-height:1.07; text-wrap:balance}
.pr-hero3d .vt-lead{font-size:clamp(.98rem, .8rem + .4vw, 1.3rem); line-height:1.6; max-width:32em; text-wrap:pretty}
@media (min-width:1024px){
    /* cqi = largeur de la colonne texte : le titre reste sur 3 lignes quel que soit l'écran */
    .pr-hero3d .vt-copy{container-type:inline-size}
    .pr-hero3d .vt-h1{font-size:clamp(2.4rem, min(3.9vw, 7vh), 5rem); font-size:clamp(2.4rem, min(3.9vw, 7vh, 9cqi), 5rem)}
}


/* ═══════════════ 6. HAUT DE PAGE : ALTERNANCE SOMBRE ↔ CLAIR (toutes les 10 s) ═══════════════
   Le script en bas de index.php ajoute / retire la classe .hx-light sur le haut de page.
   Un voile clair (::after) apparaît en fondu par-dessus la photo ; les textes passent en bleu nuit.
   Pour désactiver : supprimer le script « Alternance sombre / clair » dans index.php. */
.hx-bg::after{
    content:""; position:absolute; inset:0; opacity:0; transition:opacity 1.6s ease;
    background:
        radial-gradient(40rem 28rem at 76% 52%, rgba(255,255,255,.55), transparent 70%),
        linear-gradient(90deg, rgba(248,250,254,.97) 0%, rgba(242,247,254,.93) 30%, rgba(234,241,252,.74) 52%, rgba(224,235,251,.4) 76%, rgba(224,235,251,.22) 100%);
}
[dir="rtl"] .hx-bg::after{
    background:
        radial-gradient(40rem 28rem at 24% 52%, rgba(255,255,255,.55), transparent 70%),
        linear-gradient(270deg, rgba(248,250,254,.97) 0%, rgba(242,247,254,.93) 30%, rgba(234,241,252,.74) 52%, rgba(224,235,251,.4) 76%, rgba(224,235,251,.22) 100%);
}
@media (max-width:1023px){
    .hx-bg::after, [dir="rtl"] .hx-bg::after{background:linear-gradient(180deg, rgba(242,247,254,.8) 0%, rgba(246,249,254,.92) 42%, rgba(250,252,255,.97) 100%)}
}
.hx-light .hx-bg::after{opacity:1}
.hx-grid{transition:opacity 1.6s ease}
.hx-light .hx-grid{opacity:.15}

/* Transitions douces des textes et boutons */
.pr-hero3d :is(.vt-badge,.vt-h1,.vt-h1 .text-brand,.vt-lead,.pr-freq span,.pr-freq a,.vt-btn--ghost){
    transition:color 1.6s ease, background-color 1.6s ease, border-color 1.6s ease, box-shadow 1.6s ease, text-shadow 1.6s ease}

/* Version claire */
.hx-light .vt-badge{background:rgba(255,255,255,.85); border-color:#BACDF0; color:#2B4FA3}
.pr-hero3d.hx-light .vt-h1{color:#0F1B3D; text-shadow:none}
.pr-hero3d.hx-light .vt-h1 .text-brand{color:#2B4FA3}
.pr-hero3d.hx-light .vt-lead{color:#475569}
.pr-hero3d.hx-light .pr-search--light{box-shadow:0 24px 50px -28px rgba(15,27,61,.45); border-color:#DCE6F7}
.pr-hero3d.hx-light .pr-freq--light span{color:#64748B}
.pr-hero3d.hx-light .pr-freq--light a{background:#fff; border-color:#DCE6F7; color:#0F1B3D}
.pr-hero3d.hx-light .pr-freq--light a:hover{background:#2B4FA3; border-color:#2B4FA3; color:#fff}
.pr-hero3d.hx-light .vt-btn{box-shadow:0 14px 30px -14px rgba(43,79,163,.6)}
.pr-hero3d.hx-light .vt-btn--ghost{background:#fff; color:#0F1B3D; box-shadow:inset 0 0 0 1.5px #C7D3E8}
.pr-hero3d.hx-light .vt-btn--ghost:hover{color:#2B4FA3; box-shadow:inset 0 0 0 1.5px #2B4FA3}
.pr-hero3d.hx-light .vt-scene{box-shadow:inset 0 0 0 1px #fff, 0 0 0 10px rgba(43,79,163,.06), 0 40px 80px -40px rgba(15,27,61,.35)}
.pr-hero3d.hx-light :where(a,button):focus-visible{outline-color:#2B4FA3}
@media (prefers-reduced-motion:reduce){
    .hx-bg::after, .hx-grid, .pr-hero3d :is(.vt-badge,.vt-h1,.vt-h1 .text-brand,.vt-lead,.pr-freq span,.pr-freq a,.vt-btn--ghost){transition:none}
}

/* ── Transition longue « en dégradé » (remplace le fondu court ci-dessus) ──
   Le voile clair balaie la section de gauche à droite avec un bord très doux (7 s),
   puis repart dans l'autre sens. Les textes changent de couleur au même rythme.
   Pour régler la durée : modifier les 7s ci-dessous (et garder le délai du script > à cette durée). */
.hx-bg::after{
    opacity:1;
    -webkit-mask-image:linear-gradient(90deg,#000 35%,transparent 65%); mask-image:linear-gradient(90deg,#000 35%,transparent 65%);
    -webkit-mask-size:300% 100%; mask-size:300% 100%;
    -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
    -webkit-mask-position:100% 0; mask-position:100% 0;
    transition:-webkit-mask-position 7s cubic-bezier(.45,0,.55,1), mask-position 7s cubic-bezier(.45,0,.55,1);
}
[dir="rtl"] .hx-bg::after{-webkit-mask-image:linear-gradient(270deg,#000 35%,transparent 65%); mask-image:linear-gradient(270deg,#000 35%,transparent 65%);
    -webkit-mask-position:0 0; mask-position:0 0}
.hx-light .hx-bg::after{-webkit-mask-position:0 0; mask-position:0 0}
[dir="rtl"] .hx-light .hx-bg::after{-webkit-mask-position:100% 0; mask-position:100% 0}
.hx-grid{transition:opacity 7s ease-in-out}
.pr-hero3d :is(.vt-badge,.vt-h1,.vt-h1 .text-brand,.vt-lead,.pr-freq span,.pr-freq a,.vt-btn--ghost,.vt-scene,.vt-btn,.pr-search--light){
    transition:color 6s ease-in-out, background-color 6s ease-in-out, border-color 6s ease-in-out, box-shadow 6s ease-in-out, text-shadow 6s ease-in-out, transform .25s ease}
@media (prefers-reduced-motion:reduce){ .hx-bg::after{transition:none} }


/* ═══════════════ 7. TRANSITION « RYTHME CARDIAQUE » ═══════════════
   À chaque changement sombre ↔ clair : deux battements de lumière (boum-boum) puis le mode se pose,
   un tracé ECG traverse la section et le disque produit bat en même temps.
   Remplace le balayage en dégradé de la partie 6 (le voile clair est piloté par des animations). */
.hx-bg::after{
    -webkit-mask-image:none; mask-image:none; transition:none; opacity:0;
}
.hx-light .hx-bg::after{opacity:1}
/* Les animations ne démarrent qu'après le premier changement (classe .hx-beat ajoutée par le script) */
.hx-beat.hx-light .hx-bg::after{animation:hx-beat-in 2.6s ease-out both}
.hx-beat:not(.hx-light) .hx-bg::after{animation:hx-beat-out 2.6s ease-out both}
@keyframes hx-beat-in{          /* sombre → clair */
    0%{opacity:0} 9%{opacity:.6} 17%{opacity:.15} 27%{opacity:.95} 40%{opacity:.45} 100%{opacity:1}
}
@keyframes hx-beat-out{         /* clair → sombre */
    0%{opacity:1} 9%{opacity:.35} 17%{opacity:.85} 27%{opacity:.05} 40%{opacity:.5} 100%{opacity:0}
}

/* Tracé ECG qui traverse le haut de page pendant les battements */
.hx-bg::before{
    content:""; position:absolute; z-index:1; left:0; right:0; top:50%; height:7rem; translate:0 -50%; opacity:0; pointer-events:none;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0 64H330l12-8 12 8h40l14-54 22 104 18-76 12 26h48l16-10 16 10H700l12-8 12 8h40l14-54 22 104 18-76 12 26h48l16-10 16 10H1200' fill='none' stroke='%2338BDF8' stroke-width='2.5' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    filter:drop-shadow(0 0 6px rgba(56,189,248,.8));
    -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 8%,#000 46%,transparent 50%); mask-image:linear-gradient(90deg,transparent 0%,#000 8%,#000 46%,transparent 50%);
    -webkit-mask-size:220% 100%; mask-size:220% 100%; -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
}
[dir="rtl"] .hx-bg::before{scale:-1 1}
.hx-beat.hx-light .hx-bg::before{animation:hx-ecg-a 2.6s ease-out both}
.hx-beat:not(.hx-light) .hx-bg::before{animation:hx-ecg-b 2.6s ease-out both}
@keyframes hx-ecg-a{
    0%{opacity:.95; -webkit-mask-position:100% 0; mask-position:100% 0}
    70%{opacity:.9; -webkit-mask-position:0 0; mask-position:0 0}
    100%{opacity:0; -webkit-mask-position:0 0; mask-position:0 0}
}
@keyframes hx-ecg-b{
    0%{opacity:.95; -webkit-mask-position:100% 0; mask-position:100% 0}
    70%{opacity:.9; -webkit-mask-position:0 0; mask-position:0 0}
    100%{opacity:0; -webkit-mask-position:0 0; mask-position:0 0}
}
.hx-light .hx-bg::before{filter:drop-shadow(0 0 5px rgba(43,79,163,.45))}

/* Le disque produit bat au même rythme */
.hx-beat.hx-light .vt-scene{animation:hx-pulse-a 2.6s ease-out}
.hx-beat:not(.hx-light) .vt-scene{animation:hx-pulse-b 2.6s ease-out}
@keyframes hx-pulse-a{0%,100%{scale:1} 9%{scale:1.035} 17%{scale:.995} 27%{scale:1.05} 42%{scale:1}}
@keyframes hx-pulse-b{0%,100%{scale:1} 9%{scale:1.035} 17%{scale:.995} 27%{scale:1.05} 42%{scale:1}}

/* Les textes basculent sur le 2e battement, rapidement */
.pr-hero3d :is(.vt-badge,.vt-h1,.vt-h1 .text-brand,.vt-lead,.pr-freq span,.pr-freq a,.vt-btn--ghost,.vt-scene,.vt-btn,.pr-search--light){
    transition:color .9s ease .55s, background-color .9s ease .55s, border-color .9s ease .55s, box-shadow .9s ease .55s, text-shadow .9s ease .55s, transform .25s ease}

@media (prefers-reduced-motion:reduce){
    .hx-bg::after, .hx-bg::before, .pr-hero3d .vt-scene{animation:none!important}
}


/* ═══════════════ 8. DIAPORAMA DU HAUT DE PAGE : 12 PHOTOS ═══════════════
   Remplace le cycle de 7 photos de la partie 1 : 6 s par photo, cycle de 72 s.
   Pour ajouter / retirer une photo : un <span class="hx-s"> dans index.php + une ligne nth-child ici. */
.hx-bg > .hx-s{animation:hx-fade12 72s linear infinite, hx-zoom 18s ease-in-out infinite alternate}
.hx-bg > .hx-s:nth-child(1){animation-delay:-1s,0s}
.hx-bg > .hx-s:nth-child(2){animation-delay:5s,0s}
.hx-bg > .hx-s:nth-child(3){animation-delay:11s,0s}
.hx-bg > .hx-s:nth-child(4){animation-delay:17s,0s}
.hx-bg > .hx-s:nth-child(5){animation-delay:23s,0s}
.hx-bg > .hx-s:nth-child(6){animation-delay:29s,0s}
.hx-bg > .hx-s:nth-child(7){animation-delay:35s,0s}
.hx-bg > .hx-s:nth-child(8){animation-delay:41s,0s}
.hx-bg > .hx-s:nth-child(9){animation-delay:47s,0s}
.hx-bg > .hx-s:nth-child(10){animation-delay:53s,0s}
.hx-bg > .hx-s:nth-child(11){animation-delay:59s,0s}
.hx-bg > .hx-s:nth-child(12){animation-delay:65s,0s}
@keyframes hx-fade12{0%{opacity:0} 1.4%{opacity:1} 8.33%{opacity:1} 9.72%{opacity:0} 100%{opacity:0}}
@media (prefers-reduced-motion:reduce){ .hx-bg > .hx-s{animation:none} }


/* ═══════════════ 9. PHOTOS DU HAUT DE PAGE PLUS NETTES ET PLUS VISIBLES ═══════════════
   · 1re photo affichée : le stand FAMMED en salon, en HD (assets/img/hero-fond-salon*.webp)
   · zoom lent réduit (1 → 1,05 au lieu de 1,03 → 1,12) : l'image n'est plus « étirée » donc reste nette
   · voile bleu plus léger côté photo (droite) : on voit mieux les photos, le texte reste lisible à gauche */
.hx-photo{background-image:url("../img/hero-fond-salon-1280.webp"); background-position:50% 55%}
@media (min-width:1281px){ .hx-photo{background-image:url("../img/hero-fond-salon.webp")} }
@keyframes hx-zoom-net{from{transform:scale(1)} to{transform:scale(1.05)}}
.hx-bg > .hx-s{animation:hx-fade12 72s linear infinite, hx-zoom-net 18s ease-in-out infinite alternate}
.hx-bg > .hx-s:nth-child(n){backface-visibility:hidden}
@media (min-width:1024px){
    .hx-shade{
        background:
            radial-gradient(42rem 30rem at 76% 52%, rgba(14,165,233,.16), transparent 70%),
            linear-gradient(180deg, rgba(15,27,61,.35) 0%, transparent 24%, transparent 76%, rgba(15,27,61,.5) 100%),
            linear-gradient(90deg, rgba(11,21,50,.95) 0%, rgba(15,27,61,.88) 30%, rgba(23,41,92,.6) 50%, rgba(43,79,163,.26) 72%, rgba(43,79,163,.1) 100%);
    }
    [dir="rtl"] .hx-shade{
        background:
            radial-gradient(42rem 30rem at 24% 52%, rgba(14,165,233,.16), transparent 70%),
            linear-gradient(180deg, rgba(15,27,61,.35) 0%, transparent 24%, transparent 76%, rgba(15,27,61,.5) 100%),
            linear-gradient(270deg, rgba(11,21,50,.95) 0%, rgba(15,27,61,.88) 30%, rgba(23,41,92,.6) 50%, rgba(43,79,163,.26) 72%, rgba(43,79,163,.1) 100%);
    }
    .hx-bg::after{
        background:
            linear-gradient(90deg, rgba(248,250,254,.96) 0%, rgba(242,247,254,.9) 30%, rgba(234,241,252,.62) 50%, rgba(224,235,251,.24) 72%, rgba(224,235,251,.08) 100%);
    }
    [dir="rtl"] .hx-bg::after{
        background:
            linear-gradient(270deg, rgba(248,250,254,.96) 0%, rgba(242,247,254,.9) 30%, rgba(234,241,252,.62) 50%, rgba(224,235,251,.24) 72%, rgba(224,235,251,.08) 100%);
    }
}
@media (prefers-reduced-motion:reduce){ .hx-bg > .hx-s{animation:none} .hx-bg > .hx-s.hx-photo{opacity:1} }


/* ═══════════════ 9. GRANDS ÉCRANS (27" et plus, ≥ 1800 px) : MOINS DE MARGES SUR LES CÔTÉS ═══════════════
   · même mise en page qu'avant (texte à gauche, vitrine 3D à droite)
   · mais le haut de page et le bandeau du logo s'étendent sur 94 % de l'écran au lieu de 1440 px centrés
   · le logo et le titre restent alignés à gauche ; le titre grandit avec sa colonne (règle « 9cqi » partie 5)
   · léger espace supplémentaire entre les mots du titre et de la phrase d'intro
   Ce fichier n'est chargé que par index.php : les autres pages ne changent pas.
   Pour revenir en arrière : supprimer toute cette partie 9 (copie : _sauvegarde-titre-large/accueil-hero.css). */
@media (min-width:1800px){
    header .max-w-7xl{max-width:none; width:min(94vw,170rem)}
    .pr-hero3d .vt-hero-in{max-width:none; width:min(94vw,170rem); grid-template-columns:1.1fr 1fr; gap:clamp(3rem,4vw,6rem)}
    .pr-hero3d .vt-h1{font-size:clamp(2.4rem, min(4.6vw, 8.2vh, 9cqi), 6.5rem); word-spacing:.06em}
    .pr-hero3d .vt-lead{font-size:clamp(1.15rem, .6vw + .6rem, 1.6rem); max-width:44rem; word-spacing:.05em}
    .pr-hero3d .pr-search{max-width:48rem}
    .pr-hero3d .vt-stage{max-width:min(48rem, calc(100svh - 10rem)); justify-self:center}
}
