/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* =========================================================
   VARIABLES
========================================================= */

:root{

    /* COLORS */
    --green:#16a34a;
    --green-dark:#14532d;
    --green-hover:#15803d;

    --blue:#2563eb;
    --blue-hover:#1d4ed8;

    --red:#dc2626;
    --orange:#f59e0b;

    --text:#1f2937;
    --gray:#6b7280;

    --bg:#f4f7f5;
    --white:#ffffff;

    --border:#e5e7eb;

    /* EFFECTS */
    --radius:18px;
    --radius-lg:24px;

    --shadow:
        0 5px 20px rgba(0,0,0,0.08);

    --transition:.25s ease;
}

/* =========================================================
   GLOBAL
========================================================= */

html{
    scroll-behavior:smooth;
}

body{
    margin:0;

    font-family:Arial,sans-serif;

    background:var(--bg);
    color:var(--text);

    padding-bottom:180px;

    overflow-x:hidden;
}

img{
    max-width:100%;
    display:block;
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;

    text-decoration:none;

    color:#14532d;

    font-size:22px;
    font-weight:bold;
}

.logo img{
    width:100px;
    height:100px;

    object-fit:contain;
}

.logo:hover{
    opacity:.9;
}

button,
input,
textarea,
select{
    font-family:inherit;
}

button{
    cursor:pointer;
}

.hidden{
    display:none !important;
}


.no-photo{
    height:165px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    gap:10px;

    background:linear-gradient(135deg,#f3f4f6,#e5e7eb);

    color:#6b7280;

    font-weight:600;

    border-radius:16px;
}
/* =========================================================
   HEADER
========================================================= */

.site-header{
    position:sticky;
    top:0;
    z-index:1000;

    background:rgba(255,255,255,0.95);
    backdrop-filter:blur(12px);

    padding:22px 50px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    box-shadow:0 5px 25px rgba(0,0,0,0.08);
}

/* LOGO */
.logo{
    display:flex;
    align-items:center;
    gap:16px;

    text-decoration:none;
}

.logo img{
    width:70px;
    height:70px;
}

.logo span{
    font-size:28px;
    font-weight:800;

    color:#1f5c3a;

    line-height:1.2;
}

/* MENU */
.menu{
    display:flex;
    align-items:center;
    gap:20px;
}

.menu a{
    text-decoration:none;

    color:#222;

    font-size:19px;
    font-weight:700;

    padding:14px 24px;

    border-radius:14px;

    transition:all 0.25s ease;
}

.menu a:hover{
    background:#1f5c3a;
    color:white;

    transform:translateY(-2px);

    box-shadow:0 6px 18px rgba(31,92,58,0.25);
}

/* BURGER */
#menu-toggle{
    display:none;
}

.burger{
    display:none;

    font-size:38px;
    color:#1f5c3a;

    cursor:pointer;
}

/* MOBILE */
@media(max-width:1000px){

    .burger{
        display:block;
    }

    .menu{
        position:absolute;

        top:100%;
        right:20px;

        flex-direction:column;

        width:300px;

        background:white;

        padding:25px;

        border-radius:22px;

        box-shadow:0 15px 40px rgba(0,0,0,0.15);

        display:none;
    }

    .menu a{
        width:100%;
        text-align:center;

        font-size:22px;

        padding:18px;
    }

    #menu-toggle:checked ~ .menu{
        display:flex;
    }

    .logo span{
        font-size:22px;
    }

    .logo img{
        width:60px;
        height:60px;
    }
}
/* =========================================================
   HERO
========================================================= */

.hero{
    max-width:1100px;
   margin:120px auto 80px;

    padding:50px;

    background:white;

    border-radius:28px;

    box-shadow:0 10px 35px rgba(0,0,0,0.08);

    text-align:center;
}

.hero h1{
    font-size:42px;
    color:#1f5c3a;

    margin-bottom:30px;
}

.hero p{
    font-size:20px;
    line-height:1.9;

    color:#333;
}

