/*
Theme Name: Isis Garden
Theme URI: https://pedantic-albattani.72-60-89-93.plesk.page
Author: Isis Garden Festival
Description: Thème officiel du festival Isis Garden — World Techno & Chill-Out en Cévennes. Deux ambiances : Nuit du Dôme (accueil) et Lumière Dorée (pages de jour), autour de la charte de l'affiche 2026.
Version: 1.0.6
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: isis-garden
*/

/* ======================================================
   Variables d'ambiance — nuit par défaut, jour surchargé
   ====================================================== */
body {
    --ig-fond: #0d0b1f;
    --ig-fond-2: #141433;
    --ig-grad-a: #191542;
    --ig-grad-b: #171034;
    --ig-dore: #e0b551;
    --ig-dore-clair: #f0d189;
    --ig-lueur: #8b6fc9;
    --ig-texte-soft: #b6a3e3;
    --ig-texte: #f2effa;
    --ig-btn-texte: #141433;
    --ig-glow: 224, 181, 81;
    --ig-glow-2: 139, 111, 201;
    --font-display: 'Marcellus', serif;
    --font-body: 'Jost', sans-serif;
    background: var(--ig-fond);
    color: var(--ig-texte);
    font-family: var(--font-body);
    font-weight: 300;
    overflow-x: hidden;
    margin: 0;
}

body.page-template-page-lumiere,
body.page-template-page-elementor {
    --ig-fond: #eedfb6;
    --ig-fond-2: #f8f2de;
    --ig-grad-a: #f5ebc9;
    --ig-grad-b: #f0e3ba;
    --ig-dore: #a87a1c;
    --ig-dore-clair: #c39a2e;
    --ig-lueur: #8fae62;
    --ig-texte-soft: #5f7245;
    --ig-texte: #1d3a32;
    --ig-btn-texte: #fdf8ea;
    --ig-glow: 168, 122, 28;
    --ig-glow-2: 143, 174, 98;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--ig-dore);
}

/* ============ HEADER ============ */
.ig-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: linear-gradient(to bottom, color-mix(in srgb, var(--ig-fond) 88%, transparent), transparent);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: igHeaderDescend 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}
body.admin-bar .ig-header { top: 32px; }

@keyframes igHeaderDescend {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ig-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.ig-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.ig-brand-seal {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(var(--ig-glow), 0.55);
    position: relative;
    flex-shrink: 0;
}
.ig-brand-seal::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: radial-gradient(circle at 68% 40%, transparent 58%, var(--ig-dore) 60%);
}
.ig-brand img { display: block; height: 26px; width: auto; }
/* Un seul logo à la fois : les sélecteurs doivent être au moins aussi
   spécifiques que « .ig-brand img » ci-dessus, sinon les deux s'affichent. */
.ig-brand img.ig-logo-jour { display: none; }
body.page-template-page-lumiere .ig-brand img.ig-logo-nuit,
body.page-template-page-elementor .ig-brand img.ig-logo-nuit { display: none; }
body.page-template-page-lumiere .ig-brand img.ig-logo-jour,
body.page-template-page-elementor .ig-brand img.ig-logo-jour { display: block; }

.ig-nav { display: flex; align-items: center; gap: 2.2rem; }
.ig-nav a.ig-nav-link {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.92rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ig-texte);
    text-decoration: none;
    position: relative;
    padding: 0.35rem 0;
    transition: color 0.5s ease, text-shadow 0.5s ease;
}
.ig-nav a.ig-nav-link::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 0;
    width: 0; height: 1px;
    background: var(--ig-dore);
    box-shadow: 0 0 8px rgba(var(--ig-glow), 0.8);
    transition: width 0.5s ease, left 0.5s ease;
}
.ig-nav a.ig-nav-link:hover, .ig-nav a.ig-nav-link:focus-visible {
    color: var(--ig-dore-clair);
    text-shadow: 0 0 18px rgba(var(--ig-glow), 0.55);
}
.ig-nav a.ig-nav-link:hover::after, .ig-nav a.ig-nav-link:focus-visible::after { width: 100%; left: 0; }

