/* =========================================================
   Centaure – Page d'accueil
   ========================================================= */

:root {
  --yellow: #ffde1a;
  --yellow-hover: #f5cf00;
  --black: #000;
  --white: #fff;
  --grey-bg: #f4f4f4;
  --grey-text: #555;
  --footer-text: #c9c9c9;
  --radius: 12px;
  --container: 1200px;
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.4;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  font-weight: 700;
  border-radius: 10px;
  transition: background-color .2s, transform .2s;
}
.btn--yellow { background: var(--yellow); color: var(--black); }
.btn--yellow:hover { background: var(--yellow-hover); transform: translateY(-1px); }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn--block { width: 100%; padding: 12px 10px; font-size: .9rem; white-space: nowrap; }
.btn__arrow { flex: none; display: block; width: 1.15em; height: 1.15em; }
.btn:hover .btn__arrow { transform: translateX(2px); transition: transform .2s; }

/* ---------- En-tête ---------- */
.header { background: var(--black); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 108px;
}
.header__logo img { width: 210px; height: auto; }
.header__nav { display: flex; align-items: center; gap: 52px; }
.header__link { color: var(--white); font-size: 1.2rem; }
.header__link:hover { color: var(--yellow); }
.header__cta { padding: 8px 28px; font-size: 1.2rem; border-radius: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  /* La photo occupe toute la hauteur de l'écran, moins le header (108px)
     et ~140px pour laisser apparaître le titre « Nos produits ». */
  height: calc(100vh - 108px - 140px);
  height: calc(100svh - 108px - 140px);
  min-height: 440px;
  display: flex;
  align-items: center;
  background: #2a2a2a;
  color: var(--white);
}
/* Fond flouté (même photo) pour combler la zone à gauche de la photo */
.hero::before {
  content: "";
  position: absolute;
  inset: -30px;
  background: url("../images/hero.jpg") left center / cover no-repeat;
  filter: blur(18px) brightness(.85);
}
/* Photo entière dans sa hauteur, calée à droite */
.hero__photo {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
  max-width: none;
  /* la photo commence toujours sous le panneau sombre (46 %),
     au plus tard à 40 % : le fondu de 100px reste caché sous le panneau,
     la partie visible à droite est 100 % nette */
  min-width: 60%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 100px);
          mask-image: linear-gradient(90deg, transparent 0, #000 100px);
  object-fit: cover;
  object-position: right 60%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  /* panneau sombre sur la partie gauche, comme sur la maquette */
  background: linear-gradient(90deg, rgba(0,0,0,.65) 0 46%, transparent 46% 100%);
}
.hero__content { position: relative; padding-top: 72px; padding-bottom: 72px; }
.hero__title {
  margin: 0 0 12px;
  max-width: 400px;
  font-size: clamp(1.8rem, 3.2vw, 2.15rem);
  line-height: 1.15;
  font-weight: 700;
}
.hero__text { margin: 0 0 28px; max-width: 380px; font-size: 1.1rem; line-height: 1.45; }
.hero__highlight { margin: 0 0 36px; font-size: 1.15rem; font-weight: 700; }

/* ---------- Produits ---------- */
.products { padding: 40px 0 40px; }
.section-title {
  margin: 0 0 16px;
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
}
.section-subtitle {
  margin: 0 0 32px;
  text-align: center;
  font-size: 1.3rem;
  color: var(--grey-text);
}
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--grey-bg);
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
}
.card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) var(--radius) var(--radius);
}
.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 20px 18px;
}
.card__title { margin: 0 0 12px; font-size: 1.3rem; font-weight: 700; }
.card__text { margin: 0 0 32px; color: var(--grey-text); font-size: .85rem; flex: 1; }

/* ---------- Bandeau réassurance ---------- */
.trust { background: var(--yellow); }
.trust__list {
  list-style: none;
  margin: 0 auto;
  padding-top: 26px;
  padding-bottom: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
}

/* ---------- Pied de page ---------- */
.footer { background: var(--black); color: var(--white); font-size: .95rem; line-height: 1.45; }
.footer .footer__inner { padding-top: 36px; padding-bottom: 40px; }
.footer__logo { display: inline-block; margin-bottom: 26px; }
.footer__logo img { width: 160px; height: auto; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 40px;
}
.footer p, .footer ul, .footer address { margin: 0; }
.footer .footer__col > * + * { margin-top: 22px; }
.footer__title { display: block; font-weight: 700; color: var(--white); }
.footer address { font-style: normal; }
.footer a:hover { color: var(--yellow); }
.footer__mail { text-decoration: underline; text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 3px; }
.footer__mail:hover { text-decoration-color: var(--yellow); }

