/* --- 1. Réinitialisation et Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #fcfcfc;
    color: #333;
    line-height: 1.6;
}

/* --- 2. Header (Style Épuré) --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.nav-menu a {
    text-decoration: none;
    font-weight: 600;
    color: #000;
    margin: 0 10px;
    font-size: 0.9rem;
}

.logo img {
    height: 40px;       /* Ajuste cette hauteur selon tes goûts */
    width: auto;        /* Conserve les proportions de ton logo */
    display: block;
}

/* --- 3. Structure Mobile (Par défaut : 1 Colonne) --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.shop-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 500;
}

/* Grille de produits : Mobile-First */
.products-grid {
    display: grid;
    grid-template-columns: 1fr; /* Une seule colonne sur téléphone */
    gap: 30px; /* Espace entre les produits */
}

/* --- 4. Cartes Produits --- */
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    background-color: #f7f7f7;
}

.product-info {
    padding: 15px 10px;
    text-align: left;
}

.product-name {
    font-size: 1rem;
    font-weight: 400;
    color: #222;
    margin-bottom: 5px;
}

.product-price {
    font-weight: 600;
    color: #000;
}

/* --- 5. Footer --- */
footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 0.8rem;
    color: #888;
}

/* ==========================================================================
   --- 6. VERSION PC (Media Query pour écrans plus grands que 768px) ---
   ========================================================================== */
@media (min-width: 768px) {
    .products-grid {
        /* Le site passe automatiquement en 3 colonnes sur PC */
        grid-template-columns: repeat(3, 1fr); 
        gap: 40px;
    }

    .shop-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .product-card:hover {
        transform: translateY(-4px); /* Petit effet de survol sympa sur PC */
    }
}

/* --- Style du Bouton Ajouter au Panier / Voir le produit --- */
.add-to-cart-btn,
.view-product-btn {
    display: block;
    width: 100%;             /* Le bouton prend toute la largeur de la carte */
    background-color: #111;  /* Noir moderne */
    color: #fff;             /* Texte blanc */
    border: none;
    padding: 12px;           /* Large zone de clic, idéale pour le mobile (environ 45px de haut au total) */
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;      /* Angles légèrement arrondis */
    margin-top: 15px;        /* Espace avec le prix */
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Effet au survol (principalement pour la version PC) */
.add-to-cart-btn:hover,
.view-product-btn:hover {
    background-color: #333;  /* Devient un peu plus clair au survol */
}

/* Effet au clic (effet tactile sur mobile) */
.add-to-cart-btn:active,
.view-product-btn:active {
    background-color: #000;
    transform: scale(0.98);  /* Légère sensation d'enfoncement */
}


/* --- Page À propos (Mobile-First) --- */
.container-about {
    max-width: 900px; /* Un peu plus serré pour que le texte soit agréable à lire */
}

.about-content {
    display: flex;
    flex-direction: column; /* L'un en dessous de l'autre sur mobile */
    gap: 30px;
}

.about-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.about-text h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-text p {
    margin-bottom: 15px;
    color: #555;
    font-size: 1rem;
}

/* Lien actif dans le menu (optionnel pour savoir sur quelle page on est) */
.nav-menu a.active {
    color: #000;
    font-weight: 600;
}

/* --- Version PC (Ajustement dans la Media Query existante) --- */
@media (min-width: 768px) {
    /* Ajoute ceci à l'intérieur de ta media query existante tout en bas */
    .about-content {
        flex-direction: row; /* Côte à côte sur PC */
        align-items: center;
    }
    
    .about-image, .about-text {
        flex: 1; /* Chaque bloc prend 50% de la largeur */
    }
}


/* --- Panier Coulissant --- */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;          /* Prend tout l'écran sur mobile */
    max-width: 400px;     /* Reste discret sur PC */
    height: 100vh;
    background-color: #fff;
    z-index: 200;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transform: translateX(100%); /* Caché par défaut à droite */
    transition: transform 0.3s ease-in-out;
}

/* Classe qui sera ajoutée en JavaScript pour ouvrir le panier */
.cart-drawer.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto; /* Permet de défiler si beaucoup d'articles */
}

.empty-cart-msg {
    color: #888;
    text-align: center;
    margin-top: 50px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    background-color: #fafafa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
}

/* Fond sombre transparent */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 150;
    display: none; /* Caché par défaut */
}

