/* =============================================================
   template-far.css — Zone étendue (30-50 km) — Violet secondary

   Thème spécifique pour zone étendue (30-50 km) avec couleur VIOLET
   Import automatique des styles communs via _template-base.css
   Ajoute designs spacieux et améliorés pour zone lointaine
   ============================================================= */

@import url('./_template-base.css');

/* ------- HERO IMMERSIF VIOLET ------- */
.section--brand.hero {
  background: var(--template-gradient-main);
  color: var(--color-text-on-dark);
  min-height: var(--template-hero-min-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px var(--space-4);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.section--brand.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--template-gradient-hero);
  opacity: 0.95;
  z-index: -1;
}

.hero__title {
  color: var(--color-text-on-dark);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-3);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-6);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero__text {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-6);
}

.btn--accent {
  background-color: var(--color-brand-red);
  color: var(--color-text-on-dark);
  border: none;
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-text-on-dark);
}

/* ------- VARIABLES THÉMATIQUES VIOLET ZONE ÉTENDUE ------- */
:root {
  /* Couleur primaire : VIOLET pour zone étendue */
  --template-primary-color:       var(--color-brand-violet);
  --template-primary-dark:        var(--color-brand-violet-dark);
  --template-primary-soft:        #f3e5f5;

  /* Dégradés de zone */
  --template-gradient-main:       linear-gradient(135deg, var(--color-brand-violet) 0%, var(--color-brand-violet-dark) 100%);
  --template-gradient-hero:       linear-gradient(135deg, rgba(64, 43, 125, 0.85) 0%, rgba(45, 31, 88, 0.75) 100%);

  /* Ombres boutons */
  --template-btn-shadow:          0 4px 15px rgba(64, 43, 125, 0.3);
  --template-btn-shadow-hover:    0 6px 20px rgba(64, 43, 125, 0.4);

  /* Hauteur hero : layout spacieux pour zone étendue */
  --template-hero-min-height:     65vh;
}

/* ------- OVERRIDES SPÉCIFIQUES FAR — DESIGN SPACIEUX ------- */
.hero {
  background-image:
    var(--template-gradient-hero),
    var(--hero-image-tablet);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__panel {
  padding: calc(var(--hero-panel-padding) * 1.15);
  max-width: calc(var(--hero-panel-max-width) * 1.1);
}

.hero__title--panel {
  font-size: calc(var(--hero-panel-title-size) * 1.05);
  margin-bottom: var(--space-5);
}

.hero__subtitle--panel {
  font-size: calc(var(--hero-panel-subtitle-size) * 1.05);
  margin-bottom: var(--space-4);
}

.hero__text {
  margin-bottom: var(--space-7);
}

.hero__actions {
  gap: calc(var(--hero-actions-gap) * 1.1);
}

.btn {
  transition: all var(--duration-base) var(--easing-standard);
}

.btn--primary:hover {
  transform: translateY(-3px);
}

/* Sections avec padding augmenté */
.section {
  padding: calc(var(--space-12) * 1.1) 0;
}

.section--expertise {
  background: linear-gradient(180deg, #ffffff 0%, var(--template-primary-soft) 100%);
}

.section__header {
  margin-bottom: var(--space-11);
}

.section__header--wide {
  max-width: var(--width-container);
}

.section__title {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-5);
}

.section__title--violet {
  color: var(--template-primary-color);
}

.section__subtitle--lead {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
}

/* Cards avec top border renforcé */
.card {
  border: 2px solid transparent;
  border-top: 5px solid var(--template-primary-color);
  transition: all var(--transition-main);
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
  border-color: var(--template-primary-color);
}

.feature-card {
  padding: var(--space-6);
  border-top: 5px solid var(--template-primary-color);
}

.feature-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.feature-card__title {
  color: var(--template-primary-color);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-3);
}

/* Estimation avec padding augmenté */
.estimation__title {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-5);
}

.estimation-card {
  background: linear-gradient(135deg, #ffffff 0%, var(--template-primary-soft) 100%);
  padding: calc(var(--estimation-card-padding) * 1.2);
  border-left: 6px solid var(--template-primary-color);
}

.estimation-card__icon {
  margin-bottom: var(--space-5);
}

/* Navigation avec line height renforcée */
.nav__link::after {
  height: 3px;
}

.nav__link--cta:hover {
  transform: translateY(-2px);
}

/* Footer avec gradient et border renforcée */
.footer {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--template-primary-soft) 100%);
  border-top: 5px solid var(--template-primary-color);
}

/* Path cards spécifiques */
.path-card {
  border-top: 5px solid var(--template-primary-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.path-card__icon {
  color: var(--template-primary-color);
  margin-bottom: var(--space-4);
}

.path-card__title {
  color: var(--template-primary-color);
  font-weight: var(--font-weight-bold);
}

/* Grids élargis pour zone étendue */
.grid {
  gap: var(--space-9);
  margin-bottom: var(--space-11);
}

.grid--5 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

/* ------- RESPONSIVE FAR SPECIFIC ------- */
@media (max-width: 48rem) {
  :root {
    --template-hero-min-height: 58vh;
  }

  .hero__subtitle--panel {
    font-size: var(--font-size-base);
  }

  .hero__text {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-5);
  }

  .hero__actions {
    gap: var(--space-3);
  }

  .section__title {
    font-size: var(--font-size-2xl);
  }

  .grid--5,
  .grid--4,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .card {
    border-top-width: 4px;
  }

  .estimation-card {
    border-left-width: 5px;
  }
}

@media (max-width: 64rem) {
  .grid--5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
