/* ============================================================
   PANIER PERSONNALISABLE - Clean & Responsive
   (Base commune réutilisée par TOUS les gabarits visuels)
============================================================ */

/* Polices déjà chargées localement via assets/css/fonts.css, inclus dans
   le <head> de chaque page utilisant cette feuille (voir index.php et
   templates_produit/*.php). */

:root {
    --accent: #c2410c;
    --accent-light: #fef3e8;
    --accent-hover: #9a3412;
    --text-dark: #1a1a1a;
    --text-medium: #4a5568;
    --bg-white: #ffffff;
    --bg-beige: #f5f3f0;
    --border: #e2e8f0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Rythme d'animation partagé (site haut de gamme = retenue, pas de
       précipitation) — une seule courbe "signature" réutilisée partout. */
    --mc-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --mc-transition-fast: 0.25s var(--mc-ease);
    --mc-transition-smooth: 0.6s var(--mc-ease);
}

/* ── Skeleton de chargement (configurateur) ──────────────────────────────
   Les blocs data-role sont vides tant que produit-template.js n'a pas reçu
   sa réponse JSON — :empty fait disparaître le skeleton automatiquement dès
   que le JS y insère du contenu, sans aucune logique JS supplémentaire. */
[data-role]:empty {
    display: block;
    min-height: 120px;
    border-radius: 10px;
    background: linear-gradient(90deg, #f1f1ee 25%, #e9e7e2 37%, #f1f1ee 63%);
    background-size: 400% 100%;
    animation: mc-skeleton 1.6s ease-in-out infinite;
}
[data-role="galerie"]:empty { min-height: 420px; }
[data-role="quantite-prix-panier"]:empty { min-height: 56px; }

@keyframes mc-skeleton {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

@media (prefers-reduced-motion: reduce) {
    [data-role]:empty { animation: none; }
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
}

body.has-header { padding-top: 80px; }

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

h2, .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--text-dark);
    text-align: center;
}

.hero { position: relative; height: 450px; overflow: hidden; }
.hero-image, .hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-content {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-align: center; color: white; text-shadow: 0 2px 15px rgba(0,0,0,0.4);
    width: 90%; max-width: 700px; z-index: 2;
}
.hero h1 { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; margin-bottom: 15px; }
.hero-subtitle { font-size: 1.3rem; margin-bottom: 30px; opacity: 0.95; }
.btn-hero {
    display: inline-block; background: var(--accent); color: white; padding: 16px 40px;
    border-radius: 30px; text-decoration: none; font-weight: 600; font-size: 1.1rem;
    transition: all 0.3s; box-shadow: 0 4px 15px rgba(242, 125, 43, 0.3);
}
.btn-hero:hover { transform: scale(1.05); }

.section-cards, .section-feature, .why-choose-section, .section-perso { padding: 35px 0; }
.section-feature { background: var(--bg-beige); }
.why-choose-section { border-top: 1px solid var(--border); }
.section-perso { background: var(--bg-beige); }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card { background: var(--bg-beige); padding: 40px 30px; border-radius: 20px; text-align: center; transition: all 0.3s; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card-icon { height: 80px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 3rem; }
.card-icon img { width: 100px; height: 100px; object-fit: contain; }
.card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; }
.card p { color: var(--text-medium); font-size: 0.95rem; }

.feature-content { display: flex; align-items: center; gap: 60px; }
.feature-image { flex: 1; }
.feature-image img { width: 100%; border-radius: 30px; box-shadow: 20px 20px 60px rgba(0,0,0,0.08); }
.feature-text { flex: 1; }
.feature-text h2 { text-align: left; margin-bottom: 25px; font-size: 2.2rem; }
.feature-text p { font-size: 1.1rem; color: var(--text-medium); margin-bottom: 20px; line-height: 1.8; }

