/* ============================================================
   Bonneville Avocats — Landing page
   Fonts : Marcellus (titres) / Inter (texte)
   ============================================================ */

:root {
  --green-dark: #003d12;
  --green-soft: #ccd8d0;
  --orange: #cd8c2f;
  --cream: #fbf5ec;
  --ink: #1c1c1c;
  --ink-soft: #4a4a4a;
  --grey-text: #6b6b6b;
  --footer-bg: #f2f2f3;
  --white: #ffffff;
  --rdpq-blue: #1e2177;
  --approche-bg: #c7c4b3;
  --container: 1520px;
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: 'Marcellus', serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-cta {
  background: var(--orange);
  color: var(--white);
}

.btn-cta:hover {
  background: #b97c26;
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-dark:hover {
  background: #000;
}

.btn-ghost {
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .7);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .25);
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
}

.btn-orange:hover {
  background: #b97c26;
}

.btn-white {
  background: var(--white);
  color: var(--ink);
}

.btn-white:hover {
  background: #cd8c2f;
  color: #fff;
}

.equipe .btn-white:hover {
  background: #000;
}

.btn-phone-light {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .7);
}

.btn-phone-light:hover {
  background: rgba(255, 255, 255, .15);
}

/* phone icon (inline) */
.ico-phone,
.ico-phone-w {
  width: 15px;
  height: 15px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.ico-phone {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M6.62 10.79a15.5 15.5 0 006.59 6.59l2.2-2.2a1 1 0 011.02-.24 11.36 11.36 0 003.56.57 1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1 11.36 11.36 0 00.57 3.56 1 1 0 01-.25 1.02l-2.2 2.21z'/></svg>");
}

.ico-phone-w {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M6.62 10.79a15.5 15.5 0 006.59 6.59l2.2-2.2a1 1 0 011.02-.24 11.36 11.36 0 003.56.57 1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1 11.36 11.36 0 00.57 3.56 1 1 0 01-.25 1.02l-2.2 2.21z'/></svg>");
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #eee;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

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

.main-nav>a {
  font-size: 18px;
  color: var(--ink);
  font-weight: 400;
  transition: color .2s;
}

.main-nav>a:hover {
  color: var(--orange);
}

.header-cta {
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: .3s;
}

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

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

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: url("assets/banner.jpg") center center / cover no-repeat;
  min-height: 706px;
  display: flex;
  align-items: end;
  color: var(--white);
  padding-bottom: 100px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .55) 40%, rgba(0, 0, 0, .15) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--white);
  font-size: 58px;
  line-height: 1.08;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, .9);
  max-width: 650px;
  margin-bottom: 32px;
  font-weight: 300;
}

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

/* ============================================================
   INTRO (Partenaire de confiance)
   ============================================================ */
.intro {
  padding: 90px 0;
  background: var(--white);
}

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

.intro-media img {
  width: 100%;

  object-fit: cover;
}

.intro-text h2 {
  font-size: 44px;
  margin-bottom: 26px;
}

.intro-text p {
  color: rgba(0, 0, 0, .8);
  font-size: 16px;
  margin-bottom: 18px;
  font-weight: 400;
}

.intro-text .btn {
  margin-top: 12px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--green-soft) url("assets/bg_services.jpg") center right / cover no-repeat;
  padding: 80px 0 100px;
  position: relative;
}

.services .container {
  position: relative;
  z-index: 2;
}

.section-head {
  text-align: center;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: 44px;
  margin-bottom: 14px;
}

.section-head p {
  color: #2b2b2b;
  font-size: 18px;
  font-weight: 400;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border-radius: 10px;
  padding: 30px 28px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .05);
}

.service-icon img {
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.service-card p {
  color: #333;
  font-size: 16px;
  font-weight: 400;
}

.services-cta {
  background: var(--green-dark);
  border-radius: 10px;
  margin: 40px auto 0;
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.services-cta-text h3 {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 4px;
}

.services-cta-text p {
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  font-weight: 300;
}

.services-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   SYNERGIE
   ============================================================ */
.synergie {
  padding: 90px 0;
  background: var(--white);
}

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

.synergie-text h2 {
  font-size: 40px;
  margin-bottom: 24px;
}

.synergie-text p {
  color: #333;
  font-size: 16px;
  margin-bottom: 18px;
}

.synergie-text .btn {
  margin-top: 12px;
}

.synergie-media img {
  width: 100%;
}

/* ============================================================
   APPROCHE
   ============================================================ */
.approche {
  position: relative;
  background: url("assets/bg_team.jpg") top center / cover no-repeat;
  padding: 80px 0 90px;
  color: var(--ink);
}

.approche-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .30);
}

