/* Appearance supplement for the existing Godasses Base de Trail accordion. */
.gab-base {
    --gabs-surface: #fff7ef;
    --gabs-hover: #fff1e3;
    --gabs-border: #efcfb6;
    --gabs-title: #26251f;
    --gabs-copy: #565149;
    --gabs-label: #ad4000;
    overflow: visible;
    margin-bottom: 48px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: 0 7px 22px #4028000d;
}
.gabs-palette-sand .gab-base {
    --gabs-surface: #f1e7d5;
    --gabs-hover: #ece0ca;
    --gabs-border: #d8c5a7;
    --gabs-title: #352d22;
    --gabs-copy: #5c5040;
    --gabs-label: #98400d;
}
.gabs-palette-sage .gab-base {
    --gabs-surface: #e8eee2;
    --gabs-hover: #e0e8d8;
    --gabs-border: #bdcbb2;
    --gabs-title: #293525;
    --gabs-copy: #495642;
    --gabs-label: #a13f08;
}
.gab-base > .gab-summary {
    position: relative;
    display: block;
    min-height: 118px;
    box-sizing: border-box;
    padding: 21px 28px 34px;
    border: 1px solid var(--gabs-border);
    border-left: 5px solid #ff5900;
    border-radius: 14px;
    background: var(--gabs-surface);
    color: var(--gabs-title);
    isolation: isolate;
}
.gab-base > .gab-summary:hover { background: var(--gabs-hover); }
.gab-base > .gab-summary:focus-visible { outline: 3px solid #a13c00; outline-offset: 4px; }
.gab-base .gab-summary-copy { gap: 5px; }
.gab-base .gab-eyebrow { color: var(--gabs-label); }
.gab-base .gab-summary-title { color: var(--gabs-title); }
.gab-base .gab-preview {
    display: block;
    max-width: 100ch;
    max-height: 8.25em; /* Aperçu doublé : cinq lignes. */
    overflow: hidden;
    margin-top: 5px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: normal;
    color: var(--gabs-copy);
}
.gab-base .gab-preview.is-truncated {
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 66%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 66%, transparent 100%);
}
.gab-base[open] .gab-preview { display: none; }
.gab-base > .gab-summary > .gab-toggle {
    position: absolute;
    z-index: 2;
    left: calc(50% - 2px);
    right: auto;
    top: auto;
    bottom: -25px;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    box-sizing: border-box;
    flex: none;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #d64b00;
    color: #fff;
    box-shadow: 0 3px 9px #57210026;
}
.gab-base > .gab-summary > .gab-toggle::before {
    content: "";
    position: absolute;
    left: 50%;
    right: auto;
    top: 43%;
    width: 10px;
    height: 10px;
    background: none;
    border: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: transform .18s ease;
}
.gab-base > .gab-summary > .gab-toggle::after { content: none; display: none; }
.gabs-motion-on .gab-base:not([open]) > .gab-summary > .gab-toggle::before {
    animation: gabs-arrow-nudge 1.6s ease-in-out .4s 2;
}
.gabs-motion-on .gab-base > .gab-summary:hover > .gab-toggle::before,
.gabs-motion-on .gab-base > .gab-summary:focus > .gab-toggle::before { animation: none; }
@keyframes gabs-arrow-nudge {
    0%, 35%, 75%, 100% { transform: translate(-50%, -50%) rotate(45deg); }
    55% { transform: translate(-50%, calc(-50% + 3px)) rotate(45deg); }
}
.gab-base[open] > .gab-summary { border-radius: 14px 14px 0 0; }
.gab-base[open] > .gab-summary > .gab-toggle::before {
    top: 56%;
    transform: translate(-50%, -50%) rotate(225deg);
}
.gab-base > .gab-content {
    padding-top: 43px;
    border: 1px solid var(--gabs-border);
    border-top: 0;
    border-radius: 0 0 14px 14px;
}
@media (max-width: 767px) {
    .gab-base { margin-bottom: 42px; }
    .gab-base > .gab-summary { padding: 19px 18px 34px; min-height: 112px; }
    .gab-base > .gab-content { padding-top: 39px; }
}
@media (prefers-reduced-motion: reduce) {
    .gab-base > .gab-summary > .gab-toggle::before { transition: none; animation: none !important; }
}

/* Libellé explicite, en conservant le summary natif accessible. */
.gab-base > .gab-summary > .gab-toggle{display:inline-flex;align-items:center;justify-content:center;width:max-content;max-width:calc(100% - 24px);height:50px;padding:0 42px 0 21px;border-radius:999px;white-space:nowrap;font-size:14px;font-weight:750;line-height:1.2;background:#ff5900}
.gab-base > .gab-summary > .gab-toggle::before{left:auto;right:17px}
.gabs-motion-on .gab-base:not([open]) > .gab-summary > .gab-toggle::before{animation:none}
