/* carrousel-pro.css - habillage du carrousel de photos (accueil, pages de service).
 * S'applique uniquement quand carrousel-pro.js a monte le composant (classe .pro) : sans lui, le carrousel simple
 * d'index.css / services.css reste tel quel.
 *
 * Principe : TOUTES les photos ont le meme cadre (ratio 3:2, plafonne a 600 px), la photo y est entiere (jamais
 * recadree ni deformee), et les bords libres sont remplis par la meme photo floutee. */

.carousel.pro{ position:relative; overflow:hidden; border-radius:18px; background:#e9eef3; outline:none; touch-action:pan-y;
  -webkit-user-select:none; user-select:none; box-shadow:0 1px 2px rgba(3,44,61,.07), 0 16px 44px rgba(3,44,61,.13); }
.carousel.pro:focus-visible{ box-shadow:0 0 0 3px #fff, 0 0 0 6px #0077a3, 0 16px 44px rgba(3,44,61,.13); }
.carousel.pro > .carousel-controls, .carousel.pro > .control{ display:none; }

.carousel.pro .carousel-inner{ display:flex; transition:transform .65s cubic-bezier(.22,.9,.28,1); will-change:transform; cursor:grab; }
.carousel.pro .carousel-inner.glisse{ transition:none; cursor:grabbing; }

.carousel.pro .carousel-item{ flex:0 0 100%; min-width:100%; position:relative; aspect-ratio:3/2; max-height:600px; overflow:hidden; background:#e9eef3; }
/* Attente de la photo : un reflet discret plutot qu'un cadre vide */
.carousel.pro .carousel-item:not(.prete)::after{ content:""; position:absolute; inset:0; z-index:0;
  background:linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); background-size:220% 100%; animation:pro-reflet 1.4s linear infinite; }
@keyframes pro-reflet{ from{ background-position:120% 0 } to{ background-position:-120% 0 } }
/* Fond : la meme photo, tres floue, legerement assombrie pour que la photo se detache */
.carousel.pro .carousel-item::before{ content:""; position:absolute; inset:-40px; background:var(--fond,none) center/cover no-repeat; filter:blur(28px) saturate(1.2) brightness(.92); opacity:.95; }
.carousel.pro .carousel-item img{ position:relative; z-index:1; display:block; width:100%; height:100%; object-fit:contain; border-radius:0;
  opacity:0; transition:opacity .55s ease; cursor:zoom-in; -webkit-user-drag:none; }
.carousel.pro .carousel-item img.charge{ opacity:1; }

/* Fleches */
.pro-fleche{ position:absolute; top:50%; z-index:3; width:46px; height:46px; margin-top:-23px; padding:0; border:none; border-radius:50%;
  background:rgba(255,255,255,.94); color:#0b2e3f; display:flex; align-items:center; justify-content:center; cursor:pointer;
  box-shadow:0 2px 10px rgba(3,24,36,.28); transition:transform .18s, background .18s, box-shadow .18s, opacity .18s; }
.pro-fleche:hover{ background:#fff; transform:scale(1.07); box-shadow:0 4px 16px rgba(3,24,36,.34); }
.pro-fleche:active{ transform:scale(.97); }
.pro-fleche:focus-visible{ outline:3px solid #0077a3; outline-offset:2px; }
.pro-prec{ left:14px; } .pro-suiv{ right:14px; }

/* Indicateurs : pastille de verre au bas de la photo, lisible sur n'importe quelle image */
.pro-repere{ position:absolute; left:50%; bottom:14px; z-index:3; transform:translateX(-50%); display:flex; align-items:center; gap:7px;
  padding:8px 12px; border-radius:999px; background:rgba(8,28,40,.5); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.pro-repere.compteur{ color:#fff; font:700 13px/1 'Poppins',system-ui,sans-serif; letter-spacing:.4px; padding:8px 14px; }
.pro-point{ width:8px; height:8px; padding:0; border:none; border-radius:999px; background:rgba(255,255,255,.55); cursor:pointer; transition:width .3s, background .3s; position:relative; }
.pro-point::after{ content:""; position:absolute; inset:-8px; }                 /* zone de toucher plus large que le point */
.pro-point:hover{ background:rgba(255,255,255,.85); }
.pro-point.actif{ width:24px; background:#fff; }
.pro-point:focus-visible{ outline:2px solid #fff; outline-offset:3px; }

/* Bouton d'agrandissement (en haut a droite) */
.pro-agrandir{ position:absolute; top:12px; right:12px; z-index:3; width:40px; height:40px; padding:0; border:none; border-radius:50%;
  background:rgba(8,28,40,.5); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer;
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); transition:background .18s, transform .18s; }
.pro-agrandir:hover{ background:rgba(8,28,40,.72); transform:scale(1.06); }
.pro-agrandir:focus-visible{ outline:3px solid #fff; outline-offset:2px; }
.pro-annonce{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* Visionneuse plein ecran */
html.pro-fige, html.pro-fige body{ overflow:hidden; }
.pro-visionneuse{ position:fixed; inset:0; z-index:10000; background:rgba(5,16,24,.95); display:flex; align-items:center; justify-content:center;
  animation:pro-entree .22s ease both; touch-action:pan-y; }
@keyframes pro-entree{ from{ opacity:0 } to{ opacity:1 } }
.pro-grande{ max-width:94vw; max-height:88vh; width:auto; height:auto; object-fit:contain; border-radius:8px; opacity:0; transition:opacity .3s; box-shadow:0 20px 70px rgba(0,0,0,.55); -webkit-user-drag:none; user-select:none; }
.pro-grande.charge{ opacity:1; }
.pro-visionneuse .pro-fleche{ width:52px; height:52px; margin-top:-26px; background:rgba(255,255,255,.14); color:#fff; box-shadow:none; -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.pro-visionneuse .pro-fleche:hover{ background:rgba(255,255,255,.28); }
.pro-visionneuse .pro-prec{ left:20px; } .pro-visionneuse .pro-suiv{ right:20px; }
.pro-fermer{ position:absolute; top:18px; right:18px; width:46px; height:46px; padding:0; border:none; border-radius:50%; background:rgba(255,255,255,.14); color:#fff;
  display:flex; align-items:center; justify-content:center; cursor:pointer; transition:background .18s; }
.pro-fermer:hover{ background:rgba(255,255,255,.28); }
.pro-fermer:focus-visible{ outline:3px solid #fff; outline-offset:2px; }
.pro-cpt{ position:absolute; left:50%; bottom:22px; transform:translateX(-50%); color:#fff; font:700 13px/1 'Poppins',system-ui,sans-serif; letter-spacing:.4px;
  padding:9px 15px; border-radius:999px; background:rgba(255,255,255,.14); }

/* Telephone : commandes plus discretes, zones de toucher conservees */
@media (max-width:600px){
  .carousel.pro{ border-radius:14px; }
  .pro-fleche{ width:38px; height:38px; margin-top:-19px; }
  .pro-prec{ left:8px; } .pro-suiv{ right:8px; }
  .pro-agrandir{ top:8px; right:8px; width:36px; height:36px; }
  .pro-repere{ bottom:10px; padding:7px 10px; gap:6px; }
  .pro-visionneuse .pro-fleche{ width:44px; height:44px; margin-top:-22px; }
  .pro-visionneuse .pro-prec{ left:8px; } .pro-visionneuse .pro-suiv{ right:8px; }
}
/* Ecrans tactiles : les fleches restent, l'agrandissement se fait aussi en touchant la photo */
@media (hover:none){ .pro-fleche:hover{ transform:none; } }
@media (prefers-reduced-motion:reduce){
  .carousel.pro .carousel-inner, .carousel.pro .carousel-item img, .pro-point, .pro-fleche, .pro-visionneuse, .pro-grande{ transition:none !important; animation:none !important; }
  .carousel.pro .carousel-item:not(.prete)::after{ animation:none; }
}
