@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --adp-color-primary: #1e3264;
  --adp-color-accent: #0070c8;
  --adp-color-white: #ffffff;
  --adp-color-text: #23344d;
  --adp-color-surface: #f4f8fc;
  --adp-color-border: #d7e1ec;
  --adp-color-soft-blue: #eaf3fb;
  --adp-color-soft-cream: #fbf7f0;
  --adp-color-soft-shadow: rgba(27, 46, 89, 0.09);
  --adp-radius-md: 16px;
  --adp-radius-lg: 24px;
  --adp-shadow-sm: 0 12px 30px rgba(30, 50, 100, 0.08);
  --adp-shadow-hover: 0 18px 40px rgba(30, 50, 100, 0.12);
  --adp-container-max: 1280px;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
body {
  font-family: 'Inter', sans-serif;
  color: var(--adp-color-text);
}

body,
button,
input,
select,
textarea,
.et_pb_module,
.et_pb_button,
.et_pb_text,
.et_pb_blurb_content,
#top-menu a,
#footer-info,
#footer-info a {
  font-family: 'Inter', sans-serif !important;
}

.adp-screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Hero homepage */
.home #et-main-area .et_pb_section_0 {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 38%, rgba(255, 255, 255, 0.28) 62%, rgba(255, 255, 255, 0.12) 100%),
    url('/wp-content/uploads/2026/04/hero-bg.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 520px;
}

.home #et-main-area .et_pb_section_0 > .et_pb_row {
  max-width: var(--adp-container-max) !important;
  width: calc(100% - 40px) !important;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.home #et-main-area .et_pb_section_0 .et_pb_column:last-child {
  display: none;
}

.home #et-main-area .et_pb_section_0 .et_pb_image,
.home #et-main-area .et_pb_section_0 .et_pb_image .et_pb_image_wrap,
.home #et-main-area .et_pb_section_0 .et_pb_image img,
.adp-hero-image,
.adp-hero-image .et_pb_image_wrap,
.adp-hero-image img {
  display: block;
  width: 100%;
}

.home #et-main-area .et_pb_section_0 .et_pb_image .et_pb_image_wrap,
.adp-hero-image .et_pb_image_wrap {
  overflow: hidden;
  border-radius: var(--adp-radius-md);
}

.home #et-main-area .et_pb_section_0 .et_pb_image img,
.adp-hero-image img {
  height: auto;
  object-fit: cover;
}

@media (max-width: 767px) {
  .home #et-main-area .et_pb_section_0 {
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 48%, rgba(255, 255, 255, 0.38) 100%),
      url('/wp-content/uploads/2026/04/hero-bg.webp');
    background-position: 72% center;
    min-height: auto;
  }

  .home #et-main-area .et_pb_section_0 > .et_pb_row {
    width: calc(100% - 32px) !important;
    min-height: auto;
  }
}

/* Cartes services/prestations */
.adp-card-service {
  border-radius: var(--adp-radius-md);
  box-shadow: var(--adp-shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
  background: white;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.adp-card-service .et_pb_blurb_content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Bloc "Nos services" */
.home #prestations {
  position: relative;
  padding-top: 88px !important;
  padding-bottom: 88px !important;
  background:
    radial-gradient(circle at top left, rgba(0, 112, 200, 0.08), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  overflow: hidden;
}

.home #prestations::before {
  content: "";
  position: absolute;
  inset: 24px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(30, 50, 100, 0.12), transparent);
}

.home #prestations > .et_pb_row:first-child {
  position: relative;
  margin-bottom: 16px;
}

.home #prestations .adp-title-section {
  position: relative;
}

.home #prestations .adp-title-section::before {
  content: "Expertises cles";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(0, 112, 200, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(30, 50, 100, 0.08);
  color: var(--adp-color-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home #prestations .adp-title-section h2 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.home #prestations .et_pb_row:last-child {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: var(--adp-container-max);
}

.home #prestations .et_pb_row:last-child::after {
  display: none;
}

.home #prestations .et_pb_row:last-child > .et_pb_column {
  width: auto !important;
  margin: 0 !important;
  padding-top: 18px;
}

.home #prestations .et_pb_row:last-child > .et_pb_column:nth-child(even) {
  padding-top: 42px;
}

.home #prestations .adp-card-service {
  position: relative;
  align-items: flex-start;
  padding: 30px 26px 28px !important;
  border: 1px solid rgba(215, 225, 236, 0.72);
  border-radius: 24px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
  box-shadow:
    0 20px 48px rgba(30, 50, 100, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  min-height: 100%;
  overflow: hidden;
}

.home #prestations .adp-card-service::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #1e3264, #0070c8);
}

.home #prestations .et_pb_column:nth-child(2) .adp-card-service::before {
  background: linear-gradient(90deg, #0070c8, #3da0ea);
}

.home #prestations .et_pb_column:nth-child(3) .adp-card-service::before {
  background: linear-gradient(90deg, #1e3264, #3f82d8);
}

.home #prestations .et_pb_column:nth-child(4) .adp-card-service::before {
  background: linear-gradient(90deg, #0070c8, #1e3264);
}

.home #prestations .adp-card-service::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -48px;
  width: 152px;
  height: 152px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 112, 200, 0.12) 0%, rgba(0, 112, 200, 0) 68%);
  pointer-events: none;
}

.home #prestations .adp-card-service:hover {
  transform: translateY(-8px);
  box-shadow:
    0 28px 60px rgba(30, 50, 100, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.home #prestations .adp-card-service .et_pb_main_blurb_image {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 0 24px;
  background: linear-gradient(180deg, rgba(228, 241, 255, 0.95) 0%, rgba(242, 247, 255, 0.98) 100%);
  border: 1px solid rgba(0, 112, 200, 0.08);
  box-shadow:
    0 14px 30px rgba(30, 50, 100, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.home #prestations .adp-card-service .et_pb_main_blurb_image::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.82);
}

.home #prestations .adp-card-service .et_pb_blurb_content {
  align-items: flex-start;
}

