/* ============================================================
   GOLDEN ADVISORS — STYLES (VERSION STABILISÉE MOBILE)
   Palette extraite du PDF officiel :
   - Rouge / Marque     : #B91C2C
   - Turquoise / Accent : #0DADBE
   - Sombre / Texte     : #1F2937 / #2D2D2D
   - Gris clair fond    : #F5F7FA
============================================================ */

:root {
  --red: #B91C2C;
  --red-dark: #921522;
  --teal: #0DADBE;
  --teal-dark: #0A8A98;
  --dark: #1F2937;
  --gray: #2D2D2D;
  --muted: #6B7280;
  --line: #E5E7EB;
  --bg: #F5F7FA;
  --white: #ffffff;
  --success: #10B981;
  --error: #DC2626;
  --shadow-sm: 0 2px 8px rgba(31, 41, 55, .06);
  --shadow-md: 0 10px 30px rgba(31, 41, 55, .10);
  --shadow-lg: 0 20px 60px rgba(31, 41, 55, .15);
  --radius: 14px;
  --radius-lg: 22px;
  --transition: .3s ease;
}

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

/* Fix anti-débordement strict pour mobile */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray);
  background: var(--white);
  /* #ffffff pur */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', 'Inter', serif;
  color: var(--dark);
  margin: 0 0 .5em;
  line-height: 1.2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}



/* ============= BUTTONS ============= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: .02em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, .25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .5s, height .5s;
}

.btn:active::after {
  width: 300px;
  height: 300px;
  transition: 0s;
}

.btn--primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .6);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .15);
  border-color: #fff;
}

.btn--white {
  background: #fff;
  color: var(--red);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}

.btn--outline:hover {
  background: var(--red);
  color: #fff;
}

.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
}

.btn .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============= TOPBAR ============= */
.topbar {
  background: var(--dark);
  color: #E5E7EB;
  font-size: .85rem;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 10px 24px;
  justify-content: flex-end;
}

.topbar__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar__badge {
  color: var(--teal);
  font-weight: 600;
}

@media(max-width:900px) {
  .topbar__inner {
    justify-content: flex-start;
    font-size: .78rem;
  }
}

/* ============= HEADER ============= */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .98);
  z-index: 100;
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform .2s;
}

.logo:hover {
  transform: scale(1.02);
}

.logo__mark {
  width: auto;
  height: 60px;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo__title {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--dark);
  letter-spacing: .01em;
}

.logo__accent {
  color: var(--red);
}

.logo__subtitle {
  font-size: .7rem;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.logo--light .logo__title {
  color: #fff;
}

.logo--light .logo__accent {
  color: #fff;
}

.logo--light .logo__subtitle {
  color: rgba(255, 255, 255, .7);
}

.logo__mark img {
  height: 60px;
  width: auto;
}

.nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav__link {
  position: relative;
  padding: 10px 18px;
  font-weight: 500;
  font-size: .95rem;
  color: var(--dark);
  border-radius: 8px;
  transition: var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 2px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}

.nav__link:hover {
  color: var(--red);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__link.active {
  color: var(--red);
}

.nav__link.active::after {
  transform: scaleX(1);
}

.nav__link--cta {
  background: var(--teal);
  color: #fff;
  padding: 10px 24px;
  margin-left: 8px;
}

.nav__link--cta:hover {
  background: var(--teal-dark);
  color: #fff;
}

.nav__link--cta::after {
  display: none;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.burger span {
  width: 26px;
  height: 2px;
  background: var(--dark);
  transition: var(--transition);
  transform-origin: center;
}

.nav-toggle:checked~.burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle:checked~.burger span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked~.burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 340px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 90px 30px 30px;
    box-shadow: var(--shadow-lg);
    transition: right .4s cubic-bezier(.6, .05, .3, 1), visibility .4s;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    visibility: hidden;
    /* Empêche le menu d'étirer la page quand il est fermé */
  }

  .nav-toggle:checked~.nav {
    right: 0;
    visibility: visible;
  }

  .nav__link {
    padding: 16px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav__link::after {
    display: none;
  }

  .nav__link--cta {
    margin: 20px 0 0;
    border-radius: var(--radius);
    text-align: center;
  }

  .nav__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    z-index: 99;
    display: block;
  }

  .nav-toggle:checked~.nav__overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

@media(min-width:901px) {
  .nav__overlay {
    display: none;
  }
}

/* ============= HERO ============= */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1a0508 0%, #B91C2C 70%);
  overflow: hidden;
  color: #fff;
  padding: 90px 0 120px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(13, 173, 190, .25), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0, 0, 0, .3), transparent 50%);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(13, 173, 190, .2);
  color: var(--teal);
  border-radius: 50px;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 24px;
  animation: floatY 3s ease-in-out infinite;
}