.approche .container {
  position: relative;
  z-index: 2;
}


.approche .section-head p {
  color: var(--ink-soft);
}

.approche-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px 90px;
  margin: 10px auto 0;
}

.approche-col {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.approche-col-left {
  align-items: flex-start;
}

.value-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255, 255, 255, .55);
  padding: 35px 25px;
  border-radius: 10px;
  backdrop-filter: blur(2px);
  min-height: 202px;
}

span.value-icon {
  width: 48px;
  display: contents;
}

.value-icon img {
  width: 48px;
  height: 48px;
}

.value-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.value-card p {
  color: #4B5563;
  font-size: 16px;
  line-height: 1.6;
}

/* ============================================================
   TÉMOIGNAGES
   ============================================================ */
.temoignages {
  background: var(--cream);
  padding: 80px 0 90px;
}

.temoignages-title {
  text-align: center;
  font-size: 34px;
  margin-bottom: 50px;
}

.temoignages-grid {
  display: grid;
  gap: 24px;
  margin: 0 auto;
}

.global-styles,
.eapps-widget-toolbar {
  display: none !important;
}

.testimonial {
  background: var(--white);
  border-radius: 8px;
  padding: 28px 26px 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
  position: relative;
}

.quote-mark {
  font-family: 'Marcellus', serif;
  font-size: 54px;
  line-height: 1;
  color: #d9d4c7;
  display: block;
  margin-bottom: 6px;
}

.testimonial>p {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 300;
  margin-bottom: 22px;
  line-height: 1.7;
}

.testimonial-foot {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e6e0d4;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.tname {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.stars {
  margin-left: auto;
  color: var(--orange);
  font-size: 13px;
  letter-spacing: 1px;
}

/* ============================================================
   SÉRÉNITÉ
   ============================================================ */
.serenite {
  padding: 70px 0 80px;
  background: var(--white);
}

.serenite-box {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: url("assets/bg_section_serenite.png") center center / cover no-repeat;
}

.serenite-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 40, 25, .55);
}

.serenite-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 64px 30px;
}

.serenite-inner h2 {
  color: var(--white);
  font-size: 40px;
  margin-bottom: 18px;
}

.serenite-inner p {
  color: rgba(255, 255, 255, .9);
  font-size: 15px;
  font-weight: 300;
  margin-bottom: 30px;
}

.serenite-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  padding: 50px 0 30px;
}

.footer-contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e2e2e2;
}

.fc-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fc-label {
  display: block;
  font-size: 12px;
  color: var(--grey-text);
  margin-bottom: 2px;
}

.fc-val {
  display: block;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 44px 0;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.8);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--ink);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 16px;
  color: #000;
  transition: color .2s;
}

.footer-col a:hover {
  color: var(--orange);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid #e2e2e2;
}

.rdpq {
  font-family: 'Marcellus', serif;
  font-weight: 700;
  color: var(--rdpq-blue);
  font-size: 18px;
  letter-spacing: 1px;
}

