/*
 * Foot.fr blog — layout, header, footer, listings.
 * Tokens come from the foot2 PrestaShop theme (src/scss/settings/settings.variables.scss).
 */

:root {
  --ff-primary: #1dbbff;
  --ff-secondary: #1d1d1d;
  --ff-promo: #ff611d;
  --ff-white: #fff;
  --ff-gray-50: #fcfcfc;
  --ff-gray-100: #eaeaea;
  --ff-gray-200: #cfcfcf;
  --ff-gray-600: #646464;
  --ff-gray-800: #2f2f2f;
  --ff-blue-100: #e1f4fc;
  --ff-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ff-font-title: Gustavo, Georgia, serif;
  --ff-wrapper: 1440px; /* foot2 .o-wrapper; header uses .o-wrapper-xl (1920px) */
  --ff-gutter: 1.25rem;
  --ff-hdr-row: 48px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
  margin: 0;
  font-family: var(--ff-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ff-secondary);
  background: var(--ff-white);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-font-title);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0;
}

.o-wrapper {
  width: 100%;
  max-width: var(--ff-wrapper);
  margin-inline: auto;
  padding-inline: var(--ff-gutter);
}

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

.u-skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  padding: .75rem 1rem; background: var(--ff-primary); color: var(--ff-secondary); font-weight: 700;
}
.u-skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--ff-primary); outline-offset: 2px; }

.c-icon { display: inline-block; width: 24px; height: 24px; flex-shrink: 0; vertical-align: middle; }

/* ---------- Buttons (foot.fr .btn) ---------- */

.c-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 48px; padding: .75rem 1.5rem;
  border: 0; border-radius: 28px;
  font: 700 .875rem/1 var(--ff-font); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.c-btn--primary { background: var(--ff-primary); color: var(--ff-secondary); }
