/* ==========================================================================
   COFODIS Réunion — thème enfant de Classic
   Piste « Papier découpé » : bleu marine + rouge du logo
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,800&family=Cormorant+Garamond:ital,wght@0,600;1,600&display=swap");

:root {
  --cof-navy: #13144A;
  --cof-navy-2: #2A2C6A;
  --cof-red: #C8402F;
  --cof-red-dark: #A83426;
  --cof-red-soft: #FFB4A8;
  --cof-lav: #EEEEF6;
  --cof-lav-2: #F6F6FB;
  --cof-blush: #FFF0EE;
  --cof-ink-2: #4A4B73;
  --cof-ink-3: #5A5B7E;
  --cof-line: #E6E6F0;
  --cof-white: #FFFFFF;
  --cof-sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cof-serif: "Cormorant Garamond", Georgia, serif;
  --cof-r-sm: 16px;
  --cof-r-md: 24px;
  --cof-r-lg: 32px;
}

/* ---------- Base ---------- */
body,
#wrapper,
.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6,
.btn, input, select, textarea {
  font-family: var(--cof-sans);
}
body { color: var(--cof-navy); background: var(--cof-white); }
#wrapper { background: var(--cof-white); padding-top: 1rem; }
a { color: var(--cof-navy); }
a:hover, a:focus { color: var(--cof-red-dark); text-decoration: none; }
.h1, h1 { font-weight: 800; letter-spacing: -0.02em; color: var(--cof-navy); text-transform: none; }
.h2, .h3, h2, h3 { color: var(--cof-navy); }
.text-muted { color: var(--cof-ink-3) !important; }
@media (min-width: 1200px) { .container { width: 1320px; max-width: 100%; } }

/* Boutons */
.cof-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none !important;
  border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease;
}
.cof-btn:hover { transform: translateY(-1px); }
.cof-btn--accent { background: var(--cof-red); color: var(--cof-white) !important; }
.cof-btn--accent:hover { background: var(--cof-red-dark); }
.cof-btn--navy { background: var(--cof-navy); color: var(--cof-white) !important; }
.cof-btn--navy:hover { background: var(--cof-navy-2); }
.cof-btn--light { background: var(--cof-white); color: var(--cof-navy) !important; font-weight: 800; }
.cof-btn--ghost { border-color: var(--cof-white); color: var(--cof-white) !important; }
.cof-btn--lg { min-height: 58px; padding: 0 32px; font-size: 1.125rem; }

.btn-primary {
  background: var(--cof-navy); border-color: var(--cof-navy); border-radius: 999px;
  text-transform: none; font-weight: 700; box-shadow: none;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background: var(--cof-navy-2) !important; border-color: var(--cof-navy-2) !important; }
.btn-secondary, .btn-tertiary { border-radius: 999px; text-transform: none; }

/* ---------- Barre supérieure ---------- */
#header { background: var(--cof-white); box-shadow: none; }
#header .header-nav.cof-topbar {
  background: var(--cof-navy); color: #D6D7F0; border-bottom: 0; max-height: none; margin-bottom: 0; font-size: .875rem;
}
#header .header-nav.cof-topbar a,
#header .header-nav.cof-topbar .material-icons { color: #FFFFFF; }
.cof-topbar__inner { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; width: 100%; padding: 8px 15px; }
.cof-topbar__left, .cof-topbar__right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.cof-topbar__tagline { opacity: .85; }
#header .header-nav #contact-link,
#header .header-nav .user-info,
#header .header-nav .blockcart { margin: 0; padding: 0; color: #D6D7F0; }
#header .header-nav .blockcart { background: transparent; height: auto; }
#header .header-nav .cart-preview.active { background: var(--cof-red); border-radius: 999px; padding: 2px 12px; }
#header .header-nav .right-nav { justify-content: flex-end; }
@media (max-width: 767px) {
  #header .header-nav.cof-topbar { background: var(--cof-white); color: var(--cof-navy); }
  #header .header-nav.cof-topbar a, #header .header-nav.cof-topbar .material-icons { color: var(--cof-navy); }
  #header .header-nav .mobile { width: 100%; padding: 8px 0; }
}

