/* Groupe Albin Michel — feuille de style du site vitrine
   Tokens issus du design system Albin Michel (tokens.json). */

:root {
  /* Couleurs */
  --red: #ed1c2e;
  --darkRed: #c50e1e;
  --black: #000000;
  --white: #ffffff;
  --grey: #9999a1;
  --lightGrey-albin: #f8f8f8;
  --ligtehnGrey: #e0ded8;
  --darkGrey: #3a4246;
  
  /* Typographie */
  --font-title: "Georgia", "Times New Roman", serif;
  --font-base: "Lato", Arial, sans-serif;

  /* Espacements */
  --gutter: 30px;
  --wrapper-margin: 20px;
  --wrapper-max: 1112px;
  --section-y: 64px;

  /* Formes */
  --radius-4: 4px;
  --radius-pill: 40px;
  --shadowDarkSmall: 4px 4px 12px rgba(0, 0, 0, 0.25);
  --shadowDarkMedium: 0px 4px 25px rgba(0, 0, 0, 0.25);
  --shadowRedLarge: 0px 14px 40px -8px rgba(197, 14, 30, 0.35);
}

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

html { scroll-padding-top: 96px; }

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.5;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrapper {
  width: 100%;
  max-width: calc(var(--wrapper-max) + 2 * var(--wrapper-margin));
  margin: 0 auto;
  padding: 0 var(--wrapper-margin);
}

/* ---------- Header ---------- */
.Header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--ligtehnGrey);
}
.Header > .wrapper {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 80px;
}
.Header-logo { flex: none; }
.Header-logo img { height: 34px; width: auto; max-width: none; object-fit: contain; }
@media (min-width: 700px) { .Header-logo img { height: 40px; } }

/* ---------- Pôles ---------- */
.Pole { padding: var(--section-y) 0; }
.Pole + .Pole { border-top: 1px solid var(--ligtehnGrey); }
.Pole:nth-of-type(even) { background: var(--lightGrey-albin); }
@media (min-width: 1100px) { .Pole { padding: 96px 0; } }

.Pole-title {
  font-family: var(--font-title); font-weight: 400;
  font-size: 28px; line-height: 1.2;
  padding-bottom: 20px; margin-bottom: 40px;
  border-bottom: 1px solid var(--black);
}
@media (min-width: 700px) { .Pole-title { font-size: 36px; } }

/* ---------- Grille des maisons ---------- */
.Houses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}
.Houses + .Houses { margin-top: 48px; }
@media (min-width: 700px) { .Houses { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .Houses { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); } }

.House {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--ligtehnGrey);
  border-radius: var(--radius-4) 0 var(--radius-4) var(--radius-4);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.House:hover { box-shadow: var(--shadowDarkSmall); border-color: transparent; transform: translateY(-2px); }

.House-logo {
  display: flex; align-items: center; justify-content: center;
  height: 112px;
  padding: 16px 18px;
  text-decoration: none;
}
@media (min-width: 700px) { .House-logo { height: 140px; padding: 20px 24px; } }
.House-logo::after { /* toute la carte est cliquable */
  content: ""; position: absolute; inset: 0; z-index: 1;
}
.House-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .25s;
}
.House:hover .House-logo img { transform: scale(1.04); }

.House-linkedin {
  position: absolute; top: 6px; right: 6px; z-index: 2; /* au-dessus du lien principal */
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  color: var(--grey);
  transition: color .15s, background-color .15s;
}
.House-linkedin svg { width: 16px; height: 16px; fill: currentColor; }
.House-linkedin:hover { color: var(--white); background: var(--red); }

/* ---------- Pages de contenu (mentions, RGPD) ---------- */
.Prose { padding: var(--section-y) 0 96px; }
.Prose .wrapper { max-width: calc(900px + 2 * var(--wrapper-margin)); }
.Prose h2 {
  font-family: var(--font-title); font-weight: 400;
  font-size: 28px; line-height: 1.2; margin: 48px 0 16px;
}
@media (min-width: 700px) { .Prose h2 { font-size: 36px; } }
.Prose section:first-child h2 { margin-top: 0; }
.Prose h3 {
  font-family: var(--font-title); font-weight: 400;
  font-size: 22px; line-height: 1.3; margin: 40px 0 12px;
}
.Prose p, .Prose ul, .Prose address { margin-bottom: 16px; font-style: normal; }
.Prose ul { padding-left: 1.25em; }
.Prose li { margin-bottom: 6px; }
.Prose li::marker { color: var(--red); }
.Prose a { color: var(--darkRed); }

/* ---------- Footer ---------- */
.Footer {
  background: var(--black); color: var(--white);
  padding: 56px 0;
}
@media (min-width: 700px) { .Footer { padding: var(--section-y) 0; } }
.Footer > .wrapper {
  display: flex; justify-content: center;
}
.Footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; list-style: none; font-size: 14px; }
.Footer a { color: var(--grey); text-decoration: none; }
.Footer a:hover { color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
