@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: 12px;
  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;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background-color: #f0ebe3;
  background-image: url("UI/pages-crm/page-retour/fond-header-desktop.jpg?$staticlink$") !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Colonne image gauche — 52% */
.hero__img {
  width: 52%;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  /* Pas de background : le fond .hero est visible derrière si l'image ne charge pas */
}
.hero__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.hero__img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(170deg, #c8a898 0%, #a07060 40%, #7a4830 100%);
}

/* Colonne texte droite — 48% transparente, texture visible depuis .hero */
.hero__text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 60px;
  background: transparent;
}
.hero__text-inner { max-width: 300px; text-align: center; }
.hero__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #2c2521; margin-bottom: 20px;
}
.hero__tagline {
  font-family: 'Montserrat', sans-serif;
  font-style: italic; font-weight: 300;
  font-size: 12px; color: #2c2521;
}

/* ══ 2. TEXTE CENTRAL ══ */
.central {
  background: #FAF9F6;
  padding: 52px 20px 20px;
  text-align: center;
}
.central__inner { max-width: 900px; margin: 0 auto; }
.central__lead {
  font-family: 'Montserrat', sans-serif;
  font-style: italic; font-weight: 300;
  font-size: 14px; color: #2c2521;
  margin-bottom: 18px; line-height: 1.5;
}
.central__body {
  font-size: 14px; font-weight: 300; font-style: italic;
  color: #2c2521; margin-bottom: 10px;
}

/* ══ 3. TOGGLE ══ */
.toggle-nav {
  display: flex; justify-content: center; align-items: center;
  gap: 40px; padding: 14px 0 38px;
  background: #FAF9F6;
}
.toggle-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #7a6f6a; background: none; border: none;
  cursor: pointer; padding: 2px 0;
  transition: color 0.25s;
}
.toggle-btn.is-active {
  color: #2c2521;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* ══ 4. SECTION PRINCIPALE ══ */
.main-section {
  display: flex;
  align-items: stretch;
  background: #FAF9F6;
}

/* Colonne gauche — desktop uniquement */
.main-section__left {
  width: 30%;
  flex-shrink: 0;
  position: relative;
  min-height: 30vw;
  overflow: hidden;
}
.main-section__left-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: opacity 0.4s ease;
}
.main-section__left-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #d4c4b4 0%, #b09878 50%, #8a7050 100%);
}

/* Carte fidélité centrée — desktop */
.fidelite-card-inline {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 68%;
  background-image: url("UI/pages-crm/page-retour/fond-fid.jpg?$staticlink$");
  background-size: cover;
  background-position: center;
  background-color: #f5f0ea;
  padding: 24px 20px;
  z-index: 1;
  text-align: left;
}
.fidelite-card-inline__logo {
  width: 100px !important;
  max-width: 100px !important;
  height: 55px !important;
  max-height: 55px !important;
  object-fit: contain;
  display: block;
  margin: 35px auto 35px auto;
  flex-shrink: 0;
}
.fidelite-card-inline__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #2c2521; margin-bottom: 10px;
}
.fidelite-card-inline__body {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 300;
  color: #4a3f38; line-height: 1.5;
}
.fidelite-card-inline__body a {
  color: #4a3f38; text-decoration: underline;
  text-underline-offset: 3px;
}
.fidelite-card-inline__body a:hover { color: #8a3820; }

/* Carte fidélité mobile — masquée par défaut */
.fidelite-card-mobile { display: none; }

/* Colonne droite */
.main-section__right {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center;
  padding: 10px 24px 10px 34px;
}
.content-header { margin-bottom: 20px; text-align: center; }
.content-header__label {
  font-family: 'Montserrat', sans-serif;
  font-style: italic; font-weight: 300;
  font-size: 12px; color: #7a6f6a;
}
.content-header__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: #2c2521;
  margin-bottom: 20px;
}

