/*
Theme Name: Super Colonie Child Base
Theme URI:
Description: Starter child theme Super Colonie basé sur Hello Elementor, optimisé pour les layouts Elementor, les helpers projet et le mode marque blanche.
Author: Super Colonie
Author URI:
Template: hello-elementor
Version: 2.1.7
Update URI: https://github.com/jderet-tech/super-colonie-child-base
Text Domain: hello-elementor-child-base
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/* ============================
NOTES IMPORTANTES
============================
Les styles suivants sont gérés par le plugin Super Colonie Core :
- #stickyheaders et .reveal (module Sticky Header et Reveal)
- Les boutons (.btn-relief, .btn-line-slide, etc.) (module Effects)
- Les animations Elementor (.animated, .fadeInDown, etc.) (module Effects)
- Le stacking (#service, .stack-card, etc.) (module Stacking)

Ce fichier contient uniquement les styles spécifiques au starter theme et au site courant.
============================ */

/* ============================
STRUCTURE DE BASE
============================ */
html {
  overflow-x: hidden;
}

body {
  overflow-x: clip;
  overflow-y: visible;
}

@supports not (overflow: clip) {
  body {
    overflow-x: hidden;
  }
}

:root {
  --flore-header-offset: 0px;
}

body:not(.elementor-editor-active):not(.page-id-332) [data-elementor-type="wp-page"].flore-header-offset-ready > .e-con:first-child {
  padding-top: calc(var(--flore-first-section-padding-top, 0px) + var(--flore-header-offset, 0px)) !important;
}

/* ============================
PAGES LEGALES
============================ */
body.page-id-3 #content,
body.page-id-601 #content,
body.page-id-603 #content {
  background: #fff;
  color: #111;
}

.flore-legal-page {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(96px, 12vw, 160px) 24px clamp(72px, 9vw, 120px);
  color: #111;
  background: #fff;
}

.flore-legal-page,
.flore-legal-page * {
  color: #111 !important;
}

.flore-legal-page h1 {
  font-size: clamp(42px, 7vw, 86px);
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0 0 40px;
}

.flore-legal-page h2 {
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.05;
  margin: 48px 0 18px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.flore-legal-page h3 {
  font-size: 20px;
  line-height: 1.25;
  margin: 30px 0 10px;
}

.flore-legal-page p,
.flore-legal-page li {
  font-size: 18px;
  line-height: 1.65;
}

.flore-legal-page ul {
  padding-left: 1.2em;
}

.flore-legal-page a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.flore-legal-page .flore-legal-note {
  border: 1px solid currentColor;
  padding: 18px 20px;
  margin: 24px 0;
}

.flore-legal-page .flore-cookie-button {
  appearance: none;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  padding: 12px 18px;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
}

.flore-legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 32px;
  font-size: 16px;
}

