/* Groupe Global Service — holding. Pas de logo : la marque est un mot composé en Archivo élargi.
   Signature : la chaîne Conception → Achat → Installation → Valorisation (le modèle du groupe). */
:root {
  --night: #0e1c33;
  --navy: #1a365d;
  --gold: #c9a84c;
  --gold-soft: #e2cd8f;
  --porcelain: #f4f6f9;
  --ink: #141a26;
  --slate: #5b6577;
  --line: #dde2ea;
  --white: #ffffff;

  --display: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--gold); color: var(--night); padding: 10px 16px; text-decoration: none; }
.skip:focus { left: 8px; }

.label {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* ─── La marque ─── */
.marque { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; gap: 6px; }
.marque__groupe { font-family: var(--display); font-stretch: 112%; font-weight: 500; font-size: 0.72rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); }
.marque__nom { font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 1.32rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--white); }
.marque__nom::after { content: ""; display: block; height: 2px; width: 2.2em; background: var(--gold); margin-top: 8px; }

/* ─── En-tête (sur fond nuit) ─── */
.top { background: var(--night); border-bottom: 1px solid rgba(201, 168, 76, 0.22); }
.top__in { display: flex; align-items: center; gap: 28px; min-height: 92px; }
.top__nav { margin-left: auto; display: flex; gap: 28px; font-family: var(--display); font-stretch: 108%; font-weight: 500; font-size: 0.92rem; }
.top__nav a { color: rgba(255, 255, 255, 0.72); text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.top__nav a:hover, .top__nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--gold); }

/* ─── Hero ─── */
.hero { background: var(--night); color: var(--white); padding-block: clamp(48px, 8vw, 112px) clamp(48px, 7vw, 96px); overflow: hidden; }
.hero .label { color: var(--gold); margin: 0; }
.hero h1 {
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 600;
  font-size: clamp(2.1rem, 1rem + 4.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 18px 0 26px;
  max-width: 15ch;
}
.hero h1 span { color: var(--gold-soft); }
.hero__lead { max-width: 56ch; color: rgba(255, 255, 255, 0.78); margin: 0 0 26px; font-size: 1.1rem; }
.statut {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-stretch: 112%; font-weight: 500; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(201, 168, 76, 0.6); padding: 8px 14px;
}
.statut::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ─── La chaîne (signature) ─── */
.chaine { margin-top: clamp(48px, 7vw, 88px); }
.chaine__etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; position: relative; counter-reset: etape; }
.chaine__etapes::before {
  content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px;
  background: var(--gold);
  transform-origin: left; transform: scaleX(1);
}
.etape { position: relative; counter-increment: etape; }
.etape::before {
  content: counter(etape);
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--night); border: 2px solid var(--gold); color: var(--gold);
  font-family: var(--display); font-weight: 700; font-size: 0.8rem;
}
.etape h2 { font-family: var(--display); font-stretch: 115%; font-weight: 600; font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.35rem); letter-spacing: 0.01em; margin: 18px 0 4px; color: var(--white); }
.etape p { margin: 0; color: rgba(255, 255, 255, 0.66); font-size: 0.95rem; line-height: 1.5; }

.chaine__societes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 20px; margin-top: 26px; }
.porteur { border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 14px; }
.porteur--pole { grid-column: span 2; border-top-style: dashed; border-top-color: rgba(201, 168, 76, 0.55); }
.porteur__qui { font-family: var(--display); font-stretch: 110%; font-weight: 600; color: var(--white); font-size: 1rem; }
.porteur__qui a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--gold); }
.porteur__qui a:hover { color: var(--gold-soft); }
.porteur__note { display: block; color: rgba(255, 255, 255, 0.55); font-size: 0.88rem; }

