:root {
  --bg: #FCFAF7;
  --ink: #4A372F;
  --ink-soft: #5D514B;
  --accent: #D8A68F;
  --sand: #E8D9C8;
  --panel: #4A372F;
  --panel-text: #FCFAF7;
  --rose: #C79FA8;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  font-family: 'Manrope', sans-serif;
  overflow-x: clip;
}

/* ===== Grain — texture filmique subtile sur tout le site ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

a { color: inherit; text-decoration: none; }

/* ===== Bouton retour en haut ===== */
.scroll-top {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(74, 55, 47, 0.15);
  background: var(--bg);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 500;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  box-shadow: 0 12px 30px -12px rgba(74, 55, 47, 0.4);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
              background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: translateY(-3px);
}
@media (prefers-reduced-motion: reduce) {
  .scroll-top { transition: opacity 0.2s ease; }
}

.page {
  min-height: 100vh;
}

/* ====================================
   PAGE A PROPOS
   ==================================== */
.about-page {
  max-width: 72rem;
  margin: 0 auto;
  padding: 8rem 1.5rem 6rem;
}

.about-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: clamp(4rem, 10vw, 7rem);
}
@media (min-width: 800px) {
  .about-hero {
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: 4.5rem;
  }
}

.about-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1.75rem;
  box-shadow: 0 30px 60px -25px rgba(74, 55, 47, 0.35);
}

.about-intro .eyebrow {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.about-intro h1 {
  margin-top: 1rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  color: var(--ink);
}
.about-intro h1 .accent-word {
  color: var(--accent);
}
.about-intro .about-lead {
  margin-top: 1.4rem;
  max-width: 34rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  line-height: 1.75;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.about-sections {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 7vw, 4.5rem);
}

.about-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 700px) {
  .about-section {
    grid-template-columns: 6rem 1fr;
    gap: 2rem;
  }
}

.about-num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--accent);
}

.about-section h2 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--ink);
  margin-bottom: 1rem;
}
.about-section p {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 40rem;
}
.about-section p + p {
  margin-top: 1rem;
}
.about-section p a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.about-skills {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.about-skill-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}
@media (min-width: 700px) {
  .about-skill-group {
    grid-template-columns: 10rem 1fr;
    align-items: baseline;
  }
}
.about-skill-label {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.about-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}
.about-skill-tags li {
  background: var(--sand);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

.about-closing {
  font-size: 1.1rem !important;
  color: var(--ink) !important;
}
.about-section .btn {
  --r: -2deg;
  margin-top: 1.8rem;
}

/* ====================================
   PAGE REALISATIONS
   ==================================== */
.realisations-page {
  max-width: 72rem;
  margin: 0 auto;
  padding: 8rem 1.5rem 6rem;
}

.realisations-header {
  max-width: 38rem;
  margin-bottom: clamp(3rem, 8vw, 5rem);
}
.realisations-header .eyebrow {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.realisations-header p {
  margin-top: 1.2rem;
  font-family: 'Manrope', sans-serif;
  line-height: 1.75;
  color: var(--ink-soft);
  font-size: calc(1.05rem - 2px);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 1rem;
}
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .project-tile:nth-child(1) { grid-column: span 2; }
}
@media (max-width: 560px) {
  .projects-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .project-tile { grid-column: span 1 !important; }
}

/* Vignette pleine image, tag + titre incrustés en bas ; le détail s'ouvre dans la modale */
.project-tile {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-radius: 1rem;
  overflow: hidden;
  isolation: isolate;
  z-index: 1000;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.project-tile:hover,
.project-tile:focus-visible {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 24px 60px -20px rgba(74, 55, 47, 0.5);
}
.project-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.project-tile-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
}
.project-tile-visual img {
  max-width: 55%;
  max-height: 55%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.project-tile:hover .project-tile-visual img,
.project-tile:focus-visible .project-tile-visual img {
  transform: scale(1.06);
}


.project-tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1.2rem 1.4rem;
  transition: transform 0.45s var(--ease);
}
.project-tile:hover .project-tile-overlay,
.project-tile:focus-visible .project-tile-overlay {
  transform: translateY(-4px);
}
.project-tile-title {
  font-family: 'Manrope', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--panel-text);
  transition: color 0.3s var(--ease);
}
.project-tile:hover .project-tile-title,
.project-tile:focus-visible .project-tile-title {
  color: var(--accent);
}
.project-tile-cta {
  display: block;
  margin-bottom: 0.25rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
}

