/* Feuille de style inspirée du design Decathlon */

body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F5F5F5; /* Gris clair */
    color: #333;
    line-height: 1.6;
}

.header {
    background-color: #FFFFFF;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header img {
    height: 40px;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    text-decoration: none;
    color: #0052A5; /* Bleu Decathlon */
    font-weight: bold;
    padding: 10px;
    transition: color 0.3s;
}

.nav a:hover {
    color: #FF6B35; /* Orange Decathlon */
}

.main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.main h1 {
    color: #0052A5;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.main p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.main h3 {
    color: #FF6B35;
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 10px;
}

.main ul {
    list-style-type: disc;
    margin-left: 20px;
}

.main img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

.main h2 {
    color: #0052A5;
    font-size: 2em;
    margin-top: 40px;
}

button[aria-selected] {
    background-color: #FFFFFF;
    border: 2px solid #0052A5;
    color: #0052A5;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s, color 0.3s;
}
/* gère la couleur de fond du bouton sélectionné */
button[aria-selected="true"] {
    background-color: #FF6B35;
    color: #FFFFFF;
    border-color: #FF6B35;
}
#more-info {
    color: #98bcdf;
    cursor: pointer;
}

/* Style pour le bouton ajouter au panier */
.clickable {
    display: inline-block;
    background-color: #0052A5;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

/* Styles pour les boutons favoris et partage */
.favorite-btn, .share-btn {
    background-color: #FFFFFF;
    border: 2px solid #0052A5;
    color: #0052A5;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s;
    outline: none;
}

.favorite-btn:hover, .share-btn:hover {
    background-color: #0052A5;
    color: #FFFFFF;
}

.favorite-btn:focus, .share-btn:focus,
.favorite-btn:active, .share-btn:active {
    outline: none;
    box-shadow: none;
}

/* Cœur favoris */
.heart-icon {
    color: #E0E0E0;
    transition: color 0.3s;
}

.favorite-btn:hover .heart-icon,
.favorite-btn.active .heart-icon {
    color: #FF6B35;
}

/* Icône partage */
.share-icon {
    color: #0052A5;
    transition: color 0.3s;
}

.share-btn:hover .share-icon {
    color: #FFFFFF;
}

button[aria-expanded] {
    background-color: #0052A5;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    margin-bottom: 10px;
    outline: none;
}
/* gère le focus et l'état actif du bouton d'accordéon */
button[aria-expanded]:focus,
button[aria-expanded]:active {

    outline: none;
    box-shadow: none;
}

#accordions_panel {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background-color: #F9F9F9;
    border-radius: 4px;
}

form {
    margin-top: 20px;
}

label {
    font-weight: bold;
    color: #333;
}

input[type="text"], input[type="email"], input[type="date"], textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px 0;
    border: 1px solid #CCC;
    border-radius: 4px;
    font-size: 1em;
}

input[type="submit"], button[type="submit"] {
    background-color: #FF6B35;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
    /* gère le focus */
    outline: none;
}

input[type="submit"]:hover, button[type="submit"]:hover {
    background-color: #E55A2B;
}

input[type="submit"]:focus, button[type="submit"]:focus,
input[type="submit"]:active, button[type="submit"]:active {
    outline: none;
    box-shadow: none;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 50px;
}

.modal-content {
    background-color: #FFFFFF;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 600px;
    position: relative;
}

.close-btn {
    background-color: #FF6B35;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
    position: absolute;
    top: 10px;
    right: 10px;
}

.btn_modal {
    display: inline-block;
    background-color: #0052A5;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background-color: #E55A2B;
}

/* Notation en étoiles CSS */
.rating-container {
    background-color: #F9F9F9;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #FF6B35;
    margin: 30px 0;
}

.stars {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.star {
    font-size: 2em;
    color: #E0E0E0;
    display: inline-block;
    line-height: 1;
}

/* Étoiles pleines pour note 4.5/5 */
[data-rating="4.5"] .star:nth-child(1),
[data-rating="4.5"] .star:nth-child(2),
[data-rating="4.5"] .star:nth-child(3),
[data-rating="4.5"] .star:nth-child(4) {
    color: #FF6B35;
}

[data-rating="4.5"] .star:nth-child(5) {
    background: linear-gradient(90deg, #FF6B35 50%, #E0E0E0 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Étoiles pour autres notes */
[data-rating="5"] .star {
    color: #FF6B35;
}

[data-rating="4"] .star:nth-child(-n+4) {
    color: #FF6B35;
}

[data-rating="3"] .star:nth-child(-n+3) {
    color: #FF6B35;
}

[data-rating="2"] .star:nth-child(-n+2) {
    color: #FF6B35;
}

[data-rating="1"] .star:nth-child(1) {
    color: #FF6B35;
}

.rating-text {
    font-weight: bold;
    color: #0052A5;
    margin: 10px 0 0 0;
    font-size: 1.1em;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 10px;
    }
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .main {
        margin: 10px;
        padding: 15px;
    }
}