.flore-legal-page th,
.flore-legal-page td {
  border-top: 1px solid rgba(17, 17, 17, .28);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.flore-legal-page th {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .08em;
}

@media (max-width: 767px) {
  .flore-legal-page {
    padding-top: 88px;
  }

  .flore-legal-page table,
  .flore-legal-page tbody,
  .flore-legal-page tr,
  .flore-legal-page th,
  .flore-legal-page td {
    display: block;
  }

  .flore-legal-page th {
    padding-bottom: 0;
  }

  .flore-legal-page td {
    border-top: 0;
    padding-top: 4px;
  }
}

/* ============================
LOTTIE
=============================== */

.lottie-container {
  line-height: 0;
}

.lottie-container {
  height: fit-content !important;
  max-height: 100vh;   /* sécurité sur mobile */
}

/* ============================
TEXTE VERTICAL
=============================== */
.vertical-title {
  writing-mode: sideways-lr;
  text-orientation: mixed; /* lettres droites */
  display: block;
  width: auto;
  height: auto;
  margin: 0 auto;
  text-align: center;
  white-space: nowrap;
}

.vertical-container {
  height: 100% !important;
}

.vertical-container .vertical-title {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}

/* ============================
ROTATION 90 DEGRÉS
=============================== */
.rotate-90 {
  transform: rotate(90deg);
  transform-origin: center;
}

/* Variantes pour rotation dans l'autre sens */
.rotate-90-ccw {
  transform: rotate(-90deg);
  transform-origin: center;
}

/* Rotation avec centrage parfait */
.rotate-90-centered {
  display: inline-block;
  transform: rotate(90deg);
  transform-origin: center;
}

/* ============================
TICKER TEXTE DÉFILANT VERTICAL (bas vers haut)
=============================== */
.text-ticker {
  width: 100%;
  height: 100% !important;
  overflow: hidden !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Cibler tous les enfants directs et les paragraphes */
.text-ticker p,
.text-ticker > p,
.text-ticker > span,
.text-ticker > div,
.text-ticker > *,
p.text-ticker,
span.text-ticker,
div.text-ticker {
  display: inline-block !important;
  margin: 0 auto !important;
  padding: 0 !important;
  white-space: nowrap !important;
  writing-mode: vertical-rl !important;
  text-orientation: mixed !important;
  animation: ticker-scroll-vertical 5s linear infinite !important;
  will-change: transform;
  text-align: center !important;
  /* Forcer la hauteur pour qu'il prenne toute la hauteur disponible */
  height: 100% !important;
  min-height: 100% !important;
  /* Ajustez la durée (5s) selon la longueur du texte */
}

/* Si la classe est directement sur le paragraphe, le conteneur parent doit avoir overflow hidden */
p.text-ticker,
span.text-ticker,
div.text-ticker {
  overflow: hidden !important;
  width: 100%;
  height: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animation du défilement vertical (du bas vers le haut) */
/* Le texte est dupliqué 2 fois, donc on anime de 0 à -50% pour une boucle parfaite */
/* On commence à 0% pour que les 2 copies soient visibles dès le départ */
@keyframes ticker-scroll-vertical {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* Variante : défilement plus rapide */
.text-ticker-fast p,
.text-ticker-fast > *,
p.text-ticker-fast,
span.text-ticker-fast,
div.text-ticker-fast {
  animation-duration: 20s !important;
}

/* Variante : défilement plus lent */
.text-ticker-slow p,
.text-ticker-slow > *,
p.text-ticker-slow,
span.text-ticker-slow,
div.text-ticker-slow {
  animation-duration: 40s !important;
}

/* Pause au survol (optionnel) */
.text-ticker:hover p,
.text-ticker:hover > *,
p.text-ticker:hover,
span.text-ticker:hover,
div.text-ticker:hover {
  animation-play-state: paused !important;
}

/* ============================
SECTIONS FLUIDES
Système de sections fluides inspiré du pattern Lytbox. Ajouter ces classes aux conteneurs racine Elementor.
============================ */
:root {
  --fluid-side-padding-min: 2rem;
  --fluid-side-padding-preferred: 9.524vw - 1.571rem;
  --fluid-side-padding-max: 7rem;

  --section-xxl-padding-min: 9.375rem;
  --section-xxl-padding-max: 10rem;
  --section-xl-padding-min: 2rem;
  --section-xl-padding-preferred: var(--fluid-side-padding-preferred);
  --section-xl-padding-max: 7rem;
  --section-l-padding-min: 5.625rem;
  --section-l-padding-max: 6.25rem;
  --section-m-padding-min: 5rem;
  --section-m-padding-max: 5rem;
  --section-s-padding-min: 3.75rem;
  --section-s-padding-max: 3.75rem;
  --section-xs-padding-min: 2.5rem;
  --section-xs-padding-max: 2.5rem;
  --section-xxs-padding-min: 1.5rem;
  --section-xxs-padding-max: 1.5rem;
  --section-header-padding-min: 1.25rem;
  --section-header-padding-max: 1.25rem;

  --section-hero-height: 100vh;
  --section-offset-header: 80px;
  --section-narrow: 62.5rem;
  --section-narrow-xs: 45rem;
}

.section-xxl {
  padding-top: clamp(var(--section-xxl-padding-min), 1.087vw + 9.13rem, var(--section-xxl-padding-max));
  padding-bottom: clamp(var(--section-xxl-padding-min), 1.087vw + 9.13rem, var(--section-xxl-padding-max));
  padding-left: clamp(var(--fluid-side-padding-min), var(--fluid-side-padding-preferred), var(--fluid-side-padding-max)) !important;
  padding-right: clamp(var(--fluid-side-padding-min), var(--fluid-side-padding-preferred), var(--fluid-side-padding-max)) !important;
}

.section-xl {
  padding-top: clamp(var(--section-xl-padding-min), var(--section-xl-padding-preferred), var(--section-xl-padding-max));
  padding-bottom: clamp(var(--section-xl-padding-min), var(--section-xl-padding-preferred), var(--section-xl-padding-max));
  padding-left: clamp(var(--fluid-side-padding-min), var(--fluid-side-padding-preferred), var(--fluid-side-padding-max)) !important;
  padding-right: clamp(var(--fluid-side-padding-min), var(--fluid-side-padding-preferred), var(--fluid-side-padding-max)) !important;
}

.section-l {
  padding-top: clamp(var(--section-l-padding-min), 1.087vw + 5.38rem, var(--section-l-padding-max));
  padding-bottom: clamp(var(--section-l-padding-min), 1.087vw + 5.38rem, var(--section-l-padding-max));
  padding-left: clamp(var(--fluid-side-padding-min), var(--fluid-side-padding-preferred), var(--fluid-side-padding-max)) !important;
  padding-right: clamp(var(--fluid-side-padding-min), var(--fluid-side-padding-preferred), var(--fluid-side-padding-max)) !important;
}

.section-m {
  padding-top: clamp(var(--section-m-padding-min), 0vw + 5rem, var(--section-m-padding-max));
  padding-bottom: clamp(var(--section-m-padding-min), 0vw + 5rem, var(--section-m-padding-max));
  padding-left: clamp(var(--fluid-side-padding-min), var(--fluid-side-padding-preferred), var(--fluid-side-padding-max)) !important;
  padding-right: clamp(var(--fluid-side-padding-min), var(--fluid-side-padding-preferred), var(--fluid-side-padding-max)) !important;
}

.section-s {
  padding-top: clamp(var(--section-s-padding-min), 0vw + 3.75rem, var(--section-s-padding-max));
  padding-bottom: clamp(var(--section-s-padding-min), 0vw + 3.75rem, var(--section-s-padding-max));
  padding-left: clamp(var(--fluid-side-padding-min), var(--fluid-side-padding-preferred), var(--fluid-side-padding-max)) !important;
  padding-right: clamp(var(--fluid-side-padding-min), var(--fluid-side-padding-preferred), var(--fluid-side-padding-max)) !important;
}

.section-xs {
  padding-top: clamp(var(--section-xs-padding-min), 0vw + 2.5rem, var(--section-xs-padding-max));
  padding-bottom: clamp(var(--section-xs-padding-min), 0vw + 2.5rem, var(--section-xs-padding-max));
  padding-left: clamp(var(--fluid-side-padding-min), var(--fluid-side-padding-preferred), var(--fluid-side-padding-max)) !important;
  padding-right: clamp(var(--fluid-side-padding-min), var(--fluid-side-padding-preferred), var(--fluid-side-padding-max)) !important;
}

.section-xxs {
  padding-top: clamp(var(--section-xxs-padding-min), 0vw + 1.5rem, var(--section-xxs-padding-max));
  padding-bottom: clamp(var(--section-xxs-padding-min), 0vw + 1.5rem, var(--section-xxs-padding-max));
  padding-left: clamp(var(--fluid-side-padding-min), var(--fluid-side-padding-preferred), var(--fluid-side-padding-max)) !important;
  padding-right: clamp(var(--fluid-side-padding-min), var(--fluid-side-padding-preferred), var(--fluid-side-padding-max)) !important;
}

.section-header {
  padding-top: clamp(var(--section-header-padding-min), 0vw + 1.25rem, var(--section-header-padding-max));
  padding-bottom: clamp(var(--section-header-padding-min), 0vw + 1.25rem, var(--section-header-padding-max));
  padding-left: clamp(var(--fluid-side-padding-min), var(--fluid-side-padding-preferred), var(--fluid-side-padding-max)) !important;
  padding-right: clamp(var(--fluid-side-padding-min), var(--fluid-side-padding-preferred), var(--fluid-side-padding-max)) !important;
}

.section-hero {
  min-height: var(--section-hero-height) !important;
}

.section-hero .e-con-inner {
  justify-content: center !important;
}

.section-full div {
  max-width: 100% !important;
}

.section-narrow .e-con-inner {
  max-width: var(--section-narrow) !important;
}

.section-narrow-xs .e-con-inner {
  max-width: var(--section-narrow-xs) !important;
}

.section-offset {
  padding-top: calc(var(--section-offset-header) + var(--section-xxl-padding-min));
}
