/* ===== Clovis Art — Mise en page fidèle au site original ===== */

:root {
  --bg: #f6f1e7;
  --bg-soft: #efe8d8;
  --bg-deep: #e8dfca;
  --ink: #1a1816;
  --ink-soft: #4a443c;
  --muted: #8a8275;
  --hairline: #d4ccba;
  --hairline-soft: #e5dcc8;

  /* Variantes par section (proches des bgs du site original, tonalité crème) */
  --bg-bouee:   #d8dde6;  /* bleu-gris (mer) */
  --bg-monde:   #e8d5b9;  /* beige chaud (sable) */
  --bg-mexique: #b8c4a3;  /* vert sable (olive doux) */
  --bg-filiere: #c9a89a;  /* terracotta sable (rouge brique doux) */

  --blue: #2456b3;
  --red:  #cf2a2a;
  --yellow: #d8a516;
  --accent: var(--blue);

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --label-letter: 0.18em;

  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --space-7: 144px;

  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

[data-mode="dark"] {
  --bg: #14110d;
  --bg-soft: #1b1813;
  --bg-deep: #221e17;
  --ink: #f1ead8;
  --ink-soft: #b8b0a0;
  --muted: #7d7567;
  --hairline: #3b362d;
  --hairline-soft: #2a261f;
  --bg-bouee:   #1d242e;
  --bg-monde:   #2a2218;
  --bg-mexique: #1f1d1a;
  --bg-filiere: #221d14;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

/* Compense la hauteur du header fixe lors du scroll vers une ancre */
section[id],
[id="top"],
[id="about"],
[id="upcoming"],
[id="works"],
[id="bouee"],
[id="un-monde"],
[id="mexique"],
[id="ma-filiere"],
[id="contact"] {
  scroll-margin-top: 84px;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ===== Header / Nav ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--hairline-soft);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; }
.brand-text {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.brand-text small {
  display: block;
  font-size: 9px;
  letter-spacing: var(--label-letter);
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.nav { display: flex; align-items: center; gap: var(--space-4); }
.nav-world-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  margin-left: var(--space-3);
  padding-left: 0;
  background: none;
  transition: opacity .2s;
}
.nav-world-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}
.nav-world-logo:hover { opacity: 0.8; }
[data-mode="dark"] .nav-world-logo img { filter: invert(1); }
.nav a {
  font-size: 11px;
  letter-spacing: var(--label-letter);
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color .25s;
}
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--accent);
  transition: right .3s ease;
}
.nav a:hover::after { right: 0; }

.lang-switch {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px;
  letter-spacing: var(--label-letter);
  text-transform: uppercase;
  color: var(--muted);
  border-left: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  padding-left: var(--space-3);
  padding-right: var(--space-3);
  margin-left: var(--space-2);
}
.lang-switch button {
  background: none; border: none;
  padding: 4px 2px;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-current="true"] { color: var(--ink); }
.lang-switch .sep { color: var(--hairline); }

/* ===== Hero — kicker centré + bio 2-col, hauteur libre pour tout afficher ===== */
@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-kicker,
.bio-2col .video-col video,
.bio-2col h1.clovis-title,
.bio-text {
  opacity: 0;
  animation: hero-fade-in .9s cubic-bezier(.2,.6,.2,1) forwards;
  will-change: opacity, transform;
}
.bio-2col .video-col video { animation-delay: .15s; }
.hero-kicker               { animation-delay: .6s; }
.bio-2col h1.clovis-title  { animation-delay: 1.1s; }
.bio-text                  { animation-delay: 1.55s; }
@media (prefers-reduced-motion: reduce) {
  .hero-kicker,
  .bio-2col .video-col video,
  .bio-2col h1.clovis-title,
  .bio-text {
    opacity: 1;
    animation: none;
  }
}

/* ===== Stagger animations pour les sections À venir & Œuvres ===== */
[data-stagger] .fb-card,
[data-stagger].fb-card,
.bouee-banner[data-stagger] {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}
[data-stagger].in-view .fb-card,
[data-stagger].in-view.fb-card,
.bouee-banner[data-stagger].in-view {
  animation: hero-fade-in .9s cubic-bezier(.2,.6,.2,1) forwards;
}

/* À venir : ordre à rebours (carte 3 → 2 → 1) */
#upcoming.in-view .fb-cards .fb-card:nth-child(3) { animation-delay: 0s; }
#upcoming.in-view .fb-cards .fb-card:nth-child(2) { animation-delay: .35s; }
#upcoming.in-view .fb-cards .fb-card:nth-child(1) { animation-delay: .7s; }

