/**
 * Diance Shop - CSS Principal
 * Consolidé et nettoyé - inclut tout le style de la boutique
 */

/* ============================
   GOOGLE FONTS
============================ */


/* ============================
   FONTS LOCALES
============================ */
@font-face {
    font-family: 'Messner';
    src: url('../fonts/messner/Messner-Thin.woff2') format('woff2'),
         url('../fonts/messner/Messner-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

/* ============================
   CSS VARIABLES
============================ */
:root {
    --primary: #A9A49B;
    --primary-light: #CCC8BF;
    --primary-dark: #8A857D;
    --accent: #B8B3AB;
    --bg-cream: #F5F3F1;
    --bg-warm: #EDEAE7;
    --text-dark: #2D2B28;
    --text-medium: #5A5754;
    --text-light: #8A8680;
    --white: #ffffff;
    --border: #E0DCD8;
    --shadow-sm: 0 1px 3px rgba(45, 43, 40, 0.08);
    --shadow-md: 0 4px 12px rgba(45, 43, 40, 0.1);
    --shadow-lg: 0 8px 30px rgba(45, 43, 40, 0.12);
    --font-display: 'Messner', Georgia, serif;
    --font-body: 'Quicksand', 'Helvetica Neue', sans-serif;
    --transition: all 0.3s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --success: #7ba05b;
    --error: #c17060;
}

/* ============================
   RESET & BASE
============================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ============================
   CONTAINER
============================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================
   TOP BANNER
============================ */
.top-banner {
    background: #797362;
    color: var(--white);
    text-align: center;
    padding: 0.45rem 1rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.top-banner strong {
    font-weight: 700;
}

/* ============================
   HEADER
============================ */
.shop-header {
    background: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    flex: 0 0 auto;
    min-width: 120px;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 100;
    color: var(--text-dark);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--text-medium);
    text-transform: capitalize;
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Cart Icon */
.cart-icon {
    flex: 0 0 auto;
    min-width: 120px;
    display: flex;
    justify-content: flex-end;
    position: relative;
    cursor: pointer;
    color: var(--text-dark);
    transition: var(--transition);
}

.cart-icon:hover {
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-dark);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: var(--transition);
}

/* ============================
   HERO - 3 PANELS
============================ */
.hero-section {
    padding: 0;
    margin: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    min-height: 70vh;
    max-height: 80vh;
    gap: 6px;
    padding: 6px;
    background: var(--white);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.hero-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.8s ease;
}

.hero-panel:hover img {
    transform: scale(1.03);
}

.hero-panel--center {
    position: relative;
}

.hero-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 0.5rem clamp(0.5rem, 2vw, 3rem);
    background: rgba(45, 43, 40, 0.05);
    z-index: 2;
}

/* Logo fluide : s'adapte automatiquement au conteneur */
.hero-logo-img {
    max-width: 88%;
    max-height: 28%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.15));
}

/* ============================
   VALUES / ICONS
============================ */
.values-section {
    padding: 3.5rem 0;
    background: var(--white);
}

.values-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 160px;
}

.value-img {
    width: 130px;
    height: auto;
    transition: var(--transition);
}

.value-item:hover .value-img {
    transform: scale(1.08);
}

/* ============================
   DIANCE SECTIONS (style original)
============================ */
.diance-section-container {
    max-width: 100%;
    overflow: hidden;
    clear: both;
    background: transparent !important;
}

.diance-section-container .container {
    max-width: 1280px;
    background: transparent !important;
}

.diance-section-container::after {
    content: "";
    display: table;
    clear: both;
}

.diance-section-container .produits_sec,
.diance-section-container .histoire_sec,
.diance-section-container .mission_sec,
.diance-section-container .produits_text,
.diance-section-container .histoire_text,
.diance-section-container .mission_text {
    width: 100%;
    position: relative;
    min-height: 1px;
}

/* Bannières décoratives */
.prod_bg1 {
    margin-bottom: clamp(-273px, -15vw, -150px);
}

.histoire_bg {
    margin: 0 auto;
    margin-top: clamp(20px, 3vw, 43px);
    width: 100%;
    margin-bottom: clamp(-170px, -9.5vw, -100px);
}