/* BOUTONS DANS LE TEXTE */
.hero-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;

    margin:0 6px;
    padding:10px 18px;

    background:#1f5c3a;
    color:white;

    text-decoration:none;

    font-weight:700;

    border-radius:14px;

    transition:all 0.25s ease;
}

.hero-btn.cmd{
    background:orange;
}

.hero-btn.cmd:hover{
    background:darkorange;
}

.hero-btn:hover{
    background:#2d7a50;

    transform:translateY(-2px);

    box-shadow:0 6px 18px rgba(31,92,58,0.25);
}

.size-info{
    margin-top:30px;
    text-align:left;
}

.size-info h3{
    margin-bottom:18px;
    font-size:22px;
    color:#1f2937;
}

.size-grid{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.size-card{
    display:flex;
    align-items:flex-start;
    gap:16px;

    background:#ffffffcc;
    border:1px solid #d1d5db;

    padding:18px;
    border-radius:16px;

    box-shadow:0 4px 10px rgba(0,0,0,0.05);
}

.size-badge{
    min-width:46px;
    height:46px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:12px;

    background:#14532d;
    color:white;

    font-size:20px;
    font-weight:bold;
}

/* =========================================================
   GALLERY
========================================================= */

.gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;

    padding:30px;
}

.gallery img{
    width:100%;
    height:260px;
    object-fit:cover;

    border-radius:20px;

    box-shadow:0 4px 15px rgba(0,0,0,0.08);

    transition:0.25s;
}

.gallery img:hover{
    transform:scale(1.02);
}

.no-photo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 165px;
}

.no-photo-logo {
	max-width: 120px;
	max-height: 120px;
	opacity: 0.7;
}


/* =========================================================
   CARDS
========================================================= */

.cards{
    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(260px,1fr));

    gap:28px;

    max-width:1600px;
    margin:auto;

    padding:30px;
}

/* VERSION SPECIES */

.cards--species{
    display:block;
}

.card{
    position:relative;

    background:var(--white);

    border-radius:var(--radius-lg);

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:var(--transition);

    display:flex;
    flex-direction:column;
}

.card:hover{
    transform:translateY(-4px);
}

.card img{
    width:100%;

    aspect-ratio:4/3;

    object-fit:cover;

    cursor:pointer;

    transition:.3s;
}

.card img:hover{
    transform:scale(1.03);
}

.card-title{
    padding:18px 15px 0;

    text-align:center;

    font-size:20px;
    font-weight:bold;

    color:var(--green-dark);
}

.cultivar{
    padding:15px 15px 5px;

    text-align:center;

    font-size:15px;

    color:var(--gray);

    min-height:50px;
}

/* =========================================================
   LOST CARD / OUT STOCK
========================================================= */

.lost-card img{
    filter:grayscale(100%);
    opacity:.6;
}

.out-card{
    opacity:.5;
    filter:grayscale(1);
}

/* =========================================================
   BADGES
========================================================= */

.badge-out,
.badge-soon{
    position:absolute;

    left:-40px;

    padding:8px 60px;

    transform:rotate(-25deg);

    color:white;

    font-size:14px;
    font-weight:bold;

    box-shadow:0 2px 10px rgba(0,0,0,.2);

    pointer-events:none;
}

.badge-out{
    top:15px;
    background:var(--red);
}

.badge-soon{
    top:15px;
    background:var(--orange);
}

/* =========================================================
   PRICES
========================================================= */

.prices{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;

    margin-top: 15px;
}

.size-btn{
    flex: 1;

    min-width: 110px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 12px 10px;

    border: none;
    border-radius: 16px;

    background: linear-gradient(
        135deg,
        #22c55e,
        #16a34a
    );

    color: white;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;

    box-shadow:
        0 4px 10px rgba(0,0,0,0.12);
}

.size-btn:hover{
    transform: translateY(-2px);

    box-shadow:
        0 8px 18px rgba(0,0,0,0.18);
}

.size-btn:active{
    transform: scale(0.97);
}

.size-label{
    font-size: 13px;
    opacity: 0.9;
}