/* Œuvres : bannière Bouée + 3 cartes — chaque élément observé indépendamment */
#works .fb-cards[data-stagger].in-view .fb-card:nth-child(1) { animation-delay: 0s; }
#works .fb-cards[data-stagger].in-view .fb-card:nth-child(2) { animation-delay: .35s; }
#works .fb-cards[data-stagger].in-view .fb-card:nth-child(3) { animation-delay: .7s; }

@media (prefers-reduced-motion: reduce) {
  [data-stagger] .fb-card,
  [data-stagger].fb-card,
  .bouee-banner[data-stagger] {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
.hero {
  background: var(--bg);
  padding: 100px var(--gutter) var(--space-3);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.hero-kicker {
  text-align: center;
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1.1;
  margin: 0 0 var(--space-7);
  padding-top: var(--space-4);
  color: var(--ink);
  flex-shrink: 0;
}

/* 2-col bio: titre Clovis + texte à gauche, vidéo à droite (40% de la largeur, ratio natif) */
.bio-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: stretch;
  flex: 1;
  min-height: 480px;
  max-width: 1380px;
  margin: 0 auto;
  width: 100%;
  padding: 0 calc(var(--gutter) * 0.5);
}
.bio-2col .text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}
.bio-2col .video-col {
  position: relative;
  background: transparent;
  overflow: visible;
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 0;
}
.bio-2col .video-col video {
  position: static;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
/* (ancien overlay vidéo supprimé — ratio natif désormais) */
.bio-2col h1.clovis-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
  color: var(--ink);
  flex-shrink: 0;
}
.bio-text {
  font-size: clamp(20px, 1.43vw, 23px);
  line-height: 1.6;
  color: var(--ink);
  text-align: justify;
  hyphens: auto;
}
.bio-text p { margin: 0 0 14px; display: block; }
.bio-text p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .hero { min-height: 0; max-height: none; padding: 90px var(--gutter) var(--space-4); }
  .bio-2col { grid-template-columns: 1fr; }
  .bio-2col .video-col { aspect-ratio: 9/12; position: relative; }
  .bio-text { column-count: 1; font-size: 15px; }
}

/* ===== Video + Feature photo ===== */
.feature-video, .feature-photo {
  padding: 0;
  margin: 0;
}
.feature-video video,
.feature-photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Full-bleed cards (à venir / index œuvres) — sans espace ===== */
.fb-cards {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: 0;
}
@media (max-width: 800px) {
  .fb-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .fb-cards { grid-template-columns: 1fr; }
}
.fb-card {
  position: relative;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  cursor: pointer;
  display: block;
}
.fb-card > img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s ease, filter .35s;
}
.fb-card .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.35) 100%);
  transition: opacity .35s ease;
}
.fb-card:hover .overlay { opacity: 0; }
.fb-card:hover > img { transform: scale(1.04); }
.fb-card .tag {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 26px);
  margin-bottom: 14px;
  color: #fff;
}
.fb-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  color: #fff;
  max-width: 14ch;
}

/* ===== Bouée — hero banner full-bleed + title overlay (fade au survol) ===== */
.bouee-banner {
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
}
.bouee-banner img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 380px;
  max-height: 720px;
  object-fit: cover;
}
.bouee-banner-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.42) 100%);
  transition: opacity .35s ease;
}
.bouee-banner:hover .bouee-banner-title { opacity: 0; }
.bouee-banner-title h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 76px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ===== Project section common ===== */
.project {
  position: relative;
}
.project-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
  text-align: left;
  color: var(--ink);
}
.project-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  text-align: justify;
  hyphens: auto;
}
.project-body p { margin: 0 0 16px; }
.project-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}
.project-actions.left { justify-content: flex-start; }

.cta-contact {
  display: inline-block;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: var(--label-letter);
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 12px 28px;
  border-radius: 999px;
  transition: background .2s, color .2s;
  background: transparent;
}
.cta-contact:hover { background: var(--ink); color: var(--bg); }

