/* =====================================================================
   sections.css — Contenu
   Hero, Parcours, Réalisations, Approche, Contact.
   Charger APRÈS base.css et layout.css.
   ===================================================================== */

/* --------------------------------------------------------------------- */
/* Hero                                                                  */
/* --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(620px, 86vh, 820px);
  padding-block: clamp(64px, 9vw, 116px) clamp(96px, 13vw, 160px);
  display: flex;
  align-items: flex-start;
}

/* Fond décoratif derrière le hero : faisceaux lumineux animés sur fond noir,
   dessinés en canvas par js/beams.js. */
.hero__beams {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  filter: blur(17px);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;                            /* contenu au-dessus du fond décoratif */
  margin-top: 24px;                      /* léger décalage de tout le contenu sous la nav */
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  column-gap: clamp(56px, 9vw, 132px);   /* photo écartée du texte */
  row-gap: clamp(14px, 2vw, 24px);       /* espace entre le titre et le pitch/boutons */
  align-items: start;
}

/* Colonne gauche scindée : le titre en haut (rangée 1), le reste en dessous.
   La photo garde sa hauteur naturelle (ratio 4/5), calée en haut en regard du
   titre. height:0 => elle ne compte pas dans la hauteur de la rangée : elle
   déborde librement dans l'espace vide de la colonne droite, sans écarter le
   titre du texte qui suit (contrôlé uniquement par row-gap). */
.hero__head   { grid-column: 1; grid-row: 1; margin-top: 14px; }
.hero__figure { grid-column: 2; grid-row: 1; align-self: start; height: 0; }
.hero__body {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: 22ch;
}

.hero__title-sub {
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--muted);
}

.hero__title-name {
  font-family: var(--font-hero);
  font-weight: 600;
  font-size: clamp(2.3rem, 5.8vw, 4.1rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 4px 0;
}

.hero__lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 42ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* Cadre photo : portrait circulaire, sans bordure ni décalage. */
.hero__figure { margin: 0; }
.frame {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
.frame__crop {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  overflow: hidden;
}
/* object-position : on protège le visage (cadrage vers le haut) */
.frame__crop img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.frame__placeholder {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
}

/* --------------------------------------------------------------------- */
/* Parcours                                                              */
/* --------------------------------------------------------------------- */
.path { border-top: 1px solid var(--rule); }
.path__row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
}
.path__label { color: var(--accent); padding-top: 4px; }
.path__body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.24rem;
  margin-bottom: 8px;
}
.path__body p { color: var(--muted); max-width: 56ch; }

.stack {
  margin-top: 40px;
  color: var(--muted);
  line-height: 1.9;
}
.stack__label {
  display: block;
  color: var(--fg);
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------- */
/* Réalisations — pile de cartes en profondeur                          */
/* --------------------------------------------------------------------- */
.cases-deck {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
  border-top: 1px solid var(--rule);
  padding-top: clamp(36px, 5vw, 56px);
}

.cases-deck__stage {
  position: relative;
  height: clamp(300px, 30vw, 360px);
  perspective: 1400px;
  perspective-origin: 50% 30%;
}
.cases-deck__stage:focus-visible { outline: none; }

.case-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(440px, 84vw);
  transform: translate(-50%, -50%);
  transform-origin: center center;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
  will-change: transform, opacity;
}

/* Cadre navigateur autour de la capture */
.browser {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  background: #17161A;
  box-shadow: 0 30px 64px -28px rgba(0, 0, 0, 0.6);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--rule);
}
.browser__dot {
  width: 10px; height: 10px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.browser__url {
  margin-left: 10px;
  padding: 3px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser__shot {
  display: block;
  width: 100%;
  height: auto;
}

.cases-deck__info { min-height: 220px; transition: opacity 0.18s var(--ease); }

.case__meta { color: var(--muted); margin-bottom: 14px; }
/* Pastille « travaux en cours » — plus employée actuellement, conservée
   pour marquer un projet en chantier : ajouter
   <span class="case__wip">Maquette en cours</span> dans son .case__meta. */
.case__wip {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--muted);
}
.case__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  line-height: 1.12;
  margin-bottom: 14px;
  text-wrap: balance;
}
.case__desc { color: var(--muted); max-width: 46ch; }
.case__stack { color: var(--muted); font-size: 0.86rem; margin: 16px 0 24px; }

