/*
Theme Name: Pipo & Lola
Theme URI: https://www.pipoetlola.com/
Description: Thème pour le site Pipo & Lola
Author: Tribu web Lille
Author URI: https://www.tribuweblille.fr/
Template: Divi
Version: 1.0.0
Text Domain: pipo-lola
*/

/* Tu peux ajouter ici ton CSS personnalisé */
/*
Theme Name: Divi Child - Pipo & Lola
Template: Divi
Version: 1.0
*/

/* =========================================================
   1. VARIABLES / BASE
========================================================= */

:root {
  --pll-brown: #320e00;
  --pll-brown-deep: #20170b;
  --pll-cream: #fbe8d1;
  --pll-cream-soft: #f9e6cf;
  --pll-cream-dark: #f1dbc0;
  --pll-accent: #f59c71;
  --pll-white: #faf9f6;
  --pll-text-light: rgba(250, 249, 246, 0.92);
  --pll-text-light-soft: rgba(250, 249, 246, 0.76);
  --pll-text-dark: rgba(32, 23, 11, 0.92);
  --pll-text-dark-soft: rgba(32, 23, 11, 0.72);

  --pll-radius-sm: 12px;
  --pll-radius-md: 20px;
  --pll-radius-lg: 28px;

  --pll-shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.12);
  --pll-shadow-medium: 0 20px 50px rgba(0, 0, 0, 0.18);
  --pll-shadow-strong: 0 30px 70px rgba(0, 0, 0, 0.26);

  --pll-transition-fast: 0.25s ease;
  --pll-transition-medium: 0.45s ease;
  --pll-transition-slow: 0.8s ease;

  --pll-max-width: 1400px;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--pll-text-dark);
  background: var(--pll-white);
  overflow-x: hidden;
}

/* Grain très léger premium */
body.pll-has-grain::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(0,0,0,0.08) 0.7px, transparent 0.8px),
    radial-gradient(circle at 80% 30%, rgba(0,0,0,0.06) 0.7px, transparent 0.8px),
    radial-gradient(circle at 30% 80%, rgba(0,0,0,0.05) 0.7px, transparent 0.8px),
    radial-gradient(circle at 70% 70%, rgba(0,0,0,0.04) 0.7px, transparent 0.8px);
  background-size: 160px 160px, 210px 210px, 190px 190px, 240px 240px;
}

img {
  max-width: 100%;
  height: auto;
}

/* =========================================================
   2. TYPES / HELPERS
========================================================= */

.pll-eyebrow,
.pll-eyebrow p {
  margin: 0;
  color: var(--pll-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.4;
}

.pll-title-xl h1,
.pll-title-xl h2,
.pll-title-xl .et_pb_text_inner h1,
.pll-title-xl .et_pb_text_inner h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.pll-title-lg h1,
.pll-title-lg h2,
.pll-title-lg .et_pb_text_inner h1,
.pll-title-lg .et_pb_text_inner h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

.pll-text-light p {
  color: var(--pll-text-light);
}

.pll-text-dark p {
  color: var(--pll-text-dark);
}

.pll-text p {
  margin: 0 0 1.2em 0;
  font-size: 18px;
  line-height: 1.72;
}

.pll-text p:last-child {
  margin-bottom: 0;
}

.pll-max-width {
  max-width: var(--pll-max-width);
  margin-left: auto;
  margin-right: auto;
}

.pll-card-soft {
  border-radius: var(--pll-radius-md);
  box-shadow: var(--pll-shadow-medium);
}

.pll-hidden-mobile {
  display: block;
}

.pll-hidden-desktop {
  display: none;
}

/* =========================================================
   3. GLOBAL BUTTONS / LINKS / ARROWS
========================================================= */

.pll-btn .et_pb_button,
.et_pb_button.pll-btn,
.pll-btn a.et_pb_button {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--pll-accent) !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: var(--pll-radius-sm) !important;
  padding: 16px 26px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  overflow: hidden;
  transition:
    transform var(--pll-transition-fast),
    box-shadow var(--pll-transition-fast),
    filter var(--pll-transition-fast),
    background var(--pll-transition-fast);
}

.pll-btn .et_pb_button::after,
.et_pb_button.pll-btn::after,
.pll-btn a.et_pb_button::after {
  display: none !important;
}

.pll-btn .et_pb_button::before,
.et_pb_button.pll-btn::before,
.pll-btn a.et_pb_button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.24) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-18deg);
  transition: left 0.55s ease;
}

.pll-btn .et_pb_button:hover,
.et_pb_button.pll-btn:hover,
.pll-btn a.et_pb_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0,0,0,0.24);
  filter: brightness(1.03);
}