.size-price{
    font-size: 22px;
    font-weight: 700;

    margin: 4px 0;
}

.size-stock{
    font-size: 12px;

    opacity: 0.95;
}

.disabled-btn{
    opacity:.3;
    cursor:not-allowed;
}

/* =========================================================
   METHOD SECTION
========================================================= */

.method-section{
    max-width:1200px;

    margin:60px auto;

    padding:0 20px;
}

.method-section h2{
    text-align:center;

    font-size:32px;

    color:var(--green-dark);

    margin-bottom:50px;
}

.method-block{
    display:flex;
    align-items:center;
    gap:40px;

    margin-bottom:60px;

    padding:25px;

    background:white;

    border-radius:20px;

    box-shadow:
    0 8px 25px rgba(0,0,0,.06);
}

.method-block.reverse{
    flex-direction:row-reverse;
}

.method-block img{
    width:45%;

    height:300px;

    object-fit:cover;

    border-radius:16px;
}

.method-text{
    flex:1;
}

.method-text h3{
    margin-bottom:12px;

    font-size:22px;

    color:var(--green);
}

.method-text p{
    font-size:16px;
    line-height:1.8;

    color:#374151;
}

/* VERSION NO IMAGE */

.method-block.no-image{
    display:block;

    max-width:900px;

    margin-left:auto;
    margin-right:auto;
}

.method-block.no-image .method-text{
    width:100%;
}

.method-block.no-image .method-text p{
    font-size:17px;
}

/* =========================================================
   POPUP
========================================================= */

.popup{
    position:fixed;
    inset:0;

    background:rgba(0,0,0,.6);

    display:flex;
    justify-content:center;
    align-items:center;

    z-index:5000;

    padding:20px;
}

.popup-content{
    position:relative;

    width:700px;
    max-width:100%;

    max-height:95vh;

    overflow:auto;

    background:white;

    border-radius:25px;

    animation:popupAnim .2s ease;
}

@keyframes popupAnim{

    from{
        opacity:0;
        transform:scale(.95);
    }

    to{
        opacity:1;
        transform:scale(1);
    }
}

#close-popup,
#close-order{
    position: absolute;

    top: 15px;
    right: 20px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 24px;
    font-weight: bold;

    color: #374151;

    background: #f3f4f6;
    border-radius: 50%;

    cursor: pointer;

    transition: 
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

/* Hover */
#close-popup:hover,
#close-order:hover{
    background: #ef4444;
    color: white;
    transform: rotate(90deg) scale(1.1);
}

/* Effet clic */
#close-popup:active,
#close-order:active{
    transform: scale(0.95);
}

#popup-image{
    width:100%;

    height:350px;

    object-fit:cover;
}

.popup-content h2{
    padding:20px 25px 10px;

    color:var(--green-dark);
}

.popup-content p{
    padding:0 25px;

    line-height:1.7;

    color:#4b5563;
}

#popup-size{
    width: 100%;

    padding: 14px 18px;

    margin-top: 15px;
    margin-bottom: 20px;

    font-size: 16px;
    font-weight: 600;

    color: #1f2937;

    background: #f9fafb;

    border: 2px solid #d1d5db;
    border-radius: 14px;

    outline: none;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;

    /* petite flèche custom */
    background-image:
        linear-gradient(45deg, transparent 50%, #374151 50%),
        linear-gradient(135deg, #374151 50%, transparent 50%);

    background-position:
        calc(100% - 22px) calc(50% - 3px),
        calc(100% - 16px) calc(50% - 3px);

    background-size: 6px 6px;

    background-repeat: no-repeat;
}

/* Hover */
#popup-size:hover{
    border-color: #9ca3af;
    background: #ffffff;
}

/* Focus */
#popup-size:focus{
    border-color: #22c55e;

    box-shadow:
        0 0 0 4px rgba(34,197,94,0.15);

    background: white;
}

#popup-size option{
    font-weight: 500;
    color: #111827;
}