.copyright {
  font-size: 13px;
  color: var(--grey-text);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 46px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-text h2,
  .synergie-text h2 {
    font-size: 32px;
  }

  .section-head h2 {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .hero h1 br {
    display: none;
  }

  .logo img {
    max-width: 200px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 32px;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 12px 20px rgba(0, 0, 0, .06);
    transition: max-height .35s ease, padding .35s ease;
  }

  .main-nav.open {
    max-height: 400px;
    padding: 16px 32px 24px;
  }

  .main-nav>a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .header-cta {
    margin-top: 10px;
    width: auto;
  }

  .hero {
    min-height: 480px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-overlay {
    background: rgba(0, 0, 0, .6);
  }

  .intro {
    padding: 60px 0;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .intro-media {
    order: -1;
  }

  .services {
    padding: 60px 0 70px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 26px;
  }

  .synergie {
    padding: 60px 0;
  }

  .synergie-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .synergie-media {
    order: -1;
  }

  .approche {
    padding: 60px 0;
  }

  .approche-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .value-card {
    background: rgba(255, 255, 255, .8);
  }

  .approche-col {
    gap: 26px;
  }

  .temoignages {
    padding: 60px 0;
  }

  .temoignages-grid {
    grid-template-columns: 1fr;
  }

  .temoignages-title {
    font-size: 28px;
  }

  .serenite-inner {
    padding: 48px 22px;
  }

  .serenite-inner h2 {
    font-size: 30px;
  }

  .footer-contacts {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .intro-text h2,
  .synergie-text h2 {
    font-size: 27px;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .hero-actions .btn,
  .serenite-actions .btn,
  .services-cta-actions .btn {
    flex: 1 1 auto;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ========== PAGE À PROPOS ==========
   ============================================================ */

/* active nav link */
.main-nav>a.active {
  color: var(--orange);
  font-weight: 500;
}

/* ---------- HERO À PROPOS ---------- */
.hero-about {
  background: url("assets/banner_about.jpg") center center / cover no-repeat;
  min-height: 512px;
  padding-bottom: 90px;
  align-items: end;
}

.hero-about-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 45, 15, .88) 0%, rgba(0, 45, 15, .70) 45%, rgba(0, 45, 15, .30) 100%);
}

.hero-about .hero-content {
  position: relative;
  z-index: 2;
}

.hero-about h1 {
  font-size: 52px;
}

/* ---------- VOTRE ALLIÉ ---------- */
.allie {
  padding: 90px 0;
  background: var(--white);
}

.allie-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
}

.allie-media img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.allie-text h2 {
  font-size: 44px;
  margin-bottom: 26px;
}

.allie-text>p {
  color: rgba(0, 0, 0, .8);
  font-size: 16px;
  margin-bottom: 18px;
  font-weight: 400;
}

.allie-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}

.mv-box {
  background: #faefe0;
  border-radius: 8px;
  padding: 20px 22px;
}

.mv-box.mv-vision {
  background: #fbf3e6;
}

.mv-box h4 {
  font-family: 'Inter', sans-serif;
  color: var(--orange);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.mv-box p {
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

.allie-text .btn {
  margin-top: 6px;
}

/* ---------- RENCONTREZ NOTRE ÉQUIPE ---------- */
.equipe {
  padding: 40px 0 90px;
  background: var(--white);
}

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

.team-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .10);
  aspect-ratio: 496 / 577;
  background: #eee;
  cursor: pointer;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* default name bar (bottom) */
.team-namebar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: var(--white);
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  transition: opacity .3s ease;
}

.team-namebar h3 {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.team-namebar span {
  font-size: 16px;
  color: var(--grey-text);
}

/* hover overlay card (slides up) */
.team-hover {
  position: absolute;
  left: 5%;
  width: 90%;
  top: 12%;
  bottom: 5%;
  height: auto;
  background: var(--white);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(100%);
  transition: transform .45s cubic-bezier(.22, .61, .36, 1), opacity .3s ease;
  pointer-events: none;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
  overflow: hidden;
}

.team-hover h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.team-hover>span {
  font-size: 14px;
  line-height: 1.45;
  color: var(--grey-text);
  display: block;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(205, 140, 47, .28);
}

/* ---------- bio défilante : scroll fin, fondus haut/bas ---------- */
.team-bio {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 14px;
  margin-right: -6px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgba(205, 140, 47, .5) rgba(28, 28, 28, .07);
  /* fondus : épaisseurs pilotées par les classes .has-top / .has-more */
  --fade-top: 0px;
  --fade-bot: 0px;
  -webkit-mask-image: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0,
      #000 var(--fade-top),
      #000 calc(100% - var(--fade-bot)),
      rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0,
      #000 var(--fade-top),
      #000 calc(100% - var(--fade-bot)),
      rgba(0, 0, 0, 0) 100%);
}

.team-bio.has-top {
  --fade-top: 30px;
}

.team-bio.has-more {
  --fade-bot: 46px;
}

.team-bio p {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 12px;
}

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

/* WebKit / Chromium */
.team-bio::-webkit-scrollbar {
  width: 4px;
}

.team-bio::-webkit-scrollbar-track {
  background: rgba(28, 28, 28, .07);
  border-radius: 100px;
  margin: 2px 0;
}

.team-bio::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #e2ae59 0%, var(--orange) 100%);
  border-radius: 100px;
  transition: background .3s ease;
}

.team-bio::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--orange) 0%, #a56c1d 100%);
}