.pll-btn .et_pb_button:hover::before,
.et_pb_button.pll-btn:hover::before,
.pll-btn a.et_pb_button:hover::before {
  left: 140%;
}

/* Variante outline premium */
.pll-btn-outline .et_pb_button,
.et_pb_button.pll-btn-outline,
.pll-btn-outline a.et_pb_button {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.7) !important;
  box-shadow: none !important;
}

.pll-btn-outline .et_pb_button:hover,
.et_pb_button.pll-btn-outline:hover,
.pll-btn-outline a.et_pb_button:hover {
  background: var(--pll-accent) !important;
  border-color: var(--pll-accent) !important;
  color: #ffffff !important;
}

/* Liens avec flèche animée */
.pll-arrow-link a,
a.pll-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: color var(--pll-transition-fast);
}

.pll-arrow-link a .pll-arrow,
a.pll-arrow-link .pll-arrow {
  display: inline-block;
  transition: transform var(--pll-transition-fast);
}

.pll-arrow-link a:hover .pll-arrow,
a.pll-arrow-link:hover .pll-arrow {
  transform: translateX(6px);
}

/* =========================================================
   4. REVEAL / SCROLL / STAGGER
========================================================= */

.pll-reveal {
  opacity: 0;
  transform: translateY(42px);
  transition:
    opacity var(--pll-transition-slow),
    transform var(--pll-transition-slow);
  will-change: opacity, transform;
}

.pll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pll-reveal-left {
  opacity: 0;
  transform: translateX(-42px);
  transition:
    opacity var(--pll-transition-slow),
    transform var(--pll-transition-slow);
}

.pll-reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.pll-reveal-right {
  opacity: 0;
  transform: translateX(42px);
  transition:
    opacity var(--pll-transition-slow),
    transform var(--pll-transition-slow);
}

.pll-reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.pll-zoom-in {
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity var(--pll-transition-slow),
    transform var(--pll-transition-slow);
}

.pll-zoom-in.is-visible {
  opacity: 1;
  transform: scale(1);
}

.pll-delay-1 { transition-delay: 0.1s; }
.pll-delay-2 { transition-delay: 0.2s; }
.pll-delay-3 { transition-delay: 0.3s; }
.pll-delay-4 { transition-delay: 0.4s; }
.pll-delay-5 { transition-delay: 0.5s; }
.pll-delay-6 { transition-delay: 0.6s; }

/* =========================================================
   5. HERO
========================================================= */

.pll-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background-color: var(--pll-brown);
}

.pll-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(50,14,0,0.84) 0%,
    rgba(50,14,0,0.68) 28%,
    rgba(50,14,0,0.42) 55%,
    rgba(50,14,0,0.20) 78%,
    rgba(50,14,0,0.10) 100%
  );
  z-index: 1;
}

.pll-hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: 34%;
  top: 48%;
  margin-top: -260px;
  background: radial-gradient(circle, rgba(245,156,113,0.16) 0%, rgba(245,156,113,0.06) 42%, rgba(245,156,113,0) 72%);
  filter: blur(22px);
  z-index: 1;
  animation: pllHeroGlow 7s ease-in-out infinite alternate;
}

@keyframes pllHeroGlow {
  0% {
    transform: translateX(0) translateY(0);
    opacity: 0.75;
  }
  100% {
    transform: translateX(14px) translateY(-8px);
    opacity: 1;
  }
}

.pll-hero .et_pb_row,
.pll-hero .et_pb_column,
.pll-hero .et_pb_module {
  position: relative;
  z-index: 2;
}

.pll-hero-row {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 90px;
}

.pll-hero-left {
  max-width: 640px;
  padding: 34px 24px 34px 34px;
  border-radius: 30px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 26px 70px rgba(0,0,0,0.22);
}

.pll-hero-right {
  padding-top: 140px;
  padding-left: 30px;
}

.pll-hero-label {
  display: inline-block;
  margin-bottom: 18px;
  padding: 10px 16px 10px 30px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(245,156,113,0.22);
  position: relative;
}

.pll-hero-label::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--pll-accent);
  box-shadow: 0 0 12px rgba(245,156,113,0.65);
}