.footer__social { list-style: none; padding: 0; display: flex; gap: 12px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.6);
  color: var(--white);
  transition: background-color .2s, color .2s, border-color .2s;
}
.footer__social a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.footer__social svg { width: 20px; height: 20px; fill: currentColor; }

.footer__legal { display: flex; flex-direction: column; font-weight: 700; }
.footer__copy { font-size: .8rem; color: #bdbdbd; }

/* ---------- Pages de contenu (mentions légales, confidentialité…) ---------- */
.page-header {
  background: var(--black);
  color: var(--white);
  border-top: 1px solid #222;
  padding: 56px 0 48px;
}
.breadcrumb { margin: 0 0 14px; font-size: .85rem; color: var(--footer-text); }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb span[aria-hidden] { margin: 0 6px; }
.page-header__title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.15;
}
.page-header__title::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  margin-top: 18px;
  background: var(--yellow);
  border-radius: 3px;
}
.page-header__meta { margin: 16px 0 0; font-size: .9rem; color: var(--footer-text); }

.content-page { padding: 48px 0 72px; }
.content-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

/* Sommaire */
.toc {
  position: sticky;
  top: 24px;
  background: var(--grey-bg);
  border-radius: var(--radius);
  padding: 20px 22px;
  font-size: .88rem;
}
.toc__title { margin: 0 0 12px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--grey-text); }
.toc a:hover { color: var(--black); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }

/* Texte */
.prose { max-width: 780px; color: #222; line-height: 1.65; }
.prose section { scroll-margin-top: 24px; }
.prose section + section { margin-top: 44px; }
.prose h2 {
  margin: 0 0 16px;
  padding-left: 14px;
  border-left: 5px solid var(--yellow);
  font-size: 1.4rem;
  line-height: 1.25;
  color: var(--black);
}
.prose h3 { margin: 24px 0 8px; font-size: 1.05rem; color: var(--black); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { background: var(--yellow); }

.info-card {
  background: var(--grey-bg);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 14px;
}
.info-card dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; }
.info-card dt { font-weight: 700; color: var(--black); }
.info-card dd { margin: 0; }

.data-table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: .92rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid #e2e2e2; }
.data-table thead th { background: var(--black); color: var(--white); font-weight: 700; }
.data-table thead th:first-child { border-top-left-radius: 8px; }
.data-table thead th:last-child { border-top-right-radius: 8px; }
.table-wrap { overflow-x: auto; }

/* Texte à compléter : surligné pour être repéré facilement. Retirez la classe une fois rempli. */
.todo { background: #fff3a6; padding: 0 3px; border-radius: 3px; font-style: normal; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .hero { height: auto; min-height: 460px; }
  .hero::before { inset: 0; filter: none; background-position: 70% center; }
  .hero__photo { display: none; }
  .hero__overlay { background: rgba(0,0,0,.55); }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .header__inner { min-height: 88px; }
  .header__logo img { width: 170px; }
  .header__nav { gap: 32px; }
  .header__cta { padding: 8px 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .content-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .header__inner { min-height: 76px; }
  .header__logo img { width: 130px; }
  .header__nav { gap: 16px; }
  .header__link { font-size: 1.05rem; }
  .header__cta { padding: 7px 14px; font-size: 1.05rem; }
  .section-subtitle { font-size: 1.1rem; }
  .hero__text { margin-bottom: 32px; }
  .products__grid { grid-template-columns: 1fr; }
  .trust__list {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 10px;
    padding-top: 18px;
    padding-bottom: 18px;
    font-size: .8rem;
    line-height: 1.25;
  }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer .footer__inner { padding-top: 32px; padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .page-header { padding: 40px 0 36px; }
  .info-card dl { grid-template-columns: 1fr; gap: 2px; }
  .info-card dd { margin-bottom: 8px; }
}

/* Repère « à compléter » lisible sur fond noir */
.page-header .todo { color: var(--black); }
.prose > p:first-child { margin-bottom: 32px; }
