@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
}

/* Boutons et champs : même police que le reste de la page (Safari et Chrome n'appliquent pas les mêmes réglages par défaut).
   Seule la famille est héritée : « font: inherit » en entier changerait aussi la taille et la hauteur de ligne des champs et agrandirait les formulaires.
   :where() garde une priorité nulle : toute règle de classe plus bas garde la main. */
:where(button, input, select, textarea) {
    font-family: inherit;
}

:root {
    --color-bg: #FAFAF7;
    --color-surface: #FFFFFF;
    --color-text: #17191C;
    --color-nav-bg: #17191C;
    --color-accent: #C9542C;
    --color-accent-hover: #A8431F;
    --color-muted: #6B6B6B;
    --color-border: #E8E6E1;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 8px;
    --shadow-card: 0 6px 20px rgba(23, 25, 28, 0.12), 0 2px 6px rgba(23, 25, 28, 0.10);
    --shadow-card-hover: 0 20px 40px rgba(23, 25, 28, 0.18), 0 6px 12px rgba(23, 25, 28, 0.12);
    --shadow-header: 0 12px 32px rgba(23, 25, 28, 0.18), 0 3px 8px rgba(23, 25, 28, 0.10);
    --shadow-hero-card: 0 30px 60px rgba(23, 25, 28, 0.2), 0 10px 20px rgba(23, 25, 28, 0.12);
    --shadow-icon: 0 6px 14px rgba(23, 25, 28, 0.25);
    --shadow-btn: 0 8px 22px rgba(201, 84, 44, 0.35), 0 2px 6px rgba(201, 84, 44, 0.25);
    --shadow-btn-hover: 0 14px 30px rgba(201, 84, 44, 0.4), 0 4px 10px rgba(201, 84, 44, 0.3);
    /* Fixe (non lié à l'accent personnalisable) : une réduction doit rester visuellement
       distincte du prix normal, déjà affiché en --color-accent, quelle que soit la couleur
       de marque choisie par le client. */
    --color-discount: #D6293E;
    --font-heading: 'IBM Plex Sans', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
}

/* Ombres et couleur de survol teintées d'accent : recalculées dynamiquement à partir de
   --color-accent quand le navigateur supporte color-mix() (~93% du parc, tous évergreens
   depuis mi-2023). Sinon, replis statiques ci-dessus cohérents avec l'accent par défaut —
   dans ce cas les ombres ne suivent pas un changement de couleur d'accent personnalisée. */
@supports (color: color-mix(in srgb, red, blue)) {
    :root {
        --color-accent-hover: color-mix(in srgb, var(--color-accent) 82%, black);
        --shadow-btn: 0 8px 22px color-mix(in srgb, var(--color-accent) 35%, transparent), 0 2px 6px color-mix(in srgb, var(--color-accent) 25%, transparent);
        --shadow-btn-hover: 0 14px 30px color-mix(in srgb, var(--color-accent) 40%, transparent), 0 4px 10px color-mix(in srgb, var(--color-accent) 30%, transparent);
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
}

/* Header */

.header-wrap {
    padding: 24px 20px 0;
}

.site-header {
    background: var(--color-nav-bg);
    color: #fff;
    padding: 16px 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-header);
    max-width: 1100px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 19px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.logo-bar {
    width: 4px;
    height: 20px;
    background: var(--color-accent);
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
}

/* Logo client (optionnel, réglable indépendamment du nom du site ci-dessus) : n'existe
   dans le HTML que si activé et uploadé, donc aucun changement pour le header par défaut. */
.site-header--with-logo {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.site-header--with-logo .logo {
    justify-self: start;
}

.site-header--with-logo .site-header__nav {
    justify-self: end;
}

.site-header__logo-link {
    justify-self: center;
    display: block;
    line-height: 0;
}

.site-header__logo {
    max-height: 44px;
    width: auto;
    display: block;
}

.site-header__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.site-header__nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
}

.site-header__nav a:hover {
    opacity: 1;
}

.site-header__cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.site-header__cart-count {
    background: var(--color-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Main */

.site-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero */

.hero {
    position: relative;
    text-align: center;
    padding: 100px 20px 60px;
    overflow: visible;
}

.hero--has-bg {
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Voile obligatoire : garantit la lisibilité du texte quelle que soit la photo choisie
   par le client, en la ramenant vers la teinte de fond du thème (mode clair ou sombre). */
.hero-bg__overlay {
    position: absolute;
    inset: 0;
    background: var(--color-bg);
    opacity: 0.78;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-shape.s1 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle at 30% 30%, var(--color-accent), transparent 70%);
    opacity: 0.15;
    top: -40px;
    right: 20px;
}

.hero-shape.s2 {
    width: 140px;
    height: 140px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.08;
    bottom: 10px;
    left: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    display: block;
    max-height: 192px;
    width: auto;
    margin: 0 auto 20px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 46px;
    font-weight: 700;
    max-width: 680px;
    margin: 0 auto 18px;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.hero p {
    color: var(--color-muted);
    font-size: 17px;
    max-width: 480px;
    margin: 0 auto 34px;
}

.btn {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    padding: 15px 34px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    box-shadow: var(--shadow-btn);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-btn-hover);
}

/* Carte flottante du hero (perspective 3D légère, décorative) */

.hero-visual {
    position: relative;
    z-index: 1;
    margin: 50px auto 0;
    max-width: 640px;
    perspective: 1200px;
}

.hero-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hero-card);
    border: 1px solid var(--color-border);
    padding: 28px;
    transform: rotateX(6deg) rotateY(-4deg);
    transform-style: preserve-3d;
    transition: transform 0.4s ease;
}

.hero-visual:hover .hero-card {
    transform: rotateX(0deg) rotateY(0deg);
}

.hero-card-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

.hero-card-row .feature-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.hero-stat-text {
    flex: 1;
    text-align: left;
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 28px;
    line-height: 1.15;
}

.hero-stat-label {
    color: var(--color-muted);
    font-size: 13px;
    margin-top: 2px;
}

/* Le survol n'existe pas au tactile : la carte reste à plat par défaut sur ces appareils
   plutôt que de rester figée dans son inclinaison sans jamais pouvoir se redresser. */
@media (hover: none) {
    .hero-card {
        transform: none;
    }
}

/* Séparateur (losange) */

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1100px;
    margin: 70px auto 50px;
    padding: 0 20px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.divider-mark {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* Blocs "texte_icone" en grille, avec tilt au survol */

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    padding: 20px 0 60px;
    perspective: 1000px;
}

.feature {
    background: var(--color-surface);
    padding: 30px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
    transform: translateY(-6px) rotateX(4deg);
    box-shadow: var(--shadow-card-hover);
}

.feature-icon {
    width: 42px;
    height: 42px;
    background: var(--color-text);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #fff;
    box-shadow: var(--shadow-icon);
}

.feature-icon svg {
    width: 20px;
    height: 20px;
}

.feature h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
}

