:root {
    --color-bg: #efe7d8;
    --color-bg-pattern: #e6dcc7;
    --color-ink: #24291f;
    --color-green: #0F6322;
    --color-green-dark: #123018;
    --color-gold: #d9a441;
    --color-card-active: #faf7f0;
    --color-muted: #6b6255;
    --radius-lg: 18px;
    --radius-md: 12px;
}

#imds .section.section__software {
    padding-block: 40px 25px;
    height: 462.83px;
}

#imds #logo-imds {
    transform: translate(7px, 12px);
    height: 150px;
    width: 200px;
}

  .vert-partiel-cercle {
    position: absolute;
    top: 0;
    left: 0;
  }
#imds .section__subtitle_software {
    text-align: center;
    letter-spacing: 0%;
    font-size: 36.8px;
    max-width: 870px;
    font-weight: 300;
    line-height: 53.36px;
    transform: translateY(-15px);
}

#imds .tiret {
    margin-left: 5px;
    transform: translate(-2px, -5px);
    height: 0.7px;
    width: 25px;
    box-shadow: 0 0 0 0.1px #2e2e2d;
}

#imds .section__subtitle_software .texte-a-la-ligne {
    letter-spacing: 0.2px;
}

#imds .section__subtitle_software .texte-vert {
    letter-spacing: -0.57px;
}

#imds .orange-partiel-cercle {
    width: 220px;
    height: 53px;
  position: absolute;
  bottom:0;
  right: 0;
}

#imds .section-mid {
    padding-block: 113px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #2e2e2d;
}

#imds .section-mid__header .eyebrow {
    font-family: "Outfit";
    font-size: 16px;
    text-transform: capitalize;
    letter-spacing: -0.1px;
    margin-left: 16px;
    font-weight: 390;
    margin-bottom: 0;
}

#imds .section-mid .sun-decor {
    position: absolute;
    top: -30px;
    left: 92.7%;
    width: 180px;
    height: 180px;
    opacity: 0.3;
}

#imds .section-mid__header .headline {
    margin-left: 16px;
    margin-top: 0;
    font-weight: 700;
    font-size: 2.9rem;
    line-height: 1.1;
    letter-spacing: -0.4px;
}

#imds .section-steps {
    padding-block: 115px 85px;
    height: 705.58px;
}

#imds .section-steps .eyebrow {
    font-family: "Outfit";
    font-size: 16px;
    text-transform: unset;
    letter-spacing: -0.1px;
    margin-left: 16px;
    font-weight: 390;
    margin-bottom: -2px;
}

#imds .section-steps .headline {
    margin-left: 16px;
    font-weight: 400;
    font-size: 48px;
    line-height: 1.15;
    letter-spacing: 0.2px;
}

#imds .section-steps h3 {
    letter-spacing: 0.3px;
    font-size: 17px;
    font-family: "Fraunces";
    font-weight: 500;
    transform: translate(2px, -4px);
}

#imds .section-steps p {
    letter-spacing: 0%;
    line-height: 20.99px;
    font-weight: 300;
    font-family: "Outfit";
    font-size: 13.1px;
    transform: translateY(-5px);
}

#imds .section-steps .steps {
    gap: 23px;
}

#imds .section-steps .step {
    transform: translate(15px);
}

#imds .stats {
    margin-block: 25px 40px;
    font-weight: 500;
    max-width: 1095px;
}

#imds .stats .caption {
    font-size: 13px;
    margin-bottom: 0;
    font-weight: 380;
    transform: translateY(-11px);
}


#imds .stat {
    padding: 0;
    transform: translate(7px);
}

#imds .stat .suffix {
    font-size: 27px;
    letter-spacing: 0.5px;
    font-weight: 500;
}

#imds .section-appels .left p {
    transform: translateY(-7px);
}

#imds .section-appels {
    height: 636.88px;
}

#imds .section-green {
    padding-block: 100px 60px;
    height: 513.71px;
}

#imds .section-green .eyebrow {
    font-size: 0.75rem;
    letter-spacing: 1.7px;
    font-weight: 600;
    margin-bottom: 0;
}

#imds .section-green .container .headline {
    max-width: 46rem;
    font-size: 40px;
    font-weight: 400;
    line-height: 52px;
    margin-top: 17px;
    margin-inline: auto;
    letter-spacing: 0%;
}

#imds .section-green .container .lead {
    max-width: 675px;
    font-size: 15.2px;
    font-weight: 400;
    line-height: 28.12px;
    letter-spacing: 0.3px;
}

