/* =============================================
   MENU CENTRE — navigation premium
   Grille responsive, plus de <table>
   ============================================= */

.menu_marque_logo {
    display: flex;
    justify-content: center;
    margin: 0 0 28px;
}
.menu_marque_logo img {
    max-height: 54px;
    width: auto;
    object-fit: contain;
}

.menu_grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    max-width: 1100px;
    margin: 0 auto 36px;
    padding: 0 16px;
}

.menu_card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 104px;
    padding: 16px 12px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 16px;
    text-decoration: none;
    color: #1a1d16;
    overflow: hidden;
    isolation: isolate;
    transition:
        transform .28s cubic-bezier(.2,.7,.2,1),
        box-shadow .28s ease,
        border-color .28s ease;
}

/* Accent vert diagonal qui apparaît au survol */
.menu_card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(110,204,174,0) 0%,
        rgba(110,204,174,.10) 100%);
    opacity: 0;
    transition: opacity .28s ease;
    z-index: -1;
}

/* Petit liseré haut qui se révèle au survol */
.menu_card::after {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--green, #6eccae),
        transparent);
    opacity: 0;
    transition: opacity .28s ease;
}

.menu_card:hover {
    transform: translateY(-3px);
    border-color: rgba(110,204,174,.55);
    box-shadow: 0 14px 32px rgba(26,29,22,.08);
    color: #1a1d16;
    text-decoration: none;
}
.menu_card:hover::before,
.menu_card:hover::after { opacity: 1; }

.menu_card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
}
.menu_card__media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(15%);
    transition: filter .28s ease, transform .28s ease;
}
.menu_card:hover .menu_card__media img {
    filter: grayscale(0);
    transform: scale(1.06);
}

/* Libellé visible par défaut (cartes sans logo) */
.menu_card__label {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    color: #1a1d16;
    letter-spacing: .01em;
}

/* Libellé caché par défaut, révélé au survol (cartes avec logo) */
.menu_card__hint {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 11px;
    color: #6b6f63;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity .25s ease, max-height .25s ease;
}
.menu_card:hover .menu_card__hint {
    opacity: 1;
    max-height: 20px;
}

/* ----------- Responsive ----------- */
@media (max-width: 1024px) {
    .menu_grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 820px) {
    .menu_grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
@media (max-width: 600px) {
    .menu_grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 0 12px;
    }
    .menu_card {
        min-height: 92px;
        padding: 12px 8px;
        border-radius: 14px;
    }
    .menu_card__media   { height: 40px; }
    .menu_card__label   { font-size: 11px; }
}
@media (max-width: 380px) {
    .menu_grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* Tactile : pas de hover qui reste "collé" */
@media (hover: none) and (pointer: coarse) {
    .menu_card:hover {
        transform: none;
        box-shadow: 0 2px 6px rgba(0,0,0,.06);
    }
    .menu_card:active { transform: scale(.97); }
    .menu_card__hint  { opacity: 1; max-height: 20px; } /* affiché en permanence */
}

.card {
	position: relative;
	border: 1px solid transparent;
	margin: 1em;
	padding: 1em;
	padding-bottom: 4.25em;
	display: flex;
	flex-direction: column;
	transition: .3s ease-in-out;
	box-shadow: 0 1px 5px rgba(0,0,0,.2), 0 2px 2px rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.12);
}
.card:hover {
	box-shadow: 0 5px 5px -3px rgba(0,0,0,.2), 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12)
}
.card H3 {
	position: absolute;
	left: 50%;
	bottom: 1em;
	transform: translate(-50%, 50%);
	width: 100vw;
	max-width: 92%;
}
.card2 {
	position: absolute;
	left: 50%;
	bottom: 1em;
	transform: translate(-50%, 50%);
	width: 100vw;
	max-width: 92%;
	font-size: 14px;
	text-align:center;
}
.card22 {
	position: absolute;
	top:110px;	
	font-size: 14px;					
	background-color: #fff; 
	text-align:center;	
}

