: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-facilitation.jpg") center / cover no-repeat;
  filter: blur(1.4px) brightness(0.6) saturate(1.15);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(7, 76, 105, 0.25),
    rgba(10, 14, 18, 0.08) 45%,
    rgba(10, 14, 18, 0.32)
  );
}

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

.hero-main h1 {
  font-size: clamp(3rem, 5.4vw, 5.6rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 3.2rem;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
  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;
}

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

/* Flèche invitant à scroller vers le contenu sous le hero */

.hero-scroll {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
  animation: bob 2.2s ease-in-out infinite;
}

.hero-scroll span {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.hero-scroll svg {
  display: block;
  padding: 0.8rem;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  box-sizing: content-box;
}

.hero-scroll:hover svg {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== 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);
}

/* Variante bouton photo : même langage que les cartes d'activité
   (image en fond, assombrie, qui s'éclaircit au survol). */
.gh-cta-btn--photo {
  position: relative;
  overflow: hidden;
  background-color: transparent;
  background-size: cover;
  background-position: center;
  isolation: isolate;
  padding: 2.8rem 6.4rem;
  font-size: 1.5rem;
}

.gh-cta-btn--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 14, 18, 0.55);
  transition: background-color 0.3s ease;
}

.gh-cta-btn--photo:hover::before {
  background: rgba(10, 14, 18, 0.25);
}

/* ===== 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: none;
  transform: none;
}

.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; }

.split-bleed-body p.split-bleed-body-spaced { margin-top: 1.4rem; }

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

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

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

.section-divider {
  margin: 9.6rem 0 0;
  border: none;
  border-top: 1px solid var(--color-light-gray);
}

.section-divider + .page-section { margin-top: 6.4rem; }

.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;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) 1fr;
  gap: 4rem;
  align-items: start;
  text-align: left;
}

.page-section h2.about-title {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.page-section > .about-layout > p.about-text {
  font-size: 2.1rem;
  line-height: 1.65;
  color: var(--color-darker-gray);
  text-align: justify;
  margin: 0;
}

.title-upper {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.about-content p:last-of-type { margin-bottom: 0; }

.about-content .page-cta { margin-top: 3.2rem; }

@media (max-width: 767px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
}

/* Quelques thématiques fréquentes */

.themes-list {
  margin-top: 4.8rem;
  text-align: left;
  display: grid;
  gap: 3.6rem;
}

.theme-block h3 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1.2rem;
}

.theme-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.theme-block li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 1.6rem;
  line-height: 1.75;
  color: var(--color-primary-text);
  margin-bottom: 0.6rem;
}

.theme-block li:last-child { margin-bottom: 0; }

.theme-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-light-gray);
}

/* 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;
}

.faq-answer:has(.faq-video) {
  max-width: none;
}

.faq-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 — hauteur dérivée de la largeur */
  background: var(--color-light-gray);
  overflow: hidden;
}

.faq-video iframe,
.faq-video > div {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  border: 0;
}

/* Onglets (Articles / Posts LinkedIn / Travaux académiques) */

.tabs { margin-top: 4.8rem; }

.tab-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tabs-nav {
  display: flex;
  gap: 3.2rem;
  border-bottom: 1px solid var(--color-light-gray);
}

.tab-label {
  cursor: pointer;
  padding-bottom: 1.6rem;
  margin-bottom: -1px;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-secondary-text);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tab-label:hover { color: var(--color-primary-text); }

.tab-panel { display: none; text-align: left; }

.tab-panel .pub-list { margin-top: 4rem; }

#tab-articles:checked ~ .tabs-nav label[for="tab-articles"],
#tab-linkedin:checked ~ .tabs-nav label[for="tab-linkedin"],
#tab-academique:checked ~ .tabs-nav label[for="tab-academique"] {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

#tab-articles:checked ~ [data-panel="articles"],
#tab-linkedin:checked ~ [data-panel="linkedin"],
#tab-academique:checked ~ [data-panel="academique"] {
  display: block;
}

.tab-empty {
  color: var(--color-secondary-text);
  font-style: italic;
}

.tab-more { margin-top: 2.4rem; }

/* Cartes d'aperçu (accueil, sous le hero) */

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.4rem;
  margin-top: 4.8rem;
  text-align: left;
}

.about-layout .teaser-grid { margin-top: 0; }

.teaser-card {
  display: block;
  background: #fff;
  border: 1px solid var(--color-light-gray);
  border-radius: 4px;
  padding: 3.2rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.2s ease;
}

.teaser-card:hover {
  box-shadow: 0 12px 40px rgba(21, 23, 26, 0.08);
  transform: translateY(-3px);
  border-color: var(--color-accent);
}

.teaser-card h3 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-darker-gray);
  margin-bottom: 1rem;
}

.teaser-card p {
  font-size: 1.5rem;
  color: var(--color-primary-text);
  line-height: 1.6;
}

/* Cartes photo : l'image de la page correspondante en fond,
   assombrie, qui s'éclaircit au survol. */
.teaser-card--photo {
  position: relative;
  overflow: hidden;
  min-height: 22rem;
  border-color: transparent;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.teaser-card--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 18, 0.6);
  transition: background-color 0.3s ease;
}

.teaser-card--photo:hover::before {
  background: rgba(10, 14, 18, 0.25);
}

.teaser-card--photo h3,
.teaser-card--photo p {
  position: relative;
  z-index: 1;
}

.teaser-card--photo h3 { color: #fff; }
.teaser-card--photo p { color: rgba(255, 255, 255, 0.9); }

.teaser-card--coaching { background-image: url("/assets/coaching-individuel.jpg"); }
.teaser-card--conseil { background-image: url("/assets/conseil-organisation.jpg"); }

/* Publications */

.pub-date {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  background: var(--color-lighter-gray);
  border-radius: 999px;
  padding: 0.3rem 1.2rem;
  margin-bottom: 1.4rem;
}

.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 h3 {
  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-links {
  display: flex;
  gap: 2.4rem;
}

.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 { animation: none; opacity: 1; }
  .hero-scroll { animation: none; }
}

@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; }
}