.home #prestations .adp-card-service .et_pb_module_header {
  position: relative;
  margin-bottom: 14px;
  padding-bottom: 14px;
  font-size: 28px;
  line-height: 1.08em;
  letter-spacing: -0.025em;
}

.home #prestations .adp-card-service .et_pb_module_header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 2px;
  border-radius: 999px;
  background: rgba(0, 112, 200, 0.24);
}

.home #prestations .adp-card-service .et_pb_blurb_description {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(35, 52, 77, 0.92);
  max-width: 26ch;
}

.home #prestations .adp-card-service .et-pb-icon {
  font-size: 30px !important;
}

@media (max-width: 1100px) {
  .home #prestations .et_pb_row:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home #prestations .et_pb_row:last-child > .et_pb_column:nth-child(even) {
    padding-top: 18px;
  }
}

@media (max-width: 767px) {
  .home #prestations {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }

  .home #prestations .adp-title-section::before {
    margin-bottom: 14px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .home #prestations .et_pb_row:last-child {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home #prestations .adp-card-service {
    padding: 26px 22px 24px !important;
    border-radius: 22px !important;
  }

  .home #prestations .adp-card-service .et_pb_main_blurb_image {
    width: 68px;
    height: 68px;
    margin-bottom: 20px;
  }
}

/* Fond coloré circulaire derrière les icônes des cartes */
.adp-card-service .et_pb_main_blurb_image {
  background: rgba(0, 112, 200, 0.08);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  flex-shrink: 0;
}

/* Pills thématiques (formations) — cards carrées avec icône en haut */
.adp-pill-theme {
  background: var(--adp-color-white);
  border: 1px solid var(--adp-color-border);
  border-radius: var(--adp-radius-md) !important; /* override 999px Divi inline */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 12px !important;
  height: 100%;
}

.adp-pill-theme .et_pb_main_blurb_image {
  background: rgba(0, 112, 200, 0.08);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  flex-shrink: 0;
}

.adp-pill-theme .et_pb_blurb_container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.adp-btn-secondary {
  border: 1px solid var(--adp-color-accent);
  border-radius: 999px;
}

@media (max-width: 767px) {
  .adp-btn-secondary,
  .adp-button-full-mobile {
    display: block;
    width: 100%;
  }
}

/* ── Header Correction ─────────────────────────────────────────────────────── */
/* Si le Theme Builder échoue, on force le style sur le header par défaut de Divi */
#main-header, 
.adp-header-global {
  background-color: var(--adp-color-primary) !important;
}

#logo {
  max-height: 48px !important; /* Contrainte de hauteur conforme à la spec */
  margin-top: 8px;
}

#top-menu li a {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 600;
}

#top-menu li a:hover {
  color: #ffffff !important;
}

/* ── Icones Fix ───────────────────────────────────────────────────────────── */
/* Forcer la police Divi pour les icônes si elles apparaissent en texte brut */
.et-pb-icon,
.et_pb_blurb_position_top .et-pb-icon {
  font-family: 'ETmodules' !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  color: var(--adp-color-accent);
}

/* Annuler l'opacité waypoint pour les icônes blurbs */
.et_pb_blurb .et_pb_main_blurb_image .et-waypoint.et-pb-icon,
.et_pb_blurb .et-waypoint.et-pb-icon {
  opacity: 1 !important;
}

/* Tailles icônes blurbs */
.adp-card-service .et-pb-icon {
  font-size: 28px !important;
  margin-bottom: 0;
  line-height: 1 !important;
}

.adp-pill-theme .et-pb-icon {
  font-size: 22px !important;
  margin-bottom: 0;
  line-height: 1 !important;
}

/* Bloc infos pratiques — icônes et layout */
.adp-info-item {
  text-align: center;
}

.adp-info-item .et_pb_main_blurb_image {
  background: rgba(0, 112, 200, 0.08);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.adp-info-item .et-pb-icon {
  font-size: 24px !important;
  margin-bottom: 0;
  line-height: 1 !important;
}

/* ── Homepage Premium System ──────────────────────────────────────────────── */
.home {
  background:
    radial-gradient(circle at top left, rgba(0, 112, 200, 0.05), transparent 24%),
    radial-gradient(circle at bottom right, rgba(251, 247, 240, 0.85), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 38%, #ffffff 100%);
}

.home #et-main-area .et_pb_section:not(.adp-modal-container) > .et_pb_row {
  max-width: var(--adp-container-max) !important;
}

.home .et_pb_section_0 h1,
.home .adp-title-section h2,
.home #a-propos h2,
.home #contact h2 {
  letter-spacing: -0.035em;
}

.home .et_pb_button {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.home .et_pb_button:hover {
  transform: translateY(-2px);
}

.home .et_pb_button.et_pb_bg_layout_light,
.home .et_pb_bg_layout_light .et_pb_button {
  box-shadow: 0 14px 32px rgba(30, 50, 100, 0.12);
}

.home .adp-btn-secondary.et_pb_button,
.home .adp-btn-secondary .et_pb_button {
  box-shadow: none;
}

.home .et_pb_section_0 {
  position: relative;
  padding-top: 96px !important;
  padding-bottom: 104px !important;
}

.home .et_pb_section_0::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.88) 35%, rgba(255, 255, 255, 0.3) 60%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0));
  pointer-events: none;
}