#add-cart{
    width:calc(100% - 50%);

    margin:0 25px 30px;

    border:none;

    background:var(--green);
    color:white;

    padding:16px;

    border-radius:15px;

    font-size:16px;
    font-weight:bold;
}

#add-cart:hover{
    background:var(--green-hover);
}

/* =========================================================
   CART
========================================================= */

.cart-bar{
    position:fixed;

    bottom:0;
    left:0;

    width:100%;

    background:white;

    border-top:1px solid var(--border);

    box-shadow:
    0 -5px 20px rgba(0,0,0,.08);

    padding:15px 20px;

    z-index:4000;
}

#cart-items{
    display:flex;
    gap:15px;

    overflow-x:auto;

    padding-bottom:10px;
}

.cart-item{
    min-width:260px;

    background:#f9fafb;

    border-radius:16px;

    padding:12px;

    display:flex;
    align-items:center;
    gap:12px;
}

.cart-item img{
    width:60px;
    height:60px;

    object-fit:cover;

    border-radius:12px;
}

.cart-info{
    flex:1;
}

.cart-name{
    font-weight:bold;
    margin-bottom:5px;
}

.cart-price{
    font-size:14px;
    color:#4b5563;

    margin-bottom:10px;
}

.cart-species{
    font-size:13px;

    color:var(--gray);

    margin-bottom:8px;

    font-style:italic;
}

/* =========================
   PANIER RETRACTABLE
========================= */

.cart-toggle{

    width:100%;
    border:none;
    background:#2f4f2f;
    color:white;
    padding:10px 15px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    font-size:16px;
    cursor:pointer;
}

.cart-content{
    display:block;
}

.cart-bar.collapsed .cart-content{
    display:none;
}

/* =========================
   VERSION PETITS ECRANS
========================= */

@media (max-width: 900px){

    .cart-bar{

        position:fixed;
        bottom:0;
        left:0;
        right:0;
        z-index:9999;

        max-height:70vh;
        overflow:auto;
    }

    .cart-group{

        padding:8px;
    }

    .cart-group-header{

        display:flex;
        align-items:center;
        gap:10px;
    }

    .cart-photo{
        display:none;
    }

    .cart-name{

        font-size:14px;
        font-weight:600;
        line-height:1.2;
    }

    .cart-cultivar{

        font-size:11px;
        opacity:.8;
    }

    .cart-qty-mobile{

        font-size:12px;
        margin-top:3px;
    }

    /* cache détails */

    .cart-sizes{
        display:none;
    }

    .cart-footer{
        margin-top:10px;
    }

    /* panier ouvert */

    .cart-bar:not(.collapsed) .cart-sizes{
        display:block;
    }

    .cart-bar:not(.collapsed) .cart-photo{
        display:block;
        width:55px;
        height:55px;
        object-fit:cover;
        border-radius:8px;
    }

    .cart-bar:not(.collapsed) .cart-name{
        font-size:15px;
    }

    .cart-bar:not(.collapsed) .cart-cultivar{
        font-size:13px;
    }

    .cart-bar:not(.collapsed) .cart-qty-mobile{
        display:none;
    }

}

/* =========================
   ANIMATION PANIER
========================= */

.cart-bar{

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.cart-bounce{

    animation: cartBounce .6s ease;
}

@keyframes cartBounce{

    0%{
        transform:scale(1);
    }

    20%{
        transform:scale(1.03);
    }

    40%{
        transform:scale(.98);
    }

    60%{
        transform:scale(1.02);
    }

    100%{
        transform:scale(1);
    }
}

/* glow */

.cart-bounce .cart-toggle{

    animation: cartGlow .6s ease;
}

@keyframes cartGlow{

    0%{
        box-shadow:0 0 0 rgba(0,0,0,0);
    }

    50%{
        box-shadow:0 0 20px rgba(90,180,90,.6);
    }

    100%{
        box-shadow:0 0 0 rgba(0,0,0,0);
    }
}

/* compteur */

.cart-bounce #cart-summary{

    animation: cartPulse .5s ease;
}

@keyframes cartPulse{

    0%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.08);
    }

    100%{
        transform:scale(1);
    }
}


