@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$");
  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;
}
.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;
  flex-direction: column;
  align-items: stretch;
  background: #FAF9F6;
  max-width: 1600px;
  margin: 0 auto;
}

/* Colonne gauche — desktop uniquement */
/* La hauteur n'est PAS fixée ici : grâce à align-items:stretch sur .main-section,
   ce bloc épouse automatiquement la hauteur du texte de droite (.main-section__right).
   L'image de fond (object-fit:cover) remplit cette hauteur quelle qu'elle soit. */
.main-section__left {
  display: none; /* réactivé uniquement à partir de 1400px, voir media query en bas du fichier */
  width: 30%;
  flex-shrink: 0;
  position: relative;
  min-height: 340px;
}
.main-section__left-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 15%; 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 — TOUJOURS CARRÉE, texture en image superposée */
.fidelite-card-inline {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 68%;
  min-height: 260px; /* plancher esthétique seulement : la hauteur réelle suit le texte (height:auto) */
  display: flex;
  flex-direction: column;
  justify-content: center;
  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;
  position: relative;
  z-index: 1;
}
.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;
  position: relative;
  z-index: 1;
}
.fidelite-card-inline__body {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 300;
  color: #4a3f38; line-height: 1.5;
  position: relative;
  z-index: 1;
}
.fidelite-card-inline__body a {
  color: #4a3f38; text-decoration: underline;
  text-underline-offset: 3px;
}
.fidelite-card-inline__body a:hover { color: #8a3820; }

/* Repli si la texture ne charge pas (desktop) */
.fidelite-card-inline.is-no-texture {
  background-image: none;
  background: linear-gradient(160deg, #e8ddd0 0%, #d4c4b4 50%, #b8a488 100%);
}

/* Carte fidélité "safe" — affichée PAR DÉFAUT sur toutes les tailles d'écran
   (mobile, tablette, laptop). Elle ne se fait jamais rogner car sa hauteur
   suit entièrement son propre contenu (pas d'aspect-ratio, pas d'overflow:hidden).
   Elle est masquée uniquement sur très grand écran (≥1400px), où la mise en
   page à deux colonnes avec photo prend le relais. */
.fidelite-card-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 40px auto 0;
  width: 100%;
  max-width: 480px;
  min-height: 320px;
  background-color: #d4c4b4;
  position: relative;
  padding: 28px;
}
.fidelite-card-mobile__photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 15%; /* privilégie le haut de la photo pour ne pas couper le motif brodé */
  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;
  padding: 32px 26px 36px;
  width: 82%;
  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: 56px;
  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: 13px; 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: 13px; 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;
}
.fidelite-card-mobile__content.is-no-texture {
  background: linear-gradient(160deg, #e8ddd0 0%, #d4c4b4 50%, #b8a488 100%);
}

/* Colonne droite — pleine largeur par défaut (mise en page empilée) */
.main-section__right {
  display: flex; flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 32px 20px;
  min-width: 0;
}
.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; min-width: 0; }
.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 — GRAND ÉCRAN / VRAI DESKTOP (≥1400px) ══ */
/* En dessous de 1400px, c'est TOUJOURS la carte fidélité "safe" (empilée, pleine
   largeur) qui s'affiche — mobile, tablette et laptop partagent ce même rendu
   fiable. Seuls les très grands écrans (≥1400px) ont assez de place pour la
   mise en page à deux colonnes (photo + carte carrée superposée) sans jamais
   être à l'étroit. */
@media (min-width: 1400px) {
  .main-section { flex-direction: row; }

  .main-section__left { display: block; }
  .fidelite-card-mobile { display: none; }

  .main-section__right {
    flex: 1;
    width: auto;
    padding: 10px 24px 10px 34px;
  }
}

/* ══ RESPONSIVE — MOBILE / TABLETTE / LAPTOP (<1400px) ══ */
/* Ajustements fins réservés aux petits écrans (téléphones ≤768px) par-dessus
   le rendu "safe" déjà appliqué par défaut à toutes les tailles < 1400px. */
@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__right { padding: 32px 20px; }

  .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É — variante téléphone : pleine largeur, pas de plafond */
  .fidelite-card-mobile {
    max-width: none;
    margin-top: 40px;
  }
  .fidelite-card-mobile__content {
    padding: 36px 28px 40px;
    width: 80%;
  }
  .fidelite-card-mobile__logo { width: 48px; margin-bottom: 20px; }
  .fidelite-card-mobile__title { font-size: 12px; }
  .fidelite-card-mobile__body { font-size: 12px; }

  /* FOOTER */
  .footer-contact { min-height: 180px; }
  .footer-contact__hint { font-size: 12px; }
  .footer-contact__cta { font-size: 12px; }
  .section-spacer { height: 40px; }
}

/* ══ RESPONSIVE — TRÈS PETIT MOBILE (≤380px) ══ */
@media (max-width: 380px) {
  .hero__img { width: 45%; min-height: 180px; }
  .hero__text { width: 55%; padding: 18px 16px 20px 12px; }
  .hero__title { font-size: 12px; }
  .hero__tagline { font-size: 10px; }

  .fidelite-card-mobile__content { width: 90%; padding: 28px 20px 32px; }
}