/* IDG Process — Ismaël Diallo-Guinot
   Feuille de style unique, mobile d'abord. */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #123B3A;
  --teal-deep: #0E2E2D;
  --teal-line: #2C5654;
  --gold: #D9A441;
  --gold-light: #E9C77F;
  --ochre: #8A5F12;
  --cream: #FBFAF7;
  --sand: #F1EEE6;
  --sand-chip: #F3EBDA;
  --mint: #E6EEEC;
  --ink: #24302F;
  --muted: #4E5E5C;
  --mist: #CFE0DD;
  --border: #E4E1D8;
  --error: #A3261A;
  --ok: #1E6B45;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 96px);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 6px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--teal); padding: 12px 18px; font-weight: 700; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap--wide { max-width: 1440px; }

.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--ochre); margin-bottom: 8px;
}
.on-dark .kicker { color: var(--gold); }

.section-title {
  font-size: clamp(28px, 4.2vw, 38px); line-height: 1.2; font-weight: 800; color: var(--teal);
  max-width: 760px; margin-bottom: clamp(32px, 5vw, 48px);
}
.on-dark .section-title { color: #fff; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 8px;
  font: inherit; font-size: 15px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--gold { background: var(--gold); color: var(--teal); }
.btn--gold:hover { background: var(--gold-light); }
.btn--ghost { border-color: var(--mist); color: #fff; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- En-tête & navigation ---------- */
.site-header { background: var(--teal); color: #fff; }

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--teal); border-bottom: 1px solid var(--teal-line);
}
body { padding-top: 73px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand__mark {
  width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--gold);
  display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--gold); flex: none;
}
.brand__name { font-weight: 700; font-size: 16px; letter-spacing: .3px; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 8px; border: 2px solid var(--teal-line);
  background: transparent; color: #fff; cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--teal); border-bottom: 1px solid var(--teal-line);
  padding: 8px var(--gutter) 20px;
}
.nav.is-open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nav a {
  display: block; padding: 14px 4px; color: var(--mist); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--teal-line);
}
.nav a:hover { color: #fff; }
.nav .nav__cta { margin-top: 14px; border: 0; text-align: center; background: var(--gold); color: var(--teal); border-radius: 8px; font-weight: 700; }
.nav .nav__cta:hover { background: var(--gold-light); color: var(--teal); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav { display: block; position: static; padding: 0; border: 0; background: none; }
  .nav ul { flex-direction: row; align-items: center; gap: 28px; }
  .nav a { border: 0; padding: 10px 0; font-size: 14px; }
  .nav .nav__cta { margin: 0; padding: 10px 20px; }
}

/* ---------- Héro ---------- */
.hero { display: grid; gap: 48px; padding-top: clamp(40px, 6vw, 64px); padding-bottom: 56px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.05fr 1fr; gap: 56px; padding-bottom: 72px; } }

.hero__title { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; font-weight: 800; letter-spacing: -.5px; margin: 8px 0 24px; }
.hero__lead { font-size: clamp(16px, 1.6vw, 17px); color: var(--mist); max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__media { position: relative; }
.photo-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 3px solid var(--gold); }
.photo-frame img { width: 100%; }
.tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--teal); color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 5px 10px; border-radius: var(--radius-sm);
}
.photo-inset {
  position: relative; width: 70%; margin: -40px 0 0 auto;
  background: #fff; border-radius: 14px; border: 3px solid var(--teal);
  box-shadow: 0 14px 34px rgba(0,0,0,.35); overflow: hidden;
}
.photo-inset img { padding: 36px 10px 8px; }

