/* ============================================================
   La Vie d'Encens — Design boutique
   Palette : crème / encre / ambre / sauge
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&family=Outfit:wght@300..700&display=swap');

:root {
    --creme:        #f8f3e9;
    --creme-2:      #f1e8d8;
    --creme-3:      #e9ddc8;
    --encre:        #241c12;
    --encre-soft:   #4b3f30;
    --texte-doux:   #7a6c58;
    --ambre:        #b0763a;
    --ambre-fonce:  #8f5c28;
    --ambre-clair:  #d8b184;
    --sauge:        #66755a;
    --sauge-fonce:  #4d5a43;
    --terracotta:   #b0563b;
    --blanc:        #fffdf9;
    --ombre:        0 20px 60px rgba(36, 28, 18, .12);
    --ombre-douce:  0 8px 30px rgba(36, 28, 18, .08);
    --radius:       18px;
    --radius-lg:    28px;
    --serif:        'Fraunces', Georgia, serif;
    --sans:         'Outfit', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--creme);
    color: var(--encre);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* Grain subtil sur tout le site */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: .35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--sans); cursor: pointer; }

h1, h2, h3, .serif {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.15;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: 999px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .02em;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--encre);
    color: var(--creme);
    box-shadow: 0 12px 28px rgba(36, 28, 18, .25);
}
.btn-primary:hover { background: #3a2f1f; }

.btn-ambre {
    background: linear-gradient(135deg, var(--ambre), var(--ambre-fonce));
    color: #fff;
    box-shadow: 0 12px 28px rgba(176, 118, 58, .35);
}

.btn-ghost {
    background: transparent;
    color: var(--encre);
    border: 1.5px solid rgba(36, 28, 18, .3);
}
.btn-ghost:hover { border-color: var(--encre); background: rgba(36,28,18,.04); }

.btn-clair {
    background: var(--blanc);
    color: var(--encre);
    box-shadow: var(--ombre-douce);
}

.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 243, 233, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(36, 28, 18, .08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 24px;
    max-width: 1240px;
    margin: 0 auto;
}

.logo {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.logo .flamme { font-size: 20px; }

.logo em {
    font-style: italic;
    color: var(--ambre);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--encre-soft);
    position: relative;
    padding: 4px 0;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--ambre);
    transition: width .25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a:hover, .main-nav a.active { color: var(--encre); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blanc);
    border: 1px solid rgba(36,28,18,.08);
    box-shadow: var(--ombre-douce);
    transition: transform .2s ease;
    font-size: 18px;
}
.icon-btn:hover { transform: translateY(-2px); }

.cart-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--terracotta);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 90px 24px 110px;
    background:
        radial-gradient(ellipse 900px 500px at 75% -10%, rgba(176,118,58,.18), transparent 60%),
        radial-gradient(ellipse 700px 450px at 10% 110%, rgba(102,117,90,.16), transparent 60%),
        var(--creme);
}

.hero-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 60px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--ambre-fonce);
    margin-bottom: 24px;
}

.hero-eyebrow::before {
    content: "";
    width: 36px;
    height: 1.5px;
    background: var(--ambre);
}

.hero h1 {
    font-size: clamp(42px, 5.5vw, 68px);
    font-weight: 450;
    margin-bottom: 24px;
}

.hero h1 em {
    font-style: italic;
    color: var(--ambre);
}

.hero p {
    font-size: 18px;
    color: var(--texte-doux);
    max-width: 520px;
    margin-bottom: 36px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-visual .cadre {
    width: min(420px, 100%);
    aspect-ratio: 4 / 5;
    border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--ombre);
    border: 6px solid var(--blanc);
}

.hero-visual .cadre img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fumée d'encens animée */
.smoke {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: .6;
}

.smoke path {
    fill: none;
    stroke: var(--texte-doux);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
    animation: fumee 7s ease-in-out infinite;
}

.smoke path:nth-child(2) { animation-delay: 2.2s; opacity: .7; }
.smoke path:nth-child(3) { animation-delay: 4.4s; opacity: .5; }

@keyframes fumee {
    0%   { stroke-dashoffset: 260; opacity: 0; }
    15%  { opacity: .8; }
    70%  { opacity: .35; }
    100% { stroke-dashoffset: -260; opacity: 0; }
}

