/* ==========================================================================
   MSD SARL — Activités (transposition de prototype/activites.html,
   activites.css + composants communs de about.css : hero, surtitre, icônes).
   Contenus : widgets Elementor Free ; mise en page : classes CSS assignées
   dans Elementor. Préfixe .msd-activites .elementor.elementor.
   ========================================================================== */

.msd-activites { --msd-ac-gutter: calc(55 * var(--msd-s)); }

/* ---------- Neutralisation des réglages par défaut d'Elementor ---------- */

.msd-activites .elementor.elementor {
  font-family: var(--msd-font-sans); font-size: 16px; line-height: 1.6;
  color: var(--msd-ink-soft);
  --kit-widget-spacing: 0px;
}
.msd-activites .elementor.elementor .e-con {
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
  --padding-block-start: 0px; --padding-block-end: 0px; --padding-inline-start: 0px; --padding-inline-end: 0px;
  --gap: 0px; --row-gap: 0px; --column-gap: 0px;
  --width: 100%;
  min-width: 0;
}
.msd-activites .elementor.elementor .elementor-widget,
.msd-activites .elementor.elementor .elementor-widget:not(:last-child) { margin-block-end: 0; }
.msd-activites .elementor.elementor p { margin: 0; }
.msd-activites .elementor.elementor .elementor-heading-title { margin: 0; padding: 0; font: inherit; color: inherit; line-height: inherit; }
.msd-activites .elementor.elementor .elementor-button-content-wrapper { display: inline-flex; align-items: center; }

/* ---------- Éléments communs ---------- */

.msd-activites .elementor.elementor .msd-ac-eyebrow .elementor-heading-title {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--msd-font-mono); font-weight: 500;
  font-size: 12.5px; letter-spacing: .16em; line-height: 1.3; text-transform: uppercase;
  color: var(--msd-muted-gold);
}
.msd-activites .elementor.elementor .msd-ac-eyebrow--light .elementor-heading-title { color: var(--msd-deep-forest); }
.msd-activites .elementor.elementor .msd-ac-eyebrow--line .elementor-heading-title::after { content: ""; flex: none; width: 56px; height: 1px; background: var(--msd-muted-gold); }

.msd-activites .elementor.elementor .msd-ac-h2 { margin-top: 12px; }
.msd-activites .elementor.elementor .msd-ac-h2 .elementor-heading-title {
  font-family: var(--msd-font-serif); font-weight: 400;
  font-size: clamp(32px, 3.2vw, 50px); line-height: 1.04; color: var(--msd-deep-forest);
}

