/*
 * Les Cahiers du CIRES — thème « Google Scholar »
 * Police Arial, liens bleus, listes de résultats sobres, filtres en colonne de gauche.
 * Feuille de style unique de la revue (remplace revue.css et publications.css).
 */

:root {
    --font-scholar: Arial, sans-serif;

    --gs-text: #222;
    --gs-muted: #666;
    --gs-light: #777;
    --gs-link: #1a0dab;
    --gs-visited: #660099;
    --gs-green: #006621;
    /* Accent de la revue (terre cuite) : filtre actif, page courante, logo */
    --gs-red: #a7400f;
    --gs-border: #e6e3df;
    --gs-border-strong: #cfcac4;
    --gs-soft: #f6f4f1;
    /* Boutons bleu nuit, plus posés que le bleu vif de Scholar */
    --gs-btn: #1f2d4d;
    --gs-btn-border: #1f2d4d;
    --gs-btn-hover: #162139;
    --cires-orange: #a7400f;
    --gs-ink: #201c19;
    --gs-paper: #faf9f7;

    --gs-container: 1120px;
    --gs-sidebar: 170px;
    --gs-results: 680px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: #fff;
    color: var(--gs-text);
    font-family: var(--font-scholar);
    font-size: 13px;
    line-height: 1.46;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--gs-link);
    text-decoration: none;
}

a:visited {
    color: var(--gs-visited);
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3 {
    font-weight: normal;
    margin: 0;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

.gs-container {
    width: min(calc(100% - 32px), var(--gs-container));
    margin-inline: auto;
}

.gs-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ------------------------------------------------------------------
   En-tête : logo, recherche, navigation
------------------------------------------------------------------ */

/* Bande institutionnelle fine au-dessus de l'en-tête */
.gs-band {
    background: var(--gs-ink);
    color: #cfc8c0;
    font-size: 12px;
}

.gs-band-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 30px;
}

.gs-band a,
.gs-band a:visited {
    color: #f1ece6;
}

.gs-hdr {
    border-bottom: 1px solid var(--gs-border);
    background: #fff;
}

.gs-hdr-top {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 72px;
    padding: 10px 0;
}

.gs-logo {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: column;
    line-height: 1.05;
    padding-left: 12px;
    border-left: 3px solid var(--cires-orange);
    color: var(--gs-ink) !important;
    text-decoration: none !important;
}

.gs-logo-title {
    font-size: 22px;
    color: var(--gs-ink);
    letter-spacing: -0.3px;
}

.gs-logo-title strong {
    color: var(--cires-orange);
    font-weight: bold;
}

.gs-logo-sub {
    font-size: 11px;
    color: var(--gs-light);
    margin-top: 4px;
    letter-spacing: 0.2px;
}

.gs-search {
    flex: 1 1 auto;
    display: flex;
    max-width: 620px;
}

.gs-search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    font-size: 16px;
    border: 1px solid #d9d9d9;
    border-right: 0;
    border-radius: 2px 0 0 2px;
    outline: none;
}

.gs-search input[type="search"]:hover {
    border-color: #b9b9b9;
}

.gs-search input[type="search"]:focus {
    border-color: var(--gs-btn);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.gs-search button {
    flex: 0 0 auto;
    width: 56px;
    height: 40px;
    border: 1px solid var(--gs-btn-border);
    border-radius: 0 2px 2px 0;
    background: var(--gs-btn);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gs-search button:hover {
    background: var(--gs-btn-hover);
}

.gs-search svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.gs-hdr-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
}

.gs-hdr-right a:visited {
    color: var(--gs-link);
}

.gs-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 10px 9px;
}

.gs-menu-toggle span {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: var(--gs-muted);
}

/* Barre de navigation : liens gris, élément actif en rouge (comme les filtres Scholar). */
.gs-nav {
    display: flex;
    align-items: stretch;
    gap: 4px;
    margin-top: -2px;
}

