/* =========================================================
   FHC GROUPE SARL — STRUCTURES
   Design : bleu marine / bleu / or
   ========================================================= */

/* ===== VARIABLES ===== */
:root {
  --navy-950: #0a1a3c;
  --navy-900: #0d2352;
  --navy-800: #123a7a;
  --blue-600: #1e3bff;
  --blue-500: #1e3bff;
  --blue-50: #eaecff;

  --gray-50: #f5f7fb;
  --gray-200: #e5e9f2;

  --text-dark: #16233f;
  --text-muted: #5c6b8a;

  --white: #ffffff;

  --gold: #d4af6a;
  --gold-light: #f5dfab;

  --radius: 12px;
  --shadow: 0 10px 30px rgba(10, 26, 60, 0.08);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  background:
    linear-gradient(
      120deg,
      var(--navy-950) 0%,
      var(--navy-800) 55%,
      var(--blue-600) 100%
    );

  overflow: hidden;
  min-height: 430px;

  display: flex;
  align-items: center;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;

  height: 100%;
  width: 55%;

  object-fit: cover;
  opacity: 0.85;

  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, black 35%);

  mask-image:
    linear-gradient(to right, transparent 0%, black 35%);
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background-image:
    radial-gradient(
      rgba(255,255,255,0.16) 1px,
      transparent 1px
    ),
    linear-gradient(
      120deg,
      rgba(10,26,60,0.92) 0%,
      rgba(10,26,60,0.55) 45%,
      rgba(10,26,60,0.1) 75%
    );

  background-size: 26px 26px, auto;
}

.hero-content {
  position: relative;
  z-index: 2;

  padding: 90px 24px;
  padding-left: 5%;

  max-width: 700px;
}

.hero-content h1 {
  color: var(--white);

  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;

  margin-bottom: 18px;

  animation: fadeInUp 0.7s ease both;
}

.hero-content h1 .serif {
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: var(--gold-light);
}

.hero-content p {
  color: #dbe4f7;

  font-size: 1.05rem;
  line-height: 1.7;

  max-width: 560px;

  animation: fadeInUp 0.7s ease 0.15s both;
}

/* ===== HERO PILLS ===== */

.hero-pills {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;
  margin-top: 30px;

  animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-pills a {
  font-size: 0.82rem;
  font-weight: 600;

  color: #dbe4f7;

  border: 1px solid rgba(255,255,255,0.25);

  background: rgba(255,255,255,0.06);

  padding: 9px 16px;

  border-radius: 999px;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.hero-pills a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #211804;

  transform: translateY(-2px);
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseArrow {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   SECTION STRUCTURES
   ========================================================= */

.services {
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(
      680px 440px at 2% 0%,
      rgba(212,175,106,0.28),
      transparent 52%
    ),

    radial-gradient(
      620px 420px at 100% 14%,
      rgba(30,59,255,0.22),
      transparent 52%
    ),

    linear-gradient(
      180deg,
      #eef1fb 0%,
      #e7ecfb 55%,
      #eef1fb 100%
    );

  padding: 76px 0 96px;
}

.services > .container {
  position: relative;
  z-index: 1;
}

/* ===== HEADER SECTION ===== */

.section-header {
  text-align: center;

  max-width: 680px;

  margin: 0 auto 48px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  color: var(--blue-600);

  font-size: 0.75rem;
  font-weight: 800;

  letter-spacing: 2.5px;
  text-transform: uppercase;

  margin-bottom: 18px;
}

.kicker::before,
.kicker::after {
  content: "";

  width: 30px;
  height: 2px;

  border-radius: 2px;

  background: var(--gold);
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;

  color: var(--navy-900);

  line-height: 1.3;

  margin-bottom: 16px;
}

.section-header h2 .serif {
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: var(--blue-600);
}

.section-header p {
  color: var(--text-muted);

  font-size: 1rem;
  line-height: 1.7;
}

/* =========================================================
   CARTES STRUCTURES
   ========================================================= */

.services-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 28px;
}

.service-card {
  position: relative;

  background: var(--white);

  border-radius: var(--radius);

  overflow: hidden;

  border: 1px solid rgba(10,26,60,0.06);

  box-shadow:
    0 18px 40px rgba(10,26,60,0.12);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;

  display: flex;
  flex-direction: column;

  height: 100%;

  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px);

  border-color: var(--gold);

  box-shadow:
    0 28px 55px rgba(10,26,60,0.20);
}

/* ===== IMAGE ===== */

.service-photo {
  position: relative;

  height: 170px;

  overflow: hidden;

  background-color: var(--blue-50);
}

.service-photo-bg {
  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: center;

  transition: transform 0.6s ease;
}

.service-card:hover .service-photo-bg {
  transform: scale(1.08);
}

.service-photo::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(10,26,60,0.05) 30%,
      rgba(10,26,60,0.60) 100%
    );
}

