.elementor-3998 .elementor-element.elementor-element-4770720{--display:flex;}.elementor-3998 .elementor-element.elementor-element-0bce288{text-align:center;}.elementor-3998 .elementor-element.elementor-element-4f1c5e0 .elementor-icon-list-item:not(:last-child):after{content:"";border-color:var( --e-global-color-text );}.elementor-3998 .elementor-element.elementor-element-4f1c5e0 .elementor-icon-list-items:not(.elementor-inline-items) .elementor-icon-list-item:not(:last-child):after{border-top-style:solid;border-top-width:1px;}.elementor-3998 .elementor-element.elementor-element-4f1c5e0 .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item:not(:last-child):after{border-left-style:solid;}.elementor-3998 .elementor-element.elementor-element-4f1c5e0 .elementor-inline-items .elementor-icon-list-item:not(:last-child):after{border-left-width:1px;}.elementor-3998 .elementor-element.elementor-element-4f1c5e0 .elementor-icon-list-icon{width:14px;}.elementor-3998 .elementor-element.elementor-element-4f1c5e0 .elementor-icon-list-icon i{font-size:14px;}.elementor-3998 .elementor-element.elementor-element-4f1c5e0 .elementor-icon-list-icon svg{--e-icon-list-icon-size:14px;}.elementor-3998 .elementor-element.elementor-element-77e57e7{--display:flex;--margin-top:50px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;}.elementor-3998 .elementor-element.elementor-element-77941fd{--display:flex;--margin-top:50px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;}.elementor-3998 .elementor-element.elementor-element-5be7753{--display:flex;--margin-top:100px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;}.elementor-3998 .elementor-element.elementor-element-eb72ead{--display:flex;--margin-top:80px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;}.elementor-3998 .elementor-element.elementor-element-51060b8{width:100%;max-width:100%;}.elementor-3998 .elementor-element.elementor-element-51060b8 > .elementor-widget-container{padding:0px 0px 0px 0px;}.elementor-3998 .elementor-element.elementor-element-51060b8 .elementor-heading-title{font-family:var( --e-global-typography-primary-font-family );font-size:var( --e-global-typography-primary-font-size );font-weight:var( --e-global-typography-primary-font-weight );line-height:var( --e-global-typography-primary-line-height );letter-spacing:var( --e-global-typography-primary-letter-spacing );color:var( --e-global-color-primary );}.elementor-3998 .elementor-element.elementor-element-bda4362{--grid-columns:3;}.elementor-3998 .elementor-element.elementor-element-bda4362 .elementor-loop-container{grid-auto-rows:1fr;}.elementor-3998 .elementor-element.elementor-element-bda4362 .e-loop-item > .elementor-section, .elementor-3998 .elementor-element.elementor-element-bda4362 .e-loop-item > .elementor-section > .elementor-container, .elementor-3998 .elementor-element.elementor-element-bda4362 .e-loop-item > .e-con, .elementor-3998 .elementor-element.elementor-element-bda4362 .e-loop-item .elementor-section-wrap  > .e-con{height:100%;}@media(min-width:768px){.elementor-3998 .elementor-element.elementor-element-4770720{--content-width:50%;}.elementor-3998 .elementor-element.elementor-element-77e57e7{--content-width:50%;}.elementor-3998 .elementor-element.elementor-element-77941fd{--content-width:50%;}}@media(max-width:1024px){.elementor-3998 .elementor-element.elementor-element-51060b8 .elementor-heading-title{font-size:var( --e-global-typography-primary-font-size );line-height:var( --e-global-typography-primary-line-height );letter-spacing:var( --e-global-typography-primary-letter-spacing );}.elementor-3998 .elementor-element.elementor-element-bda4362{--grid-columns:2;}}@media(max-width:767px){.elementor-3998 .elementor-element.elementor-element-51060b8 .elementor-heading-title{font-size:var( --e-global-typography-primary-font-size );line-height:var( --e-global-typography-primary-line-height );letter-spacing:var( --e-global-typography-primary-letter-spacing );}.elementor-3998 .elementor-element.elementor-element-bda4362{--grid-columns:1;--grid-row-gap:0px;}}/* Start custom CSS for shortcode, class: .elementor-element-d7ab3e2 *//* =========================================================================
   CLASSEMENTS — CSS à coller dans Elementor
   (Réglages du site > CSS additionnel)
   ========================================================================= */

/* --- Sélecteur d'étape façon letour.fr : flèche gauche, surnom de l'étape
   active au centre, flèche droite. --- */