.home .et_pb_section_0 > .et_pb_row {
  position: relative;
  z-index: 1;
}

.home .et_pb_section_0 h1 {
  font-size: clamp(54px, 5vw, 74px) !important;
  line-height: 0.96em !important;
  max-width: 9ch;
  margin-bottom: 30px !important;
}

.home .et_pb_section_0 .et_pb_text:not(:first-child) p {
  max-width: 33ch;
  font-size: 19px;
  line-height: 1.75;
  color: rgba(35, 52, 77, 0.94);
}

.home .et_pb_section_0 .et_pb_text:first-child::before {
  content: "Assistance Apple a domicile dans la region lilloise";
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(215, 225, 236, 0.8);
  box-shadow: 0 12px 28px var(--adp-color-soft-shadow);
  color: var(--adp-color-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home .et_pb_section_0 .et_pb_button_module_wrapper:first-of-type .et_pb_button {
  padding: 16px 28px !important;
  border-radius: 999px !important;
  box-shadow: 0 16px 34px rgba(0, 112, 200, 0.22) !important;
}

.home .et_pb_section_0 .et_pb_button_module_wrapper:nth-of-type(2) .et_pb_button {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(10px);
  padding: 14px 24px !important;
  border-color: rgba(0, 112, 200, 0.28) !important;
}

.home .et_pb_section_0 .et_pb_text:last-child p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px var(--adp-color-soft-shadow);
  font-size: 13px !important;
}

/* ── Bloc SAP — section 2 ──────────────────────────────────────────── */
.home .et_pb_section_2 {
  padding-top: 72px !important;
  padding-bottom: 72px !important;
  background: linear-gradient(180deg, #eff6fd 0%, #fbfcfe 100%) !important;
}

.home .et_pb_section_2 > .et_pb_row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.52fr) minmax(0, 1.5fr) minmax(260px, 0.82fr);
  align-items: start;
  gap: 40px;
  padding: 42px 46px !important;
  border-radius: 34px;
  border: 1px solid rgba(30, 50, 100, 0.08);
  background:
    radial-gradient(circle at top right, rgba(0, 112, 200, 0.11), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 254, 0.98) 58%, rgba(236, 244, 252, 0.98) 100%);
  box-shadow:
    0 28px 80px rgba(30, 50, 100, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

.home .et_pb_section_2 > .et_pb_row::after {
  content: '';
  position: absolute;
  inset: auto auto -80px -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 112, 200, 0.12) 0%, rgba(0, 112, 200, 0) 72%);
  pointer-events: none;
}

.home .et_pb_section_2 > .et_pb_row::before {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  pointer-events: none;
}

.home .et_pb_section_2 .et_pb_column_7 {
  position: relative;
  width: auto !important;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  margin-right: 0 !important;
  padding: 0 42px 0 0;
}

.home .et_pb_section_2 .et_pb_column_7::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 6px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, rgba(30, 50, 100, 0), rgba(30, 50, 100, 0.12) 18%, rgba(30, 50, 100, 0.12) 82%, rgba(30, 50, 100, 0));
}

.home .et_pb_section_2 .et_pb_column_8 {
  width: auto !important;
  grid-column: 3;
  grid-row: 1 / span 3;
  align-self: start;
  margin-right: 0 !important;
  padding-left: 8px;
  display: flex;
  align-items: flex-start;
}

.adp-sap-logo-panel {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  padding-top: 14px;
}

.adp-sap-logo-panel img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 190px;
  object-fit: contain;
  object-position: left top;
}

.adp-sap-checks-panel {
  grid-column: 1 / 3;
  grid-row: 2;
  margin-top: -2px;
}

.adp-sap-cta-row {
  grid-column: 1 / 3;
  grid-row: 3;
  margin-top: 6px;
}

.adp-sap-source-hidden {
  display: none !important;
}

.adp-sap-title {
  margin-top: 0 !important;
  margin-bottom: 18px !important;
  font-size: clamp(30px, 3vw, 40px) !important;
  line-height: 1.04 !important;
  color: #1e3264 !important;
  letter-spacing: -0.03em;
  max-width: 13ch;
}

.adp-sap-title::before {
  content: 'Accompagnement certifie';
  display: block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0, 112, 200, 0.74);
}

.adp-sap-intro {
  color: rgba(35, 52, 77, 0.82);
  margin-bottom: 28px !important;
  font-size: 17px;
  line-height: 1.82;
  max-width: 50ch;
  padding: 0 0 22px;
  border-bottom: 1px solid rgba(30, 50, 100, 0.08);
}

.adp-sap-checks {
  list-style: none !important;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.adp-sap-checks li {
  list-style: none !important;
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: #23344d;
  min-height: 100%;
  padding: 18px 18px 18px 56px;
  line-height: 1.5;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 252, 0.96) 100%);
  border: 1px solid rgba(30, 50, 100, 0.06);
  box-shadow:
    0 12px 26px rgba(30, 50, 100, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.adp-sap-checks li::marker {
  content: '';
}

.adp-sap-checks li::before {
  content: '';
  position: absolute;
  top: 19px;
  left: 18px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0, 112, 200, 0.16) 0%, rgba(30, 50, 100, 0.08) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 6px 14px rgba(30, 50, 100, 0.08);
}

.adp-sap-checks li::after {
  content: '';
  position: absolute;
  top: 26px;
  left: 26px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #1e3264;
  border-bottom: 2px solid #1e3264;
  transform: rotate(-45deg);
}

.home .et_pb_section_2 .et_pb_button_module_wrapper {
  margin-top: 24px !important;
  margin-bottom: 0 !important;
}

.adp-sap-cta-row .et_pb_button_module_wrapper {
  margin-top: 0 !important;
}