/* Fond clair (Demacia) : texte foncé, pas de gradient sombre nécessaire */
.project-tile--light .project-tile-title {
  color: var(--ink);
}
.project-tile--light:hover .project-tile-title,
.project-tile--light:focus-visible .project-tile-title {
  color: var(--accent);
}
.project-tile--light .project-tile-cta {
  color: var(--ink-soft);
}

.project-tag {
  display: inline-block;
  background: var(--sand);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.project-soon {
  display: inline-block;
  background: var(--sand);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

/* ====================================
   MODALE PROJET — popup fluide
   ==================================== */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.project-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(74, 55, 47, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* La modale occupe tout l'écran, quelle que soit la taille */
.modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100dvh;
  background: var(--bg);
  overflow-y: auto;
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.project-modal.open .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(74, 55, 47, 0.15);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.modal-close:hover {
  background: var(--sand);
  transform: rotate(90deg);
}

/* L'image (ou les images) arrive en dernier, dans la continuité du texte */
.modal-visual {
  position: relative;
  flex: none;
  background: var(--bg);
  padding: 1.5rem;
}
@media (min-width: 700px) {
  .modal-visual {
    padding: 2.5rem;
  }
}

/* Vue d'ensemble : plusieurs images côte à côte plutôt qu'un carrousel */
.modal-gallery {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.modal-gallery.two-col {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 560px) {
  .modal-gallery {
    grid-template-columns: 1fr;
  }
}
.modal-gallery img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 1rem;
  transition: transform 0.4s var(--ease);
}
.modal-gallery-card {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  padding: 2rem;
}
.modal-gallery img.is-icon {
  width: auto;
  max-width: 100%;
}
.modal-gallery img:hover {
  transform: scale(1.02);
}
/* Uniformise la hauteur des captures pour ce projet ; l'icône reste intacte */
.modal-gallery.crop img:not(.is-icon) {
  height: clamp(340px, 46vw, 580px);
  object-fit: cover;
}
/* Une seule image : affichage entier, pas de recadrage forcé */
.modal-gallery.single {
  grid-template-columns: 1fr;
  max-width: 46rem;
}
.modal-gallery.single img {
  aspect-ratio: auto;
  max-height: 75vh;
  object-fit: contain;
}
.modal-body {
  flex: none;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: calc(4rem + env(safe-area-inset-top)) 1.5rem 2rem;
}
@media (min-width: 700px) {
  .modal-body {
    max-width: 52rem;
    padding: calc(5.5rem + env(safe-area-inset-top)) 2.5rem 3rem;
  }
}
@media (min-width: 1200px) {
  .modal-body {
    max-width: 60rem;
    padding: calc(7rem + env(safe-area-inset-top)) 2.5rem 3.5rem;
  }
}
.modal-body h2 {
  margin-top: 0.8rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  color: var(--ink);
}
.modal-detail {
  margin-top: 1.2rem;
  font-family: 'Manrope', sans-serif;
  line-height: 1.75;
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
}
.modal-meta {
  margin-top: clamp(1.3rem, 2vw, 1.8rem);
}
.modal-meta-label {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.modal-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.modal-swatch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.modal-swatch-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(74, 55, 47, 0.15);
  display: inline-block;
}
.modal-body #modalFonts,
.modal-body #modalTools {
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.modal-body .btn {
  --r: -2deg;
  margin-top: clamp(1.7rem, 2.5vw, 2.4rem);
}
.modal-body #modalLink,
.modal-body #modalSoon {
  display: none;
  margin-top: 1.7rem;
}

/* ====================================
   PAGE SERVICES
   ==================================== */
.services-page {
  max-width: 72rem;
  margin: 0 auto;
  padding: 8rem 1.5rem 6rem;
}

.services-header {
  max-width: 40rem;
  margin-bottom: clamp(3rem, 8vw, 5rem);
}
.services-header .eyebrow {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.services-header h1 {
  margin-top: 1rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  color: var(--ink);
}
.services-header h1 .accent-word {
  color: var(--accent);
}
.services-header p {
  margin-top: 1.2rem;
  font-family: 'Manrope', sans-serif;
  line-height: 1.75;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}
@media (min-width: 800px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
  }
}

.service-card {
  background: var(--sand);
  border-radius: 1.5rem;
  padding: 2.2rem 1.9rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px -25px rgba(74, 55, 47, 0.4);
}
.service-card h2 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
}
.service-card p {
  margin-top: 0.9rem;
  font-family: 'Manrope', sans-serif;
  line-height: 1.65;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.services-cta {
  margin-top: clamp(4rem, 8vw, 6rem);
  text-align: center;
}
.services-cta p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  color: var(--ink);
  margin-bottom: 1.6rem;
}
.services-cta .btn {
  --r: -1.5deg;
}

/* ====================================
   PAGE CONTACT
   ==================================== */
.contact-page {
  max-width: 72rem;
  margin: 0 auto;
  padding: 8rem 1.5rem 6rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.contact-info .eyebrow {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.contact-info h1 {
  margin-top: 1rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  line-height: 1.15;
  color: var(--ink);
}
.contact-info h1 .accent-word {
  color: var(--accent);
}
.contact-lead {
  margin-top: 1.4rem;
  font-family: 'Manrope', sans-serif;
  line-height: 1.7;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.contact-details {
  margin-top: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-detail-item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  width: fit-content;
  transition: color 0.3s var(--ease);
}
.contact-detail-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}
a.contact-detail-item:hover {
  color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.3rem;
}
@media (min-width: 550px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid rgba(74, 55, 47, 0.18);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--ink-soft);
  opacity: 0.6;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(216, 166, 143, 0.25);
}
.form-group textarea {
  resize: vertical;
  min-height: 8rem;
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M6 9l6 6 6-6' stroke='%234A372F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.6rem;
}
.form-group select:invalid {
  color: var(--ink-soft);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.form-consent input {
  flex-shrink: 0;
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-status {
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
  min-height: 1.2em;
}
.form-status.success { color: #2F8A4E; font-weight: 600; }
.form-status.error { color: #B4544B; }

.contact-form .btn {
  --r: 1.5deg;
  align-self: flex-start;
  margin-top: 0.5rem;
}
.contact-form .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Fondu doux lors du remplacement de contenu par la navigation AJAX */
main {
  transition: opacity 0.25s ease;
}
main.is-leaving {
  opacity: 0;
}

/* ===== Wordmark central — imposant, en italique (accueil) ===== */
.cover {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.wordmark {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.wordmark h1 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(3.2rem, 12vw, 9rem);
  line-height: 1;
  color: var(--ink);
}
.wordmark h1 .accent-word {
  display: inline-block;
  color: var(--ink);
  animation: color-shift 2.5s ease-in-out 1s forwards;
}
@keyframes color-shift {
  to { color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
  .wordmark h1 .accent-word { animation: none; color: var(--accent); }
}
.wordmark .eyebrow {
  margin-top: 1.4rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: clamp(0.65rem, 1vw, 0.8rem);
  color: var(--ink-soft);
}
.wordmark .tagline-group {
  margin: 3rem auto 0;
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.wordmark .tagline {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  line-height: 1.6;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--ink);
}
.wordmark .subtagline {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  color: var(--ink-soft);
}
@media (min-width: 900px) {
  .wordmark .tagline-group {
    max-width: none;
  }
  .wordmark .tagline,
  .wordmark .subtagline {
    white-space: nowrap;
  }
}
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .wordmark { animation: none; opacity: 1; transform: none; }
}

/* ===== Boutons (accueil) ===== */
.hero-actions {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  animation: buttons-reveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}
@keyframes buttons-reveal {
  to { opacity: 1; transform: translateY(0); }
}
/* Bouton "tampon d'atelier" : contour organique façon tampon encreur,
   légère rotation au repos, se redresse et s'aplatit au clic comme
   un vrai coup de tampon. Pas d'effet de survol tape-à-l'œil. */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.3rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  transform: rotate(var(--r, 0deg));
  transition: transform 0.45s var(--ease), box-shadow 0.35s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.1;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 100px 100px;
  pointer-events: none;
}
.btn span {
  position: relative;
  z-index: 1;
}
.btn:hover {
  transform: rotate(calc(var(--r, 0deg) * 0.35));
}
.btn:active {
  transform: rotate(0deg) scale(0.95);
  box-shadow: none !important;
  transition-duration: 0.15s;
}

.hero-actions .btn:nth-child(1) { --r: -2deg; }
.hero-actions .btn:nth-child(2) { --r: 1.5deg; }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 6px 18px -4px rgba(216, 166, 143, 0.3),
              0 14px 28px -14px rgba(74, 55, 47, 0.4);
}
.btn-secondary {
  background: var(--sand);
  color: var(--ink);
  border: 1.5px solid rgba(74, 55, 47, 0.35);
  box-shadow: 0 8px 20px -8px rgba(74, 55, 47, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .hero-actions { animation: none; opacity: 1; transform: none; }
  .btn { transition: none; }
}

/* ====================================
   MENU DESKTOP — barre horizontale classique (sous-pages)
   le burger prend le relais uniquement en responsive,
   la page d'accueil garde le burger à toutes les tailles
   ==================================== */
.top-nav {
  display: none;
}
body.subpage .top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.3rem 1.5rem;
  background: var(--bg);
  box-shadow: 0 12px 24px -18px rgba(74, 55, 47, 0.5);
  z-index: 1100;
}
body.subpage .top-nav-links {
  display: none;
}
@media (min-width: 900px) {
  body.subpage .top-nav {
    padding: 1.6rem 2.5rem;
  }
  body.subpage .top-nav-links {
    display: flex;
  }
  body.subpage .nav-burger,
  body.subpage .nav-links {
    display: none;
  }
}
.top-nav-logo {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1.15rem;
  color: var(--ink);
}
.top-nav-logo .rose {
  color: var(--rose);
}
.top-nav-links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
}
.top-nav-links a {
  position: relative;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
}
.top-nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}
.top-nav-links a:hover::after,
.top-nav-links a.active::after {
  width: 100%;
}
.top-nav-links a.active {
  color: var(--accent);
}

/* ====================================
   BURGER — grille 2x2, converge en croix
   ==================================== */
.nav-burger {
  position: fixed;
  top: 1.8rem;
  right: 1.8rem;
  width: 36px;
  height: 36px;
  padding: 6px;
  box-sizing: content-box;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1150;
  transition: transform 0.6s var(--ease);
}
@media (max-width: 720px) {
  .nav-burger { top: 1.2rem; right: 1.2rem; }
}
.nav-burger:hover { transform: rotate(90deg); }
.nav-burger.open { transform: rotate(180deg); }

/* Sur les sous-pages, le burger est imbriqué dans .top-nav :
   centrage automatique avec le logo, quelle que soit la hauteur de la barre. */
.top-nav .nav-burger {
  position: absolute;
  top: 50%;
  right: 1.2rem;
  transform: translateY(-50%);
}
.top-nav .nav-burger:hover { transform: translateY(-50%) rotate(90deg); }
.top-nav .nav-burger.open { transform: translateY(-50%) rotate(180deg); }

.nav-burger span {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--ink);
  border-radius: 3px;
  transition: transform 0.5s var(--ease);
  animation: burger-pulse 4.8s ease-in-out infinite;
}
.nav-burger span:nth-child(1) { top: 6px; left: 6px; animation-delay: 0s; }
.nav-burger span:nth-child(2) { top: 6px; right: 6px; animation-delay: 1.2s; }
.nav-burger span:nth-child(4) { bottom: 6px; right: 6px; animation-delay: 2.4s; }
.nav-burger span:nth-child(3) { bottom: 6px; left: 6px; animation-delay: 3.6s; }

/* Repère l'oeil : chaque carré passe brièvement en terracotta, l'un après l'autre */
@keyframes burger-pulse {
  0%, 20%, 100% { background: var(--ink); }
  5%, 15% { background: var(--accent); }
}

.nav-burger:hover span {
  animation: none;
  background: var(--accent);
  transform: scale(0.85);
}

.nav-burger.open span { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .nav-burger span { animation: none; }
}

/* Ouvert : les 4 carrés convergent au centre et forment une croix claire sur fond sombre */
.nav-burger.open span {
  background: var(--panel-text);
  width: 30px;
  height: 2.5px;
  border-radius: 2px;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
}
.nav-burger.open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-burger.open span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }
.nav-burger.open span:nth-child(3),
.nav-burger.open span:nth-child(4) { opacity: 0; transform: translate(-50%, -50%) scale(0); }

/* ====================================
   PANNEAU PLEIN ECRAN — révélation circulaire
   ==================================== */
.nav-links {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  z-index: 1100;
  clip-path: circle(0% at calc(100% - 3rem) 3rem);
  transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.18, 1);
  pointer-events: none;
}
.nav-links::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.25;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.75 0 0 0 0 0.65 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  pointer-events: none;
}
.nav-links.open {
  clip-path: circle(150% at calc(100% - 3rem) 3rem);
  pointer-events: auto;
}