.feature p {
    color: var(--color-muted);
    font-size: 14px;
    margin: 0;
}

/* Blocs génériques (texte libre, galerie, produits) */

.block {
    padding: 20px 0 60px;
}

.block-inner {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    padding: 40px 32px;
    text-align: center;
}

.block-inner h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.block-inner h2::before {
    content: '';
    width: 4px;
    height: 26px;
    background: var(--color-accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.block-inner p {
    color: var(--color-muted);
    font-size: 15px;
    max-width: 640px;
    margin: 0 auto;
}

.block-intro {
    margin-bottom: 24px !important;
}

.placeholder-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 0 0 20px;
}

.placeholder-grid--products {
    grid-template-columns: repeat(4, 1fr);
}

.placeholder-tile {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-border), #f2f1ec);
}

.placeholder-tile--product {
    aspect-ratio: 3 / 4;
}

.placeholder-note {
    color: var(--color-muted);
    font-size: 13px;
    font-style: italic;
}

/* Footer */

.footer-wrap {
    padding: 0 20px 30px;
}

.site-footer {
    background: var(--color-nav-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px;
    text-align: center;
    font-size: 13px;
    border-radius: var(--radius-md);
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: var(--shadow-header);
}

.site-footer__links {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
}

.site-footer__links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.site-footer__links a:hover {
    text-decoration: underline;
}

.site-footer__links a:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 12px;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(45deg);
    vertical-align: middle;
}

/* Logo client (optionnel) : n'existe dans le HTML que si activé et uploadé, donc
   aucun changement pour le footer par défaut (une seule colonne, texte centré). */
.site-footer--with-logo {
    display: flex;
    align-items: center;
    gap: 24px;
    text-align: left;
}

.site-footer__logo {
    max-height: 36px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.site-footer--with-logo .site-footer__content {
    flex: 1;
    text-align: center;
}

/* Boutique — général */

.shop-page {
    padding: 20px 0 60px;
}

.shop-page__back {
    margin: 0 0 16px;
}

.shop-page__back a {
    color: var(--color-muted);
    text-decoration: none;
    font-size: 14px;
}

.shop-page__back a:hover {
    color: var(--color-text);
}

.shop-empty {
    color: var(--color-muted);
    padding: 40px 0;
}

/* Tuiles catégories (format paysage) */

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.category-tile {
    position: relative;
    display: block;
    aspect-ratio: var(--ratio-categories, 3 / 2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    background: var(--color-border);
    text-decoration: none;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.category-tile:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.category-tile__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tile__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 65%);
}

.category-tile__name {
    position: absolute;
    left: 20px;
    bottom: 16px;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
}

/* Grille et carte produit — réutilisée par la boutique et le bloc "produits" */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    text-align: left;
}

.product-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.product-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.product-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 0 0 12px;
}

.product-card__image {
    position: relative;
    aspect-ratio: var(--ratio-produits, 1 / 1);
    background: var(--color-border);
    overflow: hidden;
}

/* Badge Promotion/Soldes : styles partagés entre le coin de la vignette catalogue
   (avec positionnement) et la mention en ligne sur la fiche produit (sans). */
.discount-badge {
    display: inline-block;
    background: var(--color-discount);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
}

.product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-border), #f2f1ec);
}

.product-card h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    margin: 14px 16px 4px;
}

/* Le sélecteur est précédé de « .product-card » exprès : dans un bloc de l'accueil, « .block-inner p » (plus spécifique
   qu'une classe seule) écrasait la marge, la couleur et la taille du prix, qui se retrouvait collé au bord de la tuile. */
.product-card .product-card__price {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 15px;
    margin: 0 16px;
    max-width: none;
}

/* Prix barré/réduit : partagé entre la vignette produit, la fiche détail et le panier. */
.price--original {
    color: var(--color-muted);
    font-weight: 400;
    text-decoration: line-through;
    margin-right: 6px;
}

.price--discounted {
    color: var(--color-discount);
}

.product-card__add {
    margin: 0 16px 16px;
}

