.buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
    justify-content: flex-start;
    max-width: 660px; /* Ajusté pour 3 boutons par ligne */
    margin: 20px 0;
}

.button-wrapper {
    width: calc(33.333% - 8px); /* Légèrement réduit pour plus d'espace entre les boutons */
    margin-bottom: 12px; /* Un peu plus d'espace vertical */

    flex: 0 0 calc(33.333% - 7px); /* Trois boutons par ligne */
    width: calc(33.333% - 7px);
    max-width: 220px; /* Largeur maximale pour chaque bouton */
}

.button-wrapper a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 13px; /* Légèrement réduit pour s'adapter à l'espace */
    font-weight: 500;
    text-decoration: none;
    transition: box-shadow 0.3s;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/** SSO BUTTONS **/
/** GOOGLE **/
.gsi-material-button {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-appearance: none;
    background-color: WHITE;
    background-image: none;
    border: 1px solid #747775;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #1f1f1f;
    cursor: pointer;
    font-family: 'Roboto', arial, sans-serif;
    font-size: 14px;
    height: 40px;
    letter-spacing: 0.25px;
    outline: none;
    overflow: hidden;
    padding: 0 12px;
    position: relative;
    text-align: center;
    -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
    transition: background-color .218s, border-color .218s, box-shadow .218s;
    vertical-align: middle;
    white-space: nowrap;
    width: 100%;
    max-width: none;
    min-width: 200px;
}

.gsi-material-button .gsi-material-button-icon {
    height: 20px;
    margin-right: 12px;
    min-width: 20px;
    width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
    -webkit-align-items: center;
    align-items: center;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    height: 100%;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
    -webkit-flex-grow: 1;
    flex-grow: 1;
    font-family: 'Roboto', arial, sans-serif;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
    -webkit-transition: opacity .218s;
    transition: opacity .218s;
    bottom: 0;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.gsi-material-button:disabled {
    cursor: default;
    background-color: #ffffff61;
    border-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
    opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
    opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
    background-color: #303030;
    opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
    -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
    background-color: #303030;
    opacity: 8%;
}


.google-button {
    display: inline-flex;
    align-items: center;
    height: 40px;
    background-color: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 1px;
    cursor: pointer;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #3c4043;
    text-decoration: none;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 1px 3px 0 rgba(60,64,67,0.08), 0 1px 2px 0 rgba(60,64,67,0.12);
}

.google-button:hover {
    box-shadow: 0 1px 3px 0 rgba(60,64,67,0.12), 0 1px 2px 0 rgba(60,64,67,0.18);
}

.google-button__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 38px;
    background-color: #fff;
    border-radius: 2px;
    margin-right: 1px;
}

.google-button__text {
    flex-grow: 1;
    padding: 0 12px;
    font-family: 'Roboto', Arial, sans-serif;
}

/** GITHUB **/
.github-button {
    display: inline-flex;
    align-items: center;
    height: 40px; /* Même hauteur que le bouton Google */
    background-color: #24292e;
    border: 1px solid #24292e;
    border-radius: 4px; /* Ajusté pour correspondre au bouton Google */
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.1);
    transition: background-color .218s, border-color .218s, box-shadow .218s;
    cursor: pointer;
    outline: none;
    overflow: hidden;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    vertical-align: top; /* Aligne avec la ligne de base du bouton Google */
}

.github-button:hover {
    box-shadow: 0 1px 3px 0 rgba(0,0,0,.2);
}

.github-button:active {
    background-color: #3c4146;
}

.github-button__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 38px; /* Ajusté pour l'alignement interne */
    background-color: #fff;
    border-radius: 2px 0 0 2px;
}

.github-button__text {
    color: #fff;
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
}

/** Facebook **/
.facebook-button {
    display: inline-flex;
    align-items: center;
    height: 40px;
    background-color: #1877F2;
    border: none;
    border-radius: 4px;
    padding: 0 12px;
    cursor: pointer;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.facebook-button:hover {
    background-color: #166FE5;
}

.facebook-button__icon {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.facebook-button__text {
    font-family: Helvetica, Arial, sans-serif;
}

/** STRAVA **/
.strava-button {
    display: inline-flex;
    align-items: center;
    height: 40px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0;
    cursor: pointer;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #FC4C02;
    text-decoration: none;
    transition: all 0.3s;
    overflow: hidden;
}

.strava-button:hover {
    background-color: #f7f7f7;
}

.strava-button__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 38px;
    background-color: #FC4C02;
}

.strava-button__text {
    padding: 0 12px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/** INSTAGRAM **/
.instagram-button {
    display: inline-flex;
    align-items: center;
    height: 40px;
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    border: none;
    border-radius: 4px;
    padding: 0 12px;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.instagram-button:hover {
    opacity: 0.9;
}

.instagram-button__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.instagram-button__text {
    margin-left: 4px;
}

/** ORPI **/
 .orpi-button {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     height: 40px;
     background-color: #e2001a; /* Rouge Orpi */
     border: none;
     border-radius: 4px;
     padding: 0 16px;
     cursor: pointer;
     font-family: Arial, sans-serif;
     font-size: 14px;
     font-weight: 500;
     color: white;
     text-decoration: none;
     transition: background-color 0.3s;
 }

.orpi-button:hover {
    background-color: #c30017; /* Rouge Orpi légèrement plus foncé pour l'effet hover */
}

.orpi-button__text {
    text-align: center;
}