/* hover trigger */
.team-card:hover .team-hover,
.team-card:focus-within .team-hover,
.team-card.is-open .team-hover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.team-card:hover .team-namebar,
.team-card:focus-within .team-namebar,
.team-card.is-open .team-namebar {
  opacity: 0;
}

.team-card:focus {
  outline: none;
}

.team-card:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .team-hover {
    transition: opacity .2s ease;
  }

  .team-bio {
    scroll-behavior: auto;
  }
}

/* équipe CTA (orange band) */
.equipe-cta {
  background: var(--orange);
  border-radius: 10px;
  margin-top: 44px;
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.equipe-cta-text h3 {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 4px;
}

.equipe-cta-text p {
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  font-weight: 300;
}

.equipe-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- NOTRE PHILOSOPHIE ---------- */
.philosophie {
  position: relative;
  background: var(--green-dark) url("assets/bg_philosophie.jpg") center center / cover no-repeat;
  padding: 70px 0 80px;
  color: var(--white);
}

.philosophie-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 45, 15, .82);
}

.philosophie .container {
  position: relative;
  z-index: 2;
}

.philosophie-title {
  text-align: center;
  color: var(--white);
  font-size: 40px;
  margin-bottom: 44px;
}

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

.philo-card {
  background: var(--white);
  border-radius: 10px;
  padding: 26px 26px;
}

.philo-icon {
  display: inline-flex;
  margin-bottom: 16px;
}

.philo-icon img {
  width: 26px;
  height: 26px;
}

