/* ═══════════════════════════════════════════════════════════
   Base T4 — ce qui ne peut pas vivre dans les classes globales
   Bricks : styles document (html/body), grain, voile, keyframes,
   et les classes rendues par les shortcodes (le générateur Bricks
   n'émet le CSS que des classes attachées à des éléments).
   Tout le reste est dans Bricks → réglable dans l'UI.
   ═══════════════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── Container global : les fonds/traits/images restent pleine largeur ;
   le CONTENU est centré dans --content-max via le padding horizontal
   des sections (variable --pad-x, définie côté Bricks). Voir seed-styles. ── */
body {
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--red); color: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; color: var(--white); }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 300; }

/* film grain */
.grain {
  position: fixed; inset: 0; z-index: 5; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* voile de transition */
.page-veil {
  position: fixed; inset: 0; z-index: 30;
  background: var(--black);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; pointer-events: none;
}
.veil-on .page-veil {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .55s var(--ease), visibility 0s;
}
.veil-on .page-veil.lift {
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .55s var(--ease), visibility 0s .55s;
}
.page-veil img {
  width: 72px; height: 72px; object-fit: contain;
  filter: invert(1); mix-blend-mode: screen;
  animation: veilPulse 1.8s ease-in-out infinite;
}
@keyframes veilPulse {
  0%, 100% { opacity: .9; transform: scale(1); }
  50%      { opacity: .4; transform: scale(0.96); }
}
@media (prefers-reduced-motion: reduce) { .page-veil { display: none; } }

/* keyframes utilisées par les classes globales */
@keyframes kenBurns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.14) translate(-1.2%, -0.8%); }
}
@keyframes enterNudge {
  0%, 100% { transform: translateY(0); opacity: .9; }
  50%      { transform: translateY(7px); opacity: .5; }
}

/* ── classes rendues par les shortcodes ── */

/* badge (t4_badge, t4_moto_meta + éléments) */
.badge {
  display: inline-block; font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--white); background: var(--red); padding: 5px 10px; font-weight: 400;
}
.work .badge, .work .brxe-shortcode .badge { position: absolute; top: 16px; left: 16px; z-index: 1; }

/* fiche technique (t4_specs) */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); }
.specs > * { min-width: 0; }
.spec-group { border-top: 1px solid rgba(255,255,255,0.18); padding-top: 22px; }
.spec-group h3 { font-size: 22px; font-style: italic; margin-bottom: 18px; padding-bottom: 2px; }
.spec-group dl { display: grid; gap: 12px; }
.spec-group dt { font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }
.spec-group dd { color: var(--text); font-size: 14.5px; margin-bottom: 6px; }
@media (max-width: 860px) { .specs { grid-template-columns: 1fr; } }

/* palmarès (t4_palmares) */
.laurels { display: grid; gap: 0; max-width: 820px; }
.laurel {
  display: grid; grid-template-columns: 110px 1fr; gap: clamp(20px, 4vw, 56px);
  padding: 26px 0; border-top: 1px solid var(--border); align-items: baseline;
}
.laurel:last-child { border-bottom: 1px solid var(--border); }
.laurel .year { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 38px); color: var(--red); font-style: italic; }
.laurel h3 { font-size: clamp(20px, 2vw, 28px); font-family: var(--sans); font-weight: 300; color: var(--white); }
.laurel p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* actualités (t4_news) */
.news { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); }
.news > * { min-width: 0; }
.news-card { border-top: 1px solid var(--border); padding-top: 24px; display: block; }
.news-card time, .news-card .t4-time { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.news-card h3 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; margin: 12px 0 10px; transition: color .3s; }
.news-card:hover h3 { color: var(--red); }
.news-card p { color: var(--muted); max-width: 48ch; }
@media (max-width: 860px) { .news { grid-template-columns: 1fr; } }

/* presse — collage de couvertures (t4_presse) */
.press-collage {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(16px, 2vw, 32px);
  align-items: start;
}
.press-collage > * { min-width: 0; }
.press-cover { display: block; position: relative; }
.press-cover:nth-child(2n) { margin-top: clamp(20px, 4vw, 64px); }
.press-cover-media {
  display: block; overflow: hidden; aspect-ratio: 3/4;
  border: 1px solid var(--border);
  transform: rotate(-1.2deg);
  transition: transform .5s var(--ease);
  cursor: zoom-in;
}
.press-cover:nth-child(2n) .press-cover-media { transform: rotate(1.4deg); }
.press-cover:nth-child(3n) .press-cover-media { transform: rotate(-0.6deg); }
.press-cover-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.35) contrast(1.03);
  transition: transform 1s var(--ease), filter .8s var(--ease);
}
.press-cover:hover .press-cover-media { transform: rotate(0); }
.press-cover:hover .press-cover-media img { filter: none; transform: scale(1.05); }
.press-cover-info { display: block; margin-top: 16px; }
.press-cover-info strong {
  display: block; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(20px, 1.9vw, 28px); color: var(--white); line-height: 1.1;
  transition: color .3s;
}
.press-cover:hover .press-cover-info strong { color: var(--red); }
.press-cover-info span {
  display: block; margin-top: 4px;
  font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
}
.press-cover-quote {
  display: block; margin-top: 10px;
  font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--text); line-height: 1.4;
}
.press-cover-link {
  display: inline-block; margin-top: 10px;
  font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 2px;
  transition: color .3s, border-color .3s;
}
.press-cover-link:hover { color: var(--white); border-color: var(--red); }
@media (max-width: 980px) { .press-collage { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .press-collage { grid-template-columns: repeat(2, 1fr); } }

/* boutique — grille produits (t4_shop) */
.shop-cat-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 52px);
}
.shop-cat-head h2 { margin-bottom: 0; }
.shop-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 32px);
}
.shop-grid > * { min-width: 0; }
.product-card { display: block; position: relative; }
.product-media {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4/5; background: var(--mid);
  border: 1px solid var(--border);
}
.product-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.5) contrast(1.03);
  transition: transform 1s var(--ease), filter .8s var(--ease);
}
.product-card:hover .product-media img { filter: none; transform: scale(1.05); }
.product-cta {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px; background: rgba(10,10,10,0.82);
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--white);
  transform: translateY(100%); transition: transform .4s var(--ease);
}
.product-card:hover .product-cta, .product-card:focus-visible .product-cta { transform: translateY(0); }
.product-cta svg { width: 14px; height: 8px; }
.product-info { display: block; padding: 16px 2px 0; }
.product-info strong {
  display: block; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(19px, 1.7vw, 24px); color: var(--white); line-height: 1.15;
  transition: color .3s;
}
.product-card:hover .product-info strong { color: var(--red); }
.product-desc { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.product-price {
  display: block; margin-top: 8px;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text);
}
@media (max-width: 1100px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .shop-grid { grid-template-columns: repeat(2, 1fr); } }

/* formulaire (t4_contact_form) */
.contact-form { display: grid; gap: 26px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text); }
.field input, .field textarea {
  background: transparent; border: 0; outline: 0;
  border-bottom: 1px solid rgba(255,255,255,0.28);
  color: var(--white); font-family: var(--sans); font-weight: 300;
  font-size: 15px; padding: 10px 0;
  transition: border-color .3s;
  border-radius: 0; box-shadow: none;
}
.field input:focus, .field textarea:focus { border-color: var(--white); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 12px; color: var(--muted); max-width: 46ch; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.contact-form button { border-radius: 0; box-shadow: none; cursor: pointer; }
@media (max-width: 860px) { .form-2col { grid-template-columns: 1fr; } }

/* réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
  .hero-bg.kenburns { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
