/* ==========================================================================
   ON VOUGA — common.css
   Design partagé par toutes les pages : reset, variables, header, footer,
   boutons, utilitaires. Chaque page a ensuite son propre fichier CSS
   (home.css, evenements.css, ...) pour ses sections spécifiques.
   ========================================================================== */

:root{
  /* Couleurs de marque */
  --navy-950: #0a0e23;
  --navy-900: #0d1230;
  --navy-800: #121a3d;
  --navy-700: #1a234f;
  --blue-500: #2f6fed;
  --blue-600: #2456c9;
  --green-500: #6fd93c;
  --green-600: #5cc22a;
  --green-100: #e7f9db;
  --yellow-500: #f5b400;
  --pink-500: #ff4d6d;

  --ink: #0b0e1a;
  --ink-soft: #4a5069;
  --grey-100: #f4f6fb;
  --grey-200: #e7eaf3;
  --grey-300: #d3d8e6;
  --white: #ffffff;

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-card: 0 10px 30px rgba(10, 14, 35, .08);
  --shadow-pop: 0 20px 50px rgba(10, 14, 35, .18);

  --container: 1200px;
  --header-h: 78px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ text-decoration: none; color: inherit; }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font-family: inherit; cursor: pointer; }
h1,h2,h3,h4{ font-family: var(--font-display); margin: 0; line-height: 1.15; }
p{ margin: 0; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible{
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: var(--navy-950);
  box-shadow: 0 10px 24px rgba(111, 217, 60, .35);
}
.btn-primary:hover{ box-shadow: 0 14px 30px rgba(111, 217, 60, .48); transform: translateY(-2px); }

.btn-ghost{
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.35);
}
.btn-ghost:hover{ background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }

.btn-outline-dark{
  background: transparent;
  color: var(--ink);
  border-color: var(--grey-300);
}
.btn-outline-dark:hover{ border-color: var(--ink); }

.btn-block{ width: 100%; }
.btn-sm{ padding: 10px 18px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow .25s ease, height .25s ease;
}
.site-header.is-scrolled{
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  height: 66px;
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.logo{
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .5px;
}
.logo .on{ color: var(--green-500); }
.logo .vouga{ color: var(--blue-500); }
.logo-dot{
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--yellow-500); display: inline-block; margin: 0 3px;
}

.main-nav{ display: flex; align-items: center; gap: 34px; }
.main-nav a{
  color: rgba(255,255,255,.78);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: color .18s ease;
}
.main-nav a:hover{ color: var(--white); }
.main-nav a.active{ color: var(--green-500); }
.main-nav a.active::after{
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 3px;
  border-radius: 3px;
  background: var(--green-500);
}

.header-actions{ display: flex; align-items: center; gap: 14px; }

.cart-btn{
  position: relative;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: background .18s ease;
}
.cart-btn:hover{ background: rgba(255,255,255,.16); }
.cart-count{
  position: absolute; top: -4px; right: -4px;
  background: var(--green-500); color: var(--navy-950);
  font-size: 10px; font-weight: 700;
  min-width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--navy-950);
}

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  padding: 6px;
}
.nav-toggle span{
  width: 24px; height: 2px; background: var(--white); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px){
  .main-nav{
    position: fixed;
    inset: 66px 0 0 0;
    background: var(--navy-950);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 22px;
    transform: translateX(-100%);
    transition: transform .3s ease;
    overflow-y: auto;
  }
  .main-nav.is-open{ transform: translateX(0); }
  .header-actions .btn-ghost{ display: none; }
  .nav-toggle{ display: flex; }
  .main-nav .nav-auth{ display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 12px; }
  .main-nav .nav-auth a{ width: 100%; }
}
.nav-auth{ display: none; }
@media (max-width: 960px){ .nav-auth{ display: flex; } }