/* Badge flottant sur le visuel */
.hero-tag {
    position: absolute;
    bottom: 40px;
    left: 0;
    background: var(--blanc);
    border-radius: var(--radius);
    padding: 14px 20px;
    box-shadow: var(--ombre);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    animation: flotte 5s ease-in-out infinite;
}

@keyframes flotte {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
section.bloc { padding: 90px 0; }
section.bloc.fonce {
    background: var(--encre);
    color: var(--creme);
}
section.bloc.contraste { background: var(--creme-2); }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.section-head .eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--ambre-fonce);
    margin-bottom: 12px;
}

.fonce .section-head .eyebrow { color: var(--ambre-clair); }

.section-head h2 {
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 470;
}

.section-head h2 em { font-style: italic; color: var(--ambre); }

.lien-fleche {
    font-weight: 600;
    font-size: 15px;
    color: var(--ambre-fonce);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap .2s ease;
}
.lien-fleche:hover { gap: 14px; }
.fonce .lien-fleche { color: var(--ambre-clair); }

/* ============================================================
   CATÉGORIES
   ============================================================ */
.grille-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.carte-categorie {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--ombre-douce);
    isolation: isolate;
}

.carte-categorie img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2,.8,.2,1);
}

.carte-categorie:hover img { transform: scale(1.07); }

.carte-categorie::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(20, 15, 8, .75));
    z-index: 1;
}

.carte-categorie .infos {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 24px;
    z-index: 2;
    color: #fff;
}

.carte-categorie .infos h3 {
    font-size: 24px;
    margin-bottom: 4px;
}

.carte-categorie .infos span {
    font-size: 13px;
    opacity: .85;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   PRODUITS
   ============================================================ */
.grille-produits {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 28px;
}

.carte-produit {
    background: var(--blanc);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--ombre-douce);
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
}

.carte-produit:hover {
    transform: translateY(-6px);
    box-shadow: var(--ombre);
}

.carte-produit .visuel {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--creme-2);
}

.carte-produit .visuel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2,.8,.2,1);
}

.carte-produit:hover .visuel img { transform: scale(1.06); }