/* =========================
   BOUTON VIDER PANIER
========================= */

.clear-cart-btn{

    background:#c0392b;
    color:white;

    border:none;

    padding:10px 14px;

    border-radius:8px;

    cursor:pointer;

    transition:.2s;
}

.clear-cart-btn:hover{

    background:#a93226;
}

.hidden{
    display:none !important;
}


/* =========================================================
   QUANTITY
========================================================= */

.qty-controls{
    display:flex;
    align-items:center;
    gap:10px;
}

.qty-controls button{
    width:30px;
    height:30px;

    border:none;

    border-radius:8px;

    background:var(--green);
    color:white;

    font-size:18px;
}

.qty-controls span{
    min-width:20px;

    text-align:center;

    font-weight:bold;
}

/* =========================================================
   CART GROUP
========================================================= */

.cart-group{
    background:white;

    margin-bottom:15px;

    border:2px solid var(--border);
    border-radius:18px;

    padding:12px;
}

.cart-group.out-of-stock{
    opacity:.35;
    filter:grayscale(1);
}

.cart-group-header{
    display:flex;
    align-items:center;
    gap:12px;

    border-bottom:1px dashed #d1d5db;

    padding-bottom:10px;
    margin-bottom:10px;
}

.cart-group-header img{
    width:60px;
    height:60px;

    object-fit:cover;

    border-radius:12px;
}

.cart-sizes{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.cart-size{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:8px 5px;

    border-bottom:1px dashed #eee;
}

.no-stock{
    margin-top:5px;

    color:var(--red);

    font-size:13px;
    font-weight:bold;
}

.cart-total{
    margin-top:10px;

    font-size:18px;
    font-weight:bold;

    color:var(--green-dark);
}

.cart-port{
    margin-top:10px;

    font-size:13px;
   
	font-style: italic;

    color:var(--green-dark);
}

/* =========================================================
   VALIDATE CART
========================================================= */

#validate-cart{
    width:100%;

    margin-top:12px;

    border:none;

    background:var(--blue);
    color:white;

    padding:16px;

    border-radius:15px;

    font-size:17px;
    font-weight:bold;

    transition:var(--transition);
}

#validate-cart:hover{
    background:var(--blue-hover);
}

/* =========================================================
   FORMS
========================================================= */

form{
    padding:25px;
}

form input,
form textarea{
    width:100%;

    padding:14px;

    border:1px solid #d1d5db;
    border-radius:12px;

    outline:none;
}

form textarea{
    resize:vertical;
    min-height:120px;
}

form button{
    width:100%;

    border:none;

    background:var(--green);
    color:white;

    padding:16px;

    border-radius:14px;

    font-size:16px;
    font-weight:bold;

    transition:var(--transition);
}

form button:hover{
    background:var(--green-hover);
}


/* =========================
   SEARCH BAR
========================= */

.search-bar{
    display:flex;
    gap:16px;
    align-items:center;
    flex-wrap:wrap;

    margin:35px auto;
    padding:20px;

    background:white;

    border:1px solid #e5e7eb;
    border-radius:22px;

    box-shadow:0 10px 30px rgba(0,0,0,0.06);
}

/* WRAPPER INPUT */

.search-input-wrapper{
    position:relative;
    flex:1;
    min-width:260px;
}

/* ICONE */

.search-icon{
    position:absolute;

    left:16px;
    top:50%;

    transform:translateY(-50%);

    font-size:18px;
    opacity:0.6;
}

/* INPUT */

.search-bar input{
    width:100%;

    padding:16px 18px 16px 48px;

    border:2px solid #d1d5db;
    border-radius:16px;

    font-size:16px;

    background:#f9fafb;

    transition:0.25s;
}

/* SELECT */

.search-bar select{
    min-width:240px;

    padding:16px;

    border:2px solid #d1d5db;
    border-radius:16px;

    font-size:16px;

    background:#f9fafb;

    cursor:pointer;

    transition:0.25s;
}

/* FOCUS */

