/* ===========================
   AAKALYSS - Style principal
   Palette : Taupe Doux, Sable Chaud, Vieux Rose
   =========================== */

:root {
    --taupe-doux: #DCC8BE;
    --sable-chaud: #CDB3A3;
    --vieux-rose: #77625b;
    --brun-fonce: #5A3E2B;
    --blanc-creme: #FDF9F6;
    --blanc: #FFFFFF;
}

/* Font fallbacks pour minimiser CLS */
@font-face {
    font-family: 'Playfair Display Fallback';
    src: local('Georgia');
    size-adjust: 110%;
    ascent-override: 95%;
    descent-override: 22%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Lato Fallback';
    src: local('Arial');
    size-adjust: 97%;
    ascent-override: 101%;
    descent-override: 22%;
    line-gap-override: 0%;
}

/* RESET */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Lato', 'Lato Fallback', sans-serif;
    color: var(--brun-fonce);
    background: linear-gradient(180deg, #C8A79D 0%, #D9C2B7 30%, #EDE0D8 60%, #F5EDE8 100%);
    background-attachment: fixed;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    opacity: 1.0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===========================
   HEADER
   =========================== */
.header {
    background-color: var(--taupe-doux);
    padding: 20px 40px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    flex-direction: column;
}

.logo {
    font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: 6px;
    background: linear-gradient(135deg, var(--brun-fonce) 0%, var(--vieux-rose) 40%, var(--sable-chaud) 60%, var(--brun-fonce) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoShimmer 4s ease-in-out infinite;
}

@keyframes logoShimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

.logo-subtitle {
    font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--brun-fonce);
}

.header-slogan {
    max-width: 400px;
    text-align: center;
    font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--brun-fonce);
    line-height: 1.5;
}

.header-panier {
    display: flex;
    align-items: center;
}

.btn-panier {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--sable-chaud);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Lato', 'Lato Fallback', sans-serif;
    font-size: 1rem;
    color: var(--brun-fonce);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-panier:hover {
    background-color: var(--vieux-rose);
}

/* ===========================
   NAVIGATION
   =========================== */
.nav-main {
    background-color: var(--sable-chaud);
    padding: 0 40px;
}

.nav-list {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 20px 35px;
    font-family: 'Lato', 'Lato Fallback', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brun-fonce);
    text-align: center;
}

/* Sous-menu */
.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background-color: var(--blanc-creme);
    box-shadow: 0 6px 20px rgba(90, 62, 43, 0.12);
    border-radius: 12px;
    padding: 8px 0;
    display: none;
    z-index: 100;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu li a {
    display: block;
    padding: 10px 25px;
    font-size: 0.95rem;
    color: var(--brun-fonce);
    margin: 2px 8px;
    border-radius: 8px;
}

.submenu li a:hover {
    background-color: var(--vieux-rose);
    color: var(--blanc-creme);
}

/* ===========================
   MAIN CONTENT
   =========================== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    flex: 1;
    width: 100%;
}

/* Hero banner */
.hero-banner {
    text-align: center;
    background-color: var(--taupe-doux);
    border-radius: 0;
    margin: -30px -40px 0;
    width: calc(100% + 80px);
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 570px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-text {
    padding: 40px 20px;
    position: relative;
}

.hero-text::after {
    content: "\2740 \2022 \2740";
    display: block;
    margin-top: 20px;
    font-size: 1.2rem;
    color: var(--sable-chaud);
    letter-spacing: 8px;
    opacity: 0.8;
}

.hero-banner h2 {
    font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
    font-size: 2.6rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--brun-fonce);
}

.hero-banner p {
    font-size: 1.3rem;
    color: var(--brun-fonce);
    max-width: 600px;
    margin: 0 auto;
}

/* Separateur floral */
.floral-divider {
    text-align: center;
    margin: 40px auto;
    position: relative;
    height: 30px;
    max-width: 400px;
}

.floral-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sable-chaud), var(--vieux-rose), var(--sable-chaud), transparent);
}