.mission_bg {
    margin: 0 auto;
    margin-top: 0;
    width: 100%;
    margin-bottom: clamp(-170px, -10vw, -110px);
}

/* Sections */
.produits_sec {
    float: left;
    margin-top: 0;
    padding-left: clamp(0px, 10vw, 146px);
    padding-right: clamp(0px, 10vw, 146px);
}

.histoire_sec {
    float: left;
    margin-top: 0;
    margin-bottom: clamp(40px, 5vw, 70px);
    padding-left: clamp(0px, 10vw, 146px);
    padding-right: clamp(0px, 10vw, 146px);
}

.mission_sec {
    float: left;
    margin-top: 15px;
    padding-left: clamp(0px, 10vw, 146px);
    padding-right: clamp(0px, 10vw, 146px);
    margin-bottom: clamp(40px, 5vw, 70px);
}

.e1 {
    margin-bottom: clamp(40px, 5vw, 70px);
}

/* Boîtes translucides */
.produits_text {
    background-color: rgba(220, 216, 213, 0.7) !important;
    border-radius: clamp(20px, 3.5vw, 50px);
    padding: clamp(20px, 2.5vw, 50px);
}

.histoire_text {
    background-color: rgba(220, 216, 213, 0.7) !important;
    padding: clamp(20px, 2.5vw, 50px);
    border-radius: clamp(20px, 3.5vw, 50px);
}

.mission_text {
    background-color: rgba(220, 216, 213, 0.7) !important;
    border-radius: clamp(20px, 3.5vw, 50px);
    padding: clamp(20px, 2.5vw, 50px);
}

/* Titres h2 dans sections */
.produits_text h2,
.mission_text h2 {
    font-family: 'Messner', serif;
    font-weight: 100;
    text-transform: uppercase;
    font-size: clamp(40px, 5.5vw, 110px);
    color: white;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Titre h1 dans histoire */
.histoire_text h1 {
    font-family: 'Messner', serif;
    font-weight: 100;
    text-transform: uppercase;
    font-size: clamp(40px, 5.5vw, 110px);
    color: white;
    margin-top: 0;
    margin-bottom: 20px;
}

.histoire_sec h1 {
    font-family: 'Messner', serif;
    font-weight: 100;
    text-transform: uppercase;
    font-size: clamp(40px, 5.5vw, 110px);
    color: #2b5f62;
    margin-bottom: 0;
}

/* h3 dans sections */
.produits_text h3,
.mission_text h3 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: clamp(15px, 1.2vw, 22px);
    color: #231f20;
}

/* Paragraphes dans sections */
.produits_text p,
.histoire_text p,
.mission_text p {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1.15vw, 21px);
    line-height: clamp(22px, 1.8vw, 28px);
    color: #231f20;
}

/* Bold dans paragraphes - FIX */
.produits_text p strong,
.histoire_text p strong,
.mission_text p strong {
    font-weight: 700;
}

/* ============================
   PRODUITS / GRILLE
============================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.produits_text .products-grid {
    background: transparent;
}

.produits_text .product-card {
    background: rgba(255, 255, 255, 0.92);
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.product-image {
    position: relative;
    padding-top: 120%;
    overflow: hidden;
    background: var(--bg-warm);
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    letter-spacing: 0.04em;
    z-index: 2;
}

.product-info {
    padding: 1.25rem;
}

.product-name {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.02em;
    margin-bottom: 0.35rem;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-weight: 300;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.product-price .original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

/* ============================
   BOUTONS PRODUITS
============================ */
.product-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn {
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    text-align: center;
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-block;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Bouton outline - Voir le produit */
.btn-outline {
    background: transparent;
    border: 2px solid #797362;
    color: #797362;
}

.btn-outline:hover {
    background: #797362;
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(121, 115, 98, 0.3);
}

/* Bouton primary - Ajouter au panier */
.btn-primary {
    background: #797362;
    border: 2px solid #797362;
    color: var(--white);
}

.btn-primary:hover {
    background: #5e5a4d;
    border-color: #5e5a4d;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(121, 115, 98, 0.3);
}

.btn-primary:active,
.btn-outline:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ============================
   LOADING / SPINNER
============================ */
.loading {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ============================
   PANIER (CART PANEL)
============================ */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 43, 40, 0.4);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--white);
    z-index: 9999;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.cart-panel.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.cart-header h2 {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 700;
    color: #231f20;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-medium);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--text-dark);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-warm);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: #231f20;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-size: 0.9rem;
    color: #2b5f62;
    font-weight: 700;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Cart qty buttons */
.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid #E0DCD8;
    background: #fff;
    color: #5A5754;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    transition: all 0.2s ease;
    padding: 0;
}

.qty-btn:hover {
    border-color: #A9A49B;
    color: #A9A49B;
    background: #F5F3F1;
}

.qty-minus:hover {
    border-color: #c17060;
    color: #c17060;
}

.qty-trash {
    border-color: transparent;
    color: #c17060;
    background: transparent;
    margin-left: 0.3rem;
    font-size: 0.75rem;
}

.qty-trash:hover {
    background: #fce4ec;
    border-color: #fce4ec;
}

.qty-value {
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 24px;
    text-align: center;
    display: inline-block;
}

/* Cart Summary */
.cart-summary {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-cream);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #231f20;
    font-weight: 500;
}

.summary-row.total {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2b5f62;
    padding-top: 0.5rem;
    border-top: 2px solid #231f20;
    margin-top: 0.5rem;
}

/* ============================
   POINTS DE VENTE
============================ */
#points-de-vente {
    background: #ffffff;
    padding: 4rem 0;
}

#points-de-vente h1 {
    font-family: 'Messner', serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(40px, 5.5vw, 110px);
    color: #2b5f62;
    margin-bottom: 1.5rem;
    line-height: 1;
}

#points-de-vente .pdv-inner {
    padding: 0 clamp(0px, 10vw, 146px);
}

#points-de-vente .pdv-layout {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-top: 1.5rem;
}

#points-de-vente .pdv-info {
    min-width: 260px;
    flex: 1;
}

#points-de-vente .pdv-search {
    display: flex;
    margin-bottom: 1.5rem;
}

#points-de-vente .pdv-search input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid #ccc;
    border-radius: 2px 0 0 2px;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    outline: none;
}

#points-de-vente .pdv-search button {
    padding: 0.6rem 0.9rem;
    background: #333333;
    border: none;
    cursor: pointer;
    border-radius: 0 2px 2px 0;
}

#points-de-vente .pdv-address-block {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

#points-de-vente .pdv-address-block p {
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    line-height: 1.8rem;
    color: #231f20;
    margin: 0;
    white-space: nowrap;   /* ← ajouter */
}

#points-de-vente .pdv-map {
    flex: 3;
    min-width: 280px;
}

#points-de-vente .pdv-map iframe {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}

/* ============================
   FREE SHIPPING BANNER
============================ */
.free-shipping-section {
    background: #797362;
    padding: 2.5rem 0;
    text-align: center;
}

.free-shipping-section h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 100;
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.free-shipping-section p {
    font-size: 0.85rem;
    color: #f5f0e8;
    font-weight: 300;
}

/* ============================
   FORMULAIRE CONTACT
============================ */
.contact-form-inner {
    margin-top: 1rem;
}

.contact-field {
    margin-bottom: 1.25rem;
}

.contact-field label {
    display: block;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #231f20;
    margin-bottom: 0.4rem;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1cdc7;
    border-radius: 8px;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    color: #2D2B28;
    background: rgba(255, 255, 255, 0.8);
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: #A9A49B;
}

.contact-field textarea {
    resize: vertical;
}

.contact-submit-btn {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    background: #797362;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-submit-btn:hover {
    background: #5e5a4d;
}

.contact-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================
   FOOTER