.gcc-classements-etape-switcher {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin: 0 0 25px;
}
.gcc-classements-etape-label {
    text-align: left;
    font-weight: 700;
    font-size: 1.2em;
    color: #1c1c1c;
}
.gcc-classements-etape-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #E6E0DE !important;
    border-radius: 0 !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent !important;
    cursor: pointer;
    font: inherit;
    font-size: 1em;
    line-height: 1;
    color: #1c1c1c !important;
    outline: none;
    box-shadow: none !important;
    transition: color .2s ease, border-color .2s ease;
}
.gcc-classements-etape-arrow:hover:not(:disabled) {
    color: #5BBBA4 !important;
    border-color: #5BBBA4 !important;
    background: transparent !important;
}
.gcc-classements-etape-arrow:disabled {
    color: #ccc !important;
    border-color: #eee !important;
    background: transparent !important;
    cursor: default;
}

/* =========================================================================
   CARTES MAILLOTS — bloc entre le sélecteur d'étape et les classements.
   1 carte par maillot (+ Vainqueur d'étape / Classement général par équipe),
   3 colonnes, contour marron clair de la charte, sans arrondis.
   Réutilisé tel quel dans les articles via [gcc_maillots_article].
   ========================================================================= */
.gcc-maillots-cartes-wrap {
    margin: 0 0 25px;
}
.gcc-maillots-cartes {
    display: grid;
    /* minmax(0, 1fr) plutôt que 1fr seul : un simple 1fr ne descend jamais
       sous la largeur de son contenu (min-content). Si une carte contient
       un nom de coureur/équipe plus long que les autres, sa colonne
       s'élargit et les colonnes ne sont plus égales entre elles — d'où le
       comportement "variable selon la largeur de fenêtre" observé. */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.gcc-maillot-carte {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    height: 100%; /* force l'étirement à la hauteur de la cellule de grille : le
                     stretch implicite de la grille n'est pas toujours fiable
                     quand l'élément est lui-même un conteneur flex */
    min-width: 0; /* indispensable avec minmax(0,1fr) ci-dessus : sans ça, le
                     flex interne de la carte continue de pousser sur la
                     largeur et l'égalité des colonnes n'est pas respectée */
    box-sizing: border-box;
    text-align: left;
    padding: 14px 12px;
    background: #fff;
    border: 1px solid #E6E0DE;
    border-radius: 0;
}
.gcc-maillot-carte__photo {
    width: 100%;
    height: 80px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.gcc-maillot-carte__photo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.gcc-maillot-carte__titre {
    margin: 0 0 6px !important;
    font-size: 0.8em !important;
    font-weight: 400 !important;
    color: #555 !important;
}
.gcc-maillot-carte__coureur-bloc {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
}
.gcc-maillot-carte__coureur-photo {
    flex: 0 0 auto;
    max-width: 110px;
    max-height: 110px;
    margin-bottom: 0;
}
.gcc-maillot-carte__coureur-photo img {
    max-width: 110px;
    max-height: 110px;
    object-fit: contain;
}
.gcc-maillot-carte__coureur-infos {
    flex: 1 1 auto;
    min-width: 0;
}
.gcc-maillot-carte__nom {
    margin: 0 0 3px;
    line-height: 1.1;
    font-size: 1em;
    font-weight: 700;
    color: #1c1c1c;
    overflow-wrap: break-word;
}
.gcc-maillot-carte__equipe {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}
.gcc-maillot-carte__equipe-photo {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 50%;
}

/* Neutralise l'ombre portée par défaut du thème/Elementor sur les images
   (box-shadow appliqué automatiquement à toutes les <img>, y compris ici). */
.gcc-maillot-carte__photo img,
.gcc-maillot-carte__coureur-photo img,
.gcc-maillot-carte__equipe-photo {
    box-shadow: none !important;
    filter: none !important;
}
.gcc-maillot-carte__equipe-nom {
    font-size: 0.8em;
    line-height: 1.2 !important; /* sinon hérite d'un interligne global (Elementor)
                                    trop grand quand le nom d'équipe passe sur 2 lignes */
    color: #555;
    overflow-wrap: break-word;
    min-width: 0;
}

/* Responsive : 2 colonnes en tablette, 1 colonne en mobile */
@media (max-width: 900px) {
    .gcc-maillots-cartes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .gcc-maillots-cartes {
        grid-template-columns: 1fr;
    }
}

/* --- Groupes de classements ("Classement de l'étape" / "Classement général") --- */
.gcc-classements-type-groupe {
    margin-bottom: 20px;
}

/* --- Sélecteur de catégorie (niveau 1, façon letour.fr) : même DA que les
   onglets de type (niveau 2) ci-dessous, juste un peu plus grand pour
   marquer la hiérarchie entre les deux niveaux de choix. --- */
.gcc-classements-categorie-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 15px;
}
.gcc-classements-categorie-btn {
    font-size: 1em;
    font-weight: 700 !important;
    padding: 12px 20px;
}

/* --- Bandeau "Parrainé par :" — visible uniquement en Classement général,
   quand le maillot du classement affiché a des sponsors renseignés.
   Logos en cartes carrées, sans contour. --- */
.gcc-classements-sponsors {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px;
}
.gcc-classements-sponsors__label {
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1c1c1c;
}
.gcc-classements-sponsors__logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.gcc-classements-sponsors__carte {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}
.gcc-classements-sponsors__carte img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* --- Onglets de type de classement --- */
.gcc-classements-type-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 20px;
}
.gcc-classements-type-btn {
    position: relative;
    margin-left: -1px; /* bordures jointes : pas de double épaisseur entre les cases */
    padding: 10px 16px;
    border: 1px solid #E6E0DE !important;
    border-radius: 0 !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #fff !important;
    box-sizing: border-box;
    cursor: pointer;
    font-size: 0.85em;
    color: #1c1c1c !important;
    font-weight: 400;
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.gcc-classements-type-btn__maillot {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}
.gcc-classements-type-btn:first-child {
    margin-left: 0;
}
.gcc-classements-type-btn:hover {
    background: #E6E0DE !important;
    color: #1c1c1c !important;
    z-index: 1;
}
.gcc-classements-type-btn.is-active {
    background: #E6E0DE !important;
    color: #1c1c1c !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #5BBBA4 !important;
    margin-bottom: -1px; /* compense l'épaisseur doublée du trait du bas, garde l'alignement de la rangée */
    z-index: 2;
}

/* --- Tableau de classement (renvoyé tel quel par l'AJAX existant de
   admin_resultats.php, classes wp-list-table héritées de wp-admin :
   on les restyle ici pour un rendu correct côté public). --- */
.gcc-classements-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.gcc-classements-content th {
    text-align: left;
    font-size: 0.85em;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #1c1c1c;
    padding: 6px 10px;
    border-bottom: 2px solid #E6E0DE;
}
.gcc-classements-content td {
    padding: 6px 10px;
    border-bottom: 1px solid #E6E0DE;
    vertical-align: middle;
}
.gcc-classements-rider-photo {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}
.gcc-classements-content tr:nth-child(even) td {
    background: #f9f9f9;
}

.gcc-classements-loading,
.gcc-classements-error,
.gcc-no-data {
    text-align: center;
    color: #666;
    padding: 20px;
}
.gcc-classements-error { color: #b32d2e; }

/* --- Responsive mobile --- */
@media (max-width: 600px) {
    .gcc-classements-content table,
    .gcc-classements-content thead,
    .gcc-classements-content tbody,
    .gcc-classements-content th,
    .gcc-classements-content td,
    .gcc-classements-content tr {
        font-size: 0.85em;
    }
    .gcc-classements-content th,
    .gcc-classements-content td {
        padding: 4px 8px;
    }
}

/* =========================================================================
   BLOC MAILLOTS DANS UN ARTICLE — [gcc_maillots_article]
   Réutilise les classes .gcc-maillots-cartes-wrap / .gcc-maillots-cartes /
   .gcc-maillot-carte ci-dessus (même CSS, même rendu — colonnes égales
   comprises — que sur la page /classements/). L'ajustement de marge
   ci-dessous est volontairement scopé à .single-post (classe ajoutée par
   WordPress sur les articles) : il ne doit PAS s'appliquer à la page
   /classements/, pour garder un rendu strictement identique à celui de la
   page dédiée.
   ========================================================================= */
.single-post .gcc-maillots-cartes-wrap {
    margin: 30px 0;
}

/* Message de repli ("aucune étape trouvée" / "résultats pas encore saisis"),
   affiché par [gcc_maillots_article] quand la reconnexion automatique
   échoue ou que l'étape n'a pas encore de résultats. */
.gcc-info-msg-sub {
    margin: 20px 0;
    padding: 12px 16px;
    background: #f9f9f9;
    border: 1px solid #E6E0DE;
    font-size: 0.9em;
    line-height: 1.4;
    color: #666;
}/* End custom CSS */