/* =========================================================
   Feuille de style commune — gabarit inspiré de la mise en page
   de référence (one-page + pages « missions »).
   ========================================================= */

:root {
  --blue: #0067b2;
  --blue-dark: #00548f;
  --blue-light: #4aa3ff;
  --dark: #1b202c;
  --dark-2: #232a3a;
  --footer: #2d2f44;
  --text: #333;
  --muted: #6b7280;
  --line: #e6e8ec;
  --white: #fff;
  --radius: 40px;
  --container: 1110px;
  --header-h: 76px;
  --font: "Lato", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(14, 20, 34, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header--light {
  position: sticky;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .04);
}
.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .06em;
  color: var(--white);
}
.header--light .logo { color: var(--blue); }
.logo img { height: 40px; width: auto; }
/* sur l'en-tête sombre, on éclaircit le gris du logo */
.header:not(.header--light) .logo img { filter: brightness(1.9) saturate(1.2); }
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  display: grid; place-items: center;
}
.logo-mark svg { width: 20px; height: 20px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav li { position: relative; }
.nav a {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--white);
  border-radius: 4px;
  transition: color .2s, background .2s;
}
.header--light .nav a { color: var(--blue); }
.nav a:hover,
.nav a[aria-current="page"] { color: var(--blue-light); }
.header--light .nav a:hover,
.header--light .nav a[aria-current="page"] { color: var(--dark); }