/* Panneaux */
.content-panel { display: none; flex: 1; }
.content-panel.is-visible { display: flex; flex-direction: row; gap: 40px; }
.content-panel.fade-in { animation: fadeUp 0.35s ease forwards; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.info-col { flex: 1; }
.info-col__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #2c2521; margin-bottom: 12px;
}
.info-col__body {
  font-size: 14px; font-weight: 400;
  color: #4a3f38; line-height: 1.5; margin-bottom: 5px;
}
.info-col__list { list-style: none; margin: 5px 0; padding: 0; }
.info-col__list li {
  font-size: 14px; font-weight: 400;
  color: #4a3f38; line-height: 1.5;
  padding-left: 12px; position: relative; margin-bottom: 2px;
}
.info-col__list li::before { content: '·'; position: absolute; left: 0; }
.info-col__link {
  display: block; font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 3px;
  color: #2c2521; margin-top: 8px; line-height: 2;
}
.info-col__link:hover { color: #8a3820; }
.info-col__tag {
  display: block; font-size: 12px; font-weight: 400;
  letter-spacing: 0.1em; color: #7a6f6a;
  font-style: italic; margin-bottom: 4px;
}
.info-col__address {
  font-style: normal; color: #4a3f38;
  margin-top: 6px !important; line-height: 1.5;
}

/* Panneau web */
.web-panel { display: none; flex: 1; flex-direction: column; }
.web-panel.is-visible { display: flex; }
.web-panel.fade-in { animation: fadeUp 0.35s ease forwards; }
.web-panel__intro { margin-bottom: 20px; }
.web-panel__cols { display: flex; gap: 40px; flex: 1; }

/* CTA */
.panel-cta {
  display: inline-block; margin-top: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #2c2521; border: 1px solid #2c2521; padding: 10px 15px;
  transition: background 0.25s, color 0.25s;
}
.panel-cta:hover { background: #2c2521; color: #ffffff; }

/* ══ ESPACE entre section principale et footer ══ */
.section-spacer {
  height: 60px;
  background: #FAF9F6;
}

/* ══ 5. 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 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-family: 'Montserrat', sans-serif;
  font-size: 16px; 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-family: 'Montserrat', sans-serif;
  font-size: 12px; 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) {

  /* HERO mobile */
  .hero {
    height: auto;
    min-height: 200px;
    flex-direction: row;
    align-items: stretch;
  }
  .hero__img {
    width: 40%;
    min-height: 220px;
    flex-shrink: 0;
    padding: 20px 0 20px 20px;
  }
  .hero__text {
    width: 60%;
    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; letter-spacing: 0.1em; }
  .hero__tagline { font-size: 11px; line-height: 1.7; }

  /* TEXTE CENTRAL */
  .central {
    padding: 36px 20px 30px;
    text-align: left;
  }
  .central__lead { font-size: 12px; }
  .central__body { font-size: 12px; }

  /* TOGGLE */
  .toggle-nav {
    gap: 24px;
    padding-bottom: 28px;
    justify-content: center;
  }
  .toggle-btn { font-size: 12px; }

  /* SECTION PRINCIPALE */
  .main-section { flex-direction: column; }
  .main-section__left { display: none; }
  .main-section__right {
    padding: 32px 20px;
    width: 100%;
  }

  .content-header { text-align: center; }
  .content-header__label { font-size: 12px; }
  .content-header__title { font-size: 14px; }

  .content-panel.is-visible { flex-direction: column; gap: 28px; }
  .info-col__title { font-size: 12px; }
  .info-col__body { font-size: 12px; }
  .info-col__list li { font-size: 12px; }
  .web-panel__cols { flex-direction: column; gap: 28px; }

  /* CARTE FIDÉLITÉ MOBILE */
  .fidelite-card-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    width: 100%;
    min-height: 400px;
    aspect-ratio: 1 / 1;
    background-color: #d4c4b4;
    position: relative;
    overflow: hidden;
    padding: 28px;
  }
  .fidelite-card-mobile__photo {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: 0;
    transition: opacity 0.4s ease;
  }
  .fidelite-card-mobile__bg { display: none; }
  .fidelite-card-mobile__img { display: none; }
  .fidelite-card-mobile__content {
    position: relative;
    z-index: 2;
    background-color: #f5f0ea;
    overflow: hidden;
    padding: 36px 28px 40px;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .fidelite-card-mobile__texture {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
  }
  .fidelite-card-mobile__logo {
    width: 48px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px auto;
    position: relative; z-index: 1;
  }
  .fidelite-card-mobile__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: #2c2521; margin-bottom: 14px;
    text-align: left;
    position: relative; z-index: 1;
  }
  .fidelite-card-mobile__body {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px; font-weight: 300;
    color: #4a3f38; line-height: 1.7;
    text-align: left;
    position: relative; z-index: 1;
  }
  .fidelite-card-mobile__body a {
    color: #4a3f38; text-decoration: underline;
    text-underline-offset: 3px;
  }

  /* FOOTER */
  .footer-contact { min-height: 180px; }
  .footer-contact__hint { font-size: 12px; }
  .footer-contact__cta { font-size: 12px; }
  .section-spacer { height: 40px; }
}