.search-bar input:focus,
.search-bar select:focus{
    border-color:var(--green);

    background:white;

    box-shadow:0 0 0 4px rgba(34,197,94,0.15);
}

/* PLACEHOLDER */

.search-bar input::placeholder{
    color:#9ca3af;
}


/* =========================
   NO RESULTS
========================= */

.no-results{
    margin:40px auto;

    padding:40px 30px;

    text-align:center;

    background:white;

    border:1px solid #e5e7eb;
    border-radius:24px;

    box-shadow:0 10px 30px rgba(0,0,0,0.06);

    animation:fadeIn 0.25s ease;
}

.no-results.hidden{
    display:none;
}

.no-results-icon{
    font-size:52px;
    margin-bottom:14px;
}

.no-results h3{
    margin-bottom:10px;

    font-size:24px;

    color:#1f2937;
}

.no-results p{
    color:#6b7280;
    font-size:16px;
}

/* ANIMATION */

@keyframes fadeIn{

    from{
        opacity:0;
        transform:translateY(10px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* =========================================================
   CONTACT
========================================================= */

.contact-container{
    max-width:800px;

    margin:60px auto;

    padding:0 20px;

    display:flex;
    justify-content:center;
}

#contact-form{
    width:100%;
    max-width:600px;

    background:white;

    padding:30px;

    border-radius:18px;

    box-shadow:
    0 10px 30px rgba(0,0,0,.08);

    display:flex;
    flex-direction:column;
    gap:12px;

    animation:fadeIn .4s ease;
}

#contact-form label{
    font-weight:600;
    color:#374151;
}

#contact-form input:focus,
#contact-form textarea:focus{
    border-color:var(--green);

    box-shadow:
    0 0 0 3px rgba(22,163,74,.15);
}

#website{
    display:none !important;
}

/* =========================================================
   SEARCH BAR
========================================================= */

.search-bar{
    display:flex;
    gap:10px;

    max-width:900px;

    margin:20px auto;
}

/* =========================================================
   IMAGE PREVIEW
========================================================= */

.image-preview{
    margin-bottom:25px;
}

.image-preview img{
    width:100%;

    max-height:350px;

    object-fit:cover;

    border-radius:20px;

    box-shadow:var(--shadow);
}

/* =========================================================
   DELETE
========================================================= */

.danger-card{
    max-width:650px;
    text-align:center;
}

.delete-preview img{
    width:100%;

    max-height:320px;

    object-fit:cover;

    border-radius:20px;

    margin-bottom:20px;
}

.delete-preview h2{
    margin-bottom:5px;

    color:#991b1b;
}

.warning-box{
    margin:30px 0;

    background:#fee2e2;

    color:#991b1b;

    padding:18px;

    border-radius:15px;

    font-weight:bold;
}

.btn-delete{
    width:100%;

    border:none;

    padding:18px;

    border-radius:15px;

    background:var(--red);
    color:white;

    font-size:17px;
    font-weight:bold;
}

.btn-delete:hover{
    background:#b91c1c;
}

/* =========================================================
   SUCCESS
========================================================= */

.success-box{
    max-width:900px;

    margin:20px auto;

    padding:18px 20px;

    background:#dcfce7;

    color:#166534;

    border-radius:14px;

    text-align:center;

    font-weight:bold;

    box-shadow:
    0 4px 15px rgba(0,0,0,.05);
}

/* =========================================================
   ORDER RECAP
========================================================= */

.order-recap{
    margin-top:20px;

    padding:15px;

    border:2px dashed #d1d5db;
    border-radius:15px;

    background:#fafafa;
}

.order-recap h3{
    margin-bottom:10px;

    font-size:16px;
}

.order-total{
    margin-top:10px;

    text-align:right;

    font-weight:bold;
}

.order-group{
    margin-bottom:15px;

    padding:10px;

    border:1px solid var(--border);
    border-radius:12px;

    background:white;
}

.order-group-title{
    font-weight:bold;
    margin-bottom:5px;
}

.order-item{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:8px 0;

    border-top:1px dashed #eee;
}