.c-btn--primary:hover { background: #17a6e3; }
.c-btn--secondary { background: var(--ff-secondary); color: var(--ff-white); }
.c-btn--secondary:hover { background: var(--ff-gray-800); }
.c-btn--arrow .c-icon { width: 20px; height: 20px; transition: transform .15s ease; }
.c-btn--arrow:hover .c-icon { transform: translateX(4px); }

/* ---------- Tag (foot.fr .c-wp__tag) ---------- */

.c-tag {
  display: inline-block;
  padding: 3px 6px 5px;
  font: 700 .75rem/1.2 var(--ff-font-title); text-transform: uppercase; letter-spacing: .02em;
  color: var(--ff-white); background: var(--ff-secondary);
}

/* ---------- Header ----------
 * Same grid as the shop header (foot2 .c-header): 155px logo cell over two
 * 48px rows. Row 1: blog search, stores icon. Row 2: "Le blog", blog sections,
 * "La boutique" in cyan at the far right.
 */

/* Content capped at 1920px like the shop (.o-wrapper-xl); the dark background runs full width. */
.c-hdr { position: relative; z-index: 50; background: var(--ff-secondary); }

.c-hdr__bar {
  max-width: 1920px; margin-inline: auto;
  display: grid;
  grid-template-columns: 155px 1fr auto;
  grid-template-areas:
    "logo search stores"
    "logo nav nav";
  background: var(--ff-secondary);
  color: var(--ff-white);
}

.c-hdr__logo {
  grid-area: logo;
  display: flex; align-items: center;
  padding: 0 32px;
  border-right: 1px solid var(--ff-gray-800);
}
.c-hdr__logo .c-logo { width: 90px; height: 20px; }

.c-hdr__search {
  grid-area: search;
  display: flex; align-items: center; gap: .75rem;
  height: var(--ff-hdr-row); padding-inline: 1rem;
  border-bottom: 1px solid var(--ff-gray-800);
}
.c-hdr__search input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; background: transparent; color: var(--ff-white);
  font: 400 1rem var(--ff-font);
}
.c-hdr__search input::placeholder { color: #bebebe; }
.c-hdr__search input:focus { outline: none; }
.c-hdr__search:focus-within { box-shadow: inset 0 -2px 0 var(--ff-primary); }
.c-hdr__search-btn { display: flex; padding: 0; border: 0; background: none; color: var(--ff-white); cursor: pointer; }
.c-hdr__search-btn .c-icon { width: 20px; height: 20px; }

.c-hdr__stores {
  grid-area: stores;
  display: flex; align-items: center; justify-content: center;
  width: 49px; height: var(--ff-hdr-row);
  border-left: 1px solid var(--ff-gray-800); border-bottom: 1px solid var(--ff-gray-800);
}
.c-hdr__stores .c-icon { width: 24px; height: 24px; }
.c-hdr__stores:hover { background: var(--ff-gray-800); }

.c-hdr__nav { grid-area: nav; min-width: 0; }
.c-hdr__nav-list {
  display: flex; margin: 0; padding: 0; list-style: none;
  min-height: var(--ff-hdr-row);
}
/* Cells share the row but longer labels get more room, so the row stays on one line at 1440px */
.c-hdr__nav-list li { flex: 1 1 auto; min-width: 0; }
.c-hdr__nav-list a {
  display: flex; align-items: center; justify-content: center; height: 100%;
  padding: 12px 8px;
  border-right: 1px solid var(--ff-gray-800);
  font-size: 1rem; font-weight: 400; letter-spacing: .64px; line-height: 1.5;
  text-align: center; text-decoration: none;
  color: var(--ff-white);
}
.c-hdr__nav-list li:last-child a { border-right: 0; }
.c-hdr__nav-list a:hover { background: var(--ff-gray-800); }
.c-hdr__nav-list a[aria-current] { box-shadow: inset 0 -3px 0 var(--ff-primary); }
.c-hdr__nav .c-hdr__nav-shop a { background: var(--ff-primary); color: var(--ff-secondary); }
.c-hdr__nav .c-hdr__nav-shop a:hover { background: #17a6e3; }

@media (max-width: 991.98px) {
  /* Mobile: logo + stores, full-width search, then a swipeable sections strip */
  .c-hdr { --ff-hdr-row: 50px; }
  .c-hdr__bar {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "logo . stores"
      "search search search"
      "nav nav nav";
  }
  .c-hdr__logo { height: var(--ff-hdr-row); padding: 0 14px; border-right: 0; }
  .c-hdr__stores { border-bottom: 0; }
  .c-hdr__search { padding-inline: 14px; border-top: 1px solid var(--ff-gray-800); }
    .c-hdr__nav { overflow-x: auto; scrollbar-width: none; }
  .c-hdr__nav::-webkit-scrollbar { display: none; }
  .c-hdr__nav-list li { flex: 0 0 auto; }
  .c-hdr__nav-list a { padding: 0 14px; font-size: .875rem; white-space: nowrap; }
}

/* ---------- Breadcrumb ---------- */

.c-breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: .25rem .5rem;
  margin: 0; padding: 1.25rem 0 0; list-style: none;
  font-size: .75rem; color: var(--ff-gray-600);
}
.c-breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--ff-gray-200); }
.c-breadcrumb a { text-decoration: none; }
.c-breadcrumb a:hover { text-decoration: underline; }
.c-breadcrumb [aria-current] { color: var(--ff-secondary); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Section title with arrow line (foot.fr .c-grp-title) ---------- */

.c-grp-title { display: flex; align-items: center; gap: 1.5rem; margin: 1.5rem 0; }
.c-grp-title__label { font-size: 1.75rem; line-height: 1.1; flex-shrink: 1; }
.c-grp-title__line {
  flex: 1; min-width: 48px; height: 20px;
  background: url("../img/arrow-title-blue.svg") right center / auto 20px no-repeat;
}

@media (max-width: 639.98px) {
  .c-grp-title { gap: 1rem; margin: 1rem 0; }
  .c-grp-title__label { font-size: 1.375rem; }
}

/* ---------- Listing ---------- */

.c-listing { padding-bottom: 4rem; }
.c-listing__hdr { margin-bottom: 2rem; }
.c-listing__desc { max-width: 70ch; color: var(--ff-gray-600); }
.c-listing__desc p { margin: 0; }

.c-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 1023.98px) { .c-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }
@media (max-width: 639.98px) { .c-grid { grid-template-columns: 1fr; } }

/* ---------- Post card (foot.fr .c-wp__item) ---------- */