.gs-nav > a,
.gs-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 36px;
    padding: 0 10px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: none;
    color: var(--gs-muted) !important;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none !important;
}

.gs-nav > a:hover,
.gs-nav-toggle:hover {
    color: var(--gs-text) !important;
}

.gs-nav > a.active,
.gs-nav-dropdown.active > .gs-nav-toggle {
    color: var(--gs-red) !important;
    border-bottom-color: var(--gs-red);
    font-weight: bold;
}

.gs-nav-caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
}

.gs-nav-dropdown {
    position: relative;
}

.gs-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    min-width: 200px;
    padding: 6px 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.gs-nav-dropdown.open .gs-nav-menu {
    display: block;
}

.gs-nav-menu a {
    display: block;
    padding: 7px 16px;
    color: var(--gs-text) !important;
    text-decoration: none !important;
}

.gs-nav-menu a:hover {
    background: var(--gs-soft);
}

.gs-nav-menu a.active {
    color: var(--gs-red) !important;
    font-weight: bold;
}

/* ------------------------------------------------------------------
   Boutons et formulaires (style « gs_btn »)
------------------------------------------------------------------ */

.gs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 29px;
    padding: 0 12px;
    border: 1px solid #dcdcdc;
    border-radius: 2px;
    background: var(--gs-soft);
    color: #444 !important;
    font-size: 13px;
    font-weight: bold;
    line-height: 27px;
    cursor: pointer;
    text-decoration: none !important;
    white-space: nowrap;
}

.gs-btn:hover {
    border-color: #c6c6c6;
    background: #f8f8f8;
    color: var(--gs-text) !important;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.gs-btn-act {
    border-color: var(--gs-btn-border);
    background: var(--gs-btn);
    color: #fff !important;
}

.gs-btn-act:hover {
    border-color: #2f5bb7;
    background: var(--gs-btn-hover);
    color: #fff !important;
}

.gs-input,
.gs-select,
.gs-textarea {
    width: 100%;
    min-height: 29px;
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-top-color: #c0c0c0;
    border-radius: 1px;
    background: #fff;
}

.gs-textarea {
    min-height: 110px;
    resize: vertical;
}

.gs-input:hover,
.gs-select:hover,
.gs-textarea:hover {
    border-color: #b9b9b9;
}

.gs-input:focus,
.gs-select:focus,
.gs-textarea:focus {
    outline: none;
    border-color: var(--gs-btn);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ------------------------------------------------------------------
   Page de résultats : colonne de filtres + liste
------------------------------------------------------------------ */

.gs-ab {
    border-bottom: 1px solid var(--gs-border);
}

.gs-ab-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 40px;
    padding-left: calc(var(--gs-sidebar) + 24px);
    color: var(--gs-light);
}

.gs-ab-title {
    color: var(--gs-text);
    font-size: 13px;
    font-weight: bold;
}

.gs-body {
    display: grid;
    grid-template-columns: var(--gs-sidebar) minmax(0, var(--gs-results));
    gap: 24px;
    padding: 14px 0 32px;
}

.gs-body-wide {
    grid-template-columns: var(--gs-sidebar) minmax(0, 1fr);
}

.gs-sb ul {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}

.gs-sb li {
    margin: 0;
}

.gs-sb li a {
    display: block;
    padding: 5px 0;
    color: var(--gs-muted);
}

.gs-sb li a:visited {
    color: var(--gs-muted);
}

.gs-sb li a:hover {
    color: var(--gs-text);
    text-decoration: none;
}

.gs-sb li a.is-active {
    color: var(--gs-red);
    font-weight: bold;
}

.gs-sb-title {
    margin: 0 0 4px;
    color: var(--gs-text);
    font-size: 13px;
    font-weight: bold;
}

.gs-sb-sep {
    height: 1px;
    margin: 4px 0 14px;
    background: var(--gs-border);
}

.gs-sb .gs-select {
    margin-bottom: 14px;
}

/* Un résultat (article ou numéro) */
.gs-r {
    position: relative;
    margin: 0 0 22px;
    padding-right: 140px;
}

.gs-ggs {
    position: absolute;
    top: 2px;
    right: 0;
    width: 128px;
    font-size: 13px;
}

.gs-ggs a,
.gs-ggs a:visited {
    color: var(--gs-link);
}

.gs-ggs .gs-ctg {
    color: var(--gs-light);
}

.gs-rt {
    margin: 0 0 2px;
    font-size: 17px;
    font-weight: normal;
    line-height: 1.24;
}

.gs-rt a {
    color: var(--gs-link);
}

.gs-rt a:visited {
    color: var(--gs-visited);
}

.gs-ct {
    color: var(--gs-light);
    font-size: 13px;
    font-weight: normal;
    margin-right: 4px;
}

.gs-a {
    color: var(--gs-green);
    margin: 0 0 2px;
}

.gs-a a,
.gs-a a:visited {
    color: var(--gs-green);
    text-decoration: underline;
}

.gs-rs {
    margin: 0;
    color: var(--gs-text);
    word-wrap: break-word;
}

.gs-fl {
    margin-top: 4px;
    color: var(--gs-light);
}

.gs-fl a,
.gs-fl a:visited {
    color: var(--gs-link);
    margin-right: 12px;
}

.gs-fl .gs-kw {
    color: var(--gs-light);
}

.gs-year-heading {
    margin: 4px 0 14px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--gs-border);
    color: var(--gs-text);
    font-size: 13px;
    font-weight: bold;
}

