/* V2.5.0 — consolidation responsive et finitions Carbon. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body > main,
.shell,
.shop-shell,
.resource-shell,
.docs-shell,
.checkout-shell,
section,
.section-panel,
.resource-promo-panel,
.generator-layout {
  min-width: 0;
  max-width: 100%;
}

img,
svg,
canvas {
  max-width: 100%;
}

/* Une respiration nette entre le header et le premier panneau. */
body > main {
  padding-top: 12px;
}

/* Ce bloc reposait sur chaque section un fond sombre ecrit en dur, plus
   des rayures vertes en diagonale. Deux raisons de le retirer, le
   26 aout 2026 :

   le fond etait fige en sombre, donc la page restait noire quand le
   site bascule en mode jour, et rien ne l'aurait signale ; et les
   rayures vertes sont exactement ce que la charte appelle « un degrade
   inutile », repete sur toute la hauteur de chaque page.

   La section prend desormais la couleur de sa feuille, qui suit le
   mode. Les quatre « !important » partent avec : ils etaient la pour
   passer devant les feuilles de page, et une regle qui doit crier pour
   s'appliquer est une regle rangee au mauvais endroit. */

@media (max-width: 900px) {
  body > main {
    padding-top: 10px;
  }

  body > .site-header {
    width: 100% !important;
    max-width: 100vw !important;
  }

  body > .site-header .navbar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-inline: 14px !important;
  }

  body > .site-header .brand {
    min-width: 0 !important;
  }

  /* 10 px etaient illisibles a bout de bras. La barre est calee sur le
     logo (48 px) et le bouton de menu (46 px) : une ligne de 16 px
     tient largement dessous, l'en-tete ne grandit donc pas. */
  body > .site-header .resource-brand-name {
    font-size: 16px !important;
    letter-spacing: .12em !important;
  }

  body > .site-header .menu-toggle {
    flex: 0 0 46px !important;
    width: 46px !important;
    height: 46px !important;
    margin-left: auto !important;
  }

  body > .site-header .nav-links {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 12px !important;
    left: auto !important;
    width: min(290px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - 100px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 10px !important;
    border-radius: 18px !important;
    box-shadow: 0 22px 50px rgba(0, 0, 0, .58) !important;
  }

  body > .site-header .nav-links a {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-content: flex-start !important;
    white-space: normal !important;
  }

  .shell,
  .shop-shell,
  .resource-shell,
  .docs-shell,
  .checkout-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    padding-inline: 12px !important;
    overflow: clip !important;
  }

  .resource-promo-panel,
  .resource-hero,
  .resource-section,
  .generator-layout,
  .section-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-inline: 0 !important;
  }

  .resource-promo-copy,
  .resource-promo-preview,
  .resource-promo-action,
  .platform-grid,
  .home-platform-grid {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

@media (max-width: 560px) {
  .shell,
  .shop-shell,
  .resource-shell,
  .docs-shell,
  .checkout-shell {
    padding-inline: 8px !important;
  }

  .resource-promo-panel,
  .resource-hero,
  .resource-section,
  .section-panel {
    padding-inline: 14px !important;
    border-radius: 22px !important;
  }
}

/* V2.5.1 — retour en haut disponible à toute taille d'écran. */

@media (max-width: 700px) {
  .back-to-top {
    right: 14px !important;
    bottom: 94px !important;
  }
}
