/* Et Zou — feuille de style commune
   Palette et typographie reprises du site d'origine. */

:root {
  --bg: #FDFBF6;
  --surface: #FFFFFF;
  --ink: #16130F;
  --body: #4A443E;
  --mute: #6E6862;
  --line: #EDE9E4;
  --red: #FF3E3E;       /* rouge vif : cœurs, grands titres manuscrits, décor */
  --red-texte: #D92B2B; /* rouge foncé : petits textes et boutons (contraste WCAG AA ≥ 4,5:1) */
  --red-soft: #FFD2D2;
  --wrap: 1140px;
}

html { scroll-behavior: smooth; }
/* Un élément masqué l'est toujours, même si un style lui donne un display. */
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Archivo, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--red-soft); }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red-texte); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.script { font-family: Caveat, cursive; font-weight: 500; }

/* ---------- Typographie ---------- */
h1 {
  font-weight: 400;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.11;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
h2 {
  font-family: Caveat, cursive;
  font-weight: 500;
  font-size: clamp(30px, 4vw, 42px);
  margin: 0 0 22px;
}
h3 { font-size: 18px; font-weight: 500; margin: 0 0 8px; }
p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--body);
  margin: 0 0 16px;
  text-wrap: pretty;
}
.kicker {
  font-family: Caveat, cursive;
  font-size: clamp(24px, 3vw, 30px);
  color: var(--red);
  margin: 0 0 14px;
  transform: rotate(-1.4deg);
}
.lead { font-size: 18px; max-width: 54ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- En-tête ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 20px;
  padding-bottom: 20px;
  flex-wrap: wrap;
}
.brand { font-family: Caveat, cursive; font-size: 32px; line-height: 1; color: var(--ink); }
.site-nav { display: flex; gap: 22px; font-size: 14.5px; flex-wrap: wrap; align-items: center; }
.site-nav a { padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--red-soft); }
.site-nav a[aria-current="page"] { color: var(--red-texte); border-bottom-color: var(--red-texte); }
.site-nav .pro {
  border: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 6px 13px;
  border-radius: 2px;
  font-size: 13.5px;
}
.site-nav .pro:hover { border-color: var(--red-texte); color: var(--red-texte); }

/* ---------- Bandeau de page ---------- */
.page-head { padding: 54px 0 12px; }
.page-head p { max-width: 58ch; }

/* ---------- Sections ---------- */
section { padding: 52px 0; }
section + section { border-top: 1px solid var(--line); }
.tight { padding-top: 24px; }

/* ---------- Boutons ---------- */
.btn, .btn-ghost {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 2px;
  font-size: 15px;
  line-height: 1.2;
}
.btn { background: var(--red-texte); color: #FFFFFF; }
.btn:hover { background: var(--ink); color: #FFFFFF; }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { border-color: var(--red-texte); color: var(--red-texte); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }

/* ---------- Grilles ---------- */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 52px; align-items: start; }
.cols-center { align-items: center; }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 36px; }

/* ---------- Galerie d'œuvres ---------- */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 26px; }
.work figure { margin: 0; }
.work img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #FFFFFF;
  box-shadow: 0 2px 10px rgba(22, 19, 15, 0.05);
  transition: transform 280ms cubic-bezier(.2,.8,.3,1), box-shadow 280ms ease;
}
.work:hover img { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(22, 19, 15, 0.16); }
.work figcaption { font-size: 14.5px; color: var(--mute); margin-top: 10px; line-height: 1.5; }

.works-lg { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 34px; }

/* ---------- Cartes de contenu ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 28px;
  background: var(--surface);
}
.card h3 { font-size: 19px; }
.card p:last-child { margin-bottom: 0; }

/* Carte-lien vers une autre page */
.nav-card { display: block; border: 1px solid var(--line); background: var(--surface); border-radius: 2px; overflow: hidden; transition: box-shadow 260ms ease, transform 260ms ease; }
.nav-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(22, 19, 15, 0.13); }
.nav-card img { width: 100%; height: 210px; object-fit: contain; background: var(--bg); padding: 16px; }
.nav-card .body { padding: 22px 24px 26px; }
.nav-card h3 { font-family: Caveat, cursive; font-size: 27px; font-weight: 500; margin: 0 0 6px; color: var(--ink); }
.nav-card p { font-size: 15px; margin: 0 0 14px; }
.nav-card .go { font-size: 14.5px; color: var(--red-texte); }

