/* L'atelier de l'impossible — styles du site.
   Toutes les valeurs (couleurs, tailles, espacements) sont reprises telles
   quelles de la maquette Claude Design ; seuls les noms de classes sont
   nouveaux. Les couleurs sont regroupées ici pour ne pas les recopier. */

:root {
  --ink: #0d0c0b;          /* fond */
  --ink-2: #141210;        /* fond des sections alternées */
  --line: #2a2724;         /* filets */
  --line-2: #3a3632;       /* filets plus visibles, soulignés */
  --paper: #efe9df;        /* texte principal */
  --text: #d6cfc3;         /* texte courant */
  --muted: #b8b0a3;        /* texte secondaire */
  --dim: #a39a8c;          /* surtitres, légendes */
  --red: #c8322a;          /* rouge de marque (fonds) */
  --red-dark: #a82820;
  --red-text: #e0493e;     /* rouge lisible sur fond sombre */

  --serif: 'Bodoni Moda', Georgia, serif;
  --sans: Manrope, system-ui, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 140px);
}

/* ---------- Base ---------- */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--paper); text-decoration: none; }
a:hover { color: var(--red-text); }
::selection { background: var(--red); color: #fff; }
input, textarea, button { font: inherit; }
img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--red-text); outline-offset: 3px; }

/* Les ancres ne doivent pas finir sous la barre collante. */
[id] { scroll-margin-top: 96px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 12px 18px; background: var(--red); color: #fff;
}
.skip-link:focus { top: 16px; color: #fff; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  box-sizing: border-box;
}

.serif { font-family: var(--serif); }
.accent { color: var(--red-text); }

/* ---------- Typographie commune ---------- */

.eyebrow {
  margin: 0 0 20px;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

.h-section {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 1.05;
  text-wrap: balance;
}

.h-sub {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.1;
}

.tag {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-text);
}

.link-underline {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-2);
  align-self: flex-start;
  padding-bottom: 4px;
}

/* ---------- En-tête ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 12, 11, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav {
  padding-top: 18px; padding-bottom: 18px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px;
}

.site-nav__logo { display: flex; align-items: center; }
.site-nav__logo img { display: block; height: 56px; width: auto; }

.site-nav__links {
  display: flex; flex-wrap: wrap;
  gap: clamp(16px, 2.5vw, 32px);
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
}
.site-nav__links .is-accent { color: var(--red-text); }
.site-nav__links a:hover { color: var(--red-text); }

/* Sur un téléphone, les cinq liens prennent trois lignes et la barre collante
   mange le tiers de l'écran : on la resserre. */
@media (max-width: 560px) {
  .site-nav { padding-top: 12px; padding-bottom: 12px; gap: 10px 16px; }
  .site-nav__logo img { height: 44px; }
  .site-nav__links { gap: 8px 16px; font-size: 12px; letter-spacing: 0.1em; }
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  padding: 16px 28px;
  font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background-color .2s, color .2s;
}
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); color: #fff; }
.btn--ghost { padding: 15px 27px; border: 1px solid var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }

/* ---------- Accueil : hero ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: grid; align-items: end;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(13,12,11,0.2) 0%, rgba(13,12,11,0.55) 55%, var(--ink) 100%);
}
.hero__content {
  position: relative; width: 100%;
  padding-bottom: clamp(48px, 8vw, 96px);
}
.hero__kicker {
  margin: 0 0 24px;
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red-text);
}
.hero__title {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.95; letter-spacing: -0.02em;
  max-width: 14ch; text-wrap: balance;
}
.hero__title em { color: var(--red-text); }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Accueil : l'atelier ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 96px);
}

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }

.atelier { align-items: start; }
.atelier__photo { margin-top: 40px; aspect-ratio: 4 / 5; max-width: 420px; }
.atelier__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atelier__text {
  display: flex; flex-direction: column; gap: 24px;
  font-size: 18px; line-height: 1.7; color: var(--text);
  text-wrap: pretty;
  padding-top: clamp(0px, 4vw, 48px);
}
.atelier__text p { margin: 0; }

.chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.chips li {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  font-size: 13px; letter-spacing: 0.06em; color: var(--paper);
}

/* ---------- Accueil : savoir-faire ---------- */

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}
.savoir-faire .h-section { margin-bottom: 64px; max-width: 18ch; }

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 0; padding: 0; list-style: none;
}
.service {
  background: var(--ink-2);
  padding: 36px 28px 40px;
  display: flex; flex-direction: column; gap: 16px;
}
.service__n { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--red-text); }
.service h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.15; }
.service p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* ---------- Vidéos ---------- */

.video-section { padding-top: var(--section-y); }
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink-2);
  border: 1px solid var(--line);
}
.video iframe,
.video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video video { object-fit: contain; background: #000; }

/* ---------- Accueil : collaborations ---------- */

.lead {
  margin: 0 0 32px;
  font-size: 17px; line-height: 1.65; color: var(--muted);
  max-width: 46ch; text-wrap: pretty;
}

.credits-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.credits-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.credits-list__title { font-family: var(--serif); font-style: italic; font-size: 24px; }
.credits-list__who { font-size: 14px; color: var(--dim); }

/* ---------- Actualités (cartes) ---------- */

.news { border-top: 1px solid var(--line); }
.news .h-section { margin-bottom: 56px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 40px;
}
.card { display: flex; flex-direction: column; gap: 18px; }
.card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.card:hover .card__img img { transform: scale(1.03); }
.card h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.15; }
.card h3 a:hover { color: var(--red-text); }
.card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

@media (prefers-reduced-motion: reduce) {
  .card__img img { transition: none; }
  .card:hover .card__img img { transform: none; }
}

/* ---------- Contact ---------- */

