/*
 Theme Name:   Kadence Child
 Description:  Thème enfant personnalisé avec header PHP.
 Author:       Votre Nom
 Template:     kadence
 Version:      1.0.0
*/

/* Vos styles personnalisés commencent ici */

/* ==========================================================================
   1. DECLARATION DES POLICES (@font-face)
   ========================================================================== */

@font-face {
  font-family: 'GasoekOne';
  src: url('/wp-content/uploads/2026/04/GasoekOne-Regular.ttf') format('truetype');
  font-display: swap;
  /* Optimise le temps de chargement de la page */
}

@font-face {
  font-family: 'Lexend';
  src: url('/wp-content/uploads/2026/04/Lexend-VariableFont_wght.ttf') format('truetype');
  /* CORRIGÉ : Syntaxe 'url()' manquante */
  font-display: swap;
}

/* ==========================================================================
   2. TYPOGRAPHIE GLOBALE
   ========================================================================== */

h1,h2,p,.h3-faux,.nom-service {
  font-family: 'Lexend', sans-serif !important;
}

h1 {
  line-height: 56px;
}

.h1-CTA-1 {
  font-size: 55px;
  color: white;
  line-height: 66px;
}

.text-CTA-1 {
  color: #3A3944;
}

h2 {
  line-height: 73px;
}
.h2-services{
	font-size:20px;
	font-weight:600;
	padding-top:-10em;
}
.h2-fauxh1{
	font-size:55px;
	font-weight:600;
}

h3 {
  font-size: 35px;
  font-weight: 600;
  font-style: normal;
}
.h3-services{
	margin:0.5em 0 !important;
	font-size:55px;
	line-height:60px;
}

p {
	font-size: 20px;
  line-height: 26px;
}
.souligne{
	text-decoration:underline;
}
.main-menu {
  font-size: 20px;
  font-weight:600;
}

.sub-menu {
  font-size: 22px;
  font-weight: 400;
}

.titre-mini,
.h1-mini,
.diagonale-trait {
  text-transform: lowercase;
}

.titre-mini,
.hightlight-txt {
  color: #FF6666;
}

.hightlight-txt {
  font-weight: 600;
  border-bottom: solid 2px #FF6666;
}

/* ==========================================================================
   3. EN-TÊTE PERSONNALISÉ (STYLE COMPLET & ACCESSIBLE)
   ========================================================================== */

.custom-header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  /* Légère ombre pour détacher du fond */
  will-change: height;
  transition: height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

/* Désactive la transition de hauteur pendant le défilement pour garantir une fluidité totale */
body.is-scrolling .custom-header {
  transition: none !important;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

@media screen and (min-width: 1025px) {
  .header-container {
    height: var(--header-base-height, 100%);
  }
}

.right-align {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Navigation Principale */
.main-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.main-menu a {
  text-decoration: none;
  font-family: 'Lexend', sans-serif !important;
  font-size: 20px;
  color: #3A3944;
  transition: color 0.2s ease;
}

.main-menu a:hover,
.main-menu a:focus-visible {
  color: #FF6666;
  outline: none;
}

/* Gestion du menu déroulant (Drop-down accessible) */
.main-menu .menu-item-has-children {
  position: relative;
}

.main-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0);
  /* Arrière-plan invisible qui capte le survol sur toute sa surface */
  list-style: none;
  padding: 15px 20px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

/* Pont invisible pour éviter de perdre le survol lors du déplacement vers le sous-menu */
.main-menu .sub-menu::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

/* Déclenchement au survol ET au clavier */
.main-menu .menu-item-has-children:hover .sub-menu,
.main-menu .menu-item-has-children:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.main-menu .sub-menu a {
  font-family: 'Lexend', sans-serif !important;
  color: #3A3944;
  display: inline-block;
  padding: 6px 0;
  position: relative;
  text-decoration: none;
  z-index: 1;
  transition: color 0.3s ease;
}

.main-menu .sub-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 11px;
  /* reglage de la hauteur du trait*/
  width: 100%;
  height: 9px;
  background-color: #FF6666;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.main-menu .sub-menu a:hover,
.main-menu .sub-menu a:focus-visible {
  outline: none;
}

.main-menu .sub-menu a:hover::after,
.main-menu .sub-menu a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
  /* Apparaît depuis la gauche */
}