.c-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--ff-white);
  border: 1px solid var(--ff-gray-100);
  overflow: hidden;
}
.c-card__thumb { position: relative; aspect-ratio: 3 / 2; background: var(--ff-gray-100); overflow: hidden; }
.c-card__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
@media (hover: hover) { .c-card:hover .c-card__img { transform: scale(1.04); } }
.c-card__tag { position: absolute; top: 0; left: 0; }
.c-card__body { display: flex; flex-direction: column; gap: .5rem; flex: 1; padding: 1rem; }
.c-card__title { font-size: 1rem; line-height: 1.25; letter-spacing: .02em; }
.c-card__link { text-decoration: none; }
.c-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
@media (hover: hover) {
  .c-card:hover .c-card__link { text-decoration: underline; text-decoration-color: var(--ff-primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
}
.c-card__excerpt { margin: 0; font-size: .875rem; line-height: 1.45; color: var(--ff-gray-600); }
.c-card__meta { margin: auto 0 0; padding-top: .25rem; font-size: .75rem; color: var(--ff-gray-600); }

.c-card--featured {
  display: grid; grid-template-columns: 3fr 2fr;
  margin-bottom: 1.5rem;
  background: var(--ff-secondary); color: var(--ff-white); border-color: var(--ff-secondary);
}
.c-card--featured .c-card__thumb { aspect-ratio: 16 / 9; }
.c-card--featured .c-card__img { object-position: center 30%; }
.c-card--featured .c-card__body { justify-content: center; gap: 1rem; padding: 2.5rem; }
.c-card--featured .c-card__title { font-size: 2rem; line-height: 1.1; }
.c-card--featured .c-card__excerpt { font-size: 1rem; color: #d6d6d6; }
.c-card--featured .c-card__meta { margin-top: 0; color: #bebebe; }
.c-card--featured .c-card__tag { background: var(--ff-primary); color: var(--ff-secondary); }

@media (max-width: 1023.98px) {
  .c-card--featured { grid-template-columns: 1fr; }
  .c-card--featured .c-card__thumb { aspect-ratio: 3 / 2; }
  .c-card--featured .c-card__body { padding: 1.25rem; }
  .c-card--featured .c-card__title { font-size: 1.375rem; }
}

/* ---------- Pagination ---------- */

.c-pagination ul { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin: 3rem 0 0; padding: 0; list-style: none; }
.c-pagination .page-numbers {
  display: flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 .5rem;
  border: 1px solid var(--ff-secondary);
  font-weight: 700; text-decoration: none;
}
.c-pagination .page-numbers.current,
.c-pagination a.page-numbers:hover { background: var(--ff-secondary); color: var(--ff-white); }
.c-pagination .page-numbers.dots { border: 0; }
.c-pagination .c-icon { width: 20px; height: 20px; }

/* ---------- Article ---------- */

.c-article__hdr { max-width: 900px; margin: 2rem auto 2rem; text-align: center; }
.c-article__hdr .c-tag { margin-bottom: 1rem; }
.c-article__title { font-size: 2.5rem; line-height: 1.1; }
.c-article__meta { margin: 1rem 0 0; font-size: .875rem; color: var(--ff-gray-600); }
.c-article__cover { margin: 0 auto 3rem; max-width: 1200px; }
.c-article__cover-img { display: block; width: 100%; max-height: 640px; object-fit: cover; }
.c-article__content { max-width: 760px; margin-inline: auto; }

.c-article__cover--small {
  position: relative; overflow: hidden;
  display: flex; justify-content: center;
  padding: 2rem 1rem;
  background: var(--ff-gray-100);
}
.c-article__cover--small::before {
  content: ""; position: absolute; inset: -40px;
  background: var(--cover) center / cover no-repeat;
  filter: blur(40px) saturate(1.2); opacity: .55;
}
.c-article__cover--small .c-article__cover-img {
  position: relative; width: auto; max-width: min(100%, 560px); max-height: 560px;
  object-fit: contain; box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}

@media (max-width: 639.98px) {
  .c-article__hdr { margin: 1.25rem 0 1.5rem; text-align: left; }
  .c-article__title { font-size: 1.625rem; }
  .c-article__cover { margin: 0 calc(var(--ff-gutter) * -1) 2rem; }
  .c-article__cover--small { padding: 1.25rem; }
}

/* Shop call-to-action block at the end of an article */
.c-cta {
  max-width: 760px; margin: 3rem auto 4rem; padding: 2rem;
  background: var(--ff-secondary); color: var(--ff-white);
  display: grid; gap: .75rem; justify-items: start;
}
.c-cta__title { margin: 0; font: 700 1.5rem/1.15 var(--ff-font-title); text-transform: uppercase; }
.c-cta__txt { margin: 0 0 .5rem; color: #d6d6d6; }

.c-related { padding: 1rem 0 4rem; background: var(--ff-gray-50); border-top: 1px solid var(--ff-gray-100); }

/* ---------- Search form / empty state ---------- */

.c-search { display: flex; gap: .5rem; max-width: 520px; margin: 1.5rem 0; }
.c-search input {
  flex: 1; min-width: 0; height: 48px; padding: 0 1rem;
  border: 1px solid var(--ff-secondary); border-radius: 0;
  font: 400 1rem var(--ff-font);
}
.c-empty { padding-bottom: 4rem; }

/* ---------- Footer ---------- */

.c-ftr { margin-top: 0; }

.c-reass { background: var(--ff-primary); color: var(--ff-secondary); }
.c-reass__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-block: 1.75rem; }
.c-reass__item { display: flex; align-items: center; justify-content: center; gap: .75rem; }
.c-reass__item p { margin: 0; font-size: .875rem; line-height: 1.3; }
.c-reass__item strong { display: block; font: 700 1.125rem/1.2 var(--ff-font-title); text-transform: uppercase; }
.c-reass__icon { width: 32px; height: 32px; }

.c-ftr__social { padding-block: 3rem 2rem; }
.c-ftr__title { margin: 0 0 1.25rem; font: 700 1.125rem/1.2 var(--ff-font-title); text-transform: uppercase; }
.c-ftr__social-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.c-ftr__social-item {
  display: flex; align-items: center; justify-content: center; height: 88px;
  border: 1px solid var(--ff-gray-100); background: var(--ff-gray-50);
}
.c-ftr__social-item:hover { border-color: var(--ff-secondary); }
.c-ftr__social-item .c-icon { width: 56px; height: 56px; }

.c-ftr__stores {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: 2.5rem;
  color: var(--ff-white);
  background: var(--ff-secondary) url("../img/store-bg.webp") right center / cover no-repeat;
  background-blend-mode: multiply;
}
.c-ftr__stores-title { margin: 0; font: 700 1.75rem/1.1 var(--ff-font-title); text-transform: uppercase; }
.c-ftr__stores-txt { margin: .5rem 0 0; color: #d6d6d6; }

.c-ftr__main {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  padding-block: 3rem;
  border-bottom: 1px solid var(--ff-gray-100);
}
.c-ftr__col-title { margin: 0 0 1rem; font: 700 .9375rem/1.2 var(--ff-font-title); text-transform: uppercase; }
.c-ftr__col-title a { text-decoration: none; }
.c-ftr__col-title a:hover { text-decoration: underline; text-decoration-color: var(--ff-primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.c-ftr__col ul { margin: 0; padding: 0; list-style: none; }
.c-ftr__col li { margin-bottom: .5rem; }
.c-ftr__col a { font-size: .875rem; text-decoration: none; color: var(--ff-gray-600); }
.c-ftr__col a:hover { color: var(--ff-secondary); text-decoration: underline; }

.c-ftr__copyright { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-block: 1.5rem 2rem; font-size: .75rem; color: var(--ff-gray-600); }
.c-ftr__copyright p { margin: 0; }
.c-ftr__copyright-logo { display: inline-flex; padding: .5rem .75rem; background: var(--ff-secondary); }
.c-ftr__copyright-logo .c-logo { width: 72px; }
.c-ftr__legal { display: flex; gap: 1rem; margin: 0 0 0 auto; padding: 0; list-style: none; }

@media (max-width: 1023.98px) {
  .c-reass__inner { grid-template-columns: 1fr; gap: .75rem; padding-block: 1.25rem; }
  .c-reass__item { justify-content: flex-start; }
  .c-ftr__social-list { gap: .5rem; }
  .c-ftr__social-item { height: 64px; }
  .c-ftr__social-item .c-icon { width: 40px; height: 40px; }
  .c-ftr__stores { padding: 1.75rem 1.25rem; }
  .c-ftr__stores-title { font-size: 1.375rem; }
  .c-ftr__main { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
