/* ===== Base ===== */
* {
  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: white;
  --muted: #a7b7c3;
  --accent: #2f80ed;
  --icon-bg: #0b141a;
  --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: #2f2f2f;
  --footer-light: #ffffff;
  --footer-text-dark: #0f1113;
  --footer-text-light: #eef3f7;
  --footer-line: rgba(255, 255, 255, .55);
  --footer-cta: #2f80ed;
  /* rose doux bouton */
}

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

body {
  margin: 0;
  background: #1b252e;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, 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: #1b252e; /* devient solide en scroll */
}

.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 {
  filter: invert(1);
  display: flex;
  align-items: center;
}

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

/* ===== 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: #e9eef6;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 2px;
  transition: color .22s cubic-bezier(.22,1,.36,1);
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 2px;
  background: #fff;
  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: #fff;
}

.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: #e9eef6;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease, background .2s ease;
}

.site-header.is-scrolled .nav-toggle .bar {
  background: #ffffff;
}

.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;
  background: #1b252e;
}

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

.hero-bg-filter {
  position: absolute;
  inset: 0;
  background: rgba(12, 16, 19, 0.68);
  z-index: 1;
}

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

/* Bloc titres */
.hero__inner {
  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: Georgia, "Times New Roman", serif;
  font-weight: 300;
  letter-spacing: .04em;
  color: #f2f6fb;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 1.02;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}

.hero h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 200;
  letter-spacing: .06em;
  color: #e6ecf3;
  font-size: clamp(22px, 3.2vw, 50px);
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.hero__anniversary {
  margin: 24px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #ffffff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .6);
}

.hero__years {
  font-size: clamp(18px, 2.5vw, 32px);
  font-weight: 500;
  letter-spacing: .08em;
  color: #ffffff;
}

.hero__tagline {
  margin-top: 2px;
  font-size: clamp(16px, 2.4vw, 28px);
  font-weight: 400;
  letter-spacing: .06em;
  color: #ffffff;
  opacity: 1;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .6);
}

/* ===== 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 img {
    height: 100px;
  }
}

/* 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: #1b252e;
  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);
}

/* Ensure affiliation above image uses full image width */
.about-section__image .affiliation--img {
  width: 100%;
  max-width: 500px; /* match img max-width */
  margin: 0 0 18px 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-section__content {
  flex: 1 1 200px;
  color: #fff;
  font-size: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 320px;
  max-width: 520px;
}

.about-section__content h2 {
  font-size: 2.7rem;
  color: #e0e4e8;
  font-style: italic;
  font-weight: 400;
  margin: 0 0 18px 0;
  letter-spacing: .03em;
}

.about-section__content p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.15;
  font-weight: 300;
  color: #fff;
  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 {
    max-width: 80vw;
    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;
    text-align: center;
  }
}

@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); }

.services {
  max-width: 1100px;
  margin: 56px auto;
  padding: 0 22px 8px;
  background: transparent;
}

/* Barre simple (desktop) */
.track {
  position: relative;
  height: var(--track-h);
  margin: 6px 4px 22px;
  border-radius: 0;
  background: #92969b;
}

.track__cursor {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: max(var(--cursor-w), 40px);
  transform: translateX(0);
  display: grid;
  place-items: stretch;
  will-change: transform;
  contain: paint;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.track__cursor-core {
  width: var(--cursor-w);
  height: 100%;
  border-radius: 0;
  background: var(--accent);
}

/* Icônes + labels */
.icons {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 20px;
  padding: 8px 6px 14px;
}

.iconWrap {
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  gap: 8px;
}

.iconBox {
  appearance: none;
  border: 0;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--icon-bg);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .2s var(--timing), background .2s ease;
}

.iconBox:hover { transform: translateY(-2px); }
.iconBox[aria-selected="true"] { background: var(--icon-bg-active); }

.icon__svg {
  width: 26px;
  height: 26px;
  display: block;
  fill: currentColor;
}

.iconLabel {
  appearance: none;
  border: 0;
  background: transparent;
  color: #d6e2ee;
  font-size: 20px;
  cursor: pointer;
  transition: color .2s ease, transform .2s var(--timing);
}

.iconLabel:hover {
  color: #fff;
  transform: translateY(-1px);
}

