/* Tela Studio — palette fixe "Terre brute & cocon" + archetype Vertical Flow */

:root,
[data-bs-theme="light"] {
  --tela-nude: #efe4d6;
  --tela-nude-soft: #f6f0e8;
  --tela-terracotta: #c27b6f;
  --tela-espresso: #4f3a2e;
  --tela-espresso-strong: #3a2b21;
  --tela-white: #ffffff;

  --ar-primary: var(--tela-espresso);
  --ar-primary-rgb: 79, 58, 46;
  --ar-body-bg: var(--tela-white);
  --ar-body-color: var(--tela-espresso);
  --ar-body-color-rgb: 79, 58, 46;
  --ar-heading-color: var(--tela-espresso);
  --ar-link-color-rgb: 79, 58, 46;
  --ar-link-hover-color-rgb: 194, 123, 111;
  --ar-secondary-color: rgba(79, 58, 46, 0.65);
  --ar-border-color: rgba(79, 58, 46, 0.14);
  --ar-border-color-translucent: rgba(79, 58, 46, 0.14);
  --ar-focus-ring-color: rgba(194, 123, 111, 0.3);
}

body {
  font-family: "DM Sans", Arial, sans-serif;
  letter-spacing: 0.005em;
}

/* Editorial serif for headings, DM Sans stays the body voice */
h1, h2, h3, h4,
.tela-serif {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tela-italic-accent {
  font-style: italic;
  font-weight: 500;
  color: var(--tela-terracotta);
}

.tela-rule {
  display: block;
  width: 3rem;
  height: 2px;
  background-color: var(--tela-terracotta);
  border: 0;
  margin: 0 0 1.5rem;
}

.tela-rule.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.tela-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--tela-espresso);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--tela-terracotta);
  padding-bottom: 0.15rem;
  transition: color 0.2s ease-in-out, gap 0.2s ease-in-out;
}

.tela-link-arrow:hover {
  color: var(--tela-terracotta);
  gap: 0.75rem;
}

.tela-link-arrow svg {
  width: 1em;
  height: 1em;
}

/* Buttons: the "Around" theme bakes literal hex per component, so the
   accessible pairing (espresso fill / white text passes AA, terracotta
   fill / white text does not) is redeclared here rather than via --ar-primary. */
.btn-primary {
  --ar-btn-bg: var(--tela-espresso);
  --ar-btn-border-color: var(--tela-espresso);
  --ar-btn-color: #fff;
  --ar-btn-hover-bg: var(--tela-espresso-strong);
  --ar-btn-hover-border-color: var(--tela-espresso-strong);
  --ar-btn-hover-color: #fff;
  --ar-btn-active-bg: var(--tela-espresso-strong);
  --ar-btn-active-border-color: var(--tela-espresso-strong);
  --ar-btn-active-color: #fff;
  --ar-btn-disabled-bg: var(--tela-espresso);
  --ar-btn-disabled-border-color: var(--tela-espresso);
  --ar-btn-focus-shadow-rgb: 79, 58, 46;
}

.btn-outline-primary {
  --ar-btn-color: var(--tela-espresso);
  --ar-btn-border-color: var(--tela-espresso);
  --ar-btn-hover-bg: var(--tela-espresso);
  --ar-btn-hover-border-color: var(--tela-espresso);
  --ar-btn-hover-color: #fff;
  --ar-btn-active-bg: var(--tela-espresso);
  --ar-btn-active-border-color: var(--tela-espresso);
  --ar-btn-active-color: #fff;
  --ar-btn-focus-shadow-rgb: 79, 58, 46;
}

/* Terracotta stays a decorative accent (icons, borders, large numerals) —
   at normal text size it fails WCAG AA against both white and nude. */
.btn-tela-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 50rem;
  border: 1.5px solid var(--tela-terracotta);
  color: var(--tela-espresso);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.btn-tela-accent:hover {
  background-color: var(--tela-terracotta);
  color: #fff;
}

.btn-primary,
.btn-outline-primary,
.btn-tela-accent {
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.btn-primary:hover,
.btn-outline-primary:hover,
.btn-tela-accent:hover {
  transform: translateY(-2px);
}

.bg-nude {
  background-color: var(--tela-nude) !important;
}

.bg-nude-soft {
  background-color: var(--tela-nude-soft) !important;
}

.bg-espresso {
  background-color: var(--tela-espresso) !important;
  color: var(--tela-nude);
}

.bg-espresso a {
  color: var(--tela-nude);
}

.text-terracotta {
  color: var(--tela-terracotta) !important;
}

.text-espresso {
  color: var(--tela-espresso) !important;
}

.tela-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tela-terracotta);
  margin-bottom: 0.75rem;
}