.philo-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.philo-card p {
  color: var(--grey-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

/* ---------- NOTRE PROCESSUS ---------- */
.processus {
  padding: 80px 0 40px;
  background: var(--white);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  margin: 0 auto 30px;
  position: relative;
}

.process-step {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* connecting dashed line between markers */
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(50% + 70px);
  right: calc(-50% + 70px);
  height: 1px;
  border-top: 2px dashed #cfd8d0;
}

.process-marker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.process-num {
  font-family: 'Marcellus', serif;
  font-size: 60px;
  color: #d5ddd6;
  line-height: 1;
  font-weight: 600;
}

.process-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.process-card {
  background: #f4f4f4;
  border-radius: 10px;
  padding: 26px 24px;
  text-align: center;
}

.process-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.process-card p {
  color: #525252;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

/* ---------- DISCUTONS: reuse .serenite styles (already defined) ---------- */
.serenite-inner p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   RESPONSIVE — PAGE À PROPOS
   ============================================================ */
@media (max-width: 992px) {
  .hero-about h1 {
    font-size: 40px;
  }

  .allie-text h2 {
    font-size: 34px;
  }

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

  .philo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 0;
  }

  .process-step:nth-child(2)::after {
    display: none;
  }

  .process-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-about h1 {
    font-size: 32px;
  }

  .hero-about h1 br {
    display: none;
  }

  .hero-about-overlay {
    background: rgba(0, 45, 15, .78);
  }

  .allie {
    padding: 40px 0;
  }

  .allie-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    display: flex;
    flex-direction: column-reverse;
  }

  .allie-media {
    order: -1;
  }

  .allie-boxes {
    grid-template-columns: 1fr;
  }

  .equipe {
    padding: 30px 0 60px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .team-card {
    /* bios intégrales : carte plus haute pour laisser respirer le texte */
    aspect-ratio: 496 / 660;
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
  }

  /* tactile : la carte s'ouvre au tap (classe .is-open) */
  .team-hover {
    top: 8%;
    bottom: 4%;
    padding: 22px 20px 20px;
  }

  .team-bio p {
    font-size: 15px;
  }

  .equipe-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 26px;
  }

  .philosophie {
    padding: 60px 0;
  }

  .philosophie-title {
    font-size: 30px;
  }

  .philo-grid {
    grid-template-columns: 1fr;
  }

  .processus {
    padding: 60px 0;
  }

  .process-steps {
    grid-template-columns: 1fr;
    max-width: 260px;
    gap: 10px;
    margin-bottom: 24px;
  }

  .process-step::after {
    display: none !important;
  }

  .process-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-about h1 {
    font-size: 27px;
  }

  .allie-text h2 {
    font-size: 27px;
  }

  .philosophie-title {
    font-size: 26px;
  }

  .equipe-cta-actions .btn {
    flex: 1 1 auto;
  }
}

/* ============================================================
   ========== PAGE SERVICES ==========
   ============================================================ */

/* ---------- HERO SERVICES ---------- */
.hero-services {
  background: url("assets/banner_services.jpg") center center / cover no-repeat;
  min-height: 512px;
  padding-bottom: 90px;
  align-items: end;
}

.hero-services h1 {
  font-size: 52px;
}

/* ---------- BLOC SERVICE (alterné) ---------- */
.svc-block {
  padding: 62px 0;
  background: var(--white);
}

.svc-block.svc-alt {
  background: #f2f2f3;
}

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

.svc-media img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* badge : icône + libellé */
.svc-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.svc-badge img {
  flex-shrink: 0;
}

.svc-badge span {
  font-family: 'Marcellus', serif;
  font-size: 20px;
  font-weight: 600;
  color: #003D12;
}

.svc-text h2 {
  font-family: 'Marcellus', serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 18px;
}

.svc-text>p {
  color: #4B5563;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.svc-text .svc-lead {
  margin-bottom: 12px;
  font-size: 18px;
}

.svc-text .svc-lead strong {
  font-weight: 600;
}

/* liste à coches */
.svc-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.svc-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.svc-check {
  flex-shrink: 0;
  margin-top: 3px;
}

.svc-list li>div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.svc-list strong {
  font-size: 18px;
  font-weight: 600;
  color: #4B5563;
  line-height: 1.4;
}

.svc-list span {
  font-size: 16px;
  color: #4B5563;
  line-height: 1.6;
}

/* variante : items sur une seule ligne */
.svc-list-simple {
  gap: 12px;
}

/* note italique */
.svc-note {
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.svc-note strong {
  font-weight: 600;
}

/* ---------- RESPONSIVE — SERVICES ---------- */
@media (max-width: 992px) {
  .hero-services h1 {
    font-size: 40px;
  }

  .svc-grid {
    gap: 40px;
  }

  .svc-text h2 {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .hero-services h1 {
    font-size: 32px;
  }

  .hero-services h1 br {
    display: none;
  }

  .svc-block {
    padding: 50px 0;
  }

  /* image toujours au-dessus du texte sur mobile */
  .svc-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    display: flex;
    flex-direction: column;
  }

  .svc-media {
    order: -1;
  }

  .svc-text h2 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .hero-services h1 {
    font-size: 27px;
  }

  .svc-text h2 {
    font-size: 20px;
  }

}

/* ============================================================
   ========== PAGE CONTACT ==========
   ============================================================ */

/* accessibilité : label visible pour lecteurs d'écran uniquement */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact {
  padding: 64px 0 80px;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.14fr 1fr;
  gap: 33px;
  align-items: stretch;
}

/* ---------- Visuel de gauche ---------- */
.contact-media {
  border-radius: 12px;
  overflow: hidden;
}

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

/* ---------- Colonne de droite ---------- */
.contact-panel h1 {
  font-family: 'Marcellus', serif;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
}

.contact-panel>p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.contact-panel .contact-lead {
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 26px;
}

.contact-panel .contact-lead strong {
  font-weight: 600;
}

/* ---------- Carte du formulaire ---------- */
.contact-card {
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: var(--white);
  padding: 24px;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

/* champs */
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 0 16px;
  height: 43px;
  transition: border-color .2s ease, box-shadow .2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.contact-form textarea {
  height: 135px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
}

/* placeholders */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9a9a9a;
  opacity: 1;
}

/* select non renseigné = couleur placeholder */
.contact-form select.is-placeholder {
  color: #9a9a9a;
}

.contact-form select option {
  color: var(--ink);
}

/* chevron des selects */
.contact-form select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  cursor: pointer;
}

/* focus */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(205, 140, 47, .12);
}

