body {
    font-family: sans-serif;
    margin: 0;
    background: #f4f4f4;
}

h1 {
    text-align: center;
    padding-top: 1em;
    background: #222;
    color: white;
    margin: 0;
}

/* Container général */
.extensions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
    padding: 2em;
}

/* Les deux lignes distinctes */
.top-row,
.bottom-row {
    display: flex;
    justify-content: center;
    gap: 2em;
    flex-wrap: wrap;
}

.ext-card {
    text-align: center;
    cursor: pointer;
    width: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    padding: 10px;
    /* Animation ajoutée */
}

.ext-card img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ext-card span {
    display: block;
    margin-top: 0.5em;
    font-weight: bold;
}

.ext-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
    cursor: pointer;
}

.ext-card.selected {
    background-color: #ffeeba;
    border-color: #f0ad4e;
    box-shadow: 0 0 10px rgba(240, 173, 78, 0.7);
}

.category {
    font-size: 1.1em;
}

.subCategory {
    font-size: 1em;
}

.category.selected,
.subCategory.selected {
    background-color: #ffeeba;
    box-shadow: 0 0 10px rgba(240, 173, 78, 0.7);
    color: #000;
    font-weight: bold;
}

.category.locked,
.subCategory.locked {
    background-color: lightgray;
    color: #000;
}

.category.locked:hover,
.subCategory.locked:hover {
    cursor: default;
}

/* Contact Links */
.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 1.5em 0 3em 0;
    background: #f0f0f0;
    border-top: 1px solid #ccc;
}

.contact-links .btn {
    background-color: #222;
    color: white;
    padding: 0.6em 1.2em;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.contact-links .btn:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.contact-links .btn i {
    margin-right: 0.5em;
}


body {
    font-family: sans-serif;
    background: #f4f4f4;
    margin: 0;
}

h2 {
    background: #222;
    color: white;
    padding: .5em;
    margin: 0;
    text-align: center;
}

h2.error {
    background-color: #c0392b;
}

h2.warning {
    background-color: #c29d0c;
}

.filters,
.subfilters {
    text-align: center;
    margin: 1em;
}

.filters button,
.subfilters button {
    background: #444;
    color: white;
    border: none;
    padding: 0.5em 1em;
    margin: 0.2em;
    cursor: pointer;
    border-radius: 5px;
}

.filters button.active,
.subfilters button.active {
    background: #007bff;
}

/* Couleurs spécifiques pour les sous-filtres Récompenses */
.subfilters button[data-sub="rouge"] {
    background-color: #c0392b;
    color: white;
}

.subfilters button[data-sub="bleu"] {
    background-color: #2980b9;
    color: white;
}

.subfilters button[data-sub="vert"] {
    background-color: #27ae60;
    color: white;
}

.subfilters button[data-sub="violet"] {
    background-color: #8e44ad;
    color: white;
}

.subfilters button[data-sub="jaune"] {
    background-color: #f1c40f;
    color: black;
}

.subfilters button[data-sub="incolore"] {
    background-color: #bdc3c7;
    color: black;
}

/* Hover pour les couleurs */
.subfilters button[data-sub="rouge"]:hover {
    background-color: #922b21;
}

.subfilters button[data-sub="bleu"]:hover {
    background-color: #1c5985;
}

.subfilters button[data-sub="vert"]:hover {
    background-color: #1e8449;
}

.subfilters button[data-sub="violet"]:hover {
    background-color: #6c3483;
}

.subfilters button[data-sub="jaune"]:hover {
    background-color: #d4ac0d;
}

.subfilters button[data-sub="incolore"]:hover {
    background-color: #95a5a6;
}

.back-home {
    display: flex;
    padding: 1em;
    justify-content: space-between;
    align-items: center;
}

.back-home a {
    background: #007bff;
    color: white;
    padding: 0.5em 1em;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.back-home a:hover {
    background-color: #0056b3;
}

/* Styles galerie et autres inchangés */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1em;
    padding: 1em;
    overflow: hidden;
    /* assez grand pour accueillir le contenu */
}

body.loaded .gallery {
    visibility: visible;
}

.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.card img {
    width: 100%;
    height: auto;
    display: block;
}

.label {
    text-align: center;
    font-weight: bold;
    padding: 0.4em;
}

.input-wrapper {
    display: flex;
    justify-content: center;
    /* centre horizontalement */
    margin-top: 20px;
    margin-bottom: 20px;
    /* marge vers le haut */
}

.sexy-input {
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 12px;
    outline: none;
    transition: 0.3s ease;
    width: 50%;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.sexy-input::placeholder {
    color: #aaa;
    transition: color 0.3s;
}

.sexy-input:focus {
    border-color: #ffeeba;
    box-shadow: 0 0 8px rgba(240, 173, 78, 0.7);
}

.sexy-input:focus::placeholder {
    color: transparent;
}

.pagination {
    display: inline-block;
    display: flex;
    justify-content: center;
    /* centre horizontalement */
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
    /* centre verticalement */
}

.pagination div,
.pagination a {
    color: black;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;

}

.pagination a.active {
    background-color: #ffeeba;
    border-color: #f0ad4e;
    box-shadow: 0 0 10px rgba(240, 173, 78, 0.7);
}

.pagination a:hover:not(.active),
.perPageArrow:hover:not(.locked) {
    background-color: #ddd;
}

.perPageNumber:hover,
.perPageArrow:hover {
    cursor: pointer;
}

.perPageNumber.active:hover {
    cursor: default;
}

.popupArrow {
    font-size: 2em;
    background-color: white;
    padding: 10px;
    cursor: pointer;
    border-radius: 10px;
}

.popupArrow:hover:not(.locked) {
    background-color: lightgrey;
}

.popupArrow.locked {
    opacity: .5;
    cursor: default;
}

#popupContent>img {
    border-radius: 30px;
}

.perPageArrow.locked {
    opacity: .5;
    cursor: default;
}

body {
    width: 100%;
    overflow-x: hidden;
}

#banner {
    max-width: 80%;
    max-height: 100px;
    margin-left: 20px;
    margin-right: 20px;
}

.popupArrowHolder {
    display: inline-flex;
    gap: 20px;
    margin-bottom: 20px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* opacité 50% */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

/* Image dans la modal */
.modal-content {
    max-height: 80%;
    max-width: 90%;
    box-shadow: 0 0 10px #000;
    border-radius: 8px;
}

/* Bouton de fermeture */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.checkbox-wrapper-37 {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.checkbox-wrapper-37 input[type="checkbox"] {
    display: none;
}

.checkbox-wrapper-37 .terms-label {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.checkbox-wrapper-37 .terms-label .label-text {
    margin-left: 10px;
}

.checkbox-wrapper-37 .checkbox-svg {
    width: 30px;
    height: 30px;
}

.checkbox-wrapper-37 .checkbox-box {
    fill: #fff;
    stroke: #ff7a00;
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    transition: stroke-dashoffset 0.2s ease-in;
}

.checkbox-wrapper-37 .checkbox-tick {
    stroke: #ff7a00;
    stroke-dasharray: 172;
    stroke-dashoffset: 172;
    transition: stroke-dashoffset 0.2s ease-in;
}

.checkbox-wrapper-37 input[type="checkbox"]:checked+.terms-label .checkbox-box,
.checkbox-wrapper-37 input[type="checkbox"]:checked+.terms-label .checkbox-tick {
    stroke-dashoffset: 0;
}

.divider>div {
    height: 1px;
    background-color: #000;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 80%;
    margin: 0 auto;
}