:root {
  --blue: #5CA0F2;
  --blue-strong: #5CA0F2;
  --white: #fff;
  --black: #07111a;
  --panel: rgba(9, 15, 22, 0.84);
  --safe-x: max(24px, env(safe-area-inset-left));
  --safe-right: max(24px, env(safe-area-inset-right));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #090909;
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background: #3b1c0d;
}

.hero__background {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.32) 35%, rgba(0, 0, 0, 0.04) 67%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.48), transparent 78%);
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding:
    max(24px, env(safe-area-inset-top))
    var(--safe-right)
    12px
    var(--safe-x);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__logo {
  width: clamp(120px, 14vw, 160px);
  height: auto;
  display:block;
}

.brand__name {
  font-size: clamp(1.55rem, 5.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.menu-button {
  display: grid;
  gap: 6px;
  width: 48px;
  height: 48px;
  place-content: center;
  border: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 29px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: var(--safe-right);
  display: grid;
  min-width: 210px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: rgba(5, 8, 12, 0.94);
  backdrop-filter: blur(14px);
}

.mobile-menu a {
  padding: 13px 14px;
  border-radius: 10px;
  text-decoration: none;
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  background: rgba(86, 170, 240, 0.16);
}

.hero__content {
  width: min(100%, 760px);
  padding:
    clamp(44px, 8vh, 92px)
    var(--safe-right)
    370px
    var(--safe-x);
}

.hero__title {
  margin: 0;
  max-width: 720px;
  font-size: clamp(2.65rem, 10vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero__title span,
.hero__title strong {
  display: block;
}

.hero__title strong {
  margin-top: 0.17em;
  color: var(--blue);
}

.hero__subjects {
  max-width: 620px;
  margin: 28px 0 0;
  font-size: clamp(1.05rem, 3.9vw, 1.62rem);
  line-height: 1.52;
}

.hero__subjects span {
  color: var(--blue);
}

.demo-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  width: fit-content;
  max-width: 100%;
  margin-top: 34px;
  color: var(--blue);
  text-decoration: none;
}

.demo-link__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 0.9rem;
}

.demo-link strong,
.demo-link small {
  display: block;
}

.demo-link strong {
  font-size: clamp(1rem, 4vw, 1.32rem);
}

.demo-link small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.demo-link__arrow {
  font-size: 1.75rem;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(100%, 590px);
  margin-top: 28px;
  padding: 19px 22px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--blue), var(--blue-strong));
  box-shadow: 0 15px 36px rgba(28, 110, 184, 0.3);
  color: var(--white);
  font-size: clamp(1.05rem, 4.5vw, 1.45rem);
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button img {
  width: 34px;
  height: 34px;
  filter: brightness(0) invert(1);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 19px 42px rgba(28, 110, 184, 0.42);
}

.demo-link:focus-visible,
.primary-button:focus-visible,
.menu-button:focus-visible,
.brand:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.benefits {
  position: absolute;
  right: var(--safe-right);
  bottom: max(18px, env(safe-area-inset-bottom));
  left: var(--safe-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 20px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: var(--panel);
  backdrop-filter: blur(16px);
}

.benefit {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 0 10px;
  text-align: center;
}

.benefit + .benefit {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.benefit img,
.benefit__symbol {
  width: 44px;
  height: 44px;
}

.benefit img {
  filter: invert(61%) sepia(61%) saturate(1451%) hue-rotate(179deg);
}

.benefit__symbol {
  display: grid;
  place-items: center;
  border: 3px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-size: 1.9rem;
  line-height: 1;
}

.benefit strong {
  font-size: clamp(0.78rem, 3.2vw, 1.05rem);
  line-height: 1.25;
}

.benefit span:last-child {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.7rem, 2.7vw, 0.92rem);
}

@media (min-width: 768px) {
  .hero {
    min-height: 900px;
  }

  .hero__background {
    object-position: center 42%;
  }

  .hero__content {
    padding-bottom: 280px;
  }

  .benefits {
    left: 50%;
    width: min(720px, calc(100% - 64px));
    transform: translateX(-50%);
  }
}

@media (min-width: 1100px) {
  .hero {
    min-height: 760px;
  }

  .hero__background {
    object-position: center 50%;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.34) 44%, rgba(0, 0, 0, 0) 72%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 50%);
  }

  .site-header {
    padding-inline: clamp(36px, 5vw, 78px);
  }

  .hero__content {
    padding:
      70px
      clamp(36px, 5vw, 78px)
      210px;
  }

  .benefits {
    right: clamp(36px, 5vw, 78px);
    bottom: 34px;
    left: auto;
    width: min(680px, 52vw);
    transform: none;
  }
}



/* Smartphone : toute la composition reste dans la hauteur de l'écran */
@media (max-width: 600px) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  body {
    padding: 0;
  }

  .hero {
    width: 100%;
    height: 100svh;
    min-height: 0;
    overflow: hidden;
  }

  .hero__background {
    height: 100%;
    object-position: center 46%;
  }

  .hero__shade {
    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.38) 32%,
        rgba(0, 0, 0, 0.05) 66%
      ),
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.42),
        transparent 78%
      );
  }

  .site-header {
    padding:
      max(14px, env(safe-area-inset-top))
      max(20px, env(safe-area-inset-right))
      6px
      max(20px, env(safe-area-inset-left));
  }

  .brand {
    gap: 9px;
  }

  .brand__logo {
    width: 34px;
    height: 34px;
  }

  .brand__name {
    font-size: 1.38rem;
  }

  .menu-button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .menu-button span {
    width: 24px;
    height: 2px;
  }

  .hero__content {
    position: absolute;
    z-index: 2;
    top: 84px;
    right: max(24px, env(safe-area-inset-right));
    left: max(24px, env(safe-area-inset-left));
    width: auto;
    padding: 0;
  }

  .hero__title {
    max-width: 330px;
    font-size: clamp(2rem, 10vw, 2.75rem);
    line-height: 0.98;
  }

  .hero__subjects {
    max-width: 330px;
    margin-top: 17px;
    font-size: 0.92rem;
    line-height: 1.42;
  }

  .demo-link {
    gap: 10px;
    margin-top: 19px;
  }

  .demo-link__icon {
    width: 34px;
    height: 34px;
    font-size: 0.72rem;
  }

  .demo-link strong {
    font-size: 0.96rem;
  }

  .demo-link small {
    margin-top: 2px;
    font-size: 0.73rem;
  }

  .demo-link__arrow {
    font-size: 1.3rem;
  }

  .primary-button {
    width: 100%;
    margin-top: 17px;
    padding: 13px 15px;
    border-radius: 13px;
    font-size: 0.98rem;
  }

  .primary-button img {
    width: 27px;
    height: 27px;
  }

  .benefits {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(14px, env(safe-area-inset-left));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: auto;
    padding: 11px 3px;
    border-radius: 17px;
    transform: none;
  }

  .benefit {
    gap: 4px;
    padding: 0 5px;
  }

  .benefit img,
  .benefit__symbol {
    width: 29px;
    height: 29px;
  }

  .benefit__symbol {
    border-width: 2px;
    font-size: 1.25rem;
  }

  .benefit strong {
    font-size: 0.67rem;
    line-height: 1.16;
  }

  .benefit span:last-child {
    font-size: 0.58rem;
    line-height: 1.18;
  }
}