.cta.cta-orange.imds {
    margin-top: -2px;
    padding: 12px 24px;
    margin-left: 10px;
}

#imds .section-green .container.imds {
    max-width: 47.8rem;
    padding-block: 0;
    margin-block: 0;
}

#imds .hero__content.hero__software.ismp_hero {
    padding-top: 82px;
    margin-bottom: 1.7rem;
}

#imds .hero-software span {
    letter-spacing: 2.07px;
    font-size: 11.5px;
    font-weight: 700;
    font-style: bold;
    color: #F0B95A;
}

#imds .hero h1 {
    max-width: 700px;
    margin-bottom: 10px;
}

#imds .hero .subtitle {
    width: 30rem;
    max-width: 29rem;
    padding-right: 0;
    line-height: 29.68px;
    font-size: 17px;
    font-family: "Outfit";
    font-weight: 300;
    letter-spacing: 0%;
    margin-bottom: 2rem;
}

#imds .cta.cta-orange {
    font-size: 16.4px;
    margin: 0;
}

#imds .cta.cta-orange img {
    width: 15px;
    height: 15px;
}

#imds .blanc {
    font-weight: 600;
}

#imds .software-hero-image {
    height: 38.6rem;
    width: 37.5rem;
    position: absolute;
    top: -19.4rem;
    left: -2.5rem;
    z-index: 2;
}

#imds .icon-bas-gauche {
    position: absolute;
    top: 148px;
    left: 25px;
    background-color: transparent;
}

#imds .icon-bas-gauche img {
    width: 90px;
    height: 90px
}

#imds .img-software-hero .badge-message {
    top: -214.5px;
    right: -545px;
    position: absolute;
}

#imds .img-software-hero .badge-message p {
    padding: 8px;
    transform: translate(-2px);
}

#imds .software-hero-image.porte-entre-tiret {
    height: 30.7rem;
    width: 26rem;
    position: absolute;
    top: -14.8rem;
    left: 4.6rem;
}

.features {
    position: relative;
    overflow: hidden;
    padding: 115px 110px;
    background: url("../IMG/background-orange.png");
    height: 966.65px;
}

.features__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 72px;
}

.features__eyebrow {
    font-family: 'Outfit';
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0%;
    line-height: 100%;
    color: #1C1A15;
}

.features__title {
    font-family: 'Fraunces';
    font-weight: 600;
    font-size: 47.6px;
    line-height: 51.84px;
    letter-spacing: -0.72px;
    margin: 0;
    color: var(--color-ink);
}

.features__title-accent {
    display: block;
    font-style: italic;
    color: var(--color-green);
}

.features__content {
    display: grid;
    grid-template-columns: minmax(30rem, 35rem) 1fr;
    gap: 44px;
    max-width: 1180px;
    margin: 0 auto;
    align-items: start;
}

.feature-list {
    transform: translateY(-1.2rem);
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color .2s ease, box-shadow .2s ease, padding .2s ease;
}

.feature-item:focus-visible {
    outline: 0.2px solid var(--color-green);
    outline-offset: 0.2px;
}

.feature-item__icon-wrap {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 77, 44, 0.08);
}

.feature-item__icon {
    width: 20px;
    height: 20px;
    display: block;
}

.feature-item__title {
    font-family: 'Fraunces';
    font-weight: 600;
    font-size: 17.6px;
    line-height: 21.12px;
    letter-spacing: 0%;
    margin: 0;
    color: #1C1A15;
}

.feature-item__description {
    font-family: 'Outfit';
    font-size: 13.6px;
    line-height: 21.76px;
    letter-spacing: 0%;
    font-weight: 400;
    color: #5C574C;
    margin: 8px 0 0;
    max-width: 420px;
    display: none;
}

.feature-item:hover {
    background: var(--color-card-active);
}

.feature-item--active {
    background: var(--color-card-active);
    padding-top: 18px;
    box-shadow: 0 0 0 0.7px #0F632233, 0 0 20px 5px #1C1A150F;
    padding-bottom: 18px;
}

.feature-item--active .feature-item__icon-wrap,
.feature-item:focus-visible .feature-item__icon-wrap {
    background: var(--color-green);
}

.feature-item--active .feature-item__icon {
    filter: brightness(0) invert(1);
}

.feature-item--active .feature-item__title,
.feature-item:hover .feature-item__title,
.feature-item:focus-visible .feature-item__title {
    margin-bottom: 2px;
}

