/* ==========================================================================
   Portfolio — Bouckita Eliezer Lagrâce Genade
   Direction artistique : Executive Premium
   Une seule famille de caractères sur tout le site : Times New Roman.
   ========================================================================== */

:root {
  --navy: #101D32;
  --gold: #C6A568;
  --ivory: #F5F1E8;
  --white: #FFFFFF;
  --slate: #26364D;
  --grey: #A6A29A;

  /* Dérivés (transparences des couleurs ci-dessus uniquement) */
  --line-dark: rgba(16, 29, 50, 0.14);
  --line-light: rgba(245, 241, 232, 0.16);
  --gold-line: rgba(198, 165, 104, 0.45);
  --shadow: 0 18px 40px -24px rgba(16, 29, 50, 0.35);

  --font: "Times New Roman", Times, serif;
  --container: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--font);
  font-size: 1.1875rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

/* Les contrôles de formulaire n'héritent pas de la police par défaut. */
button, input, textarea, select, optgroup, dialog, legend, table, pre, code, kbd, samp {
  font-family: var(--font);
}
button, input, textarea, select { font-size: inherit; line-height: inherit; color: inherit; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.section--ivory :focus-visible,
.section--white :focus-visible { outline-color: var(--navy); }

::selection { background: var(--gold); color: var(--navy); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.icon { flex: none; }

/* ---------- Éléments typographiques ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
}
.eyebrow::before {
  content: "";
  width: 2.5rem; height: 1px;
  background: var(--gold);
}
.eyebrow__num {
  font-style: italic;
  letter-spacing: 0.08em;
  font-size: 1rem;
}
.eyebrow--light,
.section--navy .eyebrow { color: var(--gold); }

.section { padding-block: var(--section); }
.section--ivory { background: var(--ivory); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--ivory); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 {
  margin-top: 1.25rem;
  font-size: clamp(2rem, 4.2vw, 3.125rem);
  letter-spacing: -0.01em;
}
.section-head__intro {
  margin-top: 1.25rem;
  max-width: 38rem;
  color: var(--slate);
  font-size: 1.25rem;
  font-style: italic;
}
.section--navy .section-head__intro { color: var(--ivory); opacity: 0.85; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 1px;
  background: none;
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn .icon { transition: transform 0.25s var(--ease); }
.btn--gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn--gold:hover { background: var(--ivory); border-color: var(--ivory); }
.btn--gold:hover .icon { transform: translateX(4px); }
.btn--outline { border-color: var(--gold-line); color: var(--ivory); }
.btn--outline:hover { border-color: var(--gold); background: var(--gold); color: var(--navy); }
.btn--text {
  padding-inline: 0.25rem;
  color: var(--ivory);
  border-bottom-color: var(--gold-line);
}
.btn--text:hover { border-bottom-color: var(--gold); color: var(--gold); }
.btn--navy { background: var(--navy); border-color: var(--navy); color: var(--ivory); }
.btn--navy:hover { background: var(--slate); border-color: var(--slate); }
.btn--navy:hover .icon { transform: translateX(4px); }
.btn--small { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.8125rem; gap: 0.5rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.5rem 0;
  border: 0;
  border-bottom: 1px solid var(--gold);
  background: none;
  color: var(--navy);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.link-arrow .icon { transition: transform 0.25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line-dark);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.tags--light li { border-color: var(--gold-line); color: var(--ivory); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--ivory);
  border-bottom: 1px solid var(--line-light);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.brand__sep { width: 1px; height: 1.1rem; background: var(--gold); }
.brand__sub { color: var(--gold); letter-spacing: 0.14em; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav__list { display: flex; gap: clamp(1rem, 1.8vw, 1.75rem); }
.site-nav__list a {
  position: relative;
  display: block;
  white-space: nowrap;
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.2rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav__list a:hover,
.site-nav__list a[aria-current="true"] { color: var(--gold); }
.site-nav__list a:hover::after,
.site-nav__list a[aria-current="true"]::after { transform: scaleX(1); }

.site-nav__tools { display: flex; align-items: center; gap: 1.25rem; }
.lang-switch {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.5rem 0.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--grey);
}
.lang-switch [aria-current] { color: var(--gold); }
.lang-switch:hover span:last-child { color: var(--ivory); text-decoration: underline; text-underline-offset: 4px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: var(--ivory);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 6px; width: 1.6rem; }
.nav-toggle__bars span {
  height: 1px;
  background: var(--gold);
  transition: transform 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1279px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
    padding: 1.5rem var(--gutter) 2.5rem;
    background: var(--navy);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  .js .site-nav__list { flex-direction: column; gap: 0; }
  .js .site-nav__list a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line-light);
    font-size: 1.375rem;
    letter-spacing: 0.04em;
    text-transform: none;
  }
  .js .site-nav__list a::after { display: none; }
  .js .site-nav__tools { justify-content: space-between; }

  /* Sans JavaScript : la navigation reste accessible, en ligne défilante. */
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 0.75rem; }
  html:not(.js) .site-nav { width: 100%; overflow-x: auto; }
  html:not(.js) .site-nav__list a { white-space: nowrap; }
}