.cart-overlay.open {
    display: block;
}


/* --- Éléments du panier dynamique --- */
.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #fcfcfc;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.cart-item-price {
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-item-unit-price {
    font-size: 0.75rem;
    color: #999;
    font-weight: 400;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    padding: 5px;
    flex-shrink: 0;
}

.remove-item-btn:hover {
    color: #ff4d4d;
}

/* --- Contrôles de quantité (+/-) dans le panier --- */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.qty-btn:hover {
    background-color: #111;
    border-color: #111;
    color: #fff;
}

.qty-btn:active {
    transform: scale(0.94);
}

.qty-value {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

/* --- Page Contact (Mobile-First) --- */
.container-contact {
    text-align: center;
    max-width: 800px;
}

.contact-subtitle {
    color: #666;
    margin-bottom: 40px;
    font-size: 1rem;
}

/* Grille de contact : 2 colonnes par défaut sur mobile */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Style des cartes de contact */
.contact-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px 15px;
    text-decoration: none; /* Enlève le soulignement des liens */
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-card p {
    font-size: 0.85rem;
    color: #888;
    word-break: break-all; /* Évite que l'adresse mail ne dépasse sur petit écran */
}

/* Effets de survol (PC et tactile) */
.contact-card:hover {
    transform: translateY(-3px);
    border-color: #111;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* --- Ajustement PC (Media Query existante) --- */
@media (min-width: 768px) {
    /* Ajoute ceci à l'intérieur de ta media query @media (min-width: 768px) existante tout en bas */
    .contact-grid {
        grid-template-columns: repeat(4, 1fr); /* Passe en 4 colonnes sur grand écran */
    }
}

/* --- Ajustement pour la carte email en mode bouton --- */
.email-button {
    border: 1px solid #eee;
    background: #fff;
    font-family: inherit;
    cursor: pointer;
    width: 100%; /* S'assure qu'il prend bien sa place dans la grille */
}

/* Changement de couleur temporaire en vert lors de la copie réussi */
.email-button.copied {
    border-color: #2ecc71;
    background-color: #f6fff9;
}


/* --- Section Bannière d'Accueil (Hero) --- */
.hero-banner {
    position: relative;
    width: 100%;
    height: 60vh; /* Prend 60% de la hauteur de l'écran sur mobile et PC */
    min-height: 350px; /* Évite qu'elle soit trop écrasée sur les petits téléphones */
    background-image: url('image/banniere.jpg'); /* Ton illustration */
    background-size: cover; /* L'image couvre tout l'espace sans se déformer */
    background-position: center; /* L'image reste centrée */
    border-radius: 12px; /* Petits angles arrondis pour un look moderne comme le site de référence */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 40px; /* Espace avec le reste de la boutique */
}

/* Filtre transparent pour s'assurer que le texte blanc reste lisible sur l'illustration */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25); /* Ajuste le 0.25 (plus ou moins sombre) selon ton image */
    z-index: 1;
}

/* Contenu textuel au-dessus du filtre */
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff; /* Texte tout en blanc */
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 1.8rem; /* Taille adaptée pour mobile */
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Ombre portée pour détacher le texte */
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 25px;
    font-weight: 300;
    opacity: 0.9;
}

/* Bouton au milieu de la bannière */
.hero-btn {
    display: inline-block;
    background-color: #2ec4b6; /* La couleur turquoise du bouton de Morgan the Slug */
    color: #fff;
    text-decoration: none;
    padding: 12px 35px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.hero-btn:hover {
    background-color: #25a196; /* Légèrement plus foncé au survol */
    transform: scale(1.03);
}

/* --- Ajustement de la taille du texte sur PC --- */
@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem; /* Écrit plus gros sur grand écran */
    }
    .hero-content p {
        font-size: 1.2rem;
    }
}


/* --- Mise en page Page Produit (Mobile-First) --- */
.product-page-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.main-product-img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    background-color: #fafafa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.back-to-shop {
    display: inline-block;
    text-decoration: none;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.back-to-shop:hover {
    color: #000;
}

.product-page-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-page-price {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2ec4b6; /* Couleur turquoise */
    margin-bottom: 25px;
}

.product-page-description h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-page-description p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.product-page-description ul {
    padding-left: 20px;
    margin-bottom: 30px;
    color: #555;
}

.product-page-description li {
    margin-bottom: 8px;
}