/* Pictogrammes : cercle doré + tracé (famille d'icônes du prototype) */
.msd-activites .elementor.elementor .msd-ac-ico::before {
  content: ""; display: block; flex: none; box-sizing: border-box; position: static;
  width: 44px; height: 44px;
  border: 1.5px solid var(--msd-muted-gold); border-radius: 50%;
  background: no-repeat center / 50% 50%;
}
/* Tracé Deep Forest (fonds clairs) */
.msd-activites .elementor.elementor .msd-ac-i-produire::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316352a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c0-8 5.5-14 14-14 0 8.5-6 14-14 14zM5 19l8-8M10 14h3.5M13 11V7.5'/%3E%3C/svg%3E"); }
.msd-activites .elementor.elementor .msd-ac-i-valoriser::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316352a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 3v2.5M12 18.5V21M3 12h2.5M18.5 12H21M5.6 5.6l1.8 1.8M16.6 16.6l1.8 1.8M5.6 18.4l1.8-1.8M16.6 7.4l1.8-1.8'/%3E%3C/svg%3E"); }
.msd-activites .elementor.elementor .msd-ac-i-construire::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316352a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20h18M5 20V9h5v11M10 20V5h6v4M13 12h6v8h-6zM13 16h6M16 12v4M7 12h1M7 15h1'/%3E%3C/svg%3E"); }
.msd-activites .elementor.elementor .msd-ac-i-acheminer::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316352a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 16V7h11v9M13.5 10h4l3 3.5V16h-7'/%3E%3Ccircle cx='7' cy='17' r='1.8'/%3E%3Ccircle cx='17' cy='17' r='1.8'/%3E%3C/svg%3E"); }
.msd-activites .elementor.elementor .msd-ac-i-commercialiser::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316352a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4h2.5l2.2 10.5h11l1.8-7.5H6'/%3E%3Ccircle cx='9' cy='19' r='1.5'/%3E%3Ccircle cx='17' cy='19' r='1.5'/%3E%3C/svg%3E"); }
.msd-activites .elementor.elementor .msd-ac-i-services::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316352a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 9h3v7h-3zM18.5 9h3v7h-3zM5.5 10l4-1.5 3 1 2.5-1 3.5 1.5M5.5 15l1.5.3 4 3.5c.8.7 1.8.5 2-.3.8.7 1.8.4 2-.4.8.5 1.8 0 1.7-1 .9.1 1.4-.8.9-1.6l.9-.5M11 9l-3 3c-.5.5 0 1.5 1 1.2l2.5-1.5 4.8 4.2'/%3E%3C/svg%3E"); }
/* Tracé Muted Gold (fonds sombres) */
.msd-activites .elementor.elementor .msd-ac-g-produire::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a88a4a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c0-8 5.5-14 14-14 0 8.5-6 14-14 14zM5 19l8-8M10 14h3.5M13 11V7.5'/%3E%3C/svg%3E"); }
.msd-activites .elementor.elementor .msd-ac-g-elevage::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a88a4a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7C3.5 7 2.5 6 2.5 4.5M19 7c1.5 0 2.5-1 2.5-2.5M5 7h14l-1.5 6.5c-.4 1.8-2 3-3.8 3h-3.4c-1.8 0-3.4-1.2-3.8-3zM9.5 16.5v1.5a2.5 2.5 0 0 0 5 0v-1.5M9.2 10.5h.1M14.7 10.5h.1'/%3E%3C/svg%3E"); }
.msd-activites .elementor.elementor .msd-ac-g-construire::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a88a4a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20h18M5 20V9h5v11M10 20V5h6v4M13 12h6v8h-6zM13 16h6M16 12v4M7 12h1M7 15h1'/%3E%3C/svg%3E"); }
.msd-activites .elementor.elementor .msd-ac-g-equipe::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a88a4a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='16.5' cy='9' r='2.3'/%3E%3Cpath d='M3.5 19v-1A4.5 4.5 0 0 1 8 13.5h2a4.5 4.5 0 0 1 4.5 4.5v1M15 14a3.8 3.8 0 0 1 5.5 3.4V19'/%3E%3C/svg%3E"); }
.msd-activites .elementor.elementor .msd-ac-g-communautes::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a88a4a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='2.5'/%3E%3Ccircle cx='5.5' cy='10' r='2'/%3E%3Ccircle cx='18.5' cy='10' r='2'/%3E%3Cpath d='M8 19v-2.5a4 4 0 0 1 8 0V19M2.5 18v-1a3 3 0 0 1 4.2-2.7M21.5 18v-1a3 3 0 0 0-4.2-2.7'/%3E%3C/svg%3E"); }
.msd-activites .elementor.elementor .msd-ac-g-ressources::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a88a4a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l2.5 5 5.5.8-4 3.9.9 5.5L12 16.1l-4.9 2.6.9-5.5-4-3.9 5.5-.8z'/%3E%3C/svg%3E"); }
.msd-activites .elementor.elementor .msd-ac-g-durable::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a88a4a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h16M7 20v-4M12 20v-7M17 20v-5M12 13c0-3.5 2.5-6 6.5-6 0 3.5-2.5 6-6.5 6zM12 11c0-2.5-2-4.5-5-4.5 0 2.5 2 4.5 5 4.5z'/%3E%3C/svg%3E"); }

