@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Mulish:wght@400;500;600;700;800&display=swap');

/* ===========================================================
   Identité « Les Guinguettes du Parc de Loire »
   Inspirée de la charte Les 2 Rives :
   vert bouteille · orange doré · rose poudré · vagues & palmier
   =========================================================== */
:root {
  --green:       #103d33;   /* vert bouteille (couleur signature) */
  --green-deep:  #0a2c25;
  --orange:      #e89b3c;   /* orange doré (accent / CTA) */
  --orange-dark: #cf842a;
  --pink:        #f2aeb8;   /* rose poudré */
  --pink-soft:   #fbe4e8;
  --cream:       #fbf6ec;   /* fond crème */
  --ink:         #15302a;   /* texte sur fond clair */
  --muted:       #5d6f68;
  --white:       #ffffff;
  --border:      #ece3d3;

  --radius:      22px;
  --radius-sm:   14px;
  --shadow:      0 14px 34px rgba(10, 44, 37, 0.10);
  --shadow-lg:   0 26px 60px rgba(10, 44, 37, 0.20);
  --maxw:        1160px;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);

  /* vagues de transition (crème) */
  --wave-top:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1440,0 L1440,26 C1080,50 360,2 0,26 Z' fill='%23fbf6ec'/%3E%3C/svg%3E");
  --wave-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0,48 L1440,48 L1440,22 C1080,-2 360,46 0,22 Z' fill='%23fbf6ec'/%3E%3C/svg%3E");
  /* palmier filigrane (charte Les 2 Rives) */
  --palm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='520' viewBox='0 0 64 64' fill='%23ffffff'%3E%3Cpath d='M31 60c-1-12-4-22-9-30 6 2 9 6 11 11 0-7 1-13 4-19-4 1-8 3-11 6 2-5 6-9 12-12-6-1-12 0-17 4 2-4 6-7 12-9-7-2-14 0-19 5 3-9 11-12 11-12-8-1-15 3-19 10-1-4 0-8 2-12-6 4-9 11-8 19-2-2-3-5-3-9-3 5-3 11-1 16-3-1-6-3-8-6 0 6 3 11 8 14-2 0-5-1-7-2 2 5 7 8 12 8-5 8-7 18-7 30z'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: 'Mulish', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* garde anti-débordement horizontal (décors + reveals) */
}
h1, h2, h3 { font-family: 'Fredoka', system-ui, sans-serif; line-height: 1.1; margin: 0; font-weight: 600; }
p { margin: 0 0 1rem; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 1000; background: var(--green); color: #fff; padding: .75rem 1rem; border-radius: 0 0 var(--radius-sm) 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- Vague décorative (signature) ---------- */
.squiggle, .section-head__title::after, .hero__title::after {
  content: ""; display: block; width: 150px; height: 14px; margin: 1rem auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='14' viewBox='0 0 150 14'%3E%3Cpath d='M2,8 Q14,1 26,8 T50,8 T74,8 T98,8 T122,8 T146,8' fill='none' stroke='%23e89b3c' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: .8rem 1.7rem;
  background: var(--orange); color: var(--green-deep); text-decoration: none;
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.05rem;
  border-radius: 999px; border: 2px solid var(--orange); cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--lg { min-height: 58px; padding: .95rem 2.2rem; font-size: 1.15rem; }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn--header { min-height: 44px; padding: .5rem 1.25rem; font-size: .95rem; flex-shrink: 0; white-space: nowrap; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(16, 61, 51, 0.96); backdrop-filter: blur(8px); }
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; flex-wrap: nowrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand__mark { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; background: radial-gradient(circle at 32% 30%, var(--orange), var(--pink) 60%, var(--green) 100%); }
.brand__name { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.12rem; color: #fff; }
.nav { display: flex; gap: 1.05rem; margin-left: auto; flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: rgba(255,255,255,.88); text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap; padding: .35rem 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 3px; border-radius: 3px; background: var(--orange); transition: width .2s var(--ease); }
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }

/* ---------- Menu mobile (burger sans JS, via <details>) ---------- */
.menu { display: none; position: relative; margin-left: auto; flex-shrink: 0; }
.menu__btn { list-style: none; cursor: pointer; width: 46px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 2px solid rgba(255,255,255,.6); color: #fff; font-size: 1.45rem; line-height: 1; user-select: none; }
.menu__btn::-webkit-details-marker { display: none; }
.menu[open] .menu__btn { background: rgba(255,255,255,.14); border-color: #fff; }
.menu__panel { position: absolute; right: 0; top: calc(100% + 12px); display: flex; flex-direction: column; gap: .2rem; min-width: 230px; padding: .55rem; background: var(--green-deep); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.menu__panel a { color: #fff; text-decoration: none; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1rem; padding: .7rem .85rem; border-radius: 10px; }
.menu__panel a:hover { background: rgba(255,255,255,.1); }
.menu__cta { margin-top: .35rem; text-align: center; background: var(--orange); color: var(--green-deep) !important; }
.menu__cta:hover { background: var(--orange-dark); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 84vh; min-height: 84dvh; display: flex; align-items: center; background: var(--green); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,44,37,.45), rgba(10,44,37,.78)); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 48px; background: var(--wave-bottom) no-repeat center / 100% 100%; }
.hero__content { position: relative; max-width: 760px; padding: 5rem 0; color: #fff; }
.hero__kicker { display: inline-block; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; font-size: .78rem; color: var(--green-deep); background: var(--orange); padding: .4rem .9rem; border-radius: 999px; margin: 0 0 1.4rem; }
.hero__title { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 700; margin: 0; text-shadow: 0 2px 24px rgba(10,44,37,.4); }
.hero__title::after { margin: 1.2rem 0 0; }
.hero__subtitle { font-size: clamp(1.1rem, 2.5vw, 1.4rem); max-width: 40ch; margin: 1.4rem 0 2.2rem; color: rgba(255,255,255,.92); }

/* ---------- En-têtes de section ---------- */
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-weight: 800; font-size: .8rem; color: var(--orange-dark); margin: 0 0 .65rem; }
.section-head { max-width: 660px; margin: 0 auto 3rem; text-align: center; }
.section-head__title { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; margin: 0; }
.section-head__intro { color: var(--muted); font-size: 1.12rem; margin: 1.25rem 0 0; }

.intro { padding: 4.5rem 0 1.5rem; }
.intro__inner { max-width: 740px; margin: 0 auto; text-align: center; }
.intro .eyebrow { color: var(--orange-dark); }
.intro__title { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; margin: 0; }
.intro__title::after { content: ""; display: block; width: 150px; height: 14px; margin: 1rem auto 1.4rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='14' viewBox='0 0 150 14'%3E%3Cpath d='M2,8 Q14,1 26,8 T50,8 T74,8 T98,8 T122,8 T146,8' fill='none' stroke='%23e89b3c' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.intro__body { color: var(--muted); font-size: 1.15rem; }

/* ---------- Guinguettes (cartes) ---------- */
.guinguettes { padding: 4.5rem 0 5.5rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.card { position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 7px; z-index: 2; background: var(--orange); }
.card:nth-child(2)::before { background: var(--pink); }
.card:nth-child(3)::before { background: var(--green); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--green), var(--green-deep)); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card__name { font-size: 1.7rem; font-weight: 600; color: var(--green); }
.card__meta { font-weight: 700; color: var(--orange-dark); margin: 0; }
.card__hours { color: var(--muted); font-size: .95rem; margin: 0; }
.card__desc { color: var(--ink); margin: .35rem 0; }
.card__tags { margin: .25rem 0 0; font-size: .82rem; font-weight: 700; color: var(--green); letter-spacing: .02em; }
.card__link { margin-top: auto; align-self: flex-start; font-family: 'Fredoka', sans-serif; font-weight: 600; color: var(--green); text-decoration: none; padding-top: .75rem; border-bottom: 2px solid var(--orange); }
.card__link:hover { color: var(--orange-dark); }

/* ---------- La carte (menus) ---------- */
.carte { padding: 4.5rem 0 5.5rem; background: var(--pink-soft); }
.carte__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; max-width: 900px; margin: 0 auto; }
.carte__item { margin: 0; background: var(--white); border-radius: var(--radius); padding: .9rem; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.carte__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.carte__item img { width: 100%; border-radius: var(--radius-sm); }
.carte__item figcaption { text-align: center; font-family: 'Fredoka', sans-serif; font-weight: 500; color: var(--green); padding: .9rem 0 .35rem; }
.carte__note { text-align: center; font-style: italic; color: var(--muted); margin: 2rem 0 0; }

/* ---------- Bloc image + texte ---------- */
.feature { padding: 4.5rem 0; }
.feature__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2.75rem; align-items: center; }
.feature--reverse .feature__media { order: 2; }
.feature__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.feature__title { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin: .4rem 0 1rem; color: var(--green); }
.feature__body { color: var(--muted); font-size: 1.1rem; margin: 0; }
.feature__points { margin: 1.2rem 0 0; font-weight: 700; color: var(--orange-dark); letter-spacing: .01em; }
@media (max-width: 760px) {
  .feature__inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature--reverse .feature__media { order: 0; }
}

/* ---------- Programmation (bandeau vert) ---------- */
.agenda { position: relative; padding: 6rem 0; background: var(--green); color: #fff; }
.agenda::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 48px; background: var(--wave-top) no-repeat center / 100% 100%; }
.agenda::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 48px; background: var(--wave-bottom) no-repeat center / 100% 100%; }
.agenda .container { position: relative; }
.agenda .container::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 360px; height: 440px; background: var(--palm) no-repeat center / contain; opacity: .06; pointer-events: none; }
.agenda .eyebrow { color: var(--orange); }
.agenda .section-head__title { color: #fff; }
.agenda .section-head__intro { color: rgba(255,255,255,.82); }
.agenda__list { list-style: none; margin: 0 auto; padding: 0; max-width: 780px; position: relative; z-index: 1; }
.event { display: flex; align-items: center; gap: 1.25rem; padding: 1.15rem .25rem; border-bottom: 1px dashed rgba(255,255,255,.22); }
.event:last-child { border-bottom: 0; }
.event__date { flex: 0 0 120px; font-family: 'Fredoka', sans-serif; font-weight: 600; color: var(--orange); font-size: 1.05rem; }
.event__body { display: flex; flex-direction: column; flex: 1; }
.event__title { font-weight: 800; font-size: 1.12rem; color: #fff; }
.event__place { color: rgba(255,255,255,.72); font-size: .95rem; }
.event__tag { flex-shrink: 0; background: rgba(255,255,255,.12); color: #fff; font-weight: 700; font-size: .78rem; padding: .35rem .85rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); }

/* ---------- Galerie ---------- */
.gallery { padding: 5rem 0; }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 1rem; }
.gallery__item { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: linear-gradient(135deg, var(--pink-soft), var(--pink)); box-shadow: var(--shadow); }
.gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery__item:nth-child(4) { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery:not(:has(img)) .gallery__grid::after { content: "Vos photos apparaîtront ici."; grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 2rem; }

/* ---------- Infos pratiques ---------- */
.infos { padding: 5rem 0 5.5rem; }
.infos__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 940px; margin: 0 auto; }
.infos__block { background: var(--white); border-radius: var(--radius); padding: 1.9rem; box-shadow: var(--shadow); border-top: 6px solid var(--pink); }
.infos__block h3 { font-size: 1.35rem; font-weight: 600; color: var(--green); margin: 0 0 .6rem; }
.infos__block p { margin: 0; color: var(--ink); }
.infos__block--contact { display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; background: var(--green); color: #fff; border-top-color: var(--orange); }
.infos__block--contact h3 { color: #fff; }
.link-arrow { display: inline-block; margin-top: .85rem; font-family: 'Fredoka', sans-serif; font-weight: 600; color: var(--green); text-decoration: none; border-bottom: 2px solid var(--orange); }
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--orange-dark); }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; background: var(--green); color: rgba(255,255,255,.82); padding: 5rem 0 1.75rem; }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 48px; background: var(--wave-top) no-repeat center / 100% 100%; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer .brand__name { color: #fff; font-size: 1.4rem; }
.site-footer__address { margin: .6rem 0 0; max-width: 28ch; }
.site-footer__contact { display: flex; flex-direction: column; gap: .4rem; }
.site-footer__contact a { color: #fff; text-decoration: none; font-weight: 600; }
.site-footer__contact a:hover { color: var(--orange); }
.social { display: flex; gap: 1rem; margin-top: .5rem; }
.site-footer__legal { text-align: center; margin: 2.5rem 0 0; font-size: .85rem; color: rgba(255,255,255,.55); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .infos__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item:nth-child(1) { grid-column: span 2; }
  .gallery__item:nth-child(4) { grid-row: auto; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 66px; }
  .nav { display: none; }
  .btn--header { display: none; }
  .menu { display: block; }
  .site-header__inner { justify-content: space-between; min-height: 62px; gap: .75rem; }
  .brand { min-width: 0; flex-shrink: 1; }
  .brand__name { font-size: .98rem; white-space: normal; line-height: 1.12; }
  .cards { grid-template-columns: 1fr; }
  .hero { min-height: 76vh; }
  .hero__content { padding: 4rem 0; }
  .event { flex-wrap: wrap; gap: .4rem 1rem; }
  .event__date { flex-basis: 100%; }
  .gallery__grid { grid-auto-rows: 150px; }
  .container { padding: 0 1.15rem; }
}
@media (max-width: 380px) {
  .brand__mark { display: none; }
}
/* ---------- Reveals au scroll (façon GSAP) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .anim-ready .hero__content,
  .anim-ready .section-head,
  .anim-ready .intro__inner,
  .anim-ready .cards .card,
  .anim-ready .gallery__item,
  .anim-ready .agenda .event,
  .anim-ready .carte__item,
  .anim-ready .infos__block {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease-out, transform .8s var(--ease);
    will-change: opacity, transform;
  }
  /* les lieux : entrée un peu plus marquée (translate + léger zoom) */
  .anim-ready .cards .card { transform: translateY(36px) scale(.96); }
  .anim-ready .hero__content { transform: translateY(16px); transition-duration: .8s, .9s; }

  .anim-ready .feature__media { opacity: 0; transform: translateX(-34px); transition: opacity .7s ease-out, transform .8s var(--ease); }
  .anim-ready .feature__text  { opacity: 0; transform: translateX(34px); transition: opacity .7s ease-out, transform .8s var(--ease); }

  .anim-ready .is-in { opacity: 1 !important; transform: none !important; }

  /* stagger : cartes des guinguettes */
  .anim-ready .cards .card:nth-child(2) { transition-delay: .12s; }
  .anim-ready .cards .card:nth-child(3) { transition-delay: .24s; }
  /* stagger : galerie */
  .anim-ready .gallery__item:nth-child(2) { transition-delay: .06s; }
  .anim-ready .gallery__item:nth-child(3) { transition-delay: .12s; }
  .anim-ready .gallery__item:nth-child(4) { transition-delay: .18s; }
  .anim-ready .gallery__item:nth-child(5) { transition-delay: .24s; }
  .anim-ready .gallery__item:nth-child(6) { transition-delay: .30s; }
  /* stagger : agenda */
  .anim-ready .agenda .event:nth-child(2) { transition-delay: .06s; }
  .anim-ready .agenda .event:nth-child(3) { transition-delay: .12s; }
  .anim-ready .agenda .event:nth-child(4) { transition-delay: .18s; }
  .anim-ready .agenda .event:nth-child(5) { transition-delay: .24s; }
  .anim-ready .agenda .event:nth-child(6) { transition-delay: .30s; }
  /* stagger : blocs infos */
  .anim-ready .infos__block:nth-child(2) { transition-delay: .08s; }
  .anim-ready .infos__block:nth-child(3) { transition-delay: .16s; }
  .anim-ready .infos__block:nth-child(4) { transition-delay: .24s; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
