@charset "UTF-8";
/* bagot.fr : styles du site, chargés APRÈS output.css (Tailwind compilé).
   Reprend les règles utiles de photos.css, touchTouch.css, accueil.css et du <style> de l'ancien head.php. */

/* ---------- Bouton « Contactez-moi » ---------- */
#contactbutton { background-color: rgb(195, 0, 37); }

/* ---------- Pages villes, zones d'intervention, page 404 : liens soulignés pour être repérables ---------- */
.contenu-ville a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Formulaire de contact : le captcha garde l'alignement de l'ancien bouton-image ---------- */
#cryptimage { display: inline; vertical-align: baseline; }

/* ---------- Articles de presse : image alternative au survol ---------- */
.survol .survol-image, .survol:hover img:first-child { display: none; }
.survol:hover .survol-image { display: block; }

/* ---------- Galerie photo (vignettes) ---------- */
#photos_portfolio_1 { overflow: hidden; }
#nav_portfolio { margin: auto; padding-top: 2%; padding-bottom: 0%; }
#nav_portfolio .menu_portfolio { margin-right: 1rem; width: 7.5%; text-align: center; }
a.gal { position: relative; display: block; }
a.gal span { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  background: url(img_portfolio/magnify.png) -102px 0 no-repeat; }
a.gal:hover span { background-position: center center; }
.photo img { width: 100%; }

@media only screen and (max-width: 770px) {
  .photo { margin: auto !important; margin-top: 5% !important; float: none !important; width: 75% !important; }
}

/* ---------- Galerie photo plein écran (js/site.js) ---------- */
#galleryOverlay { width: 100%; height: 100%; position: fixed; top: 0; left: 0; opacity: 0; z-index: 100000;
  background-color: #222; background-color: rgba(0, 0, 0, 0.8); overflow: hidden; display: none;
  transition: opacity 1s ease; }
#galleryOverlay.visible { opacity: 1; }
#gallerySlider { height: 100%; left: 0; top: 0; width: 100%; white-space: nowrap; position: absolute;
  transition: left 0.4s ease; }
#gallerySlider .placeholder { background: url(img_portfolio/preloader.gif) no-repeat center center; height: 100%;
  line-height: 1px; text-align: center; width: 100%; display: inline-block; }
#gallerySlider .placeholder:before { content: ""; display: inline-block; height: 50%; width: 1px; margin-right: -1px; }
#gallerySlider .placeholder img { display: inline-block; max-height: 80%; max-width: 80%; width: auto !important; vertical-align: middle; }
#gallerySlider.rightSpring { animation: rightSpring 0.3s; }
#gallerySlider.leftSpring { animation: leftSpring 0.3s; }
@keyframes rightSpring { 0% { margin-left: 0px; } 50% { margin-left: -30px; } 100% { margin-left: 0px; } }
@keyframes leftSpring { 0% { margin-left: 0px; } 50% { margin-left: 30px; } 100% { margin-left: 0px; } }
#prevArrow, #nextArrow { border: none; text-decoration: none; background: url(img_portfolio/arrowws.png) no-repeat;
  opacity: 0.5; cursor: pointer; position: absolute; width: 43px; height: 58px; top: 50%; margin-top: -29px;
  transition: opacity 0.2s ease; }
#prevArrow:hover, #nextArrow:hover { opacity: 1; }
#prevArrow { background-position: left top; left: 40px; }
#nextArrow { background-position: right top; right: 40px; }

/* ---------- Bouton « haut de page » (js/site.js) ---------- */
#toTop { display: none; position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; overflow: hidden;
  text-indent: -999px; z-index: 999; border-radius: 50%; background-color: rgb(195, 0, 37);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); transition: background-color 0.2s ease; }
#toTop::before { content: ""; position: absolute; left: 50%; top: 56%; width: 14px; height: 14px;
  border-left: 3px solid #fff; border-top: 3px solid #fff; transform: translate(-50%, -50%) rotate(45deg); }
#toTop.visible { display: block; }
#toTop:hover, #toTop:focus-visible { background-color: rgb(225, 60, 80); }

/* ---------- Pages villes : photo centrée sur mobile, à gauche du texte sur grand écran ---------- */
.photo-ville { display: block; width: 75%; max-width: 16rem; height: auto; margin: 0 auto 1.5rem; }
@media only screen and (min-width: 770px) {
  .photo-ville { float: left; width: 16rem; margin: 0.25rem 2rem 1rem 0; }
}
