/* ==========================================
   VARIABLES, RESET & BASE
   (Charte graphique â€” identique Ã  la page d'accueil)
   ========================================== */
:root {
  --blue-primary: #0D2B45;
  --blue-secondary: #234E7A;
  --slate-gray: #6B7C93;
  --light-gray: #F6F9FC;
  --red-accent: #E30613;
  --red-hover: #c30510;
  --white: #FFFFFF;
  --font-title: 'Montserrat', sans-serif;
  --font-text: 'Source Sans 3', sans-serif;
  --shadow-subtle: 0 4px 20px rgba(13, 43, 69, 0.05);
  --shadow-card: 0 15px 35px rgba(13, 43, 69, 0.12);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-text);
  color: var(--blue-primary);
  background-color: var(--white);
  line-height: 1.5;
  }

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

h1, h2, h3, h4, .font-title {
  font-family: var(--font-title);
  font-weight: 700;
}

/* Accessibility: visible focus indicator on all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
.menu-toggle-btn:focus-within {
  outline: 3px solid var(--blue-secondary);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Accessibility: skip link */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  background-color: var(--blue-primary);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 6px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  z-index: 2000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 8px;
}

/* Screen-reader-only utility */
.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;
}

/* Container alignment */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Red Button Style */
.btn-red {
  background-color: var(--red-accent);
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(227, 6, 19, 0.2);
}

.btn-red:hover {
  background-color: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(227, 6, 19, 0.3);
}

/* Outline (secondary) button */
.btn-outline {
  background-color: transparent;
  color: var(--blue-primary);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 6px;
  border: 2px solid var(--blue-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-outline:hover {
  background-color: var(--blue-primary);
  color: var(--white);
}

/* ==========================================
   FIXED HEADER & TOP BAR
   ========================================== */
header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: var(--shadow-subtle);
}

/* Top blue bar */
.top-bar {
  background-color: var(--blue-primary);
  color: var(--white);
  font-family: var(--font-text);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 9px 15px;
}

.top-bar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1250px;
  margin: 0 auto;
}

.top-bar-container span {
  opacity: 0.95;
}

.top-bar-container .bullet {
  color: var(--red-accent);
  font-size: 14px;
  opacity: 1;
}

/* Navigation menu */
.navbar {
  min-height: 108px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  flex-shrink: 1;
  min-width: 0;
}

.logo-img {
  height: 90px;
  width: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text-main {
  display: block;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 16px;
  color: var(--blue-primary);
  text-transform: uppercase;
  line-height: 1.15;
}

.logo-text-sub {
  display: block;
  font-size: 11.5px;
  color: #4a6073;
  margin-top: 4px;
  font-weight: 600;
  line-height: 1.15;
}

/* Desktop Navigation links */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 26px;
}

.nav-link {
  font-family: var(--font-title);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--blue-primary);
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  display: inline-block;
}

.nav-link:hover {
  color: var(--red-accent);
}

/* Underline for active state */
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--red-accent);
  border-radius: 2px;
}

.nav-cta {
  padding: 11px 22px;
  font-size: 11.5px;
  flex-shrink: 0;
}

/* The in-menu CTA is only used inside the mobile dropdown menu */
.menu-cta-item {
  display: none;
}

/* Keep the logo at its natural size so its text never overflows onto the nav */
.logo-link {
  flex-shrink: 0;
}

.nav-menu {
  flex-shrink: 1;
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

/* Checkbox hack for pure CSS hamburger menu */
.menu-toggle-cb {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.menu-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  padding: 0;
  cursor: pointer;
  z-index: 1100;
  flex-shrink: 0;
}

.menu-toggle-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--blue-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Visible focus indicator for the (keyboard-focusable) checkbox toggle */
.menu-toggle-cb:focus-visible ~ .menu-toggle-btn {
  outline: 3px solid var(--blue-secondary);
  outline-offset: 4px;
  border-radius: 3px;
}

/* ==========================================
   PAGE BANNER (secondary pages)
   ========================================== */
.page-banner {
  background-color: var(--blue-primary);
  color: var(--white);
  padding: 60px 0;
}

.page-banner .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.breadcrumb {
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb span[aria-hidden="true"] {
  color: var(--red-accent);
  margin: 0 8px;
}

.page-banner h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--white);
}