.feature-item--active .feature-item__description,
.feature-item:focus-visible .feature-item__description {
    display: block;
}

.features__preview {
    position: sticky;
    top: 48px;
}

.preview-panel {
    background: #fff;
    border-radius: 24px;
    padding: 6px;
    box-shadow: 0 35px 50px rgba(61, 91, 46, 0.35);
    width: 37.5rem;
}

.preview-panel__screen {
    background: #062E12;
    border-radius: 18px;
    height: 31rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    text-align: center;
}

.preview-panel__screen {
    transition: opacity .18s ease;
}

.preview-panel__screen--fade {
    opacity: 0;
}

.preview-panel__badge {
    width: 83px;
    height: 83px;
    border-radius: 20px;
    background: rgba(217, 164, 65, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-panel__badge-icon {
    width: 40px;
    height: 40px;
}

.preview-panel__label {
    font-family: 'Outfit';
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--color-gold);
}

.preview-panel__example {
    font-family: 'Fraunces';
    font-style: italic;
    font-weight: 400;
    font-size: 1.5rem;
    color: #f4ede0;
    margin: 0;
    line-height: 1.4;
    padding-inline: 15px;
}

.features__sun-decor {
    position: absolute;
    width: 250px;
    height: 250px;
    opacity: 1;
    top: -70px;
    right: -70px;
    animation: infinite-rotate 8s linear infinite;
    opacity: 1;
    pointer-events: none;
}

#imds .porte-incomplete {
    position: absolute;
    height: 40rem;
    width: 35rem;
    transform: translate(75%, 13.5rem);
    opacity: 1;
}

#imds .porte-incomplete.grande-porte {
    height: 50rem;
    width: 40rem;
    transform: translate(64.6%, 14.5rem);
    opacity: 0.5;
}

#imds .hero.hero__software-container {
    padding-block: 25px 10px;
}

#imds .software-dev-section .section__subtitle {
    max-width: 56rem;
    line-height: 1.4;
}

#imds .section.software-dev-section {
    padding-block: 45px 110px;
    height: 550.69px;
}

#imds .software-dev-section .cercle {
    top: 65%;
}

#imds .software-dev-section .grand-cercle {
    top: 60%;
}

/* ============================================================
   FONIVA / IMDS â€” RESPONSIVE (corrigÃ©)
   Paliers : 1280 / 1024 / 900 / 768 / 600 / 480
   Desktop > 1280px : inchangÃ©.
   ============================================================ */

/* ---------- â‰¤1280px : fluide ---------- */
@media (max-width: 1280px) {

  /* clip (et non hidden) : ne casse pas position: sticky */
  #imds {
    overflow-x: clip;
  }

  /* les images du hero gardent leurs dimensions desktop */
  #imds img:not(.software-hero-image):not(.porte-incomplete) {
    max-width: 150%;
  }

  /* Hero */
  #imds .hero__content.hero__software {
    margin-left: 0;
    flex: 1 1 0;
    min-width: 0;
  }

  #imds .hero h1 {
    max-width: 100%;
    font-size: clamp(42px, 5.5vw, 72px);
    line-height: 1.05;
  }

  #imds .hero .subtitle {
    width: 100% !important;
    max-width: 560px !important;
  }

  #imds .img-software-hero {
    flex: 0 1 480px;
    min-width: 0;
  }

  /* Citation */
  #imds .section.section__software {
    height: auto;
    padding-inline: 24px;
  }

  #imds .section__subtitle_software {
    max-width: 870px;
    font-size: clamp(24px, 3.2vw, 36.8px);
    line-height: 1.45;
    transform: none;
  }

  /* FonctionnalitÃ©s */
  .features {
    height: auto;
    padding: 90px clamp(24px, 6vw, 110px);
  }

  .features__title {
    font-size: clamp(32px, 4vw, 47.6px);
    line-height: 1.12;
  }

  .features__content {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    max-width: 1180px;
  }

  .preview-panel {
    width: 100%;
  }

  .preview-panel__screen {
    height: auto;
    min-height: 26rem;
    padding-block: 48px;
  }

  /* Ã‰tapes */
  #imds .section-steps {
    height: auto;
  }

  /* Appels */
  #imds .section-appels {
    height: auto;
  }

  #imds .section-appels .headline {
    margin: 0 0 23px 0;
  }

  /* Partenaire vert : height / padding-top sont aussi posÃ©s en inline */
  #imds .section-green {
    height: auto !important;
    padding: 80px clamp(24px, 6vw, 100px) 70px !important;
  }

  #imds .section-green .container .headline {
    max-width: 100%;
    font-size: clamp(28px, 3.6vw, 40px);
    line-height: 1.25;
  }

  #imds .section-green .container .lead {
    max-width: 675px;
  }

  /* CTA final */
  #imds .section.software-dev-section {
    height: auto;
  }
}

