/* ============================================================
   DIENCHANMULTIREFLEX.COM - Stylesheet principal
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: "Proza Libre", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #114663;
    background: #cddff7;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: #6b4c8a; text-decoration: none; transition: color .2s; }
a:hover { color: #4a2d6b; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.3; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- HEADER --- */
.site-header {
    background: #990033;
    color: #fff;
    padding: 0 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo {
    display: flex;
    flex-direction: row;
    align-items: end;
    gap: 10px;
    color: #fff;
}
@media (max-width: 600px) {
    .logo-icon {display: none;}
    .logo {margin-left:0;}
}
.logo-icon { width:70px; height:70px; object-fit: contain; flex-shrink: 0; }
.logo-texts { display: flex; flex-direction: column; }
.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1;
}
.logo-tagline {
    font-size: .7rem;
    opacity: .7;
    font-weight: 300;
    line-height: 1;
}
.main-nav ul { display: flex; gap: 24px; }
.main-nav a {
    color: rgba(255,255,255,.85);
    font-size: 0.8rem;
    font-weight: 500;
    transition: color .2s;
    border: 1px solid #c78099;
    border-radius: 6px;
    padding: 3px 5px;
    background: #8c4960;
    text-transform: uppercase;
}
.main-nav a:hover {
    color: #fff;
    background: #007abc;
    border: 1px solid #FFF;
}
.header-actions { display: flex; align-items: center; gap: 16px; }

/* Sélecteur devise */
.currency-selector select {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: .85rem;
    cursor: pointer;
}
.currency-selector select option { color: #333; background: #fff; }

/* Mini panier header */
.mini-cart-btn {
    background: none; border: none; color: #fff; cursor: pointer;
    position: relative; padding: 8px;
}
.cart-count {
    position: absolute; top: 0; right: 0;
    background: #e74c3c; color: #fff;
    font-size: .65rem; font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* --- HERO --- */
.hero {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    padding: 20px 20px 0 0;
    background-color: #ffffff9c;
    margin: 20px;
    border: 2px solid #FFF;
    border-radius: 10px;
}
.hero-img-col {
    flex-shrink: 0;
    align-self: flex-end;
    margin-left: -30px;
    line-height: 0;
    overflow-y: hidden;
    width: 250px;
}
.hero-img-col img {
    height: 215px;
    width: auto;
    display: block;
    filter: drop-shadow(0px 15px 10px rgba(0, 0, 0, 0.5));
    margin-left: 17px;
}
.hero-text-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 0 16px 12px;
    min-width: 0;
}
.hero-text-row { width: 100%; }
.hero h1 {
    font-size: 2.1rem;
    color: #331d35;
    margin: 0 0 5px 0;
    font-family: "Cormorant", serif;
    font-optical-sizing: auto;
    font-style: normal;
    line-height: 1.1;
    text-align: right;
}
.hero-btns-row { margin-top: auto; }

/* Modal intro */
.modal-intro-content {
    max-width: 640px;
}
.intro-block {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px dotted #cddff7;
}
.intro-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.intro-block-img {
    float: left;
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 14px 8px 0;
    border-radius: 50%;
    box-shadow: 0 0 7px 1px #0000004f;
}
.intro-block h3 {
    font-size: 1rem;
    color: #007abc;
    margin: 0 0 6px;
    font-weight: 700;
}
.intro-block-text {
    font-size: .9rem;
    color: #444;
    line-height: 1.6;
}
.intro-block-btn {
    margin-top: 10px;
    display: inline-block;
}
.intro-block-iframe {
    margin-top: 10px;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    clear: both;
}
.intro-block-iframe iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}
.intro-block-clear { clear: both; }