.btn--small {
    padding: 9px 16px;
    font-size: 13px;
    width: 100%;
    text-align: center;
}

.product-card .product-card__out-of-stock {
    margin: 0 16px 16px;
    max-width: none;
    color: var(--color-muted);
    font-size: 13px;
    font-style: italic;
}

/* Fiche produit */

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 20px 0 60px;
}

.product-detail__main-image {
    width: 100%;
    height: auto; /* l'attribut height de la balise ne doit pas écraser le ratio choisi dans les réglages */
    aspect-ratio: var(--ratio-produits, 1 / 1);
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.product-detail__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.product-detail__thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid var(--color-border);
}

.product-detail__info h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin: 0 0 8px;
}

.product-detail__price {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 22px;
    margin: 0 0 16px;
}

.product-detail__description {
    color: var(--color-muted);
    line-height: 1.7;
    margin: 0 0 24px;
}

.product-detail__add {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 10px;
}

.product-detail__add label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.product-detail__stock {
    color: var(--color-muted);
    font-size: 13px;
}

.product-detail__out-of-stock {
    color: var(--color-muted);
    font-style: italic;
}

/* Champs de formulaire (public) */

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
    font-family: inherit;
    font-size: 14px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text);
    width: 100%;
}

textarea {
    resize: vertical;
}

/* Panier */

.cart-page {
    padding: 20px 0 60px;
}

.cart-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.cart-row {
    display: grid;
    grid-template-columns: 64px 1fr 90px 90px 32px;
    align-items: center;
    gap: 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
}

.cart-row__image {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-border);
}

.cart-row__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-row__name {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-row__name a {
    text-decoration: none;
    font-weight: 600;
}

.cart-row__unit-price {
    color: var(--color-muted);
    font-size: 13px;
}

.cart-row__quantity input {
    text-align: center;
}

.cart-row__subtotal {
    font-weight: 700;
    text-align: right;
}

.cart-row__remove button {
    background: none;
    border: none;
    color: var(--color-muted);
    font-size: 18px;
    cursor: pointer;
}

.cart-row__remove button:hover {
    color: var(--color-accent);
}

.cart-summary {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.cart-summary__total {
    font-size: 18px;
}

/* Commande */

.checkout-page {
    padding: 20px 0 60px;
}

.checkout-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.checkout-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.checkout-side {
    position: sticky;
    top: 16px;
    min-width: 0;
}

.checkout-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 28px;
}

.checkout-card label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}

.checkout-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin: 0;
}

.checkout-payment-methods legend {
    font-size: 14px;
    font-weight: 600;
    padding: 0 4px;
}

.checkout-card .checkout-payment-methods__option {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.checkout-summary {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 24px;
}

.checkout-summary h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin: 0 0 16px;
}

.checkout-summary__line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--color-muted);
    padding: 6px 0;
}

.checkout-summary__total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

.checkout-result {
    text-align: center;
    padding: 80px 20px;
}

.checkout-result h1 {
    font-family: var(--font-heading);
    margin-bottom: 12px;
}

.checkout-result p {
    color: var(--color-muted);
    margin-bottom: 8px;
}

.checkout-result .btn {
    margin-top: 20px;
}

