/* ==========================================================
   Ampletic — feuille de styles
   Les couleurs et polices principales sont dans :root ci-dessous.
   ========================================================== */

/* ---------- Police Figtree (fichiers dans assets/fonts) ---------- */
@font-face { font-family: "Figtree"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/figtree-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Couleurs */
  --ink: #15302a;            /* titres, vert très foncé */
  --text: #4a5764;           /* texte courant, gris ardoise */
  --text-soft: #5d6873;
  --gold: #b88933;           /* accent doré unifié */
  --gold-dark: #9d7428;
  --green: #0f3a2e;          /* bouton vert */
  --green-hover: #16493a;
  --contact-bg: #0f2e25;     /* fond de la section contact */
  --contact-panel: #16392f;  /* second vert, derrière le formulaire */
  --bg: #ffffff;
  --hero-bg: #edf3ef;        /* fond vert sauge du haut de page */
  --line: #e3e1db;
  --gold-tint: #f8efdc;     /* cercle doré clair des icônes Comprendre / Décider / Amplifier */
  --highlight: #c5f2db;     /* surlignage des mots clés du texte d'accroche */

  --font: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  overscroll-behavior-y: none;
  /* Couleurs de repli pour les navigateurs qui affichent encore la zone
     élastique au-delà du document : sauge en haut, vert foncé en bas. */
  background: linear-gradient(to bottom, var(--hero-bg) 0 50%, var(--contact-bg) 50% 100%);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  overscroll-behavior-y: none;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

.container { width: min(var(--container), 100% - 2 * clamp(20px, 5.5vw, 64px)); margin-inline: auto; }
.visually-hidden, .sprite {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.rule { display: block; width: 38px; height: 2px; background: var(--gold); margin-bottom: 20px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  border: 0; border-radius: 5px; cursor: pointer;
  font: 500 15px/1 var(--font); color: #fff; text-decoration: none;
  transition: background-color .15s ease;
}
.btn img { width: 18px; height: 18px; }
.btn--gold { background: var(--gold); }
.btn--gold:hover { background: var(--gold-dark); }
.header-cta { padding: 13px 24px; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(237,243,239,.92); backdrop-filter: blur(8px); }
.header-inner { display: grid; grid-template-columns: 31% 1fr auto; align-items: center; height: 68px; }
.logo {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}
.logo img {
  width: clamp(154px, 15vw, 194px);
  height: auto;
}
.main-nav { display: flex; gap: 38px; }
.main-nav a { font-size: 19px; color: var(--ink); text-decoration: none; padding: 8px 0 6px; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--line); }
.main-nav a.is-active { border-bottom-color: var(--gold); }
.nav-toggle { display: none; }
.nav-contact-link { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
}
.language-switch a {
  color: inherit;
  text-decoration: none;
  padding: 4px 2px;
}
.language-switch a:hover { color: var(--gold-dark); }
.language-switch a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.language-switch span { color: #9aa59f; font-weight: 400; }

/* ---------- Hero ---------- */
.hero { padding: 44px 0 56px; overflow: hidden; background: var(--hero-bg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(28px, 3.5vw, 52px); align-items: center; }
.hero-text { position: relative; z-index: 1; text-align: center; }

h1 { font-size: clamp(21px, 2.25vw, 32px); line-height: 1.22; letter-spacing: -.015em; text-wrap: balance; }
h1::after { content: ""; display: block; width: 40px; height: 2px; background: var(--gold); margin: 22px auto 0; }
h1 .accent { color: var(--gold); }
.lead {
  font-size: clamp(21px, 1.9vw, 27px); line-height: 1.48; letter-spacing: -.005em; color: #1c302a;
  margin: 22px auto 0; max-width: 560px; text-wrap: balance;
}
.lead strong {
  font-weight: 600; color: var(--ink);
  background: linear-gradient(transparent 58%, var(--highlight) 58%, var(--highlight) 90%, transparent 90%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 40px auto 0; max-width: 560px; padding: 24px 6px 22px;
  background: #fff; border-radius: 16px; box-shadow: 0 14px 34px -22px rgba(15,58,46,.35);
}
.pillars li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 12px; border-left: 1px solid var(--line); }
.pillars li:first-child { border-left: 0; }
.pillars img {
  box-sizing: border-box; width: 58px; height: 58px; padding: 12px; margin-bottom: 12px;
  background: var(--gold-tint); border-radius: 50%;
}
.pillars strong { font-size: 18.5px; font-weight: 600; color: var(--ink); }
.pillars span { font-size: 14.5px; line-height: 1.4; color: #3e4d56; margin-top: 3px; }
.hero-cta { margin-top: 36px; padding: 16px 46px; font-size: 16px; }

/* ---------- Illustration du hero ----------
   Une seule image SVG : assets/images/tableaux-de-bord.svg */
.hero-visual picture { display: block; }
.hero-visual img { width: 100%; height: auto; }

/* ---------- Expertise ----------
   Version tech : structure nette, contraste fort et palette naturelle.
   Les cartes restent sobres, sans métadonnées décoratives. */
.expertise {
  background: var(--hero-bg);
  padding: 22px 0 128px;
}
.expertise-card {
  position: relative;
  overflow: hidden;
  background: #0c342a;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 16px;
  padding: clamp(38px, 5vw, 62px);
  box-shadow: 0 36px 72px -52px rgba(8,32,25,.62);
  isolation: isolate;
}
.expertise-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.72), transparent 52%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,.72), transparent 52%);
}
.expertise-head { margin-bottom: 34px; }
.expertise-title {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #f3f7f5;
  font-size: clamp(42px, 4.7vw, 58px);
  line-height: .96;
  letter-spacing: -.018em;
}
.expertise-title::before {
  content: "";
  width: 44px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--gold);
}

.skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.skill {
  position: relative;
  min-height: 268px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 42px 40px 28px;
  text-align: center;
  border: 1px solid rgba(15,58,46,.10);
  isolation: isolate;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.skill::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 42%);
  opacity: .16;
}
.skill:hover {
  transform: translateY(-3px);
  border-color: rgba(184,137,51,.42);
  box-shadow: 0 24px 42px -34px rgba(0,0,0,.58);
}
.skill__icon {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  background: none;
  opacity: .56;
  pointer-events: none;
}
.skill__icon svg { width: 36px; height: 36px; }
.skill__icon--image img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 1;
}
.skill__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 490px;
  margin-inline: auto;
  padding-top: 10px;
}
.skill h3 {
  max-width: 455px;
  margin-inline: auto;
  color: inherit;
  font-size: clamp(25px, 2.15vw, 31px);
  line-height: 1.14;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.skill .title-highlight {
  display: inline;
  background: linear-gradient(transparent 58%, var(--title-highlight-color, var(--highlight)) 58%, var(--title-highlight-color, var(--highlight)) 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
  padding: 0 .06em;
}
.skill p {
  max-width: 470px;
  margin: 26px auto 0;
  color: inherit;
  font-size: clamp(16.5px, 1.25vw, 18px);
  line-height: 1.58;
  font-weight: 600;
  text-wrap: pretty;
}

/* Palette unifiée : quatre surfaces claires sur le cadre vert profond.
   Le doré reste un accent plutôt qu'une grande surface. */
.skill--model {
  --title-highlight-color: #a8e7c7;
  background: #c5f2db;
  color: #14362d;
  border-color: rgba(15,58,46,.12);
}
.skill--model p { color: rgba(20,54,45,.80); }
.skill--model .skill__icon { color: #1b5c49; opacity: .62; }

.skill--soft {
  --title-highlight-color: #f0cf8d;
  background: #f7e1b7;
  color: #3f3420;
  border-color: rgba(184,137,51,.18);
}
.skill--soft p { color: rgba(63,52,32,.80); }
.skill--soft .skill__icon { color: var(--gold-dark); opacity: .50; }

.skill--data {
  --title-highlight-color: #e7ddc8;
  background: #f3efe6;
  color: #203a33;
  border-color: rgba(15,58,46,.10);
}
.skill--data p { color: rgba(32,58,51,.78); }
.skill--data .skill__icon { color: var(--gold-dark); opacity: .48; }

.skill--acv {
  --title-highlight-color: #c2e4d4;
  background: #daefe4;
  color: #14362d;
  border-color: rgba(15,58,46,.11);
}
.skill--acv p { color: rgba(20,54,45,.80); }
.skill--acv .skill__icon { color: #1b5c49; opacity: .46; }

/* ---------- Contact ----------
   Mise en page simplifiée : pas de ligne décorative traversante,
   contraste clair entre le contenu et le formulaire. */
.contact { position: relative; background: var(--contact-bg); color: #dfe8e3; }
.contact__top { position: absolute; left: 0; bottom: 100%; width: 100%; height: 48px; margin-bottom: -1px; }
.contact__inner { position: relative; overflow: hidden; padding: 76px 0 88px; }
.contact__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.58), transparent 60%);
          mask-image: linear-gradient(90deg, rgba(0,0,0,.58), transparent 60%);
}

.dots {
  position: absolute;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.24) 1.1px, transparent 1.6px),
                    radial-gradient(rgba(255,255,255,.24) 1.1px, transparent 1.6px);
  background-size: 18px 18px;
  background-position: 0 0, 9px 9px;
}
.dots--contact-text {
  left: 0; bottom: 0; width: 300px; height: 170px;
  -webkit-mask-image: radial-gradient(circle at 0 100%, #000, transparent 72%);
          mask-image: radial-gradient(circle at 0 100%, #000, transparent 72%);
}
.dots--contact-card { display: none; }

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58%;
  column-gap: 78px;
  align-items: center;
}
.contact-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact-text .rule { width: 44px; margin-bottom: 22px; }
.contact-card { position: relative; }
.contact-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -30px;
  bottom: -30px;
  left: -30px;
  right: -100vw;
  background: #153a30;
  border-left: 1px solid rgba(255,255,255,.06);
  border-radius: 20px 0 0 20px;
}
.contact h2 {
  color: #fff;
  font-size: clamp(40px, 4.4vw, 50px);
  line-height: 1.04;
  letter-spacing: -.008em;
  margin-bottom: 0;
}
.contact .subtitle {
  max-width: 390px;
  color: #eef3f0;
  font-size: clamp(20px, 2.25vw, 24px);
  line-height: 1.5;
  margin: 38px auto 0;
}