@media (max-width: 400px) {
  .brand { gap: 0.6rem; font-size: 1rem; letter-spacing: 0.14em; }
  .nav-toggle { gap: 0.6rem; letter-spacing: 0.12em; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--ivory);
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.hero h1 {
  margin-top: 1.75rem;
  font-size: clamp(1.75rem, 5.1vw, 3.75rem);
  letter-spacing: 0.035em;
  line-height: 1.08;
  text-transform: uppercase;
}
.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--gold); }
.hero__positioning {
  margin-top: 1.5rem;
  font-size: clamp(0.9375rem, 1.6vw, 1.125rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory);
}
.hero__tagline {
  margin-top: 2rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--gold);
  max-width: 34rem;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-style: italic;
  line-height: 1.4;
}
.hero__intro {
  margin-top: 1.5rem;
  max-width: 36rem;
  color: var(--ivory);
  opacity: 0.82;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 2.5rem;
}
.hero__actions .btn { padding-inline: 1.35rem; letter-spacing: 0.14em; }

.hero__portrait {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 21rem;
}
.hero__portrait::before {
  content: "";
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 1px solid var(--gold);
}
.hero__portrait img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 12%;
  background: var(--slate);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid var(--line-light);
}
.hero__facts > div { padding: 1.5rem 1.5rem 1.75rem 0; }
.hero__facts > div + div { padding-left: 1.5rem; border-left: 1px solid var(--line-light); }
.hero__facts dt {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__facts dd { margin-top: 0.4rem; font-size: 1.0625rem; line-height: 1.4; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__portrait { order: -1; justify-self: start; max-width: 11.5rem; }
  .hero__portrait::before { inset: 0.7rem -0.7rem -0.7rem 0.7rem; }
  .hero__facts { grid-template-columns: 1fr; }
  .hero__facts > div { padding: 1rem 0; }
  .hero__facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-light); }
}
@media (max-width: 520px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn--text { align-self: center; }
}