/* Écrans de téléphone courts : réduction supplémentaire sans défilement */
@media (max-width: 600px) and (max-height: 720px) {
  .hero__content {
    top: 70px;
  }

  .hero__title {
    font-size: clamp(1.78rem, 8.8vw, 2.25rem);
  }

  .hero__subjects {
    margin-top: 12px;
    font-size: 0.8rem;
  }

  .demo-link {
    margin-top: 13px;
  }

  .demo-link small {
    display: none;
  }

  .primary-button {
    margin-top: 12px;
    padding-block: 11px;
    font-size: 0.9rem;
  }

  .benefits {
    padding-block: 8px;
  }

  .benefit img,
  .benefit__symbol {
    width: 24px;
    height: 24px;
  }

  .benefit strong {
    font-size: 0.61rem;
  }

  .benefit span:last-child {
    font-size: 0.53rem;
  }
}

/* V3: menu supprimé */
.site-header{
  justify-content:flex-start;
}


/* Logo plus visible sur smartphone */
@media (max-width:600px){
  .brand__logo{
    width:110px !important;
    height:auto !important;
  }
}


.brand{
  align-items:center;
}


/* V8 — correction d'affichage du logo sur smartphone */
.site-header {
  z-index: 20;
  min-height: 72px;
  overflow: visible;
}

.brand {
  position: relative;
  z-index: 21;
  display: inline-flex;
  flex: 0 0 auto;
  visibility: visible;
  opacity: 1;
}

.brand__logo {
  display: block;
  width: clamp(130px, 14vw, 160px);
  max-width: 45vw;
  height: auto;
  min-height: 1px;
  object-fit: contain;
  visibility: visible;
  opacity: 1;
}

@media (max-width: 600px) {
  .site-header {
    min-height: 70px;
    padding-top: max(14px, env(safe-area-inset-top));
    padding-right: max(18px, env(safe-area-inset-right));
    padding-left: max(18px, env(safe-area-inset-left));
  }

  .brand__logo {
    width: 132px !important;
    max-width: 52vw;
    height: auto !important;
  }

  /* Laisse une zone dédiée au logo pour éviter qu'il soit recouvert par le titre. */
  .hero__content {
    top: 96px;
  }
}

@media (max-width: 600px) and (max-height: 720px) {
  .brand__logo {
    width: 116px !important;
  }

  .hero__content {
    top: 82px;
  }
}


/* V11 — logo original Agenaco, avec le dessin intégré au premier « a » */
.brand {
  position: relative;
  z-index: 21;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  overflow: visible;
}

.brand__logo {
  display: block;
  width: 145px !important;
  max-width: 42vw;
  height: auto !important;
  overflow: visible;
  visibility: visible;
  opacity: 1;
}

/* Force la police originale à l'intérieur du SVG intégré. */
.brand__logo .cls-1 {
  fill: #5CA0F2;
  font-family: "Mitr", sans-serif !important;
  font-weight: 500;
}

@media (max-width: 600px) {
  .site-header {
    min-height: 62px;
    padding-top: max(12px, env(safe-area-inset-top));
  }

  .brand__logo {
    width: 112px !important;
    max-width: 44vw;
  }

  .hero__content {
    top: 84px;
  }
}

@media (max-width: 380px) {
  .brand__logo {
    width: 102px !important;
  }

  .hero__content {
    top: 78px;
  }
}


/* ===== V12 : correction du triangle "Voir une démonstration" ===== */
.demo-link__icon{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    width:42px;
    height:42px;

    border:2px solid #5CA0F2;
    border-radius:50%;

    line-height:1;
    font-size:1.18rem;
    font-weight:700;

    padding:0 !important;
    text-indent:2px; /* compensation optique */
    flex-shrink:0;
}

@media (max-width:600px){
    .demo-link__icon{
        width:40px;
        height:40px;
        font-size:1.30rem;
        text-indent:2px;
    }
}


/* V13 SVG Play icon */
.demo-link__icon{
 display:flex!important;
 align-items:center!important;
 justify-content:center!important;
}
.demo-link__icon svg{
 display:block;
 width:18px;
 height:18px;
 margin-left:2px; /* optical centering */
}
@media (max-width:600px){
 .demo-link__icon svg{
   width:20px;
   height:20px;
 }
}


/* ===== V14 : cercle Play plus petit, proportions proches de la maquette ===== */
.demo-link__icon {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px;
  min-height: 34px;
  padding: 0 !important;
  border-width: 2px;
  border-radius: 50%;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 34px;
}

.demo-link__icon svg {
  display: block;
  width: 14px !important;
  height: 14px !important;
  margin: 0;
  transform: translateX(1px);
}

@media (max-width: 600px) {
  .demo-link__icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px;
    min-height: 34px;
    flex-basis: 34px;
  }

  .demo-link__icon svg {
    width: 14px !important;
    height: 14px !important;
  }
}


/* ===== V15 : cercle encore plus petit, triangle plus grand ===== */
.demo-link__icon {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  flex: 0 0 30px !important;
  padding: 0 !important;
}

.demo-link__icon svg {
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
  transform: translateX(1px);
}

@media (max-width: 600px) {
  .demo-link__icon {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    flex-basis: 30px !important;
  }

  .demo-link__icon svg {
    width: 17px !important;
    height: 17px !important;
  }
}


/* ===== V16 : cercle encore plus petit, triangle encore plus grand ===== */
.demo-link__icon {
  width: 27px !important;
  height: 27px !important;
  min-width: 27px !important;
  min-height: 27px !important;
  flex: 0 0 27px !important;
  padding: 0 !important;
}

.demo-link__icon svg {
  width: 19px !important;
  height: 19px !important;
  margin: 0 !important;
  transform: translateX(1px);
}

@media (max-width: 600px) {
  .demo-link__icon {
    width: 27px !important;
    height: 27px !important;
    min-width: 27px !important;
    min-height: 27px !important;
    flex-basis: 27px !important;
  }

  .demo-link__icon svg {
    width: 19px !important;
    height: 19px !important;
  }
}


/* ===== V17 : cercle plus petit, triangle plus grand, contour plus fin ===== */
.demo-link__icon {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  flex: 0 0 24px !important;
  padding: 0 !important;
  border-width: 1.25px !important;
}

.demo-link__icon svg {
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  transform: translateX(1px);
}

@media (max-width: 600px) {
  .demo-link__icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    flex-basis: 24px !important;
    border-width: 1.25px !important;
  }

  .demo-link__icon svg {
    width: 20px !important;
    height: 20px !important;
  }
}


/* ===== V18 : léger décalage optique du triangle vers la gauche ===== */
.demo-link__icon svg {
  transform: translateX(-0.5px) !important;
}

@media (max-width: 600px) {
  .demo-link__icon svg {
    transform: translateX(-0.5px) !important;
  }
}


/* ===== V19 : triangle replacé de 0,25 px vers la droite ===== */
.demo-link__icon svg {
  transform: translateX(-0.25px) !important;
}

@media (max-width: 600px) {
  .demo-link__icon svg {
    transform: translateX(-0.25px) !important;
  }
}


/* ===== V20 : triangle déplacé de 0,1 px vers la droite ===== */
.demo-link__icon svg {
  transform: translateX(-0.15px) !important;
}

@media (max-width: 600px) {
  .demo-link__icon svg {
    transform: translateX(-0.15px) !important;
  }
}


/* ===== V21 : centrage exact des deux cercles de « Organisation optimale » =====
   Le glyphe de police ◷ est remplacé par un SVG afin que les deux cercles
   partagent rigoureusement le même centre sur tous les navigateurs. */
.benefit__symbol--organisation {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

.benefit__symbol--organisation svg {
  display: block;
  width: 72%;
  height: 72%;
  overflow: visible;
}

.benefit__symbol--organisation circle,
.benefit__symbol--organisation path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}


