/* =========================================================
   ARTIFICE — améliorations du thème existant (oct. 2026)
   Chargé après mystyle.css. Pour revenir en arrière :
   retirer la ligne <link ... ameliorations.css> de layouts/front.blade.php
   ========================================================= */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: #FF3F2A; color: #fff; }
img { max-width: 100%; }

/* ---------- Bandeau "Agence créative" ---------- */
#welcome { padding-top: 70px; padding-bottom: 60px; }
#welcome .heading__desc { letter-spacing: .08em; font-size: 15px; }

/* ---------- Qui sommes-nous : texte lisible + clients en badges ---------- */
#banner1 .heading__desc > div {
  font-size: 17px !important;
  line-height: 1.8 !important;
  color: #333 !important;
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
}
#banner1 .heading__title { margin-bottom: 24px; }
#banner1 .heading ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#banner1 .heading ul li {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
  color: #004080;
  background: #fff;
  border: 1px solid rgba(0, 64, 128, .15);
  border-radius: 999px;
  padding: 9px 14px;
  transition: border-color .2s ease, color .2s ease;
}
#banner1 .heading ul li:hover { border-color: #FF3F2A; color: #FF3F2A; }
#banner1 .bg-gray > .inner-padding0 { padding: 60px 50px !important; }

/* ---------- Nos services : cartes avec survol ---------- */
#fancyboxBordered .fancybox-item {
  padding-top: 34px;
  padding-bottom: 30px;
  border-radius: 14px;
  transition: transform .35s ease, box-shadow .35s ease, background-color .35s ease;
}
#fancyboxBordered .fancybox-item:hover {
  transform: translateY(-6px);
  background-color: #fff;
  box-shadow: 0 22px 45px -25px rgba(0, 40, 90, .35);
}
#fancyboxBordered .fancybox-item:hover:before,
#fancyboxBordered .fancybox-item:hover:after { opacity: 0; }
#fancyboxBordered .fancybox__icon i { transition: color .3s ease, transform .3s ease; display: inline-block; }
#fancyboxBordered .fancybox-item:hover .fancybox__icon i,
#fancyboxBordered .fancybox-item:hover .fancybox__icon a { color: #FF3F2A !important; }
#fancyboxBordered .fancybox-item:hover .fancybox__icon i { transform: scale(1.08); }
#fancyboxBordered .fancybox__title { font-size: 19px; margin-bottom: 12px; }
#fancyboxBordered .fancybox__desc {
  font-size: 15px;
  line-height: 1.7;
  color: #4a4a4a !important;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
#fancyboxBordered .dotted__line { display: none; }

/* ---------- Réalisations ---------- */
#projectsGallery4col .heading hr { display: none; }
#projectsGallery4col .project-item { overflow: hidden; }
#projectsGallery4col .project__img img { transition: transform .8s ease; }
#projectsGallery4col .project-item:hover .project__img img { transform: scale(1.06); }

/* ---------- Équipe : photos uniformes ---------- */
#team1 .member__img {
  border: 0 !important;
  border-radius: 14px;
  background: linear-gradient(160deg, #f3f5f8, #e3e9f1);
  aspect-ratio: 8 / 9;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow: 0 18px 40px -28px rgba(0, 40, 90, .45);
}
#team1 .member__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
#team1 .member__name { font-size: 18px; }
#team1 .member__desc {
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 1.55;
  color: #555 !important;
  max-width: 240px;
  margin: 0 auto;
}

/* ---------- Ils nous font confiance : logos sobres ---------- */
#clients2 { padding-top: 90px !important; padding-bottom: 90px !important; }
#clients2 .client img {
  filter: grayscale(100%);
  opacity: .7;
  transition: filter .3s ease, opacity .3s ease;
}
#clients2 .client:hover img { filter: none; opacity: 1; }

/* ---------- Blog ---------- */
#blog .blog-item { transition: transform .35s ease; }
#blog .blog-item:hover { transform: translateY(-5px); }
#blog .blog__img { border-radius: 12px; overflow: hidden; }
#blog .blog__img img { transition: transform .8s ease; }
#blog .blog-item:hover .blog__img img { transform: scale(1.05); }
#blog .blog__title { line-height: 1.35; }
#blog .blog__desc { font-size: 15px; line-height: 1.7; color: #4a4a4a !important; }

/* ---------- Contact : titre lisible sur la photo ---------- */
#contact1 .contact__banner:before { background: linear-gradient(90deg, rgba(0, 32, 70, .15), rgba(0, 32, 70, .7)); }
#contact1 .contact__banner .heading { margin-left: 34%; padding-right: 40px; text-align: left !important; }
#contact1 .contact__banner .heading__title.color-white { color: #fff !important; line-height: 1.25; font-size: 32px; text-transform: none; }
#contact1 .contact__banner .divider__line { margin-left: 0; }
#contact1 .contact__banner .heading__shape { display: none; }
#contact1 .form-control { font-size: 15px; }

