/* ===== Base ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}
html {
  scroll-behavior: smooth;
  /* corrige le scroll vers les ancres avec header fixe */
  scroll-padding-top: 88px; /* ≈ hauteur header */
}

:root {
  --text: #1b252e;
  --text-light: #4a5568;
  --muted: #718096;
  --accent: #2f80ed;
  --bg-primary: #ffffff;
  --bg-secondary: #f7fafc;
  --icon-bg: #f7fafc;
  --icon-bg-active: #2f80ed;

  /* Barre et image */
  --track-h: 6px;
  --media-w: 520px;
  --media-h: 320px;

  /* Module bleu (largeur ajustable) */
  --cursor-w: 90px;
  --timing: cubic-bezier(.22, 1, .36, 1);
  --duration: 380ms;

  /* Footer */
  --footer-dark: #1b252e;
  --footer-light: #ffffff;
  --footer-text-dark: #1b252e;
  --footer-text-light: #ffffff;
  --footer-line: rgba(27, 37, 46, .15);
  --footer-cta: #2f80ed;
}

html {
  scroll-behavior: smooth;
  /* corrige le scroll vers les ancres avec header fixe */
  scroll-padding-top: 88px; /* ≈ hauteur header */
}

body {
  margin: 0;
  background: #ffffff;
  color: #1b252e;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

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

/* ===== Header (overlay sur le hero, puis solide au scroll) ===== */
.site-header {
  position: fixed;      /* overlay dès l’arrivée */
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  pointer-events: auto; /* cliquable */
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
 padding-top: 10px;
 padding-bottom: 10px;
}

.site-header.is-scrolled {
  background: #ffffff; /* devient solide en scroll */
  box-shadow: 0px 0px 12px 0px rgba(0,0,0,0.28);
}

.site-header__inner {
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
  height: 68px; /* hauteur header */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-brand {
  display: flex;
  align-items: center;
}

.site-brand img {
  height: clamp(50px, 4vw, 150px);
  width: auto;
  display: block;
  object-fit: contain;
}

.site-brand .logo-mobile {
  display: none;
}

/* ===== Nav desktop ===== */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
}

.main-nav a {
  position: relative;
  display: inline-block;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 2px;
  transition: color .22s cubic-bezier(.22,1,.36,1);
  font-size: 1.2em;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  opacity: 0;
  transform: scaleX(0.6);
  transition:
    opacity .26s cubic-bezier(.22,1,.36,1),
    transform .26s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--accent);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.main-nav .sep {
  opacity: .7;
  user-select: none;
}

.main-nav .langs {
  display: flex;
  gap: clamp(8px, 1vw, 16px);
}

/* ===== Burger button ===== */
.nav-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  width: 50px;
  height: 50px;
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  z-index: 130;
}

.nav-toggle .bar {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2.6px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease, background .2s ease;
}

.site-header.is-scrolled .nav-toggle .bar {
  background: var(--text);
}

.nav-toggle .bar:nth-child(2) { top: 16px; }
.nav-toggle .bar:nth-child(3) { top: 24px; }
.nav-toggle .bar:nth-child(4) { top: 32px; }

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;

}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0.29;
}



.hero-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(120px, 20vh, 260px);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 80%, #ffffff 100%);
  z-index: 2;
  pointer-events: none;
}

/* Bloc titres */
.hero__inner {
  color: black;
  position: relative;
  z-index: 3;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  transform: translateY(3vh);
}

/* Titres */
.hero h1 {
  margin: 0 0 8px 0;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: .04em;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 1.02;

}

.hero h2 {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: .06em;
  font-size: clamp(22px, 3.2vw, 50px);
  line-height: 1.1;

}



.hero__tagline {
  margin-top: 2px;
  font-size: clamp(16px, 2.4vw, 28px);
  font-weight: 400;
  letter-spacing: .06em;
  opacity: 1;

}

/* ===== Mobile & Tablet (containers width) ===== */
@media (max-width: 1600px) {
  .hero__inner { max-width: 1300px; }
  .site-header__inner { max-width: 1300px; }
}

@media (max-width: 1400px) {
  .hero__inner { max-width: 1100px; }
  .site-header__inner { max-width: 1100px; }
}

