/* ===================================================================
   CIM — home.css
=================================================================== */

:root {
  --accent:        #006699;
  --accent-dark:   #004F79;
  --accent-soft:   rgba(0, 102, 153, 0.16);
  --accent-border: rgba(0, 102, 153, 0.55);

  --eyebrow-color: #FFC400;

  --ink:           #16222D;
  --text-muted:    #5B6B78;
  --bg:            #FFFFFF;
  --bg-subtle:     #F6F7F9;
  --pill-bg:       #EEF1F4;
  --line:          #E7EAEE;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
  "Helvetica Neue", Arial, sans-serif;

  --radius-card: 18px;
  --radius-pill: 999px;
  --wrap-max: 1180px;
}

:root {
  --header-height: 76px;
}

.header-inner {
  height: var(--header-height);
}

.page__content {
  padding-top: var(--header-height);
}

:root[data-theme="dark"] {
  --ink:        #F3F6F8;
  --text-muted: #A9B7C2;
  --bg:         #10161C;
  --bg-subtle:  #161D24;
  --pill-bg:    #1E262E;
  --line:       #232B33;
  --accent-soft: rgba(0, 102, 153, 0.32);
  --accent-border: rgba(0, 102, 153, 0.75);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--text-muted);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .2s ease, color .2s ease;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 5;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.hero, .section:nth-of-type(2), .section:nth-of-type(4) {
  position: relative;
  overflow: hidden;
}

.hero::after, .section:nth-of-type(2)::after, .section:nth-of-type(4)::after {
  content: none;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); line-height: 1.14; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.22; max-width: 680px; margin-left: auto; margin-right: auto; text-align: center; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }

.section-eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--eyebrow-color);
  margin: 0 0 12px;
}
.section-head { text-align: center; margin-bottom: 48px; }

/* ===== Buttons / links ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0,102,153,0.28); }
.btn-outline { background: var(--bg); color: var(--ink); border: 1.5px solid var(--accent-border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}
.link-more::after {
  content: "\203A";
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1em;
  line-height: 1;
  transition: transform .15s ease;
}
.link-more:hover::after { transform: translateX(3px); }
.link-more:hover { color: var(--accent-dark); }

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.86rem;
  border: 1px solid var(--accent-border);
  transition: background .15s ease, border-color .15s ease;
}
.pill-btn:hover { border-color: var(--accent); background: var(--accent); color: #fff; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--accent-border);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(10px);
}

:root[data-theme="dark"] .site-header::before {
  background: rgba(16,22,28,0.88);
}
.main-nav-footer {
  display: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  color: #fff;
  background: var(--accent);
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,102,153,0.3);
}
.brand-name {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: .04em;
  color: var(--ink);
}

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover { color: var(--accent); border-color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.icon-btn:hover { border-color: var(--accent); background: var(--accent); color: #fff; }

.lang-switch { display: flex; gap: 4px; }
.lang-btn {
  border: 1px solid var(--accent-border);
  background: var(--bg);
  font: inherit;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: .03em;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--accent);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.lang-btn.is-active, .lang-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
}
.burger span { height: 2px; width: 100%; background: var(--accent); border-radius: 2px; }

/* ===== Hero ===== */
.hero { padding: 96px 0 80px; background: var(--bg); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--eyebrow-color);
  margin: 0 0 18px;
}
.hero h1 { text-align: left; margin-left: 0; }
.hero-sub { max-width: 520px; font-size: 1.05rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* ===== Hero : structure desktop/mobile ===== */
.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-text { flex: 1 1 380px; order: 1; }
.hero-visual {
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 380px;
  order: 2;
}
.star-svg { width: 100%; height: 100%; max-width: 620px; max-height: 620px; overflow: visible; }

/* ===== Anneau d'orbite ===== */
.orbit-ring {
  fill: none;
  stroke: var(--accent-border);
  stroke-width: 1.2;
  opacity: .4;
}

/* ===== Icônes : glow au survol/pulsation ===== */
.node { animation: node-glow 3.2s ease-in-out infinite; }
@keyframes node-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }
  50% { filter: drop-shadow(0 0 10px currentColor); }
}

