@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,300;0,400;0,500;0,600;1,200;1,300;1,400&display=swap');

/* ══ RESET ══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #FAF9F6;
  color: #2c2521;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ══ 1. HERO ══ */
.hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  background-color: #FAF9F6;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__img {
  position: absolute;
  top: 0; left: 0;
  width: 52%; height: 100%;
  overflow: hidden;
}
.hero__img picture {
  display: block;
  width: 100%; height: 100%;
}
.hero__img picture img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.hero__text {
  position: absolute;
  top: 0; right: 0;
  width: 48%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 60px;
}
.hero__text-inner { max-width: 300px; text-align: center; }
.hero__title {
  font-size: 18px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #2c2521; margin-bottom: 20px;
}
.hero__tagline {
  font-style: italic; font-weight: 300;
  font-size: 14px; color: #2c2521;
}

/* ══ 2. TEXTE CENTRAL ══ */
.central {
  background: #FAF9F6;
  padding: 52px 20px 65px;
  text-align: center;
}
.central__inner { max-width: 900px; margin: 0 auto; }
.central__lead {
  font-style: italic; font-weight: 300;
  font-size: 14px; color: #2c2521;
  margin-bottom: 18px; line-height: 1.6;
}
.central__body {
  font-size: 14px; font-weight: 300; font-style: italic;
  color: #2c2521; margin-bottom: 10px; line-height: 1.6;
}

/* ══ 3. SECTION LIVRAISON ══ */
.livraison {
  background: #FAF9F6;
  padding-bottom: 60px;
}
.livraison__inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

/* ── Grille 4 tuiles ── */
.livraison__tiles {
  width: 700px;
  min-width: 700px;
  display: grid;
  grid-template-columns: 350px 350px;
  grid-template-rows: 300px 300px;
  flex-shrink: 0;
}

.tile {
  width: 350px;
  height: 300px;
  position: relative;
  overflow: hidden;
}
.tile:nth-child(1) { border-right: 3px solid #FAF9F6; border-bottom: 3px solid #FAF9F6; }
.tile:nth-child(2) { border-bottom: 3px solid #FAF9F6; }
.tile:nth-child(3) { border-right: 3px solid #FAF9F6; }

.tile__img {
  position: absolute;
  inset: 0;
}
.tile__img picture {
  display: block;
  width: 100%; height: 100%;
}
.tile__img picture img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.tile__content {
  position: relative; z-index: 1;
  padding: 20px 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.tile__label {
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #2c2521; margin-bottom: 8px;
}
.tile__desc {
  font-size: 14px; font-weight: 300;
  color: #2c2521; line-height: 1.7;
}

/* ── Panneau Suivi Commande ── */
.livraison__suivi {
  flex: 1;
  background: #FAF9F6;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-left: 1px solid #e0d8d0;
  min-width: 0;
}
.suivi__title {
  font-size: 16px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #2c2521; margin-bottom: 22px;
}
.suivi__body {
  font-size: 14px; font-weight: 300;
  color: #4a3f38; line-height: 1.75;
  margin-bottom: 14px;
}
.suivi__cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #2c2521; border: 1px solid #2c2521;
  padding: 10px 22px;
  transition: background 0.25s, color 0.25s;
  align-self: flex-start;
}
.suivi__cta:hover { background: #2c2521; color: #ffffff; }

/* ══ 4. FOOTER CONTACT ══ */
.footer-contact {
  position: relative; overflow: hidden;
  min-height: 350px;
  display: flex; align-items: center; justify-content: center;
}
.footer-contact__bg {
  position: absolute; inset: 0; z-index: 0;
}
.footer-contact__bg picture {
  display: block;
  width: 100%; height: 100%;
}
.footer-contact__bg picture img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.footer-contact__bg-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #c8b09890 0%, #a07860 50%, #7a5840 100%);
}
.footer-contact__overlay { position: absolute; inset: 0; z-index: 1; }
.footer-contact__content {
  position: relative; z-index: 2;
  text-align: center; padding: 48px 20px;
}
.footer-contact__hint {
  font-size: 15px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.85); margin-bottom: 18px;
}
.footer-contact__cta {
  display: inline-block;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #ffffff; border: 1px solid rgba(255,255,255,0.7);
  padding: 10px 15px;
  transition: background 0.3s, border-color 0.3s;
}
.footer-contact__cta:hover {
  background: rgba(255,255,255,0.15); border-color: #ffffff;
}

/* ══ RESPONSIVE 768px ══ */
@media (max-width: 768px) {

  .hide-mobile { display: none !important; }

  /* ── Hero ── */
  .hero {
    height: auto;
    min-height: 200px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background-size: cover;
    background-position: center;
  }
  .hero__img {
    position: relative;
    top: auto; left: auto;
    width: 40%; height: auto;
    min-height: 220px;
    flex-shrink: 0;
    padding: 20px 0 20px 20px;
  }
  .hero__img picture { width: 100%; height: 100%; }
  .hero__img picture img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
  }
  .hero__text {
    position: relative;
    top: auto; right: auto;
    width: 60%; height: auto;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 24px 24px 28px 16px;
  }
  .hero__text-inner { text-align: right; max-width: 100%; }
  .hero__title { font-size: 13px; margin-bottom: 12px; }
  .hero__tagline { font-size: 11px; line-height: 1.7; }

  /* ── Central ── */
  .central { padding: 36px 20px 30px; text-align: left; }
  .central__lead { font-size: 12px; }
  .central__body { font-size: 12px; }

  /* ── Livraison ── */
  .livraison { padding-bottom: 40px; }
  .livraison__inner { flex-direction: column; }

  .livraison__tiles {
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: 1fr 1fr !important;
    /* hauteur auto : chaque tuile s'adapte à son contenu */
    grid-template-rows: auto !important;
  }

  /* ── Tuile : image en fond via pseudo-élément, hauteur pilotée par le contenu ── */
  .tile {
    width: auto !important;
    height: auto !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /*
   * L'image reste en position absolue grâce à un ::before qui étire la tuile.
   * La tuile grandit avec le texte ; l'image suit via inset:0.
   */
  .tile::before {
    content: '';
    display: block;
    /* ratio 3:4 comme référence visuelle minimale */
    padding-bottom: 133%;
    pointer-events: none;
  }

  .tile__img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
  }
  .tile__img picture {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }
  .tile__img picture img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }

  /*
   * Le contenu est en absolu et couvre toute la tuile.
   * La tuile elle-même s'étire grâce au ::before + au contenu absolu
   * via position:absolute + min-height:100%.
   * Pour que ça fonctionne : on utilise position relative sur .tile
   * et on laisse le contenu pousser la hauteur avec padding seul.
   */
  .tile__content {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding: 14px 12px 18px !important;
  }

  .tile__label { font-size: 11px !important; margin-bottom: 6px !important; }
  .tile__desc  { font-size: 11px !important; line-height: 1.6 !important; }

  /* ── Suivi ── */
  .livraison__suivi {
    border-left: none;
    border-top: 1px solid #e0d8d0;
    padding: 26px 20px;
  }
  .suivi__title { font-size: 12px; }
  .suivi__body  { font-size: 12px; }
  .suivi__cta   { font-size: 12px; }

  /* ── Footer contact ── */
  .footer-contact { min-height: 180px; }
  .footer-contact__bg picture { width: 100%; height: 100%; }
  .footer-contact__bg picture img { width: 100%; height: 100%; object-fit: cover; }
  .footer-contact__hint { font-size: 12px; }
  .footer-contact__cta  { font-size: 12px; }
}