/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/
/* CARROUSSEL REALISATIONS */
.realisation-carousel-wrap {
    margin-top: 2.5rem;
	margin-bottom: 2.5rem;
}
.realisation-carousel-wrap .swiper {
    width: 100%;
    padding-bottom: 40px; /* espace pour la pagination */
}
.realisation-carousel-wrap .swiper-slide img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.realisation-carousel-wrap .swiper-button-next,
.realisation-carousel-wrap .swiper-button-prev {
    color: var(--wp--preset--color--primary, #333);
}
.realisation-carousel-wrap .swiper-pagination-bullet-active {
    background: var(--wp--preset--color--primary, #333);
}
/* EFFETS carousel infini */
.scroll-track {
  display: flex;
  gap: 2rem;
  animation: scroll-left 50s linear infinite;
}
@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
/* FIN EFFETS carousel infini */
/* EFFETS HOVER RONDS */
.hover-effect {
  position: relative;
}
/* État initial */
.hover-effect .display-on-hover {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
		height:0;
}
.hover-effect .hide-on-hover {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
/* État hover */
.hover-effect:hover .display-on-hover {
  opacity: 1;
  transform: translateY(-60px);
}
.hover-effect:hover .hide-on-hover {
  opacity: 0;
  transform: translateY(-10px);
	height:0;
}
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 3px;
    height: 3px;
    background: var(--contrast);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease;
  }
.cursor-dot.is-link {
    width: 75px;
    height: 75px;
	background-color:var(--contrast);
	opacity:0.4;
}
/* VIDEO BACKGROUND */
.video-bg {
  position: relative;
  height: 100vh; /* ou hauteur personnalisée */
  overflow: hidden;
}
.video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover; /* clé pour le background */
  z-index: 1;
}
.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* assombrit la vidéo */
  z-index: 2;
}
.video-content {
  position: relative;
  z-index: 3;
  color: white;
  text-align: center;
  padding: 20px;
}
/* EFFETS D'apparition des textes*/
/* ── Effet 1 : slide-up ─── */
.reveal-text .char-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
  }
.reveal-text .char-wrap.is-space {
    width: 0.3em;
}
.reveal-text .char {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-text.is-visible .char {
    transform: translateY(0);
}
/* ── Effet 2 : color-reveal ───── */
/* Version par défaut : var(--base) → var(--color) */
.color-reveal .char {
  display: inline-block;
  color: var(--base);
  transition: color 0.15s ease;
}
.color-reveal .char.is-space {
  width: 0.3em;
}
.color-reveal .char.colored {
  color: var(--color, var(--contrast));
}
/* Version w : var(--contrast) → var(--base) */
.color-reveal.color-reveal-w .char {
  color: var(--contrast);
}
.color-reveal.color-reveal-w .char.colored {
  color: var(--base);
}
/* ── Effet 3 : cascade-color-link ───── */
.cascade-link {
    gap: 0 !important;
    column-gap: 0 !important;
}
.cascade-link > .gb-shape {
    margin-right: 20px;
}
.cascade-link span {
    display: inline-block;
    letter-spacing: 0;
    word-spacing: 0;
}
/* Desktop : hover classique */
@media (hover: hover) {
  .cascade-link:hover span:not(.gb-shape) {
    animation-name: cascade;
    animation-duration: 0.25s;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
  }
}
/* Mobile : classe JS ajoutée au tap */
.cascade-link.is-playing span:not(.gb-shape) {
    animation-name: cascade;
    animation-duration: 0.25s;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
}
@keyframes cascade {
    0%   { color: var(--base-color); text-shadow: none; transform: scale(1) translateY(0); }
    50%  { color: var(--contrast); text-shadow: 0 0 8px var(--contrast), 0 0 20px var(--contrast); transform: scale(1.1) translateY(-4px); }
    100% { color: var(--base-color); text-shadow: none; transform: scale(1) translateY(0); }
}
:where(#testimonial) .gb-carousel-dot.is-active{
	background-color:var(--accent);
}
:where(#testimonial) .gb-carousel-dot{
	background-color:var(--contrast-2);
}
:where(.gb-carousel-pagination) .gb-carousel-dot[role=button]:hover{
	background-color:var(--contrast-3);
}
/* === CONTACT FORM 7 — STYLE PERSONNALISÉ === */
/* Labels alignés à gauche */
.wpcf7-form label {
  text-align: left;
}

/* Fond des inputs en couleur accent */
.wpcf7 input:not([type="submit"]),
.wpcf7 textarea,
.wpcf7 select {
  background-color: var(--accent);
}
/* Coins arrondis sur tous les champs */
.wpcf7 input,
.wpcf7 textarea,
.wpcf7 select {
  border-radius: 20px;
  width: 100%;
  box-sizing: border-box;
}
.wpcf7 input[type="submit"] {
  width: auto;
  display: inline-block;
	border-radius: 50px;
padding:10px 30px;
	text-transform:uppercase;

}

/* Labels au-dessus des inputs */
.wpcf7-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  margin-bottom: 15px;
}

/* Tous les champs pleine largeur par défaut */
.wpcf7-form label .wpcf7-form-control-wrap {
  width: 100%;
}

/* Paires de champs côte à côte */
.wpcf7-form .name-group > p {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.wpcf7-form .name-group > p > label {
  flex: 1 1 45%;
  min-width: 200px;
}
/* Masquer les br parasites entre les labels */
.wpcf7-form .name-group > p > br {
  display: none;
}
/* Responsive : retour en colonne sur mobile */
@media (max-width: 600px) {
  .wpcf7-form .name-group,
  .wpcf7-form .contact-group {
    flex-direction: column;
    gap: 0;
  }
}