/* --- PAGE DEVIS --- */
.devis-page {
    background-color: #FFF;
    padding-bottom: 30px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 0 7px 4px #0000005c;
}
.devis-page h1 {
    color: #007abc;
    margin-bottom: 6px;
    border-top: 1px solid #990033;
}
.devis-intro {
    color: #000;
    margin-bottom: 20px;
}
.devis-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 36px;
    align-items: start;
}
.devis-form .form-group { margin-bottom: 16px; }
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
.form-row-2 .form-group { margin-bottom: 0; }
@media (max-width: 500px) {
    .form-row-2 { grid-template-columns: 1fr; }
}
.devis-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom:0; color: #331d35; }
.required { color: #c0392b; }
.devis-form input,
.devis-form select,
.devis-form textarea {
    width: 100%; padding: 10px 12px;
    border: 1.5px solid #ccc; border-radius: 8px;
    font-size: .95rem; box-sizing: border-box;
    transition: border-color .2s;
}
.devis-form input:focus,
.devis-form select:focus,
.devis-form textarea:focus { border-color: #331d35; outline: none; }
.devis-error {
    background: #fdf0f0; border: 1px solid #e74c3c;
    border-radius: 8px; padding: 10px 14px;
    color: #c0392b; font-size: .88rem; margin-bottom: 12px;
}
.devis-cart-col {
    background: #cddff7;
    border: 1.5px solid #007abc;
    border-radius: 12px;
    padding: 15px 0;
    position: sticky;
    top: 80px;
}
.devis-cart-col h3 {
    color: #331d35;
    margin: 0 0 14px;
    font-size: 1rem;
    border-bottom: 3px dotted #fff;
    padding: 0 0 0 20px;
}
.devis-cart-items {
    padding: 0 5px 5px 20px;
}
.devis-item-list { list-style: none; margin: 0; padding: 0; }
.devis-item-list li {
    padding: 5px 0;
    border-bottom: 1px dashed #fff;
    font-size: .9rem;
    color: #444;
}
.devis-item-list li:last-child { border-bottom: none; }
.devis-cart-empty { color: #999; font-size: .88rem; font-style: italic; }
@media (max-width: 700px) {
    .devis-layout { grid-template-columns: 1fr; }
    .devis-cart-col { position: static; }
}
.modal-devis-merci {
    height: 500px;
    padding: 30px !important;
    box-shadow: 0 0 46px 20px #fff;
}
.modal-devis-merci h2 {color: #64b164 !important;text-transform: uppercase;}
.modal-devis-merci p {margin-bottom: 20px;}
.modal-devis-merci .btn-primary {background:#72c572;color: #fff;}
.modal-devis-merci .btn-primary:hover {background:#c59172;color: #fff;}

.btn-devis { font-size: .85rem; padding: 10px; }
.modal-devis-merci img {
    width: auto;
    height: 300px;
    margin: auto;
}
.cgp-note-devis {
    font-size: .78rem;
    color: #e67e22;
    background: #fef9f0;
    border: 1px solid #f6d28d;
    border-radius: 6px;
    padding: 6px 10px;
    margin-top: 8px;
}

/* --- FILTRES --- */
.filters-section {
    margin-bottom: 40px;
}
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    padding: 20px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow:0 0 8px #000 inset;
}
.filter-search {
    flex: 1;
    min-width: 220px;
    position: relative;
}
.filter-search input {
    width:60%;
    padding: 10px 40px 10px 16px;
    border:1px solid #007abc;
    border-radius: 8px;
    font-size: .95rem;
    transition: border-color .2s;
}
.filter-search input:focus {
    outline: none;
    border-color: #6b4c8a;
}
.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .4;
}
.filter-group label {
    display: block;
    font-size: .75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #007abc;
    margin-bottom: 0;
    padding-left: 5px;
}
.anatomy-label {
    color: green !important;
}
.filter-buttons {
    display: flex;
    gap: 6px;
}
.filter-btn {
    padding: 8px 16px;
    background: #fff;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
}
.filter-btn[data-value="DC"] { border: 1px solid #990033; }
.filter-btn[data-value="DC"]:hover,
.filter-btn[data-value="DC"].active { background: #990033; color: #fff; }
.filter-btn[data-value="CB"] { border: 1px solid #c50f90; }
.filter-btn[data-value="CB"]:hover,
.filter-btn[data-value="CB"].active { background: #c50f90; color: #fff; }
/*.filter-btn:hover { border-color: #6b4c8a; color: #6b4c8a; }
.filter-btn.active {
    background: #6b4c8a;
    color: #fff;
    border-color: #6b4c8a;
}*/
.filter-group select {
    padding: 10px 14px;
    border: 2px solid #e0dde3;
    border-radius: 8px;
    font-size: .9rem;
    background: #fff;
    cursor: pointer;
    min-width: 180px;
}
.filter-group select:focus { outline: none; border-color: #6b4c8a; }

/* --- GRILLE SOINS --- */
.soins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    grid-gap: 24px; /* fallback Safari < 12 */
    gap: 24px;
    margin-bottom: 60px;
}
.soin-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.5);
    transition: transform .2s, box-shadow .2s;
    /* Safari fix : empêche le contenu de "sortir" du border-radius au hover */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    isolation: isolate;
}
.soin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.soin-card-link { display: block; color: inherit; }
/* Fallback pour Safari < iOS 15 qui ne supporte pas aspect-ratio */
.soin-card-image {
    position: relative;
    overflow: hidden;
    background: #eee;
    /* padding-bottom trick = ratio 4:3 */
    height: 0;
    padding-bottom: 75%;
}
/* Navigateurs modernes : on remplace le padding-bottom par aspect-ratio */
@supports (aspect-ratio: 4/3) {
    .soin-card-image {
        aspect-ratio: 4/3;
        height: auto;
        padding-bottom: 0;
    }
}
.soin-card-image img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.soin-card:hover .soin-card-image img { transform: scale(1.05); }
.soin-card-body {
    padding:20px 0 0 20px;
    display: flex;
    flex-direction: column;
    gap:5px;
}
.soin-card-top {
    display: flex;
    gap:10px;
    align-items: stretch;
}
.soin-card-texts {
    flex: 1;
    min-width: 0; /* évite débordement texte long */
}
.soin-card-cover {
    flex: 0 0 140px;
    width: 140px;
    align-self: flex-start;
    margin-top: -20px;
}
.soin-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.soin-discipline-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}
.badge-dc { background:#007abc4f; color:#007abc; }
.badge-cb {background: #c90f503b;color: #c90f50;}
.soin-card-body h2 {
    font-family: "Story Script", sans-serif;
  font-weight: 400;
  font-style: normal;
    font-size: 1.45rem;
    margin-bottom: 6px;
    color: #331d35;
}
.soin-partie {
    display: flex; align-items: center; gap: 4px;
    font-size: .8rem; color: #999; margin-bottom: 8px;
}
.soin-desc {
    font-size: .9rem;
    color: #666;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.soin-tools-count {
    font-size: .8rem;
    font-weight: 600;
    color: #6b4c8a;
}
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* --- SEO CONTENT --- */
.seo-content {
    padding:10px 0 0;
    max-width: 800px;
}
.seo-content h2 {
    font-size: 2rem;
    color: #990033;
    margin-bottom: 5px;
    font-family: "Story Script", sans-serif;
    font-weight: 400;
    font-style: normal;
}
.seo-content h3 { font-size: 1.2rem; color: #4a2d6b; margin: 24px 0 12px; }
.seo-content p {
    color: #000;
    margin-bottom: 10px;
}

/* --- PAGE SOIN DETAIL --- */
.soin-page {
    padding-top: 10px;
    background-color: #cddff7ab;
    border-left: 2px solid #FFF;
    border-right: 2px solid #FFF;
    border-bottom: 2px solid #FFF;
    border-radius: 0 0 5px 5px;
}
.breadcrumb {
    font-size: 0.9rem;
    color: #000;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    background-color: #fff;
    padding: 5px 4px;
    border-radius: 5px;
    line-height: 1;
}
.breadcrumb.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    margin: 5px;
    border-radius: 8px;
    padding: 7px 20px;
    animation: breadcrumbSlideIn .7s ease forwards;
    height: 70px;
    box-shadow: 3px 2px 4px #0d4461;
}
@keyframes breadcrumbSlideIn {
    from { opacity: 0; transform: translateY(-100%); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
    .breadcrumb.is-sticky {
        max-width: 290px;
        height: 56px;
    }
}
.breadcrumb a { color: #007abc; }
.breadcrumb .sep { color:#990033; }
.soin-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}
.soin-header { margin-bottom:15px; }
.soin-header h1 { font-size: 1.8rem; color: #331d35; margin: 8px 0; }
.soin-partie-corps {
    display: flex; align-items: center; gap: 6px;
    font-size: .9rem; color: #888; margin-bottom: 12px;
}
.soin-description { font-size: 1.05rem; color: #555; }

/* Outils cards */
/*.outils-section h2 { font-size: 1.3rem; color: #331d35; margin-bottom: 20px; }*/
.outil-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    margin-bottom: 16px;
    transition: box-shadow .2s;
}
.outil-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.outil-image {
    flex-shrink: 0;
    width: 160px;
    height: 170px;
    overflow: hidden;
}
.outil-image img { width: 100%; height: 100%; object-fit: cover; }
.outil-info { flex: 1; }
.outil-info h3 { font-size: 1rem; color: #331d35; margin-bottom: 8px; }
.outil-instruction { font-size: .85rem; color: #666; margin-bottom: 12px; }
.outil-actions { display: flex; align-items: center; gap: 16px; }
.outil-prix { font-size: 1.1rem; font-weight: 700; color: #331d35; }

/* Fascicule, vidéo, article */
.fascicule-section, .video-section, .article-section, .conseils-section, .faq-section {
    margin-top:15px;
}
.fascicule-section h2,
    .video-section h2,
    .article-section h2,
    .conseils-section h2,
    .faq-section h2,
    .outils-section h2 {
    font-size: 1.8rem; color: #990033;
    font-family: "Cormorant", serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}
.fascicule-card, .video-card {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 0 6px #00000091 inset;
}
.article-card {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    justify-content: space-between;
    box-shadow: 0 0 6px #00000091 inset;
}
.article-card a {
    position: relative;
    display: block;
}
.video-card-info {
    align-items: center;
    display: flex;
    gap: 20px;
}
.conseils-section p {
    background-color: #FFF;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 6px #00000091 inset;
}

.fascicule-cover img {box-shadow: 2px 2px 10px #000000b5;}
.fascicule-info h3 { font-size: 1rem; margin-bottom: 6px; }
.fascicule-meta { font-size: .8rem; color: #999; margin-top: 6px; }
.fascicule-actions { text-align: right; white-space: nowrap; }
.fascicule-prix { display: block; font-size: 1.1rem; font-weight: 700; color: #331d35; margin-bottom: 8px; }
.fascicule-rabais-info {
    display: inline-block;
    font-size: .75rem;
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 4px;
}

/* FAQ */
.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.faq-item summary {
    padding: 14px 18px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    color: #331d35;
}
.faq-item p {
    padding: 0 18px 14px;
    font-size: .9rem;
    color: #666;
}

/* --- Boutons --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
}
.btn-primary {
    background:#007abc;
    color: #fff;
}
.btn-primary:hover { background:#22753f; }
.btn-secondary {
    background:#aec8ec;
    color:#706763;
}
.btn-secondary:hover { background:#dfa6a0; }
.btn-add-cart {
    background:#007abc;
    color: #fff;
    padding: 8px 16px;
    font-size: .85rem;
}
.btn-add-cart:hover { background:#27ae60; }
.btn-add-cart:disabled {
    background: #ccc; cursor: not-allowed;
}
.btn-add-cart.added {
    background: #27ae60;
}

/* Boutons intro hero */
.hero-intro-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 18px;
}
.btn-intro {
    background: #FFF;
    border: 1.5px solid #007abc;
    color: #007abc;
    text-shadow: 1px 1px #FFF;
    padding: 8px 20px;
    font-size: .95rem;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.btn-intro:hover {
    background: #007abc;
    color: #fff;
    text-shadow: none;
}

/* --- PANIER LATERAL (sidebar) --- */
.cart-sidebar {
    position: relative;
}
.cart-sticky {
    position: sticky;
    top: 90px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    padding: 24px;
}
.cart-title {
    font-size: 1.1rem;
    color: #007abc;
    padding-bottom: 0;
    border-bottom: 2px solid #007abc;
    text-transform: uppercase;
}

/* Cart items */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:5px 0;
    border-bottom:0px solid #007abc61;
    transition: all .3s;
}
.cart-item-inactive {
    opacity: .5;
}
.cart-items-separator {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #999;
    border-top: 1px dashed #e0dde3;
    padding-top: 8px;
    margin-top: 4px;
}
.cart-item-other .cart-item-name {
    font-style: italic;
    font-size: .8rem;
}
.cart-item-active {
    opacity: 1;
}
.cart-item-info { flex: 1; }
.cart-item-name {
    display: block;
    font-size: .82rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 5px;
    float: left;
}
.cart-item-prix {
    font-size: .85rem;
    font-weight: 600;
    color: #999;
    transition: color .3s;
    float: right;
}
.cart-item-active .cart-item-prix {
    color: #331d35;
}
.cart-item-rabais-alert {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    width: 18px; height: 18px;
    border-radius: 50%;
    text-align: center;
    font-size: .75rem;
    font-weight: 700;
    line-height: 18px;
    margin-left: 6px;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}
.cart-item-offert {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    color: #27ae60;
    margin-left: 6px;
}
.cart-item-toggle {
    background: none;
    border: 2px solid #246c0a;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    font-size: 1.4rem;
    color: #246c0a;
    transition: all .2s;
    flex-shrink: 0;
    margin-left: 10px;
    font-weight: bold;
    visibility: visible;
    opacity: 1;
}
.cart-item-toggle:hover {
    background: #218250;
    color: #fff;
    border-color: #1a7002;
}
.cart-item-active .cart-item-toggle { background: #e74c3c; color: #fff; border-color: #e74c3c; }

/* Cart total */
.cart-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top:1px solid #007abc;
}
.cart-total-line {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    padding: 4px 0;
    color: #666;
}
.cart-total-final {
    font-size: 1.1rem;
    font-weight: 700;
    color: #331d35;
    padding-top: 8px;
    margin-top: 8px;
    border-top:1px solid #007abc45;
}

/* Shipping & Promo sections */
.cart-shipping-section, .cart-promo-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0eef2;
}
.cart-shipping-section h4, .cart-promo-section h4 {
    font-size: .85rem;
    color: #331d35;
    margin-bottom: 10px;
}
.form-group { margin-bottom: 10px; }
.form-group label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 4px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e0dde3;
    border-radius: 6px;
    font-size: .85rem;
    font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #6b4c8a;
}
.promo-input-group {
    display: flex;
    gap: 8px;
}
.promo-input-group input { flex: 1; }
.btn-promo-apply {
    padding: 8px 14px;
    background: #6b4c8a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}
#promo-message {
    font-size: .8rem;
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 6px;
}
#promo-message.success { background: #e8f8e8; color: #27ae60; }
#promo-message.error { background: #fde8e8; color: #e74c3c; }
#promo-active {
    font-size: .8rem;
    color: #27ae60;
    font-weight: 600;
    margin-top: 6px;
}

/* Bouton pleine largeur */
.btn-full {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: .95rem;
}

/* Cart actions */
.cart-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.btn-paypal {
    background: #0070ba;
    color: #fff;
    font-size: 1rem;
    padding: 14px;
}
.btn-paypal:hover { background: #005ea6; }

.cart-poids-info {
    margin-top: 10px;
    font-size: .75rem;
    color: #999;
    text-align: center;
}

/* --- MODALS --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-content {
    background: #fff;
    border-radius: 16px;
    padding:15px;
    max-width:925px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 10;
    background: #fff;
    border: 1px solid;
    font-size: 1.8rem;
    cursor: pointer;
    color: #903;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 0;
    flex-shrink: 0;
    margin-left: 5px;
}
.modal-content h2 { font-size: 1.3rem; color:#990033; margin-bottom: 12px; }

/* --- MODAL MONDIAL RELAY --- */
.mr-modal-overlay { z-index: 1100; } /* au-dessus du panneau panier (z-index:1001) */
.mr-modal-content { max-width: 70%; padding: 24px; }
.mr-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.mr-modal-header h2 { margin-bottom: 0; }
#Zone_Widget {
    min-height: 400px;
    height: 40vh;
}
.mr-modal-footer {
    margin-top: 16px;
    border-top: 1px solid #e0dde3;
    padding-top: 14px;
    display: flex; flex-direction: column; gap: 12px;
}
.mr-selected-info {
    background: #eaf4ec;
    border: 1px solid #27ae60;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .85rem;
    color: #1a7a3f;
    line-height: 1.5;
}
.mr-modal-btns { display: flex; gap: 10px; justify-content: flex-end; }

/* Info point relais choisi dans le panier */
.cgp-relay-info {
    background: #eaf4ec;
    border: 1px solid #27ae60;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: .8rem;
    color: #1a7a3f;
    line-height: 1.5;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cgp-relay-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
.cgp-relay-address {
    flex: 1;
    min-width: 0;
}
.cgp-relay-logo {
    flex-shrink: 0;
    width: 70px;
    height: auto;
    object-fit: contain;
}
.cgp-relay-change {
    background: #f1cb2f66;
    border: 1px solid #1c7b41;
    color: #96144a;
    font-size: .75rem;
    border-radius: 4px;
    cursor: pointer;
    padding: 4px 8px;
    width: 100%;
    text-align: center;
}
.cgp-relay-warning {
    margin-top: 6px;
    color: #e74c3c;
    font-size: .8rem;
    font-weight: 600;
}
.modal-info { font-size: .9rem; color: #666; margin-bottom: 20px; line-height: 1.5; }
.modal-merci { text-align: center; }
.modal-merci h2 { color: #27ae60; }
.modal-merci p { color: #555; margin-bottom: 16px; }

/* --- FOOTER --- */
.site-footer {
    background:#7d012a;
    color: rgba(255,255,255,.8);
    padding:30px 0 20px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}
.footer-col h4 {
    color: #fff;
    font-size: .9rem;
    margin-bottom: 12px;
}
.footer-col p { font-size: .85rem; line-height: 1.6; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .85rem; }
.footer-col a:hover { color: #fff; }
.footer-small { font-size: .75rem; opacity: .6; margin-top: 8px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    padding-top: 16px;
    text-align: center;
    font-size: .8rem;
    opacity: .6;
}
.footer-language-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}
.footer-language-bar span {
    color: rgba(255,255,255,.8);
    font-size: .85rem;
    font-weight: 600;
}
.footer-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: rgba(255,255,255,.05);
    transition: border-color .2s, transform .2s;
}
.footer-flag.active {
    border: 1px dotted #FFF;
    border-radius:5px;
}
.footer-flag:hover {
    transform: translateY(-4px);
}
.footer-flag img {
    display: block;
    width: 30px;
    height: auto;
}
.footer-help-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.footer-link-button {
    background: none;
    border: none;
    color: rgba(255,255,255,.8);
    text-align: left;
    padding: 0;
    cursor: pointer;
    font: inherit;
    font-size: .85rem;
    line-height: 1;
}
.footer-link-button:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-help-empty {
    font-size: .85rem;
    color: rgba(255,255,255,.7);
    line-height: 1.6;
}
.modal-content .footer-modal-block {
    margin-top: 24px;
    border-top: 1px solid rgba(0,0,0,.08);
    padding-top: 18px;
}
.modal-content .footer-modal-block h3 {
    font-size: 1rem;
    color: #007abd;
}
.modal-content .footer-modal-block p {
    margin: 0 0 10px;
    color: #555;
    line-height: 1.6;
}
.modal-content .footer-modal-block a {
    color: #990033;
    text-decoration: none;
    border: 1px solid #007abc;
    padding: 5px;
    border-radius: 5px;
}
.modal-content .footer-modal-block a:hover {
    background: #cddff7;
}

/* --- RESPONSIVE TABLET (601px – 1023px)
       iPad portrait : 768px  → 2 colonnes
       iPad landscape: 1024px → grille auto-fill (desktop)
   ----------------------------------------------------------- */
@media (min-width: 601px) and (max-width: 1023px) {
    .logo {margin-left: -20px;}
    .soins-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 16px;
        gap: 16px;
    }
    .soin-layout {
        grid-template-columns: 1fr;
    }
    .cart-sticky {
        position: relative;
        top: 0;
    }
    .filters-bar {
        flex-direction:initial;
    }
    .outil-card {
        flex-direction:inherit;
    }
    .outil-image {
        width:30%;
        height: 180px;
    }
    .fascicule-card {
        flex-direction: column;
        text-align: center;
    }
}

/* --- RESPONSIVE MOBILE (max 600px) --- */
@media (max-width: 600px) {
    .soins-grid {
        grid-template-columns: 1fr;
    }
    .soin-layout {
        grid-template-columns: 1fr;
    }
    .cart-sticky {
        position: relative;
        top: 0;
    }
    .filters-bar {
        flex-direction:initial;
    }
    .outil-card {
        flex-direction: column;
    }
    .outil-image {
        width: 100%;
        height: 180px;
        text-align: center;
    }
    .outil-image img {
        width: 80%;
        height: 100%;
        object-fit: cover;
        display: initial;
    }
    .fascicule-card {flex-direction: column;}
    .site-header .container { height: 56px; }
    .logo-text { font-size: 1rem; }
    .main-nav { display: none; }
    .hero {
        display: block;
        padding: 10px 10px 15px;
        width: 90vw;
        margin: 5px 0;
        overflow: hidden;
    }
    .hero-img-col {
        float: left;
        margin: 0 10px 0 -10px;
        align-self: unset;
    }
    .hero-img-col img { height: 130px; }
    .hero-text-col {
        display: block;
        padding: 4px 0 0 0;
    }
    .hero h1 {
        font-size: 1.4rem;
        text-align: left;
    }
    .hero-subtitle { font-size: .95rem; }
    .hero-intro-btns { justify-content: flex-start; margin-top: 10px; }
    .hero-btns-row::before { content: ''; display: block; clear: both; }
}

/* ============================================================
   FASCICULE – classes de rabais (assignées par cart.js)
   ============================================================ */
.fascicule-prix-offert {
    color: #27ae60;
}
.fascicule-prix-reduit {
    color: #e74c3c;
}

/* ============================================================
   PANNEAU PANIER GLOBAL (slide-in depuis la droite)
   Présent sur toutes les pages via footer.php
   ============================================================ */
.cart-global-panel {
    position: fixed;
    top: 0; right: 0;
    width: 380px; max-width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow: -4px 0 24px rgba(0,0,0,.15);
    overflow: hidden;
}
.cart-global-panel.cart-panel-open {
    transform: translateX(0);
}
.cart-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
.cart-panel-overlay.cart-panel-open {
    opacity: 1;
    pointer-events: auto;
}

/* En-tête panneau */
.cgp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 2px solid #f0eef2;
    flex-shrink: 0;
}
.cgp-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cgp-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #331d35;
    margin: 0;
}
.cgp-title-count {
    font-size: .8rem;
    font-weight: 400;
    color: #007abc;
}
.cgp-btn-clear {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid #e0dde3;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: .78rem;
    color: #888;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}
.cgp-btn-clear:hover { color: #e74c3c; border-color: #e74c3c; }
.cgp-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0 4px;
    transition: color .2s;
}
.cgp-close:hover { color: #331d35; }

/* Liste des articles */
.cgp-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
}
.cgp-empty {
    color: #aaa;
    font-size: .9rem;
    text-align: center;
    padding: 32px 0;
}
.cgp-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f3f7;
}
.cgp-item-ebook { background: #faf8fc; border-radius: 6px; padding: 10px 8px; }
.cgp-item-name {
    flex: 1;
    font-size: .83rem;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
}
.cgp-item-prix {
    font-size: .85rem;
    font-weight: 700;
    color: #331d35;
    white-space: nowrap;
}
.cgp-offert {
    font-size: .8rem;
    font-weight: 700;
    color: #27ae60;
}
.cgp-rabais {
    font-size: .72rem;
    font-weight: 700;
    color: #fff;
    background: #e74c3c;
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 4px;
}
.cgp-remove {
    background: none;
    border: 1px solid #e0dde3;
    border-radius: 50%;
    width: 24px; height: 24px;
    line-height: 22px;
    text-align: center;
    font-size: .9rem;
    color: #aaa;
    cursor: pointer;
    flex-shrink: 0;
    transition: color .2s, border-color .2s;
}
.cgp-remove:hover { color: #e74c3c; border-color: #e74c3c; }

/* Pied de panneau */
.cgp-footer {
    padding: 16px 20px;
    border-top: 2px solid #f0eef2;
    flex-shrink: 0;
}
.cgp-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .95rem;
    margin-bottom: 8px;
}
.cgp-note {
    font-size: .75rem;
    color: #aaa;
    text-align: center;
    margin-top: 6px;
}

/* Sections livraison & promo dans le panneau */
.cgp-section {
    padding: 12px 20px;
    border-top: 1px solid #f0eef2;
    flex-shrink: 0;
}
.cgp-section-title {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #888;
    margin-bottom: 8px;
}
.cgp-section .form-group {
    margin-bottom: 8px;
}
.cgp-section label {
    display: block;
    font-size: .78rem;
    color: #555;
    margin-bottom: 3px;
}
.cgp-section select,
.cgp-section input[type="text"] {
    width: 100%;
    padding: 6px 8px;
    font-size: .85rem;
    border: 1px solid #d8d4db;
    border-radius: 6px;
    background: #fff;
}
.cgp-section select:focus,
.cgp-section input[type="text"]:focus {
    outline: none;
    border-color: #8b5cf6;
}

/* Radio transporteurs */
@keyframes cgpEmerge {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
#cgp-transporteur-group {
    border: 1px solid #990033;
    border-radius: 5px;
    padding: 5px 0 5px 5px;
    background: #cddff7;
}
#cgp-transporteur-group.cgp-tr-visible {
    animation:cgpEmerge .85s cubic-bezier(.77,0,.18,1) forwards;
}
.transport-label {
    color: #903 !important;
    text-transform: uppercase;
}
.cgp-tr-option {
    display: flex !important;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 8px;
    border-bottom: 1px solid #fff;
    color: #000 !important;
    margin-bottom: 10px !important;
    cursor: pointer;
    line-height: 1.35;
    font-weight: normal !important;
}
.cgp-tr-option span {
    flex: 1;
}
/* Reset des styles .form-group input qui écrasent le radio button (Safari surtout) */
.cgp-tr-option input[type="radio"] {
    flex: 0 0 auto;
    width: auto !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: radio;
    appearance: radio;
    margin-top: 3px;
    cursor: pointer;
}

/* Promo input group */
.cgp-promo-input-group {
    display: flex;
    gap: 6px;
}
.cgp-promo-input-group input {
    flex: 1;
    min-width: 0;
}
.cgp-promo-input-group button {
    padding: 6px 12px;
    font-size: .8rem;
    font-weight: 600;
    background: #8b5cf6;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
.cgp-promo-input-group button:hover { background: #7c3aed; }

/* Total final (ligne en gras) */
.cgp-total-final {
    border-top: 1px solid #e8e4ed;
    padding-top: 8px;
    margin-top: 4px;
    font-weight: 700;
    font-size: 1.05rem;
    color: #331d35;
}

/* Zone boutons de paiement */
.cgp-payment-buttons {
    margin-top: 14px;
}
.cgp-btn-devis {
    width: 100%;
    margin-top: 8px;
    font-size: .88rem;
}

/* ============================================================
   ANATOMY PICKER - bouton déclencheur
   ============================================================ */
.anatomy-picker-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-anatomy-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 2px solid #c4e5c4;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: .9rem;
    color: #1b7d21;
    cursor: pointer;
    flex: 1;
    text-align: left;
    transition: border-color .2s, background .2s;
    min-width: 0;
}
.btn-anatomy-picker:hover {
    border-color: #0ad20a;
    background: #c4e5c4;
}
.btn-anatomy-picker.has-value {
    border-color: #3c7919;
    background: #c4e5c4;
    color: #20490d;
    font-weight: 500;
}
.btn-anatomy-picker span:not(.btn-anatomy-picker-arrow) {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.btn-anatomy-picker-arrow {
    flex-shrink: 0;
    color: #aaa;
    font-size: .75rem;
}
.btn-anatomy-reset {
    flex-shrink: 0;
    background: none;
    border: 1.5px solid #d0c4d6;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #888;
    font-size: 1rem;
    line-height: 1;
    transition: background .2s, color .2s, border-color .2s;
}
.btn-anatomy-reset:hover {
    background: #fff0f0;
    color: #c0392b;
    border-color: #e74c3c;
}

/* ============================================================
   ANATOMY MODAL
   ============================================================ */
.modal-anatomy-content {
    max-width:450px;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    max-height: 88vh;
    overflow: hidden;
    background-color: #c4e5c4;
}
.modal-anatomy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding:5px 20px 5px;
    border-bottom:1px solid #a3aba3;
    flex-shrink: 0;
}
.modal-anatomy-header h2 {
    color: #3e8035;
    margin: 0;
    font-size:2rem;
    letter-spacing: -1px;
    font-family: "Story Script", sans-serif;
    font-weight: 400;
    font-style: normal;
}
.anatomy-breadcrumb {
    padding: 0 16px;
    background: #f7f5fa;
    border-bottom: 1px solid #ede8f2;
    min-height: 0;
    flex-shrink: 0;
    overflow: hidden;
    transition: min-height .2s;
}
.anatomy-breadcrumb:not(:empty) {
    min-height: 42px;
    display: flex;
    align-items: center;
}
.anatomy-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: #396a22;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 4px;
    border-radius: 4px;
    transition: color .25s;
}
.anatomy-back-btn:hover {
    color: #4a2d6b;
    text-decoration: underline;
}
.anatomy-column-viewport {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
.anatomy-column {
    list-style: none;
    padding: 6px 0;
    margin: 0;
}
@keyframes anatSlideRight {
    from { transform: translateX(32px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes anatSlideLeft {
    from { transform: translateX(-32px); opacity: 0; }
    to   { transform: translateX(0);     opacity: 1; }
}
.anatomy-column.anim-right { animation: anatSlideRight .18s ease forwards; }
.anatomy-column.anim-left  { animation: anatSlideLeft  .18s ease forwards; }
.anatomy-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    cursor: pointer;
    transition: background .12s;
    border-bottom: 1px solid #4b8407;
    font-size: .92rem;
    color:#082311;
    gap: 8px;
    text-transform: uppercase;
}
.anatomy-item:last-child { border-bottom: none; }
.anatomy-item:hover {
    background: #396a22;
    color: #FFF;
}
.anatomy-item.active {
    background: #ede5f5;
    color: #331d35;
    font-weight: 500;
}
.anatomy-item-name { flex: 1; }
.anatomy-item-arrow {
    flex-shrink: 0;
    font-size: 1.6rem;
    color: #06770d;
    line-height: 1;
}
.anatomy-item.active .anatomy-item-arrow { color: #6b4c8a; }
.modal-anatomy-footer {
    border-top: 3px solid #FFF;
    padding: 12px 16px;
    flex-shrink: 0;
    background-color: #FFF;
}
.anatomy-selection-display {
    font-size: 1.3rem;
    color: #0d7539;
    font-weight: 500;
    margin-bottom: 10px;
    padding: 6px 10px;
    background: #FFF;
    border-radius: 6px;
    border: 1px solid #0d7539;
}
.modal-anatomy-btns {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.modal-anatomy-btns .btn {
    min-width: 90px;
}