/* Vertical Flow: header stays minimal (logo + phone/CTA), nav links live in the offcanvas */
#siteHeader {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#siteHeader.is-scrolled {
  border-bottom-color: var(--ar-border-color);
  box-shadow: 0 0.5rem 1.5rem rgba(79, 58, 46, 0.06);
}

#siteHeader .nav-link {
  color: var(--tela-espresso);
  font-size: 0.95rem;
}

#siteHeader .nav-link:hover,
#siteHeader .nav-link.active {
  color: var(--tela-terracotta);
}

.tela-header-toggle {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--tela-espresso);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--tela-espresso);
}

.tela-offcanvas .offcanvas-body a {
  color: var(--tela-espresso);
  text-decoration: none;
}

.tela-offcanvas .nav-link {
  font-size: 1.75rem;
  font-weight: 500;
}

.tela-offcanvas .nav-link.active {
  color: var(--tela-terracotta);
}

/* Vertical Flow hero: centered XXL text, no visual column */
.tela-hero {
  padding-top: 6rem;
  padding-bottom: 4rem;
  text-align: center;
}

.tela-hero h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.75rem);
  line-height: 1.08;
  font-weight: 600;
  max-width: 18ch;
  margin: 0 auto;
}

.tela-hero-lead {
  max-width: 46rem;
  margin: 1.75rem auto 0;
  font-size: 1.2rem;
  color: var(--ar-secondary-color);
}

.tela-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.25rem;
}

/* Thread motif — a subtle nod to the logo's woven "T", used sparingly */
.tela-thread {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  color: var(--tela-terracotta);
  opacity: 0.75;
}

/* Giant stat block (À propos) */
.tela-stat-giant {
  font-size: clamp(4.5rem, 9vw, 8rem);
  line-height: 0.9;
  font-weight: 700;
  background: linear-gradient(135deg, var(--tela-espresso) 30%, var(--tela-terracotta) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.tela-stat-giant small {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: none;
  color: var(--tela-terracotta);
  -webkit-text-fill-color: var(--tela-terracotta);
  margin-top: 0.75rem;
}

/* Values / pillars list */
.tela-value {
  padding: 1.25rem 0;
  border-top: 1px solid var(--ar-border-color);
}

.tela-value:last-child {
  border-bottom: 1px solid var(--ar-border-color);
}

.tela-value h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.65rem;
  margin-bottom: 2px;
  border-radius: 50%;
  background-color: var(--tela-terracotta);
  vertical-align: middle;
}

/* Icon-marker list — replaces default bullets on long-form pages */
.tela-check-list {
  list-style: none;
  padding-left: 0;
}

.tela-check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
}

.tela-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--tela-terracotta);
  opacity: 0.6;
}

/* Icon badge — same visual language as the home page pillar/format icons,
   reused wherever a section or list item needs a small circular glyph. */
.tela-icon-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--tela-white);
  border: 1px solid rgba(194, 123, 111, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tela-terracotta);
  flex: none;
}

.tela-icon-badge svg {
  width: 30px;
  height: 30px;
}

/* Final CTA: giant centered clickable block, full-bleed nude */
.tela-final-cta {
  text-align: center;
  padding: 5rem 0;
}

.tela-final-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 30ch;
  margin: 0 auto 1rem;
}

.tela-final-cta p {
  max-width: 40rem;
  margin: 0 auto 2rem;
  color: var(--ar-secondary-color);
}

/* Placeholder notices for content not yet provided by the client (testimonials, infos pratiques) */
.tela-placeholder {
  border: 1.5px dashed rgba(79, 58, 46, 0.35);
  border-radius: 1rem;
  background-color: var(--tela-nude-soft);
}

.tela-placeholder-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tela-terracotta);
}

/* Contact form */
.tela-form label {
  font-weight: 600;
  color: var(--tela-espresso);
}

.tela-form .form-control,
.tela-form .form-select {
  border-color: var(--ar-border-color);
}

.tela-form .form-control:focus,
.tela-form .form-select:focus {
  border-color: var(--tela-terracotta);
  box-shadow: 0 0 0 0.2rem rgba(194, 123, 111, 0.2);
}

/* Footer */
.tela-footer-phone {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  color: var(--tela-nude);
  text-decoration: none;
}

.tela-footer-phone:hover {
  color: var(--tela-terracotta);
}

/* ================================================================
   Home page — image-driven, two-column layout
   ================================================================ */

.tela-media {
  position: relative;
  overflow: hidden;
  background-color: var(--tela-nude-soft);
  border-radius: 2rem;
}

.tela-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.tela-media:hover img {
  transform: scale(1.04);
}

.tela-media-circle {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

.tela-media-organic {
  border-radius: 8rem 3rem 8rem 3rem;
}

.tela-media-rect {
  aspect-ratio: 4 / 5;
}

.tela-media-wide {
  aspect-ratio: 6 / 5;
}

/* Hero (split layout, home only) */
.tela-hero-split {
  padding-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
}

.tela-hero-split-title {
  font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem);
  line-height: 1.1;
  font-weight: 500;
}