.pll-hero-label p {
  margin: 0;
  color: var(--pll-cream);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.pll-hero-title h1 {
  margin: 0;
  color: #ffffff;
  font-size: 82px;
  line-height: 0.90;
  font-weight: 800;
  letter-spacing: -3px;
  text-shadow: 0 10px 28px rgba(0,0,0,0.20);
  max-width: 540px;
}

.pll-hero-title h1 span {
  color: var(--pll-accent);
}

.pll-hero-text {
  max-width: 430px;
  padding: 28px 30px;
  border-radius: 24px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 20px 55px rgba(0,0,0,0.20);
  margin-bottom: 18px;
}

.pll-hero-text p {
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
}

/* Mask reveal premium titre */
.pll-mask-reveal {
  overflow: hidden;
}

.pll-mask-reveal .pll-mask-line {
  display: block;
  transform: translateY(110%);
  opacity: 0;
}

.pll-mask-reveal.is-visible .pll-mask-line {
  animation: pllMaskUp 0.9s cubic-bezier(.2,.8,.2,1) forwards;
}

.pll-mask-reveal.is-visible .pll-mask-line:nth-child(1) { animation-delay: 0.05s; }
.pll-mask-reveal.is-visible .pll-mask-line:nth-child(2) { animation-delay: 0.18s; }
.pll-mask-reveal.is-visible .pll-mask-line:nth-child(3) { animation-delay: 0.31s; }

@keyframes pllMaskUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* =========================================================
   6. SECTION SPLIT EXPERTISES
========================================================= */

.pll-split-section {
  background: #faf9f6;
}

.pll-split-row {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.pll-split-row .et_pb_column {
  width: 50%;
  margin: 0 !important;
}

.pll-split-left {
  background: var(--pll-cream);
  padding: 110px 90px 110px 120px;
  box-sizing: border-box;
}

.pll-split-right {
  background: var(--pll-cream-dark);
  padding: 150px 90px 110px 90px;
  box-sizing: border-box;
}

.pll-split-title h2 {
  margin: 0;
  color: var(--pll-brown);
  font-size: 74px;
  line-height: 0.90;
  font-weight: 800;
  letter-spacing: -3px;
  max-width: 520px;
}

.pll-split-links {
  margin: 0;
}

.pll-split-link {
  margin-bottom: 34px;
}

.pll-split-link:last-child {
  margin-bottom: 0;
}

.pll-split-link a {
  color: var(--pll-brown);
  text-decoration: none;
  font-size: 56px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color var(--pll-transition-fast);
  white-space: nowrap;
}

.pll-split-link a .pll-arrow {
  display: inline-block;
  margin-left: 16px;
  color: var(--pll-accent);
  transition: transform var(--pll-transition-fast);
}

.pll-split-link a:hover {
  color: var(--pll-accent);
}

.pll-split-link a:hover .pll-arrow {
  transform: translateX(6px);
}

/* Animation typing label possible */
.pll-typing {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  border-right: 1px solid currentColor;
  animation: pllCaretBlink 0.9s step-end infinite;
}

@keyframes pllCaretBlink {
  50% {
    border-color: transparent;
  }
}

/* =========================================================
   7. SECTION STORY / EXPERTISES DARK
========================================================= */

.pll-story-section {
  background: var(--pll-brown-deep);
  padding-top: 140px;
  padding-bottom: 140px;
  color: var(--pll-cream);
}

.pll-story-row {
  display: flex;
  align-items: center;
}

.pll-story-left {
  padding-right: 80px;
}

.pll-story-right {
  position: relative;
  padding: 20px 40px;
  min-height: 760px;
}

.pll-story-title h2 {
  color: var(--pll-cream);
  font-size: 64px;
  line-height: 1;
  font-weight: 800;
  margin: 0 0 40px 0;
}

.pll-story-text p {
  color: rgba(251,232,209,0.85);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.pll-story-image {
  width: 72%;
  margin-left: auto;
  margin-right: 0;
  position: relative;
}

.pll-story-image img {
  display: block;
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.30);
  transition: transform 0.6s ease;
}

.pll-story-image:hover img {
  transform: scale(1.025);
}

.pll-story-card {
  position: absolute;
  left: 0;
  bottom: 40px;
  width: 62%;
  background: rgba(251,232,209,0.96);
  padding: 26px 28px;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.24);
}

.pll-story-card p {
  margin: 0 0 14px 0;
}

.pll-story-card p:last-child {
  margin-bottom: 0;
}

.pll-story-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--pll-brown);
  text-decoration: none;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  transition: color var(--pll-transition-fast);
  position: relative;
}

.pll-story-card a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--pll-accent);
  transition: width 0.3s ease;
}

.pll-story-card a span {
  color: var(--pll-accent);
  flex: 0 0 auto;
  transition: transform var(--pll-transition-fast);
}

.pll-story-card a:hover {
  color: var(--pll-accent);
}

.pll-story-card a:hover::after {
  width: calc(100% - 30px);
}

.pll-story-card a:hover span {
  transform: translateX(5px);
}