.why-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; }
.why-item { flex: 1 1 220px; max-width: 320px; background: var(--bg-beige); padding: 35px 25px; border-radius: 20px; text-align: center; transition: all 0.3s; }
.why-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.why-icon { font-size: 2.8rem; margin-bottom: 18px; }
.why-item h4 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.why-item p { font-size: 0.9rem; color: var(--text-medium); }

.perso-flex-container { display: flex; gap: 60px; align-items: flex-start; }
.perso-left-visual { flex: 1; position: sticky; top: 120px; }
.sticky-image-box {
    width: 100%; aspect-ratio: 1; background: var(--bg-white); border-radius: 24px;
    overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.sticky-image-box img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--mc-transition-smooth); }
.sticky-image-box:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
    .sticky-image-box img { transition: none; }
    .sticky-image-box:hover img { transform: none; }
}
.image-thumbnails { display: flex; gap: 12px; margin-top: 20px; justify-content: center; }
.combo-indispo {
    margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; font-size: .88rem; line-height: 1.4; text-align: center;
    background: rgba(128, 128, 128, .12); border: 1px dashed rgba(128, 128, 128, .45); color: inherit;
}
.combo-indispo[hidden] { display: none; }
.thumb {
    width: 75px; height: 75px; border-radius: 12px; cursor: pointer; opacity: 0.5;
    transition: all 0.3s; border: 3px solid transparent; object-fit: cover;
}
.thumb:hover { opacity: 0.8; }
.thumb.active { opacity: 1; border-color: var(--accent); transform: scale(1.05); }