.home .et_pb_section_2 .adp-cta-popup-sap.et_pb_button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 15px 24px !important;
  border: 1px solid rgba(30, 50, 100, 0.1);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 252, 0.98) 100%);
  color: #1e3264 !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow:
    0 16px 34px rgba(30, 50, 100, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.home .et_pb_section_2 .adp-cta-popup-sap.et_pb_button::after {
  content: '↗';
  position: static;
  opacity: 1;
  margin-left: 0;
  font-size: 18px;
  line-height: 1;
}

.home .et_pb_section_2 .adp-cta-popup-sap.et_pb_button:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 112, 200, 0.18);
  box-shadow:
    0 20px 40px rgba(30, 50, 100, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* Badge crédit d'impôt */
.adp-sap-credit-col .et_pb_text_inner {
  height: 100%;
  display: flex;
  align-items: stretch;
  width: 100%;
}

.adp-sap-credit-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(0, 112, 200, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%);
  border-radius: 32px;
  padding: 166px 30px 30px;
  border: 1px solid rgba(30, 50, 100, 0.08);
  color: #1e3264;
  text-align: left;
  gap: 6px;
  box-shadow:
    0 28px 48px rgba(30, 50, 100, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.adp-sap-credit-badge::before {
  content: 'Cadre fiscal';
  position: absolute;
  top: 30px;
  left: 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(30, 50, 100, 0.48);
}

.adp-sap-credit-badge::after {
  content: 'Dispositif officiel de credit d\\2019impot';
  position: absolute;
  top: 52px;
  left: 30px;
  right: 30px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(30, 50, 100, 0.52);
}

.adp-sap-pct {
  display: block;
  font-family: Inter, sans-serif;
  font-size: 96px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-top: 46px;
  background: linear-gradient(135deg, #1e3264 0%, #0070c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.adp-sap-label {
  display: block;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2px;
  max-width: none;
  letter-spacing: -0.01em;
}

.adp-sap-sub {
  display: block;
  font-size: 14px;
  opacity: 1;
  margin-top: 6px;
  max-width: 22ch;
  color: rgba(35, 52, 77, 0.74);
}

.adp-sap-ref {
  display: block;
  font-size: 11px;
  opacity: 1;
  margin-top: auto;
  padding-top: 18px;
  width: 100%;
  border-top: 1px solid rgba(30, 50, 100, 0.08);
  color: rgba(30, 50, 100, 0.54);
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Modale SAP — composants éditoriaux ────────────────────────────── */
.adp-sap-intro-box {
  background: #eff6fd;
  border-left: 4px solid #0070c8;
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin: 0 0 4px;
}

.adp-sap-intro-box p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #23344d;
}

.adp-source-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  background: rgba(0, 112, 200, 0.07);
  border: 1px solid rgba(0, 112, 200, 0.15);
  border-radius: 6px;
  font-size: 12px;
  color: #0070c8;
  font-weight: 500;
  line-height: 1.5;
}

.adp-sap-table {
  margin: 14px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(30, 50, 100, 0.1);
  font-size: 14px;
}

.adp-sap-tr {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 10px 16px;
  gap: 8px;
  align-items: center;
}

.adp-sap-tr:not(.adp-sap-thead):nth-child(even) {
  background: #f8fafd;
}

.adp-sap-thead {
  background: #1e3264;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.adp-sap-note {
  font-size: 13px !important;
  color: rgba(35, 52, 77, 0.65) !important;
  line-height: 1.6 !important;
  margin-top: 8px !important;
}

.adp-sap-list {
  padding-left: 18px;
  margin: 10px 0 0;
}

.adp-sap-list li {
  font-size: 15px;
  line-height: 1.65;
  color: #23344d;
  margin-bottom: 8px;
}

.adp-sap-warning {
  background: #fffbf0;
  border: 1px solid rgba(234, 160, 0, 0.28);
  border-radius: 12px;
  padding: 20px !important;
}

.adp-sap-warning h3 {
  color: #92600a !important;
  margin-top: 0 !important;
}

.adp-sap-sources {
  background: #f8fafd;
  border-radius: 12px;
  padding: 18px 20px !important;
}

.adp-sap-sources ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}

.adp-sap-sources li {
  font-size: 13px;
  color: #23344d;
  padding: 6px 0;
  border-bottom: 1px solid rgba(30, 50, 100, 0.07);
  line-height: 1.5;
}

.adp-sap-sources li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.adp-sap-sources a {
  color: #0070c8;
  text-decoration: none;
}

.adp-sap-sources a:hover {
  text-decoration: underline;
}

.home .et_pb_section_3 {
  padding-top: 96px !important;
  padding-bottom: 100px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
}

.home .et_pb_section_3 .adp-title-section h2,
.home #formations .adp-title-section h2 {
  font-size: clamp(34px, 3.6vw, 52px) !important;
  line-height: 1.04;
}

.home .et_pb_section_3 > .et_pb_row:nth-child(2),
.home .et_pb_section_3 > .et_pb_row:nth-child(3) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.home .et_pb_section_3 > .et_pb_row:nth-child(2)::after,
.home .et_pb_section_3 > .et_pb_row:nth-child(3)::after {
  display: none;
}

.home .et_pb_section_3 > .et_pb_row:nth-child(2) > .et_pb_column,
.home .et_pb_section_3 > .et_pb_row:nth-child(3) > .et_pb_column {
  width: auto !important;
  margin: 0 !important;
}

.home .et_pb_section_3 .adp-card-service {
  padding: 26px 24px 24px !important;
  border: 1px solid rgba(215, 225, 236, 0.78);
  border-radius: 22px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow:
    0 18px 44px rgba(30, 50, 100, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.92);
}

