/*
Theme Name: La Forge du Muscle
Author: La Forge du Muscle
Description: Thème bloc sur mesure — page « site en construction ».
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: la-forge-du-muscle
Tags: block-theme, full-site-editing, one-column
*/

:root {
  --noir: #050505;
  --braise: #ff6a00;
  --rouge: #ff2a1a;
  --orange-clair: #ff9a1f;
  --blanc: #ffffff;
  --titre: "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--noir);
  color: var(--blanc);
  font-family: var(--titre);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

/* Neutralisation de l'espacement Gutenberg : blockGap 0 dans theme.json,
   et filet de sécurité à spécificité nulle. */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
figure.wp-block-image { margin: 0; }
.wp-site-blocks > * { margin-block: 0; }

/* ---------- Scène ---------- */
.scene {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
/* lueur orange-rouge */
.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 55% 50% at 50% 46%, rgba(255, 106, 0, .30), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(255, 42, 26, .35), transparent 70%),
    var(--noir);
}
/* rayons en diagonale */
.scene::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background: repeating-linear-gradient(115deg,
    transparent 0 160px,
    rgba(255, 255, 255, .035) 160px 190px,
    transparent 190px 420px);
  pointer-events: none;
}

/* ---------- Centre : logo + titre ---------- */
.centre {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
}
.wp-block-image.centre__logo {
  width: clamp(300px, 62vh, 640px);
  max-width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
  filter: drop-shadow(0 0 50px rgba(255, 90, 0, .35));
  animation: braise 5s ease-in-out infinite;
}
.wp-block-image.centre__logo img { width: 100%; }
@keyframes braise {
  0%, 100% { filter: drop-shadow(0 0 40px rgba(255, 90, 0, .30)); }
  50% { filter: drop-shadow(0 0 70px rgba(255, 70, 0, .55)); }
}

.wp-block-heading.centre__titre {
  margin: clamp(-30px, -2vh, -8px) 0 0;
  font-family: var(--titre);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -.5px;
  font-size: clamp(40px, 6.2vw, 104px);
  color: var(--blanc);
  text-shadow: 0 6px 30px rgba(0, 0, 0, .6);
  text-wrap: balance;
  hyphens: none;
}
/* le mot en dégradé = <em> nu (format italique natif, éditable) */
.centre__titre em {
  display: block;
  font-style: italic;
  padding: 0 .08em;
  background: linear-gradient(90deg, var(--orange-clair), var(--braise) 45%, var(--rouge));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 4px 24px rgba(255, 70, 0, .45));
}

/* ---------- Pages secondaires (index, 404) ---------- */
.simple { max-width: 900px; margin: 0 auto; padding: 120px 24px; }
.simple a { color: var(--braise); }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--braise); outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .wp-block-image.centre__logo { animation: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .wp-block-image.centre__logo { width: min(92vw, 420px); }
  .wp-block-heading.centre__titre { font-size: clamp(34px, 11vw, 56px); }
}
