/* ==========================================================================
   Optigroup — page d'accueil, proposition 3
   Même contenu que /indexv2/ (rien d'ajouté, rien de restauré).
   Parti pris : sans hero, sans chiffres et sans réalisations, c'est la
   STRUCTURE qui porte la page — ouverture éditoriale pleine largeur,
   divisions en lignes larges numérotées, bandeau d'orientation, contact.
   Pas de JavaScript, à l'exception du petit script opener-slideshow.js qui
   fait défiler le bandeau IT (progressive enhancement : la 1re slide reste
   pleinement affichée si le script ne charge pas).
   ========================================================================== */

:root {
  --brand: #1f6bb8;
  --brand-dark: #17538f;
  --navy: #16283f;
  --navy-2: #0f1e30;
  --ink: #1d222a;
  --ink-soft: #4a5261;
  --muted: #767f8d;
  --line: #e2e6ed;
  --line-soft: #eef1f6;
  --surface: #f5f7fa;
  --amber: #f2a43a;
  --sans: 'Barlow', Helvetica, Arial, sans-serif;
  --cond: 'Barlow Condensed', 'Barlow', Helvetica, Arial, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-family: var(--cond); font-weight: 700; letter-spacing: 0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dd, dt { margin: 0; }
img { max-width: 100%; }
a { color: var(--brand); text-decoration: none; transition: color .18s; }
a:hover { color: var(--brand-dark); }

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

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow-amber { color: var(--amber); }

.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: #fdf0dd;
  color: #a5680f;
  padding: 2px 6px;
  margin-left: 4px;
  vertical-align: 1px;
}