.etiquette {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}
.etiquette.vedette { background: var(--encre); color: var(--creme); }
.etiquette.rupture { background: var(--terracotta); color: #fff; }
.etiquette.stock-faible { background: #f3e0b8; color: #8a6114; }

.carte-produit .corps {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

.carte-produit .categorie {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--texte-doux);
}

.carte-produit h3 {
    font-size: 19px;
    font-weight: 550;
}

.carte-produit h3 a:hover { color: var(--ambre-fonce); }

.carte-produit .desc {
    font-size: 14px;
    color: var(--texte-doux);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.carte-produit .bas {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.carte-produit .prix {
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 600;
}

.btn-ajout {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--encre);
    color: var(--creme);
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, background .2s ease;
    box-shadow: 0 8px 18px rgba(36,28,18,.2);
}

.btn-ajout:hover { background: var(--ambre); transform: scale(1.1) rotate(90deg); }
.btn-ajout[disabled] { background: var(--creme-3); color: var(--texte-doux); box-shadow: none; pointer-events: none; }

/* ============================================================
   PAGE BOUTIQUE (filtres)
   ============================================================ */
.entete-page {
    padding: 60px 0 40px;
    text-align: center;
}

.entete-page h1 {
    font-size: clamp(36px, 4.5vw, 54px);
    font-weight: 460;
    margin-bottom: 10px;
}
.entete-page h1 em { font-style: italic; color: var(--ambre); }
.entete-page p { color: var(--texte-doux); max-width: 560px; margin: 0 auto; }

.barre-filtres {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.pilules {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pilule {
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--blanc);
    border: 1px solid rgba(36,28,18,.1);
    font-size: 14px;
    font-weight: 500;
    color: var(--encre-soft);
    transition: all .2s ease;
}

.pilule:hover { border-color: var(--ambre); color: var(--ambre-fonce); }
.pilule.active {
    background: var(--encre);
    color: var(--creme);
    border-color: var(--encre);
}

.outils-boutique {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.champ-recherche {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--blanc);
    border: 1px solid rgba(36,28,18,.1);
    border-radius: 999px;
    padding: 10px 18px;
}

.champ-recherche input {
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--sans);
    font-size: 14px;
    width: 170px;
    color: var(--encre);
}

select.tri {
    appearance: none;
    padding: 10px 38px 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(36,28,18,.1);
    background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23241c12' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--encre);
    cursor: pointer;
}

/* ============================================================
   PAGE PRODUIT
   ============================================================ */
.fiche-produit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    padding: 60px 0 90px;
    align-items: start;
}

.fiche-produit .galerie {
    position: sticky;
    top: 100px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--ombre);
    aspect-ratio: 1;
    background: var(--creme-2);
}

.fiche-produit .galerie img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fil-ariane {
    font-size: 13px;
    color: var(--texte-doux);
    margin-bottom: 18px;
}
.fil-ariane a:hover { color: var(--ambre-fonce); }

.fiche-produit h1 {
    font-size: clamp(32px, 3.5vw, 46px);
    font-weight: 480;
    margin-bottom: 14px;
}

.fiche-produit .prix-grand {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 600;
    color: var(--ambre-fonce);
    margin-bottom: 24px;
}

.fiche-produit .description {
    color: var(--encre-soft);
    font-size: 16.5px;
    line-height: 1.75;
    margin-bottom: 32px;
    white-space: pre-line;
}

.selecteur-qte {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid rgba(36,28,18,.15);
    border-radius: 999px;
    overflow: hidden;
    background: var(--blanc);
}

.selecteur-qte button {
    width: 46px;
    height: 50px;
    border: none;
    background: transparent;
    font-size: 20px;
    color: var(--encre);
}
.selecteur-qte button:hover { background: var(--creme-2); }

.selecteur-qte input {
    width: 54px;
    text-align: center;
    border: none;
    background: transparent;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

.achat-ligne {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.reassurance {
    display: grid;
    gap: 12px;
    padding: 22px;
    background: var(--blanc);
    border-radius: var(--radius);
    box-shadow: var(--ombre-douce);
}

.reassurance div {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--encre-soft);
}

/* ============================================================
   PANIER (page + tiroir)
   ============================================================ */
.tiroir-panier {
    position: fixed;
    top: 0; right: 0;
    height: 100%;
    width: min(430px, 92vw);
    background: var(--creme);
    z-index: 300;
    box-shadow: -30px 0 80px rgba(36,28,18,.25);
    transform: translateX(105%);
    transition: transform .38s cubic-bezier(.2,.8,.2,1);
    display: flex;
    flex-direction: column;
}

.tiroir-panier.ouvert { transform: translateX(0); }

.voile {
    position: fixed;
    inset: 0;
    background: rgba(20,15,8,.45);
    backdrop-filter: blur(3px);
    z-index: 250;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.voile.visible { opacity: 1; pointer-events: auto; }

.tiroir-tete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid rgba(36,28,18,.08);
}

.tiroir-tete h3 { font-size: 22px; }

.tiroir-corps {
    flex: 1;
    overflow-y: auto;
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tiroir-pied {
    padding: 20px 24px 26px;
    border-top: 1px solid rgba(36,28,18,.08);
    background: var(--blanc);
}

.ligne-panier {
    display: grid;
    grid-template-columns: 74px 1fr auto;
    gap: 14px;
    align-items: center;
    background: var(--blanc);
    padding: 12px;
    border-radius: var(--radius);
    box-shadow: var(--ombre-douce);
}

.ligne-panier img {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 12px;
}

.ligne-panier .nom { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.ligne-panier .pu { font-size: 13px; color: var(--texte-doux); }

.ligne-panier .qte-mini {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.qte-mini button {
    width: 26px; height: 26px;
    border-radius: 8px;
    border: 1px solid rgba(36,28,18,.15);
    background: var(--creme);
    font-size: 14px;
    line-height: 1;
}
.qte-mini button:hover { background: var(--creme-2); }

.ligne-panier .droite {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.ligne-panier .total-ligne { font-weight: 700; font-size: 15px; }

.btn-suppr {
    border: none;
    background: none;
    color: var(--terracotta);
    font-size: 13px;
    text-decoration: underline;
    padding: 0;
}

.recap-ligne {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    padding: 5px 0;
    color: var(--encre-soft);
}

.recap-ligne.total {
    font-size: 19px;
    font-weight: 700;
    color: var(--encre);
    border-top: 1px dashed rgba(36,28,18,.18);
    margin-top: 8px;
    padding-top: 12px;
}

.barre-livraison {
    margin: 10px 0 14px;
}

.barre-livraison .texte {
    font-size: 13px;
    color: var(--sauge-fonce);
    font-weight: 600;
    margin-bottom: 7px;
}

.barre-livraison .piste {
    height: 7px;
    background: var(--creme-3);
    border-radius: 999px;
    overflow: hidden;
}

.barre-livraison .jauge {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sauge), var(--ambre));
    transition: width .5s ease;
}

.panier-vide {
    text-align: center;
    padding: 60px 24px;
    color: var(--texte-doux);
}
.panier-vide .icone { font-size: 44px; margin-bottom: 14px; }

/* Page panier pleine */
.page-panier {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 90px;
}

.encart-recap {
    background: var(--blanc);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--ombre-douce);
    position: sticky;
    top: 100px;
}

.encart-recap h3 { font-size: 22px; margin-bottom: 18px; }

/* ============================================================
   FORMULAIRES
   ============================================================ */
.champ { margin-bottom: 18px; }

.champ label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--texte-doux);
    margin-bottom: 7px;
}

.champ input,
.champ textarea,
.champ select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1.5px solid rgba(36,28,18,.12);
    background: var(--blanc);
    font-family: var(--sans);
    font-size: 15px;
    color: var(--encre);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.champ input:focus,
.champ textarea:focus,
.champ select:focus {
    outline: none;
    border-color: var(--ambre);
    box-shadow: 0 0 0 4px rgba(176,118,58,.14);
}

.champ textarea { min-height: 100px; resize: vertical; }

.champs-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.alerte {
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14.5px;
    font-weight: 500;
    margin-bottom: 20px;
}

.alerte.erreur { background: #fbeae5; color: #8c3520; border: 1px solid #f0cdc1; }
.alerte.succes { background: #eaf2e4; color: #3d5730; border: 1px solid #cfe0c2; }
.alerte.info   { background: #f3ecdd; color: #6b5326; border: 1px solid #e5d7b8; }

/* ============================================================
   CHECKOUT
   ============================================================ */
.etapes {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0 0 40px;
    flex-wrap: wrap;
}

.etape {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--texte-doux);
}

.etape .num {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--creme-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.etape.active { color: var(--encre); }
.etape.active .num { background: var(--encre); color: var(--creme); }
.etape.faite .num { background: var(--sauge); color: #fff; }

.etape-sep { width: 40px; height: 1.5px; background: var(--creme-3); align-self: center; }

.carte-blanche {
    background: var(--blanc);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--ombre-douce);
}

#sumup-card { margin-top: 10px; }

/* ============================================================
   VALEURS / RITUELS
   ============================================================ */
.grille-valeurs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}

.carte-valeur {
    background: rgba(255, 253, 249, .06);
    border: 1px solid rgba(248, 243, 233, .12);
    border-radius: var(--radius-lg);
    padding: 32px 26px;
    transition: transform .3s ease, background .3s ease;
}

.carte-valeur:hover { transform: translateY(-6px); background: rgba(255,253,249,.1); }

.carte-valeur .icone {
    font-size: 30px;
    margin-bottom: 16px;
    display: block;
}

.carte-valeur h3 { font-size: 20px; margin-bottom: 10px; color: var(--creme); }
.carte-valeur p { font-size: 14.5px; color: rgba(248,243,233,.7); }

/* ============================================================
   BANDEAU CITATION
   ============================================================ */
.citation {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

.citation blockquote {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 400;
    line-height: 1.4;
    color: var(--encre-soft);
}

.citation cite {
    display: block;
    margin-top: 18px;
    font-family: var(--sans);
    font-style: normal;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ambre-fonce);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--encre);
    color: rgba(248,243,233,.75);
    padding: 70px 0 30px;
    margin-top: 0;
}

.footer-grille {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(248,243,233,.12);
}

.site-footer .logo { color: var(--creme); margin-bottom: 16px; }
.site-footer p { font-size: 14.5px; line-height: 1.7; }

.site-footer h4 {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--creme);
    margin-bottom: 18px;
}

.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer ul a { font-size: 14.5px; transition: color .2s ease; }
.site-footer ul a:hover { color: var(--ambre-clair); }

.footer-bas {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 26px;
    font-size: 13px;
    color: rgba(248,243,233,.5);
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translate(-50%, 90px);
    background: var(--encre);
    color: var(--creme);
    padding: 15px 26px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    box-shadow: var(--ombre);
    z-index: 400;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform .4s cubic-bezier(.2,.8,.2,1);
    max-width: 92vw;
}

.toast.visible { transform: translate(-50%, 0); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 50px 0 20px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 600;
    background: var(--blanc);
    border: 1px solid rgba(36,28,18,.1);
}

.pagination a:hover { border-color: var(--ambre); color: var(--ambre-fonce); }
.pagination .active { background: var(--encre); color: var(--creme); border-color: var(--encre); }

/* ============================================================
   PAGE COMPTE / CONNEXION
   ============================================================ */
.carte-auth {
    max-width: 480px;
    margin: 60px auto 90px;
    background: var(--blanc);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--ombre);
}