@media (max-width: 1200px) {
  .hero__inner { max-width: 900px; }
  .site-header__inner { max-width: 900px; }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100svh;
    width: min(66vw, 320px);
    padding: calc(env(safe-area-inset-top, 0px) + 96px) 18px 24px 18px;
    background: rgba(10, 14, 18, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: -18px 0 40px rgba(0, 0, 0, .35);
    border-left: 1px solid rgba(255, 255, 255, .06);
    transform: translateX(120%);
    transition: transform .52s cubic-bezier(.22, 1, .36, 1);
    z-index: 125;
    overflow: auto;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
  }

  body.nav-open .main-nav { transform: translateX(0); }

    .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 26px; /* Augmente l'espacement vertical entre les liens */
  }

  .main-nav a {
    display: block;
    padding: 18px 10px 14px 14px; /* Plus de padding vertical et à gauche */
    border-radius: 10px;
    font-size: 1.25rem; /* Agrandit la taille du texte */
    color: #f0f4f8;
    background: transparent;
    transition: background .2s ease, transform .15s ease;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: .02em;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: rgba(255,255,255,.06);
    color: #fff;
    transform: translateY(-2px) scale(1.05);
  }
  .main-nav a:after{
    display:none;
  }

  .main-nav .langs {
    gap: 20px;
    padding: 18px 10px 10px 14px;
    font-size: 1.1rem;
    opacity: .9;
  }


  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .38);
    z-index: 110;
  }

  body.nav-open { overflow: hidden; }

  .hero__inner {
    padding-left: 10px;
    padding-right: 10px;
    justify-items: center;
    text-align: center;
    transform: translateY(0);
  }

  .site-header__inner {
    height: 68px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .site-brand .logo-desktop {
    display: none;
  }
  
  .site-brand .logo-mobile {
    display: block;
    height: 45px;
  }
}

/* Téléphones étroits */
@media (max-width: 520px) {
  .hero h1 { font-size: clamp(42px, 12vw, 64px); }
  .hero h2 { font-size: clamp(18px, 5.2vw, 28px); }
}

/* ===== Section "Notre entreprise" ===== */
.about-section {
  background: var(--bg-primary);
  padding: 60px 0;
  display: flex;
  justify-content: center;
}

.about-section__container {
  display: flex;
  flex-direction: row;
  max-width: 1300px;
  width: 100%;
  gap: 64px;
  align-items: center;
  margin: 0 10px;
  padding-left: 10px;
  padding-right: 10px;
  flex-wrap: wrap; /* allow full-width affiliation block above */
}

.about-section__image {
  flex: 1 1 0;
  min-width: 0;
  max-width: 600px;
  display: flex;
  flex-direction: column; /* stack affiliation then image */
  align-items: center;
  justify-content: flex-start;
  margin-top: 42px; /* abaisse le bloc image */
}

.about-section__image img {
  width: 100%;
  height: auto;
  max-width: 500px;
  border-radius: 48px;
  object-fit: cover;
  background: #181e24;
  display: block;
  box-shadow: 0 2px 36px 0 rgba(0, 0, 0, 0.40);
}

/* Bloc affiliation (membre Fiduciaire Suisse) */
.affiliation {
  margin-top: 1.8rem;
  padding: 1.2rem 1.4rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: 0 4px 18px -4px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}

.affiliation:before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 18% 22%, rgba(255,255,255,0.07), transparent 60%);
  pointer-events: none;
}

.affiliation p {
  margin: 0 0 .9rem 0;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.5;
  font-weight: 300;
  color: #1d1d1d;
}

.affiliation a {
  color: var(--accent);
  font-weight: 500;
  position: relative;
}

.affiliation a:after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: #ffffff;
  opacity: .55;
  transition: opacity .25s;
}

.affiliation a:hover:after { opacity: 1; }