.floral-divider::after {
    content: "\2740";
    position: relative;
    background: linear-gradient(180deg, #D9C2B7, #EDE0D8);
    padding: 0 18px;
    font-size: 1.4rem;
    color: var(--vieux-rose);
    z-index: 1;
}

/* Sections storytelling */
.section-story,
.section-creations,
.section-engagement {
    max-width: 800px;
    margin: 50px auto;
    text-align: center;
}

.section-story h2,
.section-creations h2,
.section-engagement h2 {
    font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--brun-fonce);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-story h2::after,
.section-creations h2::after,
.section-engagement h2::after {
    content: "\2767";
    display: block;
    text-align: center;
    font-size: 1.1rem;
    color: var(--sable-chaud);
    margin-top: 8px;
    letter-spacing: 8px;
}

.section-story p,
.section-creations p,
.section-engagement p {
    font-size: 1.2rem;
    color: var(--brun-fonce);
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

/* Placeholder images */
.section-img-placeholder {
    width: 100%;
    height: 280px;
    background-color: var(--taupe-doux);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.section-img-placeholder span {
    font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--vieux-rose);
    opacity: 0.7;
}

.creations-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.gallery-placeholder {
    background-color: var(--taupe-doux);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-placeholder span {
    font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--vieux-rose);
    opacity: 0.7;
}

/* Strong SEO dans le texte */
.section-creations strong,
.section-engagement strong,
.hero-banner strong {
    font-weight: 400;
    color: var(--brun-fonce);
}

.seo-highlight {
    font-size: 1.15rem !important;
    font-style: italic;
    font-weight: 500;
    color: var(--vieux-rose) !important;
    margin-top: 20px !important;
}

/* Section créations - fond différent */
.section-creations {
    background-color: var(--sable-chaud);
    max-width: 100%;
    padding: 50px 40px;
    border-radius: 8px;
}

.section-creations h2,
.section-creations p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Citation finale */
.section-quote {
    text-align: center;
    padding: 50px 20px;
    margin: 30px 0;
}

.section-quote blockquote {
    font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
    font-style: italic;
    font-size: 1.6rem;
    color: var(--vieux-rose);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    padding: 0 30px;
}

.section-quote blockquote::before,
.section-quote blockquote::after {
    font-size: 3rem;
    color: var(--taupe-doux);
    position: absolute;
}

.section-quote blockquote::before {
    content: "\201C";
    top: -15px;
    left: -10px;
}

.section-quote blockquote::after {
    content: "\201D";
    bottom: -30px;
    right: -10px;
}

.section-quote::before,
.section-quote::after {
    content: "\2740 \2740 \2740";
    display: block;
    text-align: center;
    font-size: 0.9rem;
    color: var(--sable-chaud);
    letter-spacing: 12px;
    opacity: 0.7;
}

.section-quote::before {
    margin-bottom: 15px;
}

.section-quote::after {
    margin-top: 15px;
}

/* ===========================
   PRODUITS (chargement dynamique)
   =========================== */
.products-section {
    padding: 20px 0;
}

.products-header {
    text-align: center;
    margin-bottom: 40px;
}

.products-header h2 {
    font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
    font-size: 2.1rem;
    font-weight: 400;
    color: var(--brun-fonce);
    margin-bottom: 10px;
}

.products-header p {
    font-size: 1.15rem;
    color: var(--brun-fonce);
    max-width: 600px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Carte produit - style grille avec dropdown */
.product-card {
    background-color: var(--blanc);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-card-header {
    cursor: pointer;
    position: relative;
}

.product-image {
    width: 100%;
    padding-bottom: 133%;
    position: relative;
    background-color: var(--taupe-doux);
    overflow: hidden;
}

.product-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
    font-size: 3rem;
    color: var(--vieux-rose);
    opacity: 0.6;
}

.dispo-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
    flex-direction: column;
    align-items: flex-start;
}

.badge-dispo {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.badge-dispo--livraison {
    background: #5A3E2B;
    color: #fff;
}

.badge-dispo--click-collect {
    background: #A07060;
    color: #fff;
}

.badge-unique {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #B8975A;
    color: #fff;
}

.product-info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-info h3 {
    font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brun-fonce);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 2px;
}

.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--vieux-rose);
    white-space: nowrap;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

/* ===========================
   MODAL FICHE PRODUIT
   =========================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(90, 62, 43, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background-color: var(--blanc-creme);
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--brun-fonce);
    cursor: pointer;
    z-index: 1;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--vieux-rose);
}

.modal-content {
    display: flex;
    gap: 0;
}

.modal-image {
    width: 450px;
    min-width: 450px;
    min-height: 450px;
    position: relative;
    background-color: var(--taupe-doux);
    border-radius: 12px 0 0 12px;
    overflow: hidden;
}

.modal-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-image .product-placeholder {
    font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
    font-size: 5rem;
    color: var(--vieux-rose);
    opacity: 0.6;
}

.modal-info {
    flex: 1;
    padding: 35px 30px;
}

.modal-info h3 {
    font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--brun-fonce);
    margin-bottom: 8px;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vieux-rose);
    margin-bottom: 18px;
}

.modal-desc {
    font-size: 1.1rem;
    color: var(--brun-fonce);
    line-height: 1.7;
    margin-bottom: 25px;
}

.product-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.spec {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.spec-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--vieux-rose);
}

.spec-value {
    font-size: 1rem;
    color: var(--brun-fonce);
}

.products-top {
    margin-bottom: 20px;
}

.btn-retour {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    background-color: var(--sable-chaud);
    border: none;
    border-radius: 25px;
    font-family: 'Lato', 'Lato Fallback', sans-serif;
    font-size: 1.05rem;
    color: var(--brun-fonce);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-retour:hover {
    background-color: var(--vieux-rose);
}

.nav-link.active {
    background-color: var(--vieux-rose);
    color: var(--blanc-creme);
    font-weight: 700;
}

/* ===========================
   BOUTON AJOUTER AU PANIER
   =========================== */
.btn-ajouter-panier {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 12px 20px;
    background: var(--vieux-rose);
    color: var(--blanc);
    border: none;
    border-radius: 25px;
    font-family: 'Lato', 'Lato Fallback', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-ajouter-panier:hover {
    background: var(--brun-fonce);
}

.btn-ajouter-panier:disabled {
    background: #C8B8B2;
    color: #F5EFEC;
    cursor: not-allowed;
    opacity: 0.75;
}

.stock-epuise {
    margin-top: 16px;
    padding: 10px 16px;
    background: #FAF5F2;
    border-left: 3px solid var(--sable-chaud);
    border-radius: 0 6px 6px 0;
    font-size: 0.88rem;
    font-style: italic;
    color: var(--vieux-rose);
    letter-spacing: 0.02em;
}

.badge-epuise {
    display: inline-block;
    background: #C0392B;
    color: #fff;
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 1px 5px;
    border-radius: 20px;
    white-space: nowrap;
    width: fit-content;
}

/* ===========================
   BADGE PANIER
   =========================== */
.panier-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--brun-fonce);
    color: var(--blanc);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ===========================
   PANNEAU PANIER (SLIDE-IN)
   =========================== */
.panier-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(90, 62, 43, 0.4);
    z-index: 2000;
}

