/* ==========================================================================
   The Kase — feuille de styles
   Maquettes : desktop 1680px (contenu 1536px) / mobile 360px (contenu 328px)
   ========================================================================== */

/* ---------- Polices ---------- */
@font-face {
  font-family: "Proxima Nova";
  src: url("../fonts/ProximaNova-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Proxima Nova";
  src: url("../fonts/ProximaNova-Semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Proxima Nova";
  src: url("../fonts/ProximaNova-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  --gold: #bc9b6a;
  --gold-30: rgba(188, 155, 106, 0.3);
  --ink: #242424;
  --white: #fafafa;
  --bg: #fbf6ee;
  --grey: #c0c0c0;
  --grey-text: #a0a0a0;
  --bullet: #d9d9d9;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.1);

  --container: 1536px;
  --gutter: 72px;
  --section-gap: 96px;

  --font: "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
  --font-legal: "Sora", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol { margin: 0; }
ul, ol { padding: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

body.is-locked { overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Conteneur & typographie ---------- */
.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.title-36 { font-size: 36px; line-height: 48px; font-weight: 700; }
.text-16 { font-size: 16px; line-height: 24px; font-weight: 400; }

/* Les sections de la home sont espacées de 96px (48px en mobile) */
.home-main { display: flex; flex-direction: column; gap: var(--section-gap); }
.home-main > section { scroll-margin-top: 24px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border: 0;
  border-radius: 50px;
  background: var(--gold);
  color: var(--white);
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: #a9895a; }
.btn:active { transform: translateY(1px); }

.btn--dark { background: var(--ink); width: 294px; max-width: 100%; }
.btn--dark:hover { background: #000; }

.btn--wide { width: 294px; max-width: 100%; /*border-radius: 25px;*/ }

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--gold);
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  white-space: nowrap;
}

/* ---------- Images recadrées (reprend les cadrages Figma) ---------- */
.media {
  position: relative;
  overflow: hidden;
}
.media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--ox, 50%) var(--oy, 50%);
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  transform: scale(var(--z, 1));
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: relative; z-index: 20; }
.site-header--bordered { border-bottom: 1px solid var(--grey); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px 0 32px;
}

.logo { display: block; flex: none; }
.logo img { width: 188px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 48px; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 56px;
  list-style: none;
}
.site-nav__link {
  font-weight: 700;
  font-size: 16px;
  line-height: normal;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.site-nav__link:hover { color: var(--gold); }

.burger {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
}
.burger svg { width: 32px; height: 32px; display: block; }
.burger .icon-close { display: none; }
.site-header.is-open .burger .icon-open { display: none; }
.site-header.is-open .burger .icon-close { display: block; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  height: 422px;
  padding: 56px 71px;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}
.hero__content { display: flex; flex-direction: column; gap: 56px; align-items: flex-start; }
.hero__text { display: flex; flex-direction: column; gap: 32px; width: 673px; max-width: 100%; }
.hero__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.hero__tag {
  padding: 4px 16px;
  background: rgba(188, 155, 106, 0.4);
  color: var(--white);
}
.hero__title { color: var(--white); width: 667px; max-width: 100%; }

/* ==========================================================================
   Matériaux (Nos produits)
   ========================================================================== */
.materials { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.materials__title { align-self: stretch; }
.materials__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  width: 100%;
}
.material-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border-radius: 16px;
  background: var(--white);
}
.material-card__img { height: 234px; border-radius: 16px; }
.material-card__label { color: var(--gold); }
.material-card__body { display: flex; flex-direction: column; gap: 16px; }

/* ==========================================================================
   Chiffres clés
   ========================================================================== */
.stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 32px;
  border-radius: 32px;
  background: var(--gold-30);
  box-shadow: var(--shadow);
}
.stats__intro { display: flex; flex-direction: column; gap: 24px; flex: 0 1 467px; }
.stats__intro p { max-width: 429px; }
.stats__list {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex: 0 1 858px;
  list-style: none;
}
.stats__item { display: flex; flex-direction: column; gap: 16px; flex: 1 1 250px; min-width: 0; }
.stats__item:nth-child(1) p { max-width: 259px; }
.stats__item:nth-child(3) p { max-width: 224px; }
.stats__value {
  color: var(--gold);
  font-weight: 700;
  font-size: 80px;
  line-height: normal;
  white-space: nowrap;
}
.stats__divider {
  flex: none;
  align-self: stretch;
  width: 1px;
  min-height: 168px;
  background: var(--gold);
}

/* ==========================================================================
   Catégories (carrousel)
   ========================================================================== */
.categories { display: flex; flex-direction: column; gap: 32px; }
.categories__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }

.scroller {
  display: flex;
  gap: 16px;
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
.scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.scroller.is-dragging * { pointer-events: none; }

@media (min-width: 1024px) {
  .materials__track.scroller {
    display: grid;
    overflow: visible;
    scroll-snap-type: none;
    cursor: auto;
  }
}

.categories__track {
  /* espace pour l’ombre portée des cartes */
  padding-bottom: 14px;
  margin-bottom: -14px;
}
.cat-card {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}
.cat-card__img { height: 124px; border-radius: 24px 24px 0 0; }
.cat-card__body {
  flex: 1;
  padding: 32px;
  border-radius: 0 0 24px 24px;
  background: var(--white);
}
.cat-card__inner { display: flex; flex-direction: column; gap: 8px; min-height: 72px; }
.cat-card__title { font-weight: 700; font-size: 16px; line-height: normal; }

/* ==========================================================================
   Reconditionné / Reprise
   ========================================================================== */
.offers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: start;
}
.offer-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 56px;
  border-radius: 32px;
  background: var(--white);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
  scroll-margin-top: 24px;
}
.offer-card--fixed { min-height: 823px; }
.offer-card__img { height: 343px; border-radius: 16px; }
.offer-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.bullets { display: flex; flex-direction: column; gap: 16px; list-style: none; }
.bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bullets li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bullet);
}

