﻿/* =====================
   Design Tokens
   ===================== */
:root {
  --color-primary:   #E66386;  /* rose */
  --color-secondary: #ff7584;  /* rose pastel */
  --color-accent:    #E6C9A8;  /* beige cookie */
  --color-accent2:   #FFF1DE;
  --color-accent3:   #fde9d5;
  --color-white:     #FFF;
  --color-bg:        #FFF6E8;  /* blanc crème */
  --color-text:      #5A3A2E;  /* chocolat foncé */
  --color-text-2:    #6E3B2E;  /* chocolat */
  --r-sm:  10px;
  --r-md:  18px;
  --r-lg:  24px;
  --r-xl:  40px;
  --sp-1:   8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  40px;
  --sp-5:  80px;
}

/* =====================
   Reset & Base
   ===================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  background-image: url('images/pepites-background.svg');
  background-size: cover;
  background-repeat: no-repeat;
}
img { max-width: 100%; display: block; }
section { margin-bottom: var(--sp-4); }

h1, h2, h3 { font-family: 'Fredoka', 'Nunito', sans-serif; line-height: 1.15; margin: 0 0 var(--sp-2); }
h1 { font-size: 56px; }
h2 { font-size: 40px; }
h3 { font-size: 22px; }

a { color: var(--color-primary); text-decoration: none; font-weight: bold; }
a:hover { color: var(--color-text); text-decoration: underline; }

/* =====================
   Layout
   ===================== */
.container { max-width: 1080px; margin: 0 auto; padding: 0 var(--sp-3); }

/* =====================
   Header & Navigation
   ===================== */
.header { position: relative; top: 0; z-index: 20; background: var(--color-bg); }
.header-content { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) 0; }
.logo { width: 200px; height: auto; border-radius: 20px; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.nav a { color: var(--color-text); text-decoration: none; font-size: 20px; font-weight: 900; padding: 8px 12px; }
.nav a:hover { color: var(--color-primary); }
.nav a.active { color: var(--color-primary); }

.menu-toggle { display: none; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: var(--color-text); }
.btn-nav { background: var(--color-primary); color: var(--color-white); padding: 10px 18px; border-radius: var(--r-md); }

/* =====================
   Buttons
   ===================== */
.btn { display: inline-block; text-decoration: none; font-size: 20px; font-weight: 900; border-radius: 32px; }
.btn-primary { background: var(--color-secondary); color: var(--color-white); padding: 16px 32px; }
.btn-primary:hover { color: var(--color-text); text-decoration: none;}
.btn-secondary { background: transparent; border: 2px solid var(--color-text-2); color: var(--color-text); padding: 16px 32px; }
.btn-secondary:hover { border-color: var(--color-secondary); color: var(--color-secondary);text-decoration: none; }
.btn-tertiary { background: var(--color-white); border: 1px solid rgba(0,0,0,.08); color: var(--color-text); padding: 10px 18px; }

/* =====================
   Hero – Desktop
   ===================== */
.hero { position: relative; overflow: hidden; padding: 0; }
.hero-content {
  padding: 0.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  align-items: center;
}
.hero-content h1 { font-size: clamp(32px, 6vw, 62px); }
.hero-left, .hero-right { padding: 0; }
.hero-subtitle { color: var(--color-primary); font-size: 24px; font-weight: 900; margin-bottom: var(--sp-3); }
.hero-buttons { display: flex; gap: var(--sp-2); }
.hero-badge { margin-top: var(--sp-2); display: inline-block; background: #FFD3E3; color: var(--color-text); padding: 12px 24px; border-radius: 40px; font-weight: 700; }

/* =====================
   Hero – Mobile (masqué par défaut, visible < 768px)
   ===================== */
.hero-mobile { display: none; }

/* =====================
   Why Section
   ===================== */
.why h2 { text-align: center; width: 100%; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.why-grid.three { grid-template-columns: repeat(3, 1fr); }

.why-item,
.why-item-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  color: var(--color-text);
  font-size: 20px;
  font-weight: 900;
}
.why-item img,
.why-item-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 10px;
}
.why-item-card {
  width: 100%;
  background: var(--color-accent2);
  border-radius: 12px;
}

/* =====================
   Home – Social & Band Card
   ===================== */
.home-social {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 24px;
  align-items: stretch;
  margin: 28px auto 40px;
}

.band { background: var(--color-primary); color: var(--color-white); text-align: center; padding: 40px 0; font-size: 22px; font-weight: 700; }
.band .band-link { color: var(--color-white); }

.band-card {
  background: var(--color-accent3);
  border-radius: 22px;
  display: flex;
  height: 194px;
  min-height: 194px;
  padding: 0;
}
.band-card-content {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.band-card-photo {
  width: 42%;
  overflow: hidden;
  border-radius: 0 22px 22px 0;
}
.band-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =====================
   Instagram
   ===================== */
.instagram { min-height: 260px; }
.insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.insta-grid img { border-radius: 12px; }

/* =====================
   Pages internes
   ===================== */
.page .page-header { text-align: center; margin: var(--sp-5) 0 var(--sp-4); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  justify-items: center;
}
.card {
  background: var(--color-white);
  border-radius: var(--r-lg);
  padding: 40px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  width: 100%;
  max-width: 520px;
}
.card img { width: 200px; margin: 0 auto var(--sp-2); }
.card img.large { width: 600px; border-radius: var(--r-lg); }
.cards-grid-2x3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid-2 { display: grid; grid-template-columns: 3fr 2fr; gap: 40px; }
.map iframe { width: 100%; height: 360px; border: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.map .map-info { padding: 24px; }
.hours p { margin: 12px 0; }

/* =====================
   Formulaire de contact
   ===================== */
.contact-form label { display: block; margin-bottom: 14px; font-weight: 700; }
.contact-form input,
.contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid rgba(0,0,0,.12); border-radius: 12px; font: inherit; }
.contact-form button { margin-top: 10px; }

/* =====================
   Page Cookies – Showcase
   ===================== */
.cookies-showcase {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.cookies-showcase-banner {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}
.cookies-showcase-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-xl);
}
.cookies-showcase-focus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  align-items: center;
  background: var(--color-accent2);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
}
.cookies-showcase-focus-img { height: 100%; }
.cookies-showcase-focus-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--r-xl) 0 0 var(--r-xl);
}
.cookies-showcase-focus-text { padding: var(--sp-4); }
.cookies-showcase-focus-text h2 { color: var(--color-primary); margin-bottom: var(--sp-2); }
.cookies-showcase-focus-text p { font-size: 18px; line-height: 1.7; }