.panier-overlay.active {
    display: block;
}

.panier-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 90vw;
    height: 100%;
    background: var(--blanc-creme);
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.panier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 25px 15px;
    border-bottom: 1px solid var(--taupe-doux);
}

.panier-header h2 {
    font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
    font-size: 1.5rem;
    font-weight: 400;
}

.panier-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--brun-fonce);
    line-height: 1;
}

.panier-vide {
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
    color: var(--sable-chaud);
}

.panier-body {
    flex: 1;
    padding: 15px 25px;
}

.panier-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--taupe-doux);
}

.panier-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.panier-item-nom {
    font-weight: 700;
    font-size: 0.95rem;
}

.panier-item-prix {
    font-size: 0.9rem;
    color: var(--vieux-rose);
}

.panier-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.panier-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--taupe-doux);
    background: var(--blanc);
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panier-qty {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.panier-remove-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #C0392B;
    cursor: pointer;
    padding: 0 4px;
}

.panier-footer {
    padding: 20px 25px;
    border-top: 2px solid var(--taupe-doux);
}

.panier-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.panier-total-row span:first-child {
    font-size: 1.1rem;
    font-weight: 700;
}

.panier-total {
    font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--vieux-rose);
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--vieux-rose);
    color: var(--blanc);
    border: none;
    border-radius: 25px;
    font-family: 'Lato', 'Lato Fallback', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-checkout:hover {
    background: var(--brun-fonce);
}

/* Formulaire checkout dans le panneau */
.checkout-form-section {
    padding: 20px 25px;
}

.checkout-form-section h3 {
    font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.checkout-back {
    background: none;
    border: none;
    color: var(--vieux-rose);
    font-size: 0.95rem;
    cursor: pointer;
    margin-bottom: 15px;
    padding: 0;
}

.checkout-field {
    margin-bottom: 14px;
}

.checkout-field label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.checkout-field input,
.checkout-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--taupe-doux);
    border-radius: 6px;
    font-family: 'Lato', 'Lato Fallback', sans-serif;
    font-size: 1rem;
    color: var(--brun-fonce);
}

