/* Styles généraux */
body {
    font-family: 'Roboto', sans-serif; /* Changez 'Roboto' par la police de votre choix */
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    color: #333;
    animation: fadeIn 1.5s ease-out;
    font-size: 16px; /* Taille de police de base */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Le body prend la hauteur totale de la page */
}

h1, h2, h3, h4 {
    font-weight: 700; /* Titres en gras */
    margin-bottom: 10px; /* Espacement pour les titres */
}

p {
    margin-bottom: 10px; /* Espacement pour les paragraphes */
}


header {
    background-color: #004aad;
    color: white;
    padding: 20px;
    text-align: center;
    border-bottom: 5px solid #002f6e;
    animation: slideInFromTop 1s ease-out;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

nav {
    background-color: #004aad;
    display: flex;
    justify-content: center;
    padding: 10px;
    margin-bottom: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 1.1rem;
    background-color: #005fcf;
    border-radius: 25px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
    background-color: #007bff;
    transform: scale(1.05);
}

/* Animation for page fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide-in from top for the header */
@keyframes slideInFromTop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

main {
    margin: 20px auto;
    max-width: 1200px;
    padding: 20px;
    flex: 1; /* Le main prend tout l'espace restant */
}

/* Styles pour les formulaires */
form {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: auto;
    animation: fadeIn 1.5s ease-out;
}

form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #cccccc;
}

form button {
    background-color: #004aad;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 100%;
}

form button:hover {
    background-color: #005fcf;
    transform: scale(1.05);
}

/* Boutons avec animations douces */
button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #218838;
    transform: scale(1.05);
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Page d'accueil animations */
.home-section {
    text-align: center;
    background-color: #eef2f6;
    padding: 60px 20px;
    border-bottom: 5px solid #004aad;
    animation: fadeIn 1.5s ease-out;
}

.home-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    animation: zoomIn 1s ease-out;
}

.home-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #555;
}

.home-section button {
    background-color: #004aad;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 30px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.home-section button:hover {
    background-color: #005fcf;
    transform: scale(1.05);
}

/* Animation for zoom effect */
@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Produits */
.product {
    display: inline-block;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px;
    padding: 20px;
    text-align: center;
    width: 250px;
    transition: transform 0.3s ease;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    object-fit: contain; /* Ajuste l'image pour qu'elle remplisse l'espace sans être déformée */
}

.product img {
    width: 100%;
    height: 200px; /* Fixe une même hauteur pour toutes les images */
    object-fit: cover; /* Maintient les proportions */
    border-radius: 5px;
    max-width: 250px; /* Fixe une largeur maximale pour uniformiser */
}

.product-image-container {
    width: 100%;
    height: 200px; /* Fixe une même hauteur */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Cache l'excès d'image */
}

.product-image-container img {
    width: 100%;
    height: auto; /* Laisse l'image garder son ratio */
    object-fit: cover; /* Remplit l'espace du conteneur sans déformation */
}

/* Media Queries */
@media (max-width: 768px) {
    .product-image-container {
        height: 150px; /* Taille d'image réduite sur mobile */
    }
}

.product h3 {
    font-size: 1.5rem;
    margin: 10px 0;
}

.product p {
    font-size: 1rem;
    color: #666;
}

.product button {
    margin-top: 15px;
    width: 100%;
}

.product:hover {
    transform: translateY(-10px);
}

footer {
    position: sticky; /* Fixe le footer */
    bottom: 0; /* Place le footer en bas */
    left: 0;
    width: 100%; /* Prend toute la largeur */
    background-color: #004aad; /* Couleur du footer */
    color: white;
    padding: 13px;
    text-align: center;
    border-top: 5px solid #002f6e;
    margin-top: auto
}

.social-icons {
    display: flex;
    justify-content: center; /* Centrer les icônes */
    gap: 15px; /* Espacement entre les icônes */
    margin-top: 10px; /* Espacement avec le texte du footer */
}

.social-icons a {
    margin: 0 10px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
}

.social-icons img {
    width: 40px;  /* Ajuste la taille des logos */
    height: auto;
    margin: 0 10px; /* Ajoute un peu d'espacement */
    filter: none;   /* Assure-toi qu'il n'y a pas de filtre appliqué */
    opacity: 1;     /* Assure une opacité complète */
    transition: transform 0.3s ease; /* Animation au hover */
}

/* Responsive design */
@media (max-width: 768px) {
    footer {
        padding: 15px; /* Réduire l'espacement sur les petits écrans */
        flex-direction: column; /* Empiler les éléments en colonne */
        text-align: center; /* Texte centré */
    }

    .social-icons {
        gap: 10px; /* Réduire l'espacement entre les icônes */
    }

    .social-icons img {
        width: 28px; /* Réduire la taille des icônes sur les petits écrans */
        height: 28px;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 10px; /* Réduire encore l'espacement pour les très petits écrans */
    }

    .social-icons img {
        width: 20px; /* Réduire la taille des logos sur mobile */
    }
}