/* ---------- À propos ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.about__text p + p { margin-top: 1.25rem; }
.about__text p:first-child::first-letter {
  float: left;
  margin: 0.1em 0.12em 0 0;
  font-size: 3.6em;
  line-height: 0.8;
  color: var(--navy);
}
.about__aside {
  padding: 2rem 2rem 1rem;
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-top: 2px solid var(--gold);
}
.about__aside h3 {
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
}
.about__aside dl { margin-top: 1rem; }
.about__aside dl > div { padding: 1rem 0; border-top: 1px solid var(--line-dark); }
.about__aside dt { font-size: 0.9375rem; font-style: italic; color: var(--slate); }
.about__aside dd { margin-top: 0.15rem; line-height: 1.4; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
}

/* ---------- Expertises ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.pillar {
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2rem 2rem;
  background: var(--ivory);
  border: 1px solid var(--line-dark);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.pillar:hover { box-shadow: var(--shadow); border-color: var(--gold-line); }
.pillar__top { display: flex; justify-content: space-between; align-items: flex-start; }
.pillar__icon {
  display: grid;
  place-items: center;
  width: 3.5rem; height: 3.5rem;
  background: var(--navy);
  color: var(--gold);
}
.pillar__letter { font-size: 2.5rem; font-style: italic; line-height: 1; color: var(--gold); }
.pillar h3 { margin-top: 1.75rem; font-size: 1.625rem; }
.pillar ul { margin-top: 1.25rem; flex: 1; }
.pillar li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.5rem;
  border-top: 1px solid var(--line-dark);
  line-height: 1.4;
}
.pillar li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.25rem;
  width: 0.75rem; height: 1px;
  background: var(--gold);
}
.pillar__ground {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--navy);
  font-size: 1rem;
  font-style: italic;
  color: var(--slate);
}
.pillar__ground span {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
  font-style: normal;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ---------- Projets ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.filter {
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line-dark);
  border-radius: 1px;
  background: transparent;
  color: var(--navy);
  font-size: 0.9375rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.filter:hover { border-color: var(--navy); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--ivory); }
html:not(.js) .filters { display: none; }

.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}
.project { display: flex; }
.project > article {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line-dark);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.project > article:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.cover {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--navy);
  color: var(--ivory);
  overflow: hidden;
}
.cover[data-cat="finance"], .cover[data-cat="ai"] { background: var(--slate); }
.cover__motif {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  color: var(--gold);
  opacity: 0.5;
}
.cover__num { position: relative; font-size: 1.125rem; font-style: italic; color: var(--gold); }
.cover__name {
  position: relative;
  max-width: 52%;
  font-size: 1.375rem;
  line-height: 1.15;
}
.cover--image { padding: 0; background: var(--white); border-bottom: 1px solid var(--line-dark); }
.cover--image img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.cover--middle img { object-position: center 52%; }
.cover--center img { object-position: center; }
.cover--logo { background: var(--navy); border-bottom: 0; }
.cover--logo img { position: absolute; top: 9%; left: 50%; width: auto; height: 82%; aspect-ratio: 1; border-radius: 50%; object-position: center; transform: translateX(-50%); }

.project__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 1.5rem 1.5rem 1.75rem;
}
.project__kind {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  width: 100%;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: 0.12em;
  color: var(--navy);
}
.status::before {
  content: "";
  width: 0.5rem; height: 0.5rem;
  border: 1px solid var(--navy);
  border-radius: 50%;
}
.status--development::before { background: linear-gradient(90deg, var(--gold) 50%, transparent 50%); }
.status--live::before, .status--working::before, .status--done::before { background: var(--gold); }
.project__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.project__actions .btn--small { min-height: 2.75rem; }
.project h3 { margin-top: 0.9rem; font-size: 1.5rem; }
.project__summary { margin-top: 0.6rem; flex: 1; font-size: 1.0625rem; line-height: 1.5; color: var(--slate); }
.project__cats { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 1.1rem 0 1.25rem; }
.project__cats li { font-size: 0.875rem; font-style: italic; color: var(--slate); }
.project__cats li + li::before { content: "·"; margin-right: 1rem; margin-left: -0.6rem; color: var(--gold); }

/* Projet phare : carte horizontale sur toute la largeur. */
.project--featured { grid-column: 1 / -1; }
@media (min-width: 761px) {
  .project--featured > article { flex-direction: row; }
  .project--featured .cover { flex: 0 0 52%; aspect-ratio: auto; min-height: 19rem; padding: 2rem 2.25rem; }
  .project--featured .cover--image { padding: 0; border-bottom: 0; border-right: 1px solid var(--line-dark); }
  .project--featured .cover--image img { position: absolute; inset: 0; object-position: center; }
  .project--featured .cover__name { font-size: 2.25rem; }
  .project--featured .project__body { justify-content: center; padding: 2.5rem; }
  .project--featured h3 { font-size: 2rem; }
  .project--featured .project__summary { flex: none; font-size: 1.1875rem; }
}

@media (max-width: 1020px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .projects { grid-template-columns: 1fr; } }