.checkout-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.recap-frais {
    background: #fdf6f2;
    border: 1px solid #DCC8BE;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 14px 0;
    font-size: 0.9rem;
}
.recap-frais-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    color: #5A3E2B;
}
.recap-frais-total {
    font-weight: 700;
    border-top: 1px solid #DCC8BE;
    margin-top: 8px;
    padding-top: 8px;
    font-size: 1rem;
}

.checkout-legal {
    margin: 18px 0 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-legal-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--brun-fonce);
    line-height: 1.5;
    cursor: pointer;
}

.checkout-legal-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.checkout-legal-label a {
    color: var(--vieux-rose);
    text-decoration: underline;
}

.btn-payer {
    display: block;
    width: 100%;
    padding: 14px;
    background: #635BFF;
    color: var(--blanc);
    border: none;
    border-radius: 25px;
    font-family: 'Lato', 'Lato Fallback', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-payer:hover {
    background: #4B45C6;
}

.btn-payer:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Mode de récupération */
.checkout-modes {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}
.mode-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 2px solid #e0d5cc;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
}
.mode-option input[type="radio"] {
    display: none;
}
.mode-option.selected,
.mode-option:has(input:checked) {
    border-color: var(--vieux-rose);
    background: #fdf7f4;
}
.mode-icon {
    font-size: 1.5rem;
    line-height: 1;
}
.mode-label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brun-fonce);
}
.mode-label small {
    font-weight: 400;
    font-size: 0.78rem;
    color: #888;
    margin-top: 1px;
}

/* Recherche point relais Chronopost */
.relais-search-row {
    display: flex;
    gap: 10px;
}
.relais-search-row input { flex: 1; }
.btn-chercher {
    padding: 10px 16px;
    background: var(--vieux-rose);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.btn-chercher:hover { background: var(--brun-fonce); }
.relais-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    max-height: 260px;
    overflow-y: auto;
}
.relais-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border: 2px solid #e0d5cc;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.relais-item:hover { background: #fdf7f4; }
.relais-item.selected { border-color: var(--vieux-rose); background: #fdf7f4; }
.relais-nom { font-size: 0.9rem; color: var(--brun-fonce); }
.relais-adr { font-size: 0.8rem; color: #777; }
.relais-loading, .relais-error { font-size: 0.85rem; padding: 8px 0; color: #888; }
.relais-error { color: #c0392b; }

/* ===========================
   FOOTER
   =========================== */
.footer {
    background-color: var(--taupe-doux);
    padding: 40px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.footer-col h3.logo {
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.footer-col h4 {
    font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--brun-fonce);
}

.footer-col p {
    font-size: 1rem;
    margin-bottom: 5px;
}

.footer-col ul li {
    margin-bottom: 5px;
}

.footer-col ul li a {
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--vieux-rose);
}

.footer-social {
    margin-top: 15px;
}

.footer-social p {
    font-size: 1rem;
    margin-bottom: 5px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--vieux-rose);
}

.social-link svg {
    vertical-align: middle;
}

/* ===========================
   PAGES LÉGALES
   =========================== */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 40px 60px;
}

.legal-container {
    background: var(--blanc);
    border-radius: 8px;
    padding: 40px;
}

.back-link {
    display: inline-block;
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: var(--vieux-rose);
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--brun-fonce);
}

.legal-page h2 {
    font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--brun-fonce);
    margin-bottom: 8px;
    text-align: center;
}

.legal-date {
    text-align: center;
    font-size: 0.9rem;
    color: var(--sable-chaud);
    margin-bottom: 35px;
}

.legal-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--taupe-doux);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h3 {
    font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--vieux-rose);
    margin-bottom: 12px;
}

.legal-section h4 {
    font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brun-fonce);
    margin: 18px 0 8px;
}

.legal-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--brun-fonce);
    margin-bottom: 8px;
}

.legal-section ul {
    margin: 8px 0 12px 20px;
    list-style: disc;
}

.legal-section ul li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--brun-fonce);
    margin-bottom: 4px;
}

.legal-section a {
    color: var(--vieux-rose);
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--brun-fonce);
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

/* Formulaire de rétractation */
.retractation-form {
    margin-top: 20px;
}

.retractation-field {
    margin-bottom: 14px;
}

.retractation-field label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--vieux-rose);
    margin-bottom: 5px;
}

.retractation-field input,
.retractation-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--taupe-doux);
    border-radius: 6px;
    font-family: 'Lato', 'Lato Fallback', sans-serif;
    font-size: 1rem;
    color: var(--brun-fonce);
    background: var(--blanc-creme);
    transition: border-color 0.3s ease;
}