/* Variante tags flottants premium */
.pll-tags-cloud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pll-tags-cloud a {
  position: absolute;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251,232,209,0.94);
  color: var(--pll-brown);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: var(--pll-shadow-medium);
  font-size: 14px;
  font-weight: 700;
  transition:
    transform var(--pll-transition-fast),
    box-shadow var(--pll-transition-fast),
    color var(--pll-transition-fast);
}

.pll-tags-cloud a:hover {
  color: var(--pll-accent);
  transform: translateY(-3px);
  box-shadow: 0 20px 35px rgba(0,0,0,0.20);
}

/* =========================================================
   8. HOVER GALLERY / PREVIEW
========================================================= */

.pll-hover-gallery {
  position: relative;
}

.pll-hover-list a {
  position: relative;
}

.pll-preview-stage {
  position: relative;
  min-height: 420px;
}

.pll-preview-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.98);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  pointer-events: none;
}

.pll-preview-item.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.pll-preview-item img,
.pll-preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

/* =========================================================
   9. CUSTOM CURSOR DESKTOP
========================================================= */

.pll-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(245,156,113,0.35);
  border: 1px solid rgba(245,156,113,0.75);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  transition:
    width 0.2s ease,
    height 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
  opacity: 0;
}

.pll-cursor.is-visible {
  opacity: 1;
}

.pll-cursor.is-hover {
  width: 56px;
  height: 56px;
  background: rgba(245,156,113,0.12);
  border-color: rgba(245,156,113,0.9);
}

.pll-cursor-label {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10001;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pll-cursor-label.is-visible {
  opacity: 1;
}

/* =========================================================
   10. PARALLAX HELPERS
========================================================= */

.pll-parallax-wrap {
  position: relative;
  overflow: hidden;
}

.pll-parallax-target {
  will-change: transform;
  transform: translate3d(0,0,0);
}

/* =========================================================
   11. RESPONSIVE
========================================================= */

@media (max-width: 1200px) {
  .pll-hero-title h1 {
    font-size: 68px;
  }

  .pll-split-link a {
    font-size: 46px;
    letter-spacing: 1px;
  }

  .pll-story-title h2 {
    font-size: 54px;
  }
}

@media (max-width: 980px) {
  .pll-hidden-mobile {
    display: none;
  }

  .pll-hidden-desktop {
    display: block;
  }

  .pll-text p {
    font-size: 17px;
    line-height: 1.62;
  }

  .pll-hero {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 70px;
  }

  .pll-hero::after {
    width: 360px;
    height: 360px;
    left: 18%;
    top: 34%;
    margin-top: -180px;
  }

  .pll-hero-row {
    min-height: auto;
    display: block;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .pll-hero-row .et_pb_column {
    width: 100% !important;
    margin: 0 !important;
  }

  .pll-hero-left {
    max-width: 100%;
    padding: 20px;
    border-radius: 22px;
    margin-bottom: 24px;
  }

  .pll-hero-right {
    padding-top: 20px;
    padding-left: 0;
    margin-top: 0;
  }

  .pll-hero-title h1 {
    font-size: 48px;
    line-height: 0.94;
    letter-spacing: -1.5px;
    max-width: 100%;
  }

  .pll-hero-text {
    max-width: 100%;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 16px;
  }

  .pll-hero-text p {
    font-size: 16px;
    line-height: 1.55;
  }

  .pll-btn .et_pb_button,
  .et_pb_button.pll-btn,
  .pll-btn a.et_pb_button {
    width: 100%;
    text-align: center !important;
  }

  .pll-split-row {
    display: block;
  }

  .pll-split-row .et_pb_column {
    width: 100% !important;
  }

  .pll-split-left,
  .pll-split-right {
    padding: 70px 28px;
  }

  .pll-split-title h2 {
    font-size: 42px;
    line-height: 0.96;
    letter-spacing: -1px;
    max-width: 100%;
  }

  .pll-split-link a {
    font-size: 34px;
    letter-spacing: 1px;
    white-space: normal;
  }

  .pll-story-section {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .pll-story-row {
    display: block;
  }

  .pll-story-left {
    padding-right: 0;
    margin-bottom: 50px;
  }

  .pll-story-right {
    min-height: auto;
    padding: 20px 0;
  }

  .pll-story-title h2 {
    font-size: 40px;
  }

  .pll-story-image {
    width: 100%;
    margin: 0 0 20px 0;
  }

  .pll-story-image img {
    border-radius: 18px;
  }

  .pll-story-card {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    padding: 22px;
    border-radius: 18px;
  }

  .pll-story-card a {
    font-size: 17px;
  }

  .pll-cursor,
  .pll-cursor-label {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .pll-reveal,
  .pll-reveal-left,
  .pll-reveal-right,
  .pll-zoom-in {
    opacity: 1 !important;
    transform: none !important;
  }
}