.banner-dashes {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.banner-dashes .dash-white {
  width: 45px;
  height: 4px;
  background-color: var(--white);
  border-radius: 2px;
}

.banner-dashes .dash-red {
  width: 45px;
  height: 4px;
  background-color: var(--red-accent);
  border-radius: 2px;
}

.page-banner p {
  font-family: var(--font-text);
  font-size: 15.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-top: 18px;
  max-width: 720px;
}

/* ==========================================
   CONTENT SECTIONS (secondary pages)
   ========================================== */
.content-section {
  padding: 80px 0;
}

.content-section.alt {
  background-color: var(--light-gray);
}

.section-heading {
  font-size: 21px;
  color: var(--blue-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
}

.title-underline {
  width: 55px;
  height: 3px;
  background-color: var(--red-accent);
  margin: 14px 0 28px 0;
}

.lead-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--blue-primary);
  font-weight: 500;
  max-width: 760px;
}

.body-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--blue-primary);
  font-weight: 400;
  max-width: 760px;
  margin-top: 16px;
}

.body-text strong {
  color: var(--red-accent);
}

/* Step list (DÃ©roulement de l'examen) */
.steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 36px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  background-color: var(--white);
  border: 1px solid #E5EAF0;
  border-radius: 8px;
  padding: 26px 28px;
  box-shadow: var(--shadow-subtle);
}

.content-section.alt .step-item {
  background-color: var(--white);
}

.step-number {
  counter-increment: step;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--blue-primary);
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-number::before {
  content: counter(step);
}

.step-content h3 {
  font-size: 16px;
  color: var(--blue-primary);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--slate-gray);
  font-weight: 500;
}

/* Info card grid (Informations pratiques) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.info-card {
  background-color: var(--white);
  border: 1px solid #E5EAF0;
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow-subtle);
}

.info-card .info-icon {
  width: 40px;
  height: 40px;
  stroke: var(--blue-primary);
  margin-bottom: 16px;
}

.info-card h3 {
  font-size: 15px;
  color: var(--blue-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.info-card p,
.info-card address {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--slate-gray);
  font-weight: 500;
  font-style: normal;
}

.info-card address a {
  color: var(--blue-secondary);
  font-weight: 600;
}

.info-card address a:hover {
  color: var(--red-accent);
}

/* Document checklist (what to bring) */
.doc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
  max-width: 760px;
}

.doc-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-primary);
  line-height: 1.4;
}

.check-icon-circle {
  background-color: var(--red-accent);
  color: var(--white);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.check-icon-circle svg {
  width: 11px;
  height: 11px;
  stroke: var(--white);
}

/* ==========================================
   FAQ ACCORDION (native <details>)
   ========================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
  max-width: 840px;
}

.faq-item {
  border: 1px solid #E5EAF0;
  border-radius: 8px;
  background-color: var(--white);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .faq-plus {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  transition: var(--transition);
}

.faq-item summary .faq-plus::before,
.faq-item summary .faq-plus::after {
  content: "";
  position: absolute;
  background-color: var(--red-accent);
  border-radius: 2px;
}

.faq-item summary .faq-plus::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  transform: translateY(-50%);
}

.faq-item summary .faq-plus::after {
  left: 50%;
  top: 0;
  width: 3px;
  height: 100%;
  transform: translateX(-50%);
}

.faq-item[open] summary .faq-plus::after {
  opacity: 0;
}

.faq-answer {
  padding: 0 24px 24px 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--slate-gray);
  font-weight: 500;
}

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-list .info-icon {
  width: 22px;
  height: 22px;
  stroke: var(--red-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-info-list .label {
  display: block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-gray);
  margin-bottom: 4px;
}

.contact-info-list .value,
.contact-info-list .value a {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--blue-primary);
}

.contact-info-list .value a:hover {
  color: var(--red-accent);
}

/* Contact form */
.contact-form {
  background-color: var(--white);
  border: 1px solid #E5EAF0;
  border-radius: 8px;
  padding: 36px;
  box-shadow: var(--shadow-card);
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 13px;
  color: var(--blue-primary);
  margin-bottom: 8px;
}

.form-group .required {
  color: var(--red-accent);
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-text);
  font-size: 15px;
  color: var(--blue-primary);
  padding: 12px 14px;
  border: 1px solid #D5DEE8;
  border-radius: 6px;
  background-color: var(--light-gray);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue-secondary);
  background-color: var(--white);
  outline: none;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  font-size: 13px;
  color: var(--slate-gray);
  margin-top: 6px;
}