.ig-btn-billetterie {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.92rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ig-btn-texte);
    background: linear-gradient(135deg, var(--ig-dore-clair), var(--ig-dore));
    text-decoration: none;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    transition: box-shadow 0.6s ease, transform 0.6s ease;
    white-space: nowrap;
}
.ig-btn-billetterie:hover, .ig-btn-billetterie:focus-visible {
    box-shadow: 0 0 28px rgba(var(--ig-glow), 0.55), 0 0 60px rgba(var(--ig-glow-2), 0.35);
    transform: translateY(-1px);
}

/* ============ HERO ============ */
.ig-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(175deg, var(--ig-fond-2) 0%, var(--ig-grad-a) 42%, var(--ig-grad-b) 68%, var(--ig-fond) 100%);
    background-size: 100% 160%;
    animation: igNightShift 26s ease-in-out infinite alternate;
    margin: 0;
}
@keyframes igNightShift {
    from { background-position: 50% 0%; }
    to   { background-position: 50% 100%; }
}

.ig-halo {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(70px);
    opacity: 0.5;
    animation: igHaloBreathe 14s ease-in-out infinite alternate;
}
.ig-halo-1 {
    width: 44vw; height: 44vw; max-width: 620px; max-height: 620px;
    left: -12vw; top: 8vh;
    background: radial-gradient(circle, rgba(var(--ig-glow-2), 0.42), transparent 70%);
}
.ig-halo-2 {
    width: 38vw; height: 38vw; max-width: 540px; max-height: 540px;
    right: -10vw; bottom: -6vh;
    background: radial-gradient(circle, rgba(var(--ig-glow-2), 0.34), transparent 70%);
    animation-delay: -7s;
}
.ig-halo-3 {
    width: 26vw; height: 26vw; max-width: 380px; max-height: 380px;
    right: 14vw; top: 4vh;
    background: radial-gradient(circle, rgba(var(--ig-glow), 0.18), transparent 70%);
    animation-delay: -3s;
}
@keyframes igHaloBreathe {
    from { opacity: 0.32; transform: scale(0.94); }
    to   { opacity: 0.6;  transform: scale(1.08); }
}

.ig-particles { position: absolute; inset: 0; pointer-events: none; }
.ig-particle {
    position: absolute;
    bottom: -4vh;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--ig-glow), 0.95) 0%, rgba(var(--ig-glow), 0.4) 55%, transparent 75%);
    filter: blur(1px);
    opacity: 0;
    animation-name: igFloatUp;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
.ig-particle:nth-child(1)  { left: 6%;  width: 5px; height: 5px; animation-duration: 22s; animation-delay: 0s; }
.ig-particle:nth-child(2)  { left: 14%; width: 3px; height: 3px; animation-duration: 28s; animation-delay: 6s; }
.ig-particle:nth-child(3)  { left: 23%; width: 7px; height: 7px; animation-duration: 19s; animation-delay: 2s; filter: blur(2px); }
.ig-particle:nth-child(4)  { left: 31%; width: 4px; height: 4px; animation-duration: 26s; animation-delay: 11s; }
.ig-particle:nth-child(5)  { left: 40%; width: 3px; height: 3px; animation-duration: 31s; animation-delay: 4s; }
.ig-particle:nth-child(6)  { left: 49%; width: 6px; height: 6px; animation-duration: 21s; animation-delay: 9s; filter: blur(2px); }
.ig-particle:nth-child(7)  { left: 58%; width: 4px; height: 4px; animation-duration: 27s; animation-delay: 1s; }
.ig-particle:nth-child(8)  { left: 66%; width: 3px; height: 3px; animation-duration: 33s; animation-delay: 14s; }
.ig-particle:nth-child(9)  { left: 74%; width: 8px; height: 8px; animation-duration: 18s; animation-delay: 5s; filter: blur(3px); }
.ig-particle:nth-child(10) { left: 82%; width: 4px; height: 4px; animation-duration: 24s; animation-delay: 8s; }
.ig-particle:nth-child(11) { left: 90%; width: 5px; height: 5px; animation-duration: 29s; animation-delay: 3s; }
.ig-particle:nth-child(12) { left: 96%; width: 3px; height: 3px; animation-duration: 25s; animation-delay: 12s; }
.ig-particle:nth-child(13) { left: 12%; width: 6px; height: 6px; animation-duration: 30s; animation-delay: 16s; filter: blur(2px); }
.ig-particle:nth-child(14) { left: 53%; width: 3px; height: 3px; animation-duration: 35s; animation-delay: 18s; }
.ig-particle:nth-child(15) { left: 86%; width: 6px; height: 6px; animation-duration: 23s; animation-delay: 15s; filter: blur(2px); }