/* Bouton d'achat de la page produit */
.product-page-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Enlève le soulignement bleu par défaut sur les fiches de l'accueil */
.product-link {
    text-decoration: none;
    color: inherit;
}

/* --- Version PC --- */
@media (min-width: 768px) {
    .product-page-layout {
        flex-direction: row; /* Image et infos côte à côte */
        align-items: flex-start;
    }
    
    .product-page-images, .product-page-info {
        flex: 1; /* 50% de largeur chacun */
    }
    
    .product-page-info {
        padding-left: 20px;
    }
}


/* --- Options de produits (Tailles) --- */
.product-options {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-options label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
}

.size-selector {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
}

/* Badge de taille dans le panier coulissant */
.cart-item-size {
    display: inline-block;
    font-size: 0.75rem;
    background-color: #f0f0f0;
    color: #666;
    padding: 2px 6px;
    border-radius: 4px;
    margin: 4px 0;
    font-weight: 600;
}


/* --- Carrousel d'images (Page Produit) --- */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    overflow: hidden; /* Cache les images qui dépassent */
    border-radius: 8px;
    border: 1px solid #eee;
    background-color: #fafafa;
}

.product-slider {
    display: flex;
    transition: transform 0.4s ease-in-out; /* Animation fluide de glissement */
    width: 100%;
}

.product-slider .main-product-img {
    width: 100%;
    flex-shrink: 0; /* Empêche les images de se déformer ou rétrécir */
    max-height: 450px;
    object-fit: contain;
    border: none; /* Enlève l'ancienne bordure individuelle */
    border-radius: 0;
}

/* Boutons Précédent / Suivant */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.2s, scale 0.1s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.slider-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    scale: 1.05;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Points indicateurs (Dots) */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #2ec4b6; /* Devient turquoise quand l'image est active */
}

/* ==========================================================================
   --- 7. Page d'accueil : "À la une" + bannières catégories ---
   ========================================================================== */

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 500;
}

/* --- "À la une" : carte produit mise en avant --- */
.featured-section {
    margin-bottom: 45px;
}

.featured-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f0f0f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.featured-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    background-color: #f7f7f7;
    display: block;
}

.featured-info {
    padding: 20px;
}

.featured-badge {
    display: inline-block;
    background-color: #2ec4b6;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.featured-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.featured-price {
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
}

.featured-cta {
    display: inline-block;
    background-color: #111;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* --- 4 bannières de catégories --- */
.category-banners {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 50px;
}

.category-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    border-radius: 10px;
    text-decoration: none;
    overflow: hidden;
}

.category-banner span {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.category-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease;
}

.category-banner:hover::after {
    background-color: rgba(0, 0, 0, 0.3);
}

.category-banner:hover {
    transform: scale(1.02);
}

.category-packs   { background: linear-gradient(135deg, #ff9a76, #ff6f61); }
.category-prints  { background: linear-gradient(135deg, #6fb1fc, #4364f7); }
.category-pins    { background: linear-gradient(135deg, #f7b733, #fc4a1a); }
.category-stickers{ background: linear-gradient(135deg, #43e97b, #2ec4b6); }

/* --- Sections produits par catégorie --- */
.category-section {
    margin-bottom: 55px;
    scroll-margin-top: 90px; /* Évite que le header sticky ne cache le titre lors du scroll à l'ancre */
}

/* --- Carte "bientôt disponible" (ex: Packs sans produit pour l'instant) --- */
.coming-soon-card {
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    color: #999;
    grid-column: 1 / -1;
}

.coming-soon-card p {
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .featured-card {
        flex-direction: row;
    }

    .featured-image {
        flex: 1;
    }

    .featured-image img {
        height: 100%;
    }

    .featured-info {
        flex: 1;
        padding: 35px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .featured-name {
        font-size: 1.7rem;
    }

    .category-banners {
        grid-template-columns: repeat(4, 1fr);
    }

    .category-banner {
        height: 140px;
    }

    .category-banner span {
        font-size: 1.2rem;
    }
}


/* ==========================================================================
   --- 8. Page de remerciement (retour de paiement Stripe) ---
   ========================================================================== */
.confirmation-box {
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
    padding: 20px;
}

.confirmation-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.confirmation-box h1 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.confirmation-box p {
    color: #555;
    margin-bottom: 25px;
}

.confirmation-box .hero-btn {
    display: inline-block;
}