/* ---------- Breadcrumb / page header (sous-pages) ---------- */
.page-hero{
  background: var(--navy-950);
  color: var(--white);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before{
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(111,217,60,.25), transparent 70%);
  top: -220px; right: -120px;
  border-radius: 50%;
}
.page-hero .eyebrow{
  color: var(--green-500);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 10px;
  display: block;
}
.page-hero h1{ font-size: clamp(30px, 4vw, 44px); color: var(--white); position: relative; }
.page-hero p{ color: rgba(255,255,255,.68); max-width: 560px; margin-top: 12px; font-size: 16px; position: relative; }
.breadcrumb{ display: flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(255,255,255,.5); margin-top: 18px; position: relative;}
.breadcrumb a{ color: rgba(255,255,255,.7); }
.breadcrumb a:hover{ color: var(--green-500); }

/* Mise en page à deux colonnes (texte + illustration) pour les page-hero
   des sous-pages : Événements, À propos, Services, Blog, Contact. */
.page-hero-inner{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 30px;
  align-items: center;
  position: relative;
}
.page-hero-art{ display: flex; justify-content: center; }
.page-hero-art img{
  width: 100%;
  max-width: 300px;
  filter: drop-shadow(0 22px 38px rgba(0,0,0,.4));
}
@media (max-width: 860px){
  .page-hero-inner{ grid-template-columns: 1fr; text-align: left; }
  .page-hero-art{ order: -1; margin-bottom: 8px; }
  .page-hero-art img{ max-width: 210px; }
}