.tela-hero-split-lead {
  max-width: 36rem;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--ar-secondary-color);
}

.tela-hero-split .tela-hero-actions {
  justify-content: center;
}

.tela-hero-media-wrap {
  position: relative;
  max-width: 420px;
  margin: 2.5rem auto 0;
}

.tela-hero-media-wrap::before {
  content: "";
  position: absolute;
  top: -1.75rem;
  right: -1.75rem;
  width: 34%;
  height: 34%;
  border: 1.5px solid rgba(194, 123, 111, .55);
  border-radius: 50%;
  z-index: 0;
}

.tela-hero-media-wrap::after {
  content: "";
  position: absolute;
  bottom: -1.75rem;
  left: -1.75rem;
  width: 62%;
  height: 62%;
  border: 1.5px solid rgba(194, 123, 111, .55);
  border-radius: 50%;
  z-index: 0;
}

.tela-hero-media-wrap .tela-media {
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  .tela-hero-split {
    padding-top: 5rem;
    padding-bottom: 3rem;
    text-align: left;
  }

  .tela-hero-split-title,
  .tela-hero-split-lead {
    margin-left: 0;
  }

  .tela-hero-split .tela-hero-actions {
    justify-content: flex-start;
  }

  .tela-hero-media-wrap {
    margin: 0 0 0 auto;
  }
}

/* Small woven mark (hero glyph) */
.tela-mark {
  width: 30px;
  height: 30px;
  color: var(--tela-terracotta);
  margin-bottom: 1.5rem;
}

/* Pillars — icon cards */
.tela-pillar-icon {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background-color: var(--tela-white);
  border: 1px solid rgba(194, 123, 111, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tela-terracotta);
}

.tela-pillar-icon svg {
  width: 38px;
  height: 38px;
}

/* Formats — icon list */
.tela-format-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tela-format-item {
  display: flex;
  gap: 1.125rem;
  align-items: flex-start;
}

.tela-format-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--tela-nude-soft);
  color: var(--tela-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tela-format-icon svg {
  width: 20px;
  height: 20px;
}

/* ================================================================
   Services page — image-paired cards
   ================================================================ */

.tela-service-card {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr 340px;
  min-height: 340px;
  margin-bottom: 1.5rem;
  background-color: rgba(255, 255, 255, .85);
  border: 1px solid var(--ar-border-color);
  border-radius: 1.75rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tela-service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(79, 58, 46, .1);
}

.tela-service-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2.25rem;
  border-right: 1px solid var(--ar-border-color);
  color: var(--tela-terracotta);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
}

.tela-service-icon {
  width: 48px;
  height: 48px;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(194, 123, 111, .4);
  border-radius: 50%;
  color: var(--tela-terracotta);
}

.tela-service-icon svg {
  width: 20px;
  height: 20px;
}

.tela-service-content {
  padding: 2.5rem;
}

.tela-service-content h2 {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  margin-bottom: 0.4rem;
}

.tela-service-tagline {
  color: var(--tela-terracotta);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

.tela-service-content > p:not(.tela-service-tagline) {
  max-width: 42rem;
}

.tela-service-image img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.tela-service-card:hover .tela-service-image img {
  transform: scale(1.035);
}

@media (max-width: 1199.98px) {
  .tela-service-card {
    grid-template-columns: 90px 1fr 300px;
  }

  .tela-service-content {
    padding: 2.25rem;
  }
}

@media (max-width: 991.98px) {
  .tela-service-card {
    grid-template-columns: 90px 1fr;
  }

  .tela-service-image {
    grid-column: 1 / -1;
    order: 3;
    height: 300px;
  }

  .tela-service-image img {
    min-height: 300px;
  }
}

@media (max-width: 767.98px) {
  .tela-service-card {
    display: block;
    border-radius: 1.5rem;
  }

  .tela-service-number {
    flex-direction: row;
    justify-content: space-between;
    padding: 1.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--ar-border-color);
  }

  .tela-service-icon {
    margin-top: 0;
  }

  .tela-service-content {
    padding: 1.75rem;
  }

  .tela-service-image {
    height: 260px;
  }

  .tela-service-image img {
    min-height: 260px;
  }
}

/* Editorial split — narrative sections without card chrome (À propos) */
.tela-editorial-text {
  max-width: 34rem;
}

/* Final CTA — decorative corner accent */
.tela-final-cta {
  position: relative;
  overflow: hidden;
}

.tela-final-cta .container {
  position: relative;
  z-index: 1;
}

.tela-final-cta-deco {
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: 220px;
  height: 220px;
  color: var(--tela-terracotta);
  opacity: .3;
  z-index: 0;
  pointer-events: none;
}