.home .et_pb_section_3 .adp-card-service .et_pb_main_blurb_image {
  width: 62px;
  height: 62px;
  margin: 0 0 18px;
  background: linear-gradient(180deg, rgba(232, 242, 255, 0.94), rgba(246, 250, 255, 0.98));
  box-shadow: 0 12px 26px rgba(30, 50, 100, 0.1);
}

.home .et_pb_section_3 .adp-card-service .et_pb_module_header {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.12;
}

.home .et_pb_section_3 .adp-card-service .et_pb_blurb_description {
  font-size: 14px;
  line-height: 1.72;
}

.home .et_pb_section_3 .et_pb_button_module_wrapper {
  margin-top: 26px;
}

.home #formations {
  position: relative;
  padding-top: 90px !important;
  padding-bottom: 94px !important;
  background:
    radial-gradient(circle at top right, rgba(0, 112, 200, 0.08), transparent 28%),
    linear-gradient(180deg, #f2f8fe 0%, #f9fbfe 100%) !important;
}

.home #formations > .et_pb_row:first-child {
  margin-bottom: 18px;
}

.home #formations .adp-formations-intro {
  margin: 14px auto 0;
  max-width: 44ch;
  font-size: 18px;
  line-height: 1.72;
  color: rgba(35, 52, 77, 0.72);
}

.home #formations > .et_pb_row:nth-child(2) {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.home #formations > .et_pb_row:nth-child(2)::after {
  display: none;
}

.home #formations > .et_pb_row:nth-child(2) > .et_pb_column {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  height: auto !important;
  min-height: 0 !important;
}

.home .adp-pill-theme {
  min-width: 0;
  min-height: 172px;
  height: auto !important;
  justify-content: center;
  gap: 4px;
  padding: 26px 20px 22px !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,0.9);
  box-shadow:
    0 16px 36px rgba(30, 50, 100, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.home .adp-pill-theme:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(30, 50, 100, 0.12);
}

.home .adp-pill-theme .et_pb_blurb_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.home .adp-pill-theme .et_pb_main_blurb_image {
  margin-bottom: 14px;
  box-shadow: 0 10px 24px rgba(30, 50, 100, 0.1);
}

.home .adp-pill-theme .et_pb_module_header {
  font-size: 19px;
  line-height: 1.4;
}

.home #formations > .et_pb_row:nth-child(3) {
  margin-top: 28px;
}

.home #formations .adp-btn-secondary {
  padding-left: 28px;
  padding-right: 28px;
  border-color: rgba(0, 112, 200, 0.28);
  background: rgba(255,255,255,0.78);
  box-shadow: 0 14px 30px rgba(30, 50, 100, 0.08);
}

.home #a-propos {
  padding-top: 96px !important;
  padding-bottom: 100px !important;
  background:
    radial-gradient(circle at left center, rgba(251, 247, 240, 0.85), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
}

.home #a-propos > .et_pb_row {
  padding: 34px;
  border: 1px solid rgba(215, 225, 236, 0.78);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,251,255,0.98) 100%);
  box-shadow:
    0 24px 60px rgba(30, 50, 100, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.home #a-propos > .et_pb_row > .et_pb_column:first-child {
  border-radius: 28px;
  box-shadow: 0 22px 46px rgba(30, 50, 100, 0.12);
}

.home #a-propos > .et_pb_row > .et_pb_column:first-child .et_pb_image {
  display: block;
  margin: 0;
}

.home #a-propos .et_pb_image_wrap {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 48px rgba(30, 50, 100, 0.16);
}

.home #a-propos h2 {
  font-size: clamp(34px, 3.4vw, 50px) !important;
  line-height: 1.04 !important;
}

.home #a-propos h3 {
  font-size: 18px !important;
  letter-spacing: 0.01em;
  margin-bottom: 18px !important;
}

.home #a-propos p {
  font-size: 16px;
  line-height: 1.85;
}

.home #a-propos .et_pb_button {
  background: rgba(255,255,255,0.88) !important;
  box-shadow: 0 12px 26px var(--adp-color-soft-shadow) !important;
}

.home .et_pb_section_6 {
  padding-top: 78px !important;
  padding-bottom: 78px !important;
  background:
    linear-gradient(180deg, #eef5fc 0%, #f8fbff 100%) !important;
}

.home .et_pb_section_6 > .et_pb_row:first-child {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.home .et_pb_section_6 > .et_pb_row:first-child::after {
  display: none;
}

.home .et_pb_section_6 > .et_pb_row:first-child > .et_pb_column {
  width: auto !important;
  margin: 0 !important;
}

.home .et_pb_section_6 > .et_pb_row:not(:first-child) {
  text-align: center;
  padding-top: 8px;
}

.home .adp-info-item {
  padding: 22px 18px !important;
  border: 1px solid rgba(215, 225, 236, 0.82);
  border-radius: 22px !important;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 16px 40px rgba(30, 50, 100, 0.07);
  backdrop-filter: blur(8px);
}

.home .adp-info-item .et_pb_main_blurb_image {
  width: 62px;
  height: 62px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, rgba(232,242,255,0.95), rgba(246,250,255,0.98));
  box-shadow: 0 12px 24px rgba(30, 50, 100, 0.1);
}

.home .adp-info-item .et_pb_module_header {
  font-size: 20px;
  margin-bottom: 8px;
}

.home #contact {
  position: relative;
  width: min(1280px, calc(100vw - 40px)) !important;
  margin: 0 auto 54px !important;
  padding-top: 46px !important;
  padding-bottom: 46px !important;
  border-radius: 32px !important;
  background:
    radial-gradient(circle at top right, rgba(0, 112, 200, 0.24), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255,255,255,0.06), transparent 26%),
    linear-gradient(135deg, #203769 0%, #28457f 58%, #1b2f5e 100%) !important;
  box-shadow: 0 28px 60px rgba(17, 31, 63, 0.3);
}