@keyframes igFloatUp {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    8%   { opacity: 0.9; }
    50%  { transform: translateY(-52vh) translateX(2.5vw); opacity: 0.55; }
    92%  { opacity: 0.15; }
    100% { transform: translateY(-104vh) translateX(-1.5vw); opacity: 0; }
}

.ig-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 8% 18%, rgba(var(--ig-glow), 0.8) 50%, transparent 55%),
        radial-gradient(1px 1px at 21% 9%,  rgba(var(--ig-glow), 0.6) 50%, transparent 55%),
        radial-gradient(1.5px 1.5px at 34% 26%, rgba(var(--ig-glow), 0.7) 50%, transparent 55%),
        radial-gradient(1px 1px at 47% 12%, rgba(var(--ig-glow), 0.55) 50%, transparent 55%),
        radial-gradient(1px 1px at 63% 20%, rgba(var(--ig-glow), 0.75) 50%, transparent 55%),
        radial-gradient(1.5px 1.5px at 76% 8%,  rgba(var(--ig-glow), 0.6) 50%, transparent 55%),
        radial-gradient(1px 1px at 88% 24%, rgba(var(--ig-glow), 0.7) 50%, transparent 55%),
        radial-gradient(1px 1px at 94% 14%, rgba(var(--ig-glow), 0.5) 50%, transparent 55%),
        radial-gradient(1px 1px at 16% 36%, rgba(var(--ig-glow), 0.45) 50%, transparent 55%),
        radial-gradient(1px 1px at 70% 34%, rgba(var(--ig-glow), 0.5) 50%, transparent 55%);
    animation: igTwinkle 9s ease-in-out infinite alternate;
}
@keyframes igTwinkle {
    from { opacity: 0.5; }
    to   { opacity: 1; }
}

.ig-geometry {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -52%);
    width: min(68vh, 82vw);
    height: min(68vh, 82vw);
    pointer-events: none;
    opacity: 0;
    animation: igGeoReveal 4s ease 1.2s forwards, igGeoSpin 120s linear 1.2s infinite;
}
@keyframes igGeoReveal { to { opacity: 1; } }
@keyframes igGeoSpin {
    from { transform: translate(-50%, -52%) rotate(0deg); }
    to   { transform: translate(-50%, -52%) rotate(360deg); }
}
.ig-geometry .ig-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(var(--ig-glow), 0.28);
}
.ig-geometry .ig-ring-outer { inset: 0; border-style: dashed; border-color: rgba(var(--ig-glow), 0.18); }
.ig-geometry .ig-ring-mid   { inset: 7%; }
.ig-geometry .ig-ring-inner { inset: 16%; border-color: rgba(var(--ig-glow-2), 0.35); }
.ig-geometry .ig-node {
    position: absolute;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--ig-dore);
    box-shadow: 0 0 12px rgba(var(--ig-glow), 0.9);
    left: 50%; top: 7%;
    margin-left: -3.5px; margin-top: -3.5px;
}
.ig-geometry .ig-node-2 { top: auto; bottom: 7%; margin-top: 0; margin-bottom: -3.5px; }
.ig-geometry .ig-node-3 { top: 50%; left: 7%; margin-left: -3.5px; }
.ig-geometry .ig-node-4 { top: 50%; left: auto; right: 7%; margin-right: -3.5px; }

