/* ═══════════════════════════════════════════════════════════
   PIKLOU — Feuille de style principale
   PAF le Jeu · Drôme-Ardèche · 2026
   ═══════════════════════════════════════════════════════════ */

:root {
  --yellow: #F5C800;
  --red:    #E8322A;
  --teal:   #2ABCAA;
  --navy:   #1A1A2E;
  --wood:   #D4A55A;
  --white:  #FAFAF5;
  --ink:    #1A1A1A;
  --grey:   #F0EDE5;
  --dot:    rgba(26,26,46,0.08);

  /* Couleur d'accent — surchargée par PHP selon la cible */
  --accent:      var(--yellow);
  --accent-dark: var(--wood);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
}

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

.dots {
  background-image: radial-gradient(circle, var(--dot) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  min-height: 100svh;
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,46,0.3);
  z-index: 1;
}

.hero-texture {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.15) 2px,
    rgba(0,0,0,0.15) 3px
  );
  z-index: 2;
  pointer-events: none;
}

.hero-left,
.hero-right { position: relative; z-index: 3; }

.hero-left {
  padding: 80px 60px 80px 80px;
  text-align: center;
  background: rgba(255,255,255,0.2);
  border-radius: 45px;
  margin-left: 5%;
}

.hero-logo {
  width: 220px;
  margin: 0 auto 24px;
}

.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-family: 'Bangers', cursive;
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 24px;
  transform: rotate(-1deg);
}

.hero h1 {
  font-family: 'Bangers', cursive;
  font-size: clamp(2.5rem, 5vw, 3rem);
  color: var(--white);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.hero h1 span { color: var(--accent); display: block; }

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: #fff;
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-family: 'Bangers', cursive;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: 2px;
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 4px 4px 0 var(--accent-dark);
}

.hero-cta:hover {
  transform: translate(-2px,-2px);
  box-shadow: 6px 6px 0 var(--accent-dark);
}

.hero-cta--white {
  background: white;
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}

.hero-right {
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 90%;
  max-width: 520px;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}

/* ══════════════════════════════════════
   STRIP DÉFILANT
══════════════════════════════════════ */
.strip {
  background: var(--accent);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.strip-inner {
  display: inline-flex;
  animation: scroll 20s linear infinite;
}

.strip span {
  font-family: 'Bangers', cursive;
  font-size: 1.3rem;
  letter-spacing: 3px;
  color: var(--ink);
  padding: 0 32px;
}

.strip span::after { content: ' ✦ '; color: var(--red); }

@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════
   SECTIONS COMMUNES
══════════════════════════════════════ */
section {
  padding: 100px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Bangers', cursive;
  font-size: 2rem;
  letter-spacing: 4px;
  color: var(--red);
  margin-bottom: 16px;
}

.section-label--teal   { color: var(--teal); }
.section-label--yellow { color: var(--yellow); }

h2 {
  font-family: 'Bangers', cursive;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

/* ══════════════════════════════════════
   PROBLÈME
══════════════════════════════════════ */
.problem-wrap { background: var(--navy); padding: 0; max-width: 100%; }

.problem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 80px;
}

.problem h2 { color: var(--white); }
.problem .section-label { color: var(--teal); }
.problem p { color: rgba(250,250,245,0.75); font-size: 1.1rem; line-height: 1.8; margin-bottom: 20px; }

.pain-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }

.pain-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 18px 20px;
}

.pain-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
  filter: invert(1) brightness(2);
}

.pain-list li span { color: rgba(250,250,245,0.8); font-size: 1rem; line-height: 1.5; font-weight: 700; }

/* ══════════════════════════════════════
   SOLUTION — CARDS
══════════════════════════════════════ */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.card {
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  padding: 36px 28px;
  background: white;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover { transform: translate(-3px,-3px); box-shadow: 8px 8px 0 var(--ink); }

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  height: 100px;
}

.picto { width: 100px; height: 100px; object-fit: contain; }

.card h3 {
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: var(--ink);
  text-align: center;
}

.card p { font-size: 0.95rem; line-height: 1.7; color: #444; text-align: center; }

.card.accent       { background: var(--yellow); }
.card.accent-teal  { background: var(--teal); }
.card.accent-teal h3,
.card.accent-teal p { color: white; }
.card.accent-red   { background: var(--red); }
.card.accent-red h3,
.card.accent-red p  { color: white; }

/* ══════════════════════════════════════
   NO SCREEN
══════════════════════════════════════ */
.noscreen-wrap {
  background: var(--white);
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  max-width: 100%;
  padding: 0;
}

.noscreen {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 80px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
}

.noscreen-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  position: sticky;
  top: 40px;
}

.noscreen-big img { width: 140px; height: 140px; object-fit: contain; }

.noscreen-stat {
  background: var(--navy);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 6px 6px 0 var(--ink);
  width: 100%;
}

