:root {
  --bg: #fbfaf5;
  --paper: #fbfaf5;
  --paper-soft: #f6f0df;
  --sand: #ece6c8;
  --sand-strong: #ded2a7;
  --ink: #2f2b24;
  --muted: #70695e;
  --line: #ddd4b8;
  --blue: #7bbbc7;
  --rose: #c96f5f;
  --green: #6d8b68;
  --shadow: 0 18px 50px rgba(47, 43, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 32px;
  background: rgba(251, 250, 245, 0.92);
  border-bottom: 1px solid rgba(221, 212, 184, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: "Lora", Georgia, serif;
  font-size: clamp(15px, 2.6vw, 26px);
  font-style: italic;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0;
  white-space: nowrap;
  /* Sur très petit écran, le texte peut rester légèrement trop large même
     à la taille minimale du clamp ci-dessus. Sans ces 3 lignes, un élément
     flex en white-space:nowrap ne se comprime jamais en dessous de la
     largeur de son contenu (min-width:auto par défaut), ce qui pousse le
     header — et donc toute la page — juste au-delà de la largeur de
     l'écran (léger ascenseur horizontal). On autorise ici une troncature
     propre avec une ellipse plutôt qu'un débordement invisible. */
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--ink);
  background: var(--sand);
  outline: none;
}


.footer-nav-extra {
  display: none;
}
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.menu-button span:not(.sr-only) {
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.hero {
  overflow: hidden;
  background: var(--paper-soft);
}

.hero-media {
  width: 100%;
  background: #244032;
}

.hero-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 30px;
  color: var(--ink);
}

.hero-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: 48px;
  align-items: start;
}

.hero-updates h2 {
  margin-bottom: 20px;
}

.hero-updates .update-item {
  background: var(--paper);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--rose);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  max-width: 1040px;
  margin-bottom: 18px;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(48px, 8vw, 56px);
  font-weight: 600;
}

h2 {
  margin-bottom: 0;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 600;
}

h3 {
  font-size: 21px;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  background: var(--blue);
  color: #102326;
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 254, 249, 0.72);
}

.section {
  padding: 36px 0;
}

.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.intro-section {
  background: var(--sand);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: 48px;
  align-items: center;
}

.intro-grid p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.feature-tile {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.feature-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.feature-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(47, 43, 36, 0), rgba(47, 43, 36, 0.34));
}

.feature-tile span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  color: #fffdf3;
  font-family: "Lora", Georgia, serif;
  font-size: 30px;
  font-weight: 600;
}

.feature-tile:hover img,
.feature-tile:focus-visible img {
  transform: scale(1.04);
}

.feature-tile:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.updates-section {
  background: var(--paper-soft);
}

.updates-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.update-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.update-item time {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.update-item h3 {
  margin-bottom: 10px;
}

.update-item h3 a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.update-item p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 32px;
  background: var(--ink);
  color: #fffdf3;
}

.footer-brand {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(14px, 2.2vw, 20px);
  font-style: italic;
  white-space: nowrap;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: rgba(255, 253, 243, 0.76);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fffdf3;
}

@media (max-width: 860px) {
  .site-header {
    min-height: 64px;
    padding: 0 20px;
  }

  .menu-button {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .hero-content {
    padding: 22px 0 28px;
  }

  .hero-text {
    font-size: 18px;
  }

  .intro-grid,
  .hero-columns,
  .updates-list {
    grid-template-columns: 1fr;
  }

  .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-tile {
    min-height: 220px;
  }

  .site-footer {
    align-items: stretch;
    flex-direction: column;
    padding: 20px 16px;
    gap: 10px;
  }

  .footer-brand {
    display: none;
  }

  .footer-content nav {
    justify-content: center;
    gap: 4px 10px;
  }

  .footer-content nav a {
    font-size: 13px;
    white-space: nowrap;
  }

  .footer-content nav a:nth-child(3) {
    flex-basis: 100%;
    text-align: center;
  }

  .footer-nav-extra {
    display: inline-block;
  }

  .site-footer.footer-img .footer-content {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 52px 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-tile {
    min-height: 150px;
  }
}

/* Footer image de fond */
.site-footer.footer-img {
  background-image: url("../../uploads/bache-200x100-b-ssc_red2560px.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-color: transparent;
  min-height: 120px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  position: relative;
}
.site-footer.footer-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}
.site-footer.footer-img .footer-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.site-footer.footer-img .footer-brand {
  color: white;
}
.site-footer.footer-img nav a {
  color: rgba(255,255,255,0.9);
}
.site-footer.footer-img nav a:hover {
  color: white;
}