/* ===== TAG ===== */

.service-tag {
  position: absolute;

  z-index: 2;

  top: 14px;
  left: 14px;

  background: rgba(255,255,255,0.94);

  color: var(--navy-900);

  font-size: 0.62rem;
  font-weight: 800;

  letter-spacing: 1px;

  text-transform: uppercase;

  padding: 6px 11px;

  border-radius: 999px;
}

/* ===== NUMBER ===== */

.service-num {
  position: absolute;

  z-index: 2;

  top: 10px;
  right: 16px;

  font-family: "Playfair Display", serif;
  font-style: italic;

  font-size: 2rem;

  color: rgba(255,255,255,0.55);

  text-shadow:
    0 3px 14px rgba(0,0,0,0.35);
}

/* ===== BODY ===== */

.service-body {
  position: relative;

  overflow: hidden;

  padding: 26px 28px 28px;

  display: flex;
  flex-direction: column;

  flex: 1;

  background-color: var(--navy-950);

  background-image:
    radial-gradient(
      rgba(255,255,255,0.12) 1px,
      transparent 1px
    );

  background-size: 22px 22px;
}

.service-card h3 {
  position: relative;

  font-size: 1.15rem;
  font-weight: 600;

  color: var(--white);

  margin-bottom: 12px;
}

.service-body p {
  position: relative;

  color: #b7c0dd;

  font-size: 0.92rem;

  line-height: 1.6;

  margin-bottom: 20px;
}

/* ===== BOUTON MODAL ===== */

.learn-more {
  position: relative;

  display: inline-flex;
  align-items: center;

  gap: 8px;

  width: fit-content;

  color: #8fa2ff;

  background: transparent;

  border: none;

  padding: 0;

  font-family: inherit;

  font-weight: 600;
  font-size: 0.9rem;

  margin-top: auto;

  cursor: pointer;

  transition:
    gap 0.2s ease,
    color 0.2s ease;
}

.learn-more:hover {
  gap: 12px;
  color: var(--gold-light);
}

/* =========================================================
   ÉCOSYSTÈME CONNECTÉ
   ========================================================= */

.ecosystem-section {
  position: relative;

  padding: 100px 24px;

  background: var(--white);

  overflow: hidden;
}

.ecosystem-section::before {
  content: "";

  position: absolute;

  width: 450px;
  height: 450px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(30,59,255,0.08),
      transparent 70%
    );

  top: -180px;
  left: -150px;
}

.ecosystem-section::after {
  content: "";

  position: absolute;

  width: 450px;
  height: 450px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(212,175,106,0.12),
      transparent 70%
    );

  bottom: -200px;
  right: -150px;
}

.ecosystem-container {
  position: relative;

  z-index: 2;

  max-width: 1000px;

  margin: auto;
}

.ecosystem-header {
  text-align: center;

  max-width: 680px;

  margin: 0 auto 55px;
}

.ecosystem-header .kicker {
  margin-bottom: 15px;
}

.ecosystem-header h2 {
  color: var(--navy-900);

  font-size: 2rem;

  font-weight: 800;

  margin-bottom: 15px;
}