/* ---------- â‰¤1024px : tablette â€” hero empilÃ© ---------- */
@media (max-width: 1024px) {

  /* Hero */
  #imds .hero.hero__software-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 60px 24px 56px;
  }

  /* flex: 1 1 0 / 0 1 480px deviennent des HAUTEURS en colonne â†’ on les neutralise */
  #imds .hero__content.hero__software {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    width: 100%;
    max-width: 640px;
    text-align: center;
    margin-block: 20px 0 !important; /* inline: 65px 83px */
  }

  #imds .hero h1 {
    font-size: clamp(36px, 5vw, 54px);
  }

  #imds .hero .Btn {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Bloc image : sorti du positionnement absolu dÃ¨s la tablette */
  #imds .img-software-hero {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    max-width: 440px;
    height: auto;
    min-height: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #imds .software-hero-image:not(.porte-entre-tiret) {
    position: static;
    width: min(360px, 100%);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  #imds .software-hero-image.porte-entre-tiret,
  #imds .porte-incomplete{
    display: none;
  }

  #imds .img-software-hero .badge-message {
    position: static;
    margin-top: 12px;
  }

  /* Titres de sections */
  #imds .section-steps .headline {
    font-size: clamp(32px, 4.5vw, 48px);
  }

  #imds .section-appels .headline {
    font-size: clamp(30px, 4vw, 2.85rem);
  }

  /* Ã‰tapes + stats */
  #imds .section-steps {
    padding: 80px 24px 60px !important; /* inline padding-top: 104px */
  }

  #imds .section-steps .steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }

  #imds .section-steps .step {
    transform: none;
  }

  #imds .section-steps .step p {
    max-width: 100% !important; /* inline sur l'Ã©tape 4 */
  }

  #imds .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-inline: 24px;
  }

  #imds .stat {
    transform: none;
  }

  #imds .stat .number {
    font-size: clamp(42px, 5vw, 60px);
  }

  /* Appels : le conteneur doit s'empiler */
  #imds .section-appels {
    padding: 70px 24px;
  }

  #imds .section-appels .container.imds {
    display: flex;
    flex-direction: column;
    gap: 36px;
  }

  #imds .section-appels .left,
  #imds .section-appels .cards {
    width: 100%;
    max-width: 100%;
    transform: none;
  }

  #imds .section-appels .cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  #imds .section-appels .card {
    margin-left: 0;
  }

  #imds .section-appels .ring {
    display: none;
  }

  /* Soleil rouge : sorti du positionnement absolu, placÃ© au-dessus du titre */
  #imds .section-appels .left .sun-icon {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    display: block;
    width: 40px;
    height: auto;
    margin: 0 0 14px;
  }

  /* CTA final */
  #imds .software-dev-section .cercle {
    display: none;
  }

  #imds .software-dev-section .section__subtitle {
    max-width: 100%;
  }
}

/* ---------- â‰¤900px : fonctionnalitÃ©s en 1 colonne ----------
   PlacÃ© APRÃˆS le bloc 1280px, sinon celui-ci rÃ©impose 2 colonnes. */
@media (max-width: 900px) {
  .features {
    padding: 64px 24px 80px;
  }

  .features__header {
    margin-bottom: 40px;
  }

  .features__content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-list {
    transform: none; /* le dÃ©calage -1.2rem n'a de sens qu'en 2 colonnes */
  }

  .features__sun-decor {
    width: 120px;
    height: 120px;
  }

  /* Le panneau vert est trop loin de la liste sur mobile :
     son contenu s'affiche directement sous l'item actif (data-example). */
  .features__preview {
    display: none;
  }

  .feature-item {
    flex-wrap: wrap;
  }

  .feature-item__body {
    flex: 1 1 0;
    min-width: 0;
  }

  .feature-item--active::after {
    content: attr(data-example);
    flex: 1 0 100%;
    box-sizing: border-box;
    padding: 22px 18px;
    border-radius: 14px;
    background: #062E12;
    color: #f4ede0;
    font-family: 'Fraunces';
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.4;
    text-align: center;
  }
}