.ig-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 7rem 1.5rem 4rem;
    max-width: 1280px;
    margin: 0 auto;
}
.ig-hero-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--ig-texte-soft);
    margin: 0 0 2rem;
    opacity: 0;
    animation: igNightfall 2.6s ease 0.8s forwards;
}
.ig-hero-title { margin: 0; opacity: 0; animation: igNightfall 3.2s ease 1.4s forwards; }
.ig-hero-logo {
    width: min(560px, 84vw);
    height: auto;
    filter: drop-shadow(0 0 40px rgba(var(--ig-glow), 0.35)) drop-shadow(0 0 90px rgba(var(--ig-glow-2), 0.35));
}
.ig-hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    letter-spacing: 0.5em;
    text-indent: 0.5em;
    text-transform: uppercase;
    color: var(--ig-dore-clair);
    text-shadow: 0 0 30px rgba(var(--ig-glow), 0.4);
    margin: 1.4rem 0 0;
    opacity: 0;
    animation: igNightfall 3s ease 1.9s forwards;
}
.ig-divider {
    width: 130px; height: 1px;
    margin: 1.9rem auto;
    background: linear-gradient(to right, transparent, var(--ig-dore), transparent);
    position: relative;
    opacity: 0;
    animation: igNightfall 2.6s ease 2.2s forwards;
}
.ig-divider::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 6px; height: 6px;
    transform: translate(-50%, -50%) rotate(45deg);
    background: var(--ig-dore);
    box-shadow: 0 0 10px rgba(var(--ig-glow), 0.9);
}
.ig-hero-dates {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.6vw, 1.6rem);
    letter-spacing: 0.34em;
    text-indent: 0.34em;
    color: var(--ig-texte);
    margin: 0 0 0.9rem;
    opacity: 0;
    animation: igNightfall 2.8s ease 2.6s forwards;
}
.ig-hero-place {
    font-size: 0.95rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ig-texte-soft);
    margin: 0 0 3rem;
    opacity: 0;
    animation: igNightfall 2.8s ease 3s forwards;
}
.ig-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: igNightfall 3s ease 3.4s forwards;
}
.ig-btn {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 2.8rem;
    border-radius: 999px;
    transition: box-shadow 0.7s ease, transform 0.7s ease, background-color 0.7s ease, color 0.7s ease;
    display: inline-block;
}
.ig-btn-primary {
    color: var(--ig-btn-texte);
    background: linear-gradient(135deg, var(--ig-dore-clair), var(--ig-dore));
    box-shadow: 0 0 24px rgba(var(--ig-glow), 0.3);
}
.ig-btn-primary:hover, .ig-btn-primary:focus-visible {
    box-shadow: 0 0 40px rgba(var(--ig-glow), 0.65), 0 0 90px rgba(var(--ig-glow-2), 0.4);
    transform: translateY(-2px);
}
.ig-btn-ghost {
    color: var(--ig-dore-clair);
    border: 1px solid rgba(var(--ig-glow), 0.55);
    background: transparent;
}
.ig-btn-ghost:hover, .ig-btn-ghost:focus-visible {
    box-shadow: 0 0 26px rgba(var(--ig-glow), 0.35), inset 0 0 18px rgba(var(--ig-glow), 0.12);
    border-color: var(--ig-dore);
    transform: translateY(-2px);
}

/* ============ COMPTE À REBOURS BILLETTERIE ============ */
.ig-countdown {
    text-align: center;
}
.ig-countdown-units {
    display: flex;
    gap: clamp(1rem, 4vw, 2.4rem);
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
}
.ig-countdown-value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4.4vw, 2.8rem);
    color: var(--ig-dore-clair);
    text-shadow: 0 0 30px rgba(var(--ig-glow), 0.4);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.ig-countdown-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ig-texte-soft);
    margin-top: 0.5rem;
}
.ig-countdown-note {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ig-texte-soft);
    margin-top: 1.1rem;
}

