/* =========================================================
   LES DESSINS DE COSETTE
   Univers : coup de crayon, aquarelle, famille, humour léger
   Palette : jaune moutarde, vert olive, terracota, ivoire
   ========================================================= */

:root {
  --ink: #1f1a14;
  --ink-soft: #3d3328;
  --ink-muted: #6f6453;

  --paper: #fffdf6;
  --paper-warm: #fff7cf;
  --paper-deep: #ffefa8;

  --jaune: #f9d93a;
  --jaune-deep: #e3bd14;
  --jaune-soft: #fde98a;
  --jaune-pale: #fff6c2;
  --vert: #7a8f3f;
  --vert-soft: #b7c78c;
  --terracota: #c25a3b;
  --terracota-soft: #e2a48f;

  --font-display: 'Delius', 'Nunito', system-ui, sans-serif;
  --font-script: 'Delius', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, sans-serif;

  --container: 1200px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 800px 600px at 8% 8%, rgba(249,217,58,0.35), transparent 60%),
    radial-gradient(ellipse 600px 420px at 92% 28%, rgba(249,217,58,0.22), transparent 60%),
    radial-gradient(ellipse 700px 500px at 50% 92%, rgba(122,143,63,0.07), transparent 60%);
}

.paper-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: 0.1; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.4 0 0 0 0 0.25 0 0 0 0.15 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; height: auto; }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
a { color: var(--ink); text-decoration: none; transition: color 0.25s ease; }
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0;
}
p { margin: 0 0 1rem; }
em { font-style: normal; color: var(--terracota); }