.gs-featured {
    margin: 0 0 26px;
    padding: 14px 16px 2px;
    border: 1px solid var(--gs-border);
    border-top: 2px solid var(--cires-orange);
    background: var(--gs-paper);
}

.gs-featured-label {
    margin: 0 0 8px;
    color: var(--gs-light);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.gs-featured .gs-r {
    margin-bottom: 12px;
}

.gs-empty {
    padding: 8px 0 24px;
}

.gs-empty p {
    margin: 0 0 6px;
}

.gs-empty ul {
    margin: 6px 0 0;
    padding-left: 22px;
}

/* Pagination « Précédent 1 2 3 Suivant » */
.gs-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 6px 14px;
    margin: 28px 0 8px;
    font-size: 15px;
}

.gs-pagination a,
.gs-pagination a:visited {
    color: var(--gs-link);
}

.gs-pagination b {
    color: var(--gs-red);
}

.gs-pagination .gs-page-nav {
    font-weight: bold;
}

/* ------------------------------------------------------------------
   Page de détail (numéro, article) : style « fiche de citation »
------------------------------------------------------------------ */

.gs-detail {
    padding: 20px 0 32px;
}

.gs-breadcrumb {
    margin: 0 0 14px;
    color: var(--gs-light);
}

.gs-breadcrumb a,
.gs-breadcrumb a:visited {
    color: var(--gs-link);
}

.gs-detail-head {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.gs-detail-head.no-cover {
    grid-template-columns: minmax(0, 1fr);
}

.gs-cover {
    width: 120px;
    border: 1px solid var(--gs-border-strong);
    background: var(--gs-soft);
    box-shadow: 0 2px 6px rgba(32, 28, 25, 0.18);
}

.gs-detail-title {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.25;
    color: var(--gs-text);
}

.gs-detail-title a,
.gs-detail-title a:visited {
    color: var(--gs-link);
}

/* Tableau libellé / valeur (comme « Auteurs / Date de publication / Revue » sur Scholar) */
.gs-oci {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 6px 16px;
    margin: 0 0 16px;
    max-width: 760px;
}

.gs-oci dt {
    color: var(--gs-light);
    text-align: right;
}

.gs-oci dd {
    margin: 0;
}

.gs-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.gs-detail-actions-spaced {
    margin-bottom: 24px;
}

.gs-section {
    max-width: 760px;
    margin: 0 0 24px;
}

.gs-section-title {
    margin: 0 0 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--gs-border);
    font-size: 15px;
    font-weight: bold;
    color: var(--gs-text);
}