.retractation-field input:focus,
.retractation-field textarea:focus {
    outline: none;
    border-color: var(--vieux-rose);
}

.retractation-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-retractation {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-family: 'Lato', 'Lato Fallback', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-envoyer {
    background: var(--vieux-rose);
    color: var(--blanc);
}

.btn-envoyer:hover {
    background: var(--brun-fonce);
}

.btn-imprimer {
    background: var(--sable-chaud);
    color: var(--brun-fonce);
}

.btn-imprimer:hover {
    background: var(--taupe-doux);
}

@media print {
    .header, .footer, .back-link, .retractation-actions {
        display: none !important;
    }
    .legal-page {
        padding: 0;
    }
    .legal-container {
        box-shadow: none;
    }
    .retractation-field input,
    .retractation-field textarea {
        border: 1px solid #999;
    }
}

/* ===========================
   TRANSITIONS & ANIMATIONS
   =========================== */

/* Fade-in au scroll (IntersectionObserver) */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero text - apparition douce au chargement */
.hero-text {
    animation: heroFadeIn 1.2s ease forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floral divider - apparition subtile */
.floral-divider {
    opacity: 0;
    transition: opacity 1s ease;
}

.floral-divider.visible {
    opacity: 1;
}

/* Gallery placeholders - léger scale au hover */
.gallery-placeholder {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-placeholder:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(90, 62, 43, 0.15);
}

/* Nav links - soulignement élégant */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--brun-fonce);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 60%;
    left: 20%;
}

/* Respect des préférences utilisateur */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-text {
        animation: none;
    }
    .floral-divider {
        opacity: 1;
        transition: none;
    }
    .gallery-placeholder {
        transition: none;
    }
    .nav-link::after {
        transition: none;
    }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .header-slogan {
        max-width: 100%;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .nav-link {
        padding: 12px 20px;
    }

    .submenu {
        position: static;
        transform: none;
        box-shadow: none;
        display: none;
        background-color: var(--blanc-creme);
        width: 60%;
        margin: 4px auto 8px;
        border-radius: 12px;
        padding: 6px 0;
    }

    .has-submenu.open .submenu {
        display: block;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .hero-banner {
        margin: 0;
        width: 100vw;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-image {
        height: 40vh;
    }

    .hero-text {
        padding: 25px 15px;
    }

    .hero-banner h2 {
        font-size: 1.8rem;
    }

    .section-story,
    .section-creations,
    .section-engagement {
        margin: 30px auto;
    }

    .section-creations {
        padding: 30px 20px;
    }

    .creations-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .section-img-placeholder {
        height: 200px;
    }

    .section-quote blockquote {
        font-size: 1.3rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .modal-content {
        flex-direction: column;
    }

    .modal-image {
        width: 100%;
        min-width: auto;
        min-height: 200px;
        border-radius: 12px 12px 0 0;
    }

    .modal-info {
        padding: 25px 20px;
    }

    .product-specs {
        grid-template-columns: 1fr 1fr;
    }

    .modal-overlay {
        padding: 15px;
    }

    .legal-page {
        padding: 20px 15px 40px;
    }

    .legal-container {
        padding: 25px 20px;
    }

    .legal-page h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 1.6rem;
    }
}

/* ===========================
   SECTION SÉCURITÉ BOUGIES
   =========================== */
.securite-banner {
    text-align: center;
    padding: 40px 20px 20px;
}

.btn-securite {
    background: none;
    border: 1.5px solid var(--vieux-rose);
    color: var(--vieux-rose);
    font-family: inherit;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background 0.2s, color 0.2s;
}

.btn-securite:hover {
    background: var(--vieux-rose);
    color: #fff;
}

.modal-securite {
    max-width: 700px;
    padding: 0;
}

.modal-securite-content {
    padding: 45px 40px 35px;
}

.modal-securite-content h2 {
    font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
    font-size: 1.5rem;
    color: var(--brun-fonce);
    margin-bottom: 25px;
    text-align: center;
}

.pictos-strip {
    display: block;
    width: 100%;
    max-width: 560px;
    margin: 0 auto 30px;
}

.securite-liste {
    color: var(--brun-fonce);
    font-size: 0.95rem;
    line-height: 1.9;
    padding-left: 20px;
    margin-bottom: 25px;
}

.securite-note {
    font-size: 0.85rem;
    color: var(--brun-fonce);
    opacity: 0.65;
    font-style: italic;
    text-align: center;
    border-top: 1px solid var(--taupe-doux);
    padding-top: 18px;
    margin-top: 10px;
}