.affiliation__logo {
  display: block;
  max-width: 240px;
  width: 60%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Affiliation juste au-dessus de l'image (même largeur) */
.affiliation--img {
  margin-top: 0;
  width: 100%;
  max-width: 500px;
  margin: 0 0 16px 0;
  padding: 1.1rem 1.2rem 1.2rem;
  border-radius: 18px;
}

.about-section__image .affiliation--img {
  margin-bottom: 1rem;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.affiliation--img p {
  color: #000000;
  font-weight: 300;
  margin: 0 0 10px;
  max-width: 500px;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  text-align: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.affiliation--img .affiliation__logo {
  width: 200px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0;
  padding: 0;
}

@media (max-width: 780px){
  .about-section__image .affiliation--img {
    margin-bottom: 1rem;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }
  .affiliation--img p {
    max-width: 500px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .affiliation--img .affiliation__logo {
    width: 58%;
    max-width: 100%;
  }
}

@media (max-width: 680px){
  .affiliation { padding: 1rem 1.1rem 1.2rem; }
  .affiliation__logo { width: 72%; }
}

/* Ensure affiliation above image uses full image width */
.about-section__image .affiliation--img + img {
  display: block;
}

.about-section__content {
  flex: 1 1 200px;
  color: var(--text);
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 320px;
  max-width: 600px;
}

.about-section__content h2 {
  font-size: 2.5rem;
  color: var(--text);
  font-style: normal;
  font-weight: 700;
  margin: 0 0 24px 0;
  letter-spacing: .03em;
}



.about-section__content p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 300;
  white-space: pre-line;
}

/* Responsive about */
@media (max-width: 900px) {
  .about-section__container {
    flex-direction: column-reverse;
    gap: 28px;
    margin: 0 4px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .about-section__image,
  .about-section__content {
    min-width: 0;
    max-width: 100%;
  }

  .about-section__image img {
    border-radius: 28px;
  }

  .about-section {
    padding: 36px 0;
  }

  .about-section__content h2 {
    font-size: 2.3rem !important;
    text-align: center;
  }

  .about-section__content p {
    padding-left: 14px;
    padding-right: 14px;
    font-size: 1.05rem !important;
  }
}

@media (max-width: 520px) {
  .about-section { padding: 24px 0; }
  .about-section__content h2 { font-size: 1.35rem; }
  .about-section__content p { font-size: 0.98rem; }
}

/* ===== Section Services ===== */
#tab-image { filter: grayscale(1); }

/* ===== Service Section (Light Mode - 2 Columns Layout) ===== */
.service-section {
  padding: 0 40px;
}

.service-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.service-content {
  padding-right: 20px;
}

.service-section h2 {
  margin: 0 0 24px;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent);
  text-transform: uppercase;
}

.service-section p {
  color: var(--text);
  font-size: 1.15rem;
  margin: 0 0 1.2em 0;
}

.service-section p:last-child {
  margin-bottom: 0;
}

.service-image {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .15);
}

.service-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (max-width: 900px) {
  .service-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .service-content {
    padding-right: 0;
  }
  
  .service-section {
    margin: 60px 20px;
    padding: 0 20px;
  }
  
  .service-section h2 {
    font-size: 2rem;
  }
  
  .service-section p {
    font-size: 1.05rem;
  }
}

/* ===== Footer / Contact ===== */
.site-footer {
  margin-top: 80px;
}

/* Grille avec zones nommées pour pouvoir réordonner en mobile */
.footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "info form"
    "map  form";
  gap: 0;
  min-height: 560px;
}

/* Astuce: on “aplati” le conteneur gauche pour que ses enfants
   (.footer__info et .footer__map) deviennent des items de la grille parent */
.footer__left {
  display: contents;
}

/* Colonne infos (gauche) */
.footer__info {
  grid-area: info;
  color: var(--text);
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  gap: 14px;
  padding-left: 200px;
}

.footer__title {
  margin: 0 0 10px 0;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text);
}

.footer__company { margin: 0; font-weight: 600; color: var(--text); }

.footer__address { font-style: normal; line-height: 1.6; color: var(--text-light); }

.footer__contacts a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, .15);
}

.footer__company,
.footer__address,
.footer__contacts {
  font-size: 1.25rem;
  line-height: 1.7;
}

.footer__contacts a:hover { border-color: var(--accent); }

/* Carte (gauche bas en desktop) */
.footer__map {
  grid-area: map;
  background: var(--bg-secondary);
  min-height: 260px;
  border-top: 1px solid rgba(0, 0, 0, .08);
}

.footer__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Formulaire (colonne droite) */
.footer__right {
    grid-area: form;
    background: #2f2f2f;
    color: white;
    display: grid;
    place-items: center;
    padding: clamp(28px, 4vw, 56px);
}

.footer__form {
  width: min(540px, 86%);
  display: grid;
  gap: 28px;
}

.field { display: grid; gap: 8px; }

.field__label {
color: white;
  font-size: 18px;
  font-weight: 500;
}

.field__input {
  color: white;
  appearance: none;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  padding: 10px 2px 12px 2px;
  outline: none;
  transition: border-color .28s var(--timing), transform .18s var(--timing);
}

.field__input:focus {
  border-bottom-color: var(--accent);
  transform: translateY(-1px);
}

.field--textarea .field__input {
  resize: vertical;
  min-height: 120px;
}

/* Bouton */
.btn-send {
background: #2f80ed;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s 
ease, box-shadow 0.2s 
ease;
max-width: 250px;
}

.btn-send:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .22);
}

.btn-send:active { transform: translateY(0); }

