/*
Theme Name: Hello UU
Theme URI: https://www.duuble-u.com/
Author: Duuble U
Author URI: https://www.duuble-u.com/
Description: Personalized by Duuble U – Where enchanted elegance meets solid craftsmanship, because your site deserves a whisper of magic and a foundation of steel.
Version: 1.0.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 8.0
Template: hello-elementor
Text Domain: hello-uu
Tags: elementor, minimal, child-theme
Donate link: https://buymeacoffee.com/duubleu
License: GPL-3.0-or-later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/* Rubik 400 – normal */
@font-face {
    font-family: 'Rubik';
    src: url('assets/fonts/Rubik-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Rubik 900 – bold/black */
@font-face {
    font-family: 'Rubik';
    src: url('assets/fonts/Rubik-Black.woff2') format('woff2');
    font-weight: 900;
	font-style: normal;
    font-display: swap;
}

/* ==========================================================
   Duuble U - Portable Palette & Type System for Elementor
   Option B: 4 Elementor globals + black/white + 4 extras
   Version: 1.2.0

   How to use in Elementor:
   - Put uu-prose on the wrapper of blog/article content
   - Put uu-card on each card wrapper in a listing/grid/loop
   - Put uu-hero on hero wrappers
   - Put uu-section on standard sections
   - Put uu-on-dark on sections with dark backgrounds
   - Use utilities (uu-c-*, uu-t-*, uu-w-*) only as exceptions

   Notes:
   - Context styles (Plan A): no !important
   - Utility styles (Plan B): !important on purpose (utilities must win)
   ========================================================== */


/* ==========================================================
   1) SITE MAPPING (edit this per site)
   - Stable Elementor globals: primary / secondary / accent / text
   - Neutrals: night / snow
   - Extras (4): pick any 4 brand/support colors for the client

   Tip:
   - Set extras as HEX (portable)
   - OR point them to Elementor custom IDs (quick per-site mapping), e.g.
     --uu-palette-ocean: var(--e-global-color-xxxxxxx);
   ========================================================== */

:root {
	/* Stable Elementor globals (portable across sites) */
	--uu-palette-main: var(--e-global-color-primary, #111111);
	--uu-palette-leaf: var(--e-global-color-secondary, #111111);
	--uu-palette-sun:  var(--e-global-color-accent, #111111);
	--uu-palette-mist: var(--e-global-color-text, #333333);

	/* Neutrals (portable) */
	--uu-palette-night: #000000;
	--uu-palette-snow:  #FFFFFF;

	/* Headings default (portable) */
	--uu-palette-ink: var(--uu-palette-night);

	/* ===== 4 EXTRAS (EDIT PER SITE) ===== */
	--uu-palette-ocean: #2365AF; /* e.g. brand blue */
	--uu-palette-moss:  #94C023; /* e.g. brand green variant */
	--uu-palette-stone: #878786; /* e.g. supporting gray */
	--uu-palette-clay:  #FFA400; /* e.g. warm support (can differ from accent) */

	/* On dark backgrounds */
	--uu-on-dark-text:  var(--uu-palette-snow);
	--uu-on-dark-muted: rgba(255, 255, 255, 0.78);
	--uu-on-dark-head:  var(--uu-palette-snow);
}


/* ==========================================================
   2) TYPOGRAPHY TOKENS (Elementor 4 typographies)
   ========================================================== */

:root {
	/* Font families mapped to Elementor global typography */
	--uu-font-head:   var(--e-global-typography-primary-font-family, system-ui);
	--uu-font-ui:     var(--e-global-typography-secondary-font-family, var(--uu-font-head));
	--uu-font-body:   var(--e-global-typography-text-font-family, system-ui);
	--uu-font-accent: var(--e-global-typography-accent-font-family, var(--uu-font-head));

	/* Weights (thin / normal / bold / black) */
	--uu-w-thin:   300;
	--uu-w-normal: 400;
	--uu-w-bold:   700;
	--uu-w-black:  900;

	/* Rhythm */
	--uu-heading-line: 1.15;
	--uu-body-line: 1.6;
	--uu-title-gap: 0.55em;

	/* Responsive type scale */
	--uu-t-xs:  clamp(0.82rem, 0.78rem + 0.15vw, 0.9rem);
	--uu-t-sm:  clamp(0.92rem, 0.88rem + 0.2vw, 1.02rem);
	--uu-t-md:  clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
	--uu-t-lg:  clamp(1.18rem, 1.08rem + 0.45vw, 1.45rem);
	--uu-t-xl:  clamp(1.42rem, 1.22rem + 0.85vw, 1.9rem);
	--uu-t-2xl: clamp(1.7rem,  1.35rem + 1.2vw,  2.35rem);
	--uu-t-3xl: clamp(2.05rem, 1.55rem + 1.8vw,  3rem);
}


/* ==========================================================
   3) BASE (low specificity)
   ========================================================== */

:where(.uu-prose, .uu-card, .uu-hero, .uu-section) {
	font-family: var(--uu-font-body);
	color: var(--uu-palette-mist);
	line-height: var(--uu-body-line);
}

:where(.uu-prose, .uu-card, .uu-hero, .uu-section) :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--uu-font-head);
	color: var(--uu-palette-ink);
	line-height: var(--uu-heading-line);
	margin: 0 0 var(--uu-title-gap);
	font-weight: var(--uu-w-bold);
	text-wrap: balance;
}

:where(.uu-prose, .uu-card, .uu-hero, .uu-section) :where(p) {
	margin: 0 0 1em;
}

:where(.uu-prose, .uu-card, .uu-hero, .uu-section) :where(p:last-child) {
	margin-bottom: 0;
}


/* ==========================================================
   4) CONTRAST CONTEXTS (put on section/container)
   ========================================================== */

.uu-on-dark {
	color: var(--uu-on-dark-text);
}

.uu-on-dark :where(h1, h2, h3, h4, h5, h6) {
	color: var(--uu-on-dark-head);
}

.uu-on-dark :where(p, li, small, figcaption) {
	color: var(--uu-on-dark-muted);
}

.uu-on-light {
	color: var(--uu-palette-mist);
}


/* ==========================================================
   5) CONTEXT TYPOGRAPHY (Plan A)
   - Same semantic tag, different visual role depending on context
   ========================================================== */

/* 5.1 Prose (blog/article) */
.uu-prose :where(h1) { font-size: var(--uu-t-3xl); font-weight: var(--uu-w-black); }
.uu-prose :where(h2) { font-size: var(--uu-t-2xl); margin-top: 1.2em; }
.uu-prose :where(h3) { font-size: var(--uu-t-xl);  margin-top: 1.05em; }
.uu-prose :where(h4) { font-size: var(--uu-t-lg);  margin-top: 0.9em; }
.uu-prose :where(p, li) { font-size: var(--uu-t-sm); }

/* Prose links */
.uu-prose :where(a) {
	color: var(--uu-palette-main);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.15em;
}

/* 5.2 Card (listing/grid) */
.uu-card :where(h1) { font-size: var(--uu-t-2xl); }
.uu-card :where(h2) { font-size: var(--uu-t-xl); }
.uu-card :where(h3) { font-size: var(--uu-t-lg); }
.uu-card :where(h4) { font-size: var(--uu-t-md); }
.uu-card :where(p, li, small) { font-size: var(--uu-t-sm); }
.uu-card :where(h1, h2, h3, h4, h5, h6) { margin-bottom: calc(var(--uu-title-gap) * 0.75); }

/* 5.3 Hero */
.uu-hero :where(h1) { font-size: var(--uu-t-3xl); font-weight: var(--uu-w-black); }
.uu-hero :where(h2) { font-size: var(--uu-t-2xl); font-weight: var(--uu-w-black); }
.uu-hero :where(p)  { font-size: var(--uu-t-lg); }

/* 5.4 Section (generic) */
.uu-section :where(h1) { font-size: var(--uu-t-2xl); }
.uu-section :where(h2) { font-size: var(--uu-t-xl); }
.uu-section :where(h3) { font-size: var(--uu-t-lg); }
.uu-section :where(p)  { font-size: var(--uu-t-md); }


/* ==========================================================
   6) UTILITIES (Plan B) - use sparingly
   - !important is intentional here: utilities must win.
   ========================================================== */

/* Sizes */
.uu-t-xs  { font-size: var(--uu-t-xs) !important; }
.uu-t-sm  { font-size: var(--uu-t-sm) !important; }
.uu-t-md  { font-size: var(--uu-t-md) !important; }
.uu-t-lg  { font-size: var(--uu-t-lg) !important; }
.uu-t-xl  { font-size: var(--uu-t-xl) !important; }
.uu-t-2xl { font-size: var(--uu-t-2xl) !important; }
.uu-t-3xl { font-size: var(--uu-t-3xl) !important; }

/* Colors (core) */
.uu-c-main  { color: var(--uu-palette-main) !important; }
.uu-c-leaf  { color: var(--uu-palette-leaf) !important; }
.uu-c-sun   { color: var(--uu-palette-sun) !important; }
.uu-c-ink   { color: var(--uu-palette-ink) !important; }
.uu-c-mist  { color: var(--uu-palette-mist) !important; }
.uu-c-night { color: var(--uu-palette-night) !important; }
.uu-c-snow  { color: var(--uu-palette-snow) !important; }

/* Colors (extras) */
.uu-c-ocean { color: var(--uu-palette-ocean) !important; }
.uu-c-moss  { color: var(--uu-palette-moss) !important; }
.uu-c-stone { color: var(--uu-palette-stone) !important; }
.uu-c-clay  { color: var(--uu-palette-clay) !important; }

/* Background utilities (core) */
.uu-bg-snow  { background-color: var(--uu-palette-snow) !important; }
.uu-bg-night { background-color: var(--uu-palette-night) !important; }
.uu-bg-main  { background-color: var(--uu-palette-main) !important; }
.uu-bg-leaf  { background-color: var(--uu-palette-leaf) !important; }
.uu-bg-sun   { background-color: var(--uu-palette-sun) !important; }

/* Background utilities (extras) */
.uu-bg-ocean { background-color: var(--uu-palette-ocean) !important; }
.uu-bg-moss  { background-color: var(--uu-palette-moss) !important; }
.uu-bg-stone { background-color: var(--uu-palette-stone) !important; }
.uu-bg-clay  { background-color: var(--uu-palette-clay) !important; }

/* Weights */
.uu-w-thin   { font-weight: var(--uu-w-thin) !important; }
.uu-w-normal { font-weight: var(--uu-w-normal) !important; }
.uu-w-bold   { font-weight: var(--uu-w-bold) !important; }
.uu-w-black  { font-weight: var(--uu-w-black) !important; }

/* Transform */
.uu-upper    { text-transform: uppercase !important; letter-spacing: 0.02em; }
.uu-no-upper { text-transform: none !important; }

/* Radius utilities */
:root {
	--uu-radius-sm: 8px;
	--uu-radius-md: 12px;
	--uu-radius-lg: 16px;
	--uu-radius-xl: 24px;
}

/* All corners */
.uu-radius-sm { border-radius: var(--uu-radius-sm) !important; }
.uu-radius-md { border-radius: var(--uu-radius-md) !important; }
.uu-radius-lg { border-radius: var(--uu-radius-lg) !important; }
.uu-radius-xl { border-radius: var(--uu-radius-xl) !important; }

/* Top-right only */
.uu-radius-tr-sm { border-top-right-radius: var(--uu-radius-sm) !important; }
.uu-radius-tr-md { border-top-right-radius: var(--uu-radius-md) !important; }
.uu-radius-tr-lg { border-top-right-radius: var(--uu-radius-lg) !important; }
.uu-radius-tr-xl { border-top-right-radius: var(--uu-radius-xl) !important; }

/* Optional: typography utilities */
.uu-font-head   { font-family: var(--uu-font-head) !important; }
.uu-font-body   { font-family: var(--uu-font-body) !important; }
.uu-font-ui     { font-family: var(--uu-font-ui) !important; }
.uu-font-accent { font-family: var(--uu-font-accent) !important; }

/* Text align utilities */
.uu-text-left   { text-align: left !important; }
.uu-text-center { text-align: center !important; }
.uu-text-right  { text-align: right !important; }

.uu-text-start { text-align: start !important; }
.uu-text-end   { text-align: end !important; }
.uu-text-center { text-align: center !important; }

/* Misc */
.uu-no-margin { margin: 0 !important; }
.uu-tight     { line-height: 1.1 !important; }


/* ==========================================================
   7) Elementor “last mile” (only if needed)
   - Uncomment only if Elementor inline styles win in some cases.
   ========================================================== */
/*
.elementor .uu-card :where(h3) { font-size: var(--uu-t-lg); }
*/

/* Cut top-right corner */
.uu_diagonal_cut {
  -webkit-clip-path: polygon(0 0, calc(100% - 60px) 0, 100% 60px, 100% 100%, 0 100%);
  clip-path: polygon(0 0, calc(100% - 60px) 0, 100% 60px, 100% 100%, 0 100%);
}

.uu_sous_titre {
	font-size: 1.3rem;
	line-height: 1.2;
}
.uu_sous_titre_cap {
	font-size: 1.3rem;
	line-height: 1.2;
	text-transform: uppercase;
}

/* JetEngine / Leaflet : fond de carte en niveaux de gris, légèrement contrasté */
.leaflet-container .leaflet-tile {
    filter: grayscale(1) contrast(1.15) brightness(1.03);
}

/* Bouton plein écran UU_SL, aligné avec les contrôles Leaflet */
.leaflet-control.uu-sl-fullscreen-control a.uu-sl-fullscreen-toggle {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 18px;
    text-decoration: none;
    color: #575756; /* couleur texte SeinergyLAB */
}

.leaflet-control.uu-sl-fullscreen-control a.uu-sl-fullscreen-toggle:hover,
.leaflet-control.uu-sl-fullscreen-control a.uu-sl-fullscreen-toggle:focus {
    color: #FFA400; /* accent */
}

/* Optionnel : si le fallback pseudo fullscreen est utilisé */
.leaflet-container.uu-sl-map-pseudo-fullscreen {
    position: fixed !important;
    inset: 0;
    z-index: 9999;
    background: #ffffff;
}

.uu-break-listing {
	/* énorme sur desktop, mais qui reste lisible sur mobile */
	font-size: clamp(20rem, 10vw, 30rem);
	line-height: 1;
	font-weight: 700;
	color: var(--e-global-color-primary);
	opacity: 0.1;
	margin: 1rem 0 -10rem 0;
	text-transform: uppercase;
}

/* JetSmartFilters – masquer la 1re option du radio "projets" */
body .uu_filtre_termine .jet-radio-list__row:first-child {
	display: none !important;
}

/* stat single partenaire */
.uu_stat_partenaire h3 span{
  font-weight: 200; /* thin */
  font-size: 2rem;
  line-height: 1.1;
  display: inline-block;
}

/* Elementor editor only: enlarge the "CSS Classes" field */
.elementor-editor-active .elementor-control-field .elementor-control-input-wrapper .elementor-control-tag-area {
	min-height: 70px;
	padding: 10px 12px;
}



/* Scroll-driven reveal for headings (no JS, no fallback) */
@supports (animation-timeline: view()) {
  .uu-argument-title {
    opacity: 0;
    transform: translateY(28px) scale(2.22);
    filter: blur(10px);

    animation: uu_title_reveal 1ms linear both;
    animation-timeline: view();
    animation-range: entry 20% cover 40%;

    transform-origin: 50% 60%;
    will-change: transform, opacity, filter;
  }
  @keyframes uu_title_reveal {
    from {
      opacity: 0;
      transform: translateY(28px) scale(2.22);
      filter: blur(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: blur(0);
    }
  }
}
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .uu-argument-title {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}