.iconWrap.is-active .iconLabel { color: #fff; }

/* Contenu */
.content {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: start;
}

.content__title {
  margin: 0 0 12px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  font-size: 2.7rem;
  letter-spacing: .06em;
  font-weight: 400;
  text-transform: uppercase;
  color: #f2f6fb;
}

.content__desc {
  color: var(--text);
  opacity: .95;
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.7;
  padding-left: 0;
}

/* Style pour les paragraphes dans les descriptions */
.content__desc p {
  margin: 0 0 1em 0;
}

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

/* Style pour les listes à puces */
.content__desc .bullet-list {
  margin: 0.5em 0;
  padding-left: 1.5em;
  list-style-type: disc;
  display: block;
}

/* Bloc affiliation (membre Fiduciaire Suisse) */
.affiliation {
  margin-top: 1.8rem;
  background: linear-gradient(135deg, #1f2a34 0%, #253543 100%);
  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--inline { margin-top: 1.4rem; }
  .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 {
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .affiliation--top { margin-bottom: 1.4rem; }
  .affiliation--top .affiliation__logo { width: 70%; }


/* Affiliation juste au-dessus de l'image (même largeur) */
.affiliation--img {
  background-color: none !important;
  box-shadow: none !important;
  width: 100%;
  margin: 0 0 16px 0;
  padding: 1.1rem 1.2rem 1.2rem;
  border-radius: 18px;
}
.about-section__image .affiliation--img + img {
  display: block;
}
.affiliation--img .affiliation__logo { width: 200px; }
/* Logo avec fond identique au container */
.affiliation--img .affiliation__logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0;
  padding: 0;
}
/* Texte en blanc dans la version au-dessus de l'image */
.affiliation--img p {
  color: #ffffff;
  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;
}
@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%;
  }
  .affiliation--img p {
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}
.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;
}
.affiliation a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  position: relative;
}
.affiliation a:after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--accent);
  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;
}
@media (max-width: 680px){
  .affiliation { padding: 1rem 1.1rem 1.2rem; }
  .affiliation__logo { width: 72%; }
}

.content__desc .bullet-list li {
  margin: 0.5em 0;
  padding-left: 0.5em;
  display: list-item;
  list-style-position: outside;
}

.content__desc .bullet-list li:first-child {
  margin-top: 0;
}

.content__desc .bullet-list li:last-child {
  margin-bottom: 0;
}

/* Style pour les liens dans les descriptions */
.content__desc a {
  color: white;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.content__desc a:hover {
  opacity: 0.8;
}

/* Média: image */
.content__media {
  width: var(--media-w);
  height: var(--media-h);
  max-width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #181e24;
  box-shadow: 0 2px 36px rgba(0, 0, 0, .35);
}

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

/* Animations contenu */
.content {
  --duration: 600ms;
  --timing: cubic-bezier(.22, 1, .36, 1);
}

.content.is-animating .content__title { animation: fadeUp var(--duration) var(--timing) both; }
.content.is-animating .content__desc { animation: fadeUp var(--duration) var(--timing) both; animation-delay: 0.12s; }
.content.is-animating .content__media img { animation: popIn var(--duration) var(--timing) both; animation-delay: 0.24s; }

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

@keyframes popIn {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* Responsive services */
@media (max-width: 980px) {
  .track { display: none !important; }

  .icons {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 18px 6px;
    padding: 8px 4px 10px;
  }
  
  /* Première ligne : 4 icônes occupent 2 colonnes chacune */
  .iconWrap:nth-child(1) { grid-column: 1 / 3; }
  .iconWrap:nth-child(2) { grid-column: 3 / 5; }
  .iconWrap:nth-child(3) { grid-column: 5 / 7; }
  .iconWrap:nth-child(4) { grid-column: 7 / 9; }
  
  /* Deuxième ligne : 3 icônes centrées - laissent 1 colonne vide de chaque côté */
  .iconWrap:nth-child(5) { grid-column: 2 / 4; }
  .iconWrap:nth-child(6) { grid-column: 4 / 6; }
  .iconWrap:nth-child(7) { grid-column: 6 / 8; }

  .iconBox {
    width: clamp(52px, 14vw, 64px);
    height: clamp(52px, 14vw, 64px);
  }

  .icon__svg {
    width: clamp(20px, 6vw, 26px);
    height: clamp(20px, 6vw, 26px);
  }

  .iconLabel {
    font-size: clamp(11px, 3.2vw, 14px);
    line-height: 1.2;
  }

  .content {
    grid-template-columns: 1fr;
    margin-top: 32px;
    gap: 18px;
  }

  .content__media {
    width: 100%;
    height: auto;
    aspect-ratio: calc(var(--media-w) / var(--media-h));
    margin-top: 6px;
  }
  .content__title { font-size: 2.3rem !important; }
}

/* Focus accessibilité */
.iconBox:focus-visible,
.iconLabel:focus-visible {
  outline: 2px solid #a7c7ff;
  outline-offset: 2px;
}

/* ===== 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;
  background: var(--footer-light);
  color: var(--footer-text-dark);
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  gap: 14px;
  padding-left: 200px;
}

.footer__title {
  margin: 0 0 10px 0;
  font-size: 2.7rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #111;
}

.footer__company { margin: 0; font-weight: 600; }

.footer__address { font-style: normal; line-height: 1.6; }

.footer__contacts a {
  color: #111;
  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: rgba(0, 0, 0, .35); }

/* Carte (gauche bas en desktop) */
.footer__map {
  grid-area: map;
  background: var(--footer-light);
  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: var(--footer-dark);
  color: var(--footer-text-light);
  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: rgba(255, 255, 255, .86);
  font-size: 18px;
}

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

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

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

/* Bouton */
.btn-send {
  appearance: none;
  border: 0;
  background: var(--footer-cta);
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
  transition: transform .15s ease, filter .2s ease, box-shadow .2s ease;
  width: max-content;
}

.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;
}

.force-motion .iconBox {
  transition: transform .2s var(--timing), background .2s ease !important;
}
  @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; 
  }
}

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