/* ---------- â‰¤768px : mobile ---------- */
@media (max-width: 768px) {
  .features__sun-decor {
    display: none;
  }
  /* Hero */
  #imds .hero.hero__software-container {
    padding: 40px 20px 44px;
    gap: 28px;
  }

  #imds .hero__content.hero__software.ismp_hero {
    padding: 0;
    margin: 0 !important;
    width: 100%;
    max-width: 100%;
  }

  #imds .hero__content.hero__software.ismp_hero h1 {
    font-size: clamp(30px, 9vw, 40px);
    max-width: 100%;
    overflow-wrap: break-word;
  }

  #imds .hero .subtitle {
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 0;
  }

  #imds .hero .subtitle br {
    display: none;
  }

  #imds .hero .Btn {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
  }

  #imds .hero .Btn .cta {
    width: auto;
    max-width: 100%;
    padding: 12px 20px;
    font-size: 13px;
    margin: 0;
  }

  #imds .hero .cta-souligne {
    position: relative;
    padding-bottom: 12px;
    font-size: 13px;
  }

  #imds .hero .cta-souligne::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #F0B95A;
  }

  /* Citation */
  #imds .section.section__software {
    padding: 48px 20px 32px;
  }

  #imds #logo-imds{
    height: 135px;
    width: auto;
    max-width: 100%;
    transform: none;
  }
  #imds #logo-foniva {
    height: 50px;
    width: auto;
    max-width: 100%;
    transform: none;
  }

  #imds .vert-partiel-cercle,
  #imds .orange-partiel-cercle {
    width: 110px !important; /* inline 235px / 275px */
    height: auto;
  }

  /* FonctionnalitÃ©s */
  .feature-item {
    padding: 14px;
  }

  .feature-item__description {
    max-width: 100%;
  }

  /* Ã‰tapes */
  #imds .section-steps {
    padding: 64px 20px !important;
  }

  #imds .section-steps .eyebrow,
  #imds .section-steps .headline,
  #imds .section-steps h3,
  #imds .section-steps p {
    margin-left: 0;
    transform: none;
  }

  #imds .section-steps .eyebrow,
  #imds .section-steps .headline {
    text-align: center;
  }

  #imds .section-steps .headline {
    font-size: clamp(28px, 8vw, 38px);
  }

  #imds .stats {
    margin-block: 8px 16px;
  }

  /* pas de trait horizontal : seuls les sÃ©parateurs verticaux restent */
  #imds .stats .stat {
    border-top: 0 !important;
  }

  /* Appels */
  #imds .section-appels {
    padding: 64px 20px;
  }

  #imds .section-appels .container.imds {
    gap: 28px;
    text-align: center;
  }

  #imds .section-appels .headline {
    text-align: center;
    font-size: clamp(28px, 8vw, 38px);
  }

  #imds .section-appels .left p {
    max-width: 100%;
    text-align: center;
  }

  #imds .section-appels .left .sun-icon {
    margin: 0 auto 12px;
    animation: infinite-rotate 8s linear infinite;
  }

  #imds .section-appels .cards {
    grid-template-columns: 1fr;
  }

  #imds .pill {
    white-space: normal;
    text-align: left;
  }

  /* Partenaire vert */
  #imds .section-green {
    padding: 64px 20px !important;
  }

  #imds .section-green .lead br {
    display: none;
  }

  .cta.cta-orange.imds {
    margin-left: 0;
  }

  /* CTA final */
  #imds .section.software-dev-section {
    padding: 48px 20px 80px;
  }

  #imds #foniva-titre-avant-footer {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.2;
  }

  #imds .software-dev-section .Btn {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}

/* ---------- â‰¤600px : Ã©tapes et stats en 1 colonne ---------- */
@media (max-width: 600px) {
  #imds .section-steps .steps {
    grid-template-columns: 1fr;
  }

  /* Stats : on garde les 3 colonnes (et leurs sÃ©parateurs), en plus compact */
  #imds .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding-inline: 8px;
  }

  /* texte centrÃ©, avec de l'air de chaque cÃ´tÃ© pour ne pas toucher le sÃ©parateur */
  #imds .stats .stat {
    box-sizing: border-box;
    padding-inline: 12px;
    text-align: center;
  }

  #imds .stats .caption {
    text-align: center;
    overflow-wrap: break-word;
  }

  #imds .stat .number {
    font-size: clamp(30px, 8.5vw, 40px);
  }

  #imds .stat .suffix {
    font-size: 17px;
    letter-spacing: 0.2px;
  }

  #imds .stats .caption {
    font-size: 11.5px;
    line-height: 1.4;
  }
}