/* ==========================================================================
   Instagram
   ========================================================================== */
.insta { display: flex; flex-direction: column; align-items: center; gap: 48px; }
.insta__body { display: flex; flex-direction: column; gap: 48px; width: 100%; }
.insta__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.insta__handle {
  padding: 8px 16px;
  background: rgba(188, 155, 106, 0.1);
  color: var(--gold);
  transition: background-color 0.2s ease;
}
.insta__handle:hover { background: rgba(188, 155, 106, 0.2); }
.insta__track { display: flex; gap: 16px; width: 100%; }
.insta__item {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 294.48 / 306.332;
  border-radius: 14.587px 14.587px 0 0;
  overflow: hidden;
}
.insta__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.insta__item:hover img { transform: scale(1.03); }

/* ==========================================================================
   Bandeau service client
   ========================================================================== */
.contact-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 32px;
  border-radius: 24px;
  background: var(--gold);
  color: var(--white);
}
.contact-banner__text { max-width: 1138px; }
.contact-banner__text strong { font-weight: 700; }
.contact-banner .btn--dark { flex: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 79px;
  margin-top: var(--section-gap);
  padding: 80px 0 24px;
  background: var(--white);
}
.site-footer--legal { gap: 39px; padding: 50px 0; margin-top: 48px; }
.site-footer__brand { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.site-footer__brand .logo img { width: 188px; }
.site-footer__legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-family: var(--font-legal);
  font-size: 12px;
  line-height: normal;
  text-align: center;
}
.site-footer__copy { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  list-style: none;
}
.site-footer__links a,
.site-footer__links button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-decoration: underline;
  text-underline-position: from-font;
}
.site-footer__links a:hover,
.site-footer__links button:hover { color: var(--gold); }