@media (prefers-reduced-motion: no-preference) {
  .chaine__etapes::before { animation: trace 1.6s cubic-bezier(0.45, 0, 0.2, 1) 0.3s both; }
  .etape { animation: pose 0.5s ease-out both; }
  .etape:nth-child(1) { animation-delay: 0.3s; }
  .etape:nth-child(2) { animation-delay: 0.7s; }
  .etape:nth-child(3) { animation-delay: 1.1s; }
  .etape:nth-child(4) { animation-delay: 1.5s; }
  @keyframes trace { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes pose { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ─── Sections claires ─── */
.section { padding-block: clamp(48px, 7vw, 96px); }
.section .label { color: var(--navy); }
.section-titre {
  font-family: var(--display); font-stretch: 115%; font-weight: 600; color: var(--night);
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem); line-height: 1.1; letter-spacing: -0.01em; margin: 12px 0 32px; max-width: 24ch;
}

.societes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.societe { background: var(--white); border: 1px solid var(--line); padding: 28px 26px 26px; display: flex; flex-direction: column; }
.societe__logo { height: 64px; display: flex; align-items: center; margin-bottom: 22px; }
.societe__logo img { max-height: 64px; width: auto; }
.societe__role { color: var(--gold); margin: 0 0 6px; }
.societe h3 { font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: 1.2rem; color: var(--night); margin: 0 0 8px; }
.societe p { margin: 0 0 20px; color: var(--slate); font-size: 0.97rem; }
.societe__lien { margin-top: auto; font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: 0.92rem; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--gold); align-self: start; padding-bottom: 2px; }
.societe__lien:hover { color: var(--night); }
.societe--prepa { background: transparent; border-style: dashed; border-color: #b9c1cd; }
.societe--prepa .societe__logo { font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); }
.societe__prepa { margin-top: auto; font-family: var(--display); font-stretch: 108%; font-weight: 500; font-size: 0.85rem; color: var(--slate); }

.engagements { background: var(--white); border-top: 1px solid var(--line); }
.valeurs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.valeurs li { border-top: 2px solid var(--gold); padding-top: 16px; }
.valeurs h3 { font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: 1.08rem; color: var(--night); margin: 0 0 6px; }
.valeurs p { margin: 0; color: var(--slate); font-size: 0.96rem; }

/* ─── Page Le groupe ─── */
.page-tete { background: var(--night); color: var(--white); padding-block: clamp(48px, 7vw, 96px); }
.page-tete .label { color: var(--gold); margin: 0; }
.page-tete h1 { font-family: var(--display); font-stretch: 118%; font-weight: 600; font-size: clamp(2rem, 1.1rem + 3.4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.015em; margin: 16px 0 20px; max-width: 18ch; }
.page-tete p { color: rgba(255, 255, 255, 0.78); max-width: 60ch; margin: 0; }
.missions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.missions li { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: 24px; }
.missions h3 { font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: 1.12rem; color: var(--night); margin: 0 0 8px; }
.missions p { margin: 0; color: var(--slate); font-size: 0.97rem; }
.modele { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.modele blockquote { margin: 0; font-family: var(--display); font-stretch: 112%; font-weight: 500; font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); line-height: 1.4; color: var(--night); text-indent: -0.6em; }
.modele blockquote::before { content: "« "; color: var(--gold); }
.modele blockquote::after { content: " »"; color: var(--gold); }
.modele p { margin: 0 0 14px; color: var(--slate); }

/* ─── Contact ─── */
.contact { background: var(--navy); color: var(--white); padding-block: clamp(40px, 6vw, 72px); }
.contact__in { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center; justify-content: space-between; }
.contact p { margin: 0; font-family: var(--display); font-stretch: 112%; font-weight: 500; font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem); line-height: 1.4; max-width: 32ch; }
.bouton-or { font-family: var(--display); font-stretch: 108%; font-weight: 600; text-decoration: none; background: var(--gold); color: var(--night); padding: 14px 24px; white-space: nowrap; }
.bouton-or:hover { background: var(--gold-soft); }

/* ─── Mentions légales ─── */
.legal { padding-block: clamp(40px, 6vw, 72px) clamp(48px, 7vw, 96px); }
.legal section { border-top: 1px solid var(--line); padding-block: 24px; max-width: 760px; }
.legal h2 { font-family: var(--display); font-stretch: 112%; font-weight: 600; color: var(--night); font-size: 1.15rem; margin: 0 0 10px; }
.legal p, .legal address { margin: 0 0 10px; color: var(--slate); font-style: normal; }
.legal a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* ─── Pied de page ─── */
.pied { background: var(--night); color: rgba(255, 255, 255, 0.7); padding-block: 44px 28px; font-size: 0.92rem; }
.pied__in { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: start; }
.pied .marque__nom { font-size: 1.05rem; }
.pied p { margin: 0 0 4px; }
.pied a { color: var(--white); text-underline-offset: 3px; text-decoration-color: rgba(201, 168, 76, 0.6); }
.pied__liens { display: grid; gap: 6px; justify-items: end; }
.pied__bas { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: rgba(255, 255, 255, 0.5); }

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .societes, .missions { grid-template-columns: 1fr; }
  .valeurs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modele { grid-template-columns: 1fr; }
  .pied__in { grid-template-columns: 1fr; }
  .pied__liens { justify-items: start; }
}
@media (max-width: 760px) {
  /* La chaîne passe à la verticale : la ligne devient un fil à gauche */
  .chaine__etapes { grid-template-columns: 1fr; gap: 22px; padding-left: 44px; }
  .chaine__etapes::before { left: 13px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; transform-origin: top; }
  .etape { padding-right: 0; }
  .etape::before { position: absolute; left: -44px; top: 0; }
  .etape h2 { margin-top: 2px; }
  .chaine__societes { display: none; }
  .etape[data-porteur]::after { content: attr(data-porteur); display: block; margin-top: 6px; font-family: var(--display); font-weight: 600; font-size: 0.85rem; color: var(--gold-soft); }
  .top__in { min-height: 76px; }
  .top__nav { gap: 18px; }
  .marque__nom { font-size: 1.05rem; }
  .valeurs { grid-template-columns: 1fr; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  @keyframes trace { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}