/* Contrôles : flèches + pastilles, sous la pile */
.cases-deck__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: clamp(28px, 4vw, 40px);
}

.cases-deck__dots { display: flex; align-items: center; gap: 10px; }
.cases-deck__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--rule);
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.cases-deck__dot[aria-selected="true"] { background: var(--accent); transform: scale(1.35); }

.cases-nav {
  width: 44px;
  height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.cases-nav:hover { background: var(--fg); color: var(--paper); border-color: var(--fg); }
.cases-nav[disabled] { opacity: 0.35; cursor: default; pointer-events: none; }

/* --------------------------------------------------------------------- */
/* Méthode — bande photo en trois zones                                  */
/* --------------------------------------------------------------------- */
/* La photo couvre toute la section, titre compris : elle est posée sur
   .approach (z-index -1, donc au-dessus du fond d'appoint mais sous le
   contenu). Le fond ink ne sert plus que de repli si l'image ne charge pas. */
.approach {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.approach::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to bottom, rgba(11, 11, 12, 0.62) 0%, rgba(11, 11, 12, 0.4) 34%, rgba(11, 11, 12, 0.86) 100%),
    url("../img/approach/ecoute.webp");
  background-size: cover;
  background-position: center;
  filter: contrast(1.04) saturate(0.92);
}

/* L'en-tête pose son texte directement sur la photo : pas de filet. */
.approach .section__head {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: clamp(34px, 4.2vw, 56px);
}
.approach .section__title,
.approach .section__index span { text-shadow: 0 1px 18px rgba(11, 11, 12, 0.5); }

/* Les trois zones se partagent la photo de la section : la grille n'a plus
   de fond propre, seulement ses filets de séparation. */
.approach__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-inline: var(--gutter);
}

.approach__step {
  position: relative;
  display: flex;
  flex-direction: column;
}
/* Filet vertical entre deux zones : fin, discret, et volontairement plus
   court que l'image pour ne pas la couper de haut en bas. */
.approach__step + .approach__step::before {
  content: "";
  position: absolute;
  top: 22%;
  bottom: 22%;
  left: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.approach__panel {
  flex: 1;
  min-height: clamp(230px, 21vw, 300px);
  padding: clamp(20px, 1.9vw, 30px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.approach__title {
  font-family: var(--font-hero);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.85vw, 1.7rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 10px;
}
/* Numéro accolé au titre, en petite capitale d'accent. */
.approach__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--accent-on-ink);
  margin-right: 12px;
  vertical-align: 0.32em;
}
/* Trait d'accent sous le titre, qui se déploie au survol. */
.approach__title::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 12px;
  background: var(--accent-on-ink);
  transition: width 0.4s var(--ease);
}
.approach__step:hover .approach__title::after { width: 64px; }

.approach__text {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.97rem;
  line-height: 1.55;
  max-width: 32ch;
  text-shadow: 0 1px 14px rgba(11, 11, 12, 0.55);
}

/* --------------------------------------------------------------------- */
/* Contact                                                               */
/* --------------------------------------------------------------------- */
.contact__mail {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  margin-top: 40px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: color 0.2s var(--ease);
}
.contact__mail:hover { color: var(--accent); }

.contact__links { display: flex; gap: 26px; margin-top: 22px; }
.contact__links a {
  font-size: 0.9rem;
  color: var(--muted);
  padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat;
  transition: color 0.2s var(--ease), background-size 0.35s var(--ease);
}
.contact__links a:hover { color: var(--fg); background-size: 100% 1px; }

/* Formulaire : champs soulignés, sans cadre ni coin arrondi */
.form { display: grid; gap: 26px; }
.field { display: grid; gap: 10px; }
.field label { color: var(--muted); }
.field input,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 8px 0;
  color: var(--fg);
  resize: vertical;
  transition: border-color 0.2s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--fg); }
.field.is-invalid input,
.field.is-invalid textarea { border-bottom-color: #d4574e; }

.form__feedback { font-size: 0.88rem; color: var(--muted); min-height: 1.2em; }
.form__feedback.is-error { color: #d4574e; }