.gs-text {
    font-size: 13px;
    line-height: 1.6;
}

.gs-text p {
    margin: 0 0 10px;
}

/* ------------------------------------------------------------------
   Pages de contenu (instructions, soumission)
------------------------------------------------------------------ */

.gs-page {
    padding: 20px 0 32px;
}

.gs-page-title {
    margin: 0 0 6px;
    font-size: 22px;
    color: var(--gs-text);
}

.gs-page-lead {
    margin: 0 0 20px;
    max-width: 720px;
    color: var(--gs-muted);
}

.gs-doc {
    display: grid;
    grid-template-columns: minmax(0, 720px) 240px;
    gap: 40px;
    align-items: start;
}

.gs-doc-main h2 {
    margin: 24px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--gs-border);
    font-size: 15px;
    font-weight: bold;
}

.gs-doc-main h2:first-child {
    margin-top: 0;
}

.gs-doc-main h3 {
    margin: 16px 0 4px;
    font-size: 13px;
    font-weight: bold;
}

.gs-doc-main p,
.gs-doc-main ul {
    margin: 0 0 10px;
    line-height: 1.6;
}

.gs-doc-main ul {
    padding-left: 22px;
}

.gs-cite {
    margin: 6px 0 12px;
    padding: 8px 12px;
    border-left: 3px solid var(--gs-border-strong);
    background: #fafafa;
    line-height: 1.6;
}

.gs-note {
    margin: 8px 0 12px;
    padding: 8px 12px;
    border: 1px solid #f0e2b6;
    background: #fff8e1;
}

.gs-aside {
    position: sticky;
    top: 16px;
}

.gs-box {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid var(--gs-border);
    background: #fafafa;
}

.gs-box h2,
.gs-box h3 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: bold;
}

.gs-box ul {
    margin: 0;
    padding-left: 18px;
    line-height: 1.7;
}

.gs-box p {
    margin: 0 0 6px;
}

.gs-box-actions {
    display: grid;
    gap: 8px;
}

/* Formulaire (style « recherche avancée » de Scholar) */
.gs-form {
    display: grid;
    gap: 12px;
}

.gs-form-row {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 4px 16px;
    align-items: start;
}

.gs-form-row > label {
    padding-top: 6px;
    color: var(--gs-text);
    text-align: right;
}

.gs-form-help {
    display: block;
    margin-top: 3px;
    color: var(--gs-light);
    font-size: 12px;
}

.gs-required {
    color: var(--gs-red);
}

.gs-check {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.gs-check-spaced {
    margin-top: 8px;
}

.gs-check input {
    margin-top: 2px;
}

.gs-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gs-form-sep {
    margin: 8px 0 0;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--gs-border);
    font-size: 13px;
    font-weight: bold;
}

.gs-alert {
    margin: 0 0 16px;
    padding: 10px 14px;
    border: 1px solid;
}

.gs-alert ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

.gs-alert-error {
    border-color: #f2c2bb;
    background: #fdf0ee;
    color: #a52714;
}

.gs-alert-success {
    border-color: #b7dfb9;
    background: #edf7ed;
    color: #1e5b20;
}

/* ------------------------------------------------------------------
   Accueil (comme la page d'accueil de Google Scholar)
------------------------------------------------------------------ */

.gs-home {
    min-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 9vh 16px 40px;
    text-align: center;
}

.gs-home-logo {
    width: min(100%, 420px);
    margin: 0 0 6px;
}

.gs-home-tagline {
    margin: 0 0 22px;
    color: var(--gs-muted);
    font-size: 13px;
}

.gs-home .gs-search {
    flex: 0 0 auto;
    width: min(100%, 620px);
    max-width: none;
}

