/* Gourméa Events — Prestations événementielles (chargé uniquement sur cette page).
   Identité du flyer : noir (élégance), doré (haut de gamme), rose (les stands), blanc (lisibilité). */
.ev {
  --rose: #e8337f;
  --rose-light: #ff7fb2;
  --rose-glow: rgba(232, 51, 127, .22);
  --ev-text: #ece6d8;
}

/* Boutons */
.btn-pink { background: var(--rose); color: #fff; box-shadow: 0 6px 20px rgba(232, 51, 127, .35); }
.btn-pink:hover { background: #f0478d; color: #fff; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(232, 51, 127, .5); }
.ev .btn-outline, .ev-sticky .btn-outline { background: rgba(12, 11, 9, .35); }

.ev section[id] { scroll-margin-top: 76px; }

/* En-têtes de section */
.ev-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.ev-head h2 { margin-bottom: .35em; }
.ev-head p:last-child { color: var(--muted); margin: 0; font-size: 1.05rem; }
.ev-head .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.ev-head .eyebrow::before, .ev-head .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--gold-dark); }

/* 1. Présentation plein écran */
.ev-hero { position: relative; isolation: isolate; min-height: min(88vh, 860px); display: flex; align-items: flex-end; overflow: hidden; background: var(--black); }
.ev-hero-media, .ev-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ev-hero-media { z-index: -2; }
.ev-hero-media img { object-fit: cover; object-position: 55% 45%; animation: ev-zoom 2.4s cubic-bezier(.2, .7, .2, 1) both; }
.ev-hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 11, 9, .94) 0%, rgba(12, 11, 9, .78) 34%, rgba(12, 11, 9, .25) 62%, rgba(12, 11, 9, 0) 80%),
    linear-gradient(0deg, var(--black) 0%, rgba(12, 11, 9, 0) 28%);
}
.ev-hero-inner { position: relative; padding-top: 28px; padding-bottom: clamp(48px, 9vh, 96px); }
.ev-crumb { position: absolute; top: 18px; left: 16px; color: #ddd5c4; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.ev-crumb a { color: var(--gold-light); }
.ev-hero-text { max-width: 600px; padding-top: 72px; }
.ev-brand { font-size: clamp(2.1rem, 10.5vw, 5.4rem); text-transform: uppercase; letter-spacing: .03em; line-height: .98; margin-bottom: .18em; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.ev-brand > span:first-child { display: block; color: var(--white); }
.ev-brand .gold { filter: drop-shadow(0 2px 14px rgba(212, 164, 55, .35)); }
.ev-script { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 1.9rem); color: var(--rose-light); margin-bottom: .5em; }
.ev-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ev-text); max-width: 30em; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.ev-badges { list-style: none; padding: 0; margin: 1.8em 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; color: #ddd5c4; }
.ev-badges li { display: inline-flex; align-items: center; gap: 8px; }
.ev-badges li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-grad); box-shadow: 0 0 0 3px rgba(212, 164, 55, .18); }
.ev-rise { animation: ev-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.ev-rise:nth-child(2) { animation-delay: .08s; }
.ev-rise:nth-child(3) { animation-delay: .16s; }
.ev-rise:nth-child(4) { animation-delay: .24s; }
.ev-rise:nth-child(5) { animation-delay: .32s; }
.ev-rise:nth-child(6) { animation-delay: .4s; }
@keyframes ev-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes ev-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }

/* Apparition douce au défilement (uniquement si JavaScript est actif) */
.ev-js .ev-reveal:not(.is-in) { opacity: 0; transform: translateY(18px); }
.ev-reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }

/* 2. Les six prestations */
.ev-services { background: radial-gradient(ellipse at 50% 0%, rgba(212, 164, 55, .08), transparent 60%), var(--black); }
.ev-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ev-card { position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, #1f1b14, var(--card)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .35s, box-shadow .35s; }
.ev-card:hover { transform: translateY(-3px); border-color: var(--hairline); box-shadow: var(--shadow); }
.ev-card-media { position: relative; aspect-ratio: 1092 / 1440; overflow: hidden; background: var(--ink); }
.ev-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.ev-card:hover .ev-card-media img { transform: scale(1.04); }
.ev-card-media::after { content: ""; position: absolute; inset: auto 0 0; height: 22%; background: linear-gradient(0deg, rgba(21, 19, 15, .7), transparent); pointer-events: none; }
.ev-card-num { position: absolute; z-index: 1; left: 14px; bottom: 12px; display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 50%; background: rgba(12, 11, 9, .72); backdrop-filter: blur(6px); border: 1px solid var(--hairline); font: italic 700 1.05rem var(--serif); color: var(--gold-light); }
.ev-card-placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: repeating-linear-gradient(45deg, #1a1712 0 12px, #1f1b15 12px 24px); color: var(--muted); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }
.ev-swipe-hint { display: none; justify-content: center; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--muted); font-size: .85rem; }
.ev-swipe-hint::after { content: "→"; color: var(--gold); }
.ev-cards:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; border-radius: var(--radius); }
.ev-card-body { display: flex; flex-direction: column; gap: .35em; padding: 18px 20px 22px; flex: 1; border-top: 1px solid var(--hairline); }
.ev-card-body h3 { margin: 0; font-size: 1.4rem; }
.ev-card-subtitle { margin: 0; color: var(--gold-light); font-family: var(--serif); font-style: italic; }
.ev-card-body p { margin: 0; color: var(--ev-text); font-size: .95rem; }
.ev-card-body .btn { margin-top: auto; align-self: flex-start; }
.ev-card-body p + .btn { margin-top: 16px; }