/* ---------- Étapes numérotées ---------- */
.steps { display: grid; gap: 22px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .num { font-family: Caveat, cursive; font-size: 30px; color: var(--red); line-height: 1; min-width: 34px; }
.step p { font-size: 15.5px; margin: 0; }

/* ---------- Emplacement média à venir ---------- */
.slot {
  border: 1px dashed #CFC7BC;
  border-radius: 2px;
  background: #FFFDF8;
  padding: 34px 28px;
  text-align: center;
  color: var(--mute);
}
.slot .script { font-size: 25px; color: var(--ink); display: block; margin-bottom: 6px; }
.slot p { font-size: 14.5px; margin: 0; color: var(--mute); }

/* ---------- Avant / après ---------- */
.ba { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 28px; align-items: start; }
.ba figure { margin: 0; }
.ba img { width: 100%; height: auto; border: 1px solid var(--line); }
.ba figcaption { font-family: Caveat, cursive; font-size: 22px; color: var(--red-texte); margin-top: 10px; }

/* ---------- Bloc commande ---------- */
.order {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 34px;
  text-align: center;
}
.order h3 { font-family: Caveat, cursive; font-size: 30px; font-weight: 500; margin: 0 0 10px; }
.order p { max-width: 50ch; margin: 0 auto 22px; }

/* ---------- Respiration manuscrite ---------- */
.breath { text-align: center; padding: 40px 20px; }
.breath p {
  font-family: Caveat, cursive;
  font-size: clamp(26px, 3.4vw, 34px);
  color: var(--red);
  margin: 0;
  transform: rotate(-0.8deg);
}

/* ---------- Liste à tirets ---------- */
ul.clean { list-style: none; padding: 0; margin: 0; }
ul.clean li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  padding: 9px 0 9px 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
ul.clean li:before { content: "—"; position: absolute; left: 0; color: var(--red); }

/* ---------- Coordonnées ---------- */
.contact-list { display: grid; gap: 18px; max-width: 460px; margin: 0 auto; }
.contact-item {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 2px;
  padding: 20px 24px;
  text-align: left;
}
.contact-item .label { font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); margin: 0 0 4px; }
.contact-item .value { font-size: 18px; margin: 0; color: var(--ink); }
.contact-item a.value:hover { color: var(--red-texte); }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 8px; }
.site-footer .inner {
  padding-top: 30px;
  padding-bottom: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--mute);
}
.site-footer a { color: var(--mute); }
.site-footer a:hover { color: var(--red-texte); }
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 620px) {
  .site-header { position: static; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .site-header .inner { padding-top: 16px; padding-bottom: 16px; gap: 14px; }
  .site-nav { gap: 16px; font-size: 14px; }
  .page-head { padding: 34px 0 10px; }
  section { padding: 40px 0; }
  .order { padding: 26px 20px; }
}

/* ---------- Images flottantes (accueil) ---------- */
@keyframes ez-float-a {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50%      { transform: rotate(-2.6deg) translateY(-9px); }
}
@keyframes ez-float-b {
  0%, 100% { transform: rotate(3.2deg) translateY(0); }
  50%      { transform: rotate(2.4deg) translateY(-13px); }
}
.float { will-change: transform; }
.float-a { animation: ez-float-a 7s   ease-in-out infinite; }
.float-b { animation: ez-float-b 8.5s ease-in-out infinite .6s; }
.float-c { animation: ez-float-a 7.5s ease-in-out infinite .3s; }
.float-d { animation: ez-float-b 9s   ease-in-out infinite .9s; }
.float:hover { animation-play-state: paused; }

.lift {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #FFFFFF;
  box-shadow: 0 18px 40px rgba(22, 19, 15, 0.16);
  transition: transform 320ms cubic-bezier(.2,.8,.3,1), box-shadow 320ms ease;
}
.float:hover .lift {
  transform: scale(1.045) translateY(-8px);
  box-shadow: 0 34px 64px rgba(22, 19, 15, 0.26);
}

/* Hero : deux cartes qui se chevauchent */
.hero-section { padding: 58px 0 86px; }
.stack { position: relative; min-width: 0; padding: 12px 0; }
.stack-main { width: 76%; margin-left: auto; }
.stack-over { width: 45%; position: absolute; left: 0; bottom: -22px; z-index: 2; }
.stack-over .lift { box-shadow: 0 14px 34px rgba(22, 19, 15, 0.14); }

/* Atelier : photo et dessin en quinconce */
.atelier-section { padding-top: 22px; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; min-width: 0; }
.duo-offset { margin-top: 36px; }

@media (max-width: 620px) {
  .hero-section { padding: 34px 0 62px; }
  .stack-over { bottom: -14px; }
}
@media (prefers-reduced-motion: reduce) {
  .float-a, .float-b, .float-c, .float-d { animation: none; }
  .lift, .float:hover .lift { transition: none; transform: none; }
}

/* ---------- Affiches en situation (cadres) ---------- */
.frames { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 28px; align-items: start; }
.frames figure { margin: 0; }
.frames img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 10px 30px rgba(22, 19, 15, 0.13);
  transition: transform 300ms cubic-bezier(.2,.8,.3,1), box-shadow 300ms ease;
}
.frames figure:hover img { transform: translateY(-6px); box-shadow: 0 26px 52px rgba(22, 19, 15, 0.22); }
.frames figcaption {
  font-family: Caveat, cursive;
  font-size: 21px;
  color: var(--mute);
  margin-top: 12px;
  line-height: 1.35;
}
@media (prefers-reduced-motion: reduce) {
  .frames img, .frames figure:hover img { transition: none; transform: none; }
}

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; }
.brand img { height: 52px; width: auto; display: block; }
.logo-pied { height: 34px; width: auto; display: block; }
@media (max-width: 620px) {
  .brand img { height: 42px; }
}