@keyframes floatY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #fff;
  line-height: 1.1;
  font-weight: 800;
}

.hero__title em {
  font-style: normal;
  color: var(--teal);
}

.hero__title .hero__hl {
  color: #fff;
  position: relative;
  display: inline-block;
}

.hero__title .hero__hl::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 6px;
  background: var(--teal);
  border-radius: 6px;
  opacity: .5;
}

.hero__lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .85);
  max-width: 560px;
  margin: 24px 0 36px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.stat strong {
  display: block;
  font-size: 2.2rem;
  color: var(--teal);
  font-family: 'Playfair Display', serif;
  font-weight: 800;
}

.stat span {
  font-size: .85rem;
  color: rgba(255, 255, 255, .75);
}

.hero__visual {
  position: relative;
  min-height: 420px;
}

.hero__image {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  box-shadow: var(--shadow-lg);
  animation: floatY 6s ease-in-out infinite;
}

.hero__shape {
  position: absolute;
  border-radius: 30px;
  animation: floatY 5s ease-in-out infinite;
  pointer-events: none;
}

/* Fix formes décoratives pour éviter le débordement horizontal */
.hero__shape--red {
  width: 280px;
  height: 280px;
  max-width: 100%;
  background: rgba(255, 255, 255, .15);
  top: -30px;
  right: 0;
  transform: rotate(15deg);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.hero__shape--teal {
  width: 380px;
  height: 380px;
  max-width: 100%;
  background: var(--teal);
  opacity: .15;
  bottom: -60px;
  left: 0;
  clip-path: polygon(50% 0, 100% 30%, 100% 70%, 50% 100%, 0 70%, 0 30%);
  animation-delay: -2s;
}

.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero__wave svg {
  width: 100%;
  height: 80px;
}

@media(max-width:900px) {
  .hero {
    padding: 60px 0 100px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__visual {
    min-height: 280px;
  }

  .hero__stats {
    gap: 20px;
    flex-wrap: wrap;
  }

  .stat strong {
    font-size: 1.6rem;
  }
}

/* ============= SECTION HEAD ============= */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-head__eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  letter-spacing: .15em;
  font-size: .8rem;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-head__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 14px;
}

.section-head__title .hl {
  color: var(--teal);
}

.section-head__lead {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ============= SERVICES TEASER ============= */
.services-teaser {
  padding: 100px 0;
  background: var(--bg);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  background: #fff;
  padding: 34px 28px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s;
  overflow: hidden;
  border-top: 4px solid transparent;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 3rem;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  color: rgba(185, 28, 44, .08);
  line-height: 1;
}

.service-card__icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  transition: transform .3s;
}

.service-card:hover .service-card__icon {
  transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
  font-size: 1.25rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}

.service-card p {
  color: var(--muted);
  font-size: .95rem;
  margin: 0 0 16px;
}

.service-card__link {
  color: var(--red);
  font-weight: 600;
  font-size: .9rem;
  transition: color .2s, gap .2s;
  display: inline-flex;
  gap: 4px;
}

.service-card__link:hover {
  color: var(--teal);
  gap: 8px;
}

@media(max-width:900px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:600px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ============= WHY ============= */
.why {
  padding: 100px 0;
  background: #fff;
}

.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why__image {
  position: relative;
}

.why__shape--teal {
  position: absolute;
  top: -30px;
  left: 0;
  width: 80%;
  height: 80%;
  background: var(--teal);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  opacity: .12;
  pointer-events: none;
}

.why__image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.why__content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 30px;
}

.why__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why__list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why__check {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .3s;
}

.why__list li:hover .why__check {
  transform: scale(1.15);
}

.why__list strong {
  display: block;
  color: var(--dark);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.why__list p {
  color: var(--muted);
  margin: 0;
  font-size: .95rem;
}

@media(max-width:900px) {
  .why__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

/* ============= CTA BAND ============= */
.cta-band {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  right: 0;
  width: 100%;
  max-width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(13, 173, 190, .3), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-band__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.cta-band p {
  color: rgba(255, 255, 255, .85);
  margin: 0;
}

/* ============= FOOTER ============= */
.footer {
  background: #0F1117;
  color: #D1D5DB;
  padding: 70px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer h4 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: .04em;
}

.footer__about {
  color: rgba(255, 255, 255, .7);
  font-size: .92rem;
  margin-top: 16px;
  line-height: 1.7;
}

.footer__list li {
  margin-bottom: 10px;
}

.footer__list a {
  color: rgba(255, 255, 255, .7);
  transition: color .2s, padding-left .2s;
  display: inline-block;
}

.footer__list a:hover {
  color: var(--teal);
  padding-left: 4px;
}

.footer__contact {
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
  margin: 0 0 10px;
}

.footer__contact strong {
  color: var(--teal);
  margin-right: 6px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0;
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
}

.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media(max-width:900px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:600px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom .container {
    justify-content: flex-start;
  }
}

/* ============= PAGE HEADERS ============= */
.page-head {
  background: linear-gradient(135deg, var(--red), #6f1118);
  color: #fff;
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}

.page-head::before {
  content: '';
  position: absolute;
  top: -100px;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(13, 173, 190, .2), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-head::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  clip-path: polygon(0 100%, 100% 100%, 100% 30%);
}

.page-head__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-head__breadcrumb {
  color: rgba(255, 255, 255, .7);
  font-size: .85rem;
  margin-bottom: 14px;
}

.page-head__breadcrumb a {
  color: rgba(255, 255, 255, .85);
}

.page-head__breadcrumb a:hover {
  color: #fff;
}

.page-head h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 12px;
}

.page-head p {
  color: rgba(255, 255, 255, .85);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ============= SERVICE DETAIL PAGES ============= */
.service-detail {
  padding: 90px 0;
}

.service-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}

.service-detail__grid--reverse {
  direction: rtl;
}

.service-detail__grid--reverse>* {
  direction: ltr;
}

.service-detail__num {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 800;
  color: var(--red);
  opacity: .15;
  line-height: 1;
  margin-bottom: 10px;
}

.service-detail__title {
  font-size: 2.2rem;
  font-family: 'Playfair Display', serif;
  color: var(--dark);
  margin-bottom: 16px;
}

.service-detail__title em {
  font-style: normal;
  color: var(--teal);
}

.service-detail__lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.service-detail__list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.service-detail__list li::before {
  content: '●';
  color: var(--teal);
  font-size: 1.4rem;
  line-height: 1;
  margin-top: -4px;
  flex-shrink: 0;
}

.service-detail__image {
  position: relative;
}

.service-detail__image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.service-detail__image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: 0;
  width: 60%;
  height: 60%;
  background: var(--teal);
  border-radius: 30px;
  opacity: .15;
  z-index: 0;
  pointer-events: none;
}

@media(max-width:900px) {
  .service-detail__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 50px;
  }

  .service-detail__grid--reverse {
    direction: ltr;
  }
}

/* ============= ABOUT ============= */
.about {
  padding: 90px 0;
}

.about__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.about__content p {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 18px;
}

.about__values {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.value-card {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--red);
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}

.value-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.value-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--dark);
}