/* 3. Stand gourmand complet */
.ev-combo { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.ev-combo-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.ev-combo-media { position: relative; margin: 0; }
.ev-combo-media::before { content: ""; position: absolute; inset: 8% -6% -6% 8%; border-radius: 24px; background: radial-gradient(circle at 30% 30%, var(--rose-glow), transparent 70%); filter: blur(10px); z-index: 0; }
.ev-combo-media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid rgba(212, 164, 55, .45); box-shadow: 0 24px 50px rgba(0, 0, 0, .5); }
.ev-combo-media figcaption { position: relative; z-index: 1; margin-top: 12px; color: var(--muted); font-size: .88rem; text-align: center; font-style: italic; }
.ev-combo-text p { color: var(--ev-text); }
.ev-composer { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 12px; margin: 1.4em 0 0; background: rgba(12, 11, 9, .5); }
.ev-composer legend { padding: 0 8px; font-weight: 600; color: var(--gold-light); font-size: .95rem; }
.ev-composer-options { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-pick { position: relative; cursor: pointer; }
.ev-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ev-pick span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .92rem; font-weight: 500; transition: border-color .2s, background .2s, color .2s; }
.ev-pick span::before { content: "+"; color: var(--gold); font-weight: 700; width: 10px; text-align: center; }
.ev-pick:hover span { border-color: var(--gold-dark); }
.ev-pick input:checked + span { border-color: var(--rose); background: rgba(232, 51, 127, .16); color: #fff; }
.ev-pick input:checked + span::before { content: "✓"; color: var(--rose-light); }
.ev-pick input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.ev-composer-count { margin: 10px 0 0; font-size: .86rem; color: var(--muted); }

/* 4. Prestation clé en main */
.ev-turnkey { position: relative; background: radial-gradient(ellipse at 15% 20%, rgba(232, 51, 127, .12), transparent 55%), radial-gradient(ellipse at 85% 80%, rgba(212, 164, 55, .12), transparent 55%), var(--black); }
.ev-features { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.ev-feature { flex: 0 1 calc(25% - 14px); min-width: 230px; background: rgba(28, 25, 19, .8); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; transition: border-color .3s, transform .3s; }
.ev-feature:hover { border-color: var(--gold-dark); transform: translateY(-3px); }
.ev-feature svg { width: 46px; height: 46px; padding: 10px; border-radius: 50%; fill: none; stroke: var(--gold-light); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; background: rgba(212, 164, 55, .1); border: 1px solid rgba(212, 164, 55, .35); margin-bottom: 12px; }
.ev-feature h3 { font-size: 1.08rem; margin-bottom: .3em; }
.ev-feature p { margin: 0; color: var(--muted); font-size: .9rem; }
.ev-motto { margin: 40px auto 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3.4vw, 2.3rem); color: var(--rose-light); }

/* 5. Pour tous vos événements */
.ev-occasions { background: var(--ink); border-top: 1px solid var(--line); }
.ev-occasion-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ev-occasion { display: flex; align-items: center; gap: 14px; padding: 18px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); font-weight: 600; transition: border-color .3s, background .3s; }
.ev-occasion:hover { border-color: var(--rose); background: linear-gradient(135deg, rgba(232, 51, 127, .12), var(--card)); }
.ev-occasion svg { width: 30px; height: 30px; flex-shrink: 0; fill: none; stroke: var(--rose-light); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 6. Devis */
.ev-quote { background: radial-gradient(ellipse at 50% 0%, rgba(212, 164, 55, .1), transparent 55%), var(--black); scroll-margin-top: 70px; }
.ev-sent { max-width: 760px; margin: 0 auto 24px; font-size: 1rem; }
.ev-quote-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: start; }
.ev-form { padding: 28px; border-color: rgba(212, 164, 55, .3); margin: 0; }
.ev-step { border: 0; padding: 0; margin: 0 0 1.4rem; min-width: 0; }
.ev-step legend { display: flex; align-items: center; gap: 10px; font: 700 1.15rem var(--serif); margin-bottom: .9rem; padding: 0; color: var(--white); }
.ev-step legend span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-grad); color: #1a1408; font: 700 .9rem var(--sans); }
.ev-step legend small { font: 400 .85rem var(--sans); color: var(--muted); }
.ev-form label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: .3em; }
.ev-form label.service-choice, .ev-form label.check { display: flex; }
.ev-form input[type=date] { width: 100%; padding: .75em .9em; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--ink); color: var(--white); font: inherit; color-scheme: dark; }
.ev-form input[type=date]:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(212, 164, 55, .2); }
.ev-guests { max-width: 50%; }
.ev-service-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ev-form .service-choice { min-height: 48px; transition: border-color .2s, background .2s; }
.ev-form .service-choice:has(input:checked) { border-color: var(--rose); background: rgba(232, 51, 127, .12); }
.ev-form .errorlist { list-style: none; padding: 0; margin: .35em 0 0; color: #ff9b8f; font-size: .86rem; }
.ev-form .field:has(.errorlist) input, .ev-form .field:has(.errorlist) select { border-color: #e2364b; }
.ev-privacy { margin: -.4rem 0 1.1rem; }
.ev-aside { position: sticky; top: 96px; }
.ev-contact { margin-bottom: 0; }
.ev-timeline { list-style: none; counter-reset: etape; padding: 0; margin: 0 0 18px; }
.ev-timeline li { counter-increment: etape; position: relative; padding: 0 0 16px 44px; }
.ev-timeline li::before { content: counter(etape); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-light); font-weight: 700; font-size: .9rem; }
.ev-timeline li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 1px; background: var(--line); }
.ev-timeline strong { display: block; }
.ev-timeline span { color: var(--muted); font-size: .9rem; }
.ev-contact-links { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.ev-contact-link { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--white); padding: 6px 0; }
a.ev-contact-link:hover { color: var(--gold-light); }
.ev-contact-link svg { width: 40px; height: 40px; padding: 9px; flex-shrink: 0; border-radius: 50%; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; background: var(--rose); }
.ev-contact-link span { display: flex; flex-direction: column; font-weight: 600; word-break: break-word; }
.ev-contact-link small { color: var(--muted); font-weight: 400; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }

/* Accès rapide au devis sur téléphone */
.ev-sticky { display: none; }

/* Tablettes */
@media (max-width: 1024px) {
  .ev-cards { grid-template-columns: repeat(2, 1fr); }
  .ev-occasion-grid { grid-template-columns: repeat(2, 1fr); }
  .ev-feature { flex-basis: calc(50% - 9px); }
  .ev-combo-grid { gap: 32px; }
}
@media (max-width: 860px) {
  .ev-combo-grid, .ev-quote-grid { grid-template-columns: 1fr; }
  .ev-aside { position: static; }
  .ev-service-options { grid-template-columns: 1fr 1fr; }
}

/* Téléphones : photo entière en haut, texte en dessous */
@media (max-width: 760px) {
  .ev-hero { display: block; min-height: 0; }
  .ev-hero-media, .ev-hero-media img { position: relative; height: auto; }
  .ev-hero-media img { aspect-ratio: 3 / 2; }
  .ev-hero-shade { inset: 0 0 auto; height: calc(100vw * 2 / 3 + 2px); background: linear-gradient(0deg, var(--black) 0%, rgba(12, 11, 9, 0) 45%); }
  .ev-hero-inner { margin-top: -54px; padding-top: 0; padding-bottom: 36px; }
  .ev-crumb { position: static; margin-bottom: 8px; }
  .ev-hero-text { padding-top: 0; }
  .ev-actions .btn { flex: 1 1 100%; }
  .ev-sticky { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(12, 11, 9, .94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s ease; }
  .ev-sticky.show { transform: none; }
  .ev-sticky .btn { flex: 1; padding: .75em 1em; }
  .ev-sticky .ev-sticky-call { flex: 0 0 auto; }
  .ev-sticky svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .site-footer { padding-bottom: 80px; }
}
@media (max-width: 560px) {
  /* Prestations : carrousel à faire glisser, photos entières au format portrait */
  .ev-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 16px; margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: none; }
  .ev-cards::-webkit-scrollbar { display: none; }
  .ev-card { scroll-snap-align: start; }
  .ev-card:hover { transform: none; }
  .ev-js .ev-cards .ev-reveal:not(.is-in) { opacity: 1; transform: none; }
  .ev-swipe-hint { display: flex; }
  .ev-occasion-grid { gap: 10px; }
  .ev-occasion { flex-direction: column; justify-content: center; text-align: center; gap: 8px; font-size: .9rem; line-height: 1.3; }
  .ev-feature { flex-basis: 100%; min-width: 0; display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; padding: 16px; }
  .ev-feature svg { grid-row: span 2; margin: 0; }
  .ev-head { margin-bottom: 26px; }
  .ev-head .eyebrow::before, .ev-head .eyebrow::after { width: 16px; }
  .ev-form { padding: 20px 16px; }
  .ev-guests { max-width: none; }
  .ev-service-options { grid-template-columns: 1fr; }
  .ev-occasion { padding: 16px 10px; }
  .ev-combo-grid { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .ev-hero-media img, .ev-rise { animation: none; }
  .ev-js .ev-reveal:not(.is-in) { opacity: 1; transform: none; }
  .ev-card:hover, .ev-feature:hover, .ev-card:hover .ev-card-media img { transform: none; }
}
