:root {
  --color-primary-text: #333;
  --color-secondary-text: #999;
  --color-accent: #074c69;
  --color-lighter-gray: #f6f6f6;
  --color-light-gray: #e6e6e6;
  --color-darker-gray: #15171a;
  --font-sans: Raleway, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
  --font-serif: 'PT Serif', Georgia, serif;
  --gap: 3.6rem;
  --max-width: 900px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 62.5%; }

body {
  background: #fff;
  color: var(--color-primary-text);
  font-family: var(--font-sans);
  font-size: 1.6rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; }

/* ===== Header ===== */

.gh-head {
  padding: 2.8rem var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gh-head-brand {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.gh-head-nav {
  display: flex;
  gap: 2.4rem;
}

.gh-head-nav a {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

/* Variante sur le hero (texte blanc) */
.gh-head-dark .gh-head-brand { color: #fff; }
.gh-head-dark .gh-head-nav a { color: rgba(255, 255, 255, 0.85); }
.gh-head-dark a:hover { color: #fff; }

/* Variante sur fond clair (pages intérieures) */
.gh-head-light {
  border-bottom: 1px solid var(--color-light-gray);
}
.gh-head-light .gh-head-brand { color: var(--color-darker-gray); }
.gh-head-light .gh-head-nav a { color: var(--color-primary-text); }
.gh-head-light .gh-head-nav a:hover { color: var(--color-accent); }
.gh-head-light .gh-head-nav a.active { color: var(--color-accent); }

/* ===== Hero (accueil) ===== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

/* Image de fond : assombrie et légèrement floutée.
   L'inset négatif compense le halo clair que le blur crée sur les bords. */
.hero::before {
  content: "";
  position: absolute;
  inset: -16px;
  z-index: -2;
  background: url("/assets/hero.jpg") center / cover no-repeat;
  filter: blur(4px) brightness(0.5);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(10, 14, 18, 0.35),
    rgba(10, 14, 18, 0.15) 45%,
    rgba(10, 14, 18, 0.45)
  );
}

.hero-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem var(--gap) 10rem;
}

.hero-main h1 {
  font-size: clamp(3.6rem, 8vw, 7.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 2.4rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  animation: rise 0.9s ease 0.15s forwards;
}

.hero-main p {
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-serif);
  font-style: italic;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: rise 0.9s ease 0.35s forwards;
}

.hero-cta {
  margin-top: 5.6rem;
  opacity: 0;
  animation: rise 0.9s ease 0.55s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Bouton CTA ===== */

.gh-cta-btn {
  display: inline-block;
  padding: 1.7rem 4rem;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background-color: var(--color-accent);
  border-radius: 2px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.gh-cta-btn:hover {
  background-color: #0a5f83;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

/* ===== Pages intérieures ===== */

.page-main {
  flex: 1;
  width: 100%;
}

.page {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8rem var(--gap) 9.6rem;
  text-align: center;
}

.page-label {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 1.6rem;
}

.page h1 {
  font-size: clamp(3rem, 5vw, 4.4rem);
  font-weight: 800;
  color: var(--color-darker-gray);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 2.4rem;
}

.page-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.9rem;
  color: var(--color-secondary-text);
  max-width: 640px;
  margin: 0 auto;
}

.page-cta {
  margin-top: 5.6rem;
}

/* Bloc photo + texte (croquis : photo collée au bord gauche,
   juste sous la barre, contenu à droite, ligne de séparation en bas) */

.split-bleed {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  width: 100%;
  border-bottom: 1px solid var(--color-light-gray);
}

.split-bleed-media {
  position: relative;
  min-height: 40rem;
  /* Bord droit en biais, comme un « / » (plus large en haut) */
  clip-path: polygon(0 0, 100% 0, calc(100% - 4.8rem) 100%, 0 100%);
}

.split-bleed-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Photo légèrement floutée (le scale évite les bords transparents du blur,
   le clip-path du conteneur rogne le débord) */
.split-bleed-media img.img-flou {
  filter: blur(4px);
  transform: scale(1.06);
}

.split-bleed-body {
  align-self: center;
  max-width: 64rem;
  padding: 7.2rem 5.6rem;
  text-align: left;
}

.split-bleed-body .page-label { margin-bottom: 1.2rem; }

.split-bleed-body h1 {
  margin-bottom: 2rem;
  text-align: left;
}

.split-bleed-body p {
  font-size: 1.6rem;
  line-height: 1.75;
  color: var(--color-primary-text);
  margin-bottom: 1.8rem;
}

.split-bleed-body p:last-child { margin-bottom: 0; }

/* Section centrée sous le bloc photo/texte */

.page-section {
  margin-top: 9.6rem;
}

.page > .page-section:first-child { margin-top: 0; }

.page-section h2 {
  font-size: clamp(2.4rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--color-darker-gray);
  letter-spacing: -0.02em;
  margin-bottom: 2.4rem;
}

.page-section > p {
  font-size: 1.6rem;
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto 1.8rem;
}

/* FAQ */

.faq-list {
  margin-top: 4.8rem;
  text-align: left;
  border-top: 1px solid var(--color-light-gray);
}

.faq-item {
  border-bottom: 1px solid var(--color-light-gray);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2.4rem;
  padding: 2.4rem 0.4rem;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-darker-gray);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-accent);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover { color: var(--color-accent); }

.faq-answer {
  padding: 0 0.4rem 2.4rem;
  font-size: 1.6rem;
  line-height: 1.75;
  color: var(--color-primary-text);
  max-width: 680px;
}

/* Publications */

.pub-list {
  margin-top: 5.6rem;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  text-align: left;
}

.pub-item {
  background: #fff;
  border: 1px solid var(--color-light-gray);
  border-radius: 4px;
  padding: 3.2rem;
}

.pub-item h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-darker-gray);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.pub-meta {
  font-size: 1.4rem;
  color: var(--color-secondary-text);
  margin-bottom: 2rem;
}

.pub-link {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

.pub-link:hover { opacity: 0.8; }

/* ===== Footer ===== */

.footer {
  padding: 3.2rem var(--gap);
  border-top: 1px solid var(--color-light-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.3rem;
  color: var(--color-secondary-text);
}

.footer a {
  color: var(--color-primary-text);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
}

.footer a:hover { opacity: 0.8; }

/* ===== Divers ===== */

@media (prefers-reduced-motion: reduce) {
  .hero-main h1, .hero-main p, .hero-cta { animation: none; opacity: 1; }
}

@media (max-width: 767px) {
  :root { --gap: 2.4rem; }
  .gh-head {
    flex-direction: column;
    gap: 1.6rem;
    padding-top: 2.4rem;
  }
  .gh-head-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem 2rem;
  }
  .gh-head-nav a { font-size: 1.2rem; }
  .hero-main { padding-bottom: 8rem; }
  .page { padding: 5.6rem var(--gap) 6.4rem; }
  .split-bleed { grid-template-columns: 1fr; }
  .split-bleed-media {
    min-height: 32rem;
    /* Empilé sur mobile : le biais passe sur le bord bas, même sens */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 2.4rem));
  }
  .split-bleed-body { padding: 4.8rem var(--gap); }
  .page-section { margin-top: 6.4rem; }
  .footer { flex-direction: column; gap: 1.2rem; }
}