/* ---------- En-tête : logo, menu, recherche ---------- */
#header .header-top.cof-header { padding: 20px 0; }
.cof-header__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.cof-header__logo { flex: 0 0 auto; }
.cof-header__right { flex: 1 1 520px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 0; }
.cof-header__cta { flex: 0 0 auto; }
.cof-logo-wrap { margin: 0; font-size: inherit; line-height: 1; }
.cof-logo { display: inline-flex; align-items: baseline; gap: 10px; color: var(--cof-navy) !important; text-decoration: none !important; }
.cof-logo__mark { font-family: var(--cof-serif); font-weight: 600; font-size: 40px; line-height: 1; letter-spacing: .01em; }
.cof-logo__mark em { font-style: italic; color: var(--cof-red); }
.cof-logo__place { font-size: 10px; letter-spacing: .45em; text-transform: uppercase; color: var(--cof-ink-3); font-family: var(--cof-sans); }
#_mobile_logo .cof-logo__mark { font-size: 30px; }

/* Menu principal en pastilles */
#_desktop_top_menu { flex: 1 1 auto; }
.top-menu[data-depth="0"] { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.top-menu[data-depth="0"] > li { float: none; }
.top-menu a[data-depth="0"] {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px !important;
  border-radius: 999px; background: var(--cof-lav); color: var(--cof-navy);
  font-weight: 600; font-size: .95rem; text-transform: none;
}
.top-menu a[data-depth="0"]:hover,
.top-menu > li.current > a[data-depth="0"] { background: var(--cof-navy); color: var(--cof-white); }
#header .top-menu .sub-menu {
  border-radius: var(--cof-r-md); box-shadow: 0 24px 48px rgba(19,20,74,.14); border: 1px solid var(--cof-line);
  margin-top: 8px; padding: 24px; min-width: 100%;
}
.top-menu .sub-menu a[data-depth="1"] { color: var(--cof-navy); font-weight: 700; text-transform: none; }
.top-menu .sub-menu a[data-depth="2"], .top-menu .sub-menu a[data-depth="1"]:hover { color: var(--cof-ink-2); }
.top-menu .sub-menu a:hover { color: var(--cof-red-dark) !important; }

/* Recherche */
#search_widget { float: none; min-width: 240px; flex: 0 1 300px; margin: 0; }
#search_widget form input[type="text"] {
  height: 48px; border-radius: 999px; border: 2px solid var(--cof-navy); background: var(--cof-white);
  padding: 0 16px 0 46px; color: var(--cof-navy); font-size: .95rem;
}
#search_widget form input[type="text"]:focus { outline: 3px solid var(--cof-red-soft); outline-offset: 1px; }
#search_widget form i { top: 50%; transform: translateY(-50%); padding: 0 0 0 14px; color: var(--cof-navy); }
#search_widget form i.clear { display: none; }
.ui-autocomplete.searchbar-autocomplete { border-radius: var(--cof-r-sm); }

/* Menu mobile */
#mobile_top_menu_wrapper { background: var(--cof-lav-2); border-radius: var(--cof-r-md); margin: 12px 0; padding: 12px; }
#mobile_top_menu_wrapper .top-menu a[data-depth="0"] { background: transparent; width: 100%; }

/* ---------- Fil d'Ariane ---------- */
#wrapper .breadcrumb { background: transparent; padding: 0; margin-bottom: 1rem; }
#wrapper .breadcrumb li a, #wrapper .breadcrumb li::after { color: var(--cof-ink-3); }
#wrapper .breadcrumb li:last-child span { color: var(--cof-navy); font-weight: 600; }

