/*
Theme Name: eclat-child
Theme URI: 
Author: 
Author URI: 
Description: Child theme de test pour Eclat Studio
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: eclat-child
Tags: 
*/

/* Hide default query-loop read-more links (e.g. "Lire : En cours de création"). */
.wp-block-post-excerpt__more-link,
.wp-block-read-more,
a.more-link {
  display: none !important;
}

/* Ensure helper text is only available to assistive technologies. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  white-space: nowrap;
}

/* Remove decorative dotted badge on the /actualite archive page. */
body.eclat-actualites-archive-page .eclat-projects-archive::after {
  content: none !important;
  display: none !important;
}

/* Match contact-window proportions on /actualite and /realisations. */
.eclat-projects-archive .eclat-projects-archive-contact {
  max-width: min(100%, 1760px) !important;
  padding: clamp(72px, 7.2vw, 112px) 0 clamp(22px, 2.6vw, 36px) !important;
}

.eclat-projects-archive .eclat-home-hero__story-contact-submit-label {
  transform: translateY(6px);
}

.eclat-projects-archive .eclat-home-hero__story-contact-submit-arrow {
  transform: translate3d(0, 6px, 0);
}

.eclat-projects-archive .eclat-home-hero__story-contact-submit:hover .eclat-home-hero__story-contact-submit-arrow,
.eclat-projects-archive .eclat-home-hero__story-contact-submit:focus-visible .eclat-home-hero__story-contact-submit-arrow {
  transform: translate3d(3px, 6px, 0);
}

/* Remove large empty band under the archive contact window footer. */
body.eclat-actualites-archive-page .eclat-projects-archive,
body.post-type-archive-eclat_project .eclat-projects-archive {
  padding-bottom: 0 !important;
}

/* /realisations only: mirror the same top-left Accueil behavior as /actualite. */
body.eclat-projects-archive-page:not(.eclat-actualites-archive-page) #eclat-home-hero .eclat-home-hero__brand--has-logo .eclat-home-hero__brand-logo {
  display: none !important;
}

body.eclat-projects-archive-page:not(.eclat-actualites-archive-page) #eclat-home-hero .eclat-home-hero__brand--has-logo::after {
  content: "Accueil";
  display: inline-block;
  color: #f3f4f5;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: translate3d(0, 0, 0);
  transform-origin: left center;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  body.eclat-projects-archive-page:not(.eclat-actualites-archive-page) #eclat-home-hero .eclat-home-hero__brand--has-logo:hover::after,
  body.eclat-projects-archive-page:not(.eclat-actualites-archive-page) #eclat-home-hero .eclat-home-hero__brand--has-logo:focus-visible::after {
    transform: translate3d(calc((var(--eclat-brand-square-size) + var(--eclat-brand-gap)) * -1), 0, 0);
  }
}

/* /realisations only: keep placeholder visuals and hover CTA on cards. */
body.eclat-projects-archive-page:not(.eclat-actualites-archive-page) .eclat-projects-archive__card-image {
  background-image: url("https://agence-eclatstudio.com/wp-content/uploads/2026/05/Prochainement-Eclat-Studio.webp") !important;
}