/* ===== V24 : couleur réelle du mini-calendrier en #5CA0F2 =====
   Dans la V21/V23, le filtre CSS sur .benefit img modifiait visuellement la teinte.
   On neutralise le filtre pour l'icône "Planification automatique". */
.benefit:first-child img {
  filter: none !important;
}


/* ===== V25 : nouvelle icône pour « Organisation optimale » =====
   Icône check-list plus explicite, en conservant la couleur et l'échelle existantes. */
.benefit__symbol--organisation svg {
  width: 76% !important;
  height: 76% !important;
}

.benefit__symbol--organisation rect,
.benefit__symbol--organisation path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}


/* ===== V26 : nouvelle icône dossier pour « Organisation optimale » ===== */
.benefit__symbol--organisation svg {
  width: 78% !important;
  height: 78% !important;
}

.benefit__symbol--organisation path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}


/* ===== V27 : icône « grille organisée » pour Organisation optimale ===== */
.benefit__symbol--organisation svg {
  width: 78% !important;
  height: 78% !important;
}

.benefit__symbol--organisation rect,
.benefit__symbol--organisation path,
.benefit__symbol--organisation circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.benefit__symbol--organisation circle {
  fill: currentColor;
  stroke: none;
}


/* ===== V28 : réduction légère des icônes "Organisation optimale" et "Restez concentré" ===== */
.benefits .benefit:nth-child(2) .benefit__symbol svg,
.benefits .benefit:nth-child(3) .benefit__symbol {
  transform: scale(0.9);
  transform-origin: center;
}

@media (max-width: 600px) {
  .benefits .benefit:nth-child(2) .benefit__symbol svg,
  .benefits .benefit:nth-child(3) .benefit__symbol {
    transform: scale(0.9);
    transform-origin: center;
  }
}


/* ===== V29 : réduction supplémentaire légère des icônes
   "Organisation optimale" et "Restez concentré" ===== */
.benefits .benefit:nth-child(2) .benefit__symbol svg,
.benefits .benefit:nth-child(3) .benefit__symbol {
  transform: scale(0.84);
  transform-origin: center;
}

@media (max-width: 600px) {
  .benefits .benefit:nth-child(2) .benefit__symbol svg,
  .benefits .benefit:nth-child(3) .benefit__symbol {
    transform: scale(0.84);
    transform-origin: center;
  }
}


/* ===== V30 : suppression de la flèche bleue du lien démonstration ===== */
.demo-link {
  grid-template-columns: auto 1fr !important;
}

.demo-link__arrow {
  display: none !important;
}


/* ===== V31 : remonter le texte et le CTA sur smartphone, sans toucher à l'image =====
   Objectif : placer le bloc texte + bouton au-dessus du visage de l'étudiant.
   On agit uniquement sur la typographie, les espacements et la position du bloc. */
@media (max-width: 600px) {
  .hero__content {
    top: 52px !important;
    left: max(24px, env(safe-area-inset-left));
    right: max(24px, env(safe-area-inset-right));
    width: auto;
  }

  .hero__title {
    max-width: 310px;
    font-size: clamp(1.82rem, 8.6vw, 2.5rem) !important;
    line-height: 0.96;
  }

  .hero__subjects {
    max-width: 315px;
    margin-top: 12px !important;
    font-size: 0.84rem !important;
    line-height: 1.32 !important;
  }

  .demo-link {
    margin-top: 14px !important;
    gap: 10px;
  }

  .demo-link strong {
    font-size: 0.92rem !important;
  }

  .demo-link small {
    margin-top: 2px !important;
    font-size: 0.72rem !important;
    line-height: 1.18 !important;
  }

  .primary-button {
    width: 100%;
    margin-top: 14px !important;
    padding: 11px 14px !important;
    border-radius: 13px;
    font-size: 0.95rem !important;
  }

  .primary-button img {
    width: 24px !important;
    height: 24px !important;
  }
}

/* Smartphones plus courts : on compacte encore légèrement le bloc */
@media (max-width: 600px) and (max-height: 720px) {
  .hero__content {
    top: 44px !important;
  }

  .hero__title {
    font-size: clamp(1.72rem, 8vw, 2.2rem) !important;
  }

  .hero__subjects {
    font-size: 0.79rem !important;
  }

  .demo-link {
    margin-top: 12px !important;
  }

  .primary-button {
    margin-top: 12px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    font-size: 0.9rem !important;
  }
}


/* ===== V32 : plus d'espace entre le logo et la ligne "Tous vos cours." sur smartphone ===== */
@media (max-width: 600px) {
  .hero__content {
    top: 72px !important;
  }
}

@media (max-width: 600px) and (max-height: 720px) {
  .hero__content {
    top: 62px !important;
  }
}


/* ===== V34 : sélection automatique des ressources smartphone / PC =====
   La mise en page smartphone validée en V33 reste inchangée.
   Le navigateur choisit automatiquement la photo via la balise <picture>. */
.hero__picture {
  position: absolute;
  z-index: -3;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero__picture .hero__background {
  position: absolute;
  inset: 0;
  z-index: auto;
}


/* ===== V36 : adaptation plein écran pour le format PC =====
   Objectif : aucun ascenseur en version PC.
   On fixe la scène sur la hauteur du viewport et l'image continue d'utiliser
   object-fit: cover, donc elle est tronquée si nécessaire sans être déformée. */
@media (min-width: 768px) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  body {
    overflow: hidden;
  }

  .hero {
    height: 100svh !important;
    min-height: 100svh !important;
    overflow: hidden;
  }

  .hero__picture,
  .hero__background {
    height: 100%;
  }
}

@media (min-width: 1100px) {
  .hero__content {
    padding-bottom: 190px !important;
  }

  .benefits {
    bottom: 26px !important;
  }
}


/* ===== V37 : smartphone en paysage = version PC automatique =====
   - Portrait smartphone : conserve la photo et la mise en page smartphone.
   - Paysage smartphone : utilise la photo PC et une composition plein écran.
   - Aucun rechargement JavaScript nécessaire : détection native CSS/HTML. */
@media (orientation: landscape) and (max-height: 600px) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden !important;
  }

  .hero {
    width: 100%;
    height: 100svh !important;
    min-height: 100svh !important;
    overflow: hidden !important;
  }

  .hero__picture,
  .hero__background {
    width: 100%;
    height: 100%;
  }

  .hero__background {
    object-fit: cover;
    object-position: center 50%;
  }

  .site-header {
    padding:
      max(12px, env(safe-area-inset-top))
      max(24px, env(safe-area-inset-right))
      6px
      max(24px, env(safe-area-inset-left));
  }

  .brand__logo {
    width: 118px !important;
    height: auto !important;
  }

  .hero__content {
    position: absolute;
    z-index: 2;
    top: 72px !important;
    left: max(32px, env(safe-area-inset-left)) !important;
    right: auto !important;
    width: min(48vw, 560px) !important;
    padding: 0 !important;
  }

  .hero__title {
    max-width: 100%;
    font-size: clamp(2rem, 5.2vw, 3.8rem) !important;
    line-height: 0.96;
  }

  .hero__subjects {
    max-width: 100%;
    margin-top: 14px !important;
    font-size: clamp(0.8rem, 1.65vw, 1.1rem) !important;
    line-height: 1.35 !important;
  }

  .demo-link {
    margin-top: 14px !important;
  }

  .demo-link strong {
    font-size: clamp(0.85rem, 1.6vw, 1.05rem) !important;
  }

  .demo-link small {
    font-size: clamp(0.66rem, 1.2vw, 0.82rem) !important;
  }

  .primary-button {
    width: min(100%, 500px);
    margin-top: 14px !important;
    padding: 11px 16px !important;
    font-size: clamp(0.88rem, 1.7vw, 1.08rem) !important;
  }

  .primary-button img {
    width: 26px !important;
    height: 26px !important;
  }

  .benefits {
    right: max(24px, env(safe-area-inset-right)) !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    left: auto !important;
    width: min(49vw, 640px) !important;
    transform: none !important;
    padding: 12px 8px !important;
  }

  .benefit {
    gap: 4px;
    padding: 0 7px;
  }

  .benefit img,
  .benefit__symbol {
    width: 30px;
    height: 30px;
  }

  .benefit strong {
    font-size: clamp(0.62rem, 1.1vw, 0.82rem) !important;
  }

  .benefit span:last-child {
    font-size: clamp(0.54rem, 0.95vw, 0.72rem) !important;
  }
}