/* bouton centré */
.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.form-actions .btn {
  min-width: 203px;
  height: 48px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

/* ============================================================
   RESPONSIVE — CONTACT
   ============================================================ */
@media (max-width: 992px) {
  .contact-grid {
    gap: 28px;
  }

  .contact-panel h1 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .contact {
    padding: 40px 0 60px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* le visuel passe au-dessus du formulaire */
  .contact-media {
    order: -1;
    max-height: 360px;
  }

  .contact-panel h1 {
    font-size: 30px;
  }

  .contact-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .contact-panel h1 {
    font-size: 26px;
  }

  /* champs empilés sur une colonne */
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

/* ============================================================
   ========== ANIMATIONS & MICRO-INTERACTIONS ==========
   Aucune animation n'utilise translateX : impossible de créer
   un défilement horizontal. Filet de sécurité ci-dessous.
   ============================================================ */

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ---------- Apparition au défilement ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity .6s cubic-bezier(.22, .61, .36, 1),
    transform .6s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}

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

/* décalage en cascade pour les grilles de cartes */
.reveal[data-delay="1"] { transition-delay: .10s; }
.reveal[data-delay="2"] { transition-delay: .20s; }
.reveal[data-delay="3"] { transition-delay: .30s; }

/* si JS est désactivé, tout reste visible */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- Micro-interactions ---------- */

/* boutons : légère élévation */
.btn {
  transition:
    background-color .25s ease,
    color .25s ease,
    transform .2s ease,
    box-shadow .25s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn-orange:hover,
.btn-cta:hover {
  box-shadow: 0 6px 18px rgba(205, 140, 47, .32);
}
.btn-white:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
}

/* cartes : élévation douce */
.service-card,
.philo-card,
.process-card,
.value-card,
.contact-card {
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover,
.philo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .10);
}

/* visuels : zoom contenu (overflow masqué = pas de débordement) */
.intro-media,
.synergie-media,
.allie-media,
.svc-media,
.contact-media {
  overflow: hidden;
  border-radius: 10px;
}
.intro-media img,
.synergie-media img,
.allie-media img,
.svc-media img,
.contact-media img {
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}
.intro-media:hover img,
.synergie-media:hover img,
.allie-media:hover img,
.svc-media:hover img,
.contact-media:hover img {
  transform: scale(1.04);
}

/* liens du footer : soulignement animé */
.footer-col a {
  position: relative;
  transition: color .2s ease;
}
.footer-col a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}
.footer-col a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* blocs de coordonnées cliquables du footer */
.fc-item {
  color: inherit;
  text-decoration: none;
  border-radius: 10px;
  padding: 6px;
  margin: -6px;
  transition: background-color .25s ease, transform .25s ease;
}
.fc-item:hover {
  background: rgba(0, 0, 0, .035);
  transform: translateY(-2px);
}
.fc-item:hover .fc-val {
  color: var(--orange);
}
.fc-item .fc-val {
  transition: color .2s ease;
}
.fc-item:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* liens de navigation : soulignement animé */
.main-nav > a:not(.btn)::after {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
  margin-top: 4px;
}
.main-nav > a:not(.btn):hover::after,
.main-nav > a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* icône du bouton "burger" déjà animée dans le CSS de base */

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {

  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

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


/* ============================================================
   ========== PAGES LÉGALES (confidentialité / cookies) ==========
   ============================================================ */

.legal {
  padding: 70px 0 90px;
  background: var(--white);
}

.legal-container {
  max-width: 900px;
}

/* en-tête */
.legal-head { margin-bottom: 40px; }

.legal-head h1 {
  font-family: 'Marcellus', serif;
  font-size: 44px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
}

.legal-meta {
  font-size: 13.5px;
  color: var(--grey-text);
  margin-bottom: 20px;
}



/* sommaire */
.legal-toc {
  background: #f7f7f8;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 44px;
}
.legal-toc h2 {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}
.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}
.legal-toc li {
  margin-bottom: 8px;
  break-inside: avoid;
  font-size: 14px;
}
.legal-toc a {
  color: var(--ink-soft);
  transition: color .2s ease;
}
.legal-toc a:hover { color: var(--orange); }

/* sections */
.legal-section {
  margin-bottom: 40px;
  scroll-margin-top: 110px;
}

.legal-section h2 {
  font-family: 'Inter', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ececec;
}

.legal-section h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 22px 0 10px;
}