.ecosystem-header h2 em {
  font-family: "Playfair Display", serif;

  color: var(--blue-600);
}

.ecosystem-header p {
  color: var(--text-muted);

  line-height: 1.7;
}

/* ===== DIAGRAMME ===== */

.ecosystem-flow {
  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 12px;
}

.flow-node {
  min-width: 230px;

  padding: 17px 28px;

  border-radius: 14px;

  text-align: center;

  font-weight: 700;

  color: var(--white);

  background:
    linear-gradient(
      135deg,
      var(--navy-900),
      var(--blue-600)
    );

  box-shadow:
    0 12px 28px rgba(10,26,60,0.16);

  border: 1px solid rgba(255,255,255,0.1);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.flow-node:hover {
  transform: translateY(-4px);

  box-shadow:
    0 18px 35px rgba(10,26,60,0.22);
}

.flow-node.project {
  background:
    linear-gradient(
      135deg,
      var(--gold),
      #b88e42
    );

  color: #211804;

  font-size: 1.05rem;
}

.flow-node.small {
  min-width: 190px;

  font-size: 0.92rem;
}

.flow-arrow {
  color: var(--gold);

  font-size: 1.6rem;

  font-weight: 800;

  line-height: 1;

  animation: pulseArrow 2s ease-in-out infinite;
}

/* ===== BRANCHE TECH / FORMATION ===== */

.flow-branches {
  width: min(650px, 100%);

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 50px;

  position: relative;

  margin: 4px 0;
}

.flow-branches::before {
  content: "";

  position: absolute;

  top: 0;

  left: 25%;

  right: 25%;

  height: 1px;

  background: var(--gold);
}

.flow-branch {
  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 10px;
}

.flow-branch .branch-arrow {
  color: var(--gold);

  font-size: 1.2rem;

  font-weight: 700;
}

.flow-branch .flow-node {
  width: 100%;

  min-width: 0;
}

/* =========================================================
   POUR QUI ?
   ========================================================= */

.audience-section {
  padding: 95px 24px;

  background:
    linear-gradient(
      180deg,
      #eef1fb 0%,
      #f7f8fc 100%
    );
}

.audience-container {
  max-width: 1100px;

  margin: auto;
}

.audience-header {
  text-align: center;

  margin-bottom: 48px;
}

.audience-header h2 {
  color: var(--navy-900);

  font-size: 2rem;

  font-weight: 800;
}

.audience-header h2 em {
  font-family: "Playfair Display", serif;

  color: var(--blue-600);
}

.audience-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 22px;
}

.audience-card {
  background: var(--white);

  border: 1px solid var(--gray-200);

  border-radius: 16px;

  padding: 30px 22px;

  text-align: center;

  box-shadow:
    0 12px 30px rgba(10,26,60,0.07);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.audience-card:hover {
  transform: translateY(-7px);

  border-color: var(--gold);

  box-shadow:
    0 20px 40px rgba(10,26,60,0.13);
}

.audience-icon {
  width: 58px;
  height: 58px;

  margin: 0 auto 18px;

  border-radius: 16px;

  display: flex;

  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      135deg,
      var(--blue-50),
      #ffffff
    );

  color: var(--blue-600);

  font-size: 1.35rem;
}

.audience-card h3 {
  color: var(--navy-900);

  font-size: 1.05rem;

  margin-bottom: 10px;
}

.audience-card p {
  color: var(--text-muted);

  font-size: 0.88rem;

  line-height: 1.6;

  margin: 0;
}

/* =========================================================
   NOTRE PROMESSE
   ========================================================= */

.promise-section {
  position: relative;

  overflow: hidden;

  padding: 100px 24px;

  background:
    linear-gradient(
      120deg,
      var(--navy-950),
      var(--navy-900) 55%,
      var(--blue-600)
    );

  text-align: center;
}

.promise-section::before {
  content: "";

  position: absolute;

  width: 500px;
  height: 500px;

  border-radius: 50%;

  border: 1px solid rgba(255,255,255,0.08);

  top: -250px;
  right: -100px;
}

