@font-face {
  font-family: INTER; /* set name */
  src: url('/fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
}

:root {
    --pure-white: white;
    --gris-fond: #f5f5f5;
    --gris-utile: #f0f0f0;
    --gris-texte: #b5b5b5;
    --bleu-selection: #208AFA;
    --rouge-warning: #a40000;
    --noir-feutre: #1e1e1e;
    --pure-black: black;
    --mobile-keyboard-offset: 0px;
}

body {
    background-color: var(--gris-fond);
    margin: 0;                 /* Supprime les marges par défaut */
    padding: 0;                /* Supprime les espacements */
    overflow-x: clip;          /* La transition de fermeture ne doit pas élargir la page. */
}


.site-footer {
    width: 100%;
    height: 60px;
    background-color: var(--pure-white);
}

.site-footer-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
}

.site-footer-links button,
.site-footer-links a {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.site-footer-links button:hover,
.site-footer-links button:focus-visible,
.site-footer-links a:hover,
.site-footer-links a:focus-visible {
    text-decoration: underline;
}

/* Pages éditoriales : elles reprennent la palette et la police du catalogue,
   avec une largeur de lecture confortable pour les textes longs. */
body.info-page {
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
}

.info-page .page-header {
    height: auto;
    padding: 48px 20px 32px;
}

.info-page .page-title {
    display: block;
    width: min(100%, 760px);
    margin: 0 auto;
}

.info-page .page-title h1 {
    margin: 0;
    color: var(--pure-black);
    font-family: INTER, Arial, sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.info-page-main {
    width: min(100% - 40px, 760px);
    margin: 0 auto 56px;
}

.info-page-intro {
    margin: 0 0 32px;
    color: var(--gris-texte);
    font-family: INTER, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

.info-card {
    margin-bottom: 16px;
    padding: 28px;
    border: 1px solid var(--gris-utile);
    border-radius: 16px;
    background: var(--pure-white);
}

.info-card h2 {
    margin: 0 0 12px;
    color: var(--pure-black);
    font-family: INTER, Arial, sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.info-card p,
.info-card address,
.info-card ul {
    margin: 0;
    color: var(--pure-black);
    font-family: INTER, Arial, sans-serif;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.55;
}

.info-card p + p,
.info-card p + address,
.info-card address + p {
    margin-top: 12px;
}

.info-card ul {
    padding-left: 20px;
}

.info-card a {
    color: var(--bleu-selection);
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.analytics-preference-button {
    margin-top: 16px;
    padding: 11px 14px;
    border: 1px solid var(--pure-black);
    border-radius: 8px;
    color: var(--pure-white);
    background: var(--pure-black);
    font-family: INTER, Arial, sans-serif;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}

.analytics-preference-button:hover,
.analytics-preference-button:focus-visible {
    color: var(--pure-black);
    background: var(--pure-white);
}

.analytics-preference-button:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.analytics-preference-button:disabled:hover,
.analytics-preference-button:disabled:focus-visible {
    color: var(--pure-white);
    background: var(--pure-black);
}

.analytics-preference-status {
    margin-top: 10px !important;
    color: var(--gris-texte) !important;
    font-size: 13px !important;
}

.back-to-catalog {
    display: inline-flex;
    align-items: center;
    margin-top: 24px;
    color: var(--gris-texte);
    font-family: INTER, Arial, sans-serif;
    font-size: 0.875rem;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.release-list {
    display: grid;
    gap: 12px;
}

.release-item {
    overflow: hidden;
    border: 1px solid var(--gris-utile);
    border-radius: 16px;
    background: var(--pure-white);
}

.release-item summary {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 28px;
    color: var(--pure-black);
    cursor: pointer;
    font-family: INTER, Arial, sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    list-style: none;
}

.release-item summary::-webkit-details-marker {
    display: none;
}

.release-item summary::after {
    flex: 0 0 auto;
    color: var(--bleu-selection);
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
}

.release-item[open] summary {
    border-bottom: 1px solid var(--gris-utile);
}

.release-item[open] summary::after {
    content: '−';
}

.release-item summary:focus-visible {
    outline: 2px solid var(--bleu-selection);
    outline-offset: -4px;
}

.release-content {
    padding: 22px 28px 28px;
}

.release-meta {
    margin: 0 0 12px;
    color: var(--gris-texte);
    font-family: INTER, Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 450;
}

.release-content p:last-child {
    margin: 0;
    color: var(--pure-black);
    font-family: INTER, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.55;
}

.release-content a {
    color: var(--bleu-selection);
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.info-page .site-footer {
    height: auto;
    min-height: 60px;
    margin-top: auto;
    padding: 0;
}

.info-page .site-footer-content {
    height: auto;
    min-height: 60px;
    padding: 16px 20px;
}

@media (max-width: 789px) {
    .info-page .page-header {
        padding: 32px 20px 24px;
    }

    .info-page-main {
        width: min(100% - 32px, 760px);
        margin-bottom: 32px;
    }

    .info-card {
        padding: 22px 20px;
        border-radius: 12px;
    }

    .release-item {
        border-radius: 12px;
    }

    .release-item summary {
        min-height: 60px;
        padding: 18px 20px;
        font-size: 1rem;
    }

    .release-content {
        padding: 20px;
    }

    .site-footer {
        height: auto;
        min-height: 60px;
        padding: 16px 20px;
    }

    .site-footer-links {
        flex-wrap: wrap;
        gap: 6px 10px;
        line-height: 1.45;
    }
}

.page-header {
    background-color: transparent;
    width: 100%;
    height: 200px;

}

.page-title {
    display: flex;
    justify-content: center;
    align-items: center; 

}

/* Navigation principale des cinq familles de matériel. Chaque intitulé reste
   dans un h4 et le trait de 2 px est porté par le bouton actif. */
.catalog-category-nav {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    min-height: 31px;
    margin-top: 24px;
    padding: 0 20px;
}

/* Le sélecteur est la variante compacte de la navigation des catégories.
   Il n'est affiché qu'en format téléphone. */
.catalog-category-mobile-label,
.catalog-category-mobile-select {
    display: none;
}

.catalog-category-button {
    position: relative;
    display: block;
    padding: 0 2px 8px;
    color: var(--pure-black);
    transition: color 0.18s ease;
}

.catalog-category-button::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    min-height: 2px;
    max-height: 2px;
    background-color: var(--bleu-selection);
    content: '';
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.18s ease;
    will-change: clip-path;
}

.catalog-category-button.is-active {
    color: var(--bleu-selection);
    /* Épaissit visuellement sans changer la largeur du mot, afin que la
       navigation ne se décale pas lors d’un changement de catégorie. */
    -webkit-text-stroke: 0.2px currentColor;
    text-shadow: 0 0 0.15px currentColor;
}

.catalog-category-button.is-active::after {
    clip-path: inset(0 0 0 0);
}

.catalog-category-button:focus-visible {
    outline: 2px solid var(--bleu-selection);
    outline-offset: 3px;
    border-radius: 2px;
}

* {
    box-sizing: border-box;
}










/*Types de Textes*/

a { /*Ne modifie pas les liens <a> */
  color: inherit;         /* Garde la couleur exacte de votre h4 */
  font-family: inherit;   /* Garde la même police */
  font-size: inherit;     /* Garde la même taille */
  font-weight: inherit;   /* Garde l'épaisseur (gras) */
  text-decoration: none;  /* Supprime le soulignage du lien */
}

button { /* Ne modifie pas l'apparence du texte autour */
  background: none;       /* Supprime le fond gris par défaut */
  border: none;           /* Supprime la bordure 3D par défaut */
  padding: 0;             /* Supprime l'espacement interne */
  margin: 0;              /* Supprime les marges externes */
  color: inherit;         /* Garde la couleur exacte du texte parent (ex: h4) */
  font-family: inherit;   /* Garde la même police */
  font-size: inherit;     /* Garde la même taille */
  font-weight: inherit;   /* Garde l'épaisseur (gras) */
  line-height: inherit;   /* Garde le même interligne */
  text-align: inherit;    /* Garde l'alignement du texte (évite le centrage forcé) */
  cursor: pointer;        /* Affiche la main au survol comme sur un lien */
}

/* Bouton flottant des éléments retenus. Il est ancré en bas à droite afin de
   se déployer depuis ce point sans être entraîné par le défilement. */
.selection-summary-button {
    width: 60px;
    height: 60px;
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10;
    display: grid;
    place-items: center;
    background-color: var(--bleu-selection);
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0);
    transform-origin: bottom right;
    transition: right 0.3s ease-in-out, transform 0.25s ease-out, opacity 0.2s ease-out, visibility 0s linear 0.25s;
}

.selection-summary-button.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
    animation: selection-summary-enter 0.35s ease-out 0.2s both;
    transition: right 0.3s ease-in-out, transform 0.25s ease-out, opacity 0.2s ease-out;
}

@keyframes selection-summary-enter {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    70% {
        opacity: 1;
        transform: scale(1.08);
    }
    85% {
        transform: scale(0.97);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.selection-summary-button img {
    width: 30px;
    height: 30px;
}

/* 380 px pour la barre + 12 px de marge du catalogue + 40 px d'écart. */
body.is-sidebar-open .selection-summary-button {
    right: 432px;
}


h6 {
    font-family: INTER;
    font-size: 9px;
    margin: 0;
}

h5 {
    font-family: INTER;
    font-size: 11px;
    color: var(--gris-texte);
    font-weight: 400;
    margin: 0;
}

h4 {
    font-family: INTER;
    font-size: 14px;
    color: var(--pure-black);
    font-weight: 450;
    margin: 0;
}

h3 {
    font-family: INTER;
    font-size: 18px;
    color: var(--pure-black);
    font-weight: 500;
    margin: 0;
}






.filter-title-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 16px;
    height: 16px;

    border: 2px solid var(--gris-utile);
    border-radius: 50%;

    background-color: var(--pure-white);
    color: var(--gris-utile);

    font-size: 11px;
    font-weight: bold;
    text-decoration: none;

    cursor: pointer;
    transition: 0.2s;
}

.help-icon:hover {
    background-color: #eaeaea;
    border-color: var(--gris-utile);
    color: var(--gris-utile);
}










/*Containeur du filtre et du contenu*/



.sidebar-shell {
    --sidebar-visible-height: 0px;
    flex: 0 0 380px;
    width: 380px;
    height: fit-content;
    align-self: flex-start;
    position: sticky;
    /* Garde le bas du panneau à 40 px de la fenêtre, sans le décaler si le
       contenu est plus haut que la fenêtre. */
    top: max(40px, calc(100dvh - var(--sidebar-visible-height) - 40px));
    z-index: 1;
    transition: flex-basis 0.3s ease-in-out, width 0.3s ease-in-out;
}

.sidebar-shell.is-sidebar-closed {
    flex-basis: 0;
    width: 0;
}

.sidebar-shell.is-sidebar-closed .sidebar {
    /* Le panneau garde sa taille le temps de sortir de l'écran, alors que
       son conteneur libère immédiatement la place pour la grille. */
    position: absolute;
    right: 0;
    width: 380px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    background-color:var(--pure-white);
    width: 100%;
    border-radius: 10px;
    min-height: calc(100dvh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-x: hidden;
    overflow-y: hidden;
    transition: transform 0.3s ease-in-out;
}

.sidebar.is-closed {
    pointer-events: none;
    transform: translateX(calc(100% + 40px));
}

.catalog-layout {
    background-color:transparent;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    width: 100%;
    padding: 40px 40px 40px 0px;
}

.sidebar-panels {
    width: 100%;
    position: relative;
    height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(100dvh - 120px);
    overscroll-behavior-y: auto; /* À la limite, le scroll remonte à la page. */
    scrollbar-gutter: stable;
    /* Occupe toujours l'espace restant de la sidebar, même si le panneau
       actuellement affiché contient peu d'éléments. */
    flex: 1 1 auto;
    min-height: 0;
    transition: height 0.3s ease-in-out;
}

.sidebar-panels-track {
    width: 1140px;
    display: flex;
    position: relative;
    height: 0;
    overflow: hidden;
    align-items: flex-start;
    transition: left 0.3s ease-in-out, height 0.3s ease-in-out;
    left: 0px
}

.sidebar-panel {
    flex: 0 0 380px;
    width: 380px;
    height: fit-content;
    align-self: flex-start;
}

.catalog-panel-content {
    min-height: 1px;
}

.filter-group {
    background-color:transparent;
    height: fit-content;
    padding: 0px 26px 30px 26px;
    position: relative;
    
}

.product-details-row {
    width: 100%;
    height: fit-content;
    background-color: transparent;
    position: relative;
    padding: 0px 26px;
}

.product-details-image-section {
    width: 100%;
    height: fit-content;
    background-color: transparent;
    position: relative;
    padding: 40px;
    align-items: center;

}

.product-details-image {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}




.product-details-field {
    display: flex;
    justify-content: space-between;
}

.product-details-field h3 {
    padding-top: 40px;
}

.empty-info-state,
.empty-panel-state {
    margin: 0;
    padding: 40px 26px;
    color: var(--gris-texte);
    font-family: INTER, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.45;
}

/* Les valeurs de la fiche se renouvellent une à une afin de rendre visible
   le changement de projecteur sans déplacer la mise en page. */
.is-info-updating {
    animation: info-value-refresh 470ms ease-in-out var(--info-cascade-delay, 0ms) both;
}

@keyframes info-value-refresh {
    0% {
        color: inherit;
        opacity: 1;
    }
    38%, 58% {
        color: var(--pure-white);
        opacity: 0;
    }
    100% {
        color: inherit;
        opacity: 1;
    }
}

/* Les cellules d'accessoires suivent le même renouvellement visuel que les
   valeurs de l'onglet Infos : disparition vers le blanc, puis apparition en
   cascade des données du projecteur nouvellement sélectionné. */
.cellule-accessories.is-accessory-leaving {
    pointer-events: none;
    animation: accessory-cell-fade-to-white 180ms ease-in var(--accessory-cascade-delay, 0ms) both;
}

.cellule-accessories.is-accessory-entering {
    opacity: 0;
    animation: accessory-cell-fade-from-white 290ms ease-out var(--accessory-cascade-delay, 0ms) both;
}

@keyframes accessory-cell-fade-to-white {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes accessory-cell-fade-from-white {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Le changement de catégorie anime uniquement les éléments remplacés. Les
   cartes deviennent momentanément blanches, tandis que titres, filtres et
   boutons s'effacent dans leur propre fond blanc — sans voile sur la page. */
.product-card.is-category-leaving {
    pointer-events: none;
    animation: category-card-shell-to-white 160ms ease-in var(--category-cascade-delay, 0ms) both;
}

.product-card.is-category-leaving .product-card-surface > *,
.product-card.is-category-leaving .product-accessories-link,
#catalog-products-content > .is-category-leaving:not(.product-card),
.catalog-panel-content > .is-category-leaving:not(.product-details-image-section),
.info-dynamic-value.is-category-leaving {
    pointer-events: none;
    animation: category-content-to-white 160ms ease-in var(--category-cascade-delay, 0ms) both;
}

.info-dynamic-value.is-category-leaving {
    animation-duration: 380ms;
}

.product-card.is-category-entering {
    animation: category-card-shell-from-white 220ms ease-out var(--category-cascade-delay, 0ms) both;
}

.product-card.is-category-entering .product-card-surface > *,
.product-card.is-category-entering .product-accessories-link,
#catalog-products-content > .is-category-entering:not(.product-card),
.catalog-panel-content > .is-category-entering:not(.product-details-image-section),
.info-dynamic-value.is-category-entering {
    animation: category-content-from-white 220ms ease-out var(--category-cascade-delay, 0ms) both;
}

.info-dynamic-value.is-category-entering {
    animation-duration: 380ms;
}

@keyframes category-card-shell-to-white {
    from {
        background-color: var(--gris-fond);
        box-shadow: 0 10px 10px -8px rgba(0, 0, 0, 0.1);
    }
    to {
        background-color: var(--pure-white);
        box-shadow: none;
    }
}

@keyframes category-card-shell-from-white {
    from {
        background-color: var(--pure-white);
        box-shadow: none;
    }
    to {
        background-color: var(--gris-fond);
        box-shadow: 0 10px 10px -8px rgba(0, 0, 0, 0.1);
    }
}

@keyframes category-content-to-white {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes category-content-from-white {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* L’image de la fiche Infos reçoit son propre voile blanc : elle ne disparaît
   pas brutalement avec les textes lorsque la catégorie change. */
.product-details-image-section.is-category-leaving .product-details-image::after,
.product-details-image-section.is-category-entering .product-details-image::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--pure-white);
    content: '';
    pointer-events: none;
}

.product-details-image-section.is-category-leaving .product-details-image::after {
    animation: category-image-to-white 380ms ease-in var(--category-cascade-delay, 0ms) both;
}

.product-details-image-section.is-category-entering .product-details-image::after {
    animation: category-image-from-white 380ms ease-out var(--category-cascade-delay, 0ms) both;
}

@keyframes category-image-to-white {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes category-image-from-white {
    from { opacity: 1; }
    to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .is-info-updating,
    .cellule-accessories.is-accessory-leaving,
    .cellule-accessories.is-accessory-entering,
    .selection-summary-button,
    .product-card.is-category-leaving,
    .product-card.is-category-entering,
    .product-card.is-category-leaving .product-card-surface > *,
    .product-card.is-category-entering .product-card-surface > *,
    .catalog-panel-content > .is-category-leaving,
    .catalog-panel-content > .is-category-entering,
    .product-details-image-section.is-category-leaving .product-details-image::after,
    .product-details-image-section.is-category-entering .product-details-image::after,
    .catalog-category-button,
    .catalog-category-button::after {
        animation: none;
        transition: none;
    }
}


.accessories-panel-content {
    width: 100%;
    min-height: 400px;
    position: relative;
    padding: 26px;
}

.accessories-compatible-heading h4 {
    color: var(--gris-texte);
}

.accessories-compatible-heading h3 {
    margin-top: 2px;
}

.accessories-grid {
    display: grid;
    grid-template-columns: repeat(2, 150px);
    justify-content: space-between;
    row-gap: 30px;
    margin-top: 74px;
}

.cellule-accessories {
    width: 150px;
    height: fit-content;
}

.cellule-accessories-img {
    height: 150px;
    width: 150px;
    position: relative;
    margin-bottom: 3px;
    background-color: var(--pure-white);
    border: 3px solid;
    border-radius: 20px;
    border-color: var(--gris-fond);
}

.cellule-accessories-img > .accessory-image {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: contain;
}

/* Un filtre loueur n'enlève jamais un accessoire compatible : il rend les
   options indisponibles visuellement secondaires après celles disponibles. */
.cellule-accessories-img.is-unavailable > .accessory-image,
.cellule-accessories-img.is-unavailable > .accessory-image-placeholder {
    filter: grayscale(1);
    opacity: 0.35;
}

/* Les nouveaux accessoires de catalogue n'ont pas systématiquement encore
   d'image. Cette vignette conserve une carte lisible en attendant l'asset. */
.accessory-image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    padding: 16px;
    box-sizing: border-box;
    border-radius: inherit;
    background: linear-gradient(135deg, #f4f4f4, #ffffff);
    color: var(--gris-texte);
    font-family: INTER, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.cellule-accessories h4 {
    margin-top: 2px;
    line-height: 1.15;
}

.cellule-accessories h5 {
    margin-top: 1px;
}

.accessories-status {
    margin: 28px 0 0;
    font-family: INTER, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: var(--gris-texte);
}

.accessories-status[hidden] {
    display: none;
}

.panel-divider {
    border: none;
    height: 2px;
    width: 100%;
    background-color: #DBDBDB;
    margin: 10px 0;          /* Espace au-dessus et en dessous */
    transform: translateZ(0);
}


.filter-options {
    background-color: transparent;
    height: fit-content;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

}

.filter-clear-action {
    padding: 40px 26px 30px;
}

.filter-clear-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

#clear-filters,
.selection-only-filter {
    padding: 6px 10px;
    border: 1px solid var(--gris-utile);
    border-radius: 50px;
    background-color: var(--pure-white);
    font-family: INTER, Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#clear-filters:hover,
#clear-filters:focus-visible,
.selection-only-filter:hover,
.selection-only-filter:focus-visible {
    border-color: var(--bleu-selection);
}

.selection-only-filter.is-active {
    border-color: var(--bleu-selection);
    background-color: var(--bleu-selection);
    color: var(--pure-white);
}

.filter-options-toggle {
    display: block;
    margin-top: 12px;
    font-family: INTER, Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    text-decoration: underline;
}

/* On masque la checkbox native */
.filter input {
    display: none;
}

/* Apparence par défaut */
.filter-box,
.filter-box-no-image {
    padding: 6px 10px;
    background-color: var(--pure-white);
    border-style: solid;
    border-width: 1px;
    border-color: var(--gris-utile);
    border-radius: 50px;
    cursor: pointer;
    transition: 0.2s;
    font-family: INTER;
    font-size: 12px;
    font-weight: 400;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.filter-box {
    padding: 4px 10px 4px 4px;
    transition: 0.3s ease-in-out;
}

.filter-box img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 50px;
}

/* Apparence lorsque la checkbox est cochée */
.filter input:checked + .filter-box {
    background-color: var(--bleu-selection);
    color: var(--pure-white);
}
.filter input:checked + .filter-box-no-image {
    background-color: var(--bleu-selection);
    color: var(--pure-white);
}

.sidebar-tab-bar-wrapper {
    padding: 5px;
    position: relative;
    flex: 0 0 auto;
}

.sidebar-tab-bar {
    --sidebar-tab-indicator-x: 0px;
    background-color: var(--gris-fond);
    width: fit-content;
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 4px;
    gap: 4px;
    border-radius: 5px;
    position: relative;
}

.sidebar-tab-button {
    position: relative;
    z-index: 1;
    min-height: 28px;
    /* Le fond actif reprend toute cette zone : 10 px de chaque côté du texte
       évitent que son bord droit paraisse collé au libellé. */
    padding: 0 10px;
    border-radius: 3px;
    color: var(--pure-black);
    font-family: INTER, Arial, sans-serif;
    font-size: 14px;
    font-weight: 450;
    line-height: 1;
}

.sidebar-tab-button:focus-visible {
    outline: 2px solid var(--bleu-selection);
    outline-offset: 2px;
}

.sidebar-tab-indicator {
    top: 4px;
    left: 0;
    width: 0;
    height: calc(100% - 8px);
    background-color: var(--pure-white);
    position: absolute;
    border-radius: 3px;
    pointer-events: none;
    transform: translateX(var(--sidebar-tab-indicator-x));
    transition: transform 0.28s ease, width 0.28s ease;
    will-change: transform, width;
}

.sidebar-close-placeholder {
    background-color: var(--rouge-warning);
    width: 30px;
    height: 30px;
    position: absolute;
    border-radius: 7px;
    right: 5px;
    top: 5px;
    z-index: 2;
    color: var(--pure-white);
    display: grid;
    place-items: center;
    transition: background-color 0.2s ease-in-out;
}

.sidebar-close-icon {
    width: 16px;
    height: 16px;
}

.sidebar-shell.is-sidebar-closed .sidebar-close-placeholder {
    background-color: var(--bleu-selection);
}

.product-grid {
    background-color: var(--gris-fond);
    flex: 1; /* Prend le reste de largeur par rapport à la barre latérale. */
    display: grid;
    /* Crée des colonnes automatiques d'au moins 250px de large */
    grid-template-columns: repeat(auto-fit, minmax(280px, 280px));
    gap: 40px; /* Espace entre les cartes */
    padding: 0px 40px 0px 40px;
    justify-content: center;
    height: fit-content;
}

.product-search {
    grid-column: 1 / -1;
    justify-self: start;
}

/* Le wrapper est purement logique : les cartes restent des enfants directs
   de la grille afin de conserver les trois colonnes du catalogue. */
#catalog-products-content {
    display: contents;
}

.product-search-field {
    width: 210px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--pure-white);
    border-radius: 999px;
}

.product-search-field label {
    display: block;
    width: 100%;
    height: 100%;
}

.product-search-field h4 {
    position: absolute;
    top: 50%;
    left: 20px;
    color: var(--gris-texte);
    pointer-events: none;
    transform: translateY(-50%);
    transition: opacity 0.15s ease-in-out;
}

.product-search-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 16px;
    height: 16px;
    pointer-events: none;
    transform: translateY(-50%);
    transition: opacity 0.15s ease-in-out;
}

.product-search-field:focus-within h4,
.product-search-field.has-value h4 {
    opacity: 0;
}

.product-search-field:focus-within .product-search-icon,
.product-search-field.has-value .product-search-icon {
    opacity: 0;
}

.product-search-clear {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
    transition: opacity 0.15s ease-in-out;
}

.product-search-clear img {
    width: 16px;
    height: 16px;
}

.product-search-field.has-value .product-search-clear {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

.product-search-field input {
    width: 100%;
    height: 100%;
    padding: 0 46px 0 20px;
    border: 0;
    border-radius: inherit;
    outline: 0;
    background: transparent;
    font-family: INTER, Arial, sans-serif;
    font-size: 14px;
    color: var(--pure-black);
}

.product-search-field input::-webkit-search-cancel-button {
    appearance: none;
}











.loading-status,
.loading-error {
    font-family: INTER, Arial, sans-serif;
    color: #666;
}

.loading-error {
    color: #a40000;
}

.no-results-status {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--gris-texte);
    font-family: INTER, Arial, sans-serif;
    font-size: 13px;
}











/* Cartes produit */

.product-card {
    width: 280px;
    height: 162px;
    border-radius: 20px;
    background-color: var(--gris-fond);
    box-shadow: 0 10px 10px -8px rgba(0, 0, 0, 0.1);
    position: relative;


}

.product-card--without-accessories {
    height: 140px;
}

.product-card-surface {
    background-color: var(--pure-white);
    width: 280px;
    height: 140px;
    border-radius: 20px;
    position: absolute;
}

.product-rental-logos {
    position: absolute;
    z-index: 1;
    left: 10px;
    bottom: 10px;
    width: 80px;
    height: 20px;
    background: transparent;
    isolation: isolate;
}

.product-rental-logo {
    position: absolute;
    left: calc(var(--rental-logo-index) * 12px);
    top: 0;
    z-index: var(--rental-logo-z-index);
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    border: 1px solid var(--pure-white);
    border-radius: 50%;
    background: var(--pure-white);
    object-fit: contain;
}

.product-rental-logos::after {
    position: absolute;
    z-index: 10;
    left: 0;
    bottom: calc(100% + 6px);
    width: max-content;
    max-width: 180px;
    padding: 5px 7px;
    border-radius: 5px;
    background: var(--noir-feutre);
    color: var(--gris-fond);
    content: attr(data-tooltip);
    font-family: INTER, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transform: translateY(2px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.product-rental-logos:hover::after,
.product-rental-logos:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

/* Les accessoires reprennent les bulles des projecteurs, avec la limite
   visuelle demandée de trois loueurs et un ancrage à 5 px du bord. */
.accessory-rental-logos {
    position: absolute;
    z-index: 1;
    left: 5px;
    bottom: 5px;
    width: 44px;
    height: 20px;
    background: transparent;
    isolation: isolate;
}

.accessory-rental-logo {
    position: absolute;
    left: calc(var(--rental-logo-index) * 12px);
    top: 0;
    z-index: var(--rental-logo-z-index);
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    border: 1px solid var(--pure-white);
    border-radius: 50%;
    background: var(--pure-white);
    object-fit: contain;
}

.accessory-rental-logos::after {
    position: absolute;
    z-index: 10;
    left: 0;
    bottom: calc(100% + 6px);
    width: max-content;
    max-width: 180px;
    padding: 5px 7px;
    border-radius: 5px;
    background: var(--noir-feutre);
    color: var(--gris-fond);
    content: attr(data-tooltip);
    font-family: INTER, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transform: translateY(2px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.accessory-rental-logos:hover::after,
.accessory-rental-logos:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.product-card-image { /* Container de l'image */
    width: 90px;
    height: 90px;
    position: absolute;
    top: 10px;
    left: 10px;
    cursor: pointer;
}

.product-card-image.is-placeholder {
    display: grid;
    place-items: center;
    padding: 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f4f4f4, #ffffff);
}

.product-card-image.is-color-swatch,
.product-details-image.is-color-swatch {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
}

.product-image-placeholder {
    color: var(--gris-texte);
    font-family: INTER, Arial, sans-serif;
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.product-accessories-link {
    color: #777777;
    position: absolute;
    left: 15px;
    bottom: 6px;
    text-decoration: underline;
}

.product-card-details {
    position: absolute;
    width: 155px;
    height: 90px;
    right: 15px;
    top: 10px;
    text-align: end;
}

.product-card-specifications {
    position: absolute;
    width: 100%;
    height: fit-content;
    text-align: start;
    bottom: 0px;
}

.product-quantity-control {
    background-color: #656565;
    border-radius: 50px;
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.product-quantity-control.is-active {
    background-color: var(--bleu-selection);
    width: 80px;
}

.quantity-value {
    display: none;
    margin: 0;
    color: var(--pure-white);
    line-height: 1;
    text-align: center;
    cursor: text;
    min-width: 24px;
}

.product-quantity-control.is-active .quantity-value {
    display: block;
}

.quantity-increment-icon,
.quantity-reset-icon,
.accessory-quantity-increment-icon,
.accessory-quantity-reset-icon {
    position: absolute;
    top: 0;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.quantity-increment-icon,
.accessory-quantity-increment-icon {
    right: 0;
}

.quantity-increment-icon img,
.accessory-quantity-increment-icon img {
    width: 10px;
    height: auto;
}

.quantity-reset-icon {
    display: none;
}

.quantity-reset-icon,
.accessory-quantity-reset-icon {
    left: 0;
}

.quantity-reset-icon img,
.accessory-quantity-reset-icon img {
    width: 11px;
    height: auto;
}

.product-quantity-control:not(.is-active) .quantity-increment-icon,
.accessory-quantity-control:not(.is-active) .accessory-quantity-increment-icon {
    inset: 0;
}

.product-quantity-control.is-active .quantity-reset-icon {
    display: grid;
}

.quantity-increment-icon:focus-visible,
.quantity-reset-icon:focus-visible,
.accessory-quantity-increment-icon:focus-visible,
.accessory-quantity-reset-icon:focus-visible {
    outline: 2px solid var(--pure-white);
    outline-offset: -2px;
}

/* Indique qu'au moins un accessoire est sélectionné pour ce projecteur. */
.product-accessory-indicator {
    position: absolute;
    right: 50px;
    bottom: 15px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background-color: var(--gris-fond);
    transition: right 0.2s ease;
}

.product-accessory-indicator[hidden] {
    display: none;
}

.product-accessory-indicator img {
    width: 12px;
    height: 12px;
}

.product-accessory-indicator::after {
    position: absolute;
    z-index: 10;
    right: 0;
    bottom: calc(100% + 6px);
    width: max-content;
    max-width: 180px;
    padding: 5px 7px;
    border-radius: 5px;
    background: var(--noir-feutre);
    color: var(--gris-fond);
    content: attr(data-tooltip);
    font-family: INTER, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transform: translateY(2px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.product-accessory-indicator:hover::after,
.product-accessory-indicator:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

/* Le repère reste juste à gauche lorsque le compteur s'élargit. */
.product-quantity-control.is-active ~ .product-accessory-indicator {
    right: 100px;
}

/* Compteur des accessoires : même comportement que les projecteurs, placé à
   5 px du coin inférieur droit de l'image. */
.accessory-quantity-control {
    background-color: #656565;
    border-radius: 50px;
    position: absolute;
    z-index: 2;
    right: 5px;
    bottom: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.accessory-quantity-control.is-active {
    background-color: var(--bleu-selection);
    width: 80px;
}

.accessory-quantity-value {
    display: none;
    margin: 0;
    color: var(--pure-white);
    line-height: 1;
    text-align: center;
    cursor: text;
    min-width: 24px;
}

.accessory-quantity-control.is-active .accessory-quantity-value {
    display: block;
}

.accessory-quantity-reset-icon {
    display: none;
}

.accessory-quantity-control.is-active .accessory-quantity-reset-icon {
    display: grid;
}

/* Format téléphone : le catalogue devient une seule colonne et la sidebar
   desktop est remplacée visuellement par une feuille qui glisse depuis le
   bas. Les trois contenus restent les mêmes dans le DOM, mais sont ouverts
   séparément depuis les filtres, les fiches produits et les accessoires. */
.mobile-filters-button,
.mobile-sidebar-heading,
.mobile-sidebar-backdrop {
    display: none;
}

@media (max-width: 789px) {
    body {
        display: flex;
        min-height: 100dvh;
        flex-direction: column;
        padding-bottom: 0;
    }

    html.is-mobile-scroll-locked,
    body.is-mobile-scroll-locked {
        overflow: hidden;
        overscroll-behavior: none;
    }

    body.is-mobile-scroll-locked {
        touch-action: pan-y;
    }

    .page-header {
        display: none;
    }

    .catalog-category-nav {
        display: block;
        min-height: 0;
        margin-top: 0;
        padding: 16px 20px 0;
    }

    .catalog-category-nav > h4 {
        display: none;
    }

    .catalog-category-mobile-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .catalog-category-mobile-select {
        display: block;
        width: 100%;
        height: 42px;
        padding: 0 42px 0 16px;
        border: 1px solid var(--gris-utile);
        border-radius: 12px;
        outline: none;
        background-color: var(--pure-white);
        color: var(--pure-black);
        font-family: INTER, Arial, sans-serif;
        font-size: 15px;
        font-weight: 500;
    }

    .catalog-category-mobile-select:focus-visible {
        border-color: var(--bleu-selection);
        box-shadow: 0 0 0 2px rgba(32, 138, 250, 0.2);
    }

    .catalog-layout {
        display: block;
        flex: 1 0 auto;
        min-height: 0;
        padding: 20px 20px 100px;
    }

    #footer-container {
        margin-top: auto;
        flex: 0 0 auto;
        padding-bottom: 80px;
        background-color: var(--pure-white);
    }

    .product-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
        padding: 0;
        justify-items: center;
    }

    .product-search {
        position: fixed;
        z-index: 20;
        bottom: max(20px, calc(12px + var(--mobile-keyboard-offset)), calc(12px + env(keyboard-inset-height, 0px)));
        left: 50%;
        justify-self: auto;
        transform: translateX(-50%);
        transition: bottom 0.18s ease;
    }

    .product-search-field {
        width: 210px;
        height: 40px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    }

    /* Une fois ouvert, le compteur garde exactement le même dessin, mais ses
       trois actions n'empiètent plus les unes sur les autres au toucher.
       Les décalages des icônes compensent l'étroitesse des boutons latéraux,
       leur position visuelle reste donc inchangée. */
    .product-quantity-control.is-active .quantity-value {
        position: absolute;
        z-index: 1;
        top: -7px;
        left: 20px;
        display: grid;
        width: 40px;
        height: 44px;
        min-width: 0;
        place-items: center;
        touch-action: manipulation;
    }

    .product-quantity-control.is-active .quantity-value[contenteditable='true'],
    .product-quantity-control.is-active .quantity-value[contenteditable='true']:focus {
        outline: none;
        border: 0;
        box-shadow: none;
        caret-color: var(--pure-white);
        -webkit-tap-highlight-color: transparent;
    }

    .product-quantity-control.is-active .quantity-reset-icon,
    .product-quantity-control.is-active .quantity-increment-icon {
        z-index: 2;
        top: -7px;
        width: 20px;
        height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .product-quantity-control.is-active .quantity-reset-icon img {
        transform: translateX(5px);
    }

    .product-quantity-control.is-active .quantity-increment-icon img {
        transform: translateX(-5px);
    }

    .mobile-filters-button {
        position: fixed;
        z-index: 20;
        bottom: 20px;
        left: 20px;
        display: grid;
        width: 40px;
        height: 40px;
        place-items: center;
        border-radius: 50%;
        background-color: var(--pure-white);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    }

    .mobile-filters-button:focus-visible {
        outline: 2px solid var(--bleu-selection);
        outline-offset: 3px;
    }

    .mobile-filters-button img {
        width: 20px;
        height: 20px;
    }

    .selection-summary-button,
    .selection-summary-button.is-visible,
    body.is-sidebar-open .selection-summary-button {
        right: 20px;
        bottom: 20px;
        z-index: 20;
        width: 40px;
        height: 40px;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: scale(1);
        animation: none;
        transition: none;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    }

    .selection-summary-button img {
        width: 22px;
        height: 22px;
    }

    .mobile-sidebar-backdrop {
        position: fixed;
        z-index: 29;
        inset: 0;
        display: block;
        background: rgba(245, 245, 245, 0.22);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        touch-action: none;
        transition: opacity 0.2s ease, visibility 0s linear 0.2s;
    }

    body.is-mobile-sidebar-open .mobile-sidebar-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.2s ease, visibility 0s;
    }

    .sidebar-shell,
    .sidebar-shell.is-sidebar-closed {
        --mobile-sheet-drag-y: 0px;
        position: fixed;
        z-index: 30;
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 85dvh;
        min-height: 85dvh;
        max-height: 85dvh;
        flex: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(calc(100% + var(--mobile-sheet-drag-y)));
        pointer-events: none;
        transition: transform 0.3s ease-in-out, opacity 0.15s ease-in-out, visibility 0s linear 0.3s;
    }

    .sidebar-shell.is-sidebar-closed .sidebar {
        position: static;
        right: auto;
        width: 100%;
    }

    .sidebar-shell.is-mobile-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(var(--mobile-sheet-drag-y));
        pointer-events: auto;
        transition: transform 0.3s ease-in-out, opacity 0.15s ease-in-out, visibility 0s;
    }

    .sidebar-shell.is-mobile-dragging {
        transition: none;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 100%;
        max-height: 100%;
        border-radius: 30px 30px 0 0;
        transform: none;
        pointer-events: auto;
    }

    /* Réserve visuellement la zone du handle : les titres et les filtres
       défilent sous cette bande blanche au lieu de passer derrière lui. */
    .sidebar::before {
        position: absolute;
        z-index: 1;
        top: 0;
        right: 0;
        left: 0;
        height: 42px;
        background-color: var(--pure-white);
        content: '';
        pointer-events: none;
    }

    .sidebar.is-closed {
        transform: none;
    }

    .mobile-sidebar-heading {
        display: flex;
        min-height: 92px;
        align-items: flex-end;
        justify-content: center;
        padding: 46px 26px 20px;
        text-align: center;
    }

    .mobile-sidebar-heading h3 {
        margin: 0;
        color: #d2d2d4;
        font-family: INTER, Arial, sans-serif;
        font-size: 18px;
        font-weight: 500;
        line-height: 1;
    }

    .sidebar-tab-bar-wrapper {
        display: none;
    }

    .sidebar-close-placeholder,
    .sidebar-shell.is-sidebar-closed .sidebar-close-placeholder {
        top: 8px;
        right: auto;
        left: 50%;
        display: grid;
        width: 72px;
        height: 26px;
        place-items: center;
        border-radius: 20px;
        background-color: transparent;
        transform: translateX(-50%);
        touch-action: none;
        cursor: grab;
    }

    .sidebar-close-placeholder:active {
        cursor: grabbing;
    }

    .sidebar-close-placeholder::before {
        display: block;
        width: 46px;
        height: 8px;
        border-radius: 99px;
        background-color: #e4e4e4;
        content: '';
    }

    .sidebar-close-icon {
        display: none;
    }

    .sidebar-panels {
        height: 0 !important;
        max-height: none;
        position: relative;
        z-index: 0;
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-gutter: auto;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar-panels-track {
        width: 300vw;
        transition: none;
    }

    .sidebar-panel {
        width: 100vw;
        flex-basis: 100vw;
    }

    .filter-clear-action {
        padding: 16px 26px 30px;
    }

    .filter-group {
        padding-right: 26px;
        padding-left: 26px;
    }

    .product-details-row {
        padding-right: 26px;
        padding-left: 26px;
    }

    .product-details-image-section {
        padding: 20px 40px 40px;
    }

    .accessories-panel-content {
        min-height: 0;
        padding: 16px 26px 40px;
    }

    .accessories-grid {
        grid-template-columns: repeat(2, minmax(0, 150px));
        justify-content: space-between;
    }
}

/* Cette règle suit les styles mobiles du catalogue : les pages éditoriales
   conservent leur titre, contrairement à l'en-tête du catalogue. */
@media (max-width: 789px) {
    .info-page .page-header {
        display: block;
        height: auto;
        padding: 32px 20px 24px;
    }

}