.order-item span{
    font-size:14px;
}

.order-species{
    margin-top:2px;

    font-size:12px;

    color:var(--gray);

    font-style:italic;
}

.order-controls{
    display:flex;
    gap:8px;
}

.order-controls button{
    width:28px;
    height:28px;

    border:none;

    border-radius:6px;

    background:var(--green);
    color:white;
}

.order-controls button:disabled{
    opacity:.3;
    cursor:not-allowed;
}

/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state{
    max-width:600px;

    margin:40px auto;

    padding:60px 20px;

    text-align:center;

    font-size:18px;

    color:var(--gray);

    background:#f9fafb;

    border:2px dashed #d1d5db;
    border-radius:16px;
}

/* =========================================================
   SPECIES
========================================================= */

.species-block{
    margin-bottom:40px;
}

.species-title{
    margin:20px 0 10px;

    padding-left:10px;

    font-size:22px;

    color:var(--green);

    border-left:4px solid var(--green);
}

.species-row{
    display:flex;
    flex-wrap:wrap;
    align-items:flex-start;
    gap:15px;
}

.species-row .card{
    width:220px;
    flex:0 0 auto;
}

.species-separator{
    margin-top:25px;

    border:none;
    border-top:1px solid #ddd;
}

/* =========================================================
   FOOTER
========================================================= */