/* Style pour la notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #007BFF; /* Couleur de fond */
    color: white; /* Couleur du texte */
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0; /* Initialement invisible */
    transform: translateY(-20px); /* Déplacement vers le haut */
}

.notification.show {
    opacity: 1; /* Rendre visible */
    transform: translateY(0); /* Remettre à la position d'origine */
}

/* Animation d'apparition */
.notification.show {
    animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style de base pour le panier */
.cart-container {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Espacement entre les éléments */
    padding: 20px;
}

/* Style pour chaque article dans le panier */
.cart-item {
    border: 1px solid #ccc; /* Bordure légère */
    padding: 15px; /* Espacement interne */
    border-radius: 5px; /* Coins arrondis */
    background-color: #f9f9f9; /* Couleur de fond */
}

.cart-item h3 {
    margin: 0;
}

.cart-item p {
    margin: 5px 0;
}

.empty-cart {
    text-align: center;
    font-style: italic;
    color: #777;
}

.remove-button {
    background-color: #e74c3c; /* Rouge pour le bouton de suppression */
    color: white;
    padding: 8px 12px; /* Espacement interne du bouton */
    border: none;
    border-radius: 4px; /* Coins arrondis pour le bouton */
    cursor: pointer; /* Curseur pointer pour l'interaction */
}

.remove-button:hover {
    background-color: #FF1A1A;
    background-color: #c0392b; /* Couleur plus sombre au survol */
}

.cart-total {
    text-align: right;
    font-size: 1.2em;
    margin-top: 20px;
}

.checkout {
    text-align: center;
    margin-top: 20px;
}

.checkout button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
}

.checkout button:hover {
    background-color: #218838;
}

/* Styles pour rendre les éléments responsives */
@media (max-width: 768px) {
    .cart-container {
        padding: 10px; /* Réduire l'espacement sur les petits écrans */
    }

    input[type="number"] {
        width: 40px; /* Réduire la largeur sur les petits écrans */
    }

    .cart-item {
        padding: 10px; /* Réduire l'espacement interne pour plus de compacité */
    }
}

/* Styles pour les boîtes de saisie de nombre */
input[type="number"] {
    width: 60px; /* Largeur fixe plus raisonnable */
    padding: 5px; /* Espacement interne pour le confort */
    border: 1px solid #ccc; /* Bordure légère */
    border-radius: 4px; /* Coins arrondis */
    font-size: 1rem; /* Taille de police */
    box-sizing: border-box; /* Assure que le padding et la bordure sont inclus dans la largeur totale */
}

/* Style responsive pour le footer */
@media (max-width: 768px) {
    footer {
        padding: 15px; /* Réduire l'espacement sur les petits écrans */
        flex-direction: column; /* Empiler les éléments en colonne */
        text-align: center; /* Texte centré */
    }

    .social-icons {
        gap: 10px; /* Réduire l'espacement entre les icônes */
    }

    .social-icons img {
        width: 28px; /* Réduire la taille des icônes sur les petits écrans */
        height: 28px;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 10px; /* Réduire encore l'espacement pour les très petits écrans */
    }

    .social-icons img {
        width: 30px; /* Réduire la taille des logos sur mobile */
    }
}


.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Grille responsive */
    gap: 20px;
    justify-content: center;
}



@import url('https://fonts.googleapis.com/css?family=Poppins:900i');

* {
  box-sizing: border-box;
}

.wrapper {
  display: flex;
  justify-content: center;
}

.cta {
    display: flex;
    padding: 10px 45px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 40px;
    color: white;
    background: #6225E6;
    transition: 1s;
    box-shadow: 6px 6px 0 black;
    transform: skewX(-15deg);
}

.cta:focus {
   outline: none; 
}

.cta:hover {
    transition: 0.5s;
    box-shadow: 10px 10px 0 #FBC638;
}

.cta span:nth-child(2) {
    transition: 0.5s;
    margin-right: 0px;
}

.cta:hover  span:nth-child(2) {
    transition: 0.5s;
    margin-right: 45px;
}

  span {
    transform: skewX(15deg) 
  }

  span:nth-child(2) {
    width: 20px;
    margin-left: 30px;
    position: relative;
    top: 12%;
  }
  
/**************SVG****************/

path.one {
    transition: 0.4s;
    transform: translateX(-60%);
}

path.two {
    transition: 0.5s;
    transform: translateX(-30%);
}

.cta:hover path.three {
    animation: color_anim 1s infinite 0.2s;
}

.cta:hover path.one {
    transform: translateX(0%);
    animation: color_anim 1s infinite 0.6s;
}

.cta:hover path.two {
    transform: translateX(0%);
    animation: color_anim 1s infinite 0.4s;
}

/* SVG animations */

@keyframes color_anim {
    0% {
        fill: white;
    }
    50% {
        fill: #FBC638;
    }
    100% {
        fill: white;
    }
}