/* ---------- Vidéo présentée comme un polaroïd ---------- */
.polaroid {
  margin: 26px 0 0 6px;
  padding: 10px 10px 0;
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(22, 19, 15, 0.16);
  transform: rotate(-2deg);
}
.video-sur-mesure { max-width: 260px; }
.polaroid-media { position: relative; }
.polaroid video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 540 / 864;
  object-fit: cover;
  background: #F4F1EC;
}
.polaroid figcaption {
  font-family: Caveat, cursive;
  font-size: 19px;
  white-space: nowrap;
  color: var(--ink);
  text-align: center;
  padding: 8px 4px 12px;
  line-height: 1.2;
}

/* Bouton rond lecture / pause, dessiné en CSS (pas d'emoji) */
.video-bouton {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 8px rgba(22, 19, 15, 0.18);
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 160ms ease, background 160ms ease;
}
.video-bouton[hidden] { display: none; }
.video-bouton::before,
.video-bouton::after {
  content: "";
  position: absolute;
  top: 11px;
  width: 4px;
  height: 12px;
  border-radius: 1px;
  background: var(--ink);
}
.video-bouton::before { left: 12px; }
.video-bouton::after { left: 18px; }
.video-bouton[data-etat="arrete"]::before {
  left: 13px;
  width: 0;
  height: 0;
  border-radius: 0;
  background: none;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--ink);
}
.video-bouton[data-etat="arrete"]::after { display: none; }
.video-bouton:hover { opacity: 1; background: #FFFFFF; }
.video-bouton:hover::before, .video-bouton:hover::after { background: var(--red); }
.video-bouton[data-etat="arrete"]:hover::before { background: none; border-left-color: var(--red); }
.video-bouton:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; opacity: 1; }