.legal-section p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.legal-section ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal-section li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.legal-section a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-section a:hover { color: #b97c26; }

.legal-section strong { color: var(--ink); font-weight: 600; }

/* encadré coordonnées */
.legal-box {
  background: #f7f7f8;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 20px 22px;
  margin: 18px 0;
}
.legal-box p:last-child { margin-bottom: 0; }

/* note secondaire */
.legal-note {
  font-size: 14px;
  font-style: italic;
  color: var(--grey-text);
}

/* ---------- Responsive — pages légales ---------- */
@media (max-width: 768px) {
  .legal { padding: 44px 0 60px; }
  .legal-head h1 { font-size: 30px; }
  .legal-toc { padding: 20px; }
  .legal-toc ol { columns: 1; }
  .legal-section h2 { font-size: 18px; }
}

@media (max-width: 480px) {
  .legal-head h1 { font-size: 26px; }
}


/* ============================================================
   ========== CONSENTEMENT DU FORMULAIRE (Loi 25) ==========
   ============================================================ */

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-consent input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-width: 17px;
  margin-top: 2px;
  padding: 0;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.form-consent input[type="checkbox"]:checked {
  background-color: var(--orange);
  border-color: var(--orange);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}
.form-consent input[type="checkbox"]:focus-visible {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(205, 140, 47, .18);
}

.form-consent label {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--grey-text);
  cursor: pointer;
}
.form-consent label a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-consent .req { color: var(--orange); margin-left: 2px; }

/* mention légale sous le formulaire */
.form-legal {
  font-size: 11.5px;
  line-height: 1.6;
  color: #8a8a8a;
  margin: 0;
}
.form-legal a {
  color: #8a8a8a;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-legal a:hover { color: var(--orange); }


/* ---------- Jetons à compléter avant mise en ligne ---------- */
.ph {
  display: inline-block;
  background: #fff4e0;
  border: 1px dashed var(--orange);
  border-radius: 4px;
  padding: 0 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  color: #9a6410;
  white-space: nowrap;
}


/* ============================================================
   ========== BANDEAU DE CONSENTEMENT AUX TÉMOINS ==========
   Animation en translateY uniquement : aucun risque de
   défilement horizontal.
   ============================================================ */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--white);
  border-top: 3px solid var(--orange);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .14);
  transform: translateY(100%);
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-banner.is-open {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cookie-text { flex: 1 1 460px; min-width: 0; }

.cookie-text h2 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.cookie-text p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

.cookie-text a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cookie-actions .btn {
  font-size: 13.5px;
  padding: 11px 22px;
  border: none;
  cursor: pointer;
}

.cookie-btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid #d8d8d8 !important;
}
.cookie-btn-ghost:hover {
  background: #f5f5f5;
  color: var(--ink);
}

/* ---------- Panneau de préférences ---------- */
.cookie-panel {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px 26px;
  border-top: 1px solid #ececec;
}
.cookie-panel[hidden] { display: none; }

.cookie-group {
  padding: 18px 0;
  border-bottom: 1px solid #f0f0f0;
}
.cookie-group:last-of-type { border-bottom: none; }

.cookie-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.cookie-group-head strong {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.cookie-group p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--grey-text);
  margin: 0;
  max-width: 720px;
}

.cookie-always {
  font-size: 12px;
  font-weight: 500;
  color: var(--green-dark);
  background: #e8f0ea;
  border-radius: 20px;
  padding: 4px 12px;
  white-space: nowrap;
}

/* cases à cocher du panneau */
.cookie-group-head input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.cookie-group-head input[type="checkbox"]:checked {
  background-color: var(--orange);
  border-color: var(--orange);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}
.cookie-group-head input[type="checkbox"]:focus-visible {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(205, 140, 47, .18);
}

.cookie-panel-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
}

/* ---------- Lien "Préférences de témoins" (pied de page) ---------- */
[data-cookie-settings] { cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 24px;
  }
  .cookie-actions { width: 100%; }
  /* flex-basis 0 : parts strictement égales, jamais proportionnelles
     à la longueur du texte (« Refuser » ne doit pas paraître moindre). */
  .cookie-actions .btn { flex: 1 1 0; }
  .cookie-panel { padding: 0 24px 22px; }
}

@media (max-width: 480px) {
  .cookie-banner-inner { padding: 18px 20px; }
  .cookie-panel { padding: 0 20px 18px; }
  .cookie-actions { flex-direction: column; }
  .cookie-actions .btn { width: 100%; }
  .cookie-text p { font-size: 13px; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: none;
    transform: translateY(0);
  }
}

/* ---------- Encadré d'édition (à supprimer avant mise en ligne) ---------- */
.editor-note {
  background: #fff8ec;
  border: 1px dashed var(--orange);
}
.editor-note > p:first-child {
  color: var(--orange);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .04em;
}
.editor-note code {
  background: #f2e6d2;
  border-radius: 3px;
  padding: 1px 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  color: #7a4f0d;
}
.editor-note ul { margin-top: 10px; }