.promise-section::after {
  content: "";

  position: absolute;

  width: 350px;
  height: 350px;

  border-radius: 50%;

  border: 1px solid rgba(212,175,106,0.18);

  bottom: -180px;
  left: -100px;
}

.promise-container {
  position: relative;

  z-index: 2;

  max-width: 800px;

  margin: auto;
}

.promise-kicker {
  color: var(--gold-light);

  font-size: 0.75rem;

  font-weight: 800;

  letter-spacing: 2.5px;

  text-transform: uppercase;

  margin-bottom: 18px;
}

.promise-container h2 {
  color: var(--white);

  font-size: 3rem;

  line-height: 1.15;

  font-weight: 800;

  margin-bottom: 20px;
}

.promise-container h2 em {
  display: block;

  font-family: "Playfair Display", serif;

  font-style: italic;

  color: var(--gold-light);

  font-weight: 500;
}

.promise-container p {
  max-width: 620px;

  margin: 0 auto 32px;

  color: #dbe4f7;

  line-height: 1.7;
}

.promise-btn {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  padding: 14px 25px;

  border-radius: 999px;

  background: var(--gold);

  color: #211804;

  font-weight: 700;

  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.promise-btn:hover {
  background: var(--gold-light);

  transform: translateY(-3px);
}

/* =========================================================
   MODALS
   ========================================================= */

.modal {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 25px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;

  inset: 0;

  background:
    rgba(4, 13, 35, 0.82);

  backdrop-filter: blur(5px);
}

.modal-dialog {
  position: relative;

  z-index: 2;

  width: min(850px, 100%);

  max-height: 90vh;

  overflow-y: auto;

  background: var(--white);

  border-radius: 20px;

  box-shadow:
    0 30px 80px rgba(0,0,0,0.35);

  animation: modalIn 0.3s ease both;
}

.modal-close {
  position: absolute;

  top: 16px;
  right: 16px;

  z-index: 5;

  width: 42px;
  height: 42px;

  border: none;

  border-radius: 50%;

  background: var(--navy-950);

  color: var(--white);

  font-size: 1.1rem;

  cursor: pointer;

  display: flex;

  align-items: center;
  justify-content: center;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.modal-close:hover {
  background: var(--blue-600);

  transform: rotate(90deg);
}

.modal-content {
  display: grid;

  grid-template-columns: 40% 60%;
}

.modal-image {
  min-height: 430px;

  background-size: cover;

  background-position: center;
}

.modal-body {
  padding: 48px 40px;
}

.modal-tag {
  display: inline-flex;

  padding: 6px 12px;

  border-radius: 999px;

  background: var(--blue-50);

  color: var(--blue-600);

  font-size: 0.68rem;

  font-weight: 800;

  letter-spacing: 1px;

  text-transform: uppercase;

  margin-bottom: 15px;
}

.modal-body h2 {
  color: var(--navy-900);

  font-size: 2rem;

  line-height: 1.2;

  margin-bottom: 15px;
}

.modal-body h2 em {
  font-family: "Playfair Display", serif;

  color: var(--blue-600);

  font-weight: 500;
}

.modal-body > p {
  color: var(--text-muted);

  line-height: 1.7;

  margin-bottom: 25px;
}

.modal-list {
  list-style: none;

  padding: 0;

  margin: 0 0 28px;
}

.modal-list li {
  display: flex;

  align-items: flex-start;

  gap: 10px;

  color: var(--text-dark);

  font-size: 0.92rem;

  line-height: 1.5;

  padding: 7px 0;
}

.modal-list li i {
  color: var(--blue-600);

  margin-top: 4px;
}

.modal-target {
  padding: 16px;

  margin-bottom: 25px;

  border-left: 3px solid var(--gold);

  background: #f7f8fc;

  color: var(--text-muted);

  font-size: 0.88rem;

  line-height: 1.6;
}

.modal-target strong {
  color: var(--navy-900);
}

.modal-contact {
  display: inline-flex;

  align-items: center;

  gap: 9px;

  background: var(--navy-950);

  color: var(--white);

  padding: 12px 20px;

  border-radius: 999px;

  font-weight: 600;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.modal-contact:hover {
  background: var(--blue-600);

  transform: translateY(-2px);
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  background: var(--navy-950);

  color: #cdd8f0;
}

.footer-grid {
  display: grid;

  grid-template-columns:
    1.6fr 1fr 1.2fr 1.2fr;

  gap: 40px;

  padding: 64px 24px 48px;
}

.footer-col h4 {
  position: relative;

  font-size: 0.75rem;

  font-weight: 600;

  letter-spacing: 1px;

  text-transform: uppercase;

  color: #8b9ac2;

  margin-bottom: 22px;

  padding-bottom: 12px;
}

.footer-col h4::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: 0;

  width: 26px;
  height: 2px;

  background: #fff;
}

.footer-col ul {
  list-style: none;

  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 14px;
}

.footer-col ul li a {
  color: #cdd8f0;

  font-size: 0.9rem;

  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-brand p {
  color: #8b9ac2;

  font-size: 0.88rem;

  line-height: 1.7;

  max-width: 340px;

  margin-bottom: 22px;
}

.f-logo {
  display: flex;

  align-items: center;

  gap: 12px;

  margin-bottom: 18px;
}

.f-logo-icon {
  width: 46px;
  height: 46px;

  object-fit: cover;

  border-radius: 8px;
}

.f-logo-name {
  color: var(--white);

  font-size: 1.15rem;

  font-weight: 700;

  letter-spacing: 0.5px;
}

.footer-socials {
  display: flex;

  gap: 12px;
}

.footer-socials a {
  width: 36px;
  height: 36px;

  border-radius: 8px;

  background: rgba(255,255,255,0.06);

  color: #cdd8f0;

  display: flex;

  align-items: center;
  justify-content: center;

  font-size: 0.9rem;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.footer-socials a:hover {
  background: var(--blue-600);

  color: var(--white);

  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  border-top: 1px solid rgba(255,255,255,0.08);

  padding: 20px 24px;

  color: #8b9ac2;

  font-size: 0.78rem;
}

/* =========================================================
   REVEAL
   ========================================================= */

.reveal {
  opacity: 0;

  transform: translateY(25px);

  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;

  transform: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 992px) {

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content {
    max-width: 650px;
  }

  .hero-image {
    width: 70%;

    opacity: 0.5;
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-content {
    grid-template-columns: 1fr;
  }

  .modal-image {
    min-height: 230px;

    max-height: 250px;
  }
}

@media (max-width: 768px) {

  .hero {
    min-height: 500px;
  }

  .hero-content {
    padding: 75px 24px 60px;
  }

  .hero-content h1 {
    font-size: 2.1rem;
  }

  .hero-image {
    display: none;
  }

  .hero-overlay {
    background:
      linear-gradient(
        120deg,
        var(--navy-950),
        var(--navy-800)
      );
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .flow-branches {
    grid-template-columns: 1fr;

    gap: 15px;

    width: 100%;
  }

  .flow-branches::before {
    display: none;
  }

  .audience-grid {
    grid-template-columns: 1fr 1fr;
  }

  .promise-container h2 {
    font-size: 2.3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
width: 100%;
    text-align: center;
  }
}

@media (max-width: 560px) {

  .hero-content h1 {
    font-size: 1.9rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .hero-pills {
    gap: 7px;
  }

  .hero-pills a {
    font-size: 0.75rem;

    padding: 8px 12px;
  }

  .service-photo {
    height: 190px;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .promise-section {
    padding: 75px 20px;
  }

  .promise-container h2 {
    font-size: 2rem;
  }

  .modal {
    padding: 12px;
  }

  .modal-dialog {
    max-height: 94vh;

    border-radius: 15px;
  }

  .modal-body {
    padding: 32px 24px;
  }

  .modal-body h2 {
    font-size: 1.6rem;
  }

  .modal-image {
    min-height: 190px;

    max-height: 200px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}