.stat-num {
  display: block;
  font-family: 'Bangers', cursive;
  font-size: 4rem;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label { font-size: 0.85rem; color: rgba(250,250,245,0.75); line-height: 1.5; }

.noscreen-right p { font-size: 1.05rem; line-height: 1.8; color: #333; margin-bottom: 20px; }

.noscreen-contrast {
  display: flex;
  align-items: stretch;
  margin: 32px 0;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--ink);
}

.noscreen-col { flex: 1; padding: 24px 28px; }
.noscreen-col.bad  { background: #FFF3F3; }
.noscreen-col.good { background: #F0FBF9; }

.noscreen-col-title {
  font-family: 'Bangers', cursive;
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.noscreen-col-title img { width: 40px; height: 40px; object-fit: contain; }

.noscreen-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.noscreen-col.bad  ul li::before { content: '✗ '; color: var(--red);  font-weight: 900; }
.noscreen-col.good ul li::before { content: '✓ '; color: var(--teal); font-weight: 900; }
.noscreen-col ul li { font-size: 0.95rem; color: #444; font-weight: 700; }

.noscreen-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-family: 'Bangers', cursive;
  font-size: 1.4rem;
  color: var(--ink);
  background: var(--yellow);
  border-left: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}

.noscreen-tagline {
  background: var(--yellow);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 1.05rem;
  color: var(--ink);
  border: 2px solid var(--ink);
  line-height: 1.6;
}

/* ══════════════════════════════════════
   PRODUIT
══════════════════════════════════════ */
/* ── DIAPORAMA PRODUIT ── */
.product-wrap { background: #F0EDE5; max-width: 100%; padding: 0; }

.product {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Conteneur diaporama — même ratio que ton image actuelle */
.diapo-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 12px 12px 0 var(--ink);
  background: #e0dbd2;
}

.diapo-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.diapo-slide.active { opacity: 1; }

/* Pastilles de navigation */
.diapo-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.diapo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  border: none;
  padding: 0;
}

.diapo-dot.active {
  background: white;
  transform: scale(1.3);
}

/* Responsive diaporama */
@media (max-width: 768px) {
  .product {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 60px 24px;
  }

  .diapo-container {
    aspect-ratio: 4 / 3;
    box-shadow: 6px 6px 0 var(--ink);
  }
}

@media (max-width: 400px) {
  .product { padding: 48px 16px; }
}



.product-img { width: 100%; border-radius: 20px; box-shadow: 12px 12px 0 var(--ink); }

.product-text p { font-size: 1.05rem; line-height: 1.8; color: #444; margin-bottom: 8px; }

.spec-list { list-style: none; margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.spec-list li { display: flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 700; }

.spec-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.spec-dot--yellow { background: var(--yellow); }
.spec-dot--teal   { background: var(--teal); }
.spec-dot--red    { background: var(--red); }
.spec-dot--navy   { background: var(--navy); }
.spec-dot--wood   { background: var(--wood); }
.spec-dot--grey   { background: #888; }

/* ══════════════════════════════════════
   QUI SUIS-JE
══════════════════════════════════════ */
.rubin-wrap {
  background: #131427;
  max-width: 100%;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.rubin-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

.rubin {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 40px;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.rubin-visual { position: relative; height: 480px; }

.rubin-photo {
  width: 300px;
  height: 300px;
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
  border: 4px solid var(--yellow);
  box-shadow: 8px 8px 0 var(--yellow);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0; /* masquée — gardé comme dans ta version */
}

.rubin-cartoon {
  width: 100%;
  position: absolute;
  bottom: 0;
  right: 20px;
  animation: float 4s ease-in-out infinite;
}

.rubin-text h2 { color: white; }
.rubin-text p { color: rgba(250,250,245,0.75); font-size: 1.05rem; line-height: 1.8; margin-bottom: 16px; }

.rubin-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }

.rubin-tags span {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(250,250,245,0.85);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
}

.rubin-tag-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: invert(1) brightness(2);
  flex-shrink: 0;
}

.rubin-quote {
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--yellow);
  line-height: 1.4;
  border-left: 4px solid var(--yellow);
  padding-left: 20px;
  margin-top: 8px;
}

/* ══════════════════════════════════════
   PILOTE
══════════════════════════════════════ */
.pilote-wrap {
  background: var(--accent);
  max-width: 100%;
  padding: 0;
  background-size: cover;
  background-position: center center;
  position: relative;
}

.pilote-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,46,0.2);
  z-index: 1;
}

.pilote-texture {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.15) 2px,
    rgba(0,0,0,0.15) 3px
  );
  z-index: 2;
  pointer-events: none;
}

.pilote {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 80px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.pilote h2 { color: white; }
.pilote .section-label { color: var(--yellow); }

.pilote-intro {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto 40px;
}

.pilote-contextes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.contexte {
  background: rgba(0,0,0,0.7);
  border-radius: 12px;
  padding: 24px 20px;
  border-top: 4px solid transparent;
  text-align: left;
}

.contexte p { color: rgba(255,255,255,0.8); font-size: 0.95rem; line-height: 1.6; margin: 0; }
.contexte-label { font-family: 'Bangers', cursive; font-size: 1.1rem; letter-spacing: 1px; color: white !important; margin-bottom: 10px !important; }
.contexte--red    { border-top-color: var(--red); }
.contexte--teal   { border-top-color: var(--teal); }
.contexte--yellow { border-top-color: var(--yellow); }

.pilote-closing { color: rgba(255,255,255,0.85); font-size: 1.05rem; line-height: 1.8; max-width: 680px; margin: 0 auto 48px; }
.pilote-closing strong { color: white; }

.pilote-avantages { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 64px; }

.avantage {
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 24px 32px;
  color: white;
  text-align: center;
  min-width: 180px;
}

.avantage-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 12px; height: 64px; }
.avantage-icon img { width: 60px; height: 60px; object-fit: contain; filter: invert(1) brightness(2); }
.avantage-label { font-family: 'Bangers', cursive; font-size: 1.1rem; letter-spacing: 1px; }

/* ══════════════════════════════════════
   FORMULAIRE
══════════════════════════════════════ */
.form-wrap { background: var(--navy); max-width: 100%; padding: 0; }

.form-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 100px 40px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.form-section h2 { color: var(--white); }
.form-section .section-label { color: var(--teal); }

.form-section p { color: rgba(250,250,245,0.7); font-size: 1.05rem; line-height: 1.8; margin-bottom: 48px; }

.form-container {
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}

.formulaire { display: block; width: 100%; border: none; border-radius: 16px; height: 900px; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  background: var(--ink);
  padding: 48px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer img { width: 80px; border-radius: 8px; }

.footer-text { color: rgba(255,255,255,0.4); font-size: 0.85rem; text-align: right; line-height: 1.7; }
.footer-text strong { color: rgba(255,255,255,0.6); }

/* ══════════════════════════════════════
   RESPONSIVE — TABLETTE (max 1024px)
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .problem, .product { padding: 80px 48px; }
  .noscreen { padding: 80px 48px; }
  .rubin { gap: 48px; }
  section { padding: 80px 48px; }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE (max 768px)
══════════════════════════════════════ */
@media (max-width: 768px) {

  /* HERO */
  .hero {
    grid-template-columns: 1fr;
    min-height: 100svh;
    background-position: center top;
  }

  .hero-left {
    padding: 80px 24px 40px;
    margin-left: 0;
    border-radius: 0;
    background: rgba(26,26,46,0.6);
    order: 1;
  }

  .hero-logo { width: 160px; }
  .hero-sub { font-size: 1rem; }

  .hero-right {
    height: 50vw;
    max-height: 260px;
    order: 2;
  }

  .hero-img { max-width: 200px; animation: none; }

  /* STRIP */
  .strip span { font-size: 1rem; padding: 0 20px; }

  /* SECTIONS */
  section { padding: 60px 24px; }

  /* PROBLÈME */
  .problem { grid-template-columns: 1fr; gap: 36px; padding: 60px 24px; }
  .pain-icon { width: 48px; height: 48px; }

  /* SOLUTION */
  .solution-grid { grid-template-columns: 1fr; gap: 20px; }
  .picto { width: 80px; height: 80px; }

  /* NO SCREEN */
  .noscreen { grid-template-columns: 1fr; gap: 32px; padding: 60px 24px; }
  .noscreen-left { flex-direction: row; position: static; align-items: stretch; }
  .noscreen-big img { width: 80px; height: 80px; }
  .noscreen-stat { flex: 1; padding: 16px; }
  .stat-num { font-size: 2.5rem; }
  .noscreen-contrast { flex-direction: column; }
  .noscreen-vs {
    padding: 10px 0;
    border-left: none; border-right: none;
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
  }

  /* PRODUIT */
  .product { grid-template-columns: 1fr; gap: 36px; padding: 60px 24px; }
  .product-img { max-height: 260px; object-fit: cover; }

  /* RUBIN */
  .rubin { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px; }
  .rubin-visual { height: 300px; }
  .rubin-cartoon { width: 80%; right: 0; }
  .rubin-tag-icon { width: 28px; height: 28px; }

  /* PILOTE */
  .pilote { padding: 60px 24px; }
  .pilote-contextes { grid-template-columns: 1fr; gap: 16px; }
  .pilote-avantages { gap: 16px; }
  .avantage { min-width: 140px; padding: 18px 20px; }
  .avantage-icon img { width: 48px; height: 48px; }

  /* FORMULAIRE */
  .form-section { padding: 60px 20px; }
  .formulaire { height: 1100px; } /* plus grand sur mobile car le formulaire est plus long */

  /* FOOTER */
  footer { flex-direction: column; gap: 20px; padding: 36px 24px; text-align: center; }
  .footer-text { text-align: center; }
}

/* ══════════════════════════════════════
   RESPONSIVE — PETIT MOBILE (max 400px)
══════════════════════════════════════ */
@media (max-width: 400px) {
  .hero-left { padding: 70px 16px 32px; }
  section { padding: 48px 16px; }
  .problem, .product, .noscreen { padding: 48px 16px; }
  .pilote { padding: 48px 16px; }
  .form-section { padding: 48px 16px; }
  footer { padding: 28px 16px; }
  .pilote-avantages { flex-direction: column; align-items: center; }
  .avantage { width: 100%; max-width: 280px; }
}