.value-card p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.about__aside {
  background: var(--bg);
  padding: 40px;
  border-radius: var(--radius-lg);
  position: sticky;
  top: 100px;
}

.about__aside h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.kpi {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--line);
  transition: transform .3s;
}

.kpi:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
}

.kpi strong {
  display: block;
  font-size: 2rem;
  color: var(--red);
  font-family: 'Playfair Display', serif;
}

.kpi span {
  font-size: .85rem;
  color: var(--muted);
}

@media(max-width:900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__aside {
    position: static;
  }
}

/* ============= TEAM ============= */
.team-section {
  padding: 90px 0;
  background: var(--bg);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s;
  position: relative;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team-card__avatar {
  height: 320px;
  background: linear-gradient(135deg, var(--red), #6f1118);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-card__avatar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, #fff);
}

.team-card__avatar svg {
  width: 140px;
  height: 140px;
  color: rgba(255, 255, 255, .7);
  transition: transform .3s;
}

.team-card:hover .team-card__avatar svg {
  transform: scale(1.08);
}

.team-card__body {
  padding: 26px;
}

.team-card__role {
  color: var(--teal);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.team-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.team-card__bio {
  color: var(--muted);
  font-size: .95rem;
}

.team-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.team-card__tags span {
  background: var(--bg);
  color: var(--dark);
  font-size: .78rem;
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid var(--line);
}

@media(max-width:900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:600px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ============= CONTACT ============= */
.contact {
  padding: 90px 0;
  background: #fff;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact__info h2 {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.contact__info>p {
  color: var(--muted);
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.contact__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

.contact__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius);
  border-left: 4px solid var(--teal);
  transition: transform .3s, box-shadow .3s;
}

.contact__item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.contact__item__icon {
  width: 46px;
  height: 46px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact__item strong {
  display: block;
  color: var(--dark);
  margin-bottom: 4px;
}

.contact__item span,
.contact__item a {
  color: var(--muted);
  font-size: .95rem;
  display: block;
}

.contact__item a:hover {
  color: var(--red);
}

.contact__form {
  background: var(--bg);
  padding: 40px;
  border-radius: var(--radius-lg);
  position: relative;
}

.contact__form h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.contact__form>p {
  color: var(--muted);
  margin-bottom: 26px;
}

.contact__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact__actions .btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 1rem;
}

.contact__form .form__note {
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}

.contact__form .form__note a {
  color: var(--red);
  font-weight: 600;
}

@media(max-width:600px) {
  .contact__form {
    padding: 26px;
  }
}

/* Carte Google Maps */
.map-section {
  padding: 0 0 90px;
  background: #fff;
}

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.map-frame iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

/* ============= FAQ ACCORDION ============= */
.faq {
  padding: 90px 0;
  background: var(--bg);
}

.faq__body {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.faq__list {
  flex: 1 1 100%;
  max-width: 820px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq__item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .3s;
}

.faq__item[open] {
  box-shadow: var(--shadow-md);
}

.faq__question {
  width: 100%;
  padding: 22px 26px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: color .2s;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::marker {
  content: '';
}

.faq__question:hover {
  color: var(--red);
}

.faq__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s cubic-bezier(.2, .7, .3, 1), background .3s, color .3s;
}

.faq__icon svg {
  width: 14px;
  height: 14px;
}

.faq__item[open] .faq__icon {
  background: var(--red);
  color: #fff;
  transform: rotate(180deg);
}

.faq__answer-inner {
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
}

.faq__radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.faq__chip {
  padding: 8px 18px;
  border-radius: 50px;
  background: #fff;
  border: 1.5px solid var(--line);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s;
  color: var(--dark);
}

.faq__chip:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.faq__radio:checked+.faq__chip {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.faq__radio:focus-visible+.faq__chip {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

#faq-cabinet:checked~.faq__list .faq__item:not([data-cat="cabinet"]),
#faq-compta:checked~.faq__list .faq__item:not([data-cat="compta"]),
#faq-fiscal:checked~.faq__list .faq__item:not([data-cat="fiscal"]),
#faq-audit:checked~.faq__list .faq__item:not([data-cat="audit"]) {
  display: none;
}

/* ============= ANIMATIONS ============= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.hero__content>*,
.service-card,
.why__list li,
.team-card,
.value-card,
.contact__item,
.kpi,
.faq__item {
  animation: fadeUp .6s ease both;
}

.service-card:nth-child(1),
.team-card:nth-child(1),
.contact__item:nth-child(1),
.kpi:nth-child(1),
.faq__item:nth-child(1) {
  animation-delay: .05s;
}

.service-card:nth-child(2),
.team-card:nth-child(2),
.contact__item:nth-child(2),
.kpi:nth-child(2),
.faq__item:nth-child(2) {
  animation-delay: .12s;
}

.service-card:nth-child(3),
.team-card:nth-child(3),
.contact__item:nth-child(3),
.kpi:nth-child(3),
.faq__item:nth-child(3) {
  animation-delay: .19s;
}

.service-card:nth-child(4),
.team-card:nth-child(4),
.contact__item:nth-child(4),
.kpi:nth-child(4),
.faq__item:nth-child(4) {
  animation-delay: .26s;
}

.service-card:nth-child(5),
.team-card:nth-child(5),
.faq__item:nth-child(5) {
  animation-delay: .33s;
}

.service-card:nth-child(6),
.team-card:nth-child(6),
.faq__item:nth-child(6) {
  animation-delay: .4s;
}

.faq__item:nth-child(7) {
  animation-delay: .47s;
}

.faq__item:nth-child(8) {
  animation-delay: .54s;
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ============= EMPLACEMENTS IMAGES ============= */
.img-slot {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg);
}

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

.img-slot--portrait {
  aspect-ratio: 3 / 4;
}

.img-slot--landscape {
  aspect-ratio: 16 / 11;
}

.img-slot--square {
  aspect-ratio: 1 / 1;
}

.img-slot--wide {
  aspect-ratio: 21 / 9;
}

.img-slot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(92, 139, 205, 0.85);
  color: #ae5757;
  font-size: .76rem;
  line-height: 1.5;
  padding: 10px 14px;
  text-align: center;
  margin: 0;
}

/* ============= BARRE D'ACTIONS RAPIDES ============= */
.quick-actions {
  display: none;
}

@media(max-width:600px) {
  body {
    padding-bottom: 66px;
  }

  .quick-actions {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(31, 41, 55, .1);
  }

  .quick-actions a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 4px 8px;
    font-size: .68rem;
    font-weight: 600;
    color: var(--dark);
  }

  .quick-actions__icon {
    font-size: 1.15rem;
    line-height: 1;
  }

  .quick-actions a.qa-primary {
    color: var(--red);
  }
}

/* Back to top button */
.back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 90;
  transition: transform .3s, background .2s;
}

.back-top:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
}