/* Bloc Actions (Réseaux + SVG) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-links {
  display: flex;
  list-style: none;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.social-links a {
  color: #F66;
  /* Icônes sombres sur fond blanc */
  display: flex;
  align-items: center;
  transition: color 0.2s, transform 0.2s;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: #3A3944;
  transform: scale(1.1);
  outline: none;
}

/* ==========================================================================
   COMPOSANTS ET EFFETS STYLES
   ========================================================================== */

/* Cartes Services */
.cartes-services {
  height: 515px !important;
  width: 500px;
  max-width: 100%;
}

.cartes-services .kt-inside-inner-col {
  height: 100% !important;
  margin-top: 60px !important;
  margin-bottom: 35px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center;
}

.cartes-services:hover .voir-plus-icon svg path{
  fill: #FF6666;
}

/* Trait décoratif diagonale */
.diagonale-trait {
  position: relative;
  display: inline-block;
}

.diagonale-trait::after {
  content: "";
  position: absolute;
  left: -5px;
  top: 60%;
  width: 105%;
  height: 3px;
  background: #FF6666;
  transform: rotate(-3deg);
}

/* Texte défilant (Outline effect) */
.txt-defil {
  font-size: 105px; 
  line-height: 1;
  min-height: 1.2em;
  display: block;
  text-align: left !important;
  position: relative;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
	margin-top:120px;
}

.txt-defil-track {
  display: inline-block;
  white-space: nowrap;
  width: max-content;
  will-change: transform;
  animation: textMarquee 20s linear infinite;
}

.txt-defil-set {
  display: inline-block;
  flex-shrink: 0;
}

@keyframes textMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(var(--text-marquee-offset, -25%), 0, 0);
  }
}

.contour-text {
  font-family: 'GasoekOne', sans-serif !important;
  -webkit-text-stroke: 1px white !important;
  color: transparent;
  text-transform: uppercase;
}

.normal-txt {
  -webkit-text-stroke: 0px !important;
  color: white;
  text-transform: lowercase;
}

.txt-pasdefil{
  font-size: 105px; 
  line-height: 1;
  min-height: 1.2em;
  display: block;
  text-align: left !important;
  position: relative;
  white-space: nowrap;
  width: 105%;
  left: -5%;
  box-sizing: border-box;
  overflow: hidden;
	margin-top:150px;
	font-weight:400;
}

.txt-pasdefil-track {
  display: inline-block;
  white-space: nowrap;
  width: max-content;
}
.contour-text-noir {
  font-family: 'GasoekOne', sans-serif !important;
  -webkit-text-stroke: 1px #3A3944 !important;
  color: transparent;
  text-transform: uppercase;	
}
.normal-txt-noir {
  -webkit-text-stroke: 0px !important;
  color: #3A3944 !important;
  text-transform: lowercase;
}

/* Boutons / CTA */
.text-CTA-1 {
  color: #3A3944;
  font-weight: 900;
  text-transform: uppercase;
}

/*Place dans la grille*/

.Design-edito-grid {
	grid-column: span 2;
}

/* --- Version laptop (Ajustements pour écrans < 1440px) --- */
@media screen and (max-width: 1440px) {

  h1,
  .h1-CTA-1 {
    font-size: 45px;
  }

  h2 {
    font-size: 55px;
  }

  .txt-defil {
    font-size: 85px;
  }
}