body.eclat-projects-archive-page:not(.eclat-actualites-archive-page) .eclat-projects-archive__card-cta {
  font-size: 0 !important;
  letter-spacing: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.eclat-projects-archive-page:not(.eclat-actualites-archive-page) .eclat-projects-archive__card-cta::before {
  content: "◈";
  color: #81e291;
  font-size: 14px;
  line-height: 1;
}

body.eclat-projects-archive-page:not(.eclat-actualites-archive-page) .eclat-projects-archive__card-cta::after {
  content: "Prochainement";
  color: currentColor;
  font-family: Ubuntu, "Segoe UI", sans-serif;
  font-size: clamp(10px, 0.74vw, 13px);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

/* Home window (/): force the branded placeholder visual in "Nos réalisations" when cards are placeholders. */
#eclat-home-hero .eclat-home-hero__story-section--portfolio .eclat-home-hero__story-portfolio-link[href$="/realisations/"] .eclat-home-hero__story-portfolio-media,
#eclat-home-hero .eclat-home-hero__story-section--portfolio .eclat-home-hero__story-portfolio-link[href$="/realisations"] .eclat-home-hero__story-portfolio-media,
#eclat-home-hero .eclat-home-hero__story-section--portfolio .eclat-home-hero__story-portfolio-card:not(:has(.eclat-home-hero__story-portfolio-meta)) .eclat-home-hero__story-portfolio-media {
  background-image: url("https://agence-eclatstudio.com/wp-content/uploads/2026/05/Prochainement-Eclat-Studio.webp") !important;
  background-size: cover;
  background-position: center;
}

/* Mobile hero float loops to mirror ETREA-like movement on touch devices. */
@keyframes eclat-mobile-card-left-float {
  0%,
  100% {
    transform: translate(var(--eclat-card-move-x), calc(var(--eclat-card-move-y) + var(--eclat-card-lift))) rotate(-6deg) scale(var(--eclat-card-scale));
  }
  50% {
    transform: translate(var(--eclat-card-move-x), calc(var(--eclat-card-move-y) + var(--eclat-card-lift) - 10px)) rotate(-5deg) scale(var(--eclat-card-scale));
  }
}

@keyframes eclat-mobile-card-center-float {
  0%,
  100% {
    transform: translate(calc(-50% + var(--eclat-card-move-x)), calc(-50% + var(--eclat-card-move-y) + var(--eclat-card-lift))) rotate(6deg) scale(var(--eclat-card-scale));
  }
  50% {
    transform: translate(calc(-50% + var(--eclat-card-move-x)), calc(-50% + var(--eclat-card-move-y) + var(--eclat-card-lift) - 12px)) rotate(7deg) scale(var(--eclat-card-scale));
  }
}

@keyframes eclat-mobile-card-right-float {
  0%,
  100% {
    transform: translate(var(--eclat-card-move-x), calc(var(--eclat-card-move-y) + var(--eclat-card-lift) - 12px)) rotate(-5deg) scale(var(--eclat-card-scale));
  }
  50% {
    transform: translate(var(--eclat-card-move-x), calc(var(--eclat-card-move-y) + var(--eclat-card-lift) - 24px)) rotate(-4deg) scale(var(--eclat-card-scale));
  }
}

/* Mobile-only: align homepage hero to ETREA-like proportions while preserving Eclat logic. */
@media (max-width: 640px) {
  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__brand-anchor,
  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__menu-anchor {
    top: 7px;
  }

  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__brand-anchor {
    left: 12px;
  }

  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__brand {
    --eclat-brand-square-size: 14px;
    --eclat-brand-square-size-hover: 20px;
    --eclat-brand-gap: 4px;
    font-size: clamp(15px, 4.8vw, 19px);
  }

  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__menu-anchor {
    right: 12px;
  }

  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__menu {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__menu span::before {
    font-size: 15px;
  }

  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__status span {
    font-size: 0 !important;
    letter-spacing: 0 !important;
  }

  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__status span::before {
    content: "PRET POUR CREER VOS PROJETS";
    display: inline-block;
    font-size: 11px !important;
    letter-spacing: 0.07em !important;
    line-height: 1;
    color: rgba(245, 246, 247, 0.8);
  }

  body.eclat-has-experience-flow #eclat-home-hero {
    background: #00242c !important;
  }

  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__center {
    z-index: 3;
  }

  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__card {
    border-width: 0;
    padding: 3px;
    box-sizing: border-box;
    background: #ffffff;
  }

  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__card .eclat-home-hero__card-media,
  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__card .eclat-hero__media-image {
    display: block;
    width: 100%;
    height: 100%;
  }

  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__card--left {
    --eclat-card-width: 96px;
    --eclat-card-ratio: 0.75;
    left: 5%;
    top: 15%;
    animation: eclat-mobile-card-left-float 5.4s ease-in-out infinite;
  }

  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__card--center {
    --eclat-card-width: 112px;
    --eclat-card-ratio: 1;
    left: 60%;
    top: 42%;
    animation: eclat-mobile-card-center-float 6.2s ease-in-out infinite 0.35s;
  }

  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__card--right {
    --eclat-card-width: 126px;
    --eclat-card-ratio: 1.62;
    right: 5%;
    top: 66%;
    z-index: 1;
    animation: eclat-mobile-card-right-float 7s ease-in-out infinite 0.6s;
  }

  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__card::before {
    --eclat-tape-w: 30px;
    --eclat-tape-h: 10px;
  }
}

@media (max-width: 420px) {
  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__brand {
    font-size: clamp(14px, 4.7vw, 18px);
  }

  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__menu {
    width: 34px;
    min-width: 34px;
    height: 34px;
  }

  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__menu span::before {
    font-size: 14px;
  }

  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__status span::before {
    font-size: 10px !important;
  }

  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__card {
    padding: 2px;
  }

  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__card--left {
    --eclat-card-width: 90px;
    top: 14.5%;
  }

  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__card--center {
    --eclat-card-width: 104px;
    top: 41.5%;
  }

  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__card--right {
    --eclat-card-width: 118px;
    top: 66.8%;
  }

  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__card::before {
    --eclat-tape-w: 28px;
    --eclat-tape-h: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__card--left,
  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__card--center,
  body.eclat-has-experience-flow #eclat-home-hero .eclat-home-hero__card--right {
    animation: none !important;
  }
}