.perso-right-selectors { flex: 1.2; }
.selector-block { margin-bottom: 50px; }
.selector-label { font-size: 1.3rem; font-weight: 600; margin-bottom: 20px; display: block; }
.required { color: #ef4444; font-size: 0.9rem; font-weight: 400; }
.selector-opt-label { font-weight: 400; font-size: 0.85em; color: var(--text-medium); }

.fabric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; }
.fabric-card {
    background: var(--bg-white); border: 2px solid transparent; border-radius: 16px;
    padding: 12px; text-align: center; cursor: pointer; transition: all 0.3s; position: relative;
}
.fabric-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.fabric-card.selected { border-color: var(--accent); background: var(--accent-light); }
.fabric-img { aspect-ratio: 1; border-radius: 12px; margin-bottom: 10px; overflow: hidden; background: var(--bg-beige); }
.fabric-img img { width: 100%; height: 100%; object-fit: cover; }
.no-fabric { background: #f1f5f9; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #64748b; }
.fabric-name { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.fabric-price { font-size: 0.85rem; color: var(--accent); font-weight: 600; }
.fabric-check {
    position: absolute; top: 10px; right: 10px; background: var(--accent); color: white;
    width: 26px; height: 26px; border-radius: 50%; display: none; align-items: center;
    justify-content: center; font-weight: bold; font-size: 0.9rem;
}
.fabric-card.selected .fabric-check { display: flex; }

.size-options, .color-options { display: flex; gap: 16px; }
.size-option, .color-option {
    flex: 1; padding: 22px 18px; border: 2px solid var(--border); border-radius: 16px;
    text-align: center; cursor: pointer; transition: all 0.3s; background: var(--bg-white);
}
.color-option { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.size-option input, .color-option input { display: none; }
.size-option:hover, .color-option:hover { border-color: var(--accent); }
.size-option.selected, .color-option.selected { border-color: var(--accent); background: var(--accent-light); }
.size-option span, .color-option span { font-weight: 600; font-size: 1.05rem; }
.size-option .size-price { display: block; font-weight: 700; font-size: 0.9rem; color: var(--accent); margin-top: 4px; }
.color-circle { width: 45px; height: 45px; border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }

.cart-section {
    padding: 30px 35px; background: var(--bg-white); border-radius: 24px; display: flex;
    align-items: center; justify-content: space-between; margin-top: 50px; box-shadow: var(--shadow);
}
.price-display { display: flex; flex-direction: row; align-items: center; gap: 8px; white-space: nowrap; }
.price-value { font-size: 2.8rem; font-weight: 800; color: var(--accent); line-height: 1; margin: 0; }
.price-currency { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); line-height: 1; display: inline-block; margin-top: 4px; }
.qty-selector { display: flex; align-items: center; gap: 15px; background: var(--bg-beige); padding: 4px 18px; border-radius: 30px; }
.qty-btn { min-width: 44px; min-height: 44px; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--accent); font-weight: 600; transition: all 0.3s; }
.qty-btn:hover { transform: scale(1.2); }
#qte {
    width: 45px; text-align: center; border: none; font-size: 1.3rem; font-weight: 700;
    background: transparent; -moz-appearance: textfield;
}
#qte::-webkit-outer-spin-button, #qte::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn-cart {
    background: var(--accent); color: white; padding: 15px 30px; border: none; border-radius: 30px;
    font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(242, 125, 43, 0.3); margin-left: 15px;
}
.btn-cart:hover { background: var(--accent-hover); transform: scale(1.05); }
.btn-cart:disabled { cursor: default; }
.btn-cart.btn-cart-succes { background: #2f9e5b; box-shadow: 0 4px 15px rgba(47, 158, 91, 0.35); animation: mc-btn-succes 0.4s var(--mc-ease); }
@keyframes mc-btn-succes { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
    .btn-cart.btn-cart-succes { animation: none; }
}

@media (max-width: 1200px) {
    .perso-flex-container { flex-direction: column; gap: 40px; }
    .perso-left-visual { position: relative; top: 0; max-width: 500px; margin: 0 auto; width: 100%; }
    .perso-right-selectors { width: 100%; }
}
@media (max-width: 1024px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-content { flex-direction: column; }
    .feature-text h2 { text-align: center; }
}
@media (max-width: 768px) {
    .container { padding: 20px 15px; }
    .section-cards, .section-feature, .why-choose-section, .section-perso { padding: 25px 0; }
    h2, .section-title { font-size: 2rem; margin-bottom: 30px; }
    .hero { height: 350px; }
    .hero h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .perso-flex-container { flex-direction: column; gap: 30px; }
    .perso-left-visual {
        position: sticky; top: 80px; z-index: 10; width: 100%; max-width: 100%;
        margin: 0; background: var(--bg-beige); padding-bottom: 15px;
    }
    .sticky-image-box { max-width: 280px; margin: 0 auto; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); position: relative; cursor: pointer; }
    .carousel-container { position: relative; width: 100%; overflow: hidden; border-radius: 24px; }
    .carousel-images { display: flex; transition: transform 0.3s ease; }
    .carousel-images img { width: 100%; flex-shrink: 0; object-fit: cover; }
    .carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
    .carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); cursor: pointer; transition: all 0.3s; }
    .carousel-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }
    .carousel-arrow {
        position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.9);
        border: none; width: 35px; height: 35px; border-radius: 50%; display: none; align-items: center;
        justify-content: center; cursor: pointer; z-index: 2; font-size: 1.2rem; color: var(--accent);
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    .carousel-arrow-left { left: 10px; }
    .carousel-arrow-right { right: 10px; }
    .sticky-image-box:hover .carousel-arrow { display: flex; }
    .image-thumbnails { display: none; }
    .perso-right-selectors { width: 100%; }
    .selector-block { margin-bottom: 35px; }
    .selector-label { font-size: 1.1rem; margin-bottom: 15px; }
    .cards-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .card { padding: 30px 20px; }
    .why-grid { gap: 15px; }
    .why-item { padding: 25px 15px; }
    .why-icon { font-size: 2.2rem; }
    .fabric-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .fabric-card { padding: 8px; }
    .fabric-name { font-size: 0.75rem; }
    .fabric-price { font-size: 0.7rem; }
    .fabric-check { width: 20px; height: 20px; font-size: 0.7rem; top: 6px; right: 6px; }
    .size-options, .color-options { flex-direction: column; gap: 12px; }
    .size-option, .color-option { width: 100%; padding: 18px; }
    .cart-section { flex-direction: column; gap: 25px; padding: 30px 20px; }
    .price-display { width: 100%; align-items: center; }
    .price-value { font-size: 2.5rem; }
    .qty-selector { width: 100%; max-width: 250px; justify-content: center; }
    .btn-cart { width: 100%; padding: 16px; font-size: 1rem; }
}
@media (max-width: 480px) {
    h2, .section-title { font-size: 1.6rem; }
    .fabric-grid { grid-template-columns: repeat(2, 1fr); }
}