/* Bouton or avec flèche */
.msd-activites .elementor.elementor .msd-ac-cta .elementor-button {
  display: inline-flex; align-items: center; justify-content: center;
  height: calc(36 * var(--msd-s)); min-width: calc(228 * var(--msd-s)); padding: 0 calc(20 * var(--msd-s));
  border: 1.5px solid var(--msd-muted-gold); border-radius: 2px;
  background: var(--msd-muted-gold); color: var(--msd-forest-black);
  font-family: var(--msd-font-sans); font-weight: 500; font-size: calc(14.5 * var(--msd-s)); line-height: 1;
  transition: background-color .2s;
}
.msd-activites .elementor.elementor .msd-ac-cta .elementor-button:hover,
.msd-activites .elementor.elementor .msd-ac-cta .elementor-button:focus { background: #bfa062; color: var(--msd-forest-black); }
.msd-activites .elementor.elementor .msd-ac-cta .elementor-button-content-wrapper::after,
.msd-activites .elementor.elementor .msd-ac-more .elementor-button-content-wrapper::after {
  content: ""; flex: none; width: 16px; height: 10px; margin-left: 12px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M1 6H18M13 1L18 6L13 11' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M1 6H18M13 1L18 6L13 11' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.msd-activites .elementor.elementor .msd-ac-cta .elementor-button-content-wrapper::after { width: calc(15 * var(--msd-s)); height: calc(10 * var(--msd-s)); margin-left: calc(14 * var(--msd-s)); }

/* ---------- Hero ---------- */

.msd-activites .elementor.elementor .msd-ac-hero.e-con {
  display: flex; flex-direction: row; align-items: center; position: relative; overflow: hidden;
  min-height: clamp(460px, 36vw, 600px);
  padding: calc(76 * var(--msd-s) + clamp(36px, 4vw, 64px)) 0 clamp(44px, 4.5vw, 72px);
  background: var(--msd-forest-black); border-bottom: 1px solid var(--msd-muted-gold);
}
.msd-activites .elementor.elementor .msd-ac-hero__media { position: absolute; top: 0; right: 0; bottom: 0; left: 42%; width: auto; max-width: none; z-index: 0; }
.msd-activites .elementor.elementor .msd-ac-hero__media .elementor-widget-container { height: 100%; }
.msd-activites .elementor.elementor .msd-ac-hero__media img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 70% 45%; }
.msd-activites .elementor.elementor .msd-ac-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--msd-forest-black) 0%, rgba(11, 15, 13, .7) 16%, rgba(11, 15, 13, .12) 42%, rgba(11, 15, 13, 0) 60%);
}
.msd-activites .elementor.elementor .msd-ac-hero.e-con::before {
  content: ""; display: block; position: absolute; z-index: 1;
  left: 30%; top: 14%; width: 30%; height: 86%; right: auto; bottom: auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23a88a4a' stroke-width='1' vector-effect='non-scaling-stroke'%3E%3Cpath d='M60 0c50 40-10 80 50 120s110 30 90 90 60 70 110 90'/%3E%3Cpath d='M80 0c50 40-10 80 50 120s110 30 90 90 60 70 110 90'/%3E%3Cpath d='M100 0c50 40-10 80 50 120s110 30 90 90 60 70 110 90'/%3E%3Cpath d='M120 0c50 40-10 80 50 120s110 30 90 90 60 70 110 90'/%3E%3Cpath d='M140 0c50 40-10 80 50 120s110 30 90 90 60 70 110 90'/%3E%3C/g%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
  opacity: .45; pointer-events: none; mix-blend-mode: normal;
}
.msd-activites .elementor.elementor .msd-ac-hero__content.e-con {
  display: block; position: relative; z-index: 2;
  max-width: calc(640px + 2 * var(--msd-ac-gutter)); padding-inline: var(--msd-ac-gutter);
}
.msd-activites .elementor.elementor .msd-ac-hero__title { margin-top: 18px; }
.msd-activites .elementor.elementor .msd-ac-hero__title .elementor-heading-title {
  font-family: var(--msd-font-serif); font-weight: 400;
  font-size: clamp(44px, 4.6vw, 74px); line-height: 1; letter-spacing: -.01em; color: var(--msd-warm-ivory);
}
.msd-activites .elementor.elementor .msd-ac-hero__title em { font-style: italic; color: var(--msd-muted-gold); }
.msd-activites .elementor.elementor .msd-ac-hero__text {
  max-width: 600px; margin-top: 22px;
  font-size: clamp(16px, 1.15vw, 18px); line-height: 1.6; color: rgba(243, 240, 232, .88);
}
.msd-activites .elementor.elementor .msd-ac-cta { margin-top: 28px; }

