/* =============================================
   PALETTE
   --violet-fonce : #6b4fa0
   --violet       : #9b7ec8
   --violet-clair : #c9aff0
   --lavande      : #e8d9f7
   --lavande-pale : #f5f0ff
   --rose         : #f2a8c8
   --rose-pale    : #fce4f0
   --texte        : #3d2c5e
   --texte-doux   : #7b6a9a
   --blanc        : #ffffff
   ============================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    color: #3d2c5e;
    background: #f5f0ff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    max-width: 1140px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* ---- HEADER ---- */
header {
    background: #ffffff;
    border-bottom: 2px solid #e8d9f7;
    padding: 0.9rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(155, 126, 200, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-img {
    height: 72px;
    width: auto;
}

.logo-texte {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #9b7ec8, #f2a8c8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

nav a {
    padding: 0.45rem 0.9rem;
    border-radius: 20px;
    text-decoration: none;
    color: #7b6a9a;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}

nav a:hover {
    background: #f5f0ff;
    color: #6b4fa0;
}

.btn-nav {
    background: linear-gradient(135deg, #9b7ec8, #c9aff0);
    color: #fff !important;
    padding: 0.45rem 1.1rem !important;
    border-radius: 20px;
}

.btn-nav:hover {
    background: linear-gradient(135deg, #7c5fa8, #9b7ec8) !important;
    color: #fff !important;
}

.lien-panier { position: relative; }

.icone-panier { font-size: 1rem; }

.badge-panier {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f2a8c8;
    color: #fff;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    margin-left: 2px;
    vertical-align: top;
}

/* ---- FOOTER ---- */
footer {
    background: linear-gradient(135deg, #e8d9f7, #fce4f0);
    border-top: 2px solid #c9aff0;
    padding: 2.5rem 1rem;
    text-align: center;
    margin-top: auto;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #9b7ec8, #f2a8c8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}

.footer-tagline {
    color: #9b7ec8;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-copy { color: #b39ddb; font-size: 0.85rem; }

/* ---- MESSAGES FLASH ---- */
.messages {
    max-width: 1140px;
    margin: 1rem auto 0;
    padding: 0 1.5rem;
}

.message {
    padding: 0.85rem 1.2rem;
    border-radius: 14px;
    margin-bottom: 0.6rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.message-success { background: #e8f8f0; color: #276749; border: 1.5px solid #b2dfcc; }
.message-error   { background: #fce4f0; color: #8b1a4a; border: 1.5px solid #f2a8c8; }
.message-warning { background: #fff5e6; color: #7a4f00; border: 1.5px solid #ffd59e; }
.message-info    { background: #e8d9f7; color: #4a2d7a; border: 1.5px solid #c9aff0; }

/* ---- BOUTONS ---- */
.btn-principal {
    display: inline-block;
    padding: 0.65rem 1.6rem;
    background: linear-gradient(135deg, #9b7ec8, #c9aff0);
    color: #fff;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(155, 126, 200, 0.35);
}

.btn-principal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 126, 200, 0.45);
}

.btn-secondaire {
    display: inline-block;
    padding: 0.65rem 1.6rem;
    background: #fff;
    color: #9b7ec8;
    border: 2px solid #c9aff0;
    border-radius: 24px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    transition: background 0.15s, border-color 0.15s;
}

.btn-secondaire:hover {
    background: #f5f0ff;
    border-color: #9b7ec8;
}

.btn-supprimer {
    padding: 0.3rem 0.8rem;
    background: none;
    border: 1.5px solid #f2a8c8;
    color: #c0607a;
    border-radius: 14px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: background 0.15s;
}

.btn-supprimer:hover { background: #fce4f0; }

/* ---- CATÉGORIES ---- */
.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.categories a {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 2px solid #c9aff0;
    border-radius: 20px;
    text-decoration: none;
    color: #7b6a9a;
    font-weight: 700;
    font-size: 0.9rem;
    background: #fff;
    transition: all 0.2s;
}

.categories a:hover,
.categories a.active {
    background: linear-gradient(135deg, #9b7ec8, #c9aff0);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 10px rgba(155, 126, 200, 0.3);
}

/* ---- GRILLE PRODUITS ---- */
.grille-produits {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.8rem;
}

.carte-produit {
    background: #fff;
    border: 2px solid #e8d9f7;
    border-radius: 20px;
    padding: 1.2rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.carte-produit::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c9aff0, #f2a8c8);
}

.carte-produit:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(155, 126, 200, 0.2);
    border-color: #c9aff0;
}

.carte-produit img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 1rem;
}

.carte-produit h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.carte-produit h3 a {
    text-decoration: none;
    color: #3d2c5e;
    transition: color 0.2s;
}

.carte-produit h3 a:hover { color: #9b7ec8; }

.prix {
    font-size: 1.15rem;
    font-weight: 800;
    color: #9b7ec8;
    margin-top: 0.3rem;
}

.rupture {
    color: #b39ddb;
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: 0.3rem;
}

/* ---- FICHE PRODUIT ---- */
.detail-produit {
    display: flex;
    gap: 3rem;
    margin-bottom: 2.5rem;
    background: #fff;
    border: 2px solid #e8d9f7;
    border-radius: 24px;
    padding: 2rem;
}

.detail-produit img {
    width: 380px;
    min-width: 280px;
    border-radius: 18px;
    object-fit: cover;
}

.info-produit {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    justify-content: center;
}

.info-produit h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #3d2c5e;
}

.info-produit .categorie {
    display: inline-block;
    background: #e8d9f7;
    color: #6b4fa0;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
}

.info-produit .prix { font-size: 1.5rem; }

.info-produit .description {
    color: #7b6a9a;
    line-height: 1.75;
}

.stock {
    color: #27ae60;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ---- CAROUSEL PRODUIT ---- */
.carousel {
    position: relative;
    width: 400px;
    min-width: 280px;
    flex-shrink: 0;
}

.carousel-piste-wrap {
    overflow: hidden;
    border-radius: 18px;
    border: 2px solid #e8d9f7;
}

.carousel-piste {
    display: flex;
    gap: 0;
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    color: #6b4fa0;
    font-size: 2rem;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(155,126,200,0.25);
    transition: background 0.2s, transform 0.15s;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.carousel-btn-prev { left: 10px; }
.carousel-btn-next { right: 10px; }

.carousel-points {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.carousel-point {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c9aff0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.carousel-point.actif {
    background: #9b7ec8;
    transform: scale(1.3);
}

/* Lightbox navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 3rem;
    line-height: 1;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.img-cliquable {
    cursor: zoom-in;
    transition: transform 0.2s;
}

.img-cliquable:hover { transform: scale(1.02); }

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30, 15, 50, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.lightbox.actif { display: flex; }

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    object-fit: contain;
}

.lightbox-fermer {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.lightbox-fermer:hover { opacity: 1; }

.champ-quantite {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0.5rem 0;
}

.champ-quantite label { font-weight: 700; color: #7b6a9a; }

.champ-quantite input {
    width: 70px;
    padding: 0.4rem 0.6rem;
    border: 2px solid #c9aff0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    text-align: center;
    color: #3d2c5e;
}

/* ---- FORMULAIRES ---- */
.formulaire-page {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border: 2px solid #e8d9f7;
    border-radius: 24px;
    padding: 2.5rem;
}

.formulaire-page h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.8rem;
    color: #3d2c5e;
    text-align: center;
}

.formulaire { display: flex; flex-direction: column; gap: 1.1rem; }

.champ { display: flex; flex-direction: column; gap: 0.4rem; }

.champ label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #6b4fa0;
}

.champ input,
.champ textarea,
.champ select {
    padding: 0.6rem 0.9rem;
    border: 2px solid #e8d9f7;
    border-radius: 12px;
    font-size: 0.97rem;
    font-family: 'Nunito', sans-serif;
    color: #3d2c5e;
    background: #faf6ff;
    transition: border-color 0.2s;
    outline: none;
}

.champ input:focus,
.champ textarea:focus,
.champ select:focus {
    border-color: #9b7ec8;
    background: #fff;
}

.erreurs {
    color: #c0607a;
    font-size: 0.85rem;
    padding-left: 1rem;
    font-weight: 600;
}

.lien-alternatif {
    margin-top: 1.2rem;
    text-align: center;
    color: #7b6a9a;
    font-size: 0.95rem;
}

.lien-alternatif a {
    color: #9b7ec8;
    font-weight: 700;
    text-decoration: none;
}

.lien-alternatif a:hover { text-decoration: underline; }

.liens-profil { margin-top: 1.5rem; text-align: center; }

.liens-profil a {
    color: #9b7ec8;
    font-weight: 700;
    text-decoration: none;
}

.info-connexion {
    background: #e8d9f7;
    color: #4a2d7a;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.info-connexion a { color: #6b4fa0; font-weight: 800; text-decoration: none; }

/* ---- PANIER ---- */
.tableau-panier,
.tableau-recap,
.tableau-commandes {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(155, 126, 200, 0.1);
}

.tableau-panier th,
.tableau-recap th,
.tableau-commandes th {
    background: linear-gradient(135deg, #e8d9f7, #fce4f0);
    color: #6b4fa0;
    font-weight: 800;
    padding: 0.9rem 1.2rem;
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tableau-panier td,
.tableau-recap td,
.tableau-commandes td {
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid #f0e8fc;
    color: #3d2c5e;
    font-weight: 600;
}

.tableau-panier tfoot td,
.tableau-recap tfoot td {
    background: #f5f0ff;
    font-size: 1.05rem;
    font-weight: 800;
    color: #6b4fa0;
}

.img-panier {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 0.6rem;
    vertical-align: middle;
    border: 2px solid #e8d9f7;
}

.actions-panier {
    display: flex;
    gap: 1rem;
    margin-top: 1.2rem;
    justify-content: flex-end;
}

/* ---- COMMANDE / CHECKOUT ---- */
.layout-commande {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 2rem;
    align-items: start;
}

.recap-panier,
.formulaire-livraison {
    background: #fff;
    padding: 1.8rem;
    border: 2px solid #e8d9f7;
    border-radius: 20px;
}

.recap-panier h3,
.formulaire-livraison h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #3d2c5e;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #e8d9f7;
}

/* ---- CONFIRMATION ---- */
.confirmation { max-width: 720px; }

.confirmation h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #6b4fa0;
    margin-bottom: 0.5rem;
}

.confirmation > p { color: #7b6a9a; margin-bottom: 0.4rem; font-size: 1rem; }

.recap-commande {
    background: #fff;
    padding: 1.8rem;
    border: 2px solid #e8d9f7;
    border-radius: 20px;
    margin: 1.8rem 0;
}

.recap-commande h3 {
    font-weight: 800;
    color: #3d2c5e;
    margin-bottom: 1rem;
}

.recap-commande p {
    color: #7b6a9a;
    line-height: 1.8;
    margin-top: 1rem;
}

.actions-confirmation { display: flex; gap: 1rem; flex-wrap: wrap; }

.paiement-succes-badge {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, #9b7ec8, #c9aff0);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #fff;
    margin: 0 auto 1.2rem;
}

.paiement-annule-badge {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, #f2a8c8, #e8d9f7);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #8b1a4a;
    margin: 0 auto 1.2rem;
}

/* ---- STATUTS COMMANDE ---- */
.statut {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
}

.statut-en_attente { background: #fff5e6; color: #7a4f00; }
.statut-confirmee  { background: #e8f8f0; color: #276749; }
.statut-expediee   { background: #e8d9f7; color: #4a2d7a; }
.statut-livree     { background: #f5f0ff; color: #6b4fa0; }
.statut-annulee    { background: #fce4f0; color: #8b1a4a; }

/* ---- TITRES DE PAGE ---- */
h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #3d2c5e;
    margin-bottom: 1.5rem;
}

/* ---- LIEN RETOUR ---- */
main > a {
    display: inline-block;
    color: #9b7ec8;
    font-weight: 700;
    text-decoration: none;
    margin-top: 1rem;
}

main > a:hover { text-decoration: underline; }

/* ---- PAGE À PROPOS ---- */
.apropos { display: flex; flex-direction: column; gap: 4rem; }

.apropos-hero {
    text-align: center;
    padding: 3.5rem 2rem;
    background: linear-gradient(135deg, #e8d9f7 0%, #fce4f0 100%);
    border-radius: 28px;
}

.apropos-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #3d2c5e;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.apropos-tagline {
    font-size: 1.1rem;
    color: #7b6a9a;
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.apropos-valeurs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.valeur-carte {
    background: #fff;
    border: 2px solid #e8d9f7;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.valeur-carte:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(155, 126, 200, 0.18);
}

.valeur-icone {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.valeur-carte h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #3d2c5e;
    margin-bottom: 0.7rem;
}

.valeur-carte p {
    color: #7b6a9a;
    font-size: 0.95rem;
    line-height: 1.7;
}

.apropos-surmesure {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: #fff;
    border: 2px solid #e8d9f7;
    border-radius: 28px;
    padding: 2.5rem;
}

.surmesure-texte h2 { margin-bottom: 1rem; }

.surmesure-texte p {
    color: #7b6a9a;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.surmesure-visuel {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.bulle-exemple,
.bulle-reponse {
    padding: 1rem 1.4rem;
    border-radius: 18px;
    font-size: 0.97rem;
    line-height: 1.5;
    font-weight: 600;
    max-width: 340px;
}

.bulle-exemple {
    background: #e8d9f7;
    color: #4a2d7a;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.bulle-reponse {
    background: linear-gradient(135deg, #9b7ec8, #c9aff0);
    color: #fff;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.apropos-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f5f0ff, #fce4f0);
    border-radius: 28px;
}

.apropos-cta h2 { margin-bottom: 0.6rem; }

.apropos-cta p {
    color: #7b6a9a;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* ---- COMMANDES PERSONNALISÉES ---- */
.formulaire-intro {
    color: #7b6a9a;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.mes-demandes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.8rem;
}

.mes-demandes-header h2 { margin-bottom: 0; }

.liste-demandes { display: flex; flex-direction: column; gap: 1rem; }

.carte-demande {
    display: block;
    background: #fff;
    border: 2px solid #e8d9f7;
    border-radius: 18px;
    padding: 1.4rem 1.8rem;
    text-decoration: none;
    color: #3d2c5e;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.carte-demande:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 126, 200, 0.15);
    border-color: #c9aff0;
}

.carte-demande--devisee { border-color: #c9aff0; background: #faf6ff; }

.demande-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.demande-num { font-weight: 800; font-size: 0.9rem; color: #7b6a9a; }

.demande-description { color: #3d2c5e; font-size: 0.97rem; line-height: 1.5; margin-bottom: 0.8rem; }

.demande-bas {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 0.85rem;
    color: #7b6a9a;
    flex-wrap: wrap;
}

.demande-prix { font-weight: 800; color: #9b7ec8; }

.demande-action { color: #6b4fa0; font-weight: 800; margin-left: auto; }

.statut-demande {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
}

.statut-en_attente { background: #fff5e6; color: #7a4f00; }
.statut-devisee    { background: #e8d9f7; color: #4a2d7a; }
.statut-acceptee   { background: #e8f8f0; color: #276749; }
.statut-refusee    { background: #fce4f0; color: #8b1a4a; }
.statut-en_cours   { background: #e8d9f7; color: #4a2d7a; }
.statut-expediee   { background: #d1ecf1; color: #0c5460; }
.statut-livree     { background: #f5f0ff; color: #6b4fa0; }

.demandes-vide {
    text-align: center;
    padding: 3rem;
    background: #fff;
    border: 2px dashed #c9aff0;
    border-radius: 20px;
}

.demandes-vide p { color: #7b6a9a; margin-bottom: 1.2rem; }

/* Détail demande */
.detail-demande { max-width: 720px; }

.detail-demande-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-demande-header h2 { margin-bottom: 0; }

.demande-section,
.devis-recu,
.devis-accepte,
.devis-attente,
.devis-refuse {
    background: #fff;
    border: 2px solid #e8d9f7;
    border-radius: 18px;
    padding: 1.6rem;
    margin-bottom: 1.5rem;
}

.devis-recu { border-color: #c9aff0; background: #faf6ff; }
.devis-attente { background: #fff5e6; border-color: #ffd59e; }
.devis-refuse { background: #fce4f0; border-color: #f2a8c8; }

.demande-section h3,
.devis-recu h3,
.devis-accepte h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #6b4fa0;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
}

.demande-texte { line-height: 1.75; color: #3d2c5e; white-space: pre-wrap; }
.demande-date-info { color: #b39ddb; font-size: 0.85rem; margin-top: 0.7rem; }

.devis-message {
    color: #7b6a9a;
    line-height: 1.7;
    margin-bottom: 0.8rem;
    font-style: italic;
}

.devis-prix {
    font-size: 1.2rem;
    color: #3d2c5e;
    margin-bottom: 1.2rem;
}

.devis-prix strong { color: #9b7ec8; font-size: 1.4rem; }

.devis-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

.btn-refuser {
    padding: 0.65rem 1.6rem;
    background: none;
    border: 2px solid #f2a8c8;
    color: #8b1a4a;
    border-radius: 24px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    transition: background 0.15s;
}

.btn-refuser:hover { background: #fce4f0; }

.adresse-livraison {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e8d9f7;
}

.adresse-livraison h4 {
    font-size: 0.85rem;
    font-weight: 800;
    color: #6b4fa0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.adresse-livraison p { color: #7b6a9a; line-height: 1.8; }

/* Accepter devis */
.recap-devis {
    background: linear-gradient(135deg, #e8d9f7, #fce4f0);
    border-radius: 16px;
    padding: 1.4rem;
    margin-bottom: 1.8rem;
}

.recap-description { color: #4a2d7a; font-style: italic; margin-bottom: 0.5rem; line-height: 1.6; }
.recap-prix { font-size: 1.2rem; font-weight: 800; color: #6b4fa0; margin-bottom: 0.3rem; }
.recap-message { color: #7b6a9a; font-size: 0.95rem; margin-top: 0.5rem; }

.adresse-titre {
    font-size: 1rem;
    font-weight: 800;
    color: #3d2c5e;
    margin-bottom: 1rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    header { padding: 0.8rem 1rem; flex-wrap: wrap; gap: 0.5rem; }
    nav { gap: 0.1rem; flex-wrap: wrap; }
    nav a { font-size: 0.85rem; padding: 0.35rem 0.6rem; }
    .detail-produit { flex-direction: column; }
    .detail-produit img { width: 100%; }
    .layout-commande { grid-template-columns: 1fr; }
    .grille-produits { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
    .apropos-surmesure { grid-template-columns: 1fr; gap: 1.5rem; }
    .apropos-hero h1 { font-size: 1.7rem; }
}
