@font-face { font-family: "Cormorant"; src: url(fonts/cormorant-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(fonts/cormorant-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(fonts/cormorant-500-italic.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans"; src: url(fonts/sourcesans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans"; src: url(fonts/sourcesans-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --navy: #0f1b2d;
  --navy-2: #16263d;
  --ivory: #f6f1e7;
  --paper: #fbf8f2;
  --ink: #1b2333;
  --muted: #4a5466;
  --brass: #c19a5b;      /* sur fond sombre */
  --brass-ink: #7a5b2c;  /* sur fond clair (contraste AA) */
  --line: #d9cfbd;
  --serif: "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Source Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.15rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--brass); color: var(--navy); padding: 8px 14px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: var(--navy); color: #e9e4da; border-bottom: 1px solid rgba(193,154,91,.25); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.nav__name { font: 600 1.45rem var(--serif); letter-spacing: .02em; text-decoration: none; color: #fff; }
.nav__links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; }
.nav__links a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.nav__links a:hover { color: var(--brass); border-color: var(--brass); }
.lang { font-size: .9rem; letter-spacing: .08em; }
.lang a, .lang span { padding: 4px 6px; text-decoration: none; }
.lang span { color: var(--brass); font-weight: 600; }

/* ---------- En-tête ---------- */
.hero { background: var(--navy); color: #e9e4da; padding: 96px 0 112px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 72px; align-items: center; position: relative; }
.eyebrow { font-size: .85rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin: 0 0 20px; }
.hero h1 { font: 500 clamp(3.2rem, 7vw, 5.6rem)/1 var(--serif); margin: 0; color: #fff; }
.hero h1 em { font-style: italic; color: var(--brass); }
.rule { width: 88px; height: 1px; background: var(--brass); margin: 32px 0; transform-origin: left; }
.hero__lead { font-size: 1.3rem; max-width: 34em; margin: 0 0 28px; color: #d8d3c8; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 0 0 40px; font-size: 1rem; color: #fff; }
.hero__tags li::before { content: "—"; color: var(--brass); margin-right: 8px; }
.btns { display: flex; flex-wrap: wrap; gap: 16px; }
.btn { display: inline-block; padding: 14px 28px; font: 600 1rem var(--sans); letter-spacing: .04em; text-decoration: none; border: 1px solid var(--brass); transition: background .2s, color .2s; }
.btn--solid { background: var(--brass); color: var(--navy); }
.btn--solid:hover { background: #d4b27a; }
.btn--ghost { color: #fff; }
.btn--ghost:hover { background: rgba(193,154,91,.15); }

.portrait { position: relative; justify-self: end; max-width: 360px; }
/* cadre laiton décalé derrière la photo */
.portrait::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--brass); }
.portrait img { position: relative; filter: saturate(.85) contrast(1.03); }

/* ---------- Chiffres clés ---------- */
.figures { background: var(--ivory); border-bottom: 1px solid var(--line); }
.figures ul { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.figures li { padding: 44px 28px; border-left: 1px solid var(--line); }
.figures li:first-child { border-left: 0; padding-left: 0; }
.figures strong { display: block; font: 600 3.4rem/1 var(--serif); color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.figures span { display: block; margin-top: 10px; font-size: 1rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section__head { display: grid; grid-template-columns: 80px 1fr; align-items: baseline; margin-bottom: 56px; }
.section__num { font: 600 1rem var(--sans); letter-spacing: .12em; color: var(--brass-ink); }
.section h2 { font: 500 clamp(2.4rem, 4.5vw, 3.4rem)/1.1 var(--serif); margin: 0; color: var(--navy); }

/* ---------- Frise d'expérience ---------- */
.timeline { list-style: none; margin: 0 0 0 80px; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--brass-ink); transform-origin: top; transition: transform 1.6s ease; }
.js .timeline:not(.is-visible)::before { transform: scaleY(0); }
.job { position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 40px; padding: 0 0 64px 48px; }
.job:last-child { padding-bottom: 0; }
.job::before { content: ""; position: absolute; left: -6px; top: 10px; width: 11px; height: 11px; background: var(--paper); border: 1px solid var(--brass-ink); transform: rotate(45deg); }
.job__date { font-size: .95rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-ink); padding-top: 4px; }
.job h3 { font: 600 2rem/1.15 var(--serif); margin: 0; color: var(--navy); }
.job__role { margin: 4px 0 18px; font-weight: 600; color: var(--muted); }
.job ul { margin: 0; padding: 0; list-style: none; }
.job li { padding-left: 22px; position: relative; margin-bottom: 8px; }
.job li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: var(--brass-ink); }

/* ---------- Variantes de fond ---------- */
.section--ivory { background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--ivory .job::before { background: var(--ivory); }
.section--dark { background: var(--navy); color: #d8d3c8; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section__num { color: var(--brass); }
.indent { margin-left: 80px; }

/* ---------- Profil ---------- */
.quote { font: italic 500 clamp(1.6rem, 2.6vw, 2.1rem)/1.35 var(--serif); max-width: 30em; margin: 0 0 56px; color: var(--navy); }
.section--dark .quote { color: #fff; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: p; }
.pillars li { border-top: 1px solid var(--navy); padding-top: 20px; counter-increment: p; }
.pillars li::before { content: "0" counter(p); font: 600 .95rem var(--sans); letter-spacing: .1em; color: var(--brass-ink); }
.pillars h3 { font: 600 1.6rem/1.2 var(--serif); color: var(--navy); margin: 8px 0 10px; }
.pillars p { margin: 0; color: var(--muted); }

/* ---------- Colonnes génériques (formation, engagements, compétences) ---------- */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.cols--2 { grid-template-columns: 1fr 1fr; }
.entry__meta { margin: 0 0 6px; font-size: .9rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-ink); }
.entry h3, .project h3 { font: 600 1.75rem/1.15 var(--serif); margin: 0 0 6px; color: var(--navy); }
.entry__sub { margin: 0 0 14px; font-weight: 600; color: var(--muted); }
.entry p:not(.entry__meta):not(.entry__sub) { margin: 0 0 12px; }
.entry a { color: var(--brass-ink); }

.col__title { font: 600 .95rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass) !important; margin: 0 0 16px; }
.col__title--gap { margin-top: 40px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid rgba(193,154,91,.22); color: #fff; }
.list small { color: #a9a396; font-size: .9rem; }
.list--levels li { display: flex; justify-content: space-between; }
.list--levels b { font: 600 1.2rem var(--serif); color: var(--brass); font-variant-numeric: lining-nums; }

/* ---------- Projets ---------- */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.project { border: 1px solid var(--line); background: #fff; padding: 36px; transition: border-color .25s, transform .25s; }
.project:hover { border-color: var(--brass-ink); transform: translateY(-3px); }
.project p { margin: 0 0 12px; }
.project__note { font-size: 1rem; color: var(--muted); font-style: italic; }
.more { margin-top: 40px; }
.link--ink { color: var(--brass-ink); border-color: var(--brass-ink); }

/* ---------- Page Projets ---------- */
.hero--page { padding: 72px 0 80px; }
.hero--page .wrap { grid-template-columns: 1fr; }
.nav__links a[aria-current] { color: var(--brass); border-color: var(--brass); }
.case__lead { max-width: 40em; margin: 0 0 48px; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 56px; }
.shot { margin: 0; }
.shot--wide { grid-column: 1 / -1; }
.shot a { display: block; border: 1px solid var(--line); background: #fff; padding: 8px; transition: border-color .25s; }
.shot a:hover { border-color: var(--brass-ink); }
.shot a { cursor: zoom-in; }
.lightbox { padding: 0; border: 0; background: none; max-width: 94vw; max-height: 92vh; overflow: visible; cursor: zoom-out; }
.lightbox::backdrop { background: rgba(10, 20, 34, .9); }
.lightbox img { max-width: 94vw; max-height: 92vh; width: auto; border: 1px solid var(--brass); }
.lightbox__close { position: fixed; top: 12px; right: 20px; font: 400 2.6rem/1 var(--sans); color: #fff; background: none; border: 0; cursor: pointer; }
.shot figcaption { margin-top: 10px; font-size: .95rem; color: var(--muted); }
.eyebrow a { color: inherit; text-decoration: none; border-bottom: 1px solid; }
.project__more { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--brass-ink); border-bottom: 1px solid; text-decoration: none; }
.project__more::after { content: " →"; }
/* carte entièrement cliquable sur la page liste */
.project--card { display: block; color: inherit; text-decoration: none; }
.project--card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; border: 1px solid var(--line); margin-bottom: 28px; }
.project--card h2 { font: 600 1.75rem/1.15 var(--serif); margin: 0 0 6px; color: var(--navy); }
/* projet phare : toute la largeur, capture à gauche et texte à droite sur la page liste */
.project--feature { grid-column: 1 / -1; }
.project--card.project--feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.project--card.project--feature img { margin: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact .quote { margin-bottom: 32px; }
.link { color: var(--brass); text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: 2px; }
.form { display: grid; gap: 20px; }
.form label { display: grid; gap: 6px; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: #b9b3a6; }
.form input, .form textarea { font: 400 1.1rem var(--sans); color: #fff; background: var(--navy-2); border: 1px solid rgba(193,154,91,.35); padding: 12px 14px; text-transform: none; letter-spacing: 0; }
.form input:focus, .form textarea:focus { border-color: var(--brass); outline: none; }
.form .btn { justify-self: start; cursor: pointer; }
.hp { position: absolute; left: -9999px; }
.form__status { margin: 0; padding: 12px 16px; border-left: 3px solid var(--brass); background: var(--navy-2); color: #fff; }
.form__status--erreur { border-color: #d9826b; }
.form__note { margin: 0; font-size: .9rem; color: #b9b3a6; }

.footer { background: #0a1422; color: #8f8a7f; font-size: .95rem; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 28px; padding-bottom: 28px; }
.footer p { margin: 0; }
.footer__links a { color: #c9c3b6; text-decoration: none; border-bottom: 1px solid rgba(193,154,91,.4); }
.footer__links a:hover { color: var(--brass); }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 20; width: 48px; height: 48px; font: 600 1.4rem/1 var(--sans); color: var(--navy); background: var(--brass); border: 0; cursor: pointer; box-shadow: 0 4px 14px rgba(15,27,45,.25); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s, background .2s; }
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #d4b27a; }

/* ---------- Apparition au défilement (seulement si JS actif) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero .rule { transform: scaleX(0); transition: transform 1s .3s ease; }
.js .hero.is-ready .rule { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .timeline:not(.is-visible)::before, .js .hero .rule { transform: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .hero { padding: 56px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .portrait { justify-self: start; max-width: 190px; order: -1; }
  .portrait::before { inset: 12px -12px -12px 12px; }
  .figures ul { grid-template-columns: 1fr 1fr; }
  .figures li, .figures li:first-child { padding: 28px 16px; border-left: 0; border-top: 1px solid var(--line); }
  .figures li:nth-child(-n+2) { border-top: 0; }
  .figures li:nth-child(even) { border-left: 1px solid var(--line); }
  .section { padding: 72px 0; }
  .section__head { grid-template-columns: 1fr; gap: 6px; margin-bottom: 40px; }
  .timeline { margin-left: 6px; }
  .job { grid-template-columns: 1fr; gap: 6px; padding-left: 32px; }
  .indent { margin-left: 0; }
  .pillars, .cols, .projects, .contact, .shots { grid-template-columns: 1fr; gap: 40px; }
  .hero--page { padding: 48px 0 56px; }
  .project--card.project--feature { grid-template-columns: 1fr; gap: 28px; }
  .project { padding: 28px 22px; }
}