.container { max-width: var(--container); margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
section[id] { scroll-margin-top: 76px; }

/* ---------- Éléments partagés ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-script); font-size: 1.1rem; line-height: 1; letter-spacing: 0.04em; text-transform: lowercase;
  color: var(--terracota); margin: 0 0 1.2rem;
}
.eyebrow svg { width: 36px; height: 14px; flex-shrink: 0; }

.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 0.6rem;
}
.section-sub {
  font-size: 1.1rem; color: var(--ink-muted); margin: 0;
  max-width: 560px; margin-inline: auto;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  padding: 0.9rem 1.7rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  border-radius: 100px;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
  position: relative; overflow: hidden; min-height: 48px;
}
.btn svg { width: 32px; height: 12px; }
.btn--primary { background: var(--jaune); color: var(--ink); border: 2px solid var(--jaune); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease; z-index: 0;
}
.btn--primary > * { position: relative; z-index: 1; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(31,26,20,0.2); border-color: var(--ink); color: var(--paper); }
.btn--primary:hover::before { transform: scaleX(1); }
.btn--ghost { border: 2px solid var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

/* bande rayée tout en haut, comme la carte */
.topband { height: 14px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.5rem;
  background: rgba(255,253,246,0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31,26,20,0.08);
}
.nav__logo { display: flex; align-items: center; gap: 0.6rem; }
.nav__logo img { width: 46px; height: 46px; flex-shrink: 0; transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1); }
.nav__logo:hover img { transform: rotate(-8deg) scale(1.06); }
.nav__logo-text { font-family: var(--font-display); font-size: 1.25rem; line-height: 1; }
.nav__links { display: flex; gap: 1.8rem; }
.nav__links a { font-weight: 600; font-size: 0.98rem; position: relative; padding: 0.3rem 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--terracota); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 10px; min-width: 44px; min-height: 44px; justify-content: center; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Rayures de la carte de visite ---------- */
.stripes {
  background-image: repeating-linear-gradient(90deg,
    var(--jaune) 0 34px, var(--jaune-soft) 34px 40px, #ffffff 40px 64px, var(--jaune-soft) 64px 70px);
}
.stripes--soft { opacity: 0.55; }

/* ---------- HERO ---------- */
.hero { padding: 3.5rem 0 4rem; position: relative; overflow: hidden; }
.hero__band { position: absolute; top: 0; bottom: 0; right: 0; width: 46%; z-index: -1; opacity: 0.85;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%); mask-image: linear-gradient(90deg, transparent, #000 25%); }
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  line-height: 1.08; letter-spacing: 0;
  margin-bottom: 1.4rem;
}
.hero__nowrap { white-space: nowrap; }
.hero__underline { position: relative; display: inline-block; white-space: nowrap; }
.hero__underline::after {
  content: ""; position: absolute; left: -1%; right: -1%; bottom: 2px; height: 0.32em; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 5 Q 50 1, 100 5 T 198 5' stroke='%23d4a62c' stroke-width='6' fill='none' stroke-linecap='round' opacity='0.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 100% 100%;
}
.hero__lede { font-size: 1.12rem; line-height: 1.7; color: var(--ink-soft); max-width: 520px; margin-bottom: 1.8rem; }
.hero__cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero__illu { position: relative; }
.frame {
  position: relative;
  background: #ffffff;
  border-radius: 6px;
  padding: 1.4rem;
  box-shadow: 0 1px 0 rgba(31,26,20,0.05), 0 22px 44px -14px rgba(120,90,45,0.28), 0 4px 10px rgba(31,26,20,0.05);
}
.frame--hero { aspect-ratio: 4 / 3; transform: rotate(-1.5deg); transition: transform 0.6s cubic-bezier(0.34,1.56,0.64,1); }
.frame--hero::before {
  content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 76px; height: 22px; background: rgba(120,110,95,0.25); border-radius: 2px;
}
.frame--hero:hover { transform: rotate(0deg) scale(1.02); }
.frame img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.hero__logo { position: absolute; bottom: -28px; left: -34px; width: 150px; height: 150px; border-radius: 50%;
  background: #ffffff; padding: 10px; box-shadow: 0 10px 26px -8px rgba(120,90,45,0.35); transform: rotate(-6deg); }
.hero__logo img { width: 100%; height: 100%; }

/* ---------- UNIVERS ---------- */
.universes { padding: 4.5rem 0; position: relative; }
.universes--striped::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.75;
  background-image: repeating-linear-gradient(90deg, var(--jaune) 0 34px, var(--jaune-soft) 34px 40px, #ffffff 40px 64px, var(--jaune-soft) 64px 70px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); }
.universes--striped .univers-card { background: #ffffff; }
.universes--striped .section-sub { color: var(--ink-soft); }
.universes--striped .section-head { background: rgba(255,255,255,0.94); width: fit-content; max-width: 100%; margin-inline: auto; padding: 1.2rem 2rem; border-radius: 14px; box-shadow: 0 10px 30px -14px rgba(120,90,45,0.3); }
.universes__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.univers-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 2rem 1.4rem 1.6rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
  border: 2px solid transparent;
}
.univers-card:nth-child(1) { transform: rotate(-0.8deg); }
.univers-card:nth-child(2) { transform: rotate(0.6deg); }
.univers-card:nth-child(3) { transform: rotate(-0.4deg); }
.univers-card:nth-child(4) { transform: rotate(0.8deg); }
.univers-card:hover { transform: rotate(0deg) translateY(-6px); box-shadow: 0 20px 40px -12px rgba(120,90,45,0.3); border-color: var(--jaune); }
.univers-card__icon { width: 74px; height: 74px; margin-bottom: 1rem; }
.univers-card__name { font-size: 1.35rem; margin-bottom: 0.45rem; }
.univers-card__desc { font-size: 0.97rem; color: var(--ink-soft); margin: 0 0 1rem; flex: 1; }
.univers-card__link { font-weight: 700; color: var(--terracota); font-size: 0.95rem; }

/* ---------- GALERIE ---------- */
.gallery-section { padding: 4.5rem 0; }
.filters { display: flex; justify-content: center; gap: 0.55rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.filter {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.05rem; min-height: 40px;
  border: 2px solid rgba(31,26,20,0.14); border-radius: 100px;
  font-weight: 600; font-size: 0.95rem;
  transition: all 0.25s ease;
}
.filter__dot { width: 10px; height: 10px; border-radius: 50%; }
.filter:hover { border-color: var(--ink); transform: translateY(-2px); }
.filter.is-active { background: var(--jaune); color: var(--ink); border-color: var(--jaune); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.6rem; }
.gallery__item { transition: opacity 0.3s ease; }
.gallery__item.is-hidden { display: none; }
.gallery__frame {
  position: relative; aspect-ratio: 1 / 1; width: 100%;
  background: #ffffff; padding: 1.1rem; overflow: hidden;
  border-radius: 5px; cursor: zoom-in; text-align: left;
  box-shadow: 0 1px 0 rgba(31,26,20,0.05), 0 12px 30px -10px rgba(120,90,45,0.22), 0 3px 6px rgba(31,26,20,0.04);
  transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease;
}
.gallery__item:nth-child(3n+1) .gallery__frame { transform: rotate(-1deg); }
.gallery__item:nth-child(3n+2) .gallery__frame { transform: rotate(0.7deg); }
.gallery__item:nth-child(3n+3) .gallery__frame { transform: rotate(-0.3deg); }
.gallery__frame:hover { transform: rotate(0deg) translateY(-6px); box-shadow: 0 1px 0 rgba(31,26,20,0.05), 0 24px 46px -14px rgba(120,90,45,0.35); }
.gallery__frame img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery__frame--soon {
  cursor: default; opacity: 0.75;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  border: 2px dashed rgba(31,26,20,0.18);
}
.gallery__frame--soon:hover { transform: none; }
.gallery__frame--soon svg { width: 72px; height: 72px; }
.gallery__frame--soon p { font-family: var(--font-script); font-size: 1.1rem; color: var(--ink-muted); margin: 0.8rem 0 0; }
.gallery__badge {
  position: absolute; top: 0.8rem; right: 0.8rem; z-index: 1;
  background: var(--jaune); color: var(--ink); box-shadow: 0 2px 8px rgba(31,26,20,0.15);
  padding: 0.2rem 0.75rem; border-radius: 100px;
  font-family: var(--font-script); font-size: 0.9rem;
}
.gallery__info { display: flex; align-items: baseline; gap: 0.7rem; margin-top: 0.9rem; padding: 0 0.2rem; }
.gallery__num { font-family: var(--font-script); font-size: 1.05rem; color: var(--jaune-deep); min-width: 1.6rem; }
.gallery__info h3 { font-size: 1.1rem; margin-bottom: 0.15rem; }
.gallery__info p { margin: 0; font-size: 0.92rem; color: var(--ink-muted); }
.price { color: var(--ink); font-weight: 700; }

/* ---------- TARIFS ---------- */
.pricing { padding: 4.5rem 0; background: var(--jaune-pale); border-top: 1px solid rgba(212,166,44,0.25); border-bottom: 1px solid rgba(212,166,44,0.25); }
.pricing .section-sub { color: var(--ink-soft); }
.pricing__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.price-card {
  background: #ffffff; border-radius: var(--radius); padding: 0 1.6rem 1.6rem; overflow: hidden;
  border: 1px solid rgba(31,26,20,0.08);
}
.price-card__band { height: 14px; margin: 0 -1.6rem 1.4rem; }
.price-card h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.price-card ul { list-style: none; padding: 0; margin: 0; }
.price-card li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.55rem 0; border-bottom: 1px dashed rgba(31,26,20,0.14);
  font-size: 0.98rem;
}
.price-card li:last-child { border-bottom: none; }
.price-card li span:last-child { font-weight: 700; white-space: nowrap; }
.price-card li.soon { color: var(--ink-muted); }
.price-card li.soon span:last-child { font-weight: 500; }
.pricing__note {
  margin: 1.6rem auto 0; background: #ffffff; padding: 0.9rem 1.2rem; border-radius: 10px; text-align: center; max-width: 620px;
  font-size: 0.98rem; color: var(--ink-soft);
}

/* ---------- COSETTE ---------- */
.about { padding: 4.5rem 0; }
.about__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; align-items: center; }
.about__inner > div:last-child { position: relative; }
.about__mat { position: absolute; inset: 8% -6% -6% 10%; border-radius: 12px; opacity: 0.55; transform: rotate(-2deg); z-index: 0; }
.frame--about { position: relative; z-index: 1; }
.about__title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1.2rem; }
.about__lede { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.5; margin-bottom: 1.2rem; }
.about__text p { color: var(--ink-soft); }
.about__quote {
  margin-top: 1.4rem; padding: 1rem 1.2rem;
  background: var(--jaune-soft); border-left: 4px solid var(--jaune); border-radius: 0 8px 8px 0;
  font-family: var(--font-script); font-size: 1.25rem; line-height: 1.35; color: var(--ink);
}
.frame--about { aspect-ratio: 3 / 4; transform: rotate(1.2deg); max-width: 420px; margin: 0 auto; }

/* ---------- CONTACT ---------- */
.contact { padding: 4.5rem 0 3rem; }
.contact__inner { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 3.5rem; align-items: start; }
.contact__title { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1.2rem; }
.contact__lede { font-size: 1.08rem; color: var(--ink-soft); margin-bottom: 1.8rem; max-width: 440px; }
.contact__steps { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 0.6rem; max-width: 440px; }
.contact__steps li { display: flex; gap: 0.8rem; align-items: baseline; font-size: 0.98rem; color: var(--ink-soft); }
.contact__steps b { font-family: var(--font-script); font-size: 1rem; color: var(--ink); line-height: 1; background: var(--jaune); width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

.mailbox { position: relative; display: block; width: 100%; max-width: 280px; transition: transform 0.4s ease; }
.mailbox:hover { transform: translateY(-4px); }
.mailbox svg { width: 100%; height: auto; overflow: visible; }
.mailbox__box { transform-origin: 150px 135px; }
.mailbox.is-shaking .mailbox__box { animation: mb-shake 0.5s ease-in-out; }
@keyframes mb-shake { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }
.mailbox__flag { transform-origin: 252px 95px; transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1); }
.mailbox.is-open .mailbox__flag { transform: rotate(-70deg); }
.mailbox__letter { transform-origin: 150px 75px; transform: translateY(50px) scale(0.8); opacity: 0; transition: transform 0.6s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s ease; }
.mailbox.is-open .mailbox__letter { transform: translateY(-30px) scale(1) rotate(-5deg); opacity: 1; }
.mailbox__hint { display: block; font-family: var(--font-script); font-size: 1rem; color: var(--terracota); text-align: center; margin-top: 0.4rem; }

.postcard {
  background: #ffffff; padding: 1.8rem; border-radius: 8px;
  box-shadow: 0 1px 0 rgba(31,26,20,0.05), 0 24px 48px -16px rgba(120,90,45,0.3);
  transform: rotate(-0.5deg); transition: transform 0.5s ease;
}
.postcard:hover, .postcard:focus-within { transform: rotate(0deg); }
.postcard__header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 1rem; margin-bottom: 1.3rem; border-bottom: 2px dashed rgba(31,26,20,0.14); }
.postcard__stamp { width: 66px; height: 66px; transform: rotate(4deg); }
.postcard__address { text-align: right; }
.postcard__to { font-family: var(--font-script); font-size: 0.9rem; color: var(--ink-muted); margin: 0 0 0.1rem; }
.postcard__who { font-family: var(--font-script); font-size: 1.15rem; line-height: 1.25; margin: 0; }
.postcard__who span { font-size: 0.9rem; color: var(--ink-soft); }