.center-bg {
  fill: color-mix(in srgb, var(--accent) 55%, transparent);
  stroke: none;
  transform: translate(400px,400px);
}
.center-ring {
  fill: none;
  stroke: rgba(255,255,255,.35);
  stroke-width: 1.5;
  transform: translate(400px,400px);
}
.center-pulse {
  fill: var(--accent);
  opacity: .16;
  transform: translate(400px,400px);
  animation: center-pulse 2.6s ease-in-out infinite;
}
@keyframes center-pulse {
  0%, 100% { transform: translate(400px,400px) scale(1); opacity: .16; }
  50% { transform: translate(400px,400px) scale(1.2); opacity: .3; }
}

/* aiguille */
.clock-pointer {
  transform-origin: 400px 400px;
  animation: pointer-tick 30s steps(12, end) infinite;
}
@keyframes pointer-tick {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.clock-minute {
  transform-origin: 400px 400px;
  animation: hand-spin 8s linear infinite;
}
.clock-second {
  transform-origin: 400px 400px;
  animation: hand-spin 2s linear infinite;
}
@keyframes hand-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.star-rotate {
  transform-origin: 400px 400px;
  animation: star-spin 60s linear infinite;
}
@keyframes star-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.star-rotate .node {
  animation: node-glow 3.2s ease-in-out infinite, node-counter-spin 60s linear infinite;
}
@keyframes node-counter-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .star-rotate, .node, .center-pulse, .clock-minute, .clock-second, .clock-pointer { animation: none; }
}

/* ===== Responsive Hero ===== */
@media (max-width: 1000px) {
  .hero-visual { height: 340px; }
  .star-svg { max-width: 420px; max-height: 420px; }
}

@media (max-width: 760px) {
  .hero-inner {
    position: relative;
    min-height: 480px;
    padding: 20px 0;
  }

  .hero-visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.32;
    pointer-events: none;
  }
  .star-svg {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
  }

  .hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    z-index: 1;
    text-align: center;
  }
  .hero-text h1 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-text .eyebrow {
    text-align: center;
  }
}

.section { padding: 60px 0; }
.section-alt { background: var(--bg-subtle); }

/* ===== Grilles & Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg);
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  box-shadow: 0 4px 16px rgba(0,102,153,0.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,102,153,0.18); border-color: var(--accent); }
.card-compact { padding: 24px 20px; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  border: 1.5px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card p { font-size: 0.95rem; margin-bottom: 14px; }

/* ===== Électricité ===== */
.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: center; }
.two-col-text h2 { text-align: left; margin-left: 0; }
.two-col-text .section-eyebrow { text-align: left; }
.two-col-icon {
  justify-self: center;
  color: var(--accent);
  background-color: #FFF9C4;
  border-color: #FFD700;
  border: 1.5px solid var(--accent-border);
  border-radius: 50%;
  padding: 34px;
}

.icon-flash {
  transform-origin: center;
  animation: flashZoom 1.8s ease-in-out infinite;
}
@keyframes flashZoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ===== Formations ===== */
.formations { text-align: center; }
.formations-sub { max-width: 620px; margin: 0 auto 28px; }

/* ===== À Propos / CBANET GROUP ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-text {
  text-align: justify;
}
.about-text h2,
.about-text .section-eyebrow {
  text-align: left;
}
.about-text p {
  line-height: 1.8;
}

.about-photos {
  display: flex;
  gap: 8px;
  height: 340px;
}
.about-photos .strip {
  flex: 0 0 26px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--accent), var(--accent-dark));
}

.about-carousel {
  position: relative;
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--accent-border);
  background: var(--bg-subtle);
}
.about-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.about-carousel img.is-active {
  opacity: 1;
}

/* ===== Équipe / Carrousel ===== */
.team-carousel-wrap {
  position: relative;
  margin-top: 44px;
}

.team-carousel {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 18px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.team-carousel::-webkit-scrollbar { display: none; }

.team-carousel-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 18px;
  width: 70px;
  background: linear-gradient(to right, transparent, var(--bg-subtle) 85%);
  pointer-events: none;
}