@keyframes igNightfall {
    from { opacity: 0; transform: translateY(22px); filter: blur(6px); }
    to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.ig-scroll-hint {
    position: absolute;
    left: 50%; bottom: 2.2rem;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    opacity: 0;
    animation: igNightfall 3s ease 4.2s forwards;
}
.ig-scroll-hint span {
    font-size: 0.72rem;
    letter-spacing: 0.34em;
    text-indent: 0.34em;
    text-transform: uppercase;
    color: var(--ig-texte-soft);
}
.ig-scroll-hint .ig-beam {
    width: 1px; height: 44px;
    background: linear-gradient(to bottom, var(--ig-dore), transparent);
    animation: igBeamPulse 3.4s ease-in-out infinite;
}
@keyframes igBeamPulse {
    0%, 100% { opacity: 0.35; transform: scaleY(0.7); transform-origin: top; }
    50%      { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ============ SECTIONS ============ */
.ig-section {
    position: relative;
    padding: 6rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}
.ig-section-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--ig-texte-soft);
    text-align: center;
    margin: 0 0 1rem;
}
.ig-section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: 0.08em;
    text-align: center;
    margin: 0 0 1.2rem;
}
.ig-section-intro {
    max-width: 640px;
    margin: 0 auto 3.5rem;
    text-align: center;
    color: var(--ig-texte);
    opacity: 0.85;
}

/* Cartes dancefloors */
.ig-floors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.ig-floor-card {
    border: 1px solid rgba(var(--ig-glow), 0.3);
    border-radius: 8px;
    padding: 2.2rem 1.8rem;
    background: color-mix(in srgb, var(--ig-fond-2) 55%, transparent);
    transition: box-shadow 0.6s ease, transform 0.6s ease, border-color 0.6s ease;
}
.ig-floor-card:hover {
    border-color: rgba(var(--ig-glow), 0.7);
    box-shadow: 0 0 34px rgba(var(--ig-glow), 0.25);
    transform: translateY(-4px);
}
.ig-floor-card h3 {
    font-size: 1.35rem;
    letter-spacing: 0.1em;
    margin: 0 0 0.8rem;
}
.ig-floor-card p { margin: 0; font-size: 0.98rem; opacity: 0.85; }
.ig-floor-tag {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ig-texte-soft);
    margin-bottom: 1rem;
}

/* Deux colonnes image / texte */
.ig-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}
.ig-split img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(var(--ig-glow), 0.35);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.4);
}
.ig-split h2 { text-align: left; }
@media (max-width: 800px) {
    .ig-split { grid-template-columns: 1fr; gap: 2rem; }
}

/* Bande CTA */
.ig-cta-band {
    text-align: center;
    padding: 6rem 1.5rem;
    background:
      radial-gradient(ellipse 60% 80% at 50% 50%, rgba(var(--ig-glow), 0.12), transparent 70%);
}
.ig-cta-band h2 { margin: 0 0 1rem; }
.ig-cta-band p { max-width: 560px; margin: 0 auto 2.4rem; opacity: 0.85; }

/* ============ FOOTER ============ */
.ig-footer {
    border-top: 1px solid rgba(var(--ig-glow), 0.25);
    padding: 3.5rem 1.5rem 2.5rem;
    text-align: center;
}
.ig-footer img { height: 30px; width: auto; margin-bottom: 1.4rem; }
.ig-footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.6rem;
}
.ig-footer-links a {
    color: var(--ig-texte-soft);
    text-decoration: none;
    font-size: 0.88rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: color 0.4s ease;
}
.ig-footer-links a:hover { color: var(--ig-dore-clair); }
.ig-footer-note { font-size: 0.82rem; opacity: 0.55; margin: 0; }

/* ============ CONTENU DE PAGE PAR DÉFAUT ============ */
.ig-page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 9rem 1.5rem 5rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .ig-nav a.ig-nav-link { display: none; }
    .ig-header-inner { gap: 1rem; }
}
@media (max-width: 480px) {
    .ig-brand img { height: 20px; }
    .ig-hero-dates { letter-spacing: 0.2em; text-indent: 0.2em; }
    .ig-hero-subtitle { letter-spacing: 0.32em; text-indent: 0.32em; }
    .ig-btn { padding: 0.9rem 2rem; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .ig-particle { display: none; }
    .ig-hero-eyebrow, .ig-hero-title, .ig-hero-subtitle, .ig-divider,
    .ig-hero-dates, .ig-hero-place, .ig-hero-actions, .ig-scroll-hint,
    .ig-geometry, .ig-header {
        opacity: 1;
        transform: none;
        filter: none;
    }
    .ig-geometry { transform: translate(-50%, -52%); }
    .ig-scroll-hint { transform: translateX(-50%); }
}

/* ======================================================
   PAGE ELEMENTOR — équivalent du template Lumière Dorée
   Elementor pose les classes ig-* sur le conteneur du widget
   et non sur l'élément de texte, et son "kit" global réimpose
   sa propre palette et sa police : ces règles rétablissent la
   charte du thème sur les pages construites avec Elementor.
   ====================================================== */

/* Le texte du widget hérite du conteneur porteur de la classe ig-* */
.elementor .elementor-widget-heading .elementor-heading-title {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    text-indent: inherit;
    text-shadow: inherit;
    margin: 0;
}
/* …sauf les vrais titres, qui gardent la police display dorée */
.elementor .elementor-widget-heading h1.elementor-heading-title,
.elementor .elementor-widget-heading h2.elementor-heading-title,
.elementor .elementor-widget-heading h3.elementor-heading-title,
.elementor .elementor-widget-heading h4.elementor-heading-title {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--ig-dore);
}