.back-top svg {
  width: 20px;
  height: 20px;
}

@media(max-width:600px) {
  .back-top {
    bottom: 76px;
    right: 16px;
  }
}

/* Responsive fine-tuning */
@media(max-width:600px) {
  .hero {
    padding: 50px 0 90px;
  }

  .hero__stats {
    gap: 20px;
  }

  .stat {
    flex: 1 1 30%;
  }

  .hero__title {
    font-size: 2rem;
  }

  .contact__form {
    padding: 24px;
  }

  .container {
    padding: 0 16px;
  }
}

@media(max-width:900px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .map-frame iframe {
    height: 300px;
  }
}

@media(max-width:420px) {
  .topbar__inner {
    font-size: .72rem;
    gap: 14px;
  }

  .logo__subtitle {
    display: none;
  }

  .hero__title {
    font-size: 1.7rem;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .btn {
    padding: 13px 22px;
    font-size: .9rem;
  }

  .cta-band h2 {
    font-size: 1.4rem;
  }

  .service-detail__num {
    font-size: 3.6rem;
  }

  .service-detail__title {
    font-size: 1.7rem;
  }
}



/* ============================================================
   GOLDEN ADVISORS — COUCHE INTERACTIONS & COMPOSANTS AVANCÉS
   (Préchargeur, curseur, progress bar, compteurs, marquee,
   boutons magnétiques, sous-nav sticky, timeline, blobs...)
============================================================ */

/* ---------- Variables additionnelles ---------- */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- PRÉCHARGEUR ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #1a0508 0%, var(--red) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 22px;
  transition: opacity .6s var(--ease-out), visibility .6s;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__mark {
  width: 74px;
  height: 74px;
  animation: preloaderPulse 1.4s ease-in-out infinite;
}

.preloader__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

@keyframes preloaderPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: .85;
  }

  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