.gs-home-options {
    margin: 14px 0 0;
    color: var(--gs-muted);
}

.gs-home-options label {
    margin: 0 10px;
    cursor: pointer;
}

.gs-home-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-top: 36px;
}

.gs-home-latest {
    width: min(100%, 620px);
    margin-top: 40px;
    text-align: left;
}

.gs-home-latest .gs-r {
    padding-right: 0;
}

.gs-home-quote {
    margin-top: 32px;
    color: var(--gs-light);
    font-style: italic;
}

/* ------------------------------------------------------------------
   Pied de page
------------------------------------------------------------------ */

.gs-ftr {
    margin-top: 24px;
    background: var(--gs-ink);
    color: #b9b1a8;
    font-size: 13px;
    line-height: 1.6;
}

.gs-ftr-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 32px;
    padding: 36px 0 28px;
}

.gs-ftr-title {
    margin: 0 0 10px;
    color: #f1ece6;
    font-size: 13px;
    font-weight: bold;
}

.gs-ftr-name {
    margin: 0 0 8px;
    color: #f1ece6;
    font-size: 17px;
}

.gs-ftr-name strong {
    color: #d9773f;
}

.gs-ftr p {
    margin: 0 0 6px;
}

.gs-ftr ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gs-ftr li {
    margin: 0 0 5px;
}

.gs-ftr a,
.gs-ftr a:visited {
    color: #ddd6ce;
}

.gs-ftr a:hover {
    color: #fff;
}

.gs-ftr-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gs-ftr-bottom .gs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 20px;
    padding: 12px 0;
    font-size: 12px;
    color: #948b81;
}

/* ------------------------------------------------------------------
   Vignettes de couverture (listes de numéros)
------------------------------------------------------------------ */

.gs-r-media {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.gs-thumb {
    display: block;
    width: 58px;
    aspect-ratio: 58 / 80;
    object-fit: cover;
    border: 1px solid var(--gs-border-strong);
    background: var(--gs-soft);
    box-shadow: 0 1px 2px rgba(32, 28, 25, 0.15);
}

.gs-thumb-empty {
    display: flex;
    align-items: flex-end;
    padding: 6px;
    background: var(--gs-ink);
    color: #e9e2da;
    font-size: 10px;
    line-height: 1.15;
    text-decoration: none !important;
}

.gs-thumb-empty:visited {
    color: #e9e2da;
}

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------ */

@media (max-width: 900px) {
    .gs-doc {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .gs-aside {
        position: static;
    }
}

@media (max-width: 760px) {
    .gs-hdr-top {
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .gs-hdr .gs-search {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .gs-hdr-right .gs-hdr-site,
    .gs-hdr-right .gs-btn {
        display: none;
    }

    .gs-menu-toggle {
        display: block;
    }

    .gs-nav {
        display: none;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 4px 0 8px;
    }

    .gs-nav.open {
        display: flex;
    }

    .gs-nav > a,
    .gs-nav-toggle {
        width: 100%;
        height: 40px;
        border-bottom: 0;
        border-left: 3px solid transparent;
    }

    .gs-nav > a.active,
    .gs-nav-dropdown.active > .gs-nav-toggle {
        border-left-color: var(--gs-red);
    }

    .gs-nav-menu {
        position: static;
        border: 0;
        box-shadow: none;
        padding: 0 0 4px 16px;
    }

    .gs-ab-inner {
        padding-left: 0;
    }

    .gs-body,
    .gs-body-wide {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    /* Filtres : liste horizontale défilante au-dessus des résultats */
    .gs-sb {
        border-bottom: 1px solid var(--gs-border);
        margin-bottom: 12px;
    }

    .gs-sb ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0 14px;
        margin-bottom: 8px;
    }

    .gs-sb-sep {
        display: none;
    }

    .gs-r {
        padding-right: 0;
    }

    .gs-ggs {
        position: static;
        width: auto;
        margin-top: 2px;
        order: 9;
    }

    .gs-detail-head {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 12px;
    }

    .gs-cover {
        width: 80px;
    }

    .gs-oci,
    .gs-form-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .gs-oci dt,
    .gs-form-row > label {
        text-align: left;
        padding-top: 0;
    }

    .gs-oci dd {
        margin-bottom: 6px;
    }
}

@media (max-width: 900px) {
    .gs-ftr-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 760px) {
    .gs-band-text {
        display: none;
    }

    .gs-band-inner {
        justify-content: flex-end;
    }

    .gs-ftr-cols {
        grid-template-columns: minmax(0, 1fr);
        padding: 28px 0 20px;
    }

    .gs-r-media {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 12px;
    }

    .gs-thumb {
        width: 46px;
    }
}

@media (max-width: 760px) {
    .gs-hdr-top {
        flex-wrap: wrap;
        min-height: 0;
    }

    .gs-logo {
        flex: 1 1 auto;
        min-width: 0;
    }

    .gs-logo-title {
        font-size: 19px;
    }

    .gs-logo-sub {
        display: none;
    }

    .gs-hdr-right {
        margin-left: 0;
    }

    /* Le prix passe sous le texte, dans la colonne du résultat (pas sous la vignette). */
    .gs-r-media .gs-ggs {
        grid-column: 2;
    }
}

/* ------------------------------------------------------------------
   Boutique : panier, commande, téléchargements
------------------------------------------------------------------ */

.gs-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gs-ink) !important;
    text-decoration: none !important;
}

.gs-cart-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.gs-cart-link:hover span:first-of-type {
    text-decoration: underline;
}

.gs-cart-count {
    min-width: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--cires-orange);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    line-height: 18px;
    text-align: center;
}

.gs-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    margin: 0 0 18px;
    padding: 0 0 10px;
    list-style: none;
    border-bottom: 1px solid var(--gs-border);
    color: var(--gs-light);
}