/* Le kit Elementor impose sa police sur les paragraphes */
.elementor .elementor-widget-text-editor {
    font-family: var(--font-body);
    color: var(--ig-texte);
}

/* Hero pleine hauteur */
.elementor .ig-hero {
    flex-direction: row;
    margin: 0;
    padding: 0;
    max-width: none;
    --width: 100%;
}
/* Elementor impose la hauteur du conteneur via --min-height */
.elementor .ig-hero {
    --min-height: 100svh;
}
/* Seul le premier widget HTML (halos, particules, géométrie) est en fond ;
   l'indicateur de défilement doit rester ancré au bas du hero. */
.elementor .ig-hero > .elementor-widget-html:first-child {
    position: absolute;
    inset: 0;
    margin: 0;
    width: auto;
}
/* L'indicateur de défilement est sorti du flux pour ne pas décentrer le hero */
.elementor .ig-hero > .elementor-widget-html:last-child {
    position: absolute;
    inset: auto 0 0 0;
    margin: 0;
    width: auto;
}
.elementor .ig-hero-content {
    --width: 100%;
    /* Réserve la place de l'indicateur « Entrer dans le jardin » sous les boutons */
    padding-bottom: 9rem;
}
.elementor .ig-hero-title img {
    width: min(560px, 84vw);
    height: auto;
    filter: drop-shadow(0 0 40px rgba(var(--ig-glow), 0.35)) drop-shadow(0 0 90px rgba(var(--ig-glow-2), 0.35));
}
.elementor .ig-hero-actions {
    flex-direction: row;
    --width: auto;
}

/* Elementor pose les classes ig-btn* sur le CONTENEUR du widget, qui hérite
   donc de tout l'habillage du bouton (fond, pilule, ombre) en plus du lien
   interne : on neutralise le conteneur pour ne garder qu'un seul bouton. */
.elementor .elementor-widget-button.ig-btn {
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    display: block;
    width: auto;
    transition: none;
}
.elementor .elementor-widget-button.ig-btn:hover {
    box-shadow: none;
    transform: none;
}

/* Boutons : Elementor rend un <a> interne au conteneur ig-btn */
.elementor .ig-btn .elementor-button {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 2.8rem;
    border-radius: 999px;
    display: inline-block;
    background-image: none;
    transition: box-shadow 0.7s ease, transform 0.7s ease, background-color 0.7s ease, color 0.7s ease;
}
.elementor .ig-btn-primary .elementor-button {
    color: var(--ig-btn-texte);
    background: linear-gradient(135deg, var(--ig-dore-clair), var(--ig-dore));
    box-shadow: 0 0 24px rgba(var(--ig-glow), 0.3);
}
.elementor .ig-btn-primary .elementor-button:hover,
.elementor .ig-btn-primary .elementor-button:focus-visible {
    box-shadow: 0 0 40px rgba(var(--ig-glow), 0.65), 0 0 90px rgba(var(--ig-glow-2), 0.4);
    transform: translateY(-2px);
}
.elementor .ig-btn-ghost .elementor-button {
    color: var(--ig-dore-clair);
    border: 1px solid rgba(var(--ig-glow), 0.55);
    background: transparent;
}
.elementor .ig-btn-ghost .elementor-button:hover,
.elementor .ig-btn-ghost .elementor-button:focus-visible {
    box-shadow: 0 0 26px rgba(var(--ig-glow), 0.35), inset 0 0 18px rgba(var(--ig-glow), 0.12);
    border-color: var(--ig-dore);
    transform: translateY(-2px);
}