.preloader__bar {
  width: 180px;
  height: 3px;
  background: rgba(255, 255, 255, .2);
  border-radius: 3px;
  overflow: hidden;
}

.preloader__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--teal);
  border-radius: 3px;
  animation: preloaderLoad 1.1s var(--ease-out) forwards;
}

@keyframes preloaderLoad {
  to {
    width: 100%;
  }
}

.preloader__label {
  color: rgba(255, 255, 255, .75);
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .preloader {
    display: none;
  }
}

/* ---------- BARRE DE PROGRESSION AU SCROLL ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--red));
  z-index: 1000;
  transition: width .08s linear;
}

/* ---------- CURSEUR PERSONNALISÉ (desktop only) ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--red);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(185, 28, 44, .45);
  transition: width .25s var(--ease-out), height .25s var(--ease-out), border-color .25s, background .25s;
}

.cursor-ring.is-active {
  width: 56px;
  height: 56px;
  background: rgba(13, 173, 190, .1);
  border-color: var(--teal);
}

@media (hover: none),
(max-width: 900px) {

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ---------- BOUTONS MAGNÉTIQUES ---------- */
.btn.magnetic {
  will-change: transform;
}

/* ---------- HERO : FOND ANIMÉ (mesh + particules) ---------- */
.hero__mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__mesh span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
  animation: meshDrift 14s ease-in-out infinite;
}