.gs-steps .is-current {
    color: var(--gs-ink);
    font-weight: bold;
}

.gs-cart {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 14px;
}

.gs-cart th {
    padding: 8px 10px;
    border-bottom: 1px solid var(--gs-border-strong);
    color: var(--gs-light);
    font-weight: normal;
    text-align: left;
}

.gs-cart td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--gs-border);
    vertical-align: top;
}

.gs-cart .gs-num {
    text-align: right;
    white-space: nowrap;
}

.gs-cart td.gs-num .gs-btn {
    margin-bottom: 4px;
}

.gs-cart-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.gs-cart-item .gs-thumb {
    width: 44px;
    flex: 0 0 44px;
}

.gs-cart-more {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.gs-inline {
    display: inline;
    margin: 0;
}

.gs-link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--gs-link);
    cursor: pointer;
}

.gs-link-btn:hover {
    text-decoration: underline;
}

.gs-summary dl {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    margin: 0 0 14px;
}

.gs-summary dd {
    margin: 0;
    text-align: right;
}

.gs-summary .gs-summary-total {
    padding-top: 8px;
    border-top: 1px solid var(--gs-border-strong);
    font-size: 15px;
    font-weight: bold;
    color: var(--gs-ink);
}

.gs-summary-list {
    margin: 0 0 12px !important;
    padding: 0 !important;
    list-style: none;
}

.gs-summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid var(--gs-border);
}

.gs-summary-list li span:last-child {
    white-space: nowrap;
}

.gs-btn-block {
    display: flex;
    width: 100%;
    min-height: 36px;
    margin-bottom: 10px;
}

@media (max-width: 760px) {
    .gs-cart-link span:first-of-type {
        display: none;
    }

    .gs-cart thead {
        display: none;
    }

    .gs-cart td {
        display: block;
        padding: 6px 0;
        border-bottom: 0;
        text-align: left !important;
    }

    .gs-cart tr {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid var(--gs-border);
    }
}