/* ===== V38 : réduction du panneau noir des bénéfices en format PC ===== */
@media (min-width: 1100px) {
  .benefits {
    width: min(560px, 44vw) !important;
    padding: 14px 8px !important;
    border-radius: 20px !important;
    bottom: 20px !important;
  }

  .benefit {
    gap: 5px !important;
    padding: 0 8px !important;
  }

  .benefit img,
  .benefit__symbol {
    width: 34px !important;
    height: 34px !important;
  }

  .benefit strong {
    font-size: 0.92rem !important;
  }

  .benefit span:last-child {
    font-size: 0.82rem !important;
  }
}


/* ===== V39 : forte réduction du panneau noir sur PC et smartphone horizontal ===== */

/* PC / grands écrans */
@media (min-width: 1100px) {
  .benefits {
    width: min(430px, 34vw) !important;
    padding: 10px 4px !important;
    border-radius: 16px !important;
    bottom: 16px !important;
  }

  .benefit {
    gap: 3px !important;
    padding: 0 5px !important;
  }

  .benefit img,
  .benefit__symbol {
    width: 26px !important;
    height: 26px !important;
  }

  .benefit strong {
    font-size: 0.76rem !important;
    line-height: 1.12 !important;
  }

  .benefit span:last-child {
    font-size: 0.66rem !important;
    line-height: 1.1 !important;
  }
}

/* Smartphone à l'horizontale / version PC automatique */
@media (orientation: landscape) and (max-height: 600px) {
  .benefits {
    right: max(18px, env(safe-area-inset-right)) !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    left: auto !important;
    width: min(320px, 42vw) !important;
    padding: 8px 4px !important;
    border-radius: 14px !important;
  }

  .benefit {
    gap: 3px !important;
    padding: 0 4px !important;
  }

  .benefit img,
  .benefit__symbol {
    width: 22px !important;
    height: 22px !important;
  }

  .benefit strong {
    font-size: 0.60rem !important;
    line-height: 1.08 !important;
  }

  .benefit span:last-child {
    font-size: 0.50rem !important;
    line-height: 1.05 !important;
  }
}


/* ===== V41 : réduction de la taille du texte de gauche en format PC =====
   La version smartphone reste inchangée. */
@media (min-width: 1100px) {
  .hero__title {
    font-size: clamp(2.8rem, 4.6vw, 4.9rem) !important;
  }

  .hero__subjects {
    font-size: clamp(0.95rem, 1.2vw, 1.25rem) !important;
    line-height: 1.42 !important;
  }

  .demo-link strong {
    font-size: clamp(0.95rem, 1.05vw, 1.08rem) !important;
  }

  .demo-link small {
    font-size: clamp(0.72rem, 0.82vw, 0.82rem) !important;
  }

  .primary-button {
    font-size: clamp(0.98rem, 1.15vw, 1.14rem) !important;
  }
}


/* ===== V42 : adaptation intelligente pour smartphones très panoramiques à l'horizontale =====
   Cas visé : téléphones type Galaxy Ultra récents en paysage, avec une hauteur
   très faible par rapport à la largeur.
   Détection :
   - orientation paysage
   - hauteur faible
   - ratio très panoramique
   Choix appliqués :
   1) texte de gauche davantage réduit
   2) panneau noir des bénéfices davantage réduit
*/
@media (orientation: landscape) and (max-height: 520px) and (min-aspect-ratio: 19/9) {
  .site-header {
    padding:
      max(10px, env(safe-area-inset-top))
      max(18px, env(safe-area-inset-right))
      4px
      max(18px, env(safe-area-inset-left)) !important;
  }

  .brand__logo {
    width: 102px !important;
    height: auto !important;
  }

  .hero__content {
    top: 54px !important;
    left: max(24px, env(safe-area-inset-left)) !important;
    width: min(44vw, 460px) !important;
    padding: 0 !important;
  }

  .hero__title {
    font-size: clamp(1.55rem, 3.5vw, 2.45rem) !important;
    line-height: 0.95 !important;
    max-width: 100% !important;
  }

  .hero__subjects {
    margin-top: 8px !important;
    font-size: clamp(0.70rem, 1.1vw, 0.86rem) !important;
    line-height: 1.26 !important;
    max-width: 100% !important;
  }

  .demo-link {
    margin-top: 10px !important;
    gap: 8px !important;
  }

  .demo-link strong {
    font-size: clamp(0.72rem, 1.12vw, 0.90rem) !important;
    line-height: 1.08 !important;
  }

  .demo-link small {
    font-size: clamp(0.56rem, 0.88vw, 0.70rem) !important;
    line-height: 1.08 !important;
  }

  .primary-button {
    width: min(100%, 400px) !important;
    margin-top: 10px !important;
    padding: 9px 14px !important;
    border-radius: 12px !important;
    font-size: clamp(0.76rem, 1.2vw, 0.94rem) !important;
    gap: 10px !important;
  }

  .primary-button img {
    width: 22px !important;
    height: 22px !important;
  }

  .benefits {
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    width: min(280px, 31vw) !important;
    padding: 7px 3px !important;
    border-radius: 12px !important;
  }

  .benefit {
    gap: 2px !important;
    padding: 0 3px !important;
  }

  .benefit img,
  .benefit__symbol {
    width: 18px !important;
    height: 18px !important;
  }

  .benefit strong {
    font-size: clamp(0.48rem, 0.78vw, 0.62rem) !important;
    line-height: 1.02 !important;
  }

  .benefit span:last-child {
    font-size: clamp(0.41rem, 0.66vw, 0.54rem) !important;
    line-height: 1.0 !important;
  }
}


/* ===== V43 : préserver la zone centrale de mise en valeur de l'agenda =====
   En PC et en smartphone paysage, le CTA reste dans la colonne gauche.
   Sa largeur est limitée pour qu'il ne déborde jamais sur la zone centrale
   de la photo, destinée au produit. */

/* PC */
@media (min-width: 1100px) {
  .hero__content {
    width: min(38vw, 620px) !important;
    max-width: 620px !important;
  }

  .primary-button {
    width: min(100%, 440px) !important;
    max-width: 440px !important;
    justify-self: start !important;
    align-self: flex-start !important;
  }
}

/* Smartphone en paysage utilisant la composition PC */
@media (orientation: landscape) and (max-height: 600px) {
  .hero__content {
    width: min(40vw, 470px) !important;
    max-width: 470px !important;
  }

  .primary-button {
    width: min(100%, 360px) !important;
    max-width: 360px !important;
    align-self: flex-start !important;
  }
}