/* ---------- Tarifs (Services + Accueil) ---------- */
.pricing{ padding: 76px 0; background: var(--grey-100); }
.pricing-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card{
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured{
  background: var(--navy-950);
  color: var(--white);
  box-shadow: var(--shadow-pop);
  transform: translateY(-10px);
}
.price-badge{
  position: absolute; top: -13px; left: 28px;
  background: var(--green-500); color: var(--navy-950);
  font-size: 11px; font-weight: 700;
  padding: 5px 12px; border-radius: var(--radius-pill);
}
.price-card h3{ font-size: 19px; margin-bottom: 6px; }
.price-card.featured h3{ color: var(--white); }
.price-desc{ font-size: 13.5px; color: var(--ink-soft); margin-bottom: 22px; min-height: 40px; }
.price-card.featured .price-desc{ color: rgba(255,255,255,.6); }
.price-tag{ font-family: var(--font-display); font-weight: 800; font-size: 30px; margin-bottom: 22px; }
.price-tag span{ font-family: var(--font-body); font-weight: 500; font-size: 13px; color: var(--ink-soft); }
.price-card.featured .price-tag span{ color: rgba(255,255,255,.55); }
.price-features{ display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; flex: 1; }
.price-features li{ font-size: 14px; padding-left: 22px; position: relative; }
.price-features li::before{ content: '✓'; position: absolute; left: 0; color: var(--green-500); font-weight: 800; }
@media (max-width: 940px){
  .pricing-grid{ grid-template-columns: 1fr; }
  .price-card.featured{ transform: none; }
}

/* ---------- FAQ / Accordéon (Services + Accueil) ---------- */
.faq{ padding: 76px 0 96px; background: var(--white); }
.accordion-item{ border-bottom: 1px solid var(--grey-200); }
.accordion-trigger{
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; text-align: left;
  padding: 20px 4px; font-size: 15.5px; font-weight: 600; color: var(--ink);
}
.accordion-trigger svg{ flex-shrink: 0; transition: transform .25s ease; color: var(--ink-soft); }
.accordion-trigger[aria-expanded="true"] svg{ transform: rotate(180deg); }
.accordion-panel{ max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.accordion-panel p{ padding: 0 4px 20px; color: var(--ink-soft); font-size: 14px; line-height: 1.65; max-width: 640px; }

/* ---------- Newsletter (Accueil + Blog) ---------- */
.newsletter{ background: var(--navy-950); padding: 60px 0; }
.newsletter-inner{ display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.newsletter-inner h2{ color: var(--white); font-size: clamp(20px, 2.6vw, 26px); }
.newsletter-inner > div > p{ color: rgba(255,255,255,.6); margin-top: 8px; max-width: 380px; font-size: 14.5px; }
.newsletter-form{ display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input{
  padding: 13px 18px; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07); color: var(--white); font-size: 14px; min-width: 240px;
}
.newsletter-form input::placeholder{ color: rgba(255,255,255,.4); }
.newsletter-note{ width: 100%; color: var(--green-500); font-size: 13px; margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer{
  background: #05070f;
  color: rgba(255,255,255,.65);
  padding: 64px 0 0;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p{ margin-top: 14px; font-size: 14px; line-height: 1.7; max-width: 260px; }
.footer-social{ display: flex; gap: 10px; margin-top: 20px; }
.footer-social a{
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  transition: background .18s ease, transform .18s ease;
}
.footer-social a:hover{ background: var(--green-500); color: var(--navy-950); transform: translateY(-3px); }
.footer-col h4{ color: var(--white); font-size: 15px; margin-bottom: 18px; }
.footer-col ul li{ margin-bottom: 12px; }
.footer-col a{ font-size: 14px; transition: color .18s ease; }
.footer-col a:hover{ color: var(--green-500); }
.footer-contact li{ display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 14px; }
.footer-contact svg{ flex-shrink: 0; margin-top: 2px; color: var(--green-500); }
.footer-bottom{
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; font-size: 13px; flex-wrap: wrap; gap: 10px;
}
.footer-bottom .heart{ color: var(--pink-500); }

@media (max-width: 900px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .footer-grid{ grid-template-columns: 1fr; }
}

/* ---------- Reveal-on-scroll utility (shared JS hooks) ---------- */
.reveal{ opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view{ opacity: 1; transform: translateY(0); }

/* ---------- Section heading pattern ---------- */
.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  gap: 20px;
  flex-wrap: wrap;
}
.section-head h2{ font-size: clamp(24px, 3vw, 32px); }
.section-link{
  color: var(--blue-500);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.section-link:hover{ text-decoration: underline; }

/* ---------- Search field (barre de recherche, filtres) ---------- */
/* Partagé par la recherche du hero (Accueil) et la barre de filtres
   (Événements) pour garder un seul style cohérent et moderne. */
.search-field{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  min-width: 170px;
  transition: background .18s ease;
}
.search-field:hover{ background: var(--grey-100); }
.search-field.grow{ flex: 1 1 260px; }
.search-field svg{ flex-shrink: 0; }
.search-field input,
.search-field select{
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  width: 100%;
}
.search-field select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 22px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5069' stroke-width='2.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 13px;
}
.search-field input[type="date"]{
  cursor: pointer;
}
.search-field input[type="date"]::-webkit-calendar-picker-indicator{
  filter: invert(46%) sepia(9%) saturate(600%) hue-rotate(190deg);
  opacity: .7;
  cursor: pointer;
}
.search-field + .search-field{ border-left: 1px solid var(--grey-200); }

/* ---------- Chips de filtre (catégories) ---------- */
/* Utilisé sur Événements et Blog : pilules modernes avec état actif net,
   léger relief au survol pour signaler l'interactivité. */
.chip-group{ display: flex; gap: 8px; flex-wrap: wrap; }
.chip{
  border: 1.5px solid var(--grey-300);
  background: var(--white);
  color: var(--ink-soft);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  transition: background .18s ease, color .18s ease, border-color .18s ease,
    box-shadow .18s ease, transform .18s ease;
}
.chip:hover{
  border-color: var(--green-500);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(10,14,35,.08);
}
.chip.is-active{
  background: var(--navy-950);
  color: var(--white);
  border-color: var(--navy-950);
  box-shadow: 0 8px 18px rgba(10,14,35,.22);
}
.chip.is-active:hover{ transform: none; }

/* Skip link */
.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--green-500); color: var(--navy-950);
  padding: 10px 16px; z-index: 2000; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }
