:root {
  --navy: #1e4673;
  --navy-dark: #132f4f;
  --blue: #86a0d2;
  --blue-light: #dfe7f6;
  --cream: #f7f9fd;
  --text: #22324a;
  --white: #fff;
  --radius: 22px;
  --shadow: 0 12px 34px rgba(30, 70, 115, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: 'Lilita One', 'Nunito', sans-serif; font-weight: 400; color: var(--navy); line-height: 1.15; margin: 0 0 .6em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
a { color: var(--navy); }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.narrow { max-width: 720px; margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .8rem; color: var(--blue); margin-bottom: .6em; }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--navy); color: var(--white); text-decoration: none;
  font: 800 1rem 'Nunito', sans-serif; padding: .9em 1.7em; border-radius: 999px;
  box-shadow: 0 6px 0 var(--navy-dark); transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--navy-dark); background: #24548a; }
.btn:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--navy-dark); }
.btn--ghost { background: var(--white); color: var(--navy); box-shadow: 0 6px 0 var(--blue); }
.btn--ghost:hover { background: var(--white); box-shadow: 0 9px 0 var(--blue); }
.btn--small { padding: .55em 1.2em; font-size: .9rem; box-shadow: 0 4px 0 var(--navy-dark); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px max(16px, calc((100% - 1140px) / 2));
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(30, 70, 115, .1); }
.nav__logo img { height: 52px; width: auto; }
.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__links a:not(.btn) { text-decoration: none; font-weight: 800; color: var(--navy); position: relative; }
.nav__links a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: -4px; height: 3px; width: 0; background: var(--blue); border-radius: 3px; transition: width .25s; }
.nav__links a:not(.btn):hover::after { width: 100%; }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 3px; transition: .3s; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 120px max(16px, calc((100% - 1140px) / 2)) 140px;
  background: radial-gradient(circle at 80% 30%, #eef3fb 0, var(--blue-light) 45%, #c9d6ee 100%);
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; max-width: 600px; }
.hero__kicker { font-weight: 800; color: var(--navy); background: var(--white); display: inline-block; padding: .35em 1em; border-radius: 999px; font-size: .9rem; box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); margin-top: .3em; }
.splash-text { color: var(--blue); position: relative; white-space: nowrap; }
.splash-text::after { content: ''; position: absolute; left: 0; right: 0; bottom: .05em; height: .18em; background: var(--navy); opacity: .15; border-radius: 99px; transform: scaleX(0); transform-origin: left; animation: underline 1s .6s forwards ease-out; }
@keyframes underline { to { transform: scaleX(1); } }
.hero__lead { font-size: 1.2rem; max-width: 540px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 1.6em; }
.hero__logo { position: absolute; right: max(16px, calc((100% - 1140px) / 2)); top: 50%; width: min(34vw, 460px); transform: translateY(-50%); z-index: 1; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 20px 30px rgba(30, 70, 115, .2)); }
@keyframes float { 50% { transform: translateY(calc(-50% - 18px)) rotate(-2deg); } }

.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 90px; fill: var(--white); }

/* Marquee */
.marquee { background: var(--navy); color: var(--white); overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg); margin: -10px -20px 0; position: relative; z-index: 3; }
.marquee__track { display: flex; gap: 28px; width: max-content; animation: marquee 30s linear infinite; font-family: 'Lilita One', sans-serif; font-size: 1.6rem; align-items: center; }
.marquee__track i { color: var(--blue); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 110px 0; position: relative; }
.section--tint { background: var(--cream); }
.section--navy { background: var(--navy); color: #dbe5f5; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 50px; }
.card { background: var(--white); border-radius: var(--radius); padding: 32px 26px; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; border-top: 6px solid var(--blue); }
.card:nth-child(even) { border-top-color: var(--navy); }
.card:hover { transform: translateY(-10px) rotate(-1deg); box-shadow: 0 22px 44px rgba(30, 70, 115, .2); }
.card__icon {
  position: relative; width: 84px; height: 84px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--blue-light); border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%;
  transition: border-radius .6s, transform .4s;
}
.card__icon::before, .card__icon::after { content: ''; position: absolute; border-radius: 50%; background: var(--blue); transition: transform .4s; }
.card__icon::before { width: 10px; height: 10px; top: -4px; right: 2px; }
.card__icon::after { width: 6px; height: 6px; top: 8px; right: -8px; opacity: .7; }
.card__icon svg { width: 52px; height: 52px; overflow: visible; }
.card__icon .fill { fill: var(--blue); opacity: .55; transform: translate(3px, 3px); }
.card__icon .line { fill: none; stroke: var(--navy); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.card__icon .dot { fill: var(--navy); }
.card__icon .dash { stroke-dasharray: 2 7; }
.card:hover .card__icon { border-radius: 45% 55% 42% 58% / 58% 44% 56% 42%; transform: rotate(-6deg) scale(1.08); }
.card:hover .card__icon::before { transform: translate(4px, -6px) scale(1.2); }
.card:hover .card__icon::after { transform: translate(6px, -3px); }
.card:nth-child(even) .card__icon .fill { fill: var(--navy); opacity: .18; }
.card p { font-size: .97rem; margin: 0; }

/* Arts */
.section--arts { background: var(--white); overflow: hidden; }
.section--arts::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: var(--blue-light); top: -160px; left: -160px; opacity: .6; }
.arts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; position: relative; }
.art { position: relative; background: var(--cream); border-radius: var(--radius); padding: 30px 28px; overflow: hidden; transition: background .35s, transform .35s, color .35s; }
.art::after { content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: var(--blue); opacity: .12; right: -50px; bottom: -60px; transition: transform .5s; }
.art:hover { background: var(--navy); color: #dbe5f5; transform: translateY(-8px); }
.art:hover h3 { color: var(--white); }
.art:hover::after { transform: scale(2.4); opacity: .2; }
.art p { margin: 0; font-size: .97rem; position: relative; z-index: 1; }
.art h3 { position: relative; z-index: 1; transition: color .35s; }
.art__icon { width: 64px; height: 64px; margin-bottom: 16px; position: relative; z-index: 1; transition: transform .4s; }
.art:hover .art__icon { transform: rotate(-8deg) scale(1.1); }
.art__icon svg { width: 100%; height: 100%; overflow: visible; }
.art .fill { fill: var(--blue); opacity: .5; transform: translate(3px, 3px); }
.art .line { fill: none; stroke: var(--navy); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s; }
.art .dot { fill: var(--navy); transition: fill .35s; }
.art:hover .line { stroke: var(--white); }
.art:hover .dot { fill: var(--blue); }
.artist-call { display: flex; gap: 30px; align-items: center; justify-content: space-between; margin-top: 40px; padding: 36px 40px; border-radius: var(--radius); background: linear-gradient(120deg, var(--navy), #2c5f96); color: #dbe5f5; }
.artist-call h3 { color: var(--white); font-size: 1.8rem; }
.artist-call p { margin: 0; max-width: 620px; }

/* Quote */
.quote { background: linear-gradient(120deg, var(--blue), #9fb4dd); padding: 90px 16px; text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 900px; font-family: 'Lilita One', sans-serif; font-size: clamp(1.7rem, 3.6vw, 2.7rem); color: var(--white); line-height: 1.3; text-shadow: 0 3px 0 rgba(30, 70, 115, .25); }

/* Exposition à venir */
.expo__head { text-align: center; padding: 44px 24px 0; }
.expo__head h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: .3em 0 0; }
.expo__body { max-width: 760px; margin: 0 auto; text-align: center; }
.expo__body .expo__meta { justify-content: center; grid-template-columns: auto auto; }
.expo .expo__visual { width: 100%; max-width: 780px; margin: 0 auto; background: none; }
.expo { background: linear-gradient(180deg, #eef3fb, var(--white) 80%) !important; display: grid; grid-template-columns: 1fr; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.expo__visual { position: relative; margin: 0; padding: 36px 36px 30px; background: linear-gradient(160deg, #eef3fb, var(--blue-light)); display: flex; flex-direction: column; justify-content: center; }
.expo__visual::before { content: ''; position: absolute; inset: 52px 22px 50px 52px; background: var(--blue); opacity: .55; border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%; transition: border-radius .8s, transform .8s; }
.expo__visual::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--navy); top: 26px; right: 30px; box-shadow: 22px 18px 0 -4px var(--blue); }
.expo__frame { position: relative; border-radius: 34px; overflow: hidden; border: 5px solid var(--navy); box-shadow: 10px 10px 0 var(--navy); aspect-ratio: 4 / 3.4; transform: rotate(-1.5deg); transition: transform .5s; }
.expo__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform .8s; }
.expo:hover .expo__frame { transform: rotate(0deg); }
.expo:hover .expo__frame img { transform: scale(1.05); }
.expo:hover .expo__visual::before { border-radius: 45% 55% 42% 58% / 58% 44% 56% 42%; transform: rotate(4deg); }
.expo__visual figcaption { position: relative; margin-top: 18px; font-size: .85rem; font-weight: 700; color: var(--navy); text-align: center; }
.expo__body { padding: 44px 44px 40px; }
.expo__tag { display: inline-block; background: var(--navy); color: var(--white); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; padding: .35em 1em; border-radius: 99px; }
.expo__meta { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 6px; }
.expo__meta li { background: var(--cream); border-radius: 12px; padding: .5em .9em; }

/* Expositions passées */
.past { margin-top: 56px; }
.past__title { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 10px; background: var(--navy); color: var(--white); padding: .35em 1em; border-radius: 999px; font-size: 1.3rem; }
.past__title span { font-family: 'Nunito', sans-serif; font-weight: 700; font-size: .9rem; color: var(--blue); }
.past__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); grid-auto-rows: 260px; grid-auto-flow: dense; gap: 14px; margin-top: 18px; }
.past__item { position: relative; display: block; border-radius: 22px; overflow: hidden; background: var(--blue-light); }
.past__item--wide { grid-column: span 2; }
.past__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.past__item::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0 var(--navy); transition: box-shadow .3s; }
.past__item:hover img { transform: scale(1.07); }
.past__item:hover::after { box-shadow: inset 0 0 0 5px var(--navy); }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(19, 47, 79, .94); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: min(1100px, 88vw); max-height: 80vh; border-radius: 22px; border: 5px solid var(--white); }
.lightbox figcaption { color: var(--white); font-weight: 700; margin-top: 12px; }
.lightbox button { position: absolute; background: var(--white); color: var(--navy); border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; transition: transform .2s; }
.lightbox button:hover { transform: scale(1.1); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 20px; top: 50%; translate: 0 -50%; }

/* Route */
.route { position: relative; margin: 60px 0 50px; }
.route__line { position: absolute; inset: 0; width: 100%; height: 120px; }
.route__line path { fill: none; stroke: var(--blue); stroke-width: 5; stroke-dasharray: 14 12; stroke-linecap: round; animation: dash 20s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }
.route__stops { list-style: none; padding: 0; margin: 0; display: flex; justify-content: space-between; position: relative; height: 120px; align-items: center; }
.route__stops li { display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0; transform: scale(.4); transition: .5s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i) * .1s); }
.route.visible .route__stops li { opacity: 1; transform: none; }
.route__stops li:nth-child(odd) { flex-direction: column-reverse; }
.dot { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); border: 5px solid var(--white); box-shadow: 0 0 0 4px var(--blue); transition: transform .25s; }
.route__stops li:hover .dot { transform: scale(1.4); background: var(--blue); }
.name { font-weight: 800; color: var(--navy); font-size: .9rem; white-space: nowrap; background: var(--white); padding: 2px 10px; border-radius: 99px; }
.next { display: flex; gap: 30px; align-items: center; justify-content: space-between; background: var(--blue-light); border-radius: var(--radius); padding: 36px 40px; }
.next p { margin: 0; }

/* Audience */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 50px; }
.big { font-family: 'Lilita One', sans-serif; font-size: 4rem; color: var(--blue); line-height: 1; display: block; margin-bottom: 10px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 50px; }
.member { text-align: center; background: var(--cream); border-radius: var(--radius); padding: 36px 26px; transition: transform .3s; }
.member:hover { transform: translateY(-6px); }
.member__avatar { width: 110px; height: 110px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-family: 'Lilita One', sans-serif; font-size: 2.4rem; color: var(--white); background: linear-gradient(135deg, var(--blue), var(--navy)); box-shadow: 0 0 0 8px var(--white), var(--shadow); }
.member h3 { margin-bottom: .2em; }
.member__place { font-weight: 700; color: var(--blue); }
.member details { text-align: left; margin-top: 10px; }
.member summary { cursor: pointer; font-weight: 800; color: var(--navy); text-align: center; list-style: none; padding: .5em; border-radius: 99px; background: var(--white); }
.member summary::-webkit-details-marker { display: none; }
.member summary::after { content: ' +'; }
.member details[open] summary::after { content: ' −'; }
.member ul { padding-left: 1.1em; font-size: .9rem; margin: 14px 0 0; }
.member li { margin-bottom: 6px; }

.godparents { margin-top: 60px; text-align: center; }
.godparents ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.godparents li { background: var(--navy); color: var(--white); font-weight: 800; padding: .5em 1.2em; border-radius: 99px; transition: transform .2s, background .2s; }
.godparents li:hover { transform: rotate(-3deg) scale(1.06); background: var(--blue); }

/* Form */
.form { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 800; color: var(--navy); font-size: .92rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--text); border: 2px solid var(--blue-light); border-radius: 14px; padding: .75em 1em; background: var(--cream); transition: border-color .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: var(--white); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 1em 1.2em; border-radius: 14px; font-weight: 700; }
.alert--ok { background: #dff3e6; color: #1d6b3a; }
.alert--err { background: #fbe1e1; color: #8a2424; }

/* Footer */
.footer { position: relative; background: var(--navy-dark); color: #b9c8e2; padding: 120px 0 40px; text-align: center; }
.wave--top { top: -1px; bottom: auto; fill: var(--cream); }
.footer__logo { width: 180px; margin: 0 auto 20px; background: var(--white); padding: 14px; border-radius: 18px; }
.small { font-size: .85rem; opacity: .7; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .team .reveal:nth-child(2), .audience .reveal:nth-child(2) { transition-delay: .12s; }
.cards .reveal:nth-child(3), .team .reveal:nth-child(3), .audience .reveal:nth-child(3) { transition-delay: .24s; }
.cards .reveal:nth-child(4) { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .route__stops li { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1200px) {
  .hero__logo { opacity: .15; width: 70vw; right: -10vw; }
}
@media (max-width: 1000px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .nav__burger { display: block; }
  .nav__links { position: fixed; inset: 76px 16px auto; flex-direction: column; background: var(--white); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); transform: translateY(-20px); opacity: 0; pointer-events: none; transition: .3s; }
  .nav.open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav.open { background: var(--white); }
  .nav.open .nav__burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.open .nav__burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .split, .audience, .team, .form__row { grid-template-columns: 1fr; gap: 30px; }
  /* Accueil mobile : logo net au-dessus du texte, tout centré */
  .hero { min-height: auto; flex-direction: column; justify-content: flex-start; text-align: center; padding: 96px 16px 110px; gap: 8px; }
  .hero__logo { position: relative; order: -1; top: auto; right: auto; width: min(68vw, 280px); opacity: 1; transform: none; animation: float-m 6s ease-in-out infinite; margin: 0 auto 14px; }
  .nav__logo { transition: opacity .3s; }
  .nav:not(.scrolled):not(.open) .nav__logo { opacity: 0; pointer-events: none; }
  @keyframes float-m { 50% { transform: translateY(-10px) rotate(-2deg); } }
  .hero__inner { max-width: none; }
  .hero__kicker { font-size: .78rem; padding: .4em .9em; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3rem); margin-top: .4em; }
  .hero__lead { font-size: 1.05rem; margin-inline: auto; }
  .hero__cta { justify-content: center; flex-direction: column; align-items: stretch; max-width: 300px; margin-inline: auto; gap: 18px; }
  .hero__cta .btn { text-align: center; }
  .marquee { margin: -10px -10px 0; }
  .marquee__track { font-size: 1.25rem; }
  .section { padding: 80px 0; }
  .arts { grid-template-columns: 1fr 1fr; }
  .expo__body { padding: 28px; }
  .expo__body .expo__meta { grid-template-columns: 1fr; }
  .artist-call { flex-direction: column; align-items: flex-start; padding: 28px; }
  .next { flex-direction: column; align-items: flex-start; padding: 28px; }
  .route { margin: 40px 0; }
  .route__line { display: none; }
  .route__stops { flex-direction: column; height: auto; gap: 14px; align-items: flex-start; padding-left: 12px; border-left: 4px dashed var(--blue); margin-left: 12px; }
  .route__stops li, .route__stops li:nth-child(odd) { flex-direction: row; margin-left: -27px; }
}
@media (max-width: 560px) {
  .cards, .arts { grid-template-columns: 1fr; }
  .past__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .form { padding: 24px; }
}