/* ==========================================
   RENDEZ-VOUS (Doctolib) PAGE
   ========================================== */
.doctolib-wrapper {
  max-width: 900px;
  margin: 36px auto 0 auto;
}

.doctolib-frame {
  width: 100%;
  min-height: 720px;
  border: 1px solid #E5EAF0;
  border-radius: 8px;
  background-color: var(--white);
  box-shadow: var(--shadow-card);
}

/* Placeholder shown while the Doctolib link is not yet available */
.doctolib-placeholder {
  max-width: 720px;
  margin: 36px auto 0 auto;
  background-color: var(--light-gray);
  border: 1px dashed #C3D0DD;
  border-radius: 8px;
  padding: 48px 32px;
  text-align: center;
}

.doctolib-placeholder .info-icon {
  width: 46px;
  height: 46px;
  stroke: var(--blue-primary);
  margin-bottom: 18px;
}

.doctolib-placeholder h2 {
  font-size: 19px;
  color: var(--blue-primary);
  margin-bottom: 12px;
}

.doctolib-placeholder p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate-gray);
  font-weight: 500;
  max-width: 520px;
  margin: 0 auto 24px auto;
}

.rdv-contact-fallback {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ==========================================
   ENGAGEMENTS & WHY SECTION (home)
   ========================================== */
.engagements-section {
  background-color: var(--white);
  padding: 100px 0;
}

.engagements-container {
  display: flex;
  gap: 80px;
}

.engagements-left { flex: 1; }
.engagements-right { flex: 2.4; }

.section-title {
  font-size: 21px;
  color: var(--blue-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
}

.engagements-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 25px;
}

.engagements-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.engagement-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-primary);
  line-height: 1.4;
}

.why-intro {
  font-size: 15px;
  line-height: 1.6;
  color: var(--blue-primary);
  font-weight: 500;
}

.why-features {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
}

.why-feature-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-icon-wrapper {
  color: var(--blue-primary);
  margin-bottom: 14px;
}

.feature-icon-wrapper svg {
  width: 40px;
  height: 40px;
  stroke: var(--blue-primary);
}

.feature-label {
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-primary);
  line-height: 1.4;
}

/* ==========================================
   HERO SECTION (home)
   ========================================== */
.hero-section {
  width: 100%;
  min-height: 620px;
  background-image: url('./img/hero.webp');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  background-color: var(--light-gray);
  position: relative;
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.hero-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 80px;
  width: 100%;
}

.hero-content {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.25;
  color: var(--blue-primary);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-dashes {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.dash-blue {
  width: 45px;
  height: 4px;
  background-color: var(--blue-primary);
  border-radius: 2px;
}

.dash-red {
  width: 45px;
  height: 4px;
  background-color: var(--red-accent);
  border-radius: 2px;
}

.hero-lead {
  font-family: var(--font-text);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--blue-primary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero-subtext {
  font-family: var(--font-text);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--blue-primary);
  line-height: 1.6;
  opacity: 0.95;
}

/* Floating price card (home) */
.floating-card {
  width: 380px;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(13, 43, 69, 0.12);
  padding: 35px;
  z-index: 10;
  border: 1px solid #E5EAF0;
  flex-shrink: 0;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-primary);
}

.card-header-icon {
  width: 22px;
  height: 22px;
  stroke: var(--blue-primary);
  flex-shrink: 0;
}

.card-header span {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-primary);
}