.nav-links li { list-style: none; overflow: visible; }

.nav-links a {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 500;
  color: var(--panel-text);
  display: inline-block;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.4s var(--ease);
}
.nav-links.open a { opacity: 1; transform: translateY(0); }
.nav-links.open li:nth-child(1) a { transition-delay: 0.35s; }
.nav-links.open li:nth-child(2) a { transition-delay: 0.43s; }
.nav-links.open li:nth-child(3) a { transition-delay: 0.51s; }
.nav-links.open li:nth-child(4) a { transition-delay: 0.59s; }
.nav-links.open li:nth-child(5) a { transition-delay: 0.67s; }

/* Mot cursif révélé au survol (desktop) */
.nav-links a::after {
  content: attr(data-word);
  position: absolute;
  left: 100%;
  top: 50%;
  margin-left: 1.5rem;
  transform: translateY(-65%) translateX(-20px) rotate(-4deg);
  font-family: 'Italianno', cursive;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--accent);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after {
  opacity: 1;
  transform: translateY(-65%) translateX(0) rotate(-4deg);
}

@media (max-width: 900px) {
  .nav-links a::after {
    content: '';
    left: 0; right: 0; bottom: -6px; top: auto;
    margin-left: 0; width: auto; height: 10px;
    font-size: unset; color: unset; white-space: unset;
    transform: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 12' preserveAspectRatio='none'><path d='M 2,7 Q 30,2 60,6 T 120,7 T 180,4 T 218,7' stroke='%23D8A68F' stroke-width='1.8' fill='none' stroke-linecap='round'/></svg>");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    clip-path: inset(0 100% 0 0);
    opacity: 1;
    transition: clip-path 0.7s var(--ease);
  }
  .nav-links a:hover::after { clip-path: inset(0 0 0 0); transform: none; }
}
@media (max-width: 600px) {
  .nav-links { gap: 1rem; }
}