.home #contact > .et_pb_row {
  background: transparent !important;
}

.home #contact h2 {
  font-size: clamp(34px, 3.5vw, 50px) !important;
  line-height: 1.02 !important;
  color: #ffffff !important;
}

.home #contact p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.88) !important;
}

/* Les boutons contact héritent de et_pb_bg_layout_light → fond blanc opaque par défaut Divi.
   On force le rendu sombre sur fond bleu. */
.home #contact .et_pb_button {
  min-width: 200px;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.45) !important;
  background: rgba(255,255,255,0.12) !important;
  backdrop-filter: blur(8px);
}

.home #contact .et_pb_button:hover {
  background: rgba(255,255,255,0.22) !important;
  border-color: rgba(255,255,255,0.7) !important;
}

#main-header,
.adp-header-global {
  background: rgba(30, 50, 100, 0.9) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(17, 31, 63, 0.18);
}

#top-menu li {
  padding-right: 18px;
}

#top-menu li a {
  letter-spacing: 0.01em;
}

#main-footer {
  padding-top: 0 !important;
  background:
    radial-gradient(circle at top left, rgba(0, 112, 200, 0.08), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%) !important;
}

#footer-bottom {
  padding: 34px 0 28px !important;
  background: transparent !important;
}

#footer-info,
#footer-info a,
#footer-bottom .et-social-icon a {
  color: rgba(35, 52, 77, 0.72) !important;
}

.et-social-icons {
  display: none !important;
}

.adp-footer-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.45fr);
  gap: 28px 34px;
  align-items: start;
  padding: 30px 34px;
  border: 1px solid rgba(30, 50, 100, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 24px 60px rgba(30, 50, 100, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
}

.adp-footer-brand {
  display: grid;
  gap: 12px;
}

.adp-footer-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 112, 200, 0.76);
}

.adp-footer-tagline {
  margin: 0;
  max-width: 34ch;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(35, 52, 77, 0.92);
}

.adp-footer-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.adp-footer-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(247, 250, 254, 0.96);
  border: 1px solid rgba(30, 50, 100, 0.08);
  color: rgba(35, 52, 77, 0.94) !important;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.adp-footer-card strong {
  font-size: 16px;
  line-height: 1.4;
}

.adp-footer-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 112, 200, 0.22);
  box-shadow: 0 16px 36px rgba(30, 50, 100, 0.08);
}

.adp-footer-card--cta {
  background: linear-gradient(135deg, rgba(0, 112, 200, 0.96), rgba(30, 50, 100, 0.92));
  color: #ffffff !important;
}

.adp-footer-card--cta .adp-footer-label,
.adp-footer-card--cta strong {
  color: inherit;
}

.adp-footer-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(35, 52, 77, 0.5);
}

.adp-footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  grid-column: 1 / -1;
  padding-top: 6px;
  font-size: 13px;
}

.adp-footer-legal-links a {
  color: rgba(35, 52, 77, 0.68) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 4px;
}

.adp-footer-legal-links a:hover {
  color: var(--adp-color-primary) !important;
}

@media (max-width: 980px) {
  .adp-sap-credit-badge {
    min-height: 160px;
    padding: 24px 20px;
  }

  .adp-sap-pct {
    font-size: 56px;
  }

  .home .et_pb_section_3 > .et_pb_row:nth-child(2),
  .home .et_pb_section_3 > .et_pb_row:nth-child(3),
  .home .et_pb_section_6 > .et_pb_row:first-child,
  .home #formations > .et_pb_row:nth-child(2) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home #a-propos > .et_pb_row {
    padding: 24px;
  }

  .adp-footer-shell {
    grid-template-columns: 1fr;
    padding: 24px 22px;
  }

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

  .adp-footer-tagline {
    max-width: none;
    font-size: 17px;
  }

}

@media (max-width: 767px) {
  .home .et_pb_section_0 {
    padding-top: 74px !important;
    padding-bottom: 74px !important;
  }

  .home .et_pb_section_0 h1 {
    font-size: 46px !important;
    max-width: 8ch;
  }

  .home .et_pb_section_0 .et_pb_text:not(:first-child) p {
    font-size: 16px;
  }

  .home .et_pb_section_0 .et_pb_text:first-child::before {
    margin-bottom: 14px;
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .home .et_pb_section_2,
  .home .et_pb_section_3,
  .home #formations,
  .home #a-propos,
  .home .et_pb_section_6 {
    padding-top: 68px !important;
    padding-bottom: 68px !important;
  }

  .home .et_pb_section_2 > .et_pb_row,
  .home #a-propos > .et_pb_row {
    padding: 24px 20px !important;
    border-radius: 24px;
  }

  .home #a-propos > .et_pb_row > .et_pb_column:first-child {
    min-height: 220px;
    margin-bottom: 18px;
  }

  .home .et_pb_section_2 > .et_pb_row > .et_pb_column:first-child {
    min-height: 132px;
    background-position: center left;
  }

  .home .et_pb_section_2 > .et_pb_row > .et_pb_column:first-child .et_pb_text {
    min-height: 112px;
  }

  .home .et_pb_section_3 > .et_pb_row:nth-child(2),
  .home .et_pb_section_3 > .et_pb_row:nth-child(3),
  .home .et_pb_section_6 > .et_pb_row:first-child,
  .home #formations > .et_pb_row:nth-child(2) {
    grid-template-columns: 1fr;
  }

  .home .adp-pill-theme {
    min-height: 148px;
  }

  .home #contact {
    width: calc(100vw - 24px) !important;
    margin-bottom: 28px !important;
    padding-top: 34px !important;
    padding-bottom: 34px !important;
    border-radius: 24px !important;
  }
}