/* Smartphone très panoramique en paysage */
@media (orientation: landscape) and (max-height: 520px) and (min-aspect-ratio: 19/9) {
  .hero__content {
    width: min(37vw, 420px) !important;
    max-width: 420px !important;
  }

  .primary-button {
    width: min(100%, 330px) !important;
    max-width: 330px !important;
    padding-inline: 12px !important;
  }
}


/* ===== V48 : tablette plein écran, sans ascenseur =====
   Zone tablette : 601 px à 1099 px.
   La photo vient automatiquement de images/tablet/.
   Le recadrage utilise object-fit: cover : aucune déformation. */
@media (min-width: 601px) and (max-width: 1099px) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden !important;
  }

  body {
    min-height: 0 !important;
  }

  .hero {
    width: 100%;
    height: 100svh !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .hero__picture,
  .hero__background {
    width: 100%;
    height: 100%;
  }

  .hero__background {
    object-fit: cover;
  }

  .site-header {
    padding:
      max(16px, env(safe-area-inset-top))
      max(28px, env(safe-area-inset-right))
      8px
      max(28px, env(safe-area-inset-left)) !important;
  }

  .brand__logo {
    width: 130px !important;
    height: auto !important;
  }

  .hero__content {
    position: absolute !important;
    z-index: 2;
    padding: 0 !important;
  }

  .benefits {
    position: absolute !important;
  }
}

/* Tablette portrait */
@media (min-width: 601px) and (max-width: 1099px) and (orientation: portrait) {
  .hero__background {
    object-position: center 45%;
  }

  .hero__content {
    top: 104px !important;
    left: max(34px, env(safe-area-inset-left)) !important;
    right: max(34px, env(safe-area-inset-right)) !important;
    width: auto !important;
    max-width: 620px !important;
  }

  .hero__title {
    font-size: clamp(2.6rem, 7vw, 4.4rem) !important;
    line-height: 0.97 !important;
  }

  .hero__subjects {
    margin-top: 18px !important;
    font-size: clamp(0.95rem, 2vw, 1.2rem) !important;
    line-height: 1.4 !important;
    max-width: 560px !important;
  }

  .demo-link {
    margin-top: 20px !important;
  }

  .primary-button {
    width: min(100%, 500px) !important;
    margin-top: 18px !important;
    padding: 14px 18px !important;
    font-size: clamp(1rem, 2vw, 1.2rem) !important;
  }

  .benefits {
    right: 28px !important;
    bottom: max(18px, env(safe-area-inset-bottom)) !important;
    left: 28px !important;
    width: auto !important;
    transform: none !important;
    padding: 13px 8px !important;
    border-radius: 18px !important;
  }

  .benefit {
    gap: 4px !important;
    padding: 0 7px !important;
  }

  .benefit img,
  .benefit__symbol {
    width: 30px !important;
    height: 30px !important;
  }

  .benefit strong {
    font-size: 0.82rem !important;
  }

  .benefit span:last-child {
    font-size: 0.72rem !important;
  }
}

/* Tablette paysage */
@media (min-width: 601px) and (max-width: 1099px) and (orientation: landscape) {
  .hero__background {
    object-position: center 50%;
  }

  .hero__content {
    top: 82px !important;
    left: max(34px, env(safe-area-inset-left)) !important;
    right: auto !important;
    width: min(43vw, 500px) !important;
    max-width: 500px !important;
  }

  .hero__title {
    font-size: clamp(2rem, 4.4vw, 3.5rem) !important;
    line-height: 0.96 !important;
  }

  .hero__subjects {
    margin-top: 13px !important;
    font-size: clamp(0.78rem, 1.45vw, 1rem) !important;
    line-height: 1.32 !important;
  }

  .demo-link {
    margin-top: 14px !important;
  }

  .demo-link strong {
    font-size: clamp(0.82rem, 1.4vw, 1rem) !important;
  }

  .demo-link small {
    font-size: clamp(0.64rem, 1vw, 0.76rem) !important;
  }

  .primary-button {
    width: min(100%, 390px) !important;
    max-width: 390px !important;
    margin-top: 14px !important;
    padding: 11px 15px !important;
    font-size: clamp(0.86rem, 1.45vw, 1.02rem) !important;
  }

  .primary-button img {
    width: 24px !important;
    height: 24px !important;
  }

  .benefits {
    right: max(20px, env(safe-area-inset-right)) !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    left: auto !important;
    width: min(330px, 38vw) !important;
    transform: none !important;
    padding: 8px 4px !important;
    border-radius: 14px !important;
  }

  .benefit {
    gap: 3px !important;
    padding: 0 4px !important;
  }

  .benefit img,
  .benefit__symbol {
    width: 22px !important;
    height: 22px !important;
  }

  .benefit strong {
    font-size: 0.62rem !important;
    line-height: 1.08 !important;
  }

  .benefit span:last-child {
    font-size: 0.52rem !important;
    line-height: 1.05 !important;
  }
}


/* ===== V49 : tablette presque carrée =====
   Détection basée sur le ratio de l'écran.
   Objectif : préserver la zone centrale pour mettre l'agenda en valeur,
   sans scrolling et sans modifier la photo. */
@media (min-width: 601px)
  and (max-width: 1099px)
  and (min-aspect-ratio: 4/5)
  and (max-aspect-ratio: 5/4) {

  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden !important;
  }

  .hero {
    width: 100%;
    height: 100svh !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .hero__picture,
  .hero__background {
    width: 100%;
    height: 100%;
  }

  .hero__background {
    object-fit: cover;
    object-position: center 46%;
  }

  .site-header {
    padding:
      max(14px, env(safe-area-inset-top))
      max(24px, env(safe-area-inset-right))
      6px
      max(24px, env(safe-area-inset-left)) !important;
  }

  .brand__logo {
    width: 118px !important;
    height: auto !important;
  }

  .hero__content {
    position: absolute !important;
    z-index: 2;
    top: 92px !important;
    left: max(28px, env(safe-area-inset-left)) !important;
    right: auto !important;
    width: min(38vw, 360px) !important;
    max-width: 360px !important;
    padding: 0 !important;
  }

  .hero__title {
    max-width: 100% !important;
    font-size: clamp(2rem, 5.3vw, 3.2rem) !important;
    line-height: 0.96 !important;
  }

  .hero__subjects {
    max-width: 100% !important;
    margin-top: 12px !important;
    font-size: clamp(0.78rem, 1.7vw, 0.98rem) !important;
    line-height: 1.30 !important;
  }

  .demo-link {
    margin-top: 14px !important;
    gap: 9px !important;
  }

  .demo-link strong {
    font-size: clamp(0.82rem, 1.5vw, 0.98rem) !important;
    line-height: 1.08 !important;
  }

  .demo-link small {
    font-size: clamp(0.62rem, 1.1vw, 0.74rem) !important;
    line-height: 1.08 !important;
  }

  .primary-button {
    width: min(100%, 300px) !important;
    max-width: 300px !important;
    margin-top: 14px !important;
    padding: 11px 13px !important;
    border-radius: 12px !important;
    font-size: clamp(0.84rem, 1.5vw, 0.98rem) !important;
    gap: 10px !important;
  }

  .primary-button img {
    width: 23px !important;
    height: 23px !important;
  }

  .benefits {
    right: max(18px, env(safe-area-inset-right)) !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    left: auto !important;
    width: min(300px, 34vw) !important;
    transform: none !important;
    padding: 8px 4px !important;
    border-radius: 14px !important;
  }

  .benefit {
    gap: 3px !important;
    padding: 0 4px !important;
  }

  .benefit img,
  .benefit__symbol {
    width: 22px !important;
    height: 22px !important;
  }

  .benefit strong {
    font-size: 0.60rem !important;
    line-height: 1.08 !important;
  }

  .benefit span:last-child {
    font-size: 0.50rem !important;
    line-height: 1.05 !important;
  }
}