/* ---------- Chaîne de valeur ---------- */

.msd-activites .elementor.elementor .msd-ac-chain.e-con {
  display: block; background: var(--msd-warm-ivory); color: var(--msd-ink-soft);
  padding: clamp(44px, 4.4vw, 72px) var(--msd-ac-gutter);
}
.msd-activites .elementor.elementor .msd-ac-chain__head.e-con {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: end;
}
.msd-activites .elementor.elementor .msd-ac-chain__title.e-con { display: block; }
.msd-activites .elementor.elementor .msd-ac-chain__intro {
  max-width: 560px; padding-left: clamp(20px, 2.4vw, 36px); border-left: 1px solid var(--msd-stone);
  font-size: 16px; line-height: 1.6;
}
.msd-activites .elementor.elementor .msd-ac-steps.e-con {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px);
  margin-top: clamp(32px, 3.4vw, 52px);
}
.msd-activites .elementor.elementor .msd-ac-step.e-con { position: relative; display: flex; flex-direction: row; align-items: flex-start; gap: 16px; }
.msd-activites .elementor.elementor .msd-ac-step.e-con::before { width: 52px; height: 52px; }
.msd-activites .elementor.elementor .msd-ac-step__body.e-con { display: block; width: auto; flex: 1; }
/* flèche de liaison entre étapes (desktop uniquement) */
.msd-activites .elementor.elementor .msd-ac-step.e-con:not(:last-child)::after {
  content: ""; position: absolute; top: 34px; right: calc(-1 * clamp(16px, 2vw, 32px) / 2 - 6px);
  width: 12px; height: 12px;
  border-top: 1.5px solid var(--msd-muted-gold); border-right: 1.5px solid var(--msd-muted-gold);
  transform: rotate(45deg);
}
.msd-activites .elementor.elementor .msd-ac-num .elementor-heading-title {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--msd-font-mono); font-size: 13px; letter-spacing: .08em; line-height: 1.4; color: var(--msd-deep-forest);
}
.msd-activites .elementor.elementor .msd-ac-step__title { margin-top: 6px; }
.msd-activites .elementor.elementor .msd-ac-step__title .elementor-heading-title {
  font-family: var(--msd-font-serif); font-weight: 400; font-size: 24px; line-height: 1.1; color: var(--msd-forest-black);
}
.msd-activites .elementor.elementor .msd-ac-step__text { margin-top: 8px; font-size: 14px; line-height: 1.5; }

/* ---------- Métiers (mosaïque) ---------- */

