/*
Theme Name: Alternatives - Divi Child Theme
Text Domain: alternatives-child
Template: Divi
Description:  Custom Wordpress theme based on Divi.
Author:       Alternatives Communication
Version: 1.0.0
Author URI:   https://alternatives.lu
*/

:root {
  --alt-light: #fcf7ed;
  --alt-dark: #400047;
  --alt-darker: #2c0b20;
  --alt-yellow: #fcff00;
  --alt-transition: all 0.2s;
  --alt-radius: 20px;
}
@media screen and (min-width: 981px) {
  .mobile_only {
    display: none !important;
  }
}

#loftloader-wrapper .loader-section {
  background: linear-gradient(150deg, #400047 25%, #06000d 100%) !important;
}

/* Fonts  */
#page-container,
#page-container p,
#page-container li,
/* #page-container a, */
#page-container .font_mundial_narrow,
#page-container .font_mundial_narrow > * {
  font-family: "mundial-narrow-variable", sans-serif !important;
}
#page-container h1,
#page-container h2,
#page-container h3,
#page-container h4,
#page-container h5,
#page-container h6 {
  font-family: "cormorant-garamond", serif !important;
}

.font_highlighted {
  font-weight: 600 !important;
  font-style: italic !important;
}
#page-container .font_chapman,
#page-container .font_chapman > * {
  font-family: "chapman", sans-serif !important;
}

/* home page  */

.heading_animated_home .headline-animation > span {
  display: inline !important;
  line-height: 1.2em !important;
}
.heading_animated_home .headline-animation .infix {
  font-weight: 600 !important;
  font-style: italic !important;
  font-family: "chapman", sans-serif !important;
}

.heading_animated_home .headline-animation.letter .words-wrapper > span {
  transform: translate(10px, -6px) !important;
}

.container_contact_social_media {
  display: flex;
  flex-direction: column;
}
.container_contact_social_media a {
  display: flex;
  align-items: center;
  width: fit-content;
  font-weight: 300 !important;
}
.container_contact_social_media a img {
  width: 15px;
  margin-left: 8px;
  transition: var(--alt-transition);
}
.container_contact_social_media a:hover img {
  transform: rotate(45deg);
}

/* ===================== */
/* LETTER SLIDE  */
/* ===================== */

/* Réglages (modifiables par module : ajoute ces variables sur le module Divi) */
.alt_letter_slide {
  --pr-ls-duration: 800ms; /* durée de l'animation d'une lettre */
  --pr-ls-stagger: 50ms; /* décalage entre deux lettres (identique à DiviFlash) */
  --pr-ls-distance: 0.6em; /* positif = arrive de la droite, négatif = de la gauche */
  --pr-ls-ease: cubic-bezier(0.34, 1.56, 0.64, 1); /* repli "spring" pour vieux navigateurs */
}

/* Easing "spring" identique à DiviFlash (navigateurs récents) */
@supports (animation-timing-function: linear(0, 1)) {
  .alt_letter_slide {
    --pr-ls-ease: linear(0, 0.07, 0.235, 0.44, 0.643, 0.818, 0.953, 1.046, 1.098, 1.119, 1.117, 1.1, 1.076, 1.052, 1.029, 1.011, 0.998, 0.99, 0.986, 0.986, 0.987, 0.99, 0.993, 0.996, 1);
  }
}

.alt_letter_slide .pr-ls-word {
  display: inline-block;
  white-space: nowrap;
}

.alt_letter_slide .pr-ls-char {
  display: inline-block;
  opacity: 0;
  transform: translateX(var(--pr-ls-distance));
}

.alt_letter_slide .pr-ls-play .pr-ls-char,
.alt_letter_slide.pr-ls-play .pr-ls-char {
  animation: alt_letter_slide var(--pr-ls-duration) var(--pr-ls-ease) both;
  animation-delay: calc(var(--i) * var(--pr-ls-stagger));
}