/* Sections et grilles de cartes */
.elementor .ig-section {
    --width: 100%;
}
.elementor .ig-floors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    --width: 100%;
}
.elementor .ig-floor-card {
    border: 1px solid rgba(var(--ig-glow), 0.3);
    border-radius: 8px;
    padding: 2.2rem 1.8rem;
    background: color-mix(in srgb, var(--ig-fond-2) 55%, transparent);
    transition: box-shadow 0.6s ease, transform 0.6s ease, border-color 0.6s ease;
}
.elementor .ig-floor-card:hover {
    border-color: rgba(var(--ig-glow), 0.7);
    box-shadow: 0 0 34px rgba(var(--ig-glow), 0.25);
    transform: translateY(-4px);
}

.elementor .ig-cta-band {
    max-width: none;
    --width: 100%;
}

/* ============ BILLETTERIE (WooCommerce) ============ */
/* WooCommerce arrive avec des composants pensés pour un fond clair ; on les
   ramène sur la palette du festival. */
.woocommerce,
.wc-block-components-notice-banner {
    color: var(--ig-texte);
}
.woocommerce .page-title,
.woocommerce h1, .woocommerce h2, .woocommerce h3 {
    font-family: var(--font-display);
    color: var(--ig-dore);
}

/* Boutons : même traitement que les boutons du site vitrine. */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.wc-block-components-button {
    font-family: var(--font-body);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ig-btn-texte);
    background: linear-gradient(135deg, var(--ig-dore-clair), var(--ig-dore));
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 2rem;
    box-shadow: 0 0 24px rgba(var(--ig-glow), 0.3);
    transition: box-shadow 0.6s ease, transform 0.6s ease;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.wc-block-components-button:hover {
    color: var(--ig-btn-texte);
    background: linear-gradient(135deg, var(--ig-dore-clair), var(--ig-dore));
    box-shadow: 0 0 40px rgba(var(--ig-glow), 0.6);
    transform: translateY(-2px);
}

/* Prix et étiquettes. */
.woocommerce .price,
.woocommerce span.amount,
.wc-block-components-product-price {
    color: var(--ig-dore-clair);
    font-family: var(--font-display);
}

/* Champs de formulaire (panier, commande, compte). */
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce input[type="number"],
.woocommerce textarea,
.woocommerce select,
.wc-block-components-text-input input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(var(--ig-glow), 0.3);
    border-radius: 8px;
    color: var(--ig-texte);
    padding: 0.7rem 0.9rem;
}
.woocommerce input:focus,
.woocommerce textarea:focus,
.woocommerce select:focus {
    outline: none;
    border-color: var(--ig-dore);
    box-shadow: 0 0 0 3px rgba(var(--ig-glow), 0.18);
}

/* Encarts d'information et messages. */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
    background: rgba(255, 255, 255, 0.04);
    border-top: 3px solid var(--ig-dore);
    color: var(--ig-texte);
}

/* Tableaux (panier, commandes). */
.woocommerce table.shop_table,
.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
    border-color: rgba(var(--ig-glow), 0.22);
    color: var(--ig-texte);
}
.woocommerce table.shop_table thead th {
    color: var(--ig-dore);
    font-family: var(--font-display);
    font-weight: 400;
}

/* Fiches produit dans la grille. */
.woocommerce ul.products li.product {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(var(--ig-glow), 0.18);
    border-radius: 14px;
    padding: 1.2rem;
    transition: border-color 0.6s ease, box-shadow 0.6s ease, transform 0.6s ease;
}
.woocommerce ul.products li.product:hover {
    border-color: rgba(var(--ig-glow), 0.55);
    box-shadow: 0 0 30px rgba(var(--ig-glow), 0.2);
    transform: translateY(-3px);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-display);
    color: var(--ig-texte);
}

/* Le contenu de la boutique respire sous l'en-tête fixe. */
.ig-shop-page .entry-content,
body:not(.home) .woocommerce {
    padding-top: 2rem;
}