.hero__mesh span:nth-child(1) {
  width: 380px;
  height: 380px;
  background: var(--teal);
  top: -80px;
  left: 10%;
  animation-duration: 16s;
}

.hero__mesh span:nth-child(2) {
  width: 300px;
  height: 300px;
  background: #ff6b7a;
  bottom: -60px;
  right: 8%;
  animation-duration: 12s;
  animation-delay: -4s;
}

.hero__mesh span:nth-child(3) {
  width: 220px;
  height: 220px;
  background: #ffd166;
  top: 30%;
  right: 30%;
  opacity: .18;
  animation-duration: 18s;
  animation-delay: -8s;
}

@keyframes meshDrift {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -20px) scale(1.08);
  }

  66% {
    transform: translate(-20px, 25px) scale(.95);
  }
}

.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__particles i {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, .55);
  border-radius: 50%;
  animation: particleUp linear infinite;
}

@keyframes particleUp {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: .6;
  }

  100% {
    transform: translateY(-680px) translateX(var(--drift, 20px));
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero__mesh span,
  .hero__particles i {
    animation: none;
  }
}

/* ---------- EYEBROW avec point pulsant ---------- */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero__eyebrow .dot-pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.hero__eyebrow .dot-pulse::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  animation: dotPulse 1.8s ease-out infinite;
}

