/* Header */

body {
    font-family: Roboto, sans-serif;
    background-color: #f1f1f1;
}

header {
    background-color: #50909F;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.logo img {
  width: 150px;
  height: 90px;
}

.header-buttons button {
    margin-left: 10px;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.btn-orange {
    background-color: #f28002;
    color: white;
}

.btn-orange:hover {
    background-color: #d97002;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.btn-white {
    background-color: white;
    color: black;
}

.btn-white:hover {
    background-color: #f0f0f0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

/* Animation 3D pièce */

h1 {
    color: #50909F;
}

.coin {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, #ffd700, #d4af37);
    border: 2px solid #bfa14c;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 20px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    margin: 20px auto;
    animation: rotateCoin 5s ease-in-out infinite;
    transform-origin: center;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
}

.coin::before {
    content: "1 €";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    font-weight: bold;
    color: white;
}

.coin::after {
    content: "";
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    top: 10%;
    left: 10%;
    pointer-events: none;
}

.coin-container {
    perspective: 800px;
    width: 300px;
    height: auto;
    margin: 50px auto;
    text-align: center;
    background-color: f1f1f1;
}

@keyframes rotateCoin {
    0% {
        transform: rotateY(0deg) translateY(0);
    }
    50% {
        transform: rotateY(180deg) translateY(-5px);
    }
    100% {
        transform: rotateY(360deg) translateY(0);
    }
}

/* Filtre */

nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background-color: white;
}

nav button {
    background-color: #50909F;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

nav button:hover {
    background-color: #40808F;
    transform: scale(1.05);
}

nav button:active {
    background-color: #30707F;
}

/* Catalogue */

main {
    background-color: #f1f1f1;
}

.filter {
    background: none;
    font-size: 1.2em;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.item {
    background: white;
    text-align: center;
    padding: 15px;
    border: 2px solid #f28002;
}

.item img {
    width: 100px;
    height: auto;
}

.item p {
    color: #f28002;
    margin: 5px 0;
}

/* Footer */
footer {
    background-color: #50909F;
    padding: 20px 0;
    color: #f1f1f1;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 8em;
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne si nécessaire */
}

.footer-text {
    text-align: left;
    width: 60%;
    border-right: 2px solid white;
    padding-right: 20px;
}

.socials {
    text-align: right;
    width: 20%;
}

.social-links {
    display: flex;
    flex-direction: column;
}

.social-links a {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    text-decoration: none; 
    color: #333; 
}

.social-links img {
    margin-right: 10px; 
}

.social-links a, footer a {
    color: #f1f1f1;
    text-decoration: none;
}

h3 {
    color: #f28002;
}

/* Responsive tablette */
@media screen and (max-width: 1200px) {

    /* Footer */
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-text {
        width: 100%;
        border-right: none;
        margin-bottom: 20px;
        border-bottom: 1px solid white;
        padding-bottom: 20px;
    }

    .socials {
        width: 100%;
        text-align: center;
    }

    /* Header */
    header {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .logo img {
        width: 120px;
        margin-bottom: 10px;
    }

    .header-buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-buttons button {
        margin: 8px;
        padding: 8px 12px;
        font-size: 14px;
    }
}

/*bouton */

.produit-buttons button {
    margin-left: 10px;
    padding: 10px 15px;
    border: 2px solid transparent; 
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.btn-produit {
    background-color: #f28002;
    color: white;
    border-color: #f28002; }

.btn-produit:hover {
    background-color: #d97002;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
    border-color: #d97002; }

/* Responsive téléphone */
@media (max-width: 768px) {

    /* Header */
    .header-buttons {
        flex-direction: column;
        align-items: center;
    }

    .header-buttons button {
            width: 100%;
    }
}