/* ============================================================
   ========== INTERRUPTEUR DE LANGUE (FR / EN) ==========
   Piste arrondie + pastille coulissante. Aucune dépendance JS :
   la position de la pastille vient de la classe is-fr / is-en.
   ============================================================ */

.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: #f0f0f1;
  border: 1px solid #e3e3e5;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  user-select: none;
  flex-shrink: 0;
}

/* la pastille qui glisse sous la langue active */
.lang-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 2px 6px rgba(205, 140, 47, .35);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.lang-toggle.is-fr .lang-thumb { transform: translateX(0); }
.lang-toggle.is-en .lang-thumb { transform: translateX(100%); }

/* les deux libellés */
.lang-opt {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 6px 0;
  border-radius: 999px;
  line-height: 1;
  text-decoration: none;
  transition: color .28s ease;
}

/* langue active : posée sur la pastille orange */
.lang-opt.is-active {
  color: var(--white);
  cursor: default;
}

/* langue inactive : lien cliquable */
a.lang-opt {
  color: var(--grey-text);
}
a.lang-opt:hover {
  color: var(--ink);
}

.lang-toggle:hover .lang-thumb {
  box-shadow: 0 3px 9px rgba(205, 140, 47, .45);
}

a.lang-opt:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- Mobile : dans le menu déroulant ---------- */
@media (max-width: 768px) {
  .lang-toggle {
    align-self: flex-start;
    margin: 14px 0 4px;
  }
  .lang-opt {
    min-width: 46px;
    padding: 8px 0;
    font-size: 13px;
  }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .lang-thumb { transition: none; }
}


/* ============================================================
   ========== VALIDATION DU FORMULAIRE ==========
   Les messages d'erreur restent masqués tant que l'utilisateur
   n'a pas tenté d'envoyer le formulaire (classe .was-validated
   ajoutée par le JS au submit).
   ============================================================ */

/* masqué par défaut */
.invalid-feedback {
  display: none;
  font-size: 12.5px;
  line-height: 1.45;
  color: #c0392b;
  margin-top: 6px;
}

/* affiché uniquement après une tentative d'envoi, si le champ est invalide */
.contact-form.was-validated input:invalid ~ .invalid-feedback,
.contact-form.was-validated select:invalid ~ .invalid-feedback,
.contact-form.was-validated textarea:invalid ~ .invalid-feedback {
  display: block;
}

/* bordure rouge sur le champ fautif */
.contact-form.was-validated input:invalid,
.contact-form.was-validated select:invalid,
.contact-form.was-validated textarea:invalid {
  border-color: #e0b4ae;
}
.contact-form.was-validated input:invalid:focus,
.contact-form.was-validated select:invalid:focus,
.contact-form.was-validated textarea:invalid:focus {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .10);
}

/* bordure verte discrète sur les champs corrigés */
.contact-form.was-validated input:valid,
.contact-form.was-validated select:valid {
  border-color: #cfd8d0;
}

/* la case de consentement a sa propre mise en page */
.contact-form.was-validated .form-consent input:invalid {
  border-color: #c0392b;
}


/* Loi 25 — art. 8 : refuser doit être aussi facile qu'accepter.
   Les trois boutons partagent la même largeur, la même hauteur et le
   même poids visuel. `box-sizing` + une bordure transparente sur le
   bouton plein neutralisent l'écart de 2px dû aux bordures. */
.cookie-actions .btn {
  box-sizing: border-box;
  min-width: 132px;
  height: 40px;
  justify-content: center;
  border: 1px solid transparent;
}

/* ---------- Croix de fermeture du bandeau ---------- */
/* Fermer = refuser. Le bouton n'apparaît que si des témoins
   non essentiels existent, sinon il n'y a rien à refuser. */
.cookie-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--grey-text);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.cookie-close:hover {
  background: #ececec;
  color: var(--ink);
}
.cookie-close:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* laisser respirer le texte à côté de la croix */
.cookie-banner:has(.cookie-close) .cookie-banner-inner {
  padding-right: 56px;
}

@media (max-width: 900px) {
  .cookie-close { top: 8px; right: 8px; }
  /* la croix occupe le coin : on décale le titre, pas tout le bloc */
  .cookie-banner:has(.cookie-close) .cookie-banner-inner {
    padding-right: 24px;
  }
  .cookie-banner:has(.cookie-close) .cookie-text h2 {
    padding-right: 40px;
  }
}