@keyframes dotPulse {
  0% {
    transform: scale(.5);
    opacity: 1;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* ---------- TEXTE ROTATIF (typewriter word swap) ---------- */
.rotating-word {
  color: var(--teal);
  position: relative;
  display: inline-block;
}

.rotating-word::after {
  content: '|';
  display: inline-block;
  margin-left: 2px;
  animation: caretBlink 1s step-end infinite;
  color: var(--teal);
}

@keyframes caretBlink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

/* ---------- STAT COUNTERS ---------- */
[data-counter] {
  font-variant-numeric: tabular-nums;
}

/* ---------- MARQUEE (références clients) ---------- */
.marquee-section {
  padding: 46px 0;
  background: var(--dark);
  overflow: hidden;
  position: relative;
}

.marquee-section::before,
.marquee-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}

.marquee-section::before {
  left: 0;
  background: linear-gradient(90deg, var(--dark), transparent);
}

.marquee-section::after {
  right: 0;
  background: linear-gradient(270deg, var(--dark), transparent);
}

.marquee-section__label {
  text-align: center;
  color: rgba(255, 255, 255, .5);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.marquee {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}

.marquee:hover {
  animation-play-state: paused;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
}

.marquee__track span {
  color: rgba(50, 23, 159, 0.454);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
  letter-spacing: .02em;
  transition: color .3s;
}

.marquee__track span:hover {
  color: var(--teal);
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

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

/* ---------- STATS BAND (chiffres animés) ---------- */
.stats-band {
  padding: 80px 0;
  background: var(--bg);
  position: relative;
}

.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-block {
  text-align: center;
  padding: 30px 18px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s;
}

.stat-block:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.stat-block strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--red), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.stat-block span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
}

@media(max-width:900px) {
  .stats-band__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- SOUS-NAV STICKY (page services) ---------- */
.subnav {
  position: sticky;
  top: 97px;
  z-index: 40;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.subnav__inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 14px 24px;
  scrollbar-width: none;
}

.subnav__inner::-webkit-scrollbar {
  display: none;
}

.subnav a {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  border: 1.5px solid var(--line);
  transition: all .25s;
  white-space: nowrap;
}

.subnav a:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.subnav a.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

@media(max-width:600px) {
  .subnav {
    top: 97px;
  }

  .subnav__inner {
    padding: 12px 16px;
  }
}

/* ---------- REVEAL IMAGE CLIP (service-detail__image) ---------- */
.clip-reveal {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-out), transform 1s var(--ease-out);
}

.clip-reveal.pre-reveal {
  clip-path: inset(0 0 100% 0);
}

/* ---------- PROCESS TIMELINE (à propos / démarche) ---------- */
.timeline {
  position: relative;
  padding-left: 34px;
  border-left: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.timeline__item {
  position: relative;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -41px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--red);
  transition: transform .3s, border-color .3s;
}

.timeline__item:hover::before {
  transform: scale(1.25);
  border-color: var(--teal);
}

.timeline__item strong {
  display: block;
  color: var(--dark);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.timeline__item p {
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
}

/* ---------- TEAM CARD (photo réelle, effet lift + halo) ---------- */
.team-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}

.team-card:hover .team-card__avatar img {
  transform: scale(1.06);
}

.team-card__avatar {
  background: linear-gradient(135deg, var(--dark), #333);
}

/* ---------- DÉPARTEMENT / GRID DE FONCTIONS (équipe pluridisciplinaire) ---------- */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.dept-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
  border-top: 3px solid transparent;
}

.dept-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--teal);
}

.dept-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: transform .3s, background .3s;
}

.dept-card:hover .dept-card__icon {
  background: var(--red);
  transform: rotate(-8deg) scale(1.08);
}

.dept-card h4 {
  font-size: .98rem;
  margin-bottom: 6px;
  color: var(--dark);
}

.dept-card p {
  font-size: .84rem;
  color: var(--muted);
  margin: 0;
}

@media(max-width:900px) {
  .dept-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- BADGE DIPLÔME / ORDRE ---------- */
.credential-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.credential-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 600;
  color: var(--dark);
  transition: transform .25s, border-color .25s;
}

.credential-chip:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
}

.credential-chip svg {
  width: 15px;
  height: 15px;
  color: var(--red);
  flex-shrink: 0;
}

/* ---------- ASSOCIÉ (equipe.html) — carte détaillée ---------- */
.associe-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 50px;
  align-items: start;
  padding: 44px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 44px;
  position: relative;
  overflow: hidden;
}

.associe-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--red), var(--teal));
}

.associe-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5;
}

.associe-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}

.associe-grid:hover .associe-photo img {
  transform: scale(1.04);
}

.associe-role {
  color: var(--teal);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 8px;
  display: block;
}

.associe-name {
  font-size: 1.7rem;
  margin-bottom: 14px;
}

.associe-bio p {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: .98rem;
}

.associe-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.associe-highlights div {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.associe-highlights strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--red);
}

.associe-highlights span {
  font-size: .78rem;
  color: var(--muted);
}