/* ── Footer Fix ────────────────────────────────────────────────────────────── */
.adp-footer-global,
#main-footer {
  border-top: 1px solid var(--adp-color-border);
}

#main-footer .et_pb_row {
  max-width: 1440px !important;
  width: calc(100% - 80px) !important;
}

#footer-bottom .container {
  width: min(1360px, calc(100% - 80px)) !important;
  max-width: 1360px !important;
}

@media (max-width: 980px) {
  #main-footer .et_pb_row,
  #footer-bottom .container {
    width: calc(100% - 32px) !important;
  }
}

/* ── Modales Fix ───────────────────────────────────────────────────────────── */
.adp-modal-container {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000 !important;
  display: none;
  /* align-items: flex-start permet le scroll quand le contenu dépasse la fenêtre */
  align-items: flex-start;
  justify-content: center;
  background-color: rgba(30, 50, 100, 0.85) !important;
  backdrop-filter: blur(5px);
  padding: 40px 20px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Quand la modale est active */
.adp-modal-container.adp-modal-open {
  display: flex !important;
}

.adp-modal-content {
  background: white;
  border-radius: var(--adp-radius-lg);
  max-width: 900px;
  width: 100%;
  /* Pas de max-height : c'est le container qui scrolle.
     Divi applique overflow:hidden sur et_block_row, on l'écrase. */
  max-height: none !important;
  overflow: visible !important;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  margin: auto; /* Centre verticalement quand le contenu est court */
}

.adp-modal-content > .et_block_column {
  padding: 52px 56px 46px;
}

.adp-modal-content > .et_block_column > .et_pb_module:last-of-type,
.adp-modal-content > .et_block_column > .et_pb_button_module_wrapper:last-of-type {
  margin-bottom: 0 !important;
}

.adp-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  cursor: pointer;
  z-index: 10001;
  font-size: 24px;
  color: var(--adp-color-primary);
  line-height: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(244, 248, 252, 0.94);
  border: 1px solid rgba(30, 50, 100, 0.08);
  box-shadow: 0 10px 24px rgba(30, 50, 100, 0.08);
}

/* Ajustement pour le scroll des modales sur mobile */
@media (max-width: 767px) {
  .adp-modal-container {
    padding: 10px;
  }
  .adp-modal-content {
    max-height: 95vh;
  }

  .adp-modal-content > .et_block_column {
    padding: 52px 22px 24px;
  }

  /* SAP mobile : badge en bandeau horizontal */
  .adp-sap-credit-badge {
    flex-direction: row;
    min-height: auto;
    gap: 14px;
    padding: 92px 22px 24px;
    border-radius: 16px;
    text-align: left;
    align-items: center;
  }

  .adp-sap-credit-badge::before {
    top: 18px;
    left: 22px;
    right: auto;
  }

  .adp-sap-credit-badge::after {
    top: 36px;
    left: 22px;
    right: 22px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .adp-sap-pct {
    font-size: 56px;
    flex-shrink: 0;
    margin-top: 0;
  }

  .adp-sap-ref {
    display: none;
  }

  /* SAP modale : tableau responsive */
  .adp-sap-tr {
    grid-template-columns: 1.6fr 1fr 1fr;
    font-size: 13px;
    padding: 8px 12px;
  }

  .home .et_pb_section_2 > .et_pb_row {
    display: block;
    padding: 28px 20px !important;
    border-radius: 24px;
  }

  .home .et_pb_section_2 > .et_pb_row::before {
    inset: 12px;
    border-radius: 18px;
  }

  .home .et_pb_section_2 .et_pb_column_7 {
    width: auto !important;
    padding: 0;
  }

  .home .et_pb_section_2 .et_pb_column_7::after {
    display: none;
  }

  .home .et_pb_section_2 .et_pb_column_8 {
    width: auto !important;
    padding-left: 0;
    margin-top: 18px;
    display: block;
  }

  .adp-sap-logo-panel {
    width: auto;
    margin-bottom: 24px;
    padding-top: 0;
  }

  .adp-sap-logo-panel img {
    max-width: 168px;
  }

  .adp-sap-checks-panel,
  .adp-sap-cta-row {
    grid-column: auto;
    margin-top: 0;
  }

  .adp-sap-title {
    max-width: none;
  }

  .adp-sap-intro {
    padding-bottom: 18px;
    margin-bottom: 20px !important;
  }

  .adp-sap-checks {
    grid-template-columns: 1fr;
  }
}

/* ── Modales — Contenu enrichi ──────────────────────────────────────────────── */

.adp-modal-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0, 112, 200, 0.76);
  margin: 0 0 6px;
}

.adp-modal-content h2 {
  font-size: 28px !important;
  color: #1e3264 !important;
  margin: 0 0 28px !important;
  line-height: 1.25 !important;
  padding-bottom: 20px !important;
  border-bottom: 1px solid rgba(30, 50, 100, 0.08) !important;
}

/* Service grid — Prestations */
.adp-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0 0 24px;
}

.adp-service-item {
  background: #f4f8fc;
  border: 1px solid rgba(30, 50, 100, 0.07);
  border-radius: 16px;
  padding: 20px 22px;
}

.adp-service-icon {
  font-size: 26px;
  display: block;
  margin-bottom: 10px;
}

.adp-service-item h3 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1e3264 !important;
  margin: 0 0 6px !important;
}