.card-price {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 54px;
  color: var(--red-accent);
  margin: 14px 0 8px 0;
  line-height: 1;
}

.card-eval-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--blue-primary);
  line-height: 1.3;
}

.card-eval-sub {
  font-family: var(--font-text);
  font-size: 13.5px;
  color: var(--slate-gray);
  margin-top: 4px;
  font-weight: 500;
}

.card-list {
  list-style: none;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-primary);
}

.card-checkmark {
  width: 16px;
  height: 16px;
  stroke: var(--red-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.card-payment-box {
  background-color: #FAFAFC;
  border: 1px solid #E5EAF0;
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.payment-icon {
  width: 22px;
  height: 22px;
  stroke: var(--blue-primary);
  flex-shrink: 0;
}

.card-payment-box span {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-primary);
}

.card-btn {
  width: 100%;
}

/* ==========================================
   CTA BAR SECTION (DARK BLUE)
   ========================================== */
.cta-bar-section {
  background-color: var(--blue-primary);
  color: var(--white);
}

.cta-bar-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 55px 24px;
}

.cta-item {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cta-icon-wrapper {
  color: var(--white);
  flex-shrink: 0;
}

.cta-icon-wrapper svg {
  width: 38px;
  height: 38px;
  stroke: var(--white);
}

.cta-text-wrapper h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  line-height: 1.3;
}

.cta-text-wrapper p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

/* ==========================================
   IMAGE GALLERY SECTION
   ========================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
}

.gallery-item {
  height: 230px;
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.main-footer {
  background-color: var(--light-gray);
  padding: 70px 0 60px 0;
}

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

.footer-col {
  flex: 1;
  min-width: 220px;
}

.footer-col h2,
.footer-col h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--blue-primary);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-primary);
}

.footer-nav a:hover {
  color: var(--red-accent);
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.contact-list li svg {
  width: 16px;
  height: 16px;
  stroke: var(--blue-primary);
  flex-shrink: 0;
}

.contact-list li a:hover {
  color: var(--red-accent);
}

.rpps-box {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.psi-icon {
  width: 22px;
  height: 22px;
  stroke: var(--blue-primary);
  flex-shrink: 0;
}

/* Bottom Bar */
.bottom-bar {
  background-color: var(--blue-primary);
  color: var(--white);
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bottom-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 400;
}

.bottom-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bottom-links a {
  opacity: 0.8;
}

.bottom-links a:hover {
  opacity: 1;
}

.bottom-links .dot {
  color: var(--red-accent);
  font-size: 14px;
}

.copyright {
  opacity: 0.8;
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 1150px) {
  .container,
  .top-bar-container,
  .navbar {
    max-width: 100%;
  }

  .floating-card {
    width: 350px;
    padding: 28px;
  }
}

@media (max-width: 1100px) {
  /* Navbar Hamburger Menu (pure CSS checkbox hack) */
  .navbar {
    min-height: 70px;
  }

  /* Show the CTA inside the mobile dropdown menu */
  .menu-cta-item {
    display: block;
  }

  .logo-img {
    height: 54px;
  }

  .logo-text-main {
    font-size: 13px;
  }

  .logo-text-sub {
    font-size: 10px;
  }

  .menu-toggle-btn {
    display: flex;
  }

  /* Hide the standalone header CTA on mobile â€” it lives inside the menu instead */
  .nav-cta {
    display: none;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 10px 20px rgba(13, 43, 69, 0.08);
    border-top: 1px solid #ECEFF3;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #F1F4F8;
  }

  .nav-link {
    display: block;
    padding: 18px 0;
    font-size: 13px;
  }

  .nav-link.active::after {
    bottom: 0;
    width: 100%;
    border-radius: 0;
  }

  .nav-menu .menu-cta-item .btn-red {
    margin: 16px auto;
    display: inline-flex;
  }

  .nav-menu .menu-cta-item {
    border-bottom: none;
  }

  /* Expand menu when checkbox is checked */
  .menu-toggle-cb:checked ~ .nav-menu {
    max-height: 520px;
  }

  /* Hamburger animation */
  .menu-toggle-cb:checked ~ .menu-toggle-btn span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle-cb:checked ~ .menu-toggle-btn span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle-cb:checked ~ .menu-toggle-btn span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Hero: stack content and card naturally (no more broken absolute positioning) */
  .hero-section {
    background-position: 75% center;
    padding: 48px 0;
  }

  .hero-container {
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: center;
  }

  .hero-content {
    max-width: 600px;
    align-items: center;
  }

  .hero-dashes {
    justify-content: center;
  }

  .floating-card {
    width: 100%;
    max-width: 420px;
  }

  /* Reset the previously broken padding used for an overlapping card */
  .engagements-section {
    padding: 70px 0;
  }

  .engagements-container {
    flex-direction: column;
    gap: 50px;
  }

  .cta-bar-container {
    flex-direction: column;
    gap: 30px;
    padding: 45px 24px;
  }

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

  .footer-container {
    flex-direction: column;
    gap: 40px;
  }

  /* Secondary pages */
  .page-banner {
    padding: 44px 0;
  }

  .page-banner h1 {
    font-size: 27px;
  }

  .content-section {
    padding: 56px 0;
  }

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

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

@media (max-width: 768px) {
  .top-bar-container {
    flex-direction: column;
    gap: 4px;
  }

  .top-bar-container .bullet {
    display: none;
  }

  .bottom-bar-container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 26px;
  }

  .floating-card {
    padding: 24px;
  }

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

  .why-features {
    flex-direction: column;
    gap: 30px;
  }

  .contact-form {
    padding: 24px;
  }

  .page-banner h1 {
    font-size: 23px;
  }

  .step-item {
    flex-direction: column;
    gap: 14px;
    padding: 22px;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================
   MENU DÉROULANT « RESSOURCES »
   (à coller à la fin de styles.css)
   ========================================== */
.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-toggle .chevron {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  flex-shrink: 0;
  transition: var(--transition);
}

.dropdown-menu {
  list-style: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 230px;
  background-color: var(--white);
  border: 1px solid #E5EAF0;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

/* Pont invisible pour que le menu ne se referme pas
   quand la souris traverse l'espace entre le lien et le menu */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.has-dropdown:hover .dropdown-toggle .chevron,
.has-dropdown:focus-within .dropdown-toggle .chevron {
  transform: rotate(180deg);
}

.dropdown-menu a {
  display: block;
  padding: 11px 20px;
  font-family: var(--font-title);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue-primary);
  white-space: nowrap;
}

.dropdown-menu a:hover {
  color: var(--red-accent);
  background-color: var(--light-gray);
}

/* Page active à l'intérieur du menu déroulant
   (mettre class="active" sur le lien concerné, ex. sur la page FAQ) */
.dropdown-menu a.active {
  color: var(--red-accent);
}

/* Version mobile : le sous-menu est affiché à plat, toujours ouvert */
@media (max-width: 1100px) {
  .dropdown-toggle {
    display: block;
    padding: 14px 0 4px 0;
    font-size: 11.5px;
    color: var(--slate-gray);
    cursor: default;
  }

  .dropdown-toggle .chevron {
    display: none;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  .dropdown-menu::before {
    display: none;
  }

  .dropdown-menu li {
    border-top: 1px solid #F1F4F8;
  }

  .dropdown-menu a {
    padding: 16px 0;
    font-size: 13px;
  }
}