.contact { background: var(--red); color: #fff; }
.contact a { color: #fff; }
.contact .eyebrow { color: #fff; }
.contact__title {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1; text-wrap: balance;
}
.contact__intro { margin: 32px 0 0; font-size: 18px; line-height: 1.65; max-width: 40ch; text-wrap: pretty; }

.form { display: flex; flex-direction: column; gap: 22px; }
.form__field {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
}
.form__field input,
.form__field textarea {
  background: transparent;
  border: 0; border-bottom: 1px solid #fff; border-radius: 0;
  color: #fff;
  padding: 10px 0;
  font-size: 18px; letter-spacing: 0; text-transform: none;
  outline: none;
}
.form__field textarea { resize: vertical; }
.form__field input:focus,
.form__field textarea:focus { border-bottom-width: 2px; padding-bottom: 9px; }
.form__submit {
  align-self: flex-start;
  margin-top: 12px;
  padding: 16px 32px;
  background: var(--ink); color: var(--paper);
  border: 0;
  font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.form__submit:hover { background: var(--paper); color: var(--ink); }
.form__submit:disabled { opacity: .6; cursor: wait; }
.form__status { margin: 0; min-height: 1.4em; font-size: 15px; }

/* Piège à robots : hors écran, hors tabulation — seul un script le remplit. */
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-sent {
  align-self: center;
  font-family: var(--serif); font-style: italic;
  font-size: 32px; line-height: 1.3;
}

/* ---------- Pied de page ---------- */

.site-footer {
  padding-top: 40px; padding-bottom: 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px;
  font-size: 13px; color: var(--dim);
}
.site-footer img { display: block; height: 48px; width: auto; }
.site-footer a { color: var(--dim); }
.site-footer a:hover { color: var(--red-text); }

/* ---------- Article ---------- */

.article-head {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.back-link {
  display: inline-flex; gap: 10px;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim);
}
.article-meta {
  margin-top: 48px;
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--dim);
}
.article-meta .tag { letter-spacing: inherit; }
.article-title {
  margin: 24px 0 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.95; letter-spacing: -0.02em;
  max-width: 14ch; text-wrap: balance;
}
.article-title--long { font-size: clamp(40px, 6vw, 84px); max-width: 18ch; }
.article-title em { color: var(--red-text); }
.article-chapo {
  margin: 32px 0 0;
  font-size: clamp(19px, 1.8vw, 24px); line-height: 1.5;
  color: var(--text);
  max-width: 52ch; text-wrap: pretty;
}

.figure { margin: 0; }
.figure__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2); }
.figure__img--portrait { aspect-ratio: 4 / 5; }
.figure__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.figure figcaption { margin-top: 14px; font-size: 13px; color: var(--dim); }

.article-body {
  padding-top: clamp(56px, 8vw, 112px);
  padding-bottom: clamp(56px, 8vw, 112px);
  display: flex; flex-wrap: wrap;
  gap: clamp(32px, 5vw, 80px);
}
.article-aside {
  display: flex; flex-direction: column; gap: 28px;
  font-size: 14px;
  align-self: flex-start;
  position: sticky; top: 112px;
  flex: 1 1 200px;
}
.article-aside dl { margin: 0; display: flex; flex-direction: column; gap: 28px; }
.article-aside dl div { display: flex; flex-direction: column; gap: 6px; }
.article-aside dt,
.article-aside .aside-label {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim);
}
.article-aside dd { margin: 0; }
.share { display: flex; flex-direction: column; gap: 10px; }
.share__links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.share__links a,
.share__links button {
  background: none; border: 0; padding: 0 0 2px; cursor: pointer;
  color: var(--paper); font-size: 14px;
  border-bottom: 1px solid var(--line-2);
}
.share__links a:hover,
.share__links button:hover { color: var(--red-text); }

@media (max-width: 720px) {
  .article-aside { position: static; }
}

.prose {
  flex: 3 1 480px;
  min-width: 0; max-width: 720px;
  display: flex; flex-direction: column; gap: 28px;
  font-size: 19px; line-height: 1.75;
  color: var(--text);
  text-wrap: pretty;
}
.prose p { margin: 0; }
.prose a { color: var(--paper); border-bottom: 1px solid var(--line-2); }
.prose a:hover { color: var(--red-text); }
.prose h2 {
  margin: 24px 0 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3vw, 40px); line-height: 1.15;
  color: var(--paper);
}
.prose blockquote {
  margin: 8px 0;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--red);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(20px, 2vw, 24px); line-height: 1.5;
  color: var(--paper);
}
.prose blockquote p + p { margin-top: 16px; }
.prose blockquote footer {
  margin-top: 16px;
  font-family: var(--sans); font-style: normal;
  font-size: 14px; letter-spacing: 0.08em; color: var(--dim);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 24px;
}

.credits {
  margin: 8px 0 0; padding: 0; list-style: none;
  border-top: 1px solid var(--line);
  font-size: 15px; line-height: 1.5;
}
.credits li {
  display: flex; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.credits li > span:first-child { color: var(--dim); }
.credits li > span:last-child { color: var(--paper); text-align: right; flex: 1 1 260px; }

.related { border-top: 1px solid var(--line); background: var(--ink-2); }
.related__inner { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(56px, 8vw, 112px); }
.related__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 16px; margin-bottom: 48px;
}
.related__head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); }
.related__head a { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 40px;
}
.related-card { display: flex; flex-direction: column; gap: 16px; }
.related-card .card__img { aspect-ratio: 16 / 10; }
.related-card__title { font-family: var(--serif); font-size: 28px; line-height: 1.15; }
.related-card:hover .card__img img { transform: scale(1.03); }

/* ---------- Page 404 ---------- */

.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }
