/* ==========================================================================
   Polices hébergées sur ce site (aucune requête vers Google), sous-ensemble latin.
   Bricolage Grotesque et Manrope sont des polices variables (une seule police par famille).
   ========================================================================== */
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   polounovsky.fr — feuille de style unique
   Palette C « Pétrole & sable » (contrastes WCAG AA vérifiés)
   ========================================================================== */

:root {
  --petrol: #264653;       /* fonds sombres */
  --petrol-deep: #1B3540;  /* blocs sombres, terminal */
  --petrol-card: #2E5664;  /* cartes sur fond sombre */
  --ink: #1F3540;          /* texte principal */
  --muted: #53626A;        /* texte secondaire (≥ 4,8:1) */
  --sand: #F4F1EA;        /* fond de page */
  --sand-2: #EEEAE1;      /* sections alternées */
  --paper: #FFFFFF;
  --paper-warm: #FBFAF6;
  --line: #DDD5C6;
  --field: #7D7466;        /* bordures de champs (4,6:1) */
  --teal: #1E6F66;         /* boutons, liens (blanc dessus : 5,96:1) */
  --teal-deco: #2A9D8F;    /* décor uniquement */
  --teal-tint: #E3F0EC;
  --mint: #6FD3C4;         /* accents sur fond sombre */
  --mist: #C9D9DD;         /* texte sur fond sombre */
  --mist-2: #9FC3C9;
  --shot: #E6E0D4;
  --danger: #9B2C2C;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 16px;
  --shadow: 0 12px 40px rgba(38, 70, 83, 0.12);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.5;
}

img { max-width: 100%; height: auto; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--petrol); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #FFFFFF;
}
.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--mint);
  box-shadow: 0 0 0 6px var(--petrol);
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: #FFFFFF; color: var(--petrol); padding: 12px 18px;
  border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Structure ---------- */
.wrap { max-width: 1200px; margin: 0 auto; }
.section { padding: 80px 24px; }
.section--alt { background: var(--sand-2); }
.section--tight { padding-top: 0; padding-bottom: 96px; }

.eyebrow {
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  color: var(--teal); letter-spacing: 0.02em;
}
.on-dark .eyebrow, .hero .eyebrow, .ia .eyebrow { color: var(--mint); }

.h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.01em;
}
.lead { font-size: 19px; line-height: 1.6; color: var(--mist); max-width: 720px; }

.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.section-head p:not(.eyebrow) { font-size: 18px; line-height: 1.6; color: var(--muted); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 16px 26px; border-radius: 10px; border: 2px solid transparent;
  font-family: inherit; cursor: pointer; line-height: 1.2;
}
.btn--primary { background: var(--teal); color: #FFFFFF; }
.btn--primary:hover { background: #185a53; color: #FFFFFF; }
.btn--ghost { color: #FFFFFF; border-color: var(--mist-2); background: var(--petrol-deep); }  /* fond plein, sans transparence */
.btn--ghost:hover { background: var(--petrol-card); color: #FFFFFF; }
.btn--lg { padding: 18px 30px; font-size: 17px; }
.link-more { align-self: flex-start; font-weight: 700; font-size: 16px; padding: 12px 0; }

/* ---------- En-tête ---------- */
.site-header { background: var(--petrol); color: #FFFFFF; }
.site-header__inner {
  width: min(1200px, 100% - 48px); margin: 0 auto; padding: 18px 0;   /* même largeur et mêmes bords que le contenu */
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px; color: #FFFFFF; text-decoration: none; min-height: 44px;
}
.brand:hover { color: #FFFFFF; }
.brand__mark {
  width: 36px; height: 36px; border-radius: 8px; background: var(--teal); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 15px; font-weight: 500;
}
.brand__mark svg { display: block; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: 0.02em; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nav a {
  color: #FFFFFF; text-decoration: none; padding: 12px 14px; font-weight: 600; font-size: 15px;
  border-radius: 8px;
}
.nav a:hover { background: rgba(255, 255, 255, 0.1); color: #FFFFFF; }
/* Page active : même pastille arrondie que le survol, couleurs inversées (fond clair, texte foncé) */
.nav a[aria-current="page"], .nav a[aria-current="page"]:hover { background: var(--sand); color: var(--petrol); }
.nav .nav__cta { background: var(--teal); padding: 12px 18px; font-weight: 700; border-radius: 8px; }
.nav .nav__cta:hover { background: #185a53; }

/* Bouton du menu mobile (caché sur grand écran) */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 10px; cursor: pointer;
  background: transparent; color: #FFFFFF; border: 1px solid rgba(255, 255, 255, 0.35); padding: 0;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.1); }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (max-width: 760px) {
  .site-header__inner { width: calc(100% - 40px); padding: 12px 0; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav { display: none; flex: 0 0 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 12px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
  .js .nav.is-open { display: flex; }
  .js .nav a { padding: 16px 8px; font-size: 17px; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .js .nav a[aria-current="page"] { border-radius: 8px; margin: 2px 0; border-bottom-color: transparent; }
  .js .nav .nav__cta { margin-top: 12px; text-align: center; border-bottom: 0; border-radius: 10px; padding: 16px; }
  .brand__name { font-size: 18px; }
}

/* ---------- Fil d'Ariane ---------- */
.crumbs { background: var(--petrol); padding: 0 24px; }
.crumbs ol {
  max-width: 1200px; margin: 0 auto; padding: 8px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--mist-2);
}
.crumbs a { color: var(--mint); }
.crumbs a:hover { color: #FFFFFF; }

/* ---------- Hero ---------- */
.hero { background: var(--petrol); color: #FFFFFF; padding: 72px 24px 96px; }
.hero--page { padding: 48px 24px 72px; }
.hero--contact { padding-bottom: 140px; }
.hero--about { padding-bottom: 80px; }
.hero__inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero--page .hero__text { gap: 20px; }
.hero--page .h1 { font-size: clamp(40px, 5.5vw, 60px); }
.hero .lead { color: var(--mist); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.terminal {
  flex: 1 1 420px; min-width: 0; background: var(--petrol-deep); border-radius: var(--radius);
  padding: 28px; font-family: var(--font-mono); font-size: 15px; line-height: 1.9;
  color: var(--mist); border: 1px solid var(--muted);
}
.terminal__dots { display: flex; gap: 8px; margin-bottom: 16px; }
.terminal__dots span { width: 12px; height: 12px; border-radius: 6px; }
.terminal__dots span:nth-child(1) { background: #E74C3C; }
.terminal__dots span:nth-child(2) { background: #F39C12; }
.terminal__dots span:nth-child(3) { background: var(--teal-deco); }
.terminal__prompt { color: var(--mint); }
.terminal__line { color: var(--mist-2); overflow-wrap: anywhere; }

.portrait {
  flex: 0 1 340px; min-width: 0; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: var(--petrol-card); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--mist); font-size: 15px; text-align: center; padding: 0;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait--empty { padding: 24px; }

/* ---------- En bref ---------- */
.brief-wrap { padding: 0 24px; }
.brief {
  max-width: 1200px; margin: -48px auto 0; background: var(--paper);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.brief__head { padding: 40px 40px 32px; display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: baseline; }
.brief__label {
  flex: 0 0 auto; font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal);
}
.brief__answer {
  flex: 1 1 640px; min-width: 0; font-family: var(--font-body); font-size: 19px;
  font-weight: 400; line-height: 1.5; color: var(--ink);
}
.brief__answer strong { font-weight: 600; }
.brief__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); background: var(--paper-warm); }
.brief__item { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; border-top: 1px solid var(--line); }
.brief__item dt {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--teal);
}
.brief__item dd { font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--ink); }

/* variante compacte (page « Qui suis-je ») */
.brief--compact { margin-top: -40px; padding: 36px 40px; display: flex; flex-wrap: wrap; gap: 32px; overflow: visible; }
.brief--compact .brief__title { flex: 0 0 160px; font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.brief--compact .brief__list { flex: 1 1 560px; min-width: 0; background: none; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.brief--compact .brief__item { padding: 0; border: 0; gap: 4px; }
.brief--compact .brief__item dt { text-transform: none; letter-spacing: 0; }

/* ---------- Services ---------- */
.services { padding: 112px 24px 40px; }
.services .wrap { display: flex; flex-direction: column; gap: 48px; }
.service-list { border-bottom: 1px solid var(--line); }
.service { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 40px; padding: 32px 0; border-top: 1px solid var(--line); }
.service__num { flex: 0 0 48px; font-family: var(--font-mono); font-size: 15px; color: var(--teal); }
.service__title {
  flex: 1 1 300px; min-width: 0; font-family: var(--font-display); font-size: 30px;
  font-weight: 700; line-height: 1.15; letter-spacing: -0.01em;
}
.service__body { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.service__body p { font-size: 17px; line-height: 1.6; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 14px; color: var(--muted); padding: 6px 12px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--paper);
}

/* ---------- Bloc IA ---------- */
.ia-section { padding: 80px 24px; }
.ia {
  max-width: 1200px; margin: 0 auto; background: var(--petrol-deep); color: #FFFFFF;
  border-radius: 20px; padding: 64px 56px; display: flex; flex-direction: column; gap: 44px;
}
.ia__top { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; }
.ia__intro { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ia__intro .h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.05; }
.ia__intro p:not(.eyebrow) { font-size: 18px; line-height: 1.6; color: var(--mist); max-width: 640px; }
.ia__motto {
  flex: 0 1 300px; font-family: var(--font-mono); font-size: 15px; line-height: 1.7;
  color: var(--mist-2); border-left: 2px solid var(--teal-deco); padding-left: 20px;
}
.ia__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.ia-card {
  background: var(--petrol-card); border: 1px solid var(--muted); border-radius: 14px;
  padding: 26px; display: flex; flex-direction: column; gap: 10px;
}
.ia-card svg { stroke: var(--mint); }
.ia-card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.ia-card p { font-size: 15px; line-height: 1.6; color: var(--mist); }

/* ---------- Pourquoi moi ---------- */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.why__item { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--teal-deco); padding-top: 20px; }
.why__big { font-family: var(--font-display); font-weight: 800; font-size: 48px; color: var(--petrol); line-height: 1.1; }
.why__item h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.why__item p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.section-stack { display: flex; flex-direction: column; gap: 48px; }
.section-stack--tight { gap: 40px; }
.section--roomy { padding-top: 96px; padding-bottom: 96px; }

/* ---------- Méthode ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 8px; }
.step__num { font-family: var(--font-mono); font-size: 15px; color: var(--teal); }
.step strong { font-family: var(--font-display); font-size: 20px; }
.step span:last-child { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--paper); border-radius: 12px; padding: 22px 26px; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.faq details p { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- Bandeau d'appel à l'action ---------- */
.cta-band-wrap { padding: 96px 24px; }
.cta-band-wrap--tight { padding: 0 24px 96px; }
.cta-band {
  max-width: 1200px; margin: 0 auto; background: var(--petrol); border-radius: 20px; padding: 56px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-band--sm { padding: 48px 56px; gap: 24px; }
.cta-band__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta-band--sm .cta-band__text { flex-basis: 480px; }
.cta-band h2 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05; color: #FFFFFF;
}
.cta-band--sm h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.1; }
.cta-band p { font-size: 18px; line-height: 1.6; color: #FFFFFF; }

/* ---------- Qui suis-je ---------- */
.about-career { padding: 104px 24px 80px; }
.about-career .wrap { display: flex; flex-wrap: wrap; gap: 56px; }
.about-career__intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.about-career__intro p:not(.eyebrow) { font-size: 17px; line-height: 1.6; color: var(--muted); }
.timeline { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; }
.timeline li { display: flex; flex-wrap: wrap; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline__when { flex: 0 0 140px; font-family: var(--font-mono); font-size: 15px; color: var(--teal); }
.timeline__what { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.timeline__what h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.timeline__what p { font-size: 16px; line-height: 1.6; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 20px; font-family: var(--font-mono); font-size: 15px;
}
.chip--accent { background: var(--petrol-deep); color: #FFFFFF; border-color: var(--petrol-deep); }

.values { padding: 96px 24px; }
.values .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.values .h2 { grid-column: 1 / -1; }
.value { border-top: 3px solid var(--teal-deco); padding-top: 16px; }
.value h3 { margin-bottom: 8px; font-family: var(--font-display); font-size: 20px; }
.value p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Réalisations ---------- */
.projects { padding: 72px 24px 96px; }
.projects__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 28px; }
.project {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; background: var(--paper);
}
.project__bar { background: var(--petrol); padding: 10px 14px; display: flex; align-items: center; gap: 6px; }
.project__bar i { width: 10px; height: 10px; border-radius: 5px; background: var(--muted); display: block; }
.project__bar i:nth-child(3) { background: var(--teal-deco); }
.project__bar span { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--mist-2); }
.project__shot {
  aspect-ratio: 16 / 10; background: var(--shot); display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px; padding: 16px; text-align: center; overflow: hidden;
}
.project__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.project__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.project__kind { font-family: var(--font-mono); font-size: 13px; color: var(--teal); }
.project__title { font-family: var(--font-display); font-size: 24px; font-weight: 700; overflow-wrap: anywhere; }
.project__desc { font-size: 16px; line-height: 1.6; color: var(--muted); flex-grow: 1; }
.project__stack { font-size: 14px; color: var(--muted); }
.project__link { font-weight: 700; font-size: 15px; padding: 10px 0; }

/* ---------- Contact ---------- */
.contact { padding: 0 24px 96px; }
.contact__grid { max-width: 1200px; margin: -96px auto 0; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.form-card {
  flex: 2 1 560px; min-width: 0; background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 40px; display: flex; flex-direction: column; gap: 22px;
}
.form-card h2 { font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-size: 15px; font-weight: 600; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  border: 1px solid var(--field); border-radius: 10px; padding: 0 14px; font: inherit;
  font-size: 16px; background: #FFFFFF; color: var(--ink); width: 100%;
}
.field input[type="text"], .field input[type="email"], .field input[type="tel"] { height: 48px; }
.field textarea { padding: 14px; resize: vertical; min-height: 140px; }
.field--error input, .field--error textarea { border-color: var(--danger); border-width: 2px; }
.field__error { color: var(--danger); font-size: 14px; font-weight: 600; }
.pills { border: 0; padding: 0; margin: 0; }
.pills legend { margin-bottom: 10px; padding: 0; }
.pills__row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--field); border-radius: 999px;
  padding: 10px 18px; font-size: 15px; min-height: 44px; cursor: pointer;
}
.pill input { accent-color: var(--teal); width: 18px; height: 18px; margin: 0; }
.pill:has(input:checked) { border-color: var(--teal-deco); background: var(--teal-tint); }
.pill:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.form-note { font-size: 13px; line-height: 1.5; color: var(--muted); }
.form-card .btn { align-self: flex-start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: 10px; padding: 16px 20px; font-size: 16px; line-height: 1.5; font-weight: 600; }
.alert--ok { background: var(--teal-tint); color: #12433E; border: 1px solid var(--teal-deco); }
.alert--error { background: #FBEAEA; color: #7A1F1F; border: 1px solid var(--danger); }
.alert ul { list-style: disc; padding-left: 20px; margin-top: 6px; font-weight: 500; }

.contact__aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.card h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.card address { font-style: normal; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.5; }
.card .tel { font-weight: 700; font-size: 18px; }
.card--soft { background: var(--sand-2); box-shadow: none; padding: 28px; gap: 10px; }
.card--soft h2 { font-size: 20px; }
.card--soft p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--petrol); color: var(--mist); padding: 64px 24px 32px; }
.site-footer__inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.site-footer__col { display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.6; font-style: normal; }
.site-footer__col--brand { gap: 10px; }
.site-footer__brand { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #FFFFFF; }
.site-footer strong { color: #FFFFFF; }
.site-footer a { text-decoration: none; color: var(--mist); }
.site-footer a:hover { color: #FFFFFF; }
.site-footer a.accent { color: var(--mint); }
.site-footer__legal { padding-top: 24px; border-top: 1px solid var(--muted); font-size: 14px; color: var(--mist-2); }
.site-footer__legal a { color: var(--mint); }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .section, .services, .ia-section, .about-career, .values, .projects { padding-left: 20px; padding-right: 20px; }
  .brief__head { padding: 28px 24px 24px; }
  .brief--compact { padding: 28px 24px; }
  .ia { padding: 40px 24px; }
  .cta-band, .cta-band--sm { padding: 36px 24px; }
  .form-card { padding: 28px 22px; }
  .card { padding: 24px; }
  .hero { padding-top: 48px; }
  .terminal { padding: 20px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .site-footer, .cta-band-wrap, .cta-band-wrap--tight, .skip-link { display: none; }
  body { background: #FFFFFF; }
}

/* ---------- Texte long (mentions légales) ---------- */
.prose { max-width: 820px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; color: var(--muted); }
.prose ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose strong { color: var(--ink); }
.prose a { font-weight: 600; }

/* ---------- Bouton d'apparence « lien » ---------- */
.link-button {
  background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer;
  text-align: left; text-decoration: none;
}
.site-footer .link-button { color: var(--mist); }
.site-footer .link-button:hover { color: #FFFFFF; }
.prose .link-button { color: var(--teal); font-weight: 600; }
.prose .link-button:hover { color: var(--petrol); }

/* ---------- Bandeau de cookies ---------- */
.cookie-banner {
  position: fixed; left: 24px; bottom: 24px; z-index: 90;
  width: min(560px, calc(100vw - 32px));
  background: #FFFFFF; color: var(--ink); border-radius: 20px;
  box-shadow: 0 20px 60px rgba(38, 70, 83, 0.28), 0 0 0 1px rgba(38, 70, 83, 0.06);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__head { display: flex; align-items: center; gap: 10px; color: var(--teal); }
.cookie-banner__head h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); }
.cookie-banner p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.cookie-banner p a { color: var(--ink); font-weight: 600; }
.cookie-banner__panel { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.cookie-banner__panel[hidden] { display: none; }
.cookie-option {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cookie-option strong { font-size: 15px; color: var(--ink); }
.cookie-option p { font-size: 14px; margin-top: 2px; }
.cookie-option input[type="checkbox"] {
  appearance: none; flex: none; width: 46px; height: 26px; border-radius: 999px;
  background: var(--field); position: relative; cursor: pointer; margin: 0;
  transition: background 0.15s;
}
.cookie-option input[type="checkbox"]::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #FFFFFF; transition: transform 0.15s;
}
.cookie-option input[type="checkbox"]:checked { background: var(--teal); }
.cookie-option input[type="checkbox"]:checked::after { transform: translateX(20px); }
.cookie-option input[type="checkbox"]:disabled { opacity: 0.55; cursor: not-allowed; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn {
  flex: 1 1 130px; min-height: 48px; padding: 0 18px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  background: #FFFFFF; color: var(--ink); border: 1px solid var(--field);
}
.cookie-btn[hidden] { display: none; }
.cookie-btn:hover { background: var(--sand); }
.cookie-btn--outline { color: var(--teal); border-color: var(--teal); }
.cookie-btn--outline:hover { background: var(--teal-tint); }
.cookie-btn--primary { background: var(--teal); border-color: var(--teal); color: #FFFFFF; box-shadow: 0 6px 18px rgba(30, 111, 102, 0.35); }
.cookie-btn--primary:hover { background: #185a53; border-color: #185a53; }

@media (max-width: 640px) {
  .cookie-banner { left: 16px; right: 16px; bottom: 16px; width: auto; padding: 20px; max-height: calc(100vh - 32px); overflow-y: auto; }
  .cookie-btn { flex-basis: 100%; }
}
.projects--refs { padding-top: 0; }
.project__shot:has(img) { padding: 0; }

/* ---------- Page de confirmation ---------- */
.hero__check { color: var(--mint); }
.btn--outline { color: var(--teal); border-color: var(--teal); background: transparent; }
.btn--outline:hover { background: var(--teal-tint); color: var(--petrol); }
.thanks__actions { margin-top: 8px; }

/* ---------- Lame « Créer Application » ---------- */
.cta-band-wrap--inline { padding: 0 24px 80px; }
.cta-band .eyebrow { color: var(--mint); }
.cta-band--sm h2, .cta-band-wrap--inline h2 { max-width: 720px; }
.cta-band-wrap--inline .cta-band__text { gap: 14px; }
.cta-band-wrap--inline .cta-band p:not(.eyebrow) { color: var(--mist); max-width: 720px; font-size: 17px; }

/* Liens au milieu d'un texte : sans soulignement, ils se distinguent par la graisse (accessibilité) */
.brief__item a, .form-note a, .prose a, .card--soft a, p a:not(.btn):not(.link-more):not(.project__link) { font-weight: 700; }

/* ---------- Texture des bandeaux (hero) : carte du monde en points très fins ----------
   La carte est fixe (points vert d'eau discrets). Un « soleil » la traverse lentement d'est en ouest :
   une bande de lumière dorée qui illumine les points sur son passage, puis laisse la nuit revenir.
   Fichier unique : assets/img/world-dots.svg, utilisé comme masque (fond vert d'eau + points dorés révélés
   par une bande qui se déplace). Voile dégradé côté texte pour garder la lecture. Fixe si « réduire les animations ». */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero > * { position: relative; z-index: 1; }
.hero > .hero-map { position: absolute; inset: 0; z-index: -2; pointer-events: none; }

.hm { position: absolute; inset: 0; }

/* Les points sont un MASQUE (forme) coloré par le CSS, et non une image de fond :
   ainsi le navigateur ne les compte pas comme « plus grand élément affiché » (LCP). */
.hm--base {
  background: #6FD3C4; opacity: 0.3;
  -webkit-mask: url('../img/world-dots.svg') 62% 55% / max(100%, 920px) auto no-repeat;
          mask: url('../img/world-dots.svg') 62% 55% / max(100%, 920px) auto no-repeat;
}

.hm--sun {
  background: #FFE29A; opacity: 0;
  --band: linear-gradient(90deg, transparent 0%, transparent 24%, rgba(0, 0, 0, 0.5) 37%, #000 50%, rgba(0, 0, 0, 0.5) 63%, transparent 76%, transparent 100%);
  -webkit-mask-image: var(--band), url('../img/world-dots.svg');
          mask-image: var(--band), url('../img/world-dots.svg');
  -webkit-mask-size: 320% 100%, max(100%, 920px) auto;
          mask-size: 320% 100%, max(100%, 920px) auto;
  -webkit-mask-repeat: no-repeat, no-repeat;
          mask-repeat: no-repeat, no-repeat;
  -webkit-mask-position: 0% 0, 62% 55%;
          mask-position: 0% 0, 62% 55%;
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
  animation: sun-pass 44s linear infinite;
}

/* Halo doré : même trajectoire que la bande de points (transformation seule : fluide) */
.hm--halo {
  left: 125%; right: auto; width: 70%;
  background: radial-gradient(ellipse 50% 46% at 50% 52%, rgba(255, 226, 154, 0.17) 0%, rgba(255, 214, 120, 0.06) 42%, transparent 72%);
  animation: sun-halo 44s linear infinite;
}

/* Le soleil va de la droite vers la gauche (d'est en ouest), puis la « nuit » revient */
@keyframes sun-pass {
  0%   { -webkit-mask-position: 0% 0, 62% 55%;   mask-position: 0% 0, 62% 55%;   opacity: 0; }
  5%   { opacity: 0.7; }
  95%  { opacity: 0.7; }
  100% { -webkit-mask-position: 100% 0, 62% 55%; mask-position: 100% 0, 62% 55%; opacity: 0; }
}
@keyframes sun-halo {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-314.3%, 0, 0); }
}

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 45% 55% at 78% 55%, rgba(42, 157, 143, 0.14) 0%, transparent 100%),
    linear-gradient(90deg, rgba(38, 70, 83, 0.86) 0%, rgba(38, 70, 83, 0.4) 42%, rgba(38, 70, 83, 0) 72%);
}

@media (max-width: 640px) {
  .hm--base { -webkit-mask: url('../img/world-dots.svg') 70% 60% / 760px auto no-repeat; mask: url('../img/world-dots.svg') 70% 60% / 760px auto no-repeat; opacity: 0.38; }
  .hm--sun { -webkit-mask-size: 320% 100%, 760px auto; mask-size: 320% 100%, 760px auto; -webkit-mask-position: 0% 0, 70% 60%; mask-position: 0% 0, 70% 60%; }
}
@media (prefers-reduced-motion: reduce) {
  .hm--sun { animation: none; -webkit-mask-position: 62% 0, 62% 55%; mask-position: 62% 0, 62% 55%; opacity: 0.6; }
  .hm--halo { animation: none; transform: translate3d(-140%, 0, 0); }
}

/* ---------- Empilement (z-index) ----------
   Dans un bandeau (.hero, contexte isolé) : carte -2 · voile -1 · contenu 1.
   Les blocs qui chevauchent le bas du bandeau (carte « En bref », formulaire de contact)
   sont positionnés au-dessus pour ne pas être masqués par lui. Bandeau de cookies : 90. Lien d'évitement : 100. */
.hero { z-index: 0; }
.brief-wrap, .contact { position: relative; z-index: 2; }

/* ---------- Bandeau à formes géométriques (page « Qui suis-je ? ») ----------
   Grands disques de teintes proches du fond (pétrole), cadrés par le bandeau, qui flottent
   très lentement. Transformations seules ; figés si « réduire les animations ». */
.hero--shapes::after { background: none; }
.hero > .hero-shapes { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; will-change: transform; }

/* Deux formes pleines, à GAUCHE, dans la marge à gauche du texte (colonne de contenu de 1200 px, centrée) :
   un grand disque clair et un demi-disque foncé qui monte du bas. Jamais sur le texte principal. */

/* grand disque clair, en haut à gauche */
.shape--a {
  --d: min(54vw, 660px); width: var(--d); aspect-ratio: 1;
  left: calc(50% - 600px - var(--d) - 20px);   /* bord droit 20 px avant le texte */
  top: -26%;
  background: var(--petrol-card); opacity: 0.8;
  animation: shape-float 24s ease-in-out infinite alternate;
}
/* demi-disque foncé, en bas à gauche, qui sort du bas du bandeau */
.shape--b {
  width: 300px; aspect-ratio: 1; left: calc(50% - 600px - 220px); bottom: -150px;
  background: #1E3A47;
  animation: shape-float 30s ease-in-out -8s infinite alternate;
}

/* Bandeau « Réalisations » : deux ellipses pleines à GAUCHE, dans la marge à gauche du texte (jamais dessus) */
.ellipse--a {
  --w: 780px; width: var(--w); height: 450px;
  left: calc(50% - 600px - var(--w) - 20px);   /* bord droit 20 px avant le texte : seule la partie droite est visible */
  top: -4%;
  background: var(--petrol-card); opacity: 0.8;
  animation: shape-float 26s ease-in-out infinite alternate;
}
.ellipse--b {
  width: 380px; height: 210px; left: calc(50% - 600px - 240px); bottom: -110px;   /* légèrement plus bas */
  background: #1E3A47;
  animation: shape-float 32s ease-in-out -9s infinite alternate;
}

@keyframes shape-float {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-16px, 20px, 0); }
}

@media (max-width: 640px) {
  .shape--a { width: 80vw; left: -45%; right: auto; top: auto; bottom: 2%; }
  .shape--b { display: none; }
  .ellipse--a { --w: 90vw; width: var(--w); height: 52vw; left: -55%; top: auto; bottom: 2%; }
  .ellipse--b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .shape { animation: none; }
}

/* Bandeau sans décor (page Contact) : on retire aussi le voile dégradé, devenu inutile */
.hero--plain::after { background: none; }

/* ---------- reCAPTCHA v3 : le badge flottant est masqué, la mention légale est affichée dans le formulaire ---------- */
.grecaptcha-badge { visibility: hidden; }