/* ---------- Pied de page ---------- */
#footer1 .footer__logo { filter: brightness(0) invert(1); margin-bottom: 22px; }
#footer1 .footer__widget-title {
  color: #fff;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
#footer1 .footer__links { list-style: none; padding: 0; margin: 0; }
#footer1 .footer__links li { margin-bottom: 10px; }
#footer1 .footer__links a { color: #b9bec7; transition: color .2s ease; }
#footer1 .footer__links a:hover { color: #FF3F2A; }
#footer1 .contact__list li { margin-bottom: 8px; }
#footer1 .contact__list a { color: inherit; }
#footer1 .contact__list a:hover { color: #FF3F2A; }
#footer1 .footer__copyright a { color: inherit; }

/* ---------- Mobile ---------- */
@media (max-width: 991px) {
  #banner1 .bg-gray > .inner-padding0 { padding: 44px 20px !important; }
  #contact1 .contact__banner .heading { margin-left: 0; padding: 0 20px; text-align: center !important; }
  #contact1 .contact__banner .heading__title.color-white { font-size: 26px; }
  #contact1 .contact__banner .divider__line { margin-left: auto; }
  #footer1 .footer__widget { margin-bottom: 30px; }
}
@media (max-width: 575px) {
  #welcome { padding-top: 50px; padding-bottom: 40px; }
  #banner1 .heading__desc > div { font-size: 16px !important; line-height: 1.75 !important; }
  #fancyboxBordered .fancybox-item:hover { transform: none; box-shadow: none; }
  #team1 .member { max-width: 300px; margin: 0 auto 30px; }
  #contact1 .contact__banner { align-items: flex-end !important; padding-bottom: 36px; }
  #contact1 .contact__banner:before { background: linear-gradient(180deg, rgba(0, 32, 70, 0) 35%, rgba(0, 32, 70, .8)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #fancyboxBordered .fancybox-item, #blog .blog-item,
  #projectsGallery4col .project__img img, #blog .blog__img img { transition: none !important; transform: none !important; }
}

/* ---------- Page contact : coordonnées ---------- */
#contactInfos .contact-info { margin-bottom: 30px; }
#contactInfos .contact-info i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255, 63, 42, .08); color: #FF3F2A; font-size: 26px; margin-bottom: 18px;
}
#contactInfos .contact-info h4 { color: #004080; font-size: 18px; margin-bottom: 8px; }
#contactInfos .contact-info p { color: #4a4a4a; font-size: 16px; line-height: 1.6; margin: 0; }
#contactInfos .contact-info a { color: inherit; }
#contactInfos .contact-info a:hover { color: #FF3F2A; }

/* ---------- Réalisations : ouverture en grand (lightbox) ---------- */
#projectsGallery4col .project-item { position: relative; }
#projectsGallery4col .project__zoom { position: absolute; inset: 0; z-index: 5; cursor: zoom-in; }
#projectsGallery4col .project__zoom:after {
  content: "+"; position: absolute; top: 50%; left: 50%;
  width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  background: #FF3F2A; color: #fff; font-size: 30px; line-height: 52px; text-align: center; font-weight: 300;
  opacity: 0; transform: scale(.7); transition: opacity .3s ease, transform .3s ease;
}
#projectsGallery4col .project-item:hover .project__zoom:after,
#projectsGallery4col .project__zoom:focus-visible:after { opacity: 1; transform: scale(1); }
#projectsGallery4col .project__zoom:focus-visible { outline: 3px solid #FF3F2A; outline-offset: -3px; }
.lightboxOverlay { background-color: #0b1626; opacity: .92 !important; }
.lightbox .lb-image { border: 0; border-radius: 6px; }
.lb-data .lb-caption { font-size: 16px; font-weight: 600; }

/* ---------- Page galerie ---------- */
#galerie .galerie-grid > div { margin-bottom: 24px; }
#galerie .galerie-item {
  position: relative; display: block; overflow: hidden; border-radius: 12px;
  aspect-ratio: 1 / 1; background: #eef1f5; cursor: zoom-in;
  box-shadow: 0 18px 40px -28px rgba(0, 40, 90, .45);
}
#galerie .galerie-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
#galerie .galerie-item:hover img { transform: scale(1.06); }
#galerie .galerie-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px;
  color: #fff; font-weight: 600; font-size: 14px; line-height: 1.3;
  background: linear-gradient(180deg, transparent, rgba(0, 32, 70, .8));
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease;
}
#galerie .galerie-item:hover .galerie-caption,
#galerie .galerie-item:focus-visible .galerie-caption { opacity: 1; transform: none; }
#galerie .galerie-item:focus-visible { outline: 3px solid #FF3F2A; outline-offset: 2px; }
@media (max-width: 767px) {
  #galerie .galerie-grid > div { margin-bottom: 14px; padding-left: 7px; padding-right: 7px; }
  #galerie .galerie-caption { opacity: 1; transform: none; font-size: 12px; padding: 22px 10px 8px; }
}