@keyframes alt_letter_slide {
  from {
    opacity: 0;
    transform: translateX(var(--pr-ls-distance));
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Texte lu par les lecteurs d'écran (invisible) */
.alt_letter_slide .pr-ls-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .alt_letter_slide .pr-ls-char {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}
/* ===================== */
/* FIN LETTER SLIDE  */
/* ===================== */

/* ===================== */
/* GIF GET IN TOUCH */
/* ===================== */
.al-touch {
  --al-touch-size: 150px; /* taille du cercle */
  --al-touch-speed: 18s; /* durée d'un tour */
  --al-touch-brake: 36s; /* frein au hover : 2× speed = 2× plus lent, 1.5× speed = 3× plus lent */
  --al-touch-gif: 115%; /* le GIF a beaucoup de marge autour de la main */

  position: relative;
  display: block;
  width: var(--al-touch-size);
  aspect-ratio: 1;
  color: var(--al-main, #3b0b3a);
  text-decoration: none;
}

.al-touch__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: al-touch-spin var(--al-touch-speed) linear infinite;
}

.al-touch__brake {
  transform-box: view-box;
  transform-origin: 100px 100px;
  animation: al-touch-spin var(--al-touch-brake) linear infinite reverse;
  animation-play-state: paused;
}

.al-touch:hover .al-touch__brake {
  animation-play-state: running;
}

.al-touch__ring text {
  fill: currentColor;
  font-style: inherit;
  font-size: 38px;
  font-family: "cormorant-garamond" !important;
  letter-spacing: -2px;
  font-weight: 550;
}

.al-touch__gif {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--al-touch-gif);
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

@keyframes al-touch-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .al-touch__ring,
  .al-touch__brake {
    animation: none;
  }
}
@media (max-width: 980px) {
  .al-touch {
    --al-touch-size: 80px; /* plus petit sur mobile */
    margin: 0 4px -55px auto; /* à droite + descend sur la 1re carte */
    position: relative;
    z-index: 6; /* au-dessus de la carte */
  }
}
/* ===================== */
/* FIN GIF GET IN TOUCH */
/* ===================== */

/* ==========================================================
   Bannière cookies Complianz
   (préfixe #cmplz-cookiebanner-container : passe devant
   les styles de Complianz, quel que soit l'ordre de chargement)
   ========================================================== */

/* ---------- Conteneur : centré, 600px max, 12px de marge mini ---------- */
#cmplz-cookiebanner-container .cmplz-cookiebanner {
  left: max(12px, calc(50% - 300px)) !important;
  right: max(12px, calc(50% - 300px)) !important;
  bottom: 12px !important;
  width: auto !important;
  max-width: none !important;
  padding: clamp(14px, 2.5vw, 20px) !important;
  border-radius: var(--alt-radius) !important;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-header {
  display: none !important;
  margin-bottom: -30px !important;
}

/* ---------- Message + icône ---------- */
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-body .cmplz-message {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 16px);
  color: var(--alt-dark) !important;
  font-size: clamp(20px, 4.5vw, 35px) !important;
  font-weight: 500;
  font-family: "mundial-narrow-variable", sans-serif !important;
  line-height: 1.1 !important;
  letter-spacing: clamp(-1px, -0.15vw, -0.5px);
  margin-bottom: -5px;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-body .cmplz-message p {
  margin: 0;
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-body .cmplz-message::before {
  content: "";
  flex: 0 0 auto;
  width: clamp(48px, 10vw, 80px);
  height: clamp(48px, 10vw, 80px);
  background: url("/wp-content/uploads/2026/11/AL_Icon_Cookies-BG-Light.webp") center / 300% no-repeat;
}

/* ---------- Boutons : toujours côte à côte ---------- */
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: clamp(4px, 1.5vw, 10px) !important;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  height: clamp(36px, 7vw, 45px) !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 4px !important;
  font-size: clamp(9px, 2.9vw, 15px) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn:hover {
  color: var(--alt-yellow) !important;
  background-color: var(--alt-dark) !important;
}

/* ---------- Lien politique de cookies ---------- */
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-links .cmplz-link {
  font-size: 12px !important;
}

/* Texte de secours si Complianz envoie un titre vide */
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-documents .cmplz-link.cookie-statement:empty::before {
  content: "Politique de cookies";
}

/* ---------- Écrans peu hauts (tablette/mobile en paysage, fenêtre basse) ----------
   Complianz applique ici un zoom 0.6 (0.5 sur les boutons) + une hauteur forcée
   à 100vh : c'est ce qui donne la bannière jaune vide avec du texte minuscule. */
@media (max-height: 400px) {
  #cmplz-cookiebanner-container .cmplz-cookiebanner {
    zoom: 1 !important;
    display: grid !important;
    height: auto !important;
    max-height: calc(100vh - 16px) !important;
    overflow-y: auto !important;
    row-gap: 6px !important;
    bottom: 8px !important;
    padding: 10px 14px !important;
  }

  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-close,
  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-documents,
  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-information {
    zoom: 1 !important;
  }

  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-body .cmplz-message {
    font-size: 20px !important;
    margin-bottom: 0;
  }

  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-body .cmplz-message::before {
    width: 40px;
    height: 40px;
  }

  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
    zoom: 1 !important;
    height: 34px !important;
    font-size: 12px !important;
  }
}

/* ==========================================================
   Fin Bannière cookies Complianz
   ========================================================== */