/* ==========================================================================
   Modale « Contactez-nous »
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 15px;
  background: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal__box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 657px;
  max-width: 100%;
  margin: auto;
  padding: 32px;
  border-radius: 16px;
  background: var(--white);
  transform: translateY(12px);
  transition: transform 0.25s ease;
}
.modal.is-open .modal__box { transform: none; }

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
}
.modal__close:hover { background: rgba(0, 0, 0, 0.05); }

.contact-form { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; }
.contact-form__main { display: flex; flex-direction: column; gap: 32px; width: 100%; }
.contact-form__head { display: flex; flex-direction: column; gap: 16px; padding-right: 24px; }
.contact-form__intro,
.contact-form__help { font-size: 14px; line-height: normal; }
.contact-form__fields { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 16px; }
.field__label { font-weight: 700; font-size: 16px; line-height: normal; }
.field__control {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--grey);
  border-radius: 8px;
  background: transparent;
  font-size: 16px;
  line-height: 24px;
  outline: none;
  transition: border-color 0.2s ease;
}
.field__control::placeholder { color: var(--grey-text); opacity: 1; }
.field__control:focus { border-color: var(--gold); }
.field__control:user-invalid { border-color: #c0392b; }
textarea.field__control { height: 151px; resize: vertical; }
.field__textarea-wrap { display: flex; flex-direction: column; gap: 8px; }
.field__counter { color: var(--grey-text); font-size: 14px; line-height: normal; text-align: right; }

.contact-form__submit { border-radius: 25px; font-weight: 600; line-height: normal; border: 1px solid var(--gold); }

.contact-form__notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  color: #000;
  font-size: 14px;
  line-height: normal;
}
.contact-form__notes p:last-child { line-height: 18px; }

/* ==========================================================================
   Pages légales
   ========================================================================== */
.legal-main { display: flex; flex-direction: column; gap: 48px; padding-top: 48px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); text-decoration: underline; }
.legal { display: flex; flex-direction: column; gap: 24px; }
.legal--sections { gap: 56px; }
.legal__block { display: flex; flex-direction: column; gap: 24px; }