/* --- barre utilitaire ---------------------------------------------------- */
.topbar { background: var(--navy-2); color: #b9c4d3; font-size: 13px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 7px 28px; flex-wrap: wrap; }
.topbar a { color: #b9c4d3; }
.topbar a:hover { color: #fff; }
.lang { display: flex; gap: 8px; align-items: center; letter-spacing: 0.06em; }
.lang span { color: #4a5b73; }
.lang .is-active { color: #fff; font-weight: 600; }
.topbar-right { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }

/* --- header : logo + accès direct aux divisions -------------------------- */
.header { background: #fff; border-bottom: 1px solid var(--line); }
.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 20px;
}
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.quick a {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .18s, color .18s, background .18s;
}
.quick a:hover { color: #fff; background: var(--brand); border-color: var(--brand); }

/* --- ouverture ----------------------------------------------------------- */
.opener { background: var(--surface); border-bottom: 1px solid var(--line); }
.opener-in { padding-top: 68px; padding-bottom: 56px; }
.opener-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  text-align: center;
}
.opener-mark { flex: 0 0 auto; width: 300px; height: auto; display: block; }
.opener h1 {
  font-size: 27px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: left;
  padding-left: 40px;
  border-left: 3px solid var(--brand);
}
.opener-cols-wrap { padding-top: 44px; padding-bottom: 56px; }
.opener-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.opener-cols p { font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); text-wrap: pretty; text-align: center; }
.opener-cols p:not(:first-child) {
  border-left: 1px solid var(--line);
  margin-left: -17px;
  padding-left: 17px;
}

/* --- bandeau IT : slideshow des 5 divisions (texte + icône en code) ------ */
.opener-strip { position: relative; overflow: hidden; isolation: isolate; }
.opener-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
}

.slideshow-slides { position: relative; min-height: 435px; }
.slideshow-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .9s ease;
}
.slideshow-slide.is-active { opacity: 1; pointer-events: auto; }

.opener-strip-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(1.15); }
.opener-strip-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  color: #fff;
  padding: 56px 28px 76px;
}
.opener-strip-title { margin: 0; font-family: var(--cond); font-weight: 700; font-size: 44px; line-height: 1.18; text-transform: uppercase; letter-spacing: 0.01em; }
.opener-strip-title span { color: #5fa8e6; }
.opener-strip-sub { font-size: 17.5px; line-height: 1.6; color: #d7dee8; max-width: 46ch; text-wrap: pretty; }

.opener-strip-icon { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.opener-strip-icon svg {
  width: 36px;
  height: 36px;
  padding: 21px;
  box-sizing: content-box;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
}
.opener-strip-icon span {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.slideshow-dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.slideshow-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.slideshow-dot:hover { background: rgba(255,255,255,.75); }
.slideshow-dot.is-active { background: #fff; transform: scale(1.3); }
.slideshow-dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

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

@media (prefers-reduced-motion: reduce) {
  .slideshow-slide { transition: none; }
}

/* --- en-tête de section -------------------------------------------------- */
.sec-head { margin-bottom: 44px; max-width: 62ch; }
.sec-head h2 { font-size: 46px; text-transform: uppercase; }
.sec-head p { font-size: 17.5px; line-height: 1.6; color: var(--muted); margin-top: 14px; text-wrap: pretty; }

/* --- divisions en lignes ------------------------------------------------- */
.divisions { padding: 92px 0; }
.rows { border-top: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
  padding: 34px 10px;
  border-bottom: 1px solid var(--line);
  transition: background .18s;
}
.row:hover { background: var(--surface); }

.row-brand { display: flex; flex-direction: column; gap: 12px; }
.row-brand img { height: 45px; width: auto; align-self: flex-start; }
.row-brand h3 { font-size: 25px; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1; }

.row-desc { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); text-wrap: pretty; }

.row-links { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.row-links a { color: var(--ink-soft); font-weight: 500; }
.row-links a::before { content: "› "; color: var(--brand); font-weight: 700; }
.row-links a:hover { color: var(--brand); }

.row-cta {
  align-self: center;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  padding: 12px 20px;
  border: 2px solid var(--brand);
  border-radius: 2px;
  transition: background .18s, color .18s;
}
.row-cta::after { content: " ›"; font-size: 15px; }
.row-cta:hover { background: var(--brand); color: #fff; }

/* --- bandeau d'orientation ---------------------------------------------- */
.orient { background: var(--navy); color: #fff; }
.orient-in {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.orient h2 { font-family: var(--sans); font-weight: 600; font-size: 32px; line-height: 1.25; margin-top: 14px; max-width: 30ch; text-wrap: pretty; }
.orient-sub { font-size: 16.5px; line-height: 1.7; color: #c3cddb; margin-top: 14px; max-width: 48ch; text-wrap: pretty; }
.orient-contact { display: flex; flex-direction: column; gap: 8px; justify-self: end; text-align: right; }
.big-tel { font-family: var(--cond); font-size: 46px; font-weight: 700; line-height: 1; color: #fff; }
.big-tel:hover { color: #fff; }
.amber { color: var(--amber); font-weight: 600; font-size: 16px; }
.amber:hover { color: var(--amber); }

/* --- contact ------------------------------------------------------------- */
.contact { padding: 88px 0; }
.contact-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; }
.contact-copy h2 { font-size: 42px; text-transform: uppercase; max-width: 20ch; }
.contact-copy h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--brand); margin-top: 16px; }
.contact-copy > p { font-size: 17px; line-height: 1.7; color: var(--ink-soft); margin-top: 22px; max-width: 46ch; text-wrap: pretty; }
.contact-lines { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; }
.huge-tel { font-family: var(--cond); font-size: 46px; font-weight: 700; line-height: 1; color: var(--ink); }
.contact-lines a:last-child { font-size: 17px; font-weight: 600; }

.facts { border-top: 1px solid var(--line); }
.facts > div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  padding-top: 3px;
}
.facts dd { font-size: 16px; line-height: 1.65; color: var(--ink-soft); }

/* --- tuiles divisions ---------------------------------------------------- */
.divtiles { display: grid; grid-template-columns: repeat(5, 1fr); }
.divtiles a {
  padding: 34px 20px;
  text-align: center;
  color: #fff;
  background: var(--brand);
  border-right: 1px solid rgba(255,255,255,.18);
  transition: background .18s;
}
.divtiles a:last-child { border-right: 0; }
.divtiles a:nth-child(even) { background: #1a5ea3; }
.divtiles a:hover { background: var(--navy); color: #fff; }
.divtiles strong { display: block; font-family: var(--cond); font-size: 27px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.divtiles span { display: block; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,.8); margin-top: 5px; }

/* --- footer -------------------------------------------------------------- */
.footer { background: var(--navy); color: #b9c4d3; }
.footer-in { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 48px; padding-top: 64px; padding-bottom: 56px; }
.footer h3 { font-size: 22px; color: #fff; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 18px; }
.footer p { font-size: 15px; line-height: 1.7; }
.footer ul { display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.footer ul a { color: #cdd7e4; }
.footer ul a:hover { color: var(--amber); }
.footer-contact { margin-top: 18px; font-weight: 600; }
.footer-ids { margin-top: 18px; font-size: 13px; color: #8794a7; }
.footer-bottom { background: var(--navy-2); font-size: 13px; color: #8794a7; }
.footer-bottom .wrap { padding-top: 18px; padding-bottom: 18px; }
.footer-bottom a { color: #b9c4d3; }
.footer-bottom a:hover { color: var(--amber); }

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .opener-mark { width: 240px; }
  .opener-head { gap: 30px; }
  .opener h1 { font-size: 23px; padding-left: 30px; }
  .opener-strip-title { font-size: 36px; }
  .slideshow-slides { min-height: 540px; }
  .row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "brand brand"
      "desc  links"
      "cta   cta";
    row-gap: 20px;
  }
  .row-brand { grid-area: brand; flex-direction: row; align-items: center; gap: 18px; }
  .row-desc { grid-area: desc; }
  .row-links { grid-area: links; }
  .row-cta { grid-area: cta; justify-self: start; align-self: start; }
  .footer-in { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 860px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .quick { grid-template-columns: repeat(3, 1fr); }
  .quick a { padding: 14px 4px; font-size: 11.5px; letter-spacing: 0.06em; gap: 7px; }
  .quick a:nth-child(-n+3) { border-bottom-color: transparent; box-shadow: inset 0 -1px 0 var(--line-soft); }
  .opener-in { padding-top: 46px; padding-bottom: 40px; }
  .opener-head { flex-direction: column; align-items: center; gap: 20px; }
  .opener-mark { width: 220px; }
  .opener h1 { font-size: 22px; max-width: 26ch; text-align: center; padding-left: 0; border-left: 0; padding-top: 20px; border-top: 3px solid var(--brand); }
  .opener-cols-wrap { padding-top: 32px; }
  .opener-cols { grid-template-columns: 1fr; gap: 18px; }
  .opener-cols p:not(:first-child) {
    border-left: 0;
    margin-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 18px;
  }
  .slideshow-slides { min-height: 500px; }
  .opener-strip-content { padding: 40px 20px 64px; gap: 18px; }
  .opener-strip-title { font-size: 26px; }
  .opener-strip-sub { font-size: 15.5px; }
  .divisions, .contact { padding: 56px 0; }
  .sec-head h2, .contact-copy h2 { font-size: 34px; }
  .row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "desc" "links" "cta"; }
  .row-brand h3 { font-size: 25px; }
  .orient-in { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
  .orient-contact { justify-self: start; text-align: left; }
  .contact-in { grid-template-columns: 1fr; gap: 44px; }
  .divtiles { grid-template-columns: repeat(3, 1fr); }
  .footer-in { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 620px) {
  .topbar-right a:last-child { display: none; }
  .opener-mark { width: 180px; }
  .opener h1 { font-size: 19px; }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .quick a:nth-child(-n+4) { box-shadow: inset 0 -1px 0 var(--line-soft); }
  .big-tel, .huge-tel { font-size: 34px; }
  .facts > div { grid-template-columns: 1fr; gap: 8px; }
  .divtiles { grid-template-columns: 1fr 1fr; }
}