/* Footer responsive */
@media (max-width: 980px) {

  /* Ordre mobile: infos -> formulaire -> carte */
  .footer {
    grid-template-columns: 1fr;
    grid-template-areas:
      "info"
      "form"
      "map";
  }

  /* Pousse les coordonnées un peu à droite */
  .footer__info {
    padding: 36px 24px 24px 46px;
  }

  .footer__map { min-height: 220px; }
  .footer__title { font-size: 2.3rem !important; }

  .footer__right {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}

/* Force motion (déjà présent) */
.force-motion .content.is-animating .content__title,
.force-motion .content.is-animating .content__desc {
  animation: fadeUp var(--duration) var(--timing) both !important;
}

.force-motion .content.is-animating .content__desc {
  animation-delay: 0.12s !important;
}

.force-motion .content.is-animating .content__media img {
  animation: popIn var(--duration) var(--timing) both !important;
  animation-delay: 0.24s !important;
}

/* ===== Animations générales ===== */
  @keyframes a-fadeUp   { from{opacity:0; transform:translateY(28px)} to{opacity:1; transform:translateY(0)} }
  @keyframes a-slideLeft{ from{opacity:0; transform:translateX(-34px)} to{opacity:1; transform:translateX(0)} }
  @keyframes a-slideUp  { from{opacity:0; transform:translateY(40px)} to{opacity:1; transform:translateY(0)} }
  @keyframes a-zoomSoft { from{opacity:0; transform:scale(.94)} to{opacity:1; transform:scale(1)} }
  @keyframes a-fadeIn   { from{opacity:0} to{opacity:1} }

  /* Etat initial caché; l’anim démarre uniquement quand .is-visible est ajouté */
  .reveal { opacity: 0; transform: translateZ(0); }

  /* Variantes. On met un délai variable --delay si besoin */
  .reveal.is-visible.anim-fadeup    { animation: a-fadeUp   var(--dur,720ms) cubic-bezier(.22,1,.36,1) var(--delay,0s) both; }
  .reveal.is-visible.anim-slideleft { animation: a-slideLeft var(--dur,720ms) cubic-bezier(.22,1,.36,1) var(--delay,0s) both; }
  .reveal.is-visible.anim-slideup   { animation: a-slideUp  var(--dur,740ms) cubic-bezier(.22,1,.36,1) var(--delay,0s) both; }
  .reveal.is-visible.anim-zoom      { animation: a-zoomSoft var(--dur,700ms) cubic-bezier(.22,1,.36,1) var(--delay,0s) both; }
  .reveal.is-visible.anim-fadein    { animation: a-fadeIn   var(--dur,820ms) cubic-bezier(.22,1,.36,1) var(--delay,0s) both; }

.grecaptcha-badge {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  box-sizing: content-box !important;
  display: block !important;
  background: none !important;
  font-size: 100% !important;
  border: none !important;
  border-radius: 6px !important;
  /* Surtout, ne pas mettre d'overflow/resize/transform */
}
.grecaptcha-badge {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s, visibility .25s;
}
body.show-recaptcha .grecaptcha-badge {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ============================================
   BOUTON VOIR LES DÉTAILS & MODAL
   ============================================ */

/* Bouton pour voir les détails */
.btn-details {
  display: block;
  margin-top: 1.5em;
  padding: 8px 16px;
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
  width: fit-content;
}

.btn-details:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.btn-details:active {
  transform: scale(0.98);
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
  padding: 20px;
}

.modal-content {
  background: #1a2332;
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 36px;
  height: 36px;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.modal-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.modal-content h3 {
  color: #f2f6fb;
  margin: 0 0 1.5rem 0;
  font-size: 1.8rem;
  padding-right: 40px;
}

.modal-body {
  color: var(--text);
  line-height: 1.7;
}

.modal-body .bullet-list {
  margin: 1em 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    transform: translateY(30px); 
    opacity: 0; 
  }
  to { 
    transform: translateY(0); 
    opacity: 1; 
  }
}

/* ===== Section Service Unique ===== */
.service-section {
  max-width: 1400px;
  margin: 80px auto;
  padding: 60px 40px;

}

.service-container {
  width: 100%;
}

.service-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
}




.service-content p {
  margin-bottom: 1.5rem;
}

.service-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .service-section {
   margin: 14px 14px;
   padding: 25px 16px;
  }
  
  .service-section h2 {
    font-size: 2rem;
  }
  
  .service-content {
    font-size: 1rem;
  }
}

/* Responsive modal */
@media (max-width: 768px) {
  .modal-content {
    padding: 2rem 1.5rem;
    max-height: 90vh;
  }
  
  .modal-content h3 {
    font-size: 1.5rem;
  }
}
  