/* Fiche projet (boîte de dialogue) */
.sheet {
  width: min(46rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--gold-line);
  background: var(--white);
  color: var(--navy);
  font-size: 1.125rem;
  overflow: auto;
  overscroll-behavior: contain;
}
.sheet::backdrop { background: rgba(16, 29, 50, 0.72); }
.sheet[open] { animation: sheet-in 0.3s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px); } }
.sheet__head {
  position: relative;
  padding: 2.25rem clamp(1.5rem, 5vw, 2.75rem) 2rem;
  background: var(--navy);
  color: var(--ivory);
}
.sheet__head h3 { margin: 1.25rem 3rem 0 0; font-size: clamp(1.75rem, 4vw, 2.375rem); }
.sheet__head > p:last-of-type { margin-top: 0.75rem; font-style: italic; opacity: 0.85; }
.sheet__close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--gold-line);
  border-radius: 1px;
  background: none;
  color: var(--ivory);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.sheet__close:hover { background: var(--gold); color: var(--navy); }
.sheet__body { padding: 1rem clamp(1.5rem, 5vw, 2.75rem) 2rem; }
.sheet__fields > div {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.sheet__fields dt {
  padding-top: 0.3rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}
@media (max-width: 560px) { .sheet__fields > div { grid-template-columns: 1fr; } }

.sheet__link { margin-top: 1.5rem; padding: 1.5rem; background: var(--ivory); border-left: 2px solid var(--gold); }
.sheet__pitch { display: block; margin-bottom: 1.1rem; font-size: 1.1875rem; font-style: italic; }
.sheet__subtitle {
  margin: 2rem 0 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}
.sheet__video { max-width: 19rem; margin: 0 auto 1.5rem; border: 1px solid var(--line-dark); background: var(--ivory); }
.sheet__video video { display: block; width: 100%; height: auto; background: var(--navy); }
.sheet__video figcaption { padding: 0.6rem 0.9rem; border-top: 1px solid var(--line-dark); font-size: 0.9375rem; font-style: italic; line-height: 1.4; color: var(--slate); }
.gallery figure { border: 1px solid var(--line-dark); background: var(--ivory); }
.gallery img { width: 100%; }
.gallery figcaption {
  padding: 0.6rem 0.9rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--slate);
}
.gallery--wide li + li { margin-top: 1rem; }
.gallery--phone {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-bottom: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}
.gallery--phone li { flex: 0 0 min(17rem, 72%); scroll-snap-align: start; }
.gallery + .project__cats { margin-top: 1.5rem; }

/* Sans JavaScript : les fiches s'affichent à la suite des cartes. */
html:not(.js) .sheet { display: block; position: static; width: auto; max-height: none; margin: 1.75rem var(--gutter) 0; }
html:not(.js) .sheet__close, html:not(.js) .link-arrow { display: none; }

/* ---------- Expériences ---------- */
.timeline { position: relative; }
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: 0 3rem;
  padding-bottom: 3rem;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: 13.5rem; top: 0.65rem; bottom: -0.65rem;
  width: 1px;
  margin-left: 1.5rem;
  background: var(--line-light);
}
.timeline__item:last-child::before { display: none; }
.timeline__item::after {
  content: "";
  position: absolute;
  left: 13.5rem; top: 0.5rem;
  width: 9px; height: 9px;
  margin-left: calc(1.5rem - 4px);
  background: var(--navy);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.timeline__dates {
  padding-top: 0.2rem;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: right;
  color: var(--gold);
}
.timeline__content h3 { font-size: 1.625rem; }
.timeline__org { margin-top: 0.3rem; font-style: italic; color: var(--grey); }
.timeline__content ul { margin-top: 1rem; max-width: 36rem; }
.timeline__content li { position: relative; padding: 0.3rem 0 0.3rem 1.5rem; opacity: 0.9; }
.timeline__content li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.05rem;
  width: 0.75rem; height: 1px;
  background: var(--gold);
}
.acquired {
  margin-top: 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line-light);
}
.acquired h3 {
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (max-width: 760px) {
  .timeline__item { grid-template-columns: 1fr; padding-left: 2rem; }
  .timeline__item::before { left: 0; margin-left: 4px; }
  .timeline__item::after { left: 0; margin-left: 0; }
  .timeline__dates { text-align: left; margin-bottom: 0.5rem; }
}

/* ---------- Formation ---------- */
.education { border-top: 1px solid var(--navy); }
.education__item {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: 0.5rem 3rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.education__dates {
  padding-top: 0.35rem;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.education__item h3 { font-size: 1.5rem; }
.education__school { margin-top: 0.3rem; font-style: italic; color: var(--slate); }
.education__note { margin-top: 0.6rem; max-width: 38rem; font-size: 1.0625rem; }

@media (max-width: 760px) {
  .education__item { grid-template-columns: 1fr; }
}

/* ---------- Compétences ---------- */
.skills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 4vw, 3.5rem);
}
.skills__group h3 {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--navy);
  font-size: 1.375rem;
}
.skills__group h3 span { font-size: 1rem; font-style: italic; color: var(--slate); }
.skills__group li { padding: 0.7rem 0; border-bottom: 1px solid var(--line-dark); line-height: 1.4; }