/* ===== V50 : smartphone Samsung très large en paysage =====
   Le bouton principal est prioritaire et doit toujours rester visible.
   Cette règle cible les téléphones paysage bas et très panoramiques. */
@media (orientation: landscape)
  and (max-height: 500px)
  and (min-aspect-ratio: 18/9) {

  html,
  body,
  .hero {
    height: 100svh !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .site-header {
    padding:
      max(8px, env(safe-area-inset-top))
      max(18px, env(safe-area-inset-right))
      2px
      max(18px, env(safe-area-inset-left)) !important;
  }

  .brand__logo {
    width: 92px !important;
  }

  .hero__content {
    top: 54px !important;
    left: max(20px, env(safe-area-inset-left)) !important;
    width: min(38vw, 340px) !important;
    max-width: 340px !important;
    bottom: auto !important;
    padding: 0 !important;
  }

  .hero__title {
    font-size: clamp(1.55rem, 4.1vw, 2.45rem) !important;
    line-height: 0.93 !important;
  }

  .hero__subjects {
    margin-top: 7px !important;
    font-size: clamp(0.62rem, 1.2vw, 0.78rem) !important;
    line-height: 1.18 !important;
  }

  .demo-link {
    margin-top: 8px !important;
    gap: 7px !important;
  }

  .demo-link strong {
    font-size: clamp(0.68rem, 1.15vw, 0.82rem) !important;
    line-height: 1 !important;
  }

  /* Sur les écrans très bas, le texte secondaire cède la place au CTA. */
  .demo-link small {
    display: none !important;
  }

  .demo-link__icon,
  .demo-link svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
  }

  .primary-button {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: min(100%, 300px) !important;
    max-width: 300px !important;
    min-height: 42px !important;
    margin-top: 9px !important;
    padding: 9px 12px !important;
    border-radius: 11px !important;
    font-size: clamp(0.76rem, 1.25vw, 0.90rem) !important;
    line-height: 1.05 !important;
    gap: 8px !important;
    position: relative !important;
    z-index: 5 !important;
  }

  .primary-button img {
    width: 21px !important;
    height: 21px !important;
    flex: 0 0 21px !important;
  }

  /* Le bloc des bénéfices est réduit et repoussé dans le coin droit. */
  .benefits {
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    left: auto !important;
    width: min(280px, 34vw) !important;
    padding: 6px 3px !important;
    border-radius: 12px !important;
    transform: none !important;
  }

  .benefit {
    padding: 0 3px !important;
    gap: 2px !important;
  }

  .benefit img,
  .benefit__symbol {
    width: 19px !important;
    height: 19px !important;
  }

  .benefit strong {
    font-size: 0.53rem !important;
    line-height: 1 !important;
  }

  .benefit span:last-child {
    font-size: 0.45rem !important;
    line-height: 1 !important;
  }
}

/* Sécurité supplémentaire pour les téléphones paysage extrêmement bas. */
@media (orientation: landscape)
  and (max-height: 420px)
  and (min-aspect-ratio: 18/9) {

  .hero__content {
    top: 46px !important;
    width: min(36vw, 310px) !important;
  }

  .hero__title {
    font-size: clamp(1.35rem, 3.8vw, 2.05rem) !important;
  }

  .hero__subjects {
    margin-top: 5px !important;
    font-size: clamp(0.56rem, 1.05vw, 0.70rem) !important;
  }

  .demo-link {
    margin-top: 6px !important;
  }

  .primary-button {
    width: min(100%, 280px) !important;
    max-width: 280px !important;
    min-height: 39px !important;
    margin-top: 7px !important;
    padding: 8px 10px !important;
    font-size: clamp(0.70rem, 1.15vw, 0.82rem) !important;
  }
}


/* ===== V51 : espace logo / titre sur Samsung paysage =====
   Ajustement très ciblé : le logo reste en place et le bloc texte
   descend légèrement pour mieux respirer. */
@media (orientation: landscape)
  and (max-height: 500px)
  and (min-aspect-ratio: 18/9) {

  .hero__content {
    top: 62px !important;
  }
}

/* Pour les écrans paysage extrêmement bas, on conserve aussi
   un léger espace supplémentaire sans compromettre le bouton. */
@media (orientation: landscape)
  and (max-height: 420px)
  and (min-aspect-ratio: 18/9) {

  .hero__content {
    top: 52px !important;
  }
}


/* ===== V52 : robustesse des icônes rondes =====
   1) L'icône "lecture" doit toujours rester parfaitement ronde.
   2) L'icône de validation doit toujours garder sa coche centrée. */

/* Cercle du bouton "Voir une démonstration" */
.demo-link__icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  aspect-ratio: 1 / 1 !important;
  box-sizing: border-box !important;
  border-radius: 999px !important;
  line-height: 0 !important;
}

.demo-link__icon svg {
  display: block !important;
  width: 52% !important;
  height: 52% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  flex: none !important;
}

/* Icône "Restez concentré" : cercle + coche centrée */
.benefit__symbol--focus {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  aspect-ratio: 1 / 1 !important;
  line-height: 0 !important;
  font-size: 0 !important;
  transform: none !important;
}

.benefit__symbol--focus svg {
  display: block !important;
  width: 58% !important;
  height: 58% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  transform: none !important;
}

.benefit__symbol--focus path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

/* Ajustements de taille selon les contextes responsives */
@media (max-width: 600px) {
  .demo-link__icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  .demo-link__icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
  }
}

@media (orientation: landscape) and (max-height: 500px) and (min-aspect-ratio: 18/9) {
  .demo-link__icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
  }

  .benefit__symbol--focus svg {
    width: 60% !important;
    height: 60% !important;
  }
}


/* ===== V53 : coche de "Restez concentré" fortement agrandie ===== */
.benefit__symbol--focus svg {
  width: 82% !important;
  height: 82% !important;
}

.benefit__symbol--focus path {
  stroke-width: 4.2 !important;
}

@media (orientation: landscape) and (max-height: 500px) and (min-aspect-ratio: 18/9) {
  .benefit__symbol--focus svg {
    width: 84% !important;
    height: 84% !important;
  }

  .benefit__symbol--focus path {
    stroke-width: 4.4 !important;
  }
}


/* ===== V54 : coche encore plus grande et plus fine ===== */
.benefit__symbol--focus svg {
  width: 96% !important;
  height: 96% !important;
}

.benefit__symbol--focus path {
  stroke-width: 2.35 !important;
}

@media (orientation: landscape) and (max-height: 500px) and (min-aspect-ratio: 18/9) {
  .benefit__symbol--focus svg {
    width: 98% !important;
    height: 98% !important;
  }

  .benefit__symbol--focus path {
    stroke-width: 2.2 !important;
  }
}


/* ===== V55 : slider de page d'accueil ===== */
.hero--slider {
  position: relative;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  isolation: isolate;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero > .site-header,
.hero > .slider-controls,
.hero > .benefits {
  position: relative;
}

.hero > .slider-controls {
  z-index: 6;
}

.slider-controls {
  position: absolute;
  top: max(24px, env(safe-area-inset-top));
  right: var(--safe-right);
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(5, 8, 12, 0.44);
  color: #fff;
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.slider-arrow span {
  font-size: 1.45rem;
  line-height: 1;
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(5, 8, 12, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.slider-dot.is-active {
  transform: scale(1.28);
  background: var(--blue);
}

.hero__content--slide-2 .hero__title,
.hero__content--slide-2 .hero__subjects,
.hero__content--slide-2 .demo-link,
.hero__content--slide-2 .primary-button {
  max-width: 100%;
}

/* Le texte de la slide 2 reste dans la colonne gauche
   pour préserver la zone centrale du produit. */
@media (min-width: 1100px) {
  .hero__content--slide-2 {
    width: min(38vw, 620px) !important;
    max-width: 620px !important;
  }

  .hero__content--slide-2 .primary-button {
    width: min(100%, 440px) !important;
    max-width: 440px !important;
  }
}

@media (min-width: 601px) and (max-width: 1099px) and (orientation: landscape) {
  .hero__content--slide-2 {
    width: min(43vw, 500px) !important;
    max-width: 500px !important;
  }

  .hero__content--slide-2 .primary-button {
    width: min(100%, 390px) !important;
    max-width: 390px !important;
  }
}

@media (min-width: 601px) and (max-width: 1099px) and (orientation: portrait) {
  .hero__content--slide-2 .primary-button {
    width: min(100%, 500px) !important;
  }
}

@media (max-width: 600px) {
  .slider-controls {
    top: max(18px, env(safe-area-inset-top));
    gap: 8px;
  }

  .slider-arrow {
    width: 34px;
    height: 34px;
  }

  .slider-dots {
    padding: 8px 10px;
  }

  .slider-dot {
    width: 7px;
    height: 7px;
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  .slider-controls {
    top: max(10px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    gap: 6px;
  }

  .slider-arrow {
    width: 28px;
    height: 28px;
  }

  .slider-arrow span {
    font-size: 1.05rem;
  }

  .slider-dots {
    padding: 6px 8px;
    gap: 6px;
  }

  .slider-dot {
    width: 6px;
    height: 6px;
  }
}


/* ===== V56 : corrections du slider =====
   1) Le panneau noir des bénéfices retrouve sa position d'origine en bas.
   2) Les points / flèches du slider sont replacés dans une zone plus appropriée. */

/* Le panneau noir doit rester ancré comme avant */
.hero > .benefits {
  position: absolute !important;
  z-index: 5 !important;
}

.hero > .site-header {
  position: relative !important;
  z-index: 7 !important;
}

/* Repositionnement plus propre de la navigation du slider */
.hero > .slider-controls {
  position: absolute !important;
  z-index: 7 !important;
  top: auto !important;
  right: auto !important;
  bottom: max(18px, env(safe-area-inset-bottom)) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

.slider-controls {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

.slider-dots {
  min-width: 0 !important;
}

/* Smartphone portrait : les contrôles au-dessus du panneau du bas */
@media (max-width: 600px) {
  .hero > .slider-controls {
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + 158px) !important;
  }
}

/* Tablette portrait : au-dessus du panneau bas large */
@media (min-width: 601px) and (max-width: 1099px) and (orientation: portrait) {
  .hero > .slider-controls {
    bottom: calc(max(16px, env(safe-area-inset-bottom)) + 110px) !important;
  }
}

/* PC, tablette paysage et smartphone paysage :
   les contrôles restent discrets au centre bas */
@media (min-width: 1100px) {
  .hero > .slider-controls {
    bottom: 20px !important;
  }
}

@media (min-width: 601px) and (max-width: 1099px) and (orientation: landscape) {
  .hero > .slider-controls {
    bottom: 16px !important;
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  .hero > .slider-controls {
    bottom: 10px !important;
  }

  .slider-controls {
    gap: 6px !important;
  }
}

/* Très bas en paysage : on laisse plus d'air entre le bord et les contrôles */
@media (orientation: landscape) and (max-height: 500px) and (min-aspect-ratio: 18/9) {
  .hero > .slider-controls {
    bottom: 8px !important;
  }
}


/* ===== V57 : correction du bouton en smartphone portrait =====
   Avec le slider, le bouton CTA en portrait mobile peut devenir trop large.
   On rétablit un comportement proche de la version validée avant le slider. */
@media (max-width: 600px) and (orientation: portrait) {
  .hero__content,
  .hero__content--slide-2 {
    right: max(18px, env(safe-area-inset-right)) !important;
    width: auto !important;
    max-width: none !important;
  }

  .primary-button,
  .hero__content--slide-2 .primary-button {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 17px !important;
    padding: 13px 15px !important;
    border-radius: 13px !important;
    font-size: 0.98rem !important;
    box-sizing: border-box !important;
  }

  .primary-button span,
  .hero__content--slide-2 .primary-button span {
    white-space: normal !important;
    text-align: center !important;
  }

  .primary-button img,
  .hero__content--slide-2 .primary-button img {
    width: 27px !important;
    height: 27px !important;
    flex: 0 0 27px !important;
  }
}

/* Smartphones portrait plus courts : on conserve aussi la version compacte d'avant */
@media (max-width: 600px) and (max-height: 720px) and (orientation: portrait) {
  .primary-button,
  .hero__content--slide-2 .primary-button {
    margin-top: 12px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    font-size: 0.9rem !important;
  }
}


/* ===== V58 : correction plus forte du CTA en smartphone portrait =====
   La V57 n'était pas suffisante.
   Objectif : empêcher tout débordement horizontal du bouton avec le slider,
   en restaurant une largeur réellement contrainte par l'écran. */
@media (max-width: 600px) and (orientation: portrait) {
  .hero__content,
  .hero__content--slide-2 {
    left: max(18px, env(safe-area-inset-left)) !important;
    right: max(18px, env(safe-area-inset-right)) !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .primary-button,
  .hero__content--slide-2 .primary-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    inline-size: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-top: 17px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 13px 14px !important;
    border-radius: 13px !important;
    font-size: 0.96rem !important;
    line-height: 1.15 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .primary-button span,
  .hero__content--slide-2 .primary-button span {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-wrap: balance;
    text-align: center !important;
  }

  .primary-button img,
  .hero__content--slide-2 .primary-button img {
    width: 25px !important;
    height: 25px !important;
    flex: 0 0 25px !important;
    min-width: 25px !important;
  }
}

@media (max-width: 600px) and (max-height: 720px) and (orientation: portrait) {
  .primary-button,
  .hero__content--slide-2 .primary-button {
    margin-top: 12px !important;
    padding: 10px 12px !important;
    font-size: 0.88rem !important;
    gap: 8px !important;
  }

  .primary-button img,
  .hero__content--slide-2 .primary-button img {
    width: 23px !important;
    height: 23px !important;
    flex: 0 0 23px !important;
    min-width: 23px !important;
  }
}


/* ===== V59 : verrouillage définitif de la largeur du CTA mobile portrait =====
   La correction précédente dépendait encore trop de la largeur du parent.
   Ici, le bouton prend explicitement une largeur calculée sur le viewport,
   pour ne jamais déborder horizontalement. */
@media (max-width: 600px) and (orientation: portrait) {
  .hero__content,
  .hero__content--slide-2 {
    left: max(18px, env(safe-area-inset-left)) !important;
    right: max(18px, env(safe-area-inset-right)) !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .primary-button,
  .hero__content--slide-2 .primary-button {
    position: relative !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    align-self: flex-start !important;
    display: flex !important;
    width: calc(100vw - max(18px, env(safe-area-inset-left)) - max(18px, env(safe-area-inset-right)) - 2px) !important;
    max-width: calc(100vw - max(18px, env(safe-area-inset-left)) - max(18px, env(safe-area-inset-right)) - 2px) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

/* Variante plus compacte pour les petits smartphones portrait */
@media (max-width: 420px) and (orientation: portrait) {
  .primary-button,
  .hero__content--slide-2 .primary-button {
    width: calc(100vw - max(16px, env(safe-area-inset-left)) - max(16px, env(safe-area-inset-right)) - 2px) !important;
    max-width: calc(100vw - max(16px, env(safe-area-inset-left)) - max(16px, env(safe-area-inset-right)) - 2px) !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    font-size: 0.86rem !important;
  }
}


/* ===== V60 : navigation du slider allégée =====
   Solution retenue : uniquement deux petits points.
   Les flèches et le fond gris sont masqués.
   Le swipe, le clic sur les points et le défilement automatique restent actifs. */

.slider-arrow {
  display: none !important;
}

.slider-controls {
  gap: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.slider-dots {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 !important;
  min-width: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.slider-dot {
  width: 8px !important;
  height: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.82) !important;
  background: rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.28) !important;
  transform: none !important;
}

.slider-dot.is-active {
  width: 9px !important;
  height: 9px !important;
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  transform: none !important;
}

/* Position discrète juste au-dessus du panneau noir */
@media (max-width: 600px) and (orientation: portrait) {
  .hero > .slider-controls {
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + 168px) !important;
  }
}

@media (min-width: 601px) and (max-width: 1099px) and (orientation: portrait) {
  .hero > .slider-controls {
    bottom: calc(max(16px, env(safe-area-inset-bottom)) + 120px) !important;
  }
}

@media (min-width: 601px) and (max-width: 1099px) and (orientation: landscape) {
  .hero > .slider-controls {
    bottom: 18px !important;
  }
}

@media (min-width: 1100px) {
  .hero > .slider-controls {
    bottom: 22px !important;
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  .hero > .slider-controls {
    bottom: 12px !important;
  }

  .slider-dot {
    width: 7px !important;
    height: 7px !important;
  }

  .slider-dot.is-active {
    width: 8px !important;
    height: 8px !important;
  }
}


/* ===== V61 : points du slider plus bas en smartphone portrait =====
   Les deux points sont rapprochés du rectangle noir inférieur. */
@media (max-width: 600px) and (orientation: portrait) {
  .hero > .slider-controls {
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + 146px) !important;
  }
}


/* ===== V62 : points du slider encore plus bas en smartphone portrait =====
   La V61 restait trop haute. On rapproche davantage les points du panneau noir. */
@media (max-width: 600px) and (orientation: portrait) {
  .hero > .slider-controls {
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + 84px) !important;
  }
}


/* ===== V63 : messages du cadre noir adaptés à chaque slide ===== */
.hero > .benefits {
  transition: opacity 0.28s ease;
}

.hero > .benefits:not(.is-active) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.hero > .benefits.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}


/* ===== V64 : slide 3 — fin du crédit immobilier =====
   La zone centrale reste préservée pour mettre en valeur l'agenda. */
.hero__content--slide-3 .hero__title,
.hero__content--slide-3 .hero__subjects,
.hero__content--slide-3 .demo-link,
.hero__content--slide-3 .primary-button {
  max-width: 100%;
}

@media (min-width: 1100px) {
  .hero__content--slide-3 {
    width: min(38vw, 620px) !important;
    max-width: 620px !important;
  }

  .hero__content--slide-3 .primary-button {
    width: min(100%, 440px) !important;
    max-width: 440px !important;
  }
}

@media (min-width: 601px) and (max-width: 1099px) and (orientation: landscape) {
  .hero__content--slide-3 {
    width: min(43vw, 500px) !important;
    max-width: 500px !important;
  }

  .hero__content--slide-3 .primary-button {
    width: min(100%, 390px) !important;
    max-width: 390px !important;
  }
}

@media (min-width: 601px) and (max-width: 1099px) and (orientation: portrait) {
  .hero__content--slide-3 .primary-button {
    width: min(100%, 500px) !important;
  }
}

/* Smartphone portrait : même verrouillage du CTA que sur les slides validées */
@media (max-width: 600px) and (orientation: portrait) {
  .hero__content--slide-3 {
    left: max(18px, env(safe-area-inset-left)) !important;
    right: max(18px, env(safe-area-inset-right)) !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  .hero__content--slide-3 .primary-button {
    width: calc(100vw - max(18px, env(safe-area-inset-left)) - max(18px, env(safe-area-inset-right)) - 2px) !important;
    max-width: calc(100vw - max(18px, env(safe-area-inset-left)) - max(18px, env(safe-area-inset-right)) - 2px) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}


/* ===== V65 : synchronisation robuste du cadre noir =====
   Un seul cadre est utilisé ; ses six textes changent dans le même render()
   que la photo et les points du slider. */
.hero > .benefits {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}


/* ===== V67 : démonstration vidéo ===== */
.video-is-open {
  overflow: hidden !important;
}

.video-modal[hidden] {
  display: none !important;
}

.video-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding:
    max(18px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 12, 0.88);
  backdrop-filter: blur(8px);
}

.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100svh - 36px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: #05080c;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.video-modal__player {
  display: block;
  width: 100%;
  max-height: calc(100svh - 36px);
  background: #000;
  object-fit: contain;
}

.video-modal__close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(5, 8, 12, 0.72);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.video-modal__message {
  margin: 0;
  padding: 56px 24px;
  color: #fff;
  text-align: center;
  font-size: 1rem;
}

@media (max-width: 600px) {
  .video-modal {
    padding:
      max(12px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }

  .video-modal__dialog {
    max-height: calc(100svh - 24px);
    border-radius: 14px;
  }

  .video-modal__player {
    max-height: calc(100svh - 24px);
  }

  .video-modal__close {
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
  }
}


/* ===== V69 : logo maintenu pendant la lecture vidéo ===== */
.video-modal__brand-wrap {
  position: absolute;
  z-index: 3;
  top: max(24px, env(safe-area-inset-top));
  left: max(24px, env(safe-area-inset-left));
  pointer-events: none;
}

.video-modal__brand-wrap .brand {
  display: inline-flex;
}

.video-modal__brand-wrap .brand__logo {
  width: clamp(120px, 14vw, 160px) !important;
  max-width: none !important;
}

@media (max-width: 600px) {
  .video-modal__brand-wrap {
    top: max(12px, env(safe-area-inset-top));
    left: max(18px, env(safe-area-inset-left));
  }

  .video-modal__brand-wrap .brand__logo {
    width: 112px !important;
    max-width: 44vw !important;
  }
}

@media (orientation: landscape) and (max-height: 500px) and (min-aspect-ratio: 18/9) {
  .video-modal__brand-wrap {
    top: max(8px, env(safe-area-inset-top));
    left: max(18px, env(safe-area-inset-left));
  }

  .video-modal__brand-wrap .brand__logo {
    width: 92px !important;
  }
}


/* ===== V77 : hauteur fixe des points selon le panneau le plus haut =====
   La valeur est calculée une seule fois à partir de la hauteur maximale
   des contenus des trois slides dans la langue active. */
@media (max-width: 600px) and (orientation: portrait) {
  .hero > .slider-controls {
    bottom: var(--benefits-top-offset, calc(max(18px, env(safe-area-inset-bottom)) + 84px)) !important;
    transition: none !important;
  }
}