footer{
    padding:40px;

    text-align:center;

    color:var(--gray);
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes fadeIn{

    from{
        opacity:0;
        transform:translateY(10px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* =========================================================
   TABLET
========================================================= */

@media(max-width:992px){

    .method-block{
        flex-direction:column;
    }

    .method-block.reverse{
        flex-direction:column;
    }

    .method-block img{
        width:100%;
    }
}

/* =========================================================
   MOBILE
========================================================= */
@media(max-width:768px){

    .burger{
        display:block;
        z-index:2001;
    }

    .menu{
        position:absolute;

        top:100%;
        left:0;
        right:0;

        background:white;

        flex-direction:column;
        gap:0;

        display:flex;

        opacity:0;
        visibility:hidden;

        transform:translateY(-10px);

        transition:.25s ease;

        box-shadow:0 10px 20px rgba(0,0,0,0.08);
    }

    .menu a{
        padding:16px 20px;
        border-top:1px solid #eee;
    }

    #menu-toggle:checked + .burger + .menu{
        opacity:1;
        visibility:visible;

        transform:translateY(0);
    }
}


@media(max-width:768px){

    body{
        padding-bottom:220px;
    }

    /* HEADER */

    .site-header{
        padding:15px 20px;
    }

    .burger{
        display:block;
    }

    .menu{
        position:absolute;

        top:70px;
        left:0;
        right:0;

        background:white;

        flex-direction:column;
        gap:0;

        display:none;

        box-shadow:
        0 10px 20px rgba(0,0,0,.08);
    }

    .menu a{
        padding:16px 20px;

        border-top:1px solid #eee;
    }

    #menu-toggle:checked + .burger + .menu{
        display:flex;
    }

    /* HERO */

    .hero{
        padding:50px 15px 30px;
    }

    .hero p{
        font-size:16px;
    }

    /* GALLERY */

    .gallery{
        grid-template-columns:1fr;

        padding:20px;
    }

    /* CARDS */

    .cards{
        grid-template-columns:1fr;

        padding:20px;
    }

    .species-row{
        overflow-x:auto;

        flex-wrap:nowrap;

        padding-bottom:10px;
    }

    .species-row .card{
        width:220px;
    }

    /* POPUP */

    .popup{
        padding:0;
    }

    .popup-content{
        width:100%;
        height:100%;

        max-height:100%;

        border-radius:0;
    }

    #popup-image{
        height:260px;
    }

    #add-cart{
        width:calc(100% - 50px);
    }

    /* CART */

    #cart-items{
        flex-direction:column;
    }

    .cart-item{
        min-width:100%;
    }

    /* CONTACT */

    #contact-form{
        padding:20px;
    }

    /* BUTTON */

    button{
        min-height:48px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media(max-width:480px){

    .hero h1{
        font-size:30px;
    }

    .hero p{
        font-size:15px;
    }

    .card-title{
        font-size:18px;
    }

    .method-section h2{
        font-size:26px;
    }

    .method-text h3{
        font-size:20px;
    }

    .method-text p{
        font-size:15px;
    }

    .popup-content h2{
        font-size:22px;
    }

    .search-bar{
        flex-direction:column;
    }

    .prices{
        flex-direction:column;
    }

    .prices button{
        width:100%;
    }
}


/* =========================
   MES COMMANDES
========================= */

.order-card{

    max-width:1000px;

    margin:25px auto;

    background:white;

    border-radius:20px;

    overflow:hidden;

    box-shadow:0 5px 20px rgba(0,0,0,0.08);
}

/* HEADER */

.order-header{

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:20px;

    font-size:18px;
    font-weight:bold;

    border-bottom:1px solid #eee;
}

/* STATUT */

.order-card.pending{
    border-left:8px solid #f59e0b;
}

.order-card.done{
    border-left:8px solid #16a34a;
}

/* ITEMS */

.order-items{
    padding:20px;
}

.item-row{

    display:flex;
    align-items:center;

    gap:20px;

    padding:15px 0;

    border-bottom:1px dashed #ddd;
}

.item-row:last-child{
    border-bottom:none;
}

.item-row img{

    width:70px;
    height:70px;

    object-fit:cover;

    border-radius:12px;
}

/* INFOS */

.item-info{
    flex:1;

    line-height:1.6;
}

/* ACTIONS */

.qty-actions{

    display:flex;
    gap:10px;
}

.qty-actions a{

    width:38px;
    height:38px;

    display:flex;
    justify-content:center;
    align-items:center;

    border-radius:10px;

    background:#f3f4f6;

    text-decoration:none;

    font-size:18px;

    transition:0.2s;
}

.qty-actions a:hover{

    transform:translateY(-2px);

    background:#16a34a;
    color:white;
}

/* ANNULATION */

.cancel-order{

    display:block;

    margin:20px;

    padding:14px;

    text-align:center;

    border-radius:14px;

    background:#dc2626;

    color:white;

    text-decoration:none;

    font-weight:bold;

    transition:0.2s;
}

.cancel-order:hover{

    background:#b91c1c;

    transform:translateY(-2px);
}

/* AUCUNE COMMANDE */

.no-orders{

    max-width:700px;

    margin:40px auto;

    background:#f9fafb;

    border:2px dashed #d1d5db;

    border-radius:18px;

    padding:40px;

    text-align:center;

    color:#6b7280;

    font-size:18px;
}

.contact-container{
    display:flex;
    flex-direction:column;
    align-items:center;
}

.error-message{
    width:100%;
    max-width:500px;

    margin-top:15px;
    padding:12px 16px;

    background:#ffe5e5;
    border:1px solid #ffb3b3;

    color:#b30000;

    border-radius:12px;

    font-weight:600;
    text-align:center;

    box-sizing:border-box;
}

.logout-btn{

    display:inline-block;

    background:#e74c3c;
    color:white;

    padding:10px 15px;

    border-radius:8px;

    text-decoration:none;

    transition:0.2s;
}

.logout-btn:hover{
    background:#c0392b;
}

/* MOBILE */

@media(max-width:700px){

    .item-row{

        flex-direction:column;
        align-items:flex-start;
    }

    .qty-actions{
        width:100%;
        justify-content:flex-end;
    }

    .order-header{

        flex-direction:column;
        gap:10px;

        align-items:flex-start;
    }

}

.plus-box{ display:flex; flex-direction:column; align-items:center; } .qty-disabled{ opacity:0.3; cursor:not-allowed; } .max-text{ font-size:10px; color:#dc2626; font-weight:bold; margin-top:2px; } /* commande vide */ .empty-order{ margin-top:15px; background:#fee2e2; color:#991b1b; padding:12px; border-radius:12px; text-align:center; font-weight:bold; }
