/* TRADETOILE custom styles — static site polish */

/* Prevent horizontal overflow on small screens */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Content images / decorative SVGs scale; Lucide UI icons keep fixed size */
svg:not(.tt-lucide) {
  max-width: 100%;
  height: auto;
}

/*
 * Logo (assets/logo.png): 2172×724 intrinsic, aspect 3:1, transparent PNG.
 * Height drives size; width stays auto so the ratio never stretches.
 * Source is large enough for crisp retina at these CSS sizes (~10–15× density).
 */
.raven-site-logo .tradetoile-logo,
.elementor-182 .raven-site-logo img.tradetoile-logo,
.elementor-192 .raven-site-logo img.tradetoile-logo {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: auto;
  object-fit: contain;
}

/* Header desktop: 240×80 */
.tradetoile-logo--header {
  height: 80px !important;
  width: auto !important;
  max-width: 260px !important;
}

/* Footer: 270×90 */
.tradetoile-logo--footer {
  height: 90px !important;
  width: auto !important;
  max-width: 300px !important;
}

@media (max-width: 1024px) {
  /* Header tablet: 210×70 */
  .tradetoile-logo--header {
    height: 70px !important;
    max-width: 230px !important;
  }
}

@media (max-width: 767px) {
  /* Header mobile: 168×56 — still clears the hamburger */
  .tradetoile-logo--header {
    height: 56px !important;
    max-width: 180px !important;
  }

  /* Footer mobile: 210×70 */
  .tradetoile-logo--footer {
    height: 70px !important;
    max-width: 230px !important;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Comfortable touch targets */
.raven-nav-menu-mobile .raven-menu-item,
.raven-button,
.elementor-social-icon,
.jupiterx-scroll-top {
  min-height: 44px;
  min-width: 44px;
}

.raven-nav-menu-mobile .raven-menu-item {
  display: flex;
  align-items: center;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.raven-nav-menu-toggle-button,
.hamburger {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile / small tablet refinements */
@media (max-width: 767px) {
  .elementor-heading-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  /* Tighter hero padding than Elementor's 100px desktop-ish mobile default */
  .elementor-91 .elementor-element-1b06e37 > .elementor-element-populated {
    padding: 64px 24px 72px 24px !important;
  }

  .elementor-91 .elementor-element-0da8013 {
    padding: 40px 20px 56px 20px !important;
  }

  /* Hero text blocks: reduce oversized desktop headings */
  .elementor-91 .elementor-element-0554071 .elementor-heading-title,
  .elementor-91 .elementor-element-5f02173 .elementor-heading-title {
    font-size: clamp(1.15rem, 5.5vw, 1.75rem) !important;
    line-height: 1.35 !important;
  }

  .elementor-91 .elementor-element-71f0642 .elementor-heading-title {
    font-size: clamp(0.85rem, 3.5vw, 1rem) !important;
  }

  /* Inner page hero banners */
  .elementor-113 .elementor-element-3d39554,
  .elementor-106 .elementor-element-e0e9a75,
  .elementor-163 .elementor-element-19d0698 {
    padding: 100px 20px 90px 20px !important;
  }

  .elementor-113 .elementor-element-3d39554 .elementor-heading-title,
  .elementor-106 .elementor-element-e0e9a75 .elementor-heading-title,
  .elementor-163 .elementor-element-19d0698 .elementor-heading-title {
    font-size: clamp(1.4rem, 6vw, 2rem) !important;
    line-height: 1.25 !important;
  }

  /* Section spacing so stacked columns don't become a wall of text */
  .elementor-section.elementor-top-section {
    padding-left: 0;
    padding-right: 0;
  }

  .elementor-widget:not(:last-child) {
    margin-bottom: 0.5rem;
  }

  .elementor-image-box-wrapper {
    margin-bottom: 1.25rem;
  }

  .elementor-image-box-title {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
  }

  .elementor-image-box-description {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
  }

  /* Pourquoi choisir / content images */
  .raven-image img,
  .attachment-full {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Buttons full-width-ish for easier tap */
  .raven-button {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Sector cards spacing */
  .raven-posts .raven-grid-item {
    margin-bottom: 1rem;
  }

  .raven-post-title {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
  }

  /* Footer contact lines */
  .elementor-192 .elementor-widget-text-editor p {
    word-break: break-word;
  }

  /* Contact page phone/email block */
  .elementor-163 .elementor-image-box-title {
    font-size: 1.1rem !important;
  }
}

@media (max-width: 1024px) {
  /* Keep content readable with sensible side padding where Elementor uses tight gaps */
  .jupiterx-main .elementor-section-boxed > .elementor-container {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
}

/* Ensure mobile dropdown sits above page content */
.raven-nav-menu-mobile {
  z-index: 1000;
}

/* Mailto on contact details for usability */
.elementor-163 .elementor-image-box-description a,
.elementor-192 .elementor-widget-text-editor a {
  word-break: break-all;
}

/* -------------------------------------------------------------------------- */
/* Shared TRADETOILE design tokens + CTA / reveal (site-wide)                 */
/* -------------------------------------------------------------------------- */
:root {
  --navy: #0b2540;
  --navy-deep: #071a2e;
  --gold: #e2a63b;
  --muted: #4b5c6b;
  --muted-soft: #8a97a5;
  --surface: #f7f8fa;
  --white: #ffffff;
  --border-subtle: rgba(11, 37, 64, 0.08);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 12px 28px;
  border-radius: 24px;
  font-family: "Montserrat", "Rubik", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cta-btn .tt-lucide {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  max-width: none;
}

.cta-btn.fill {
  background-color: var(--gold);
  color: var(--navy);
  border: 1px solid var(--gold);
}

.cta-btn.fill:hover,
.cta-btn.fill:focus {
  background-color: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.cta-btn.outline {
  background-color: transparent;
  color: var(--navy);
  border: 1px solid var(--gold);
}

.cta-btn.outline:hover,
.cta-btn.outline:focus {
  background-color: var(--gold);
  color: var(--navy);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Only hide for animation after JS boots — content stays visible without JS */
html.js-reveal .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

html.js-reveal .reveal-stagger:not(.is-visible) > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html.js-reveal .reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
html.js-reveal .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
html.js-reveal .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
html.js-reveal .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }

html.js-reveal .reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal:not(.is-visible),
  html.js-reveal .reveal-stagger:not(.is-visible) > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Lucide icon badge (navy/gold circular) */
.tt-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(226, 166, 59, 0.14);
  color: var(--navy);
  border: 1px solid rgba(226, 166, 59, 0.35);
}

.tt-icon-badge .tt-lucide {
  width: 18px;
  height: 18px;
  max-width: none;
}

.tt-icon-badge--lg {
  width: 52px;
  height: 52px;
}

.tt-icon-badge--lg .tt-lucide {
  width: 24px;
  height: 24px;
}

/* -------------------------------------------------------------------------- */
/* Contact page                                                               */
/* -------------------------------------------------------------------------- */
.tt-contact-page {
  font-family: "Montserrat", "Rubik", sans-serif;
  color: var(--navy-deep);
  background: var(--white);
}

.tt-contact-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 64px 28px 88px;
  box-sizing: border-box;
}

.tt-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 1.35rem;
}

.tt-contact-phone {
  margin: 0 0 2.5rem;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.tt-contact-phone a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

.tt-contact-phone a:hover,
.tt-contact-phone a:focus {
  color: var(--gold);
}

.tt-assistant-card {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  padding: 1.5rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.tt-assistant-body {
  min-width: 0;
  flex: 1;
}

.tt-assistant-body > p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.tt-hours-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(11, 37, 64, 0.06);
  border: 1px solid rgba(11, 37, 64, 0.1);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.tt-bhvzn-credit {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted-soft);
}

.tt-bhvzn-credit a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(226, 166, 59, 0.55);
}

.tt-bhvzn-credit a:hover,
.tt-bhvzn-credit a:focus {
  color: var(--gold);
}

.tt-coordonnees {
  margin-top: 3.25rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--border-subtle);
}

.tt-coordonnees-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.tt-coordonnees-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 2rem 2.5rem;
  align-items: start;
}

.tt-coordonnees-person {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
}

.tt-coordonnees-company {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}

.tt-coordonnees-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tt-coordonnees-list li {
  margin: 0;
}

.tt-coordonnees-list a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--navy);
  text-decoration: none;
  font-size: 1.02rem;
  line-height: 1.45;
  word-break: break-word;
}

.tt-coordonnees-list a:hover,
.tt-coordonnees-list a:focus {
  color: var(--gold);
}

.tt-coordonnees-list a:hover .tt-icon-badge,
.tt-coordonnees-list a:focus .tt-icon-badge {
  background: rgba(226, 166, 59, 0.22);
  border-color: var(--gold);
}

@media (max-width: 767px) {
  .tt-contact-inner {
    padding: 48px 20px 64px;
  }

  .tt-cta-row {
    flex-direction: column;
  }

  .tt-cta-row .cta-btn {
    width: 100%;
  }

  .tt-assistant-card {
    flex-direction: column;
    gap: 1rem;
  }

  .tt-coordonnees-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .tt-contact-inner {
    padding: 56px 32px 72px;
  }
}