.carte-auth h1 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 8px;
}

.carte-auth .sous-titre {
    text-align: center;
    color: var(--texte-doux);
    font-size: 15px;
    margin-bottom: 28px;
}

.onglets {
    display: flex;
    background: var(--creme-2);
    border-radius: 999px;
    padding: 5px;
    margin-bottom: 28px;
}

.onglets button {
    flex: 1;
    border: none;
    background: transparent;
    padding: 11px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--texte-doux);
    transition: all .2s ease;
}

.onglets button.actif {
    background: var(--blanc);
    color: var(--encre);
    box-shadow: var(--ombre-douce);
}

/* Confirmation commande */
.confirmation {
    max-width: 640px;
    margin: 60px auto 100px;
    text-align: center;
}

.confirmation .rond {
    width: 90px; height: 90px;
    margin: 0 auto 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: #eaf2e4;
    animation: pop .5s cubic-bezier(.2,.8,.3,1.4);
}

@keyframes pop {
    from { transform: scale(.4); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.confirmation h1 { font-size: 38px; margin-bottom: 12px; }
.confirmation p { color: var(--texte-doux); margin-bottom: 8px; }

.confirmation .ref {
    display: inline-block;
    margin: 18px 0 30px;
    padding: 12px 26px;
    background: var(--blanc);
    border-radius: 14px;
    box-shadow: var(--ombre-douce);
    font-weight: 700;
    letter-spacing: .05em;
}

/* ============================================================
   ANIMATIONS D'APPARITION
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
}

.reveal.vu { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .smoke path, .hero-tag { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
    .hero-inner { grid-template-columns: 1fr; gap: 44px; }
    .hero { padding: 60px 24px 70px; }
    .fiche-produit { grid-template-columns: 1fr; gap: 40px; }
    .fiche-produit .galerie { position: static; }
    .page-panier { grid-template-columns: 1fr; }
    .encart-recap { position: static; }
    .footer-grille { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .main-nav {
        position: fixed;
        top: 0; right: 0;
        height: 100%;
        width: min(300px, 85vw);
        background: var(--creme);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 90px 32px;
        gap: 22px;
        z-index: 280;
        box-shadow: -20px 0 60px rgba(36,28,18,.2);
        transform: translateX(105%);
        transition: transform .35s cubic-bezier(.2,.8,.2,1);
    }

    .main-nav.ouvert { transform: translateX(0); }
    .main-nav a { font-size: 18px; }

    .burger {
        display: inline-flex;
        z-index: 290;
    }

    section.bloc { padding: 60px 0; }
    .footer-grille { grid-template-columns: 1fr; gap: 30px; }
    .champs-2 { grid-template-columns: 1fr; }
    .barre-filtres { flex-direction: column; align-items: stretch; }
    .champ-recherche input { width: 100%; flex: 1; }
    .carte-auth { padding: 28px 22px; margin: 30px auto 60px; }
    .carte-blanche { padding: 24px 18px; }
}