.team-photo-card {
  flex: 0 0 auto;
  width: 280px;
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 4px 16px rgba(0,102,153,0.06);
  scroll-snap-align: start;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
}
.team-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,102,153,0.2);
  border-color: var(--accent);
}

.team-photo-thumb {
  height: 200px;
  overflow: hidden;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo-thumb img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.team-photo-body {
  padding: 22px 20px 20px;
  text-align: center;
}
.team-name {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 3px;
}
.team-photo-body .team-role {
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.team-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.team-social a svg { width: 20px; height: 20px; }
.team-social a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  border-color: currentColor;
}

.icon-github    { color: #181717; }
.icon-x         { color: #000000; }
.icon-instagram { color: #E1306C; }
.icon-facebook  { color: #1877F2; }

#teamCarousel {
  cursor: grab;
}
#teamCarousel.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

/* ===== Portfolio ===== */
.tabs {
  display: flex;
  width: fit-content;
  margin: 0 auto 40px;
  gap: 2px;
  flex-wrap: nowrap;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  padding: 4px;
}
.tab-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.tab-btn:hover:not(.is-active) {
  background: var(--accent-soft);
  color: var(--accent);
}
.tab-btn.is-active {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 500px) {
  .tabs {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.portfolio-card {
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 4px 16px rgba(0,102,153,0.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.portfolio-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,102,153,0.2); border-color: var(--accent); }
.portfolio-thumb {
  height: 168px;
  background:
          linear-gradient(155deg, rgba(0,102,153,0.25), rgba(0,102,153,0.08)),
          repeating-linear-gradient(45deg, var(--bg-subtle) 0 14px, var(--bg) 14px 28px);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  text-align: center;
  padding: 16px;
  border-bottom: 1px solid var(--accent-border);
  position: relative;
  overflow: hidden; /* AJOUT : empêche l'image de déborder */
}


.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.portfolio-body { padding: 20px 22px 24px; }
.portfolio-tag {
  display: block;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}
.portfolio-card h3 { margin-bottom: 14px; }

.portfolio-more { text-align: center; margin-top: 40px; }

/* Page d'accueil via iframe dans portfolio */
.portfolio-frame-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.portfolio-frame-wrap iframe {
  width: 222%;
  height: 222%;
  border: 0;
  transform: scale(0.45);
  transform-origin: top left;
  background: #fff;
}

.portfolio-thumb-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* ===== Contact ===== */
.contact-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.contact-card {
  width: 280px;
  text-align: center;
  background: var(--bg);
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius-card);
  padding: 34px 24px;
  box-shadow: 0 4px 16px rgba(0,102,153,0.06);
  transition: transform .18s ease, border-color .18s ease;
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.contact-card .card-icon { margin: 0 auto 18px; }
.contact-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.contact-value { color: var(--accent); font-weight: 700; }

/* Motif circuit / réseau sur contact */
#contact {
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
}
#contact::before {
  content: none;
}
#contact .wrap { position: relative; z-index: 1; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--accent-border);
  background: var(--bg-subtle);
  padding: 26px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 0.88rem; margin: 0; color: var(--text-muted); }
.footer-copy strong { color: var(--accent); }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.footer-social a:hover { border-color: var(--accent); background: var(--accent); color: #fff; }

/* ===== Reveal-on-scroll ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Popup de Contact ===== */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.popup-overlay.active {
  display: flex;
}
.popup-box {
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: popupIn 0.25s ease;
}
@keyframes popupIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.popup-icon {
  margin-bottom: 12px;
}
.popup-box h3 {
  margin: 0 0 10px;
  color: #006699;
  font-size: 1.2rem;
}
.popup-box p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}
.popup-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #999;
}
.popup-close:hover {
  color: #333;
}
.popup-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px !important;
  font-size: 0.9rem !important;
  color: #333 !important;
  flex-wrap: wrap;
}
.popup-contact svg {
  flex-shrink: 0;
}
.popup-phone {
  color: #006699;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.popup-phone:hover {
  border-bottom-color: #006699;
}

/* ===== Popup Membre d'équipe ===== */
.popup-membre-box {
  background: var(--bg);
  border-radius: 16px;
  padding: 32px 28px 28px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: popupIn 0.25s ease;
}

.popup-membre-photo-wrap {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-subtle);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent-border);
}