/* ---------- Accueil ---------- */
.page-home > section,
.page-home .cof-home-hooks { margin-bottom: 72px; }
.cof-hero {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 40px;
  background: var(--cof-navy); color: var(--cof-white); border-radius: 40px;
  padding: clamp(36px, 6vw, 88px); margin-top: 8px;
}
.cof-hero__disc { position: absolute; right: -120px; top: -140px; width: 520px; height: 520px; border-radius: 50%; background: var(--cof-red); }
.cof-hero__ring { position: absolute; right: 180px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; border: 2px dashed #6E70B8; }
.cof-hero__text { position: relative; flex: 1 1 480px; min-width: 0; }
.cof-hero__title { margin: 0; color: var(--cof-white); font-weight: 800; font-size: clamp(44px, 6.5vw, 100px); line-height: .95; letter-spacing: -.035em; }
.cof-hero__title em { font-family: var(--cof-serif); font-weight: 600; letter-spacing: 0; color: var(--cof-red-soft); }
.cof-hero__lead { margin: 28px 0 0; font-size: 1.25rem; max-width: 480px; color: #D6D7F0; }
.cof-hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.cof-hero__visual { position: relative; flex: 1 1 360px; min-width: 0; height: 420px; }
.cof-note { position: absolute; background: var(--cof-white); border-radius: 6px; padding: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.25); aspect-ratio: 1 / 1; }
.cof-note img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cof-note--1 { left: 4%; top: 10px; width: 52%; transform: rotate(-6deg); }
.cof-note--2 { right: 2%; top: 60px; width: 46%; transform: rotate(5deg); background: #FFF4F2; }
.cof-note--3 { left: 26%; bottom: 0; width: 48%; transform: rotate(2deg); }
.cof-tape { position: absolute; top: -12px; left: 36%; width: 70px; height: 24px; background: rgba(255,220,150,.85); transform: rotate(4deg); }
.cof-note--3 .cof-tape { left: 20%; transform: rotate(-6deg); }
@media (max-width: 767px) {
  .cof-hero { border-radius: 28px; }
  .cof-hero__visual { height: 300px; }
  .cof-hero__disc { width: 320px; height: 320px; right: -140px; top: -120px; }
}

.cof-h2 { margin: 0 0 28px; font-weight: 800; font-size: clamp(32px, 4vw, 56px); letter-spacing: -.03em; line-height: 1.05; color: var(--cof-navy); text-transform: none; }
.cof-rayons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cof-rayon {
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  min-height: 172px; padding: 28px; border-radius: 28px; text-decoration: none !important;
  transition: transform .15s ease;
}
.cof-rayon:hover { transform: translateY(-3px) rotate(-.4deg); }
.cof-rayon--big { grid-row: span 2; min-height: 360px; padding: 32px; }
.cof-rayon__sub { font-size: .9rem; font-weight: 600; }
.cof-rayon__name { font-weight: 800; font-size: 32px; letter-spacing: -.02em; line-height: 1; }
.cof-rayon--big .cof-rayon__name { font-size: 48px; letter-spacing: -.03em; }
.cof-rayon--accent { background: var(--cof-red); color: var(--cof-white) !important; }
.cof-rayon--navy { background: var(--cof-navy); color: var(--cof-white) !important; }
.cof-rayon--navy .cof-rayon__sub { color: #C9CAE6; }
.cof-rayon--soft { background: var(--cof-lav); color: var(--cof-navy) !important; }
.cof-rayon--soft .cof-rayon__sub, .cof-rayon--outline .cof-rayon__sub { color: var(--cof-ink-2); }
.cof-rayon--blush { background: var(--cof-blush); color: var(--cof-navy) !important; }
.cof-rayon--blush .cof-rayon__sub { color: #7A3328; }
.cof-rayon--outline { border: 2px solid var(--cof-navy); color: var(--cof-navy) !important; }
@media (max-width: 575px) { .cof-rayon--big { grid-row: auto; min-height: 220px; } }

/* Sections de modules sur l'accueil (produits phares, etc.) */
.page-home .featured-products,
.page-home .product-accessories,
.page-home section.clearfix { background: var(--cof-lav-2); border-radius: 40px; padding: clamp(28px, 4vw, 56px); margin-bottom: 40px; }
.products-section-title {
  text-align: left; text-transform: none; font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(30px, 3.6vw, 48px); margin-bottom: 28px; color: var(--cof-navy);
}
.all-product-link { color: var(--cof-navy); font-weight: 700; float: none; display: inline-block; margin-top: 16px; }

.cof-devis {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  border: 2px dashed var(--cof-navy); border-radius: var(--cof-r-lg); padding: clamp(28px, 5vw, 64px);
}
.cof-devis__text { flex: 1 1 520px; min-width: 0; }
.cof-devis .cof-h2 { margin-bottom: 12px; font-size: clamp(28px, 3.4vw, 48px); }
.cof-devis .cof-h2 span { color: var(--cof-red-dark); }
.cof-devis p { margin: 0; font-size: 1.125rem; color: var(--cof-ink-2); }

/* ---------- Vignettes produits ---------- */
.products { gap: 0; }
.product-miniature .thumbnail-container {
  background: var(--cof-white); border: 1.5px solid var(--cof-line); border-radius: var(--cof-r-md);
  box-shadow: none; padding: 14px 14px 20px; height: 100%; display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-miniature .thumbnail-container:hover,
.product-miniature .thumbnail-container:focus-within { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(19,20,74,.10); }
.product-miniature .thumbnail-top { background: var(--cof-lav); border-radius: var(--cof-r-sm); overflow: hidden; }
.product-miniature:nth-child(even) .thumbnail-top { background: var(--cof-blush); }
.product-miniature .product-thumbnail img { mix-blend-mode: multiply; padding: 12px; }
.product-miniature .product-description {
  position: static; width: auto; height: auto; background: transparent; box-shadow: none;
  padding: 14px 4px 0; text-align: left; display: flex; flex-direction: column; gap: 6px;
}
.product-miniature .product-description::after { display: none; }
.product-miniature .product-title { margin: 0; text-transform: none; text-align: left; }
.product-miniature .product-title a { color: var(--cof-navy); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.cof-mini__brand { font-size: .8rem; color: var(--cof-ink-3); }
.cof-mini__ask { font-size: .875rem; font-weight: 700; color: var(--cof-red-dark) !important; }
.product-miniature .product-price-and-shipping { text-align: left; color: var(--cof-navy); font-weight: 800; }
.product-miniature .highlighted-informations { background: rgba(255,255,255,.92); border-radius: 0 0 var(--cof-r-sm) var(--cof-r-sm); box-shadow: none; }
.product-miniature .highlighted-informations .quick-view { color: var(--cof-navy); font-weight: 600; }
.product-flags li.product-flag {
  background: var(--cof-red); color: var(--cof-white); border-radius: 999px; font-weight: 800;
  font-size: .75rem; text-transform: none; padding: 4px 10px; transform: rotate(-4deg); box-shadow: none; margin-top: 10px;
}
.product-flags li.product-flag.on-sale, .product-flags li.product-flag.discount { background: var(--cof-navy); }

/* ---------- Page catégorie ---------- */
.block-category.cof-cat-banner {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
  background: var(--cof-red); color: var(--cof-white); border: 0; border-radius: var(--cof-r-lg);
  padding: clamp(28px, 5vw, 56px); margin-bottom: 28px; min-height: 0; box-shadow: none;
}
.cof-cat-banner__disc { position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: var(--cof-navy); }
.cof-cat-banner__text { position: relative; flex: 1 1 420px; min-width: 0; }
.cof-cat-banner .h1 { color: var(--cof-white); font-size: clamp(36px, 5vw, 72px); line-height: .95; letter-spacing: -.035em; margin: 0; }
.cof-cat-banner__desc, .cof-cat-banner__desc p { margin-top: 16px; color: #FFE3DF !important; font-size: 1.05rem; }
.cof-cat-banner__subs { position: relative; display: flex; flex-wrap: wrap; gap: 8px; flex: 0 1 480px; }
.cof-pill {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--cof-white); color: var(--cof-navy) !important; font-weight: 600; font-size: .9rem;
}
.cof-pill:hover { background: var(--cof-navy); color: var(--cof-white) !important; }
#subcategories { display: none; }  /* remplacées par les pastilles du bandeau */

/* Colonne de gauche : catégories + filtres */
#left-column .block-categories,
#left-column #search_filters,
#left-column #search_filter_controls { background: var(--cof-lav-2); border-radius: var(--cof-r-md); box-shadow: none; padding: 24px; margin-bottom: 20px; }
#left-column .block-categories .category-top-menu > li > a,
#search_filters .h6, #search_filters .facet .facet-title { color: var(--cof-navy); font-weight: 800; text-transform: none; font-size: 1.05rem; }
#search_filters .facet .facet-label a, .block-categories .category-sub-menu li a { color: var(--cof-ink-2); }
#search_filters .facet .facet-label.active a, #search_filters .facet .facet-label a:hover { color: var(--cof-navy); font-weight: 600; }
.custom-checkbox input[type="checkbox"] + span { border-color: var(--cof-navy); border-radius: 4px; }
.custom-checkbox input[type="checkbox"] + span .checkbox-checked { color: var(--cof-navy); }
.custom-radio input[type="radio"]:checked + span { background-color: var(--cof-navy); }
.active_filters { background: var(--cof-lav); border-radius: var(--cof-r-sm); }
.active_filters .filter-block { border-radius: 999px; box-shadow: none; }

/* Barre de tri + pagination */
#js-product-list-top { margin-bottom: 20px; }
.products-sort-order .select-title {
  border: 2px solid var(--cof-navy); border-radius: 999px; box-shadow: none; color: var(--cof-navy); font-weight: 600; background: var(--cof-white);
}
.products-sort-order .dropdown-menu { border-radius: var(--cof-r-sm); box-shadow: 0 16px 36px rgba(19,20,74,.12); }
.pagination .page-list { background: transparent; box-shadow: none; padding: 0; }
.pagination .page-list li a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px;
  border-radius: 999px; background: var(--cof-lav); color: var(--cof-navy); font-weight: 600; margin: 0 2px; padding: 0 12px;
}
.pagination .page-list li.current a { background: var(--cof-navy); color: var(--cof-white); }

/* ---------- Fiche produit ---------- */
#product #content { max-width: none; }
.product-cover { background: var(--cof-lav); border-radius: var(--cof-r-lg); overflow: hidden; margin-bottom: 16px; }
.product-cover img { mix-blend-mode: multiply; box-shadow: none; background: transparent; }
.product-cover .layer { border-radius: var(--cof-r-lg); background: rgba(19,20,74,.25); }
.product-images > li.thumb-container .thumb {
  border-radius: var(--cof-r-sm); background: var(--cof-lav-2); border: 2px solid transparent; mix-blend-mode: normal;
}
.product-images > li.thumb-container .thumb.selected,
.product-images > li.thumb-container .thumb:hover { border-color: var(--cof-navy); }
.product-images > li.thumb-container { margin-right: 10px; }
#product h1.h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -.03em; text-transform: none; }
.product-information, .product-description { color: var(--cof-ink-2); font-size: 1.05rem; }
.product-variants > .product-variants-item .control-label { font-weight: 800; color: var(--cof-navy); }
.product-variants > .product-variants-item select {
  border: 2px solid var(--cof-navy); border-radius: 999px; padding: 0 16px; height: 48px; color: var(--cof-navy); background-color: var(--cof-white); box-shadow: none;
}
.product-variants > .product-variants-item ul li { margin-right: 10px; }
.input-color + span.color { width: 40px; height: 40px; border-radius: 999px; border: 3px solid var(--cof-white); box-shadow: 0 0 0 1px #C9CAE6; }
.input-color:checked + span, .input-color:hover + span { box-shadow: 0 0 0 2px var(--cof-navy); border-color: var(--cof-white); }
.input-radio + span.radio-label { border-radius: 999px; border: 2px solid var(--cof-navy); box-shadow: none; padding: 6px 16px; font-weight: 600; }
.input-radio:checked + span.radio-label { background: var(--cof-navy); color: var(--cof-white); border-color: var(--cof-navy); }
.product-quantity .qty .input-group { border-radius: 999px; }
.product-quantity .add .add-to-cart { border-radius: 999px; min-height: 52px; padding: 0 28px; }
.product-reference label, .product-quantities label { color: var(--cof-ink-3); }

.cof-ask-box {
  margin: 24px 0; padding: 20px 24px; border: 2px dashed var(--cof-navy); border-radius: var(--cof-r-md);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; color: var(--cof-navy);
}
.cof-ask-box span { color: var(--cof-ink-2); font-size: .95rem; }
.cof-ask-box__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cof-ask-box__phone { font-weight: 800; font-size: 1.25rem; color: var(--cof-navy) !important; }

.tabs { background: var(--cof-lav-2); border-radius: var(--cof-r-md); box-shadow: none; padding: 24px; }
.tabs .nav-tabs { border-bottom: 2px solid var(--cof-line); }
.tabs .nav-tabs .nav-link { color: var(--cof-ink-3); font-weight: 700; border: 0; background: transparent; }
.tabs .nav-tabs .nav-link.active, .tabs .nav-tabs .nav-link:hover { color: var(--cof-navy); border: 0; border-bottom: 3px solid var(--cof-red); }
.product-features > dl.data-sheet dd.value, .product-features > dl.data-sheet dt.name { background: var(--cof-white); border-radius: 8px; }
.product-features > dl.data-sheet dd.value:nth-of-type(even), .product-features > dl.data-sheet dt.name:nth-of-type(even) { background: var(--cof-lav); }

/* Réassurance */
.blockreassurance_product, #block-reassurance { background: transparent; box-shadow: none; }
#block-reassurance li { border-bottom-color: var(--cof-line); }

/* ---------- Pages internes (CMS, contact, compte) ---------- */
.page-content.card, .card, #content.page-content, .contact-form, .contact-rich {
  border-radius: var(--cof-r-md); box-shadow: none; border: 1px solid var(--cof-line);
}
.form-control { border-radius: 12px; border-color: #C9CAE6; color: var(--cof-navy); }
.form-control:focus { border-color: var(--cof-navy); outline: 3px solid var(--cof-red-soft); outline-offset: 1px; }

/* ---------- Bloc newsletter / réassurance au-dessus du pied ---------- */
#footer .footer-before, .block_newsletter { background: transparent; }
.block_newsletter { border: 2px dashed var(--cof-navy); border-radius: var(--cof-r-lg); padding: 24px; margin-bottom: 32px; }
.block_newsletter form input[type="email"] { border-radius: 999px; border: 2px solid var(--cof-navy); height: 48px; padding: 0 18px; }
.block_newsletter form input[type="submit"], .block_newsletter form .btn { border-radius: 999px; height: 48px; }

/* ---------- Pied de page ---------- */
#footer { background: var(--cof-navy); color: #C9CAE6; border-radius: 40px 40px 0 0; padding-top: 48px; margin-top: 64px; }
#footer .footer-container { background: transparent; box-shadow: none; margin-top: 0; padding-top: 0; overflow: visible; }
#footer .h3, #footer .h4, #footer .block-contact-title, #footer .links .h3, #footer p.h3 { color: var(--cof-white); text-transform: none; font-weight: 800; font-size: 1.1rem; }
#footer a, #footer .links li a, #footer .block-contact a, #footer .text-sm-center a { color: #C9CAE6; }
#footer a:hover, #footer .links li a:hover { color: var(--cof-white); }
#footer .block-contact { color: #C9CAE6; }
#footer .links ul { background: transparent; }
#footer .links .collapse { background: transparent; }
#footer .text-sm-center, #footer .text-sm-center a { color: #9C9DC8; font-size: .85rem; }
@media (max-width: 767px) {
  #footer .links .title { border-bottom-color: var(--cof-navy-2); }
  #footer .links .navbar-toggler .material-icons { color: var(--cof-white); }
}

/* ---------- Accessibilité ---------- */
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 3px solid var(--cof-red-soft); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .cof-btn, .cof-rayon, .product-miniature .thumbnail-container { transition: none; }
}

/* ==========================================================================
   v1.0.1 — ajustements après mise en ligne
   ========================================================================== */
/* Menu : casse normale, menu avant la recherche */
#header .top-menu a[data-depth="0"] { text-transform: none; font-family: var(--cof-sans); }
.cof-header__right #_desktop_top_menu { order: 1; }
.cof-header__right #search_widget { order: 2; }
.cof-header__right { align-items: center; }

/* Rayons : grande tuile + 2 x 2 */
.cof-rayons { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(172px, auto); }
.cof-rayon--big { grid-row: span 2; min-height: 0; }
.cof-rayon__name { font-size: clamp(24px, 2.4vw, 32px); overflow-wrap: anywhere; }
.cof-rayon--big .cof-rayon__name { font-size: clamp(36px, 4vw, 52px); }
@media (max-width: 991px) { .cof-rayons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .cof-rayons { grid-template-columns: minmax(0, 1fr); } .cof-rayon--big { grid-row: auto; min-height: 220px; } }

/* Titres des sections de modules */
#content .products-section-title,
#main .products-section-title,
.featured-products .products-section-title {
  text-align: left !important; text-transform: none !important; font-family: var(--cof-sans) !important;
  font-weight: 800 !important; letter-spacing: -.03em; font-size: clamp(30px, 3.6vw, 48px) !important; color: var(--cof-navy) !important;
}
.featured-products .all-product-link { color: var(--cof-navy); font-weight: 700; }

/* Pied de page : titres lisibles */
#footer .myaccount-title, #footer .myaccount-title a,
#footer .block-contact-title, #footer .h3, #footer .h4 {
  color: var(--cof-white) !important; text-transform: none !important; font-family: var(--cof-sans);
}
#left-column .block-categories .category-top-menu > li > a.text-uppercase,
#left-column .block-categories .h6 { text-transform: none; }

/* En-tête : menu et recherche sur une ligne */
.cof-header__row { gap: 16px 24px; }
.cof-header__right { flex-wrap: nowrap; }
.cof-header__right #_desktop_top_menu { width: auto; flex: 1 1 0; min-width: 0; padding-left: 0; margin: 0; }
.cof-header__right #search_widget { flex: 0 0 220px; min-width: 0; }
.top-menu[data-depth="0"] { gap: 6px; }
#header .top-menu a[data-depth="0"] { padding: 0 14px !important; font-size: .9rem; }
@media (max-width: 1199px) { .cof-header__right { flex-wrap: wrap; } .cof-header__right #search_widget { flex: 1 1 220px; } }

/* Mobile : produits avant la colonne de catégories */
@media (max-width: 767px) {
  #wrapper > .container > .row { display: flex; flex-wrap: wrap; }
  #wrapper #content-wrapper { order: 1; width: 100%; }
  #wrapper #left-column { order: 2; width: 100%; }
  #wrapper #right-column { order: 3; width: 100%; }
}