============================ */
footer {
    background: #797362;
    color: var(--white);
    padding: 3.5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 100;
    color: var(--primary-light);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-col p,
.footer-col a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-col a:hover {
    color: var(--primary-light);
}

.footer-col ul li {
    margin-bottom: 0.4rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================
   NOTIFICATIONS
============================ */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 99999;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification-success { background: #7ba05b; }
.notification-error   { background: #c17060; }

/* ============================
   RESPONSIVE - Diance Sections
   Approche fluide : les tailles de texte et marges
   s'adaptent automatiquement avec clamp()
   Les breakpoints ne font que les ajustements structurels
============================ */

/* Desktop (> 992px) — Position verticale des titres */
@media (min-width: 993px) {
    /* Rituel — négatif = monte, positif = descend */
    #rituel .produits_text h2 {
        margin-top: 0px !important;
    }

    /* Histoire */
    #histoire .produits_text h2,
    #histoire .histoire_text h2,
    #histoire .histoire_sec h2 {
        margin-top: 0px !important;
    }

    /* Contact */
    #contact-form .produits_text h2,
    #contact-form .mission_text h2 {
        margin-top: 0px !important;
    }
}
/* Tablette (769px - 992px) — Titres fluides */
@media (min-width: 769px) and (max-width: 992px) {
    #rituel .produits_text h2,
    #contact-form .produits_text h2,
    #rituel .mission_text h2,
    #contact-form .mission_text h2 {
        font-size: clamp(40px, 5vw, 80px) !important;
    }

    #histoire .produits_text h2,
    #histoire .histoire_text h2,
    #histoire .histoire_sec h2 {
        font-size: clamp(40px, 9vw, 80px) !important;
    }
}

.produits_text h3,
.mission_text h3 {
    font-size: 16px !important;
}

/* Sections : padding latéral fluide */
.produits_sec,
.histoire_sec,
.mission_sec {
    padding-left: clamp(0px, 8vw, 146px) !important;
    padding-right: clamp(0px, 8vw, 146px) !important;
}

/* Boîtes : padding et border-radius fluides */
.produits_text,
.histoire_text,
.mission_text {
    padding: clamp(20px, 2.5vw, 50px) !important;
    border-radius: clamp(20px, 3.5vw, 50px) !important;
}

/* Bannières : marges négatives fluides */
.prod_bg1 {
    margin-bottom: clamp(-273px, -18vw, -80px) !important;
}
.histoire_bg {
    margin-bottom: clamp(-170px, -12vw, -60px) !important;
}
.mission_bg {
    margin-bottom: clamp(-170px, -12vw, -60px) !important;
}

/* Ajustements spécifiques Rituel/Histoire/Contact */
#rituel .prod_bg1,
#contact-form .prod_bg1 {
    margin-bottom: clamp(-285px, -22vw, -80px) !important;
}
#histoire .histoire_bg {
    margin-bottom: clamp(-180px, -14vw, -60px) !important;
}

/* Points de vente : titre fluide */
#points-de-vente h1 {
    font-size: clamp(40px, 6vw, 80px) !important;
}
#points-de-vente .pdv-inner {
    padding: 0 clamp(0px, 8vw, 146px) !important;
}

/* ============================
   RESPONSIVE - Tablette (≤ 992px)
   Ajustements structurels seulement
============================ */
@media (max-width: 992px) {
    .nav-links { gap: 1.5rem; }
    .nav-links a { font-size: 0.8rem; }
    .hero-grid { min-height: 50vh; }
    .values-grid { gap: 2rem; }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem;
    }
}

/* ============================
   RESPONSIVE - Mobile (≤ 768px)
   Changements structurels majeurs
============================ */
@media (max-width: 768px) {
    .top-banner {
        font-size: 0.65rem;
        padding: 0.4rem 0.5rem;
    }

    .menu-toggle { display: block; }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        z-index: 10000;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    }

    .main-nav.open { left: 0; }

    .nav-links {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    .nav-links li { width: 100%; }

    .nav-links a {
        display: block;
        padding: 0.85rem 0;
        font-size: 0.95rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-close {
        display: block;
        text-align: right;
        margin-bottom: 1.5rem;
    }

    /* Hero : 1 seul panel sur mobile */
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        max-height: none;
    }

    .hero-panel { min-height: 250px; }

    .hero-panel:nth-child(1),
    .hero-panel:nth-child(3) { display: none; }

    .hero-panel--center { min-height: 55vh; }

    .hero-logo-img {
        max-width: 65% !important;
        max-height: 22% !important;
    }

    .values-grid { gap: 1.5rem; }
    .value-img { width: 100px; }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }

    .logo { min-width: auto; }
    .cart-icon { min-width: auto; }
    .container { padding: 0 1.25rem; }

    /* Cacher les bannières décoratives sur mobile */
    .diance-section-container .prod_bg1,
    .diance-section-container .histoire_bg,
    .diance-section-container .mission_bg { display: none !important; }

    /* Forcer padding 0 sur les sections */
    .produits_sec,
    .histoire_sec,
    .mission_sec {
        margin-top: 0px !important;
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    .histoire_bg {
        background: none !important;
        margin-top: 0px !important;
    }

    .mission_bg {
        background: none !important;
        padding-top: 40px !important;
        margin-bottom: 40px !important;
    }

    .prod_bg1 {
        margin-bottom: 0 !important;
    }

    /* Annuler les marges négatives des ajustements */
    #rituel .prod_bg1,
    #contact-form .prod_bg1,
    #histoire .histoire_bg {
        margin-bottom: 0 !important;
    }

    #rituel .produits_sec,
    #contact-form .produits_sec,
    #histoire .produits_sec,
    #histoire .histoire_sec {
        margin-top: 0 !important;
    }

    #points-de-vente .pdv-inner {
        padding: 0 !important;
    }
    #points-de-vente .pdv-address-block p {
        white-space: normal !important;
    }

    /* Sections Diance en pleine largeur */
    .diance-section-container .container {
        padding: 0 0.75rem !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ============================
   RESPONSIVE - Petit mobile
============================ */
@media (max-width: 480px) {
    .values-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .value-item { max-width: none; }

    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
    }

    .product-info { padding: 0.85rem; }
    .product-name { font-size: 0.95rem; }
    .product-desc { display: none; }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }

    .product-buttons { gap: 0.4rem; }
}

/* ============================
   UTILITAIRES
============================ */
.text-center { text-align: center; }
.hidden { display: none !important; }
.mt-3 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ============================
   CHECKOUT - FORMULAIRE
============================ */
.form-group {
    margin-bottom: 1.25rem;
    flex: 1;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
}

.form-row .form-group {
    flex: 1;
}

.form-label {
    display: block;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #231f20;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1cdc7;
    border-radius: 8px;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    color: #2D2B28;
    background: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #797362;
    box-shadow: 0 0 0 3px rgba(121, 115, 98, 0.15);
}

.form-input::placeholder {
    color: #b0aba4;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23797362' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Validation erreur checkout */
.form-input.field-error,
.form-select.field-error {
    border-color: #ef4444 !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 941px) {
    .logo-img {
        height: 40px;
    }
}
@media (max-width: 900px) {
    .logo-img {
        height: 35px;
    }
}
@media (max-width: 868px) {
    .logo-img {
        height: 28px;
    }
}
@media (max-width: 815px) {
    .logo-img {
        height: 24px;
    }
    .nav-links a {
        font-size: 0.7rem;
    }
}
/* ============================
   GRAND ÉCRAN (≥ 1420px)
   Correspondance avec diance.ca style8.css
============================ */
@media (min-width: 1420px) {
    .produits_text h2,
    .mission_text h2,
    .histoire_text h1,
    .histoire_sec h1 {
        font-size: 100px !important;
    }
    .histoire_text p,
    .produits_text p,
    .mission_text p {
        font-size: 19px !important;
        line-height: 28px !important;
    }
    .mission_text h3,
    .produits_text h3 {
        font-size: 21px !important;
    }
}

@media (min-width: 1600px) {
    .produits_text h2,
    .mission_text h2,
    .histoire_text h1,
    .histoire_sec h1 {
        font-size: 110px !important;
    }
    .histoire_text p,
    .produits_text p,
    .mission_text p {
        font-size: 20px !important;
        line-height: 28px !important;
    }
    .mission_text h3,
    .produits_text h3 {
        font-size: 22px !important;
    }
    .histoire_text {
        padding: 50px !important;
    }
}