.popup-membre-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.popup-membre-box h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: var(--ink);
}

.popup-membre-role {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
  margin: 0 0 14px;
}

.popup-membre-bio {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
  text-align: justify;
}

.popup-membre-expertise-wrap {
  margin-top: 20px;
  text-align: left;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.popup-membre-expertise-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  text-align: center;
}
.popup-membre-expertise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.popup-membre-expertise-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.expertise-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #1877F2;
}

/* ===== Navigation mobile ===== */
.mobile-menu-top {
  display: none;
}

@media (min-width: 761px) {
  .mobile-menu-top { display: none !important; }
}

@media (max-width: 1000px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col, .about-grid { grid-template-columns: 1fr; text-align: center; }
  .two-col-text h2, .two-col-text .section-eyebrow,
  .about-text h2, .about-text .section-eyebrow { text-align: center; margin-left: auto; }
  .two-col-icon { order: -1; }
}

@media (max-width: 760px) {
  .burger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--bg);
    z-index: 100;
    display: none;
    flex-direction: column;
    padding: 0;
  }
  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 16px 28px;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .main-nav-footer {
    display: block;
    margin-top: auto;
    text-align: center;
    padding: 30px 0;
  }

  .card-grid,
  .card-grid-4,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .team-carousel { gap: 16px; padding: 6px 0 18px; }
  .team-photo-card { width: 82vw; max-width: 300px; }
  .team-photo-thumb { height: 180px; }
  .team-carousel-wrap::after { width: 40px; }
  .section { padding: 40px 0; }

  .mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid var(--line);
  }

  .header-actions .lang-switch,
  .header-actions #theme-toggle {
    display: none;
  }
}

/* ===================================================================
   HERO CAROUSEL (blog / actualités)
=================================================================== */
.hero-carousel {
  position: relative;
  height: 620px;
  overflow: hidden;
  border-radius: var(--radius-card);
  margin: 40px 0;
  isolation: isolate;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-subtle);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease;
  z-index: 0;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.05) 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 1;
  padding: 40px 28px 56px;
  max-width: 720px;
}
.hero-slide-content h2 {
  color: #fff;
  margin-bottom: .35em;
}
.hero-slide-meta {
  color: rgba(255,255,255,0.85);
  font-size: 0.98rem;
  max-width: 560px;
}
.hero-slide-content .btn {
  margin-top: 6px;
}

.hero-slide-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.badge-tag {
  background: var(--accent);
  color: #fff;
}
.badge-status {
  background: var(--eyebrow-color);
  color: #16222D;
}

.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(16,22,28,0.35);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.hero-carousel-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.hero-carousel-arrow.prev { left: 20px; }
.hero-carousel-arrow.next { right: 20px; }

.hero-carousel-dots {
  position: absolute;
  bottom: 20px;
  right: 24px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.hero-carousel-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 0;
  transition: background .15s ease, width .15s ease;
}
.hero-carousel-dots .dot.is-active {
  background: var(--eyebrow-color);
  width: 22px;
  border-radius: var(--radius-pill);
}

@media (max-width: 760px) {
  .hero-carousel { height: 520px; margin: 24px 0; }
  .hero-slide-content { padding: 28px 20px 40px; }
  .hero-carousel-arrow { width: 36px; height: 36px; font-size: 1.3rem; }
}

@media (max-width: 500px) {
  .hero-carousel { height: 460px; }
  .hero-slide-meta { display: none; }
}

/* ===================================================================
   PARTENAIRES (défilement automatique)
=================================================================== */
.partners-viewport {
    overflow: hidden;
    width: 100%;
}

.partners-track {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.partners-track.is-animated {
    flex-wrap: nowrap;
    justify-content: flex-start;
    animation: scroll-partners 25s linear infinite;
    width: max-content;
}

.partners-track.is-animated:hover {
    animation-play-state: paused;
}

@keyframes scroll-partners {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.partner-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: none;
    opacity: 1;
}

.partner-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted, #5B6B78);
}