.contact-form {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  background: #fff;
  border: 1px solid rgba(15,58,46,.08);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 26px 54px -34px rgba(0,0,0,.62);
  color: #1f2d27;
}
.field--full { grid-column: 1 / -1; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: #1f2d27;
  background: #fff;
  border: 1px solid #d9dedb;
  border-radius: 6px;
  padding: 10px 12px;
}
.contact-form ::placeholder { color: #6b7480; opacity: 1; }
.contact-form input:focus,
.message-box:focus-within { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,137,51,.14); }
.message-box { border: 1px solid #d9dedb; border-radius: 6px; padding: 10px 12px 3px; background: #fbfcfb; }
.message-box label { font-size: 14px; color: #37434c; }
.message-box textarea { border: 0; padding: 5px 0; min-height: 210px; resize: vertical; background: transparent; box-shadow: none; outline: none; }
.message-box textarea::placeholder { color: #8a929a; }
.field__error { display: none; font-size: 12.5px; color: #b0442c; margin-top: 4px; }
.field.is-invalid .field__error { display: block; }
.field.is-invalid input, .field.is-invalid .message-box { border-color: #b0442c; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 7px; }
.btn--send { padding: 14px 42px; font-size: 16px; }
.btn--send img { width: 20px; height: 20px; }
.form-status { font-size: 14px; color: #52605a; }
.form-status.is-success { color: #2f5a4a; }
.form-status.is-error { color: #b0442c; }
.form-status a { color: var(--gold-dark); }
.btn--send:disabled { opacity: .65; cursor: wait; }
.field--honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--contact-bg);
  color: rgba(255,255,255,.72);
}
.site-footer__inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 14px;
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { color: #eef3f0; text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ---------- Pages légales ---------- */
.legal-body { background: var(--hero-bg); }
.legal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(237,243,239,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15,58,46,.08);
}
.legal-header__inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.legal-header .logo img { width: clamp(154px, 15vw, 194px); }
.legal-header__actions { display: flex; align-items: center; gap: 22px; }
.legal-back { color: var(--ink); font-weight: 600; text-decoration: none; }
.legal-back:hover { color: var(--gold-dark); }
.legal-main { padding: clamp(48px, 7vw, 88px) 0 clamp(72px, 9vw, 120px); }
.legal-layout { max-width: 860px; }
.legal-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.legal-page-title {
  color: var(--ink);
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.02;
  letter-spacing: -.03em;
}
.legal-intro {
  max-width: 760px;
  margin-top: 22px;
  color: #344840;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
}
.legal-alert {
  margin: 34px 0 40px;
  padding: 18px 20px;
  border: 1px solid rgba(184,137,51,.35);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fffaf0;
  color: #4e432e;
}
.legal-section {
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid rgba(15,58,46,.13);
}
.legal-section h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 16px; }
.legal-section h3 { margin: 24px 0 10px; font-size: 19px; }
.legal-section p,
.legal-section li { color: #3e5049; line-height: 1.7; }
.legal-section p + p { margin-top: 12px; }
.legal-section ul { list-style: disc; padding-left: 1.25rem; }
.legal-section li + li { margin-top: 7px; }
.legal-placeholder {
  display: inline;
  padding: .08em .35em;
  border-radius: 4px;
  background: #f7e1b7;
  color: #59451f;
  font-weight: 600;
}
.legal-definition {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 10px 24px;
  margin: 18px 0 0;
}
.legal-definition dt { color: var(--ink); font-weight: 600; }
.legal-definition dd { margin: 0; color: #3e5049; }
.legal-note { font-size: 14px; color: #66736d !important; }


/* ---------- Responsive ---------- */

@media (min-width: 1600px) {
  /* Wide desktop: progressively enlarge the composition while preserving
     the existing laptop/tablet/mobile layouts. */
  :root { --container: clamp(1180px, 76vw, 1520px); }

  .header-inner { height: 74px; grid-template-columns: 30% 1fr auto; }
  .logo img { width: clamp(194px, 11vw, 214px); }
  .main-nav { gap: 42px; }
  .main-nav a { font-size: 20px; }
  .header-cta { padding: 14px 26px; font-size: 16px; }

  .hero { padding: 52px 0 68px; }
  .hero-grid { column-gap: clamp(52px, 4vw, 76px); }
  h1 { font-size: clamp(34px, 2vw, 38px); }
  .lead {
    max-width: 650px;
    font-size: clamp(29px, 1.7vw, 32px);
  }
  .pillars {
    max-width: 650px;
    padding: 27px 10px 25px;
  }
  .pillars img { width: 64px; height: 64px; padding: 13px; }
  .pillars strong { font-size: 20px; }
  .pillars span { font-size: 15.5px; }
  .hero-cta { margin-top: 40px; padding: 17px 50px; font-size: 17px; }

  .expertise { padding-bottom: 144px; }
  .expertise-card { padding: clamp(58px, 4vw, 72px); }
  .expertise-title { font-size: clamp(60px, 3.5vw, 68px); }
  .skills { gap: 18px; }
  .skill { min-height: 292px; padding: 48px 44px 32px; }
  .skill__content { max-width: 560px; }
  .skill h3 { font-size: clamp(32px, 1.9vw, 36px); }
  .skill p {
    max-width: 530px;
    margin-top: 28px;
    font-size: clamp(18px, 1.02vw, 19.5px);
  }

  .contact__inner { padding: 88px 0 102px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr) 59%; column-gap: 88px; }
  .contact h2 { font-size: clamp(54px, 3vw, 58px); }
  .contact .subtitle { max-width: 440px; font-size: 26px; }
  .contact-form { gap: 17px; padding: 28px; }
  .contact-form input,
  .contact-form textarea { font-size: 15px; padding: 11px 13px; }
  .message-box { padding: 11px 13px 4px; }
  .message-box label { font-size: 15px; }
  .message-box textarea { min-height: 225px; }
  .btn--send { padding: 15px 44px; font-size: 17px; }
}

@media (max-width: 1000px) {
  .expertise-card { padding: clamp(32px, 5vw, 52px); }
  .skill { min-height: 252px; padding-inline: 30px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-text { max-width: 560px; margin-inline: auto; }
  .hero-visual { max-width: 600px; margin: 0 auto; width: 100%; }
  .contact-grid { grid-template-columns: 1fr; row-gap: 66px; }
  .contact-card::before { left: -24px; top: -24px; bottom: -24px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 62px; }

  /* Header mobile: compact, stable and easier to operate one-handed. */
  .header-inner {
    grid-template-columns: 1fr auto;
    column-gap: 10px;
    height: 62px;
  }
  .header-actions { gap: 8px; }
  .header-cta { display: none; }
  .language-switch { font-size: 12px; gap: 5px; }
  .language-switch a { padding: 7px 2px; }
  .logo img { width: 132px; }
  .nav-toggle {
    display: grid;
    gap: 5px;
    align-content: center;
    justify-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
  }
  .nav-toggle__bar {
    width: 21px;
    height: 2px;
    background: var(--ink);
    transform-origin: center;
    transition: transform .18s ease, opacity .18s ease;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px clamp(20px, 5.5vw, 64px) 18px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 18px 28px -20px rgba(0,0,0,.28);
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .main-nav .nav-contact-link { display: block; }
  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }
  .main-nav a.is-active { border-bottom-color: var(--line); color: var(--gold-dark); }
  body.nav-open { overflow: hidden; }

  /* Hero mobile: stronger hierarchy and less vertical dead space. */
  .hero { padding: 24px 0 18px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-text { max-width: 520px; margin-inline: auto; }
  h1 {
    font-size: clamp(30px, 8.5vw, 36px);
    line-height: 1.08;
    letter-spacing: -.025em;
  }
  h1::after { width: 34px; margin-top: 17px; }
  .lead {
    max-width: 500px;
    margin-top: 14px;
    font-size: clamp(17.5px, 4.8vw, 19px);
    line-height: 1.48;
  }
  .pillars {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    max-width: 430px;
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 14px;
  }
  .pillars li {
    display: grid;
    grid-template-columns: 46px 1fr;
    column-gap: 14px;
    align-items: center;
    text-align: left;
    border-left: 0;
    padding: 0;
  }
  .pillars img {
    grid-row: span 2;
    width: 44px;
    height: 44px;
    padding: 10px;
    margin: 0;
  }
  .pillars strong { font-size: 17px; line-height: 1.18; }
  .pillars span { margin-top: 1px; font-size: 14px; line-height: 1.35; }
  .hero-cta {
    width: min(100%, 430px);
    min-height: 48px;
    margin-top: 20px;
    padding: 15px 24px;
    font-size: 16px;
  }
  .hero-visual {
    position: relative;
    width: min(100%, 416px);
    max-width: none;
    margin: 0 auto;
    padding: 0 14px 4px;
    overflow: visible;
    border-radius: 0;
  }
  .hero-visual::before { display: none; }
  .hero-visual::after {
    content: "";
    position: absolute;
    right: 20px;
    bottom: 48px;
    width: 104px;
    height: 78px;
    background-image: radial-gradient(circle, rgba(184,137,51,.36) 1.15px, transparent 1.2px);
    background-size: 10px 10px;
    opacity: .78;
    z-index: 1;
  }
  .hero-visual img {
    position: relative;
    z-index: 2;
    width: 100%;
    transform: none;
    transform-origin: center top;
  }

  /* Expertise mobile: compact cards built for scanning, not desktop cards stacked. */
  .expertise { padding: 4px 0 40px; }
  .expertise-card { border-radius: 14px; padding: 28px 16px 16px; }
  .expertise-head { margin-bottom: 22px; text-align: center; }
  .expertise-title {
    justify-content: center;
    gap: 12px;
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1;
  }
  .expertise-title::before { width: 30px; }
  .skills { grid-template-columns: 1fr; gap: 10px; }
  .skill {
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    padding: 22px 20px 24px;
    text-align: center;
    border-radius: 10px;
  }
  .skill:hover { transform: none; }
  .skill__icon {
    position: static;
    width: 30px;
    height: 30px;
    margin: 0 auto 9px;
  }
  .skill__icon svg { width: 28px; height: 28px; }
  .skill__icon--image img { width: 31px; height: 31px; }
  .skill__content {
    max-width: 440px;
    margin: 0 auto;
    padding-top: 0;
    text-align: center;
  }
  .skill h3 {
    max-width: none;
    margin: 0;
    font-size: clamp(22px, 6.4vw, 26px);
    line-height: 1.13;
    text-wrap: pretty;
  }
  .skill p {
    max-width: none;
    margin: 13px auto 0;
    font-size: 15.5px;
    line-height: 1.48;
    font-weight: 500;
  }

  /* Contact mobile: one simple dark section with the form as the focal point. */
  .contact__top,
  .dots--contact-text,
  .contact__inner::before,
  .contact-card::before { display: none; }
  .contact__inner { padding: 34px 0 46px; }
  .contact-grid { grid-template-columns: 1fr; row-gap: 26px; }
  .contact-text { align-items: center; text-align: center; }
  .contact-text .rule { width: 34px; margin-bottom: 14px; }
  .contact h2 { font-size: clamp(34px, 9.5vw, 42px); }
  .contact .subtitle {
    max-width: 100%;
    margin: 13px auto 0;
    font-size: 18px;
    line-height: 1.45;
  }
  .contact-text br { display: none; }
  .contact-form {
    grid-template-columns: 1fr;
    gap: 12px;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 22px 44px -32px rgba(0,0,0,.58);
  }
  .contact-form input {
    min-height: 48px;
    padding: 12px 13px;
    font-size: 16px;
  }
  .message-box { padding: 11px 13px 4px; }
  .message-box label { font-size: 14px; }
  .message-box textarea {
    height: 168px;
    min-height: 168px;
    padding: 7px 0;
    font-size: 16px;
  }
  .form-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 4px;
  }
  .btn--send {
    width: 100%;
    min-height: 50px;
    padding: 14px 24px;
    font-size: 16px;
  }
  .form-status { line-height: 1.4; }

  /* Footer and legal pages get their own phone-scale rhythm. */
  .site-footer__inner {
    align-items: center;
    flex-direction: column;
    gap: 7px;
    min-height: 0;
    padding-top: 14px;
    padding-bottom: 16px;
    text-align: center;
  }
  .site-footer__links {
    width: 100%;
    justify-content: center;
    gap: 14px 20px;
  }
  .legal-definition { grid-template-columns: 1fr; gap: 4px; }
  .legal-definition dd + dt { margin-top: 12px; }
  .legal-header__inner { min-height: 62px; }
  .legal-header .logo img { width: 132px; }
  .legal-back { font-size: 14px; }
  .legal-header__actions { gap: 10px; }
  .legal-main { padding: 38px 0 66px; }
  .legal-page-title { font-size: clamp(31px, 9vw, 36px); line-height: 1.05; }
  .legal-intro { margin-top: 17px; font-size: 17px; line-height: 1.55; }
  .legal-alert { margin: 26px 0 32px; padding: 15px 16px; }
  .legal-section { margin-top: 32px; padding-top: 26px; }
  .legal-section h2 { font-size: 24px; margin-bottom: 13px; }
}

@media (max-width: 420px) {
  .container { width: min(var(--container), 100% - 36px); }
  .logo img,
  .legal-header .logo img { width: 124px; }
  .header-actions { gap: 5px; }
  .language-switch { font-size: 11.5px; }
  .nav-toggle { width: 40px; height: 40px; }

  .hero { padding-top: 22px; }
  h1 { font-size: clamp(29px, 8.6vw, 33px); }
  .lead { font-size: 17.5px; }
  .pillars { padding: 16px; }
  .hero-visual {
    width: min(100%, 388px);
    padding-inline: 8px;
    padding-bottom: 4px;
  }
  .hero-visual::before { display: none; }
  .hero-visual::after {
    right: 16px;
    bottom: 42px;
    width: 90px;
    height: 70px;
    background-size: 9px 9px;
  }

  .expertise-card { padding-inline: 13px; }
  .skill { padding: 21px 17px 23px; }
  .skill h3 { font-size: 22px; }
  .skill p { font-size: 15px; }

  .contact__inner { padding-top: 32px; }
  .contact-form { padding: 15px; }

  .legal-back { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .skill:hover { transform: none; }
}