.msd-activites .elementor.elementor .msd-ac-metiers.e-con { display: grid; gap: 2px; background: #1f2a25; }
.msd-activites .elementor.elementor .msd-ac-row.e-con { display: grid; gap: 2px; min-height: clamp(360px, 30vw, 480px); }
.msd-activites .elementor.elementor .msd-ac-row--01.e-con,
.msd-activites .elementor.elementor .msd-ac-row--03.e-con { grid-template-columns: minmax(0, 47.5fr) minmax(0, 37fr) minmax(0, 15.5fr); }
.msd-activites .elementor.elementor .msd-ac-row--02.e-con { grid-template-columns: minmax(0, 37fr) minmax(0, 31.5fr) minmax(0, 31.5fr); }
.msd-activites .elementor.elementor .msd-ac-row--04.e-con { grid-template-columns: minmax(0, 46.5fr) minmax(0, 38fr) minmax(0, 15.5fr); }
.msd-activites .elementor.elementor .msd-ac-row > .elementor-element { width: auto; max-width: none; min-width: 0; }

.msd-activites .elementor.elementor .msd-ac-media { position: relative; overflow: hidden; min-height: 280px; }
.msd-activites .elementor.elementor .msd-ac-media .elementor-widget-container { position: static; }
.msd-activites .elementor.elementor .msd-ac-media img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover;
}
.msd-activites .elementor.elementor .msd-ac-pos-agri img { object-position: 50% 42%; }
.msd-activites .elementor.elementor .msd-ac-pos-terrain img { object-position: 50% 26%; }

.msd-activites .elementor.elementor .msd-ac-panel.e-con {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(32px, 3.2vw, 56px) clamp(24px, 3vw, 52px);
  background: var(--msd-deep-forest); color: var(--msd-text-on-dark);
}
.msd-activites .elementor.elementor .msd-ac-row--02 .msd-ac-panel.e-con,
.msd-activites .elementor.elementor .msd-ac-row--04 .msd-ac-panel.e-con { padding-left: var(--msd-ac-gutter); }
.msd-activites .elementor.elementor .msd-ac-panel > .elementor-element { width: auto; max-width: 100%; }
.msd-activites .elementor.elementor .msd-ac-panel__head.e-con { display: flex; flex-direction: row; align-items: center; gap: 16px; }
.msd-activites .elementor.elementor .msd-ac-panel__head.e-con::before { order: 2; width: 56px; height: 56px; }
.msd-activites .elementor.elementor .msd-ac-panel__num .elementor-heading-title {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--msd-font-mono); font-size: 13px; letter-spacing: .08em; line-height: 1.4; color: var(--msd-stone);
}
.msd-activites .elementor.elementor .msd-ac-panel__num .elementor-heading-title::after { content: ""; width: 28px; height: 1px; background: var(--msd-muted-gold); }
.msd-activites .elementor.elementor .msd-ac-panel__title { margin-top: 18px; }
.msd-activites .elementor.elementor .msd-ac-panel__title .elementor-heading-title {
  font-family: var(--msd-font-serif); font-weight: 400;
  font-size: clamp(30px, 2.6vw, 42px); line-height: 1.05; color: var(--msd-warm-ivory);
}
.msd-activites .elementor.elementor .msd-ac-panel__text { max-width: 52ch; margin-top: 14px; font-size: 15.5px; line-height: 1.6; color: var(--msd-text-on-dark); }
.msd-activites .elementor.elementor .msd-ac-more { margin-top: 20px; }
.msd-activites .elementor.elementor .msd-ac-more .elementor-button {
  display: inline-flex; align-items: center; padding: 0; border: 0; border-radius: 0; background: none;
  font-family: var(--msd-font-sans); font-weight: 400; font-size: 15px; line-height: 1.4; color: var(--msd-warm-ivory);
  text-decoration: underline; text-decoration-color: var(--msd-muted-gold); text-underline-offset: 6px;
}
.msd-activites .elementor.elementor .msd-ac-more .elementor-button:hover,
.msd-activites .elementor.elementor .msd-ac-more .elementor-button:focus { background: none; color: var(--msd-muted-gold); }
.msd-activites .elementor.elementor .msd-ac-more .elementor-button-content-wrapper::after { background: var(--msd-muted-gold); }