.no-content-msg {
    text-align: center;
    color: var(--text-muted, #5B6B78);
    font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
  .partners-track { animation: none; }
}

@media (max-width: 760px) {
  .partners-track { gap: 40px; animation-duration: 20s; }
  .partner-item img { height: 44px; }
}

/* ===================================================================
   A PROPOS — Historique / Mission (style long, flèche bleue)
=================================================================== */
.about-block {
  margin-bottom: 26px;
}
.about-block:last-child { margin-bottom: 0; }

.about-subhead {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.about-subhead::before {
  content: "\276F";
  display: inline-flex;
  color: var(--accent);
  font-weight: 900;
  font-size: 1rem;
}

.about-text .about-block p,
.about-block p {
  text-align: justify;
  line-height: 1.9;
  font-size: 0.98rem;
}

/* ===================================================================
   A PROPOS — Carrousel photo superposé (motif cartes empilées)
=================================================================== */
.about-photos-stack {
  position: relative;
  flex: 1;
  height: 340px;
}

.about-carousel-back {
  position: absolute;
  top: 0;
  right: 0;
  width: 86%;
  height: 86%;
  z-index: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--accent-border);
  background: var(--bg-subtle);
  box-shadow: 0 10px 26px rgba(0,102,153,0.1);
}
.about-carousel-back img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.about-carousel-back img.is-active { opacity: 1; }

.about-photos-stack .about-carousel-front {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 86%;
  height: 86%;
  z-index: 1;
}

@media (max-width: 1000px) {
  .about-photos-stack { height: 300px; margin: 0 auto; max-width: 420px; }
}
@media (max-width: 500px) {
  .about-photos-stack { height: 260px; }
}

/* ===================================================================
   COMITE — Filtre Mandat en picklist (dropdown)
=================================================================== */
.mandate-filter {
  position: relative;
  width: fit-content;
  margin: 0 auto 40px;
}
.mandate-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--accent-border);
  background: var(--bg);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mandate-filter-toggle:hover,
.mandate-filter-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(0,102,153,0.16);
}
.mandate-filter-chevron {
  transition: transform .2s ease;
  flex-shrink: 0;
}
.mandate-filter-toggle[aria-expanded="true"] .mandate-filter-chevron {
  transform: rotate(180deg);
}

.mandate-filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 100%;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--accent-border);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 20;
}
.mandate-filter-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mandate-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.mandate-option:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.mandate-option.is-active {
  background: var(--accent);
  color: #fff;
}

/* ===================================================================
   PAGE HEADER — bandeau titre + fil d'Ariane (pages secondaires)
=================================================================== */
.page-header {
  position: relative;
  overflow: hidden;
  padding: 50px 0 30px;
  background: linear-gradient(160deg, var(--accent-dark) 0%, var(--ink) 100%);
  isolation: isolate;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(900px 420px at 88% 130%, rgba(0,102,153,0.55), transparent 60%);
  pointer-events: none;
}
.page-header-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.page-header h1 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 14px;
}
.page-header-crumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-weight: 600;
  font-size: 0.95rem;
}
.page-header-crumb a { color: rgba(255,255,255,0.92); }
.page-header-crumb a:hover { color: var(--eyebrow-color); }
.page-header-crumb .crumb-arrow { opacity: .55; }
.page-header-crumb .crumb-current { color: #fff; font-weight: 700; }

@media (max-width: 760px) {
  .page-header { padding: 40px 0 24px; }
}



/*===========================
# CONTACT
#===========================
*/
.formations-wrap {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.info-card {
    background: var(--card-bg, #fff);
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
    text-align: center;
}

.info-card__icon {
    display: block;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto;
}

.info-card p {
    color: var(--text-muted, #444);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 12px 0;
    text-align: left;
}

.info-card p:last-child {
    margin-bottom: 0;
}

.chevron {
    color: var(--accent, #0056b3);
    font-weight: bold;
    margin-right: 6px;
}


a.partner-item {
    text-decoration: none;
    color: inherit;
}


