/* ============================================================
   L'ATELIER DE TESA — Refonte front
   Playfair Display (titres) + Archivo (courant), neutres clairs.
   Le rendu desktop est porté par les styles inline des gabarits
   (fidélité pixel). Ce fichier fournit : base, variable --serif,
   hover liens, et la couche responsive (burger, grilles, tailles).
   ============================================================ */

:root { --serif: 'Playfair Display', serif; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #faf9f6;
  color: #1c1a17;
  font-family: 'Archivo', sans-serif;
  min-height: 100vh;
  overflow-x: clip; /* garde-fou : jamais de défilement horizontal (préserve position:sticky) */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: #1c1a17; }
a:hover { color: #8a6a4f; }

img { max-width: 100%; }

/* ---------- Burger + menu mobile (masqués en desktop) ---------- */
.nav-burger { display: none; }
.nav-mobile { display: none; }

.nav-burger {
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #1c1a17;
  transition: transform .3s ease, opacity .2s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  flex-direction: column;
  gap: 4px;
  padding: 0 56px;
  border-bottom: 1px solid #e6e2da;
  background: #faf9f6;
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease, padding .35s ease;
}
.nav-mobile.open { display: flex; max-height: 340px; padding: 20px 56px 28px; }
.nav-mobile a {
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #8b857a;
  padding: 10px 0;
}
.nav-mobile a.active { color: #1c1a17; }

/* Respect de prefers-reduced-motion pour les animations GSAP → fallback visible */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   Les gabarits sont inline (desktop 1280+). On surcharge ici
   avec !important, uniquement sur les points structurants.
   ============================================================ */

/* --- Tablette : burger + grilles resserrées --- */
@media (max-width: 900px) {
  .nav-desktop { display: none !important; }
  .nav-burger { display: flex !important; }

  .site-header { padding-left: 24px !important; padding-right: 24px !important; }

  .blk { padding-left: 24px !important; padding-right: 24px !important; }
  .blk--tight { padding-left: 24px !important; padding-right: 24px !important; }

  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .card-offset { margin-top: 0 !important; }

  .two-col { grid-template-columns: 1fr !important; }
  .two-col--reverse .col-media { order: -1; }

  /* En pile mobile, le portrait ne doit plus « coller » en haut et recouvrir le texte. */
  .about-aside { position: static !important; top: auto !important; }

  .hero-h1 { font-size: 54px !important; }
}

/* --- Mobile : une colonne, titres réduits --- */
@media (max-width: 600px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr !important; }

  .hero-h1 { font-size: 34px !important; }
  .h1-page { font-size: 40px !important; }
  .h2-section { font-size: 30px !important; }

  /* Anti débordement horizontal : on resserre les paddings/marges inline */
  [data-hero] { padding-left: 24px !important; padding-right: 24px !important; }
  .blk { padding-left: 24px !important; padding-right: 24px !important; margin-left: 0 !important; margin-right: 0 !important; }
  .two-col { margin-left: 0 !important; margin-right: 0 !important; }
  .col-pad { padding: 48px 24px !important; }

  /* En-têtes de section (titre + lien) : passage à la ligne */
  .sec-head { flex-wrap: wrap !important; gap: 12px !important; }

  .nav-mobile, .nav-mobile.open { padding-left: 24px; padding-right: 24px; }

  .footer-top { gap: 40px !important; }
  .footer-cols { gap: 40px !important; }
}

@media (max-width: 400px) {
  .hero-h1 { font-size: 30px !important; }
  .h1-page { font-size: 34px !important; }
}