/* Galerie */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.gallery-thumb,
.gallery-preview-tile {
    display: block;
    aspect-ratio: var(--ratio-galerie, 3 / 2);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.gallery-thumb:hover,
.gallery-preview-tile:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.gallery-thumb img,
.gallery-preview-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-grid--preview {
    grid-template-columns: repeat(6, 1fr);
    margin-bottom: 24px;
}

.block-galerie-cta {
    margin-top: 8px;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(23, 25, 28, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox[hidden] {
    display: none;
}

.lightbox__figure {
    margin: 0;
    max-width: 900px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.lightbox__image {
    max-width: 100%;
    max-height: 80vh;
    max-height: 80dvh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hero-card);
}

.lightbox__caption {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    text-align: center;
}

.lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
}

.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox__prev {
    left: 24px;
}

.lightbox__next {
    right: 24px;
}

/* Blog */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.blog-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.blog-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.blog-card__image {
    aspect-ratio: var(--ratio-blog, 16 / 9);
    background: var(--color-border);
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card__body {
    padding: 20px;
}

.blog-card__date {
    color: var(--color-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-card__body h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    margin: 8px 0 6px;
}

.blog-card__body p {
    color: var(--color-muted);
    font-size: 14px;
    margin: 0;
}

.blog-post {
    padding: 20px 0 60px;
    max-width: 760px;
    margin: 0 auto;
}

.blog-post__cover {
    width: 100%;
    height: auto;
    aspect-ratio: var(--ratio-blog, 16 / 9);
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
}

.blog-post__date {
    color: var(--color-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-post h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin: 8px 0 24px;
    line-height: 1.2;
}

.blog-post__content {
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.8;
}

/* Contact */

.contact-form {
    max-width: 560px;
    margin: 20px auto 0;
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-success {
    background: #ecfdf5;
    color: #15803d;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    max-width: 560px;
    margin: 20px auto 0;
    text-align: center;
}

/* Pages légales */

.legal-page {
    padding: 20px 0 60px;
    max-width: 760px;
    margin: 0 auto;
}

.legal-page h1 {
    font-family: var(--font-heading);
    font-size: 30px;
    margin: 0 0 24px;
}

.legal-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 32px;
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.8;
}

/* Bandeau cookies */

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 150;
    background: var(--color-nav-bg);
    color: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-header);
    padding: 18px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1060px;
    margin: 0 auto;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner p {
    margin: 0;
    font-size: 13px;
    flex: 1;
    min-width: 240px;
}

.cookie-banner a {
    color: #fff;
    text-decoration: underline;
}

.cookie-banner .btn {
    flex-shrink: 0;
}

/* Erreur 404 */

.error-404 {
    text-align: center;
    padding: 80px 20px;
}

/* Responsive */

@media (max-width: 720px) {
    .header-wrap,
    .footer-wrap {
        padding-left: 12px;
        padding-right: 12px;
    }

    .site-header {
        padding: 14px 18px;
    }

    .site-header--with-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .site-header--with-logo .site-header__nav {
        justify-content: center;
    }

    .site-footer--with-logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .site-footer--with-logo .site-footer__content {
        text-align: center;
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .legal-content {
        padding: 20px;
    }

    .hero {
        padding: 64px 12px 40px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-logo {
        max-height: 112px;
    }

    .hero-shape.s1 {
        width: 180px;
        height: 180px;
    }

    .hero-shape.s2 {
        width: 100px;
        height: 100px;
    }

    .hero-visual {
        perspective: none;
        margin-top: 36px;
    }

    .hero-card {
        padding: 20px;
    }

    .divider {
        margin: 48px auto 36px;
    }

    .features,
    .placeholder-grid {
        grid-template-columns: 1fr;
    }

    .features {
        perspective: none;
    }

    .placeholder-grid--products {
        grid-template-columns: repeat(2, 1fr);
    }

    .block-inner {
        padding: 28px 20px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cart-row {
        grid-template-columns: 48px 1fr 32px;
        grid-template-areas:
            "image name remove"
            "image quantity remove"
            "image subtotal remove";
        row-gap: 6px;
    }

    .cart-row__image {
        grid-area: image;
    }

    .cart-row__name {
        grid-area: name;
    }

    .cart-row__quantity {
        grid-area: quantity;
    }

    .cart-row__subtotal {
        grid-area: subtotal;
        text-align: left;
    }

    .cart-row__remove {
        grid-area: remove;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid--preview {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-post h1 {
        font-size: 24px;
    }

    .lightbox {
        padding: 16px;
    }

    .lightbox__nav {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .lightbox__prev {
        left: 8px;
    }

    .lightbox__next {
        right: 8px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid,
    .gallery-grid--preview {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* test de connexion - 2026-09-02 */

/* Livraison */

.checkout-card label[hidden] {
    display: none;
}

.checkout-card .checkout-shipping-methods__option {
    align-items: flex-start;
}

.checkout-shipping-methods__text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.checkout-shipping-methods__delay {
    font-size: 13px;
    font-weight: 400;
    color: var(--color-muted);
}

.checkout-shipping-methods__price {
    font-weight: 700;
    white-space: nowrap;
}

.checkout-summary__line--sub {
    border-top: 1px solid var(--color-border);
    margin-top: 6px;
    padding-top: 12px;
}

.checkout-summary--result {
    max-width: 420px;
    margin: 24px auto;
    text-align: left;
}

.cart-summary__note {
    font-size: 14px;
    color: var(--color-muted);
    margin: 0 0 12px;
}

.checkout-shipping-methods__instructions {
    font-size: 13px;
    font-weight: 400;
    color: var(--color-muted);
    margin-top: 4px;
}

.checkout-instructions {
    max-width: 420px;
    margin: 24px auto 0;
    padding: 16px 20px;
    text-align: left;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.checkout-instructions p {
    margin: 6px 0 0;
}

/* Peu de produits (1 à 3) : cartes centrées, à la largeur habituelle (jamais étirées). */

.product-grid--few {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.product-grid--few > .product-card {
    flex: 0 0 auto;
    width: calc((100% - 40px) / 3);
}

@media (max-width: 720px) {
    .product-grid--few > .product-card {
        width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 480px) {
    .product-grid--few > .product-card {
        width: 100%;
    }
}

/* Réseaux sociaux (pied de page) : couleurs par variables, surchargées en mode sombre. */

:root {
    --social-color: rgba(255, 255, 255, 0.85);
    --social-color-hover: #ffffff;
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    margin-bottom: 18px;
}

.site-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 6px;
    color: var(--social-color);
    text-decoration: none;
    border-radius: 999px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
    color: var(--social-color-hover);
    transform: translateY(-2px);
}

.site-footer__social-link:focus-visible {
    outline: 2px solid var(--social-color-hover);
    outline-offset: 2px;
}

.social-icon {
    width: 22px;
    height: 22px;
    display: block;
}

/* Checkout en cartes : champs larges, étiquettes visibles, erreurs sous le champ. */

:root {
    --checkout-error: #b91c1c;
    --checkout-error-bg: #fef2f2;
    --checkout-error-border: #fca5a5;
}

.checkout-card h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin: 0;
}

.checkout-card h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    margin: 0 0 8px;
}

.checkout-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.checkout-field label,
.checkout-field__label {
    font-size: 14px;
    font-weight: 600;
}

.checkout-field__optional {
    font-weight: 400;
    color: var(--color-muted);
    font-size: 13px;
}

.checkout-field input,
.checkout-field select {
    min-height: 46px;
    font-size: 16px;
}

.checkout-field--error input,
.checkout-field--error select {
    border-color: var(--checkout-error);
}

.checkout-field__error {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--checkout-error);
}

.checkout-field__static {
    margin: 0;
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 16px;
}

.checkout-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 16px;
}

input[type="tel"],
select {
    font-family: inherit;
    font-size: 14px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text);
    width: 100%;
}

.checkout-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.checkout-option input {
    width: 18px;
    height: 18px;
    flex: none;
}

.checkout-shipping-methods__option {
    align-items: flex-start;
}

.checkout-payment {
    margin-top: 18px;
}

.checkout-pay {
    width: 100%;
    margin-top: 16px;
    min-height: 48px;
}

.checkout-card[hidden] {
    display: none;
}

.checkout-error {
    color: var(--checkout-error);
    background: var(--checkout-error-bg);
    border-color: var(--checkout-error-border);
}

@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-side {
        position: static;
    }
}

@media (max-width: 480px) {
    .checkout-card {
        padding: 20px 16px;
    }

    .checkout-row {
        grid-template-columns: 1fr;
    }
}
.checkout-option[hidden],
.checkout-field__error[hidden] {
    display: none;
}

/* Les options (modes de livraison, moyens de paiement) restent en ligne : ces règles priment sur « .checkout-card label ». */

.checkout-card .checkout-option {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.checkout-card .checkout-shipping-methods__option {
    align-items: flex-start;
}

.checkout-card .checkout-option[hidden] {
    display: none;
}

/* Les photos sont cadrées à l'affichage (format des réglages + point focal), jamais recadrées sur le disque. */

.product-card__image img,
.category-tile__image,
.gallery-thumb img,
.gallery-preview-tile img,
.blog-card__image img,
.cart-row__image img,
.product-detail__thumb {
    object-fit: cover;
}

/* Blocs d'image (fiche produit, accueil) : photo entière par défaut, recadrée au format de la galerie si demandé. */
.block--image {
    margin: 0;
}

.block-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
}

.block-image--crop {
    aspect-ratio: var(--ratio-galerie, 3 / 2);
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.block-image--crop img {
    height: 100%;
    object-fit: cover;
}

.block-image__caption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--color-muted);
    text-align: center;
}

/* Contenu détaillé d'une fiche produit : blocs empilés sous la description. */
.product-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 0 0 60px;
    max-width: 860px;
    margin: 0 auto;
}

.product-content .block {
    padding: 0;
}

.product-content .block-inner {
    text-align: left;
}

.product-content .block-inner h2 {
    justify-content: flex-start;
}

.product-content .block-inner p {
    max-width: none;
    margin: 0;
}

/* Accordéons : éléments <details>/<summary> (fonctionnent sans JavaScript, au clavier : Tab puis Entrée ou Espace). */
.accordion-heading {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 14px;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion__item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.accordion__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
    padding: 12px 18px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 16px;
    color: var(--color-text);
}

.accordion__summary::-webkit-details-marker {
    display: none;
}

.accordion__summary:hover {
    color: var(--color-accent);
}

.accordion__summary:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: -3px;
}

/* Icône « + » dessinée par deux barres : la barre verticale disparaît à l'ouverture, ce qui donne « − ». */
.accordion__icon {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.accordion__icon::before,
.accordion__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    margin: -1px 0 0 -9px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s ease;
}

.accordion__icon::after {
    transform: rotate(90deg);
}

.accordion__item[open] .accordion__icon::after {
    transform: rotate(0deg);
}

.accordion__panel {
    padding: 0 18px 18px;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.6;
}

.accordion__item[open] .accordion__panel {
    animation: accordion-open 0.2s ease;
}

@keyframes accordion-open {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .accordion__icon::before,
    .accordion__icon::after {
        transition: none;
    }

    .accordion__item[open] .accordion__panel {
        animation: none;
    }
}

.blog-post__accordions {
    margin-top: 32px;
}

/* Vidéo à la demande : cadre 16:9, aperçu local ou fond neutre, bouton « Lire la vidéo ». */
.video-heading {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 14px;
}

.video__poster,
.video__frame {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.video__poster {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
}

.video__preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video__play {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 22px 10px 14px;
    background: var(--color-nav-bg, #17191c);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.video__play:hover {
    background: var(--color-accent);
}

.video__play:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

.video__play-icon {
    width: 0;
    height: 0;
    margin: 0 4px 0 8px;
    border-style: solid;
    border-width: 9px 0 9px 15px;
    border-color: transparent transparent transparent currentColor;
}

.video__notice {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--color-muted);
    text-align: center;
}

/* Blocs d'image, de vidéo et d'accordéons sur la page d'accueil : largeur de lecture confortable, centrés. */
.site-main > .block--image,
.site-main > .block--video,
.site-main > .block--accordeons {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.blog-post__accordions .block {
    padding: 0;
}

/* Produits numériques : étiquette et note « Téléchargement numérique ». */
.digital-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-muted);
    white-space: nowrap;
}

.cart-row__name .digital-tag {
    display: block;
    width: fit-content;
    margin: 4px 0 0;
}

.digital-note {
    color: var(--color-muted);
}

/* Le message « produits numériques » occupe sa propre ligne au-dessus du total (le panier 100 % physique ne change pas). */
.cart-summary:has(.digital-note) {
    flex-wrap: wrap;
}

.cart-summary__note.digital-note {
    flex: 1 1 100%;
    margin: 0;
    text-align: left;
}


/* Codes promo : encart replié du panier et de la commande */
.promo-box {
    margin: 0 0 1rem;
}

.promo-box__details summary {
    cursor: pointer;
    color: var(--color-muted);
    font-size: 0.95rem;
    padding: 0.4rem 0;
}

.promo-box__details[open] summary {
    color: var(--color-text);
}

.promo-box__form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.4rem;
}

.promo-box__label {
    flex-basis: 100%;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.promo-box__form input[type="text"] {
    flex: 1 1 10rem;
    min-width: 0;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-text);
    font: inherit;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.promo-box__applied {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
}

.promo-box__remove {
    background: none;
    border: 0;
    padding: 0.2rem 0;
    color: var(--color-muted);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.promo-box__message {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
}

.promo-box__message--ok {
    color: var(--color-text);
    font-weight: 600;
}

.promo-box__message--error {
    color: var(--color-discount);
}

.cart-summary__discount,
.checkout-summary__line--discount {
    color: var(--color-discount);
}

/* Panier avec un code promo : les lignes de total s'empilent (lisible aussi sur mobile) */
.cart-summary:has(.cart-summary__discount) {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    text-align: right;
}

.cart-summary:has(.cart-summary__discount) .cart-summary__total {
    margin: 0;
}

/* Livraison offerte : « Plus que X € » et barre de progression */
.freeship {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

.freeship[hidden] {
    display: none;
}

.freeship__text {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.freeship__bar {
    height: 0.5rem;
    border-radius: 999px;
    background: var(--color-border);
    overflow: hidden;
}

.freeship__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    .freeship__fill {
        transition: none;
    }
}

/* Option cadeau */
.checkout-gift__text {
    margin: 0.5rem 0 0.75rem;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.checkout-gift textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    font: inherit;
    resize: vertical;
}

.checkout-gift [hidden] {
    display: none;
}

.checkout-gift__count {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: var(--color-muted);
    text-align: right;
}

/* Bouton de validation caché (touche Entrée) : hors écran, jamais dans l'ordre de tabulation */
.promo-box__default {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Délai de livraison sous la ligne de livraison du récapitulatif */
.checkout-summary__delay {
    margin: -0.25rem 0 0.5rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.checkout-summary__delay[hidden] {
    display: none;
}

/* Menu mobile « burger » : seulement avec JavaScript (classe is-js), sous 820 px. Sans JavaScript, le menu reste la liste de liens habituelle. */
.site-header__tools {
    display: none;
}

.site-header__burger,
.site-header__cart-mini {
    color: #fff;
    text-decoration: none;
}

.site-header__burger {
    display: none;
}

html.menu-open {
    overflow: hidden;
    padding-right: var(--scrollbar-gap, 0);
}

@media (max-width: 820px) {
    .site-header.is-js .site-header__tools {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-left: auto;
    }

    .site-header.is-js .site-header__cart-mini {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }

    .site-header.is-js .site-header__burger {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        padding: 0 12px;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: var(--radius-sm);
        font: inherit;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }

    .site-header.is-js .site-header__burger:focus-visible,
    .site-header.is-js .site-header__cart-mini:focus-visible,
    .site-header.is-js .site-header__nav a:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 2px;
    }

    /* Panneau replié, puis ouvert sous l'en-tête (il pousse la page : il ne recouvre ni le bandeau d'annonce ni le contenu) */
    .site-header.is-js .site-header__nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0;
    }

    .site-header.is-js.is-open .site-header__nav {
        display: flex;
        animation: site-nav-open 0.2s ease-out;
    }

    .site-header.is-js .site-header__nav a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 0 4px;
        font-size: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        opacity: 0.95;
    }

    /* Le panier reste dans l'en-tête (version compacte) : pas de doublon dans le panneau */
    .site-header.is-js .site-header__nav .site-header__cart {
        display: none;
    }

    .site-header.is-js.site-header--with-logo .site-header__tools {
        margin-left: auto;
    }
}

@keyframes site-nav-open {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .site-header.is-js.is-open .site-header__nav {
        animation: none;
    }
}


/* Menu mobile : UNE seule ligne d'en-tête (nom, logo éventuel, panier, bouton Menu), avec ou sans logo. Le nom rétrécit avec des points de suspension
   (jamais de retour à la ligne), le logo et les outils gardent leur taille ; seul le panneau du menu passe dessous, en pleine largeur.
   Sans cette règle commune, un logo placé dans la grille ou la colonne de l'en-tête repoussait le bouton sur une deuxième ligne.
   Sur petit écran le bouton ne montre que l'icône (« Menu » reste son nom pour les lecteurs d'écran). */
@media (max-width: 820px) {
    .site-header.is-js,
    .site-header.is-js.site-header--with-logo {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px 12px;
    }

    .site-header.is-js .logo {
        display: block;
        flex: 1 1 0;
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .site-header.is-js .logo-bar {
        margin-right: 10px;
        vertical-align: middle;
    }

    .site-header.is-js .site-header__logo-link {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 40%;
    }

    .site-header.is-js .site-header__logo {
        max-width: 100%;
        max-height: 36px;
        object-fit: contain;
    }

    .site-header.is-js .site-header__tools {
        flex: none;
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .site-header.is-js .site-header__burger {
        padding: 0;
        width: 44px;
        justify-content: center;
    }

    .site-header.is-js .site-header__burger-label {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

/* Personnalisation d'un produit : zones de la fiche produit */
.product-detail__add--custom {
    flex-wrap: wrap;
}

.custom-zones {
    display: grid;
    gap: 14px;
    margin: 0 0 16px;
    width: 100%;
}

.custom-field {
    display: grid;
    gap: 6px;
    text-align: left;
}

.custom-field > span,
.custom-field > label,
.product-detail__add .custom-field > label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
}

.custom-zones {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 14px 16px 16px;
    min-width: 0;
    box-sizing: border-box;
}

.custom-zones__title {
    padding: 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
}

.custom-field__req {
    color: var(--color-discount);
    text-decoration: none;
}

.custom-field__opt {
    color: var(--color-muted);
    font-size: 0.8rem;
    font-weight: 400;
}

.custom-field__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.custom-field select option {
    background: var(--color-surface);
    color: var(--color-text);
}

.custom-field select option:disabled {
    color: var(--color-muted);
}

.custom-field select,
.custom-field textarea,
.custom-field input[type="text"],
.custom-field input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    font: inherit;
}

.custom-field textarea {
    resize: vertical;
}

.custom-option--out {
    color: var(--color-muted);
}

.custom-field__count,
.custom-field__help {
    color: var(--color-muted);
    font-size: 0.85rem;
    font-weight: 400;
}

.custom-errors,
.custom-files__error {
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--color-discount);
    border-radius: var(--radius-sm);
    color: var(--color-discount);
    font-size: 0.95rem;
    margin: 0;
}

.custom-errors ul {
    margin: 0;
    padding-left: 1.1rem;
}

.custom-files__error[hidden] {
    display: none;
}

.custom-files__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.custom-files__list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-weight: 400;
    overflow-wrap: anywhere;
}

.custom-files__remove {
    background: none;
    border: 0;
    color: var(--color-muted);
    text-decoration: underline;
    font: inherit;
    cursor: pointer;
    flex: none;
}

.custom-lines {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--color-muted);
    overflow-wrap: anywhere;
}

.custom-lines--error {
    color: var(--color-discount);
    font-weight: 600;
}


/* Résumé du panier sur téléphone : une colonne, chaque total sur sa ligne (libellé à gauche, montant à droite), notes sur toute la largeur,
   bouton « Passer commande » pleine largeur. Rien n'est plus écrasé dans une colonne étroite. */
@media (max-width: 720px) {
    .cart-summary,
    .cart-summary:has(.cart-summary__discount),
    .cart-summary:has(.digital-note) {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 10px;
        text-align: left;
    }

    .cart-summary__total,
    .cart-summary:has(.cart-summary__discount) .cart-summary__total {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 12px;
        margin: 0;
    }

    .cart-summary__note,
    .cart-summary__note.digital-note {
        margin: 0;
        text-align: left;
    }

    .cart-summary .btn {
        display: block;
        text-align: center;
    }
}

/* Compatibilité Safari / iPhone et écrans tactiles.
   Tout ce qui change l'aspect est réservé aux écrans tactiles ((pointer: coarse)) : sur ordinateur avec une souris (Chrome, Firefox, Safari),
   rien ne bouge. Les règles ci-dessous sont placées en dernier pour l'emporter sur les réglages de champs plus haut dans ce fichier. */

/* iOS ne doit pas regonfler le texte en paysage ; la taille des champs reste maîtrisée par le thème. */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@media (pointer: coarse) {
    /* Champs : 16 px minimum (en dessous, Safari sur iPhone zoome tout seul à la saisie), même forme partout, sans ombre intérieure ni style natif. */
    html input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="color"]),
    select:not([multiple]):not([size]),
    textarea:not([hidden]) {
        font-size: 16px;
        -webkit-appearance: none;
        appearance: none;
        border-radius: var(--radius-md);
    }

    html input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="color"]),
    select:not([multiple]):not([size]) {
        min-height: 44px;
    }

    /* Liste déroulante : flèche dessinée par le thème (suit le mode clair/sombre), au lieu du style natif d'Apple. */
    select:not([multiple]):not([size]) {
        padding-right: 38px;
        background-image:
            linear-gradient(45deg, transparent 50%, var(--color-text) 50%),
            linear-gradient(135deg, var(--color-text) 50%, transparent 50%);
        background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
        background-size: 6px 6px, 6px 6px;
        background-repeat: no-repeat;
    }

    select:not([multiple]):not([size])::-ms-expand {
        display: none;
    }

    /* Nombre : pas de petites flèches natives (le clavier numérique suffit au toucher) */
    input[type="number"] {
        -moz-appearance: textfield;
        appearance: textfield;
    }

    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    /* Choix de fichier : bouton lisible, avec la police et les coins du thème */
    input[type="file"] {
        font: inherit;
        font-size: 16px;
        max-width: 100%;
    }

    input[type="file"]::file-selector-button,
    input[type="file"]::-webkit-file-upload-button {
        min-height: 44px;
        margin-right: 12px;
        padding: 0 14px;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        background: var(--color-surface);
        color: var(--color-text);
        font: inherit;
        font-size: 15px;
        cursor: pointer;
    }

    /* Cases à cocher et boutons radio : assez grands pour le doigt */
    input[type="checkbox"],
    input[type="radio"] {
        width: 24px;
        height: 24px;
    }

    /* Boutons et liens d'action : 44 px minimum */
    .btn--small {
        padding: 12px 16px;
        min-height: 44px;
    }

    .cart-row__remove button {
        min-width: 44px;
        min-height: 44px;
    }

    .promo-box__details summary {
        display: flex;
        align-items: center;
        min-height: 44px;
    }

    .site-footer__links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .site-header .logo {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .site-header__nav a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

@media (pointer: coarse) and (max-width: 720px) {
    /* Panier : la colonne du bouton « retirer » passe à 44 px */
    .cart-row {
        grid-template-columns: 48px 1fr 44px;
    }
}

@media (pointer: coarse) and (max-width: 820px) {
    /* Menu ouvert : tient toujours à l'écran (barre d'adresse d'iPhone comprise) et défile à l'intérieur si besoin */
    .site-header.is-js.is-open .site-header__nav {
        max-height: calc(100vh - 140px);
        max-height: calc(100dvh - 140px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
}

/* Hauteurs : 100dvh quand le navigateur le connaît (la barre d'adresse mobile ne coupe plus rien), 100vh sinon (voir aussi .lightbox__image plus haut) */
/* Zones sûres (encoche, barre d'accueil) : sans effet tant que la page n'est pas affichée sous l'encoche */
.cookie-banner {
    bottom: max(20px, env(safe-area-inset-bottom));
}

@media (max-width: 720px) {
    .cookie-banner {
        bottom: max(12px, env(safe-area-inset-bottom));
    }
}

/* Avis clients : formulaire « Laisser un avis » */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.stars {
    color: #d99a1f;
    letter-spacing: 1px;
    white-space: nowrap;
}

.review-page .review-intro {
    max-width: 560px;
    margin: 0 auto 16px;
    text-align: center;
}

.review-form {
    max-width: 560px;
    margin: 20px auto 0;
}

.rating-input {
    border: 0;
    margin: 0 0 16px;
    padding: 0;
    text-align: center;
}

.rating-input legend {
    font-weight: 600;
    padding: 0;
    margin-bottom: 6px;
}

.rating-input__stars {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: center;
    position: relative;
}

.rating-input__stars input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.rating-input__stars label {
    font-size: 40px;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
    color: #c9c7c1;
}

.rating-input__stars input:checked ~ label,
.rating-input__stars label:hover,
.rating-input__stars label:hover ~ label {
    color: #d99a1f;
}

.rating-input__stars input:focus-visible + label {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 6px;
}

.review-counter {
    margin: 4px 0 16px;
    font-size: 13px;
    color: var(--color-muted, #6b6b6b);
    text-align: right;
}

/* Avis clients : page publique, badge de note moyenne, bandeau */

.reviews-average {
    text-align: center;
    margin: 8px 0 24px;
    font-size: 18px;
}

.reviews-average__score {
    font-size: 40px;
    font-family: var(--font-heading);
    margin-right: 8px;
}

.reviews-average .stars {
    font-size: 24px;
}

.reviews-average__count {
    display: block;
    color: var(--color-muted, #6b6b6b);
    font-size: 14px;
    margin-top: 4px;
}

.reviews-empty {
    text-align: center;
    color: var(--color-muted, #6b6b6b);
    margin: 24px 0;
}

.reviews-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-card {
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #e8e6e1);
    border-radius: var(--radius-md);
    padding: 16px 20px;
}

.review-card__head {
    margin: 0 0 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
}

.review-card__verified {
    font-size: 12px;
    font-weight: 600;
    color: #15803d;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    padding: 2px 10px;
}

.review-card__text {
    margin: 0;
    overflow-wrap: anywhere;
}

.reviews-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.reviews-badge__star {
    color: #d99a1f;
}

.reviews-badge__count {
    opacity: 0.75;
    font-size: 12px;
}

.reviews-badge:hover strong {
    text-decoration: underline;
}

.reviews-strip {
    text-align: center;
    padding: 6px 12px;
    background: var(--color-nav-bg, #17191c);
    color: #fff;
    font-size: 14px;
}

.reviews-strip .reviews-badge {
    color: #fff;
}

.site-footer__reviews {
    margin: 10px 0;
}

/* Témoignages de l'accueil et « Voir plus (X) » */

.testimonials {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.testimonial {
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #e8e6e1);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    text-align: left;
}

.testimonial__stars {
    margin: 0 0 6px;
}

.testimonial__text {
    margin: 0;
    overflow-wrap: anywhere;
}

.more-list {
    margin-top: 16px;
}

.more-list__summary {
    display: block;
    width: fit-content;
    margin: 0 auto 16px;
    padding: 10px 22px;
    border: 1px solid var(--color-border, #e8e6e1);
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    background: var(--color-surface, #fff);
}

.more-list__summary::-webkit-details-marker {
    display: none;
}

.more-list__summary:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.more-list[open] > .more-list__summary {
    margin-bottom: 16px;
}

/* Livre d'or */

.guestbook-form {
    max-width: 560px;
    margin: 20px auto 32px;
}

.guestbook-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.guestbook-entry {
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #e8e6e1);
    border-radius: var(--radius-md);
    padding: 16px 20px;
}

.guestbook-entry__head {
    margin: 0 0 6px;
}

.guestbook-entry__date {
    margin-left: 8px;
    font-size: 13px;
    color: var(--color-muted, #6b6b6b);
}

.guestbook-entry__text {
    margin: 0;
    overflow-wrap: anywhere;
}

.guestbook-page .more-list {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Le nom « NeoBanaan » : police Unbounded (SIL OFL 1.1, sous-ensemble du nom, voir docs/site-vitrine/credits-polices.md). Classe posée par App\Core\Brand. */
@font-face {
    font-family: 'NB Nom';
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url('../fonts/unbounded.woff2') format('woff2');
}
:root { --nb-nom-font: 'NB Nom', ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif; }
.nb-nom { font-family: var(--nb-nom-font); font-weight: 700; font-style: normal; letter-spacing: -0.01em; text-transform: none; font-size: 0.86em; }
.logo .nb-nom, .hero .nb-nom { font-size: 0.8em; }
.site-footer .nb-nom { font-size: 1em; }