.card3 {
	position: absolute;
	left: 50%;
	bottom: 1em;
	transform: translate(-50%, 50%);
	width: 100vw;
	max-width: 92%;
	font-size: 14px;
	text-align:center;
}
.card_tuto {
	position: relative;
	height: 150px;
	width: 250px;
	border: 1px solid transparent;
	margin: 1em;
	padding: 1em;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	transition: .3s ease-in-out;
	box-shadow: 0 1px 5px rgba(0,0,0,.2), 0 2px 2px rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.12);
}

/* =============================================
   CARTE PRODUIT MODERNE — chargeurdeportable
   Remplace .detail_accueil et ses enfants
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Space+Grotesk:wght@500;700&display=swap');

/* Grille responsive */
.produit_accueil {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 0;
}

/* Carte */
.carte_produit {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid #eeeeee;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    display: block;
    color: inherit;
    width: 100%;
}

.carte_produit:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
    color: inherit;
    text-decoration: none;
}

/* Badge stock */
.carte_badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 99px;
}

.carte_badge--stock    { background: #e8f5e0; color: #3a7a1a; }
.carte_badge--rupture  { background: #fdecea; color: #b71c1c; }

/* Badge promo */
.carte_badge_promo {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: #FDC300;
    color: #7a4f00;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
}

/* Zone image */
.carte_img {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.carte_img img {
    max-height: 120px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.carte_produit:hover .carte_img img {
    transform: scale(1.07);
}

/* Overlay au survol */
.carte_overlay {
    position: absolute;
    inset: 0;
    background: rgba(77, 163, 36, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 3;
}

.carte_produit:hover .carte_overlay {
    opacity: 1;
}

.carte_overlay--rupture {
    background: rgba(150, 150, 150, 0.85);
}

/* Bouton dans l'overlay */
.btn_panier_overlay {
    background: #ffffff;
    color: #3a76de;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.btn_panier_overlay:hover {
    background: #FDC300;
    color: #7a4f00;
}

.btn_panier_overlay--rupture {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    cursor: not-allowed;
}

/* Corps de la carte */
.carte_body {
    padding: 14px 14px 16px;
}

.carte_type {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #aaaaaa;
    margin-bottom: 4px;
}

.carte_titre {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a2e;
    line-height: 1.4;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.carte_divider {
    height: 1px;
    background: #f0f0f0;
    margin: 12px 0;
}

/* Footer prix + bouton */
.carte_footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.carte_prix_ancien {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    color: #bbbbbb;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.carte_prix {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

.carte_prix--promo { color: #c0392b; }
.carte_prix--rupture { color: #bbbbbb; }

.carte_sku {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    color: #bbbbbb;
    font-weight: 500;
}

/* Icône panier */
.carte_icone_panier {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f0f8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
    cursor: pointer;
    border: none;
}

.carte_icone_panier:hover { background: #6eccae; }
.carte_icone_panier:hover svg path { fill: #ffffff; }

.carte_icone_panier svg {
    width: 16px;
    height: 16px;
}

.carte_icone_panier svg path {
    fill: #6eccae;
    transition: fill 0.2s;
}

.carte_icone_panier--rupture {
    background: #f5f5f5;
    cursor: not-allowed;
}

:root {
    --green: #6eccae;
    --green-dark: #3a76de;
    --green-light: #8cd25a;
    --off-white: #f5f7f2;
    --charcoal: #1a1d16;
}
/* ─── BANNER 1 : Hero horizontal ─── */
.banner-hero {
	width: 900px;
	margin: 0 auto 20px auto;
	height: 340px;
	background: var(--charcoal);
	border-radius: 20px;
	display: flex;
	overflow: hidden;
	position: relative;
}
.banner-hero .left {
	flex: 1;
	padding: 44px 48px;
	margin-top: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
}
.banner-hero .tag {
	background: var(--green);
	color: #fff;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 20px;
	width: fit-content;
}
.banner-hero h2 {
	font-family: 'Syne', sans-serif;
	font-size: 42px;
	line-height: 1.05;
	color: #fff;
	font-weight: 800;
}
.banner-hero h2 span { color: var(--green); }
.banner-hero p {
	color: rgba(255,255,255,.55);
	font-size: 14px;
	line-height: 1.6;
	max-width: 300px;
}
.banner-hero .cta {
	background: var(--green);
	color: #fff;
	border: none;
	padding: 13px 28px;
	border-radius: 40px;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 500;
	width: fit-content;
	cursor: pointer;
	letter-spacing: .02em;
}
.banner-hero .right {
	width: 360px;
	position: relative;
	margin-top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.banner-hero .circle-bg {
	position: absolute;
	width: 380px;
	height: 380px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(93,174,43,.18) 0%, transparent 70%);
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
}
.banner-hero .grid-lines {
	position: absolute;
	inset: 0;
	background-image:
	linear-gradient(rgba(93,174,43,.07) 1px, transparent 1px),
	linear-gradient(90deg, rgba(93,174,43,.07) 1px, transparent 1px);
	background-size: 30px 30px;
}

/* =============================================
   RESPONSIVE — cartes produits & banner hero
   Remplace les @media existantes du fichier.
   
   ⚠ Les règles originales ciblaient .produits_grid
     alors que le vrai sélecteur est .produit_accueil.
     Corrigé ici.
   ============================================= */


/* ---------------------------------------------
   ≤ 1024px — début des contraintes
--------------------------------------------- */
@media (max-width: 1024px) {

    /* Banner hero : on abandonne les 900px figés */
    .banner-hero {
        width: auto;
        max-width: 100%;
        margin: 0 16px 20px;
        height: 320px;
    }
    .banner-hero .left   { padding: 36px 32px; }
    .banner-hero h2      { font-size: 36px; }
    .banner-hero .right  { width: 300px; }
    .banner-hero .circle-bg {
        width: 320px;
        height: 320px;
    }

    /* Cartes génériques : width:100vw casse dès que
       le conteneur n'est pas pleine page */
    .card H3,
    .card2,
    .card3 {
        width: auto;
        max-width: 92%;
    }
}


/* ---------------------------------------------
   ≤ 900px — Tablette
--------------------------------------------- */
@media (max-width: 900px) {

    .banner-hero         { height: 300px; }
    .banner-hero h2      { font-size: 32px; }
    .banner-hero .right  { width: 260px; }
    .banner-hero .circle-bg {
        width: 280px;
        height: 280px;
    }

    /* Grille produits : min plus petit */
    .produit_accueil {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 14px;
    }
}


/* ---------------------------------------------
   ≤ 768px — Bascule mobile
--------------------------------------------- */
@media (max-width: 768px) {

    /* ---- Banner hero : passe en colonne ---- */
    .banner-hero {
        flex-direction: column;
        height: auto;
        border-radius: 16px;
        margin: 0 12px 16px;
    }
    .banner-hero .left {
        padding: 28px 24px;
        gap: 14px;
    }
    .banner-hero h2 {
        font-size: 28px;
        line-height: 1.1;
    }
    .banner-hero p {
        font-size: 13px;
        max-width: none;
    }
    .banner-hero .right {
        width: 100%;
        height: 180px;
    }
    .banner-hero .circle-bg {
        width: 240px;
        height: 240px;
    }

    /* ---- Grille produits : 2 col strictes ---- */
    .produit_accueil {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .carte_img       { height: 140px; padding: 12px; }
    .carte_img img   { max-height: 100px; }
    .carte_body      { padding: 12px 12px 14px; }
    .carte_titre     { font-size: 12px; height: 34px; }
    .carte_prix      { font-size: 16px; }
    .carte_divider   { margin: 10px 0; }

    /* ---- Cartes génériques ---- */
    .card {
        margin: 0.75em;
        padding: 0.75em;
        padding-bottom: 3.5em;
    }
    .card_tuto {
        width: auto;
        max-width: 100%;
        height: auto;
        min-height: 130px;
        margin: 0.75em;
    }
    .card22 { top: 90px; }
}


/* ---------------------------------------------
   ≤ 600px — Grand téléphone
--------------------------------------------- */
@media (max-width: 600px) {

    .banner-hero .left   { padding: 24px 20px; }
    .banner-hero h2      { font-size: 24px; }
    .banner-hero .cta {
        padding: 11px 22px;
        font-size: 13px;
    }
    .banner-hero .right  { height: 160px; }
    .banner-hero .circle-bg {
        width: 200px;
        height: 200px;
    }
}


/* ---------------------------------------------
   ≤ 480px — Téléphone standard
--------------------------------------------- */
@media (max-width: 480px) {

    /* ---- Banner hero ---- */
    .banner-hero {
        margin: 0 8px 12px;
        border-radius: 12px;
    }
    .banner-hero .left   { padding: 20px 16px; }
    .banner-hero .tag    { font-size: 10px; }
    .banner-hero h2      { font-size: 22px; }
    .banner-hero p       { font-size: 12px; }
    .banner-hero .right  { height: 140px; }
    .banner-hero .circle-bg {
        width: 180px;
        height: 180px;
    }
    .banner-hero .grid-lines {
        background-size: 20px 20px;
    }

    /* ---- Grille produits ---- */
    .produit_accueil {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .carte_img          { height: 120px; padding: 10px; }
    .carte_img img      { max-height: 90px; }

    .carte_badge,
    .carte_badge_promo {
        font-size: 9px;
        padding: 3px 8px;
        top: 8px;
    }
    .carte_badge        { left: 8px; }
    .carte_badge_promo  { right: 8px; }

    .carte_body         { padding: 10px 10px 12px; }
    .carte_titre        { font-size: 12px; height: 32px; }
    .carte_type         { font-size: 9px; }
    .carte_divider      { margin: 8px 0; }
    .carte_prix         { font-size: 15px; }
    .carte_prix_ancien  { font-size: 10px; }
    .carte_sku          { font-size: 9px; }

    .carte_icone_panier {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }
    .carte_icone_panier svg {
        width: 14px;
        height: 14px;
    }

    .btn_panier_overlay {
        padding: 8px 14px;
        font-size: 12px;
    }

    /* Cartes génériques */
    .card {
        margin: 0.5em;
        padding: 0.75em 0.5em 3em;
    }
    .card_tuto {
        margin: 0.5em;
        padding: 0.75em;
    }
}


/* ---------------------------------------------
   ≤ 380px — Petit téléphone
--------------------------------------------- */
@media (max-width: 380px) {

    .banner-hero h2      { font-size: 20px; }
    .banner-hero .left   { padding: 18px 14px; }
    .banner-hero .right  { height: 120px; }

    /* Grille reste en 2 colonnes mais très compact */
    .produit_accueil {
        gap: 6px;
    }
    .carte_img          { height: 100px; padding: 8px; }
    .carte_img img      { max-height: 76px; }
    .carte_body         { padding: 8px; }
    .carte_titre        { font-size: 11px; height: 30px; }
    .carte_prix         { font-size: 14px; }

    /* Badges : trop gros pour cet espace → on coupe le texte long */
    .carte_badge,
    .carte_badge_promo {
        font-size: 8px;
        padding: 2px 6px;
    }
}


/* ---------------------------------------------
   Support tactile
   Les effets :hover (overlay, zoom image, lift)
   ne fonctionnent pas sur tactile → on neutralise
   et on ajoute un feedback :active à la place.
--------------------------------------------- */
@media (hover: none) and (pointer: coarse) {

    /* Overlay inutile en tactile */
    .carte_overlay {
        opacity: 0 !important;
        pointer-events: none;
    }

    /* Pas de zoom image */
    .carte_produit:hover .carte_img img {
        transform: none;
    }

    /* Pas de lift au hover (reste collant sur tap) */
    .carte_produit:hover {
        transform: none;
        box-shadow: 0 1px 5px rgba(0,0,0,.2),
                    0 2px 2px rgba(0,0,0,.14),
                    0 3px 1px -2px rgba(0,0,0,.12);
    }

    /* Feedback au tap */
    .carte_produit:active {
        transform: scale(.98);
    }
    .carte_icone_panier:active,
    .btn_panier_overlay:active,
    .banner-hero .cta:active {
        transform: scale(.96);
    }
}