.adp-service-item > p {
  font-size: 14px;
  color: rgba(35, 52, 77, 0.72);
  margin: 0 0 10px;
  line-height: 1.55;
}

.adp-service-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(30, 50, 100, 0.08);
  padding-top: 10px;
}

.adp-service-item ul li {
  font-size: 13px;
  color: rgba(35, 52, 77, 0.62);
  padding-left: 14px;
  position: relative;
  margin-bottom: 3px;
  line-height: 1.4;
}

.adp-service-item ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: #0070c8;
  font-weight: 700;
}

/* Pricing band */
.adp-pricing-band {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1e3264 0%, #0070c8 100%);
  border-radius: 14px;
  padding: 18px 24px;
  margin: 0 0 8px;
  color: white;
  gap: 0;
  flex-wrap: wrap;
}

.adp-pricing-main {
  font-size: 24px;
  font-weight: 800;
}

.adp-pricing-sep {
  font-size: 18px;
  opacity: 0.45;
  margin: 0 12px;
}

.adp-pricing-after {
  font-size: 15px;
  font-weight: 500;
}

.adp-pricing-after strong {
  font-weight: 800;
}

.adp-pricing-sap {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  text-align: right;
  line-height: 1.4;
}

/* Approach pillars — Formations */
.adp-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 28px;
}

.adp-pillar {
  background: #f4f8fc;
  border: 1px solid rgba(30, 50, 100, 0.07);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
}

.adp-pillar-icon {
  font-size: 30px;
  display: block;
  margin-bottom: 10px;
}

.adp-pillar h3 {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1e3264 !important;
  margin: 0 0 6px !important;
}

.adp-pillar p {
  font-size: 13px;
  color: rgba(35, 52, 77, 0.68);
  margin: 0;
  line-height: 1.5;
}

/* Thematic cards — Formations */
.adp-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0 0 24px;
}

.adp-theme-card {
  background: white;
  border: 1px solid rgba(30, 50, 100, 0.1);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.adp-theme-card-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.adp-theme-card-body h3 {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1e3264 !important;
  margin: 0 0 4px !important;
}

.adp-theme-card-body p {
  font-size: 13px;
  color: rgba(35, 52, 77, 0.65);
  margin: 0;
  line-height: 1.45;
}

/* À propos — bio layout */
.adp-apropos-bio {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
  align-items: start;
  margin: 0 0 28px;
}

.adp-apropos-text p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(35, 52, 77, 0.85);
  margin: 0 0 12px;
}

/* Value cards — À propos */
.adp-value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 24px;
}

.adp-value-card {
  background: white;
  border: 1px solid rgba(30, 50, 100, 0.1);
  border-top: 3px solid #0070c8;
  border-radius: 0 0 14px 14px;
  padding: 18px 16px;
  text-align: center;
}

.adp-value-card-icon {
  font-size: 26px;
  display: block;
  margin-bottom: 8px;
}

.adp-value-card h3 {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1e3264 !important;
  margin: 0 0 6px !important;
}

.adp-value-card p {
  font-size: 13px;
  color: rgba(35, 52, 77, 0.68);
  margin: 0;
  line-height: 1.45;
}


/* Review cards — Avis */
.adp-rating-header {
  text-align: center;
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(30, 50, 100, 0.08);
}

.adp-rating-stars {
  font-size: 26px;
  display: block;
  letter-spacing: 4px;
  margin-bottom: 6px;
  color: #f59e0b;
}

.adp-rating-score {
  font-size: 14px;
  color: rgba(35, 52, 77, 0.62);
}

.adp-review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0 0 24px;
}

.adp-review-card {
  background: #f4f8fc;
  border: 1px solid rgba(30, 50, 100, 0.07);
  border-radius: 14px;
  padding: 18px 20px;
}

.adp-review-stars {
  color: #f59e0b;
  font-size: 13px;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 8px;
}

.adp-review-text {
  font-size: 14px;
  color: rgba(35, 52, 77, 0.8);
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 10px;
}

.adp-review-author {
  font-size: 13px;
  font-weight: 600;
  color: #1e3264;
  margin: 0;
}

/* Contact modal */
.adp-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
  align-items: start;
}

.adp-contact-info {
  background: #f4f8fc;
  border: 1px solid rgba(30, 50, 100, 0.07);
  border-radius: 16px;
  padding: 22px 20px;
}

.adp-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.adp-contact-item:last-child {
  margin-bottom: 0;
}

.adp-contact-item-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.adp-contact-item-body p {
  margin: 0;
  font-size: 15px;
  color: #23344d;
}

.adp-contact-item-body p a {
  color: #0070c8;
  text-decoration: none;
  font-weight: 600;
}

.adp-contact-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: rgba(35, 52, 77, 0.45) !important;
  margin: 0 0 2px !important;
}

.adp-contact-form-zone {
  background: #f4f8fc;
  border: 1px dashed rgba(30, 50, 100, 0.18);
  border-radius: 16px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive modales enrichies */
@media (max-width: 767px) {
  .adp-service-grid,
  .adp-theme-grid,
  .adp-review-grid,
  .adp-contact-grid,
  .adp-apropos-bio {
    grid-template-columns: 1fr;
  }

  .adp-pillars,
  .adp-value-grid {
    grid-template-columns: 1fr;
  }

  .adp-pricing-band {
    flex-direction: column;
    gap: 6px;
  }

  .adp-pricing-sap {
    margin-left: 0;
    text-align: left;
  }
}

/* ─── WCAG 2.5.5 — Cibles tactiles ≥ 44px ─────────────────────────────────── */
/* Lien logo Divi (a:has est supporté Chrome 105+, Safari 15.4+) */
a:has(> #logo),
.logo_container a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 44px !important;
}