.msd-activites .elementor.elementor .msd-ac-note {
  display: flex; flex-direction: column; justify-content: center;
  padding: 32px clamp(18px, 2vw, 32px);
  background: var(--msd-forest-black); border-left: 1px solid rgba(184, 180, 169, .3);
  font-family: var(--msd-font-mono); font-size: 12.5px; line-height: 1.7; letter-spacing: .12em; text-transform: uppercase;
  color: var(--msd-stone);
}
.msd-activites .elementor.elementor .msd-ac-note::after { content: ""; display: block; width: 32px; height: 1px; margin-top: 14px; background: var(--msd-muted-gold); }

/* ---------- Secteurs complémentaires ---------- */

.msd-activites .elementor.elementor .msd-ac-sectors.e-con {
  display: grid; grid-template-columns: minmax(220px, 26fr) minmax(0, 74fr); gap: clamp(28px, 3vw, 56px); align-items: center;
  background: var(--msd-warm-ivory); color: var(--msd-ink-soft);
  padding: clamp(44px, 4.4vw, 72px) var(--msd-ac-gutter);
}
.msd-activites .elementor.elementor .msd-ac-sectors__intro.e-con { display: block; }
.msd-activites .elementor.elementor .msd-ac-cards.e-con { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.msd-activites .elementor.elementor .msd-ac-card.e-con { display: flex; flex-direction: column; background: #f8f6f0; border: 1px solid rgba(184, 180, 169, .7); }
.msd-activites .elementor.elementor .msd-ac-card__body.e-con { display: flex; flex-direction: row; align-items: flex-start; gap: 14px; padding: 20px 20px 18px; flex: 1; }
.msd-activites .elementor.elementor .msd-ac-card__text.e-con { display: block; flex: 1; width: auto; }
.msd-activites .elementor.elementor .msd-ac-card__title { margin-top: 2px; }
.msd-activites .elementor.elementor .msd-ac-card__title .elementor-heading-title {
  font-family: var(--msd-font-serif); font-weight: 400; font-size: 24px; line-height: 1.1; color: var(--msd-forest-black);
}
.msd-activites .elementor.elementor .msd-ac-card__desc { margin-top: 6px; font-size: 14px; line-height: 1.5; }
.msd-activites .elementor.elementor .msd-ac-card__img { width: 100%; }
.msd-activites .elementor.elementor .msd-ac-card__img img { display: block; width: 100%; height: auto; max-width: none; aspect-ratio: 16 / 7; object-fit: cover; }

/* ---------- Section finale ---------- */

.msd-activites .elementor.elementor .msd-ac-final.e-con {
  display: block; position: relative; overflow: hidden;
  padding: clamp(56px, 5.6vw, 96px) var(--msd-ac-gutter);
  background: var(--msd-forest-black); color: var(--msd-warm-ivory); border-top: 1px solid var(--msd-muted-gold);
}
.msd-activites .elementor.elementor .msd-ac-final__media { position: absolute; inset: 0; width: auto; max-width: none; z-index: 0; }
.msd-activites .elementor.elementor .msd-ac-final__media .elementor-widget-container { height: 100%; }
.msd-activites .elementor.elementor .msd-ac-final__media img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 55%; }
.msd-activites .elementor.elementor .msd-ac-final__media::after { content: ""; position: absolute; inset: 0; background: rgba(11, 15, 13, .74); }
.msd-activites .elementor.elementor .msd-ac-final__grid.e-con {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 4vw, 72px); align-items: center;
}
.msd-activites .elementor.elementor .msd-ac-final__title .elementor-heading-title {
  font-family: var(--msd-font-serif); font-weight: 400;
  font-size: clamp(36px, 3.9vw, 62px); line-height: 1.02; color: var(--msd-warm-ivory);
}
.msd-activites .elementor.elementor .msd-ac-final__title em { font-style: italic; color: var(--msd-muted-gold); }
.msd-activites .elementor.elementor .msd-ac-final__list.e-con {
  display: flex; flex-direction: row; gap: clamp(20px, 2.6vw, 44px); width: auto;
  padding-left: clamp(28px, 4vw, 64px); border-left: 1px solid rgba(184, 180, 169, .35);
}
.msd-activites .elementor.elementor .msd-ac-final__item.e-con { display: flex; flex-direction: column; align-items: center; text-align: center; width: auto; }
.msd-activites .elementor.elementor .msd-ac-final__item.e-con::before { width: 64px; height: 64px; }
.msd-activites .elementor.elementor .msd-ac-final__item > .elementor-element { width: auto; }
.msd-activites .elementor.elementor .msd-ac-final__item .elementor-heading-title {
  margin-top: 14px; font-family: var(--msd-font-sans); font-weight: 500; font-size: 15px; line-height: 1.35; color: var(--msd-warm-ivory);
}