/* ---------- Domaines ---------- */
.domains { padding-bottom: clamp(56px, 7vw, 72px); }
.domains .kicker { color: var(--gold); margin-bottom: 18px; }
.domains__grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 960px) { .domains__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.domain { background: var(--teal-deep); border: 1px solid var(--teal-line); border-radius: var(--radius-md); overflow: hidden; }
.domain img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.domain figcaption { padding: 12px 14px 14px; }
.domain__name { font-size: 15px; font-weight: 700; color: #fff; }
.domain__detail { font-size: 13px; color: var(--mist); margin-top: 2px; }

/* ---------- Chiffres ---------- */
.figures { background: var(--teal-deep); color: #fff; }
.figures__grid { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 36px; padding-bottom: 36px; }
@media (min-width: 960px) { .figures__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.figure__value { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--gold); line-height: 1.1; }
.figure__label { font-size: 14px; color: var(--mist); }

/* ---------- Sections ---------- */
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--teal); color: #fff; }

/* ---------- Réalisations ---------- */
.cards { display: grid; gap: 24px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.card__media { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #fff; }
.card__media--contain { object-fit: contain; padding: 10px; }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.card__badge { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-sm); background: var(--sand-chip); color: #5A4214; }
.card__badge--kpi { background: var(--teal); color: var(--gold-light); }
.card h3 { font-size: 20px; font-weight: 700; color: var(--teal); line-height: 1.3; }
.card p { font-size: 15px; color: var(--muted); }

/* ---------- Usinage ---------- */
.lead-dark { font-size: 17px; color: var(--mist); max-width: 760px; margin: -24px 0 40px; }
.shots { display: grid; gap: 24px; margin-bottom: 56px; }
@media (min-width: 900px) { .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.shot { background: var(--teal-deep); border: 1px solid var(--teal-line); border-radius: var(--radius-lg); overflow: hidden; }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shot figcaption { padding: 18px 22px 22px; }
.shot h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.shot p { font-size: 15px; color: var(--mist); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { border-top: 3px solid var(--gold); padding-top: 16px; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 30px; font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 10px; }
.steps h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.steps p { font-size: 14px; color: var(--mist); }

/* ---------- Parcours ---------- */
.timeline { display: flex; flex-direction: column; gap: 20px; }
.job { display: grid; gap: 6px 36px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 26px clamp(20px, 3vw, 36px); }
@media (min-width: 760px) { .job { grid-template-columns: 180px minmax(0, 1fr); } }
.job__date { font-weight: 700; color: var(--ochre); font-size: 17px; }
.job h3 { font-size: clamp(19px, 2.2vw, 22px); font-weight: 700; color: var(--teal); }
.job__company { font-size: 16px; font-weight: 600; color: var(--muted); margin: 2px 0 10px; }
.job p { font-size: 17px; color: var(--muted); }
.job p + p { margin-top: 8px; }
.job strong { color: var(--teal); }

/* ---------- Compétences ---------- */
.skills { display: grid; gap: 24px; }
@media (min-width: 700px) { .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .skills { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.skill { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.skill h3 { font-size: 17px; font-weight: 700; color: var(--teal); margin-bottom: 14px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--mint); color: var(--teal); font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: var(--radius-sm); }
.chips--sand li { background: var(--sand-chip); color: #5A4214; }
.skill--dark { background: var(--teal); border-color: var(--teal); color: #fff; }
.skill--dark h3 { color: var(--gold); }
.skill--dark ul { margin: 0; padding-left: 18px; }
.skill--dark li + li { margin-top: 6px; }

/* ---------- Formation & langues ---------- */
.edu-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .edu-grid { grid-template-columns: 2fr 1fr; } }
.edu-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--teal); margin-bottom: 28px; }
.degrees { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.degrees li { display: grid; gap: 2px 24px; }
@media (min-width: 560px) { .degrees li { grid-template-columns: 120px minmax(0, 1fr); } }
.degrees__year { font-weight: 700; color: var(--ochre); }
.degrees strong { color: var(--teal); }
.langs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.langs li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 18px; }
.langs strong { color: var(--teal); }
.langs span { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 56px; } }
.contact-intro p { font-size: 17px; color: var(--mist); margin-bottom: 24px; }
.contact-intro .section-title { margin-bottom: 20px; }

.form { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 32px); }
.form__row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; color: var(--teal); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input,
.field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  border: 2px solid #C9D3D1; border-radius: 8px; padding: 12px 14px; background: #fff; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(217,164,65,.45); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { font-size: 13px; color: var(--error); min-height: 0; }
.field__error:empty { display: none; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--teal); }
.consent a { color: var(--teal); }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form__status { margin-top: 16px; padding: 14px 16px; border-radius: 8px; font-size: 15px; font-weight: 600; }
.form__status:empty { display: none; }
.form__status--ok { background: #E3F2EA; color: var(--ok); }
.form__status--error { background: #FBE7E4; color: var(--error); }

.contact-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--teal); color: var(--mist); border-top: 1px solid var(--teal-line); font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 22px; }
.site-footer a { color: var(--mist); }
.site-footer a:hover { color: #fff; }

/* ---------- Pages simples (mentions légales) ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: var(--section-y) var(--gutter); }
.legal h1 { font-size: clamp(28px, 4vw, 38px); color: var(--teal); margin-bottom: 24px; }
.legal h2 { font-size: 20px; color: var(--teal); margin: 32px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 10px; }