@media (max-width: 960px) { .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .skills { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact .section-head h2 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.channels li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line-light);
}
.channels li:last-child { border-bottom: 1px solid var(--line-light); }
.channels .icon { margin-top: 0.3rem; color: var(--gold); }
.channels span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.channels a, .channels p { display: block; width: fit-content; margin-top: 0.2rem; font-size: 1.25rem; }
.channels a + a { margin-top: 0.35rem; }
.channels a {
  text-decoration: underline;
  text-decoration-color: var(--gold-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.channels a:hover { color: var(--gold); text-decoration-color: var(--gold); }

.form {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--slate);
  border: 1px solid var(--line-light);
  border-top: 2px solid var(--gold);
}
.form h3 { margin-bottom: 1.5rem; font-size: 1.625rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
.form__trap { position: absolute; left: -9999px; }
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory);
}
.field input, .field textarea {
  display: block;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(245, 241, 232, 0.4);
  border-radius: 1px;
  background: var(--navy);
  color: var(--ivory);
  font-size: 1.125rem;
  transition: border-color 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 8.5rem; }
.field input:hover, .field textarea:hover { border-color: var(--grey); }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--gold); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__hint { font-size: 0.9375rem; font-style: italic; color: var(--ivory); opacity: 0.8; }
.form__status {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-left: 2px solid var(--gold);
  background: var(--navy);
}
.form__status a { color: var(--gold); }
.form .btn[disabled] { opacity: 0.6; cursor: progress; }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .form__row { grid-template-columns: 1fr; }
  .channels a, .channels p { font-size: 1.125rem; }
}

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--navy);
  color: var(--ivory);
  border-top: 1px solid var(--gold-line);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 2.5rem;
  padding-block: 4rem 3rem;
}
.site-footer__name { font-size: 1.375rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.3; max-width: 18rem; }
.site-footer__pos { margin-top: 0.9rem; font-size: 0.8125rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.site-footer h2 { margin-bottom: 1rem; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.site-footer__nav { columns: 2; column-gap: 2rem; }
.site-footer li { break-inside: avoid; }
.site-footer li a, .site-footer__bottom a {
  display: inline-block;
  padding: 0.3rem 0;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.site-footer li a:hover, .site-footer__bottom a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 5px; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.9375rem;
  color: var(--grey);
}
@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Page 404 ---------- */
.not-found { background: var(--navy); color: var(--ivory); }
.not-found__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  min-height: 100vh;
  max-width: 44rem;
  margin-inline: auto;
  padding: 3rem var(--gutter);
}
.not-found h1 { font-size: clamp(2.5rem, 7vw, 4rem); }
.not-found p[lang="en"] { font-style: italic; opacity: 0.8; }
.not-found__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }

/* ---------- Apparition au défilement (uniquement avec JavaScript) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .filters, .form, .skip-link, .link-arrow { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