/* ---------- â‰¤480px : petits tÃ©lÃ©phones ---------- */
@media (max-width: 480px) {
  #imds .hero__content.hero__software.ismp_hero h1 {
    font-size: clamp(28px, 10vw, 34px);
  }

  #imds .section-steps .headline,
  #imds .section-appels .headline,
  #imds .section-green .container .headline {
    font-size: 27px;
  }

  .features__title {
    font-size: 29px;
  }

  .preview-panel {
    border-radius: 18px;
  }
}

/* Mouvement rÃ©duit */
@media (prefers-reduced-motion: reduce) {
  #imds * {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 1280px) {
  #imds .hero__content.hero__software {
    margin-left: 0;
    flex: 1 1 0;
    min-width: 0;
  }

  #imds .hero h1 {
    max-width: 100%;
    font-size: clamp(42px, 5.5vw, 72px);
    line-height: 1.05;
  }

  #imds .hero .subtitle {
    width: 100% !important;
    max-width: 560px !important;
  }

  #imds .img-software-hero {
    flex: 0 1 480px;
    min-width: 0;
  }

  #imds .hero.hero__software-container {
    padding: 5px;
}
}

@media (max-width: 1024px) {
  #imds .hero.hero__software-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    align-items: center;
    text-align: center;
    gap: 28px;
    padding: 60px 24px 56px;
  }

  #imds .hero__content.hero__software {
    display: contents;
  }

  #imds .hero-software.section-expertise__badge {
    order: 1;
    justify-self: center;
    align-self: center;
    width: auto;
    grid-column: auto;
    grid-row: auto;
  }

  #imds .hero h1 {
    order: 2;
    grid-column: auto;
    grid-row: auto;
    max-width: 100%;
    font-size: clamp(36px, 5vw, 54px);
    overflow-wrap: break-word;
  }

  #imds .img-software-hero {
    order: 3;
    grid-column: auto;
    grid-row: auto;
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 420px;
    margin-inline: auto;
    justify-self: center;
    align-self: center;
    display: block;
  }

  #imds .hero .subtitle {
    order: 4;
    grid-column: auto;
    grid-row: auto;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0;
  }

  #imds .hero .subtitle br {
    display: none;
  }

  #imds .hero .Btn {
    order: 5;
    grid-column: auto;
    grid-row: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
  }

  #imds .hero .Btn .cta {
    width: auto;
    max-width: 100%;
    padding: 12px 20px;
    font-size: 13px;
    margin: 0;
  }

  #imds .hero .cta-souligne {
    position: relative;
    padding-bottom: 12px;
    font-size: 13px;
  }

  #imds .hero .cta-souligne::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #F0B95A;
  }

  #imds .software-hero-image:not(.porte-entre-tiret) {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -47%);
    width: 92%;
    height: 95%;
    z-index: 1;
    display: block;
    object-fit: contain;
  }

  #imds .software-hero-image.porte-entre-tiret {
    display: block;
    position: absolute;
    top: 6%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 88%;
    z-index: 0;
    object-fit: contain;
    pointer-events: none;
  }

  #imds .img-software-hero .badge-message {
    position: absolute;
    top: 15%;
    right: 0;
    left: auto;
    margin-top: 0;
    z-index: 3;
  }

  #imds .icon-bas-gauche {
    display: block;
    position: absolute;
    left: 0;
    bottom: 6%;
    top: auto;
    background-color: transparent;
    z-index: 2;
  }

  #imds .icon-bas-gauche img {
    width: 70px;
    height: 80px;
  }

  #imds .porte-incomplete,
  #imds .porte-incomplete.grande-porte {
    display: none;
  }
}

@media (max-width: 768px) {
  #imds .hero.hero__software-container {
    padding: 40px 20px 44px;
    gap: 28px;
  }

  #imds .hero h1 {
    font-size: clamp(30px, 9vw, 40px);
  }

  #imds .hero .subtitle {
    font-size: 14.5px;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  #imds .hero h1 {
    font-size: clamp(28px, 10vw, 34px);
  }

  #imds .img-software-hero {
    height: 360px;
  }

  #imds .icon-bas-gauche img {
    width: 70px;
    height: 70px;
  }
}