.project-logos {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.project-logos img {
  max-height: 64px;
  width: auto;
  display: block;
}

/* ===== Bouée detail — bandeau bleu-gris, titre + 2 colonnes texte ===== */
.bouee-detail {
  background: var(--bg-bouee);
  padding: var(--space-6) var(--gutter) var(--space-4);
}
.bouee-after-carousel { background: var(--bg-bouee); padding: 0; }
.bouee-after-carousel .carousel { background: var(--bg-bouee); }
.bouee-detail .container { max-width: var(--maxw); margin: 0 auto; }
.bouee-detail .project-title { color: var(--ink); }
.bouee-text-2col {
  column-count: 2;
  column-gap: var(--space-5);
  margin-top: var(--space-3);
  font-size: 16px;
  line-height: 1.65;
  text-align: justify;
  hyphens: auto;
  color: var(--ink);
}
.bouee-text-2col p { margin: 0 0 14px; break-inside: avoid; }
.bouee-detail .project-actions { justify-content: flex-end; }
@media (max-width: 800px) {
  .bouee-text-2col { column-count: 1; }
}

/* ===== Un monde / Du Mexique / Ma filière — 2-col texte + photo ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: stretch;
  padding: var(--space-6) var(--gutter);
  max-width: 1380px;
  margin: 0 auto;
}
.split.narrow-photo { grid-template-columns: 1.7fr 1fr; }
.split .text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}
.split .photo-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.split .photo-col > img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}
.split .photo-col > .carousel { width: 100%; }
.split.fill-photo .photo-col > img {
  height: 100%;
  object-fit: cover;
}
@media (max-width: 900px) {
  .split, .split.narrow-photo { grid-template-columns: 1fr; padding: var(--space-4) var(--gutter); }
}

.section-monde   {
  background: var(--bg-monde);
  height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 90px 0 30px;
}
.section-mexique { background: var(--bg-mexique); padding: 0 0 var(--space-3); }
.section-filiere {
  background: var(--bg-filiere);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 90px 0 24px;
}
.section-monde .split, .section-filiere .split { width: 100%; max-width: 1380px; margin: 0 auto; padding: 0 var(--gutter); }
.section-monde .split { align-items: center; max-height: 100%; }
.section-monde .photo-col img { max-height: calc(100vh - 180px); }
.section-monde .project-title { font-size: clamp(38px, 4.6vw, 64px); margin-bottom: var(--space-3); }
.section-monde .project-body { font-size: clamp(17px, 1.35vw, 22px); line-height: 1.6; }
.section-monde .project-body p { margin: 0 0 14px; }
.section-monde .project-actions { margin-top: var(--space-3); }

/* ===== Ma filière : titre+texte top-left, carrousel élèves bottom-left, carrousel posters spans full right column ===== */
.filiere-layout {
  flex: 1;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  column-gap: var(--space-4);
  row-gap: var(--space-3);
  padding: 0 var(--gutter);
  max-width: 1380px;
  margin: 0 auto;
  width: 100%;
}
.filiere-header {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}
.filiere-left-carousel {
  grid-column: 1;
  grid-row: 2;
  min-height: 320px;
}
.filiere-right-carousel {
  grid-column: 2;
  grid-row: 1 / 3;
  min-height: 320px;
  align-self: end;
  justify-self: end;
  width: 78%;
  max-width: 100%;
}
/* Aligne le bord droit de l'image avec le bord droit du carrousel */
.filiere-right-carousel .carousel-slide { justify-content: flex-end; }
.filiere-right-carousel .carousel-slide img { object-position: right center; }
.filiere-layout .carousel {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: transparent;
  min-height: 0;
}
.filiere-layout .carousel-viewport { flex: 1; min-height: 0; }
.filiere-layout .carousel-slide { height: 100%; background: transparent; padding: 0; }
.filiere-layout .carousel-slide img { width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.filiere-layout .carousel-nav { padding: 6px 0 0; }
.section-filiere .project-title { font-size: clamp(38px, 4.6vw, 64px); margin-bottom: var(--space-3); }
.section-filiere .project-body { font-size: clamp(17px, 1.35vw, 22px); line-height: 1.6; }
.section-filiere .project-body p { margin: 0; max-width: 78ch; }
@media (max-width: 900px) {
  .filiere-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .filiere-header { grid-column: 1; grid-row: 1; }
  .filiere-left-carousel { grid-column: 1; grid-row: 2; height: 40vh; }
  .filiere-right-carousel { grid-column: 1; grid-row: 3; height: 50vh; }
}

.filiere-bottom-row {
  padding: 14px var(--gutter) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
}
.filiere-bottom-row .cta-contact { justify-self: start; margin: 0; }
.filiere-bottom-row img.partner-logo { max-height: 48px; justify-self: end; margin: 0; }

/* ===== Big inline feature image (sunset, etc.) ===== */
.feature-image {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Carousel ===== */
.carousel {
  position: relative;
  background: transparent;
  padding: 0;
  width: 100%;
}
.bouee-after-carousel .carousel,
.bouee-after-carousel .carousel-slide { background: var(--bg-bouee); }
.section-mexique .carousel,
.section-mexique .carousel-slide { background: var(--bg-mexique); }
.carousel.carousel-compact { background: transparent; padding: 0; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.carousel.carousel-compact .carousel-viewport { flex: 1; min-height: 0; }
.carousel.carousel-compact .carousel-slide { min-height: 0; padding: 0; height: 100%; }
.carousel.carousel-compact .carousel-slide img { max-height: 100%; }
.carousel.carousel-compact .carousel-nav { padding-top: 8px; padding-left: 0; padding-right: 0; }
.carousel-viewport {
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 1.1s cubic-bezier(.4,.2,.2,1);
}
.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 78vh;
  padding: 0;
  background: transparent;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Plus de flèches : tous les carrousels sont automatiques */
.carousel-btn { display: none !important; }
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--gutter);
}
.carousel-counter {
  font-size: 11px;
  letter-spacing: var(--label-letter);
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--serif);
  min-width: 80px;
  text-align: center;
}
@media (max-width: 700px) {
  .carousel-slide { height: 50vh; padding: 8px; }
}

/* ===== Filiere — students photo below text in left col ===== */
.filiere-extra {
  margin-top: var(--space-4);
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Section divider lignes ===== */
.section-divider {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ===== Footer (un peu moins foncé) ===== */
.site-footer {
  background: #2a2520;
  color: #c5bca9;
  border-top: 1px solid #3b362d;
  padding: var(--space-2) var(--gutter) var(--space-3);
}
.site-footer .back-to-top { color: #968d7c; }
.site-footer .back-to-top:hover { color: #f1ead8; }
.site-footer .footer-col h4 { color: #f1ead8; }
.site-footer .footer-col a { color: #c5bca9; }
.site-footer .footer-col a:hover { color: var(--accent); }
.site-footer .social a { border-color: #4a443a; }
.site-footer .social a:hover { background: #f1ead8; color: #2a2520; border-color: #f1ead8; }
.site-footer .footer-base { color: #968d7c; border-top-color: #3b362d; }
.site-footer .footer-brand p { color: #c5bca9; }

/* ===== Bandeau motif maya (image répétée) ===== */
/* ===== Bandeau motif maya — silhouette terracotta sur fond vert sable, 3x plus petit ===== */
.maya-strip {
  width: 100%;
  height: 60px;
  background-color: var(--bg-mexique);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 60'><g fill='%23c9a89a'><ellipse cx='15' cy='28' rx='9' ry='2'/><ellipse cx='15' cy='28' rx='7' ry='1.2' fill='%23b8c4a3'/><path d='M10 28 C 9.4 32 7.8 38 9 60 L 11 60 C 9.5 40 12 32 12 30 Z'/><path d='M14.6 28 L 15.4 60 L 17 60 L 16 28 Z'/><path d='M20 28 C 20.6 32 22.2 38 21 60 L 19 60 C 20.5 40 18 32 18 30 Z'/></g></svg>"),
    linear-gradient(to bottom, transparent 0%, transparent 68%, #c9a89a 68%, #c9a89a 100%);
  background-repeat: repeat-x, no-repeat;
  background-position: center bottom, center bottom;
  background-size: 30px 60px, 100% 100%;
  display: block;
  line-height: 0;
}

/* ===== Transitions de section (vagues colorées) ===== */
.section-wave {
  display: block;
  width: 100%;
  height: 90px;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  line-height: 0;
}
.section-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}
@media (max-width: 700px) {
  .section-wave { height: 50px; }
}
.back-top-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s, background .2s, color .2s;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.back-top-fab.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-top-fab:hover {
  background: var(--bg-monde);
  color: var(--ink);
  border-color: var(--ink);
}

/* ===== Logos Clovis Art & Clovis World sur fond blanc (uniquement eux) ===== */
.brand img,
.nav-world-logo img,
.footer-brand img {
  background: #fff;
  border-radius: 50%;
}
.brand img { padding: 2px; }
.nav-world-logo img { padding: 2px; }
.footer-brand img { padding: 6px; }
.back-to-top {
  display: block;
  text-align: center;
  font-size: 11px;
  letter-spacing: var(--label-letter);
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px;
  margin-bottom: var(--space-4);
}
.back-to-top:hover { color: var(--ink); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-5);
  max-width: var(--maxw);
  margin: 0 auto;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  row-gap: 4px;
}
.footer-brand a { display: contents; }
.footer-brand img {
  width: 52px; height: 52px;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}
.footer-brand .footer-brand-title {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.03em;
  color: #f1ead8;
  margin: 0;
  line-height: 1;
  font-weight: 400;
  align-self: center;
}
.footer-brand .footer-brand-sub {
  grid-column: 1 / -1;
  grid-row: 2;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: #c5bca9;
  margin: 0;
  line-height: 1.2;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-self: start;
}
.footer-col h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: var(--label-letter);
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--ink-soft); font-size: 15px; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.social { display: flex; gap: 12px; margin-top: 14px; }
.social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  transition: background .2s, border-color .2s, color .2s;
}
.social a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.social svg { width: 16px; height: 16px; }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 12px;
  max-width: var(--maxw);
  margin: var(--space-4) auto 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--hairline);
  font-size: 11px;
  letter-spacing: var(--label-letter);
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 760px) {
  .nav > a { display: none; }
  .lang-switch { padding-left: var(--space-2); margin-left: 0; border-left: 0; }
}