/* =====================
   Foire de Rouen – Rétro 80s/90s
   ===================== */
.foire-rouen {
  background: linear-gradient(155deg, #130028 0%, #2a005e 35%, #1c006a 65%, #081652 100%);
  margin: 0 0 var(--sp-5);
  position: relative;
  overflow: hidden;
}
.foire-rouen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 30, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 220, 255, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}
.foire-rouen::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 0, 255, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.foire-rouen-tape {
  background: linear-gradient(90deg, #cc00aa, #8800ee, #cc00aa);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 9px 0;
  white-space: nowrap;
  overflow: hidden;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}
.foire-rouen-tape span {
  display: inline-block;
  animation: foire-ticker 22s linear infinite;
}
@keyframes foire-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.foire-rouen-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4) var(--sp-3) calc(var(--sp-4) + 8px);
  position: relative;
  z-index: 1;
}
.foire-rouen-logo { display: flex; justify-content: center; align-items: center; }
.foire-rouen-logo img {
  width: 200px;
  height: auto;
  filter: drop-shadow(0 0 16px rgba(255, 80, 255, 0.65)) drop-shadow(0 0 40px rgba(0, 200, 255, 0.35));
  animation: foire-logo-pulse 3s ease-in-out infinite;
}
@keyframes foire-logo-pulse {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(255, 80, 255, 0.55)) drop-shadow(0 0 28px rgba(0, 200, 255, 0.3)); }
  50%       { filter: drop-shadow(0 0 26px rgba(255, 80, 255, 0.9))  drop-shadow(0 0 52px rgba(0, 200, 255, 0.6)); }
}
.foire-rouen-eyebrow {
  color: #ff40f4;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0 0 10px;
  text-shadow: 0 0 10px rgba(255, 64, 244, 0.9), 0 0 22px rgba(255, 64, 244, 0.4);
}
.foire-rouen-title {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: clamp(36px, 5vw, 62px);
  margin: 0 0 var(--sp-2);
  background: linear-gradient(90deg, #ff40f4 0%, #00e5ff 55%, #ffe600 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(255, 64, 244, 0.35));
}
.foire-rouen-desc {
  color: #dcd4ff;
  font-size: clamp(16px, 2.2vw, 21px);
  font-weight: 600;
  line-height: 1.7;
  margin: 0;
  text-shadow: 0 0 14px rgba(140, 90, 255, 0.35);
}
.foire-rouen-desc strong,
.foire-rouen-desc a {
  color: #ff80fb;
  text-shadow: 0 0 12px rgba(255, 64, 244, 0.6);
}

/* =====================
   Footer
   ===================== */
.footer {
  padding: 60px 0;
  color: var(--color-text-2);
  text-align: center;
  font-weight: bold;
  width: 100%;
}
.footer a { color: inherit; text-decoration: none; }
.footer a:hover,
.footer a:focus-visible { color: var(--color-primary); }

/* =====================
   Utilitaires
   ===================== */
.branding { display: none !important; }

/* =====================
   Responsive
   ===================== */
@media (max-width: 1100px) {
  .logo { width: 160px; }
  .nav a { font-size: 14px; padding: 6px 10px; }
  .hero-content h1 { font-size: clamp(28px, 4vw, 48px); }
  .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .why-item img, .why-item-card img { width: 80px; height: 80px; }
  .home-social { gap: 16px; margin: 20px auto 30px; }
}

@media (max-width: 980px) {
  .home-social { grid-template-columns: 1fr; }
  .band-card { height: auto; min-height: 220px; }
  .band-card-photo { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .header-content {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
  }
  .menu-toggle { display: block; }
  .nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-bg);
    border-top: 1px solid rgba(0,0,0,.08);
    padding-top: 8px;
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; padding: 12px 4px; text-align: left; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .logo { width: 140px; }
  .btn { font-size: 16px; padding: 14px 24px; }
  .cards-grid-2x3 { grid-template-columns: repeat(2, 1fr); }

  /* Hero : masquer le desktop, afficher le mobile */
  .hero { display: none; }
  .hero-mobile {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding: var(--sp-3) 0 var(--sp-4);
    margin-bottom: var(--sp-4);
  }
  .hero-mobile-text {
    text-align: center;
    padding: 0 var(--sp-3);
  }
  .hero-mobile-text h1 {
    font-size: clamp(26px, 7vw, 38px);
    margin-bottom: var(--sp-2);
  }
  .hero-mobile-text p { font-size: 16px; margin-bottom: var(--sp-2); }
  .hero-mobile-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2);
    padding: 0 var(--sp-2);
  }
  .hero-mobile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: var(--color-white);
    border-radius: var(--r-lg);
    padding: var(--sp-2);
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
    text-decoration: none;
    color: var(--color-text);
    font-weight: 700;
    font-size: 15px;
    transition: transform 0.18s, box-shadow 0.18s;
  }
  .hero-mobile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    color: var(--color-primary);
    text-decoration: none;
  }
  .hero-mobile-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--r-md);
  }

  /* Foire de Rouen */
  .foire-rouen-inner { grid-template-columns: 1fr; text-align: center; gap: var(--sp-3); }
  .foire-rouen-logo img { width: 150px; margin: 0 auto; }

  /* Cookies – Showcase */
  .cookies-showcase-focus { grid-template-columns: 1fr; }
  .cookies-showcase-focus-img img { border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 260px; }
  .cookies-showcase-focus-text { padding: var(--sp-3); }
}

@media (max-width: 640px) {
  .logo { width: 120px; }
  .card { padding: 24px; }
  .card img { width: 140px; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-item img, .why-item-card img { width: 70px; height: 70px; }
  .insta-grid { grid-template-columns: 1fr; }
  .band-card-content { padding: 12px; }
}

@media (max-width: 520px) {
  .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--sp-2); }
  .logo { width: 100px; }
  h1 { font-size: 24px; }
  h2 { font-size: 28px; }
  .btn { font-size: 14px; padding: 12px 20px; }
}
