/* ==========================================================================
   Other Level Market — Site institutionnel
   Feuille de style partagée (générée depuis le design Claude Design Code)
   ========================================================================== */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #F7F4EF;
  font-family: 'Hanken Grotesk', sans-serif;
  color: #2B2B2E;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

img { max-width: 100%; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.olm-navlinks { display: flex; }
.olm-navlinks a { white-space: nowrap; }
.olm-menubtn { display: none; }

/* Panneau du menu mobile, masqué par défaut */
.olm-mobilemenu { display: none; }
.olm-mobilemenu.is-open { display: flex; }

@media (max-width: 1000px) {
  .olm-navlinks { display: none; }
  .olm-menubtn { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   Grilles spécifiques page Fidélité
   -------------------------------------------------------------------------- */
.olm-bijou-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.olm-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 760px) {
  .olm-bijou-grid { grid-template-columns: 1fr !important; }
  .olm-duo { grid-template-columns: 1fr !important; }
}

/* --------------------------------------------------------------------------
   Animations d'apparition au scroll (data-reveal)
   -------------------------------------------------------------------------- */
[data-reveal].olm-pre {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].olm-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Accordéon FAQ
   -------------------------------------------------------------------------- */
.olm-faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.olm-faq-item.is-open .olm-faq-panel {
  max-height: 360px;
}

.olm-faq-icon {
  transition: transform 0.3s ease;
}

.olm-faq-item.is-open .olm-faq-icon {
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   Formulaires
   -------------------------------------------------------------------------- */
.olm-input {
  width: 100%;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  color: #2B2B2E;
  background: #FBFAF7;
  border: 1px solid rgba(43, 43, 46, 0.18);
  border-radius: 8px;
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.olm-input::placeholder { color: #9A968E; }
.olm-input:focus {
  border-color: #C9A24B;
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.16);
}
textarea.olm-input { resize: vertical; min-height: 108px; }

.olm-2up { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) {
  .olm-2up { grid-template-columns: 1fr !important; }
}

.olm-contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(36px, 5vw, 68px);
}
@media (max-width: 880px) {
  .olm-contact-grid { grid-template-columns: 1fr !important; }
}
/* Correctif mobile : sous 900px les mises en page passent en une seule
   colonne. On neutralise alors toute colonne en position:sticky (déclarée en
   style inline), qui sinon restait figée en haut et se superposait au contenu
   (formulaire de contact, etc.). */
@media (max-width: 900px) {
  [style*="position:sticky"] { position: static !important; top: auto !important; }
}

/* --------------------------------------------------------------------------
   Page Conditions
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
  .olm-condrow { grid-template-columns: 1fr !important; gap: 8px !important; }
  .olm-condrow .olm-condnum { margin-bottom: 4px; }
}

/* --------------------------------------------------------------------------
   Pages légales
   -------------------------------------------------------------------------- */
.olm-legal p { font-size: 16px; line-height: 1.72; color: #52514C; margin: 0 0 14px; }
.olm-legal h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: clamp(26px, 3vw, 36px); line-height: 1.12; color: #2B2B2E;
  margin: 0 0 22px; scroll-margin-top: 100px;
}
.olm-legal h3 {
  font-family: 'Hanken Grotesk', sans-serif; font-weight: 700;
  font-size: 16px; letter-spacing: 0.02em; color: #2B2B2E; margin: 24px 0 8px;
}
.olm-legal a { color: #9C7A2A; }
.olm-legal-grid {
  display: grid; grid-template-columns: 240px 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
@media (max-width: 860px) {
  .olm-legal-grid { grid-template-columns: 1fr !important; }
  .olm-legal-toc { position: static !important; }
}
.olm-legal-table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; }
.olm-legal-table th {
  text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #9C7A2A; padding: 11px 14px;
  border-bottom: 1px solid rgba(201, 162, 75, 0.4);
}
.olm-legal-table td {
  font-size: 15px; line-height: 1.55; color: #52514C; padding: 13px 14px;
  border-bottom: 1px solid rgba(43, 43, 46, 0.08); vertical-align: top;
}

/* --------------------------------------------------------------------------
   Footer responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .olm-footer-grid { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 560px) {
  .olm-footer-grid { grid-template-columns: 1fr !important; }
}

/* --------------------------------------------------------------------------
   Repli mobile : grilles 2/3 colonnes inline + photo flottante
   (les colonnes étant posées en style inline, on force avec !important)
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .olm-2col { grid-template-columns: 1fr !important; }
  .olm-prez-photo {
    float: none !important;
    width: 100% !important;
    max-width: 380px;
    margin-right: 0 !important;
  }
  /* Texte justifié -> aligné à gauche sur mobile (évite les espaces béants) */
  [style*="text-align:justify"],
  [style*="text-align: justify"] { text-align: left !important; }
}

/* --------------------------------------------------------------------------
   Grille des 8 pôles (page Nos offres) : 4 colonnes => 2 rangées de 4
   -------------------------------------------------------------------------- */
.olm-poles { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) {
  .olm-poles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .olm-poles { grid-template-columns: 1fr; }
}