.historique-actions { display: flex; justify-content: center; margin-top: 0px; margin-bottom: 40px; }
.btn-secondary {
    padding: 16px 40px; border-radius: 8px; font-weight: 600; font-size: 1.05rem;
    text-decoration: none; cursor: pointer; transition: var(--transition); letter-spacing: 0.3px;
    background: transparent; color: var(--text-dark); border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: var(--text-dark); background: var(--bg-light); }

.fabric-material { font-size: 0.7rem; color: #64748b; margin-top: 4px; line-height: 1.3; }
/* Pastille de certification (ex. Oeko-Tex) : reprend la couleur du thème via currentColor */
.fabric-certification {
    display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 3px 10px 3px 7px;
    border-radius: 999px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.4;
    color: #15803d;
    background: color-mix(in srgb, currentColor 11%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 28%, transparent);
}
.fabric-certification svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── Personnalisation (vinyle) ── */
.perso-toggle-row {
    display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 16px 20px;
    border: 2px solid var(--border); border-radius: 14px; background: var(--bg-white);
    font-weight: 700; font-size: 1rem; transition: var(--transition); width: fit-content;
}
.perso-toggle-row:hover { border-color: var(--accent); }
.perso-toggle-row input { width: 19px; height: 19px; accent-color: var(--accent); cursor: pointer; }
.perso-toggle-prix { font-weight: 600; color: var(--accent); font-size: 0.9rem; }

.perso-toggle-content {
    display: none; margin-top: 18px; padding: 22px 24px; border: 1px solid var(--border);
    border-radius: 18px; background: #fffdf9;
}
.perso-toggle-content.show { display: block; }
.perso-toggle-content .perso-style-grid,
.perso-toggle-content .perso-zone-card:first-of-type { margin-top: 0; }
.perso-souslabel { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.perso-style-grid { margin-bottom: 30px; }
.perso-style-demo { margin: -10px 0 30px; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-white); }
.perso-style-demo[hidden] { display: none; }
.perso-style-demo img { display: block; width: 100%; max-height: 420px; object-fit: contain; border-radius: 10px; background: #f8f5f0; }
.perso-style-demo figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.perso-style-demo-titre { font-size: 0.92rem; color: var(--text-main, inherit); }
.perso-style-demo-note { font-size: 0.8rem; font-style: italic; color: #64748b; line-height: 1.5; }
.perso-style-card .fabric-img { aspect-ratio: 16/9; background: #111; }
.perso-style-card .fabric-name { letter-spacing: 0.3px; }

.perso-zone-card {
    background: var(--bg-white); border: 1px solid var(--border); border-radius: 18px;
    padding: 20px 22px; margin-bottom: 18px;
}
.perso-zone-card.optionnelle { border-style: dashed; background: transparent; }
.perso-zone-head { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.perso-zone-aide { margin: -6px 0 14px; font-size: 0.92rem; line-height: 1.45; color: var(--text-medium); }
.perso-zone-tag { font-size: 0.8rem; font-weight: 500; color: var(--text-medium); }

.perso-options-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.perso-option-pill {
    padding: 12px 22px; border: 2px solid var(--border); border-radius: 30px; cursor: pointer;
    font-weight: 700; transition: var(--transition); background: var(--bg-white);
}
.perso-option-pill:hover { border-color: var(--accent); }
.perso-option-pill.selected { border-color: var(--accent); background: var(--accent-light); color: var(--accent-hover); }

/* Options additionnelles oui/non (extras, ex. lot de cotons) : mêmes pastilles que les choix de personnalisation */
.extra-pills-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cotons-pill {
    padding: 12px 22px; border: 2px solid var(--border); border-radius: 30px; cursor: pointer;
    font-weight: 700; transition: var(--transition); background: var(--bg-white); user-select: none;
}
.cotons-pill:hover { border-color: var(--accent); }
.cotons-pill.selected { border-color: var(--accent); background: var(--accent-light); color: var(--accent-hover); }
.extra-description { font-size: 0.82rem; color: #64748b; line-height: 1.5; margin: 10px 0 0; }

.perso-texte-toggle {
    display: flex; align-items: center; gap: 10px; cursor: pointer; margin-top: 18px; padding: 12px 16px;
    border: 2px dashed var(--border); border-radius: 14px; font-weight: 600; font-size: 0.95rem; transition: var(--transition);
}
.perso-texte-toggle:hover { border-color: var(--accent); }
.perso-texte-toggle input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.perso-texte-bloc { margin-top: 14px; }
.perso-texte-bloc[hidden] { display: none; }
.perso-texte-wrap { position: relative; margin-bottom: 18px; }
.perso-texte-input {
    width: 100%; padding: 14px 60px 14px 16px; border: 2px solid var(--border); border-radius: 14px;
    font-family: inherit; font-size: 1rem; transition: var(--transition);
}
.perso-texte-input:focus { border-color: var(--accent); }
.perso-char-count { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 0.75rem; color: #64748b; }

.perso-couleur-label { font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; }
.perso-couleur-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.perso-couleur-swatch {
    width: 38px; height: 38px; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 1px var(--border) inset;
    border: 3px solid transparent; transition: var(--transition);
}
.perso-couleur-swatch:hover { transform: scale(1.08); }
.perso-couleur-swatch.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--border) inset, 0 0 0 2px var(--bg-white), 0 0 0 4px var(--accent); }
.perso-couleur-nom { font-size: 0.85rem; color: var(--text-medium); }
.perso-couleur-nom strong { color: var(--text-dark); }

.perso-info-box {
    background: #f0f9f0; border: 1px solid #c8e6c9; border-radius: 14px; padding: 14px 18px;
    font-size: 0.85rem; color: #2e5c31; margin-top: 8px;
}

@media (max-width: 768px) {
    .perso-toggle-content { padding: 16px 16px; }
    .perso-zone-card { padding: 16px 18px; }
    .perso-couleur-swatch { width: 34px; height: 34px; }
    .perso-option-pill, .cotons-pill { padding: 10px 18px; font-size: 0.92rem; }
}

/* ────────────────────────────────────────
   RETOUR À LA BOUTIQUE — présent sur tous les gabarits thématiques
   (chacun avec son propre style) ; règle de base ici pour que
   standard.php, qui ne charge que ce fichier, l'affiche correctement.
──────────────────────────────────────── */
.back-section { text-align: center; padding: 44px 32px; background: var(--bg-white); border-top: 1px solid var(--border); }
.btn-back {
    display: inline-block; padding: 11px 28px; background: transparent; color: var(--text-medium);
    border: 1px solid var(--border); border-radius: 6px; font-size: 13px; text-decoration: none;
    transition: var(--transition);
}
.btn-back:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
/* ────────────────────────────────────────
   TABLETTE — commun à tous les gabarits produit.
   `body:not(.mc-sans-tablette)` : spécificité supérieure aux règles `.xxx-page …` des thèmes (et valable aussi
   pour le gabarit standard, dont le <body> n'a pas de classe), sans !important.
──────────────────────────────────────── */
@media (min-width: 601px) and (max-width: 1200px) {
    /* Configurateur : photo collante à gauche, choix à droite (au lieu d'une photo pleine largeur qui
       recouvre les sélecteurs pendant le défilement) */
    body:not(.mc-sans-tablette) .perso-flex-container { flex-direction: row; align-items: flex-start; gap: 28px; }
    body:not(.mc-sans-tablette) .perso-left-visual {
        flex: 0 0 38%; max-width: 38%; width: auto; margin: 0; padding-bottom: 0;
        position: sticky; top: 120px; z-index: 1; background: transparent;
    }
    body:not(.mc-sans-tablette) .perso-right-selectors { flex: 1 1 0; min-width: 0; width: auto; }
    body:not(.mc-sans-tablette) .sticky-image-box { max-width: 100%; margin: 0; }
    body:not(.mc-sans-tablette) .image-thumbnails { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
    body:not(.mc-sans-tablette) .thumb { width: 56px; height: 56px; }
}
@media (min-width: 601px) and (max-width: 960px) {
    /* Hero : on garde la photo du produit à côté du texte (les gabarits la masquaient sous 960px) */
    section[class^="hero-"] [class$="__inner"] { flex-direction: row; align-items: center; gap: 24px; }
    section[class^="hero-"] [class$="__content"] { flex: 1 1 0; min-width: 0; }
    section[class^="hero-"] [class$="__visual"] { display: block; flex: 0 0 clamp(220px, 38%, 300px); max-width: 300px; }
    section[class^="hero-"] [class$="__visual"] img { height: 380px; }
}

/* Mention « photos d'illustration » (articles de type Doublure : les photos montrent des paniers complets) */
.note-illustration {
    display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; padding: 10px 14px; border-radius: 10px;
    font-size: .85rem; line-height: 1.45; color: var(--text-medium, #475569);
    background: rgba(128, 128, 128, .1); border: 1px dashed rgba(128, 128, 128, .4);
}

/* ────────────────────────────────────────
   MOBILE — cartes « Le concept » : une colonne, numéro en pastille à gauche du texte
   (commun à tous les gabarits ; évite deux colonnes serrées avec une carte orpheline et le numéro
   qui chevauche le titre)
──────────────────────────────────────── */
@media (max-width: 600px) {
    body:not(.mc-sans-tablette) [class^="how-grid"] {
        display: grid; grid-template-columns: 1fr; gap: 12px; max-width: none; width: 100%;
    }
    body:not(.mc-sans-tablette) [class^="how-card"]:not([class*="__"]) {
        position: relative; width: 100%; max-width: 100%; padding: 18px 18px 18px 68px; text-align: left;
    }
    body:not(.mc-sans-tablette) [class^="how-card"]:not([class*="__"]) h3 { margin: 0 0 6px; padding-right: 0; font-size: 1.05rem; line-height: 1.3; }
    body:not(.mc-sans-tablette) [class^="how-card"]:not([class*="__"]) p { font-size: .9rem; line-height: 1.55; }
    body:not(.mc-sans-tablette) [class^="how-card"] [class*="__num"] {
        position: absolute; top: 18px; left: 18px; right: auto; transform: none;
        width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
        font-size: 1rem; font-weight: 700; line-height: 1; color: inherit; opacity: .85;
        background: rgba(128, 128, 128, .14); box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .3);
    }
    body:not(.mc-sans-tablette) [class^="how-card"] [class*="__icon"] { display: inline-block; margin: 0 0 6px; font-size: 1.3rem; }
    body:not(.mc-sans-tablette) .why-item { max-width: none; }
}

@media (max-width: 1100px) {
    .perso-left-visual { transition: opacity 0.35s ease, transform 0.35s ease; }
    .perso-left-visual.perso-sortie { opacity: 0; transform: translateY(-14px); }
    .perso-left-visual.perso-entree { opacity: 0; transform: translateY(-14px); transition: none; }
    .perso-left-visual.perso-libre { position: static !important; }
}
@media (max-width: 1100px) and (prefers-reduced-motion: reduce) {
    .perso-left-visual { transition: none; }
}