.has-sub > a::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
.sub {
  position: absolute;
  top: 100%; left: 0;
  min-width: 260px;
  list-style: none;
  margin: 0; padding: 8px 0;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: .2s;
}
.has-sub:hover .sub,
.has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { color: var(--text); text-transform: none; font-weight: 400; font-size: 14px; padding: 9px 18px; }
.nav .sub a:hover { color: var(--blue); background: #f3f7fb; }

.social {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  margin-left: 10px;
  border-radius: 6px;
  background: #0a66c2;
  color: var(--white);
  transition: background .2s, transform .2s;
}
.social:hover { background: #004182; transform: translateY(-1px); }
.nav .social,
.header--light .nav .social,
.nav .social:hover { color: var(--white); padding: 0; }
.social svg { width: 17px; height: 17px; fill: currentColor; }

/* Menu mobile (100 % CSS, case à cocher) */
.nav-toggle { display: none; }
.burger { display: none; cursor: pointer; width: 40px; height: 40px; place-items: center; }
.burger span,
.burger span::before,
.burger span::after {
  display: block; width: 24px; height: 2px; background: var(--white);
  position: relative; transition: .25s;
}
.header--light .burger span,
.header--light .burger span::before,
.header--light .burger span::after { background: var(--blue); }
.burger span::before,
.burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }

/* ---------- Boutons, titres ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--white);
  background: var(--blue);
  border-radius: 2px;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn svg { width: 14px; height: 14px; fill: currentColor; }

.section-title {
  text-align: center;
  font-size: 30px;
  color: var(--blue);
  margin-bottom: 14px;
}
.divider {
  width: 90px; height: 1px;
  margin: 0 auto 40px;
  background: var(--blue);
}
.dark .section-title { color: var(--white); }
.dark .divider { background: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.dark {
  background: var(--dark);
  color: #d5d9e2;
  border-radius: var(--radius);
}
.dark--bottom { border-radius: 0 0 var(--radius) var(--radius); }
.dark--top { border-radius: var(--radius) var(--radius) 0 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(7, 18, 38, .45) 0%, rgba(7, 18, 38, .25) 50%, rgba(7, 18, 38, .6) 100%),
    url("../img/accueil.jpg") center / cover no-repeat,
    #0b2150;
  overflow: hidden;
}
.hero-content { position: relative; z-index: 1; padding: 120px 20px 80px; max-width: 900px; }
.hero h1 {
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .35);
}
.hero p { font-size: clamp(16px, 1.6vw, 20px); max-width: 600px; margin: 0 auto 40px; color: #e6eefc; }
.hero .btn svg { width: 15px; height: 15px; }

/* ---------- Société ---------- */
.about { max-width: 820px; margin: 0 auto; text-align: center; }
.about p { color: #cfd5e0; }

/* ---------- État d'esprit ---------- */
.mindset { margin-top: 80px; text-align: center; }
.mindset h4 { color: var(--white); font-size: 24px; }
.quote {
  font-style: italic;
  font-size: 18px;
  color: var(--white);
  max-width: 760px;
  margin: 0 auto 50px;
}
.quote::before { content: "\201C\00a0"; font-size: 28px; color: var(--blue-light); }
.quote::after { content: "\00a0\201D"; font-size: 28px; color: var(--blue-light); }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 60px; text-align: left; }
.value h5 {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}
.value h5 svg { width: 18px; height: 18px; flex: none; stroke: var(--blue-light); fill: none; stroke-width: 2; }
.value p { font-size: 14px; color: #b9c0cd; margin: 0 0 0 28px; }

/* ---------- Missions ---------- */
.missions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mission {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 200px;
  padding: 22px;
  border-radius: 4px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, #24324f, #0b2150) center / cover;
  isolation: isolate;
}
.mission::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 16, 30, .05) 20%, rgba(10, 16, 30, .85) 100%);
  transition: background .3s;
}
.mission::after {
  /* motif décoratif quand aucune photo n'est fournie */
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background: url("../img/network.svg") var(--pos, center) / 260% no-repeat;
  opacity: .55;
  transition: transform .5s;
}
.mission:hover::after { transform: scale(1.08); }
/* les cartes ont une photo : le motif décoratif est inutile */
.m1::after, .m2::after, .m3::after, .m4::after, .m5::after { display: none; }
.mission:hover::before { background: linear-gradient(180deg, rgba(0, 103, 178, .25) 0%, rgba(10, 16, 30, .9) 100%); }
.mission h3 { font-size: 16px; text-transform: uppercase; margin-bottom: 6px; }
.mission span { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.mission span::after { content: "\2192"; transition: transform .2s; }
.mission:hover span::after { transform: translateX(4px); }
.m1 { --pos: 10% 20%; background-color: #2b3a5c; background-image: url("../img/missions/conseil-strategique.jpg"); }
.m2 { --pos: 80% 30%; background-color: #3a2b1f; background-image: url("../img/missions/systemes-telecom.jpg"); }
.m3 { --pos: 40% 70%; background-color: #1f3a36; background-image: url("../img/missions/expertise-technique.jpg"); }
.m4 { --pos: 60% 10%; background-color: #33405a; background-image: url("../img/missions/maitrise-ouvrage.jpg"); }
.m5 { --pos: 20% 90%; background-color: #1d2c4a; background-image: url("../img/missions/simulation.jpg"); }

/* ---------- Carrières ---------- */
.careers { text-align: center; }
.careers p { color: #e1e5ec; }

/* ---------- Références (défilement continu, 100 % CSS) ---------- */
.marquee {
  overflow: hidden;
  padding: 10px 0 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  margin: 0; padding: 0;
  list-style: none;
  /* la liste est présente deux fois : on décale d'une moitié pour boucler sans saut */
  animation: defile 110s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee li { flex: none; width: 220px; height: 130px; display: grid; place-items: center; }
.marquee img { max-width: 100%; max-height: 120px; width: auto; object-fit: contain; }
@keyframes defile { to { transform: translateX(calc(-50% - 30px)); } }

/* ---------- Contact ---------- */
.agencies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.agency h4 { text-align: center; color: var(--white); font-size: 22px; font-weight: 700; }
.agency address { font-style: normal; text-align: center; color: #b9c0cd; font-size: 14px; margin-bottom: 14px; }
.map {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  border-radius: 6px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 40px),
    #26304a;
  display: grid; place-items: center;
  color: #8792a8;
  font-size: 14px;
}
.contact-mail { text-align: center; margin: 40px 0 0; color: var(--white); font-weight: 700; }
.contact-mail a { color: var(--blue-light); }
/* L'adresse est stockée à l'envers ; on l'affiche à l'endroit sans qu'elle existe en clair dans le HTML */
.email::after {
  content: attr(data-d) "\0040" attr(data-u);
  display: inline-block;
  unicode-bidi: bidi-override;
  direction: rtl;
}
.email:hover { text-decoration: underline; }
/* Leurre pour robots, hors écran */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer {
  background: var(--footer);
  color: #c9cbd8;
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 22px 20px;
  margin-top: -1px;
}
.footer--joined { margin-top: 0; }

/* ---------- Pages « missions » ---------- */
.page-head {
  background:
    url("../img/network.svg") center / cover no-repeat,
    linear-gradient(135deg, #0b2150, var(--dark));
  color: var(--white);
  padding: 70px 0 60px;
  border-radius: 0 0 var(--radius) var(--radius);
}
.crumbs { font-size: 13px; color: #aeb8cc; margin-bottom: 8px; }
.crumbs a { color: #d7e6ff; }
.page-head h1 { font-size: clamp(28px, 4vw, 42px); text-transform: uppercase; margin: 0; font-weight: 900; }

.ghost-title {
  position: relative;
  font-size: 28px;
  color: var(--blue);
  margin: 0 0 34px;
  padding-top: 14px;
}
.ghost-title::before {
  /* reprise du titre en filigrane, comme sur la mise en page d'origine */
  content: attr(data-ghost);
  position: absolute;
  left: 4px; top: -8px;
  font-size: 1.15em;
  color: var(--blue);
  opacity: .08;
  white-space: nowrap;
  pointer-events: none;
}

.questions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 40px; margin-bottom: 70px; }
.question { display: flex; align-items: center; gap: 22px; }
.q-icon {
  flex: none;
  width: 92px; height: 92px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(0, 103, 178, .2);
}
.block .q-icon { width: 110px; height: 110px; margin-bottom: 18px; }
.q-icon svg { width: 38px; height: 38px; stroke: var(--white); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.question h5 { font-size: 15px; font-weight: 700; text-transform: uppercase; color: #222; margin: 0; }

.phases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 70px; }
.phase {
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 6px;
  padding: 26px 28px 14px;
}
.phase h2 { font-size: 22px; color: var(--blue); }
.phase ul { list-style: none; padding: 0; margin: 0; }
.phase li {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px; font-weight: 700; text-transform: uppercase; color: #222;
}
.phase li:first-child { border-top: 0; }
.phase li img { width: 54px; height: 54px; flex: none; border-radius: 50%; object-fit: cover; }

.blocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-bottom: 70px; }
.block h2 { font-size: 26px; color: var(--blue); }
.block p { color: #444; }

/* Accordéon des références (balises <details>, sans JavaScript) */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 6px;
  font-weight: 700; font-size: 15px; color: #222;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before {
  content: "";
  width: 0; height: 0;
  border-left: 6px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transition: transform .2s;
}
.accordion details[open] summary { color: var(--blue); }
.accordion details[open] summary::before { transform: rotate(90deg); }
.accordion .content { padding: 0 6px 18px 24px; font-size: 15px; color: #444; }
.accordion .content ul { margin: 6px 0 0; padding-left: 18px; }
.accordion .content li { margin-bottom: 4px; }

.cta-band {
  margin-top: 70px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 34px 40px;
}
.cta-band h3 { color: var(--white); margin: 0; font-size: 22px; }

/* ---------- Pages Société et Carrières ---------- */
.prose { max-width: 960px; }
.prose > p, .prose > ul { color: #444; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.lead { font-size: 19px; color: var(--dark) !important; font-weight: 700; margin-bottom: 40px; }
.block h3 { color: var(--blue); font-size: 17px; text-transform: uppercase; margin-bottom: 10px; }
.block ul { padding-left: 20px; color: #444; }
.block li { margin-bottom: 6px; }
.blocks + .ghost-title { margin-top: 10px; }
.prose .blocks { margin: 40px 0; }
.leaders { display: grid; gap: 30px; margin-bottom: 20px; }
.leader {
  display: grid; grid-template-columns: 180px 1fr; gap: 30px; align-items: start;
  padding: 28px; border: 1px solid var(--line); border-radius: 8px;
}
.leader img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; box-shadow: 0 8px 22px rgba(0, 103, 178, .2); }
.leader h3 { color: var(--dark); margin-bottom: 2px; }
.leader .role { color: var(--blue); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; }
.leader p { color: #444; }

.cta-center { text-align: center; margin: 50px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .missions { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .burger { display: grid; }
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--dark);
    padding: 10px 20px 20px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-120%);
    transition: transform .3s;
  }
  .header--light .nav { background: var(--white); border-bottom: 1px solid var(--line); }
  .nav > ul { flex-direction: column; }
  .nav a { padding: 12px 4px; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 0 14px; }
  .nav .sub a { color: #b9c0cd; }
  .header--light .nav .sub a { color: var(--text); }
  .social { margin-top: 10px; }
  .nav-toggle:checked ~ .nav { transform: none; }
  .nav-toggle:checked + .burger span { background: transparent; }
  .nav-toggle:checked + .burger span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked + .burger span::after { top: 0; transform: rotate(-45deg); }

  .agencies, .questions, .phases, .blocks { grid-template-columns: 1fr; }
  .leader { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .cta-band { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  :root { --radius: 24px; }
  .section { padding: 54px 0; }
  .values, .missions { grid-template-columns: 1fr; }
  .marquee li { width: 150px; height: 100px; }
  .marquee-track { gap: 36px; }
  .question { align-items: flex-start; }
  .q-icon { width: 70px; height: 70px; }
  .q-icon svg { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
  * { transition: none !important; }
}