.field { display: block; margin-bottom: 1.1rem; }
.field__label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.35rem; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: #fffdf7; border: 2px solid rgba(31,26,20,0.14); border-radius: 8px;
  padding: 0.7rem 0.85rem; min-height: 46px; transition: border-color 0.25s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--terracota); }
.field input::placeholder, .field textarea::placeholder { color: #9a8f7c; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 0.5rem 0.8rem; border: 2px solid rgba(31,26,20,0.14); border-radius: 100px;
  font-weight: 600; font-size: 0.92rem; text-align: center; background: #fffdf7;
  transition: all 0.25s ease;
}
.choice:hover span { border-color: var(--ink); }
.choice input:checked + span { background: var(--jaune); color: var(--ink); border-color: var(--jaune); }
.choice input:focus-visible + span { outline: 3px solid var(--jaune); outline-offset: 2px; }
.postcard__submit { width: 100%; margin-top: 0.4rem; }
.postcard__direct { text-align: center; margin: 1rem 0 0; font-size: 0.95rem; color: var(--ink-muted); }
.postcard__direct a { color: var(--terracota); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.postcard__success { text-align: center; padding: 1rem 0 0.5rem; }
.postcard__success svg { width: 80px; height: 80px; margin: 0 auto 0.8rem; }
.postcard__success h3 { font-size: 1.8rem; color: var(--vert); margin-bottom: 0.5rem; }
.postcard__success p { color: var(--ink-soft); }
.postcard__success .btn { margin-top: 0.6rem; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(31,26,20,0.93);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem; z-index: 1000;
  opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__close {
  position: absolute; top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%;
  color: var(--paper); background: rgba(248,242,228,0.12);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease; z-index: 2;
}
.lightbox__close:hover { background: rgba(248,242,228,0.22); transform: rotate(90deg); }
.lightbox__close svg { width: 24px; height: 24px; }
.lightbox__content { max-width: min(860px, 94vw); text-align: center; transform: scale(0.92); transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1); }
.lightbox.is-open .lightbox__content { transform: scale(1); }
.lightbox__content img { background: var(--paper); padding: 1.2rem; max-height: 76vh; max-width: 100%; width: auto; margin: 0 auto; border-radius: 4px; box-shadow: 0 30px 60px rgba(0,0,0,0.4); }
.lightbox__caption { color: var(--paper); margin-top: 1rem; font-size: 1.05rem; }
.lightbox__caption strong { font-family: var(--font-display); font-size: 1.25rem; display: block; }

/* ---------- FOOTER ---------- */
.footer { margin-top: 2rem; padding: 0 0 1.8rem; background: var(--jaune-pale); border-top: 1px solid rgba(31,26,20,0.08); }
.footer__stripes { height: 18px; }
.footer > .container { padding-top: 3rem; }
.footer__logo-img { width: 110px; height: 110px; margin-bottom: 0.6rem; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.2rem; }
.footer__logo { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 0.2rem; }
.footer__tagline { color: var(--ink-muted); margin: 0; font-size: 0.98rem; }
.footer__label { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 0.8rem; }
.footer__col a, .footer__col span { display: block; padding: 0.25rem 0; }
.footer__col a:hover { color: var(--terracota); }
.footer__bottom { margin-top: 2.4rem; text-align: center; font-size: 0.9rem; color: var(--ink-muted); }
.footer__bottom p { margin: 0.2rem 0; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94); transition-delay: var(--delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav__links {
    position: fixed; top: 62px; right: 0; bottom: 0; width: min(300px, 82vw);
    background: var(--paper); box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    flex-direction: column; padding: 2.5rem 2rem; gap: 1.6rem;
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.35s ease, visibility 0s linear 0.35s;
  }
  .nav__links.is-open { transform: translateX(0); visibility: visible; transition: transform 0.35s ease, visibility 0s; }
  .nav__links a { font-size: 1.15rem; }
  .nav__burger { display: flex; }

  .hero { padding: 2.2rem 0 3rem; }
  .hero__inner, .about__inner, .contact__inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero__illu { max-width: 460px; margin: 0 auto; width: 100%; }
  .universes__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; }
  .pricing__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .postcard { padding: 1.3rem; }
  .universes, .gallery-section, .pricing, .about, .contact { padding: 3.2rem 0; }
  .frame--about { max-width: 340px; }
}

@media (max-width: 560px) {
  .nav { padding: 0.6rem 1rem; }
  .nav__logo-text { font-size: 1.05rem; }
  .nav__logo img { width: 40px; height: 40px; }
  .container { padding-left: 1.1rem; padding-right: 1.1rem; }
  .gallery { grid-template-columns: 1fr; }
  .universes__grid { grid-template-columns: 1fr; }
  .univers-card { transform: none !important; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__band { width: 100%; opacity: 0.55; -webkit-mask-image: linear-gradient(180deg, transparent 40%, #000); mask-image: linear-gradient(180deg, transparent 40%, #000); }
  .hero__logo { width: 96px; height: 96px; bottom: -18px; left: -8px; }
  .choice-grid { grid-template-columns: 1fr; }
  .postcard__header { flex-direction: column; gap: 0.6rem; }
  .postcard__address { text-align: left; }
  .lightbox { padding: 0.8rem; }
  .lightbox__content img { padding: 0.6rem; max-height: 70vh; }
  .filter { padding: 0.45rem 0.85rem; font-size: 0.88rem; }
}

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