/* --- Version tablette (Ajustements pour écrans < 1024px) --- */
@media screen and (max-width: 1024px) {

  h1,
  .h1-CTA-1 {
    font-size: 32px;
  }

  h2 {
    font-size: 40px;
  }

  p {
    font-size: 16px;
  }

  .txt-defil {
    font-size: 55px;
  }

  div.wp-block-group.gridexp.has-custom-css.is-layout-grid.wp-container-core-group-is-layout-28b052f3.wp-block-group-is-layout-grid.wp-custom-css-6faa056c {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    width: 50%;
  }

  .custom-header {
    height: auto;
    /* Permet au header de s'adapter au contenu sur deux lignes */
    padding: 15px 0;
  }

  .header-container {
    flex-direction: column;
    /* Aligne le logo et le bloc de droite verticalement */
    gap: 15px;
    padding: 0 20px;
    /* Réduction des marges sur mobile */
  }

  .right-align {
    flex-direction: column-reverse;
    /* Aligne la navigation sous les réseaux sociaux */
    width: 100%;
    gap: 15px;
  }

  /* Ligne 1 (sur mobile) : Gestion du Logo et des Réseaux */
  /* On force le conteneur du logo et le bloc d'actions à se mettre côte à côte */
  .site-logo {
    order: 1;
  }

  .header-actions {
    order: 2;
  }

  /* Ajustement global pour tricher sur la structure HTML et créer les deux lignes distinctes */
  .header-container {
    display: grid;
    grid-template-columns: 1fr auto;
    /* Colonne 1 : Logo, Colonne 2 : Réseaux */
    row-gap: 20px;
    /* Espace entre la ligne 1 et la ligne 2 */
  }

  .site-logo {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
  }

  .right-align {
    display: contents;
    /* Annule l'effet de cette div pour laisser le Grid gérer le placement */
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
  }

  /* Ligne 2 (sur mobile) : La Navigation */
  .site-navigation {
    grid-column: 1 / span 2;
    /* Prend toute la largeur de la grille */
    grid-row: 2;
    width: 100%;
  }

  .main-menu {
    justify-content: center;
    /* Centre le menu horizontalement */
    gap: 15px;
    /* Réduit l'espace entre les liens pour que ça tienne sur mobile */
    flex-wrap: wrap;
    /* Évite que le menu déborde si les titres sont longs */
  }

  .main-menu a {
    font-size: 18px;
    /* Réduction de la taille de police (25px étant très grand pour mobile) */
  }

  /* Ajustement pour le sous-menu mobile pour éviter qu'il flotte trop loin */
  .main-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
  }

  .etoile {
    display: none !important;
  }

}

/* --- Version Mobile (Ajustements pour écrans < 768px) --- */
@media screen and (max-width: 768px) {

  h1,
  .h1-CTA-1 {
    font-size: 26px;
  }

  h2 {
    font-size: 28px;
  }

  p {
    font-size: 16px;
  }

  .txt-defil {
    font-size: 35px;
  }

  span.kt-blocks-accordion-title-wrap {
    font-size: 26px;
    line-height: 1.8rem;
  }
}

/* ==========================================================================
   4. CARROUSEL DE LOGOS (PAGE D'ACCUEIL)
   ========================================================================== */

.logo-section {
  display: flex;
  justify-content: center;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  overflow: hidden;
}

.logo-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.logo-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee 25s linear infinite;
}

.logo-track:hover,
body.is-scrolling .logo-track {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(var(--marquee-offset, -25%), 0, 0);
  }
}

.logo-set {
  display: flex;
  align-items: center;
  gap: 90px;
  padding-right: 90px;
  list-style: none;
  margin: 0;
  padding-left: 0;
  flex-shrink: 0;
}

.logo-item {
  width: auto;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.logo-item img {
  height: 50px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* --- Responsive Carrousel --- */

@media (max-width: 1920px) {
  .logo-item {
    height: 65px;
  }

  .logo-item img {
    height: 45px;
  }
}

@media (max-width: 1600px) {
  .logo-set {
    gap: 80px;
    padding-right: 80px;
  }

  .logo-item {
    height: 60px;
  }

  .logo-item img {
    height: 40px;
  }
}

@media (max-width: 1080px) {
  .logo-set {
    gap: 60px;
    padding-right: 60px;
  }

  .logo-item {
    height: 50px;
  }

  .logo-item img {
    height: 32px;
  }
}

@media (max-width: 767px) {
  .logo-set {
    gap: 40px;
    padding-right: 40px;
  }

  .logo-item {
    height: 40px;
  }

  .logo-item img {
    height: 25px;
  }
}