@media(max-width:900px) {
  .associe-grid {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .associe-photo {
    max-width: 260px;
    margin: 0 auto;
  }
}

@media(max-width:600px) {
  .associe-highlights {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- SPOTLIGHT HOVER (cards suivant la souris) ---------- */
.spotlight {
  position: relative;
}

.spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%), rgba(13, 173, 190, .14), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  z-index: 0;
}

.spotlight:hover::before {
  opacity: 1;
}

.spotlight>* {
  position: relative;
  z-index: 1;
}

/* ---------- SCROLL REVEAL VARIANTS ---------- */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(.92);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ---------- FORM DE CONTACT (feedback micro-interactions) ---------- */
.copy-feedback {
  position: relative;
}

.copy-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: #fff;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 200;
  box-shadow: var(--shadow-lg);
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- SECTION DIVIDER WAVE (générique) ---------- */
.divider-wave {
  line-height: 0;
}

.divider-wave svg {
  width: 100%;
  height: 60px;
}

/* ---------- LOGO SPIN ON LOAD ---------- */
.logo__mark img {
  transition: transform .5s var(--ease-spring);
}

.logo:hover .logo__mark img {
  transform: rotate(-8deg) scale(1.08);
}

/* ---------- HOME "APPROCHE" PROCESS ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: process;
}

.process-card {
  position: relative;
  padding: 32px 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s;
}

.process-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.process-card__step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--red);
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background .3s, color .3s;
}

.process-card:hover .process-card__step {
  background: var(--red);
  color: #fff;
}

.process-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.process-card p {
  font-size: .88rem;
  color: var(--muted);
  margin: 0;
}

.process-connector {
  display: none;
}

@media(min-width:901px) {
  .process-grid {
    position: relative;
  }
}

@media(max-width:900px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:600px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- UTIL: pas de tap highlight, focus visible clair ---------- */
a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
.faq__question:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Assure aucun débordement horizontal global ---------- */
.marquee-section,
.hero,
.stats-band,
.services-teaser {
  max-width: 100%;
}


/* ---------- Header renforcé au scroll ---------- */
.header.is-scrolled {
  box-shadow: var(--shadow-md);
}

/* ---------- Empêche le scroll pendant le préchargement ---------- */
body.is-loading {
  overflow: hidden;
}

/* ---------- REVEAL DE BASE (fade + translateY) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- GLOW TITLE (soulignement lumineux progressif) ---------- */
.glow-title {
  position: relative;
}

.glow-title .hl,
.glow-title em {
  position: relative;
  font-style: normal;
  background: linear-gradient(90deg, var(--red), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glow-title::after {
  content: none;
}

/* ---------- TILT / FLOAT-IMG : transition douce ---------- */
.tilt {
  transition: transform .35s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}

.float-img {
  will-change: transform;
}

/* FORCE L'AFFICHAGE DE LA SECTION WHY US */
.why {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.why__image.is-visible,
.why__content.is-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* ============================================================
   AJUSTEMENT DES 6 IMAGES DE L'ÉQUIPE (ADAPTATION ET CENTRAGE)
   ============================================================ */

/* 1. Aligne et centre toutes les cartes de la grille */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
  /* Harmonise la hauteur des cartes */
  justify-content: center;
}

/* 2. Style du conteneur de chaque carte d'équipe */
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Centre le contenu horizontalement */
  text-align: center;
  /* Centre les titres et textes */
  height: 100%;
}

/* 3. Adapte le conteneur à l'image (et non l'inverse) */
.team-card__avatar {
  width: 100%;
  height: auto !important;
  /* Libère la hauteur pour l'image */
  aspect-ratio: auto !important;
  /* Annule le ratio carré forcé */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: transparent;
  padding: 10px;
  /* Espace respirant autour des images */
}

/* 4. Respect des proportions d'origine des images */
.team-card__avatar img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 260px;
  /* Limite la hauteur max pour garder l'alignement propre */
  object-fit: contain !important;
  /* L'image s'affiche à 100% entière sans être coupée */
  margin: 0 auto;
  display: block;
  border-radius: 6px;
}

/* 5. Alignement des tags et du texte dans les cartes */
.team-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
  width: 100%;
}

.team-card__tags {
  justify-content: center;
  margin-top: auto;
}