.legal__content { overflow-wrap: anywhere; }
.legal__content p { margin-bottom: 24px; }
.legal__content p.tight { margin-bottom: 0; }
.legal__content h2,
.legal__content h3 { font-size: 16px; line-height: 24px; font-weight: 700; margin: 24px 0; }
.legal__content h3 { margin-top: 0; }
.legal__content > :first-child { margin-top: 0; }
.legal__content strong { font-weight: 700; }
.legal__content a { text-decoration: underline; text-underline-position: from-font; }
.legal__content a:hover { color: var(--gold); }
.legal__content ul,
.legal__content ol { margin: 0 0 24px; padding-left: 24px; }
.legal__content ul { list-style: disc; }
.legal__content li + li { margin-top: 0; }
.legal__content ol.toc { list-style: decimal; font-weight: 700; }
.legal__content ul.toc--plain { list-style: none; padding-left: 0; }
.legal__content ul.toc--plain > li { font-weight: 700; }
.legal__content ul.toc--plain > li.sub { font-weight: 400; }
.legal__content .placeholder { color: #f00; font-weight: 700; text-decoration: underline; }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* --- Menu burger sous 1200px --- */
@media (max-width: 1199px) {
  :root { --gutter: 32px; }

  .burger { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px var(--gutter) 32px;
    background: var(--bg);
    border-bottom: 1px solid var(--grey);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .site-header.is-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav__list { flex-direction: column; align-items: flex-start; gap: 24px; }
  .site-nav .btn { align-self: flex-start; }

  .stats { flex-direction: column; align-items: stretch; }
  .stats__intro { flex: none; }
  .stats__list { flex: none; }
}

@media (max-width: 1023px) {
  .materials__track {
    display: flex;
    gap: 16px;
  }
  .material-card { flex: 0 0 min(443px, 85%); }

  .offers { grid-template-columns: 1fr; gap: 48px; }
  .offer-card--fixed { min-height: 0; }

  .contact-banner { flex-direction: column; align-items: flex-start; }
}

/* --- Mobile (maquette 360px) --- */
@media (max-width: 767px) {
  :root {
    --gutter: 16px;
    --section-gap: 48px;
  }

  .title-36 { font-size: 24px; line-height: 32px; }

  /* Header */
  .site-header__inner { padding: 24px 0; }
  .site-header__inner .logo img { width: 94px; }
  .site-nav { padding: 24px var(--gutter) 32px; }

  /* Hero */
  .hero-wrap { padding-inline: 9px; }
  .hero {
    justify-content: center;
    align-items: center;
    height: auto;
    min-height: 357px;
    padding: 56px 16px;
  }
  .hero__bg img { object-position: 22% center; }
  .hero__content { gap: 24px; align-items: stretch; width: 100%; }
  .hero__text { gap: 16px; width: 100%; }
  .hero__tags { flex-direction: column; align-items: flex-start; }
  .hero__title { font-size: 24px; line-height: 32px; width: 100%; }
  .hero .btn { width: 100%; padding-inline: 16px; }

  /* Matériaux : carrousel de cartes compactes */
  .materials__track { align-items: stretch; }
  .material-card {
    flex: 0 0 265px;
    gap: 13px;
    padding: 13px;
    border-radius: 8.654px;
  }
  .material-card__img { height: 126.56px; border-radius: 8.654px; }
  .material-card__body { gap: 8.654px; }
  .material-card__title { font-size: 16px; line-height: normal; }

  /* Chiffres clés */
  .stats {
    gap: 32px;
    padding: 32px 24px;
  }
  .stats__intro { gap: 16px; }
  .stats__list { flex-direction: column; gap: 16px; }
  .stats__item { flex: none; }
  .stats__value { font-size: 36px; line-height: 48px; }
  .stats__divider { width: 100%; height: 1px; min-height: 0; align-self: auto; }

  /* Offres */
  .offer-card { padding: 32px 24px; border-radius: 24px; }
  .offer-card .media > img {
    object-position: var(--mox) var(--moy);
    transform-origin: var(--mox) var(--moy);
    transform: scale(var(--mz));
  }

  /* Instagram */
  .insta { gap: 48px; }
  .insta__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .insta__track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .insta__track::-webkit-scrollbar { display: none; }
  .insta__item { flex: 0 0 215.743px; border-radius: 10.687px 10.687px 0 0; scroll-snap-align: start; }
  .insta__body { display: flex; flex-direction: column; gap: 32px; width: 100%; }

  /* Bandeau contact */
  .contact-banner { gap: 24px; padding: 24px; }
  .contact-banner .btn--dark { width: 277px; border-radius: 25px; }

  /* Footer (encart dans la marge, comme la maquette mobile) */
  .site-footer {
    width: calc(100% - 2 * var(--gutter));
    margin-inline: auto;
    gap: 24px;
    padding: 24px 0;
  }
  .site-footer__brand p { max-width: 288px; }
  .site-footer__links { max-width: 294px; }
  .site-footer--legal { gap: 24px; padding: 24px 0; }

  /* Modale */
  .modal__box { width: 330px; padding: 24px; }
  .contact-form__main { gap: 24px; }
  .contact-form__head { gap: 8px; }
  .modal__title { font-size: 24px; line-height: 32px; }

  /* Pages légales */
  .legal-main { gap: 32px; padding-top: 24px; }
  .legal--sections { gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}




.table-responsive {
    width: 100%;
}

.table-responsive table {
    border-collapse: collapse;
}

@media (max-width: 760px) {
	.table-responsive {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	
	.table-responsive table {
		width: max-content;
		min-width: 100%;
	}
	
	.table-responsive table td {
		white-space: normal;
		max-width: 300px;
		overflow-wrap: anywhere;
	}
	
}