/* ==========================================================================
   Responsive (mêmes points de rupture que le prototype)
   ========================================================================== */

@media (max-width: 1279px) {
  .msd-activites .elementor.elementor .msd-ac-steps.e-con { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .msd-activites .elementor.elementor .msd-ac-step.e-con::after { display: none; }
  .msd-activites .elementor.elementor .msd-ac-note { font-size: 11.5px; }
  .msd-activites .elementor.elementor .msd-ac-card__body.e-con { flex-direction: column; gap: 12px; }
}

@media (max-width: 1023px) {
  .msd-activites { --msd-ac-gutter: 32px; }

  .msd-activites .elementor.elementor .msd-ac-hero.e-con { padding-top: calc(72px + 48px); }
  .msd-activites .elementor.elementor .msd-ac-hero__media { left: 25%; }
  .msd-activites .elementor.elementor .msd-ac-hero__media::after {
    background: linear-gradient(90deg, var(--msd-forest-black) 0%, rgba(11, 15, 13, .82) 30%, rgba(11, 15, 13, .35) 70%, rgba(11, 15, 13, .2) 100%);
  }
  .msd-activites .elementor.elementor .msd-ac-hero.e-con::before { left: 20%; width: 45%; }

  .msd-activites .elementor.elementor .msd-ac-chain__head.e-con { grid-template-columns: 1fr; align-items: start; }

  .msd-activites .elementor.elementor .msd-ac-row.e-con,
  .msd-activites .elementor.elementor .msd-ac-row--01.e-con,
  .msd-activites .elementor.elementor .msd-ac-row--02.e-con,
  .msd-activites .elementor.elementor .msd-ac-row--03.e-con,
  .msd-activites .elementor.elementor .msd-ac-row--04.e-con { grid-template-columns: 1fr 1fr; min-height: 0; }
  .msd-activites .elementor.elementor .msd-ac-row .msd-ac-panel.e-con { padding: 40px 32px; }
  .msd-activites .elementor.elementor .msd-ac-note {
    grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center;
    padding: 16px 32px; border-left: 0; border-top: 1px solid rgba(184, 180, 169, .3);
  }
  .msd-activites .elementor.elementor .msd-ac-note p { display: flex; flex-wrap: wrap; gap: 0 .6em; }
  .msd-activites .elementor.elementor .msd-ac-note br { display: none; }
  .msd-activites .elementor.elementor .msd-ac-note::after { display: none; }
  .msd-activites .elementor.elementor .msd-ac-row--02 .msd-ac-panel.e-con { grid-column: 1 / -1; }

  .msd-activites .elementor.elementor .msd-ac-sectors.e-con { grid-template-columns: 1fr; }

  .msd-activites .elementor.elementor .msd-ac-final__grid.e-con { grid-template-columns: 1fr; }
  .msd-activites .elementor.elementor .msd-ac-final__list.e-con {
    padding: 32px 0 0; border-left: 0; border-top: 1px solid rgba(184, 180, 169, .35); justify-content: space-between;
  }
}

@media (max-width: 767px) {
  .msd-activites { --msd-ac-gutter: 16px; }

  .msd-activites .elementor.elementor .msd-ac-hero.e-con { min-height: 0; padding: calc(72px + 170px) 0 44px; align-items: flex-end; }
  .msd-activites .elementor.elementor .msd-ac-hero__media { left: 0; bottom: auto; height: 420px; }
  .msd-activites .elementor.elementor .msd-ac-hero__media::after {
    background: linear-gradient(0deg, var(--msd-forest-black) 0%, rgba(11, 15, 13, .75) 45%, rgba(11, 15, 13, .15) 100%);
  }
  .msd-activites .elementor.elementor .msd-ac-hero.e-con::before { left: 30%; top: 30%; width: 70%; height: 70%; opacity: .3; }
  .msd-activites .elementor.elementor .msd-ac-hero__title .elementor-heading-title { font-size: clamp(40px, 11.5vw, 52px); }
  .msd-activites .elementor.elementor .msd-ac-eyebrow .elementor-heading-title { font-size: 11.5px; letter-spacing: .12em; }
  .msd-activites .elementor.elementor .msd-ac-cta .elementor-button { height: 46px; width: 100%; min-width: 0; }

  .msd-activites .elementor.elementor .msd-ac-steps.e-con { grid-template-columns: 1fr; row-gap: 22px; }
  .msd-activites .elementor.elementor .msd-ac-step__title .elementor-heading-title { font-size: 22px; }

  .msd-activites .elementor.elementor .msd-ac-row.e-con,
  .msd-activites .elementor.elementor .msd-ac-row--01.e-con,
  .msd-activites .elementor.elementor .msd-ac-row--02.e-con,
  .msd-activites .elementor.elementor .msd-ac-row--03.e-con,
  .msd-activites .elementor.elementor .msd-ac-row--04.e-con { grid-template-columns: 1fr; }
  .msd-activites .elementor.elementor .msd-ac-row--02 .msd-ac-panel.e-con { grid-column: auto; }
  .msd-activites .elementor.elementor .msd-ac-media { min-height: 300px; }
  .msd-activites .elementor.elementor .msd-ac-row--02 .msd-ac-media { min-height: 220px; }
  /* photo au-dessus du texte sur mobile */
  .msd-activites .elementor.elementor .msd-ac-row--02 .msd-ac-panel.e-con,
  .msd-activites .elementor.elementor .msd-ac-row--04 .msd-ac-panel.e-con { order: 2; }
  .msd-activites .elementor.elementor .msd-ac-row--02 .msd-ac-media,
  .msd-activites .elementor.elementor .msd-ac-row--04 .msd-ac-media { order: 1; }
  .msd-activites .elementor.elementor .msd-ac-row--04 .msd-ac-note { order: 3; }
  .msd-activites .elementor.elementor .msd-ac-row .msd-ac-panel.e-con { padding: 32px var(--msd-ac-gutter) 36px; }
  .msd-activites .elementor.elementor .msd-ac-panel__head.e-con::before { width: 52px; height: 52px; }
  .msd-activites .elementor.elementor .msd-ac-note { padding: 14px var(--msd-ac-gutter); }

  .msd-activites .elementor.elementor .msd-ac-cards.e-con { grid-template-columns: 1fr; }

  .msd-activites .elementor.elementor .msd-ac-final__list.e-con { flex-direction: column; gap: 18px; }
  .msd-activites .elementor.elementor .msd-ac-final__item.e-con { flex-direction: row; text-align: left; gap: 16px; }
  .msd-activites .elementor.elementor .msd-ac-final__item .elementor-heading-title { margin: 0; }
  .msd-activites .elementor.elementor .msd-ac-final__item br { display: none; }
  .msd-activites .elementor.elementor .msd-ac-final__item.e-con::before { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .msd-activites .elementor.elementor .elementor-button { transition: none; }
}
