/* =============================================================
   template-edge.css — Zone large (50 km+) — Rouge danger

   Thème spécifique pour zone large (50 km+) avec couleur ROUGE
   Import automatique des styles communs via _template-base.css
   Design IMMERSIF avec dégradés riches et effet profondeur
   ============================================================= */

@import url('./_template-base.css');

/* ------- HERO IMMERSIF ROUGE ------- */
.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 ROUGE ZONE LARGE ------- */
:root {
  /* Couleur primaire : ROUGE pour zone large/étendue */
  --template-primary-color:       var(--color-brand-red);
  --template-primary-dark:        var(--color-brand-red-dark);
  --template-primary-soft:        #ffebee;

  /* Dégradés de zone : rouge → violet pour richesse visuelle */
  --template-gradient-main:       linear-gradient(135deg, var(--color-brand-red) 0%, var(--color-brand-violet) 100%);
  --template-gradient-hero:       linear-gradient(135deg, rgba(204, 11, 19, 0.88) 0%, rgba(64, 43, 125, 0.78) 100%);

  /* Ombres boutons */
  --template-btn-shadow:          0 4px 15px rgba(204, 11, 19, 0.35);
  --template-btn-shadow-hover:    0 6px 20px rgba(204, 11, 19, 0.45);

  /* Hauteur hero : layout IMMERSIF pour zone lointaine */
  --template-hero-min-height:     70vh;
}

/* ------- OVERRIDES SPÉCIFIQUES EDGE — DESIGN IMMERSIF ------- */
.hero {
  background-image:
    var(--template-gradient-hero),
    var(--hero-image-tablet);
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  position: relative;
}

/* Overlay texturé pour profondeur */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__panel {
  backdrop-filter: blur(calc(var(--hero-panel-blur) * 1.2));
  border-radius: calc(var(--hero-panel-radius) * 1.1);
  padding: calc(var(--hero-panel-padding) * 1.25);
  max-width: calc(var(--hero-panel-max-width) * 1.2);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), var(--hero-panel-shadow);
}

.hero__title--panel {
  font-size: calc(var(--hero-panel-title-size) * 1.1);
  letter-spacing: calc(var(--hero-panel-title-spacing) * 1.5);
  margin-bottom: var(--space-5);
  line-height: var(--line-height-snug);
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--color-brand-red) 0%, var(--color-brand-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: var(--font-weight-bold);
}

.hero__subtitle--panel {
  font-size: calc(var(--hero-panel-subtitle-size) * 1.1);
  letter-spacing: 0.5px;
  margin-bottom: var(--space-4);
}

.hero__text {
  color: #4a4a4a;
  margin-bottom: var(--space-8);
}

.hero__actions {
  gap: calc(var(--hero-actions-gap) * 1.2);
}

.btn {
  transition: all var(--duration-base) var(--easing-emphasized);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.5px;
}

.btn--primary:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn--danger {
  background: linear-gradient(135deg, var(--template-primary-color) 0%, var(--template-primary-dark) 100%);
  color: var(--color-text-on-dark);
  box-shadow: var(--template-btn-shadow);
}

.btn--danger:hover {
  background: linear-gradient(135deg, var(--template-primary-dark) 0%, #6a0505 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--template-btn-shadow-hover);
}

/* Sections avec padding renforcé */
.section {
  padding: calc(var(--space-12) * 1.2) 0;
}

.section--expertise {
  background: linear-gradient(180deg, #ffffff 0%, var(--template-primary-soft) 100%);
}

.section--mareco {
  background: linear-gradient(135deg, var(--template-primary-soft) 0%, #f5f5f5 100%);
}

.section--pink {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--template-primary-soft) 100%);
}

.section__header {
  margin-bottom: var(--space-12);
}

.section__header--wide {
  max-width: var(--width-container);
}

.section__title {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-6);
  line-height: var(--line-height-snug);
  letter-spacing: -1px;
}

.section__subtitle--lead {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
}

/* Cards avec effet renforcé */
.card {
  box-shadow: var(--shadow-lg);
  border: 3px solid transparent;
  border-top: 6px solid var(--template-primary-color);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--template-primary-color) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-main);
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
  border-color: var(--template-primary-color);
}

.card:hover::before {
  opacity: 1;
}

.card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-3);
  letter-spacing: -0.5px;
}

.feature-card {
  padding: var(--space-7);
  border-top: 6px solid var(--template-primary-color);
  background: linear-gradient(135deg, #ffffff 0%, var(--template-primary-soft) 100%);
  border-radius: var(--radius-lg);
}

.feature-card__icon {
  font-size: 3rem;
  margin-bottom: var(--space-5);
  display: inline-block;
}

.feature-card__title {
  color: var(--template-primary-color);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
}

/* Estimation avec décor riche */
.estimation {
  gap: calc(var(--estimation-gap) * 1.15);
}

.estimation__title {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-6);
  letter-spacing: -1px;
}

.estimation-card {
  background: linear-gradient(135deg, #ffffff 0%, var(--template-primary-soft) 100%);
  padding: calc(var(--estimation-card-padding) * 1.3);
  box-shadow: 0 15px 40px rgba(204, 11, 19, 0.15);
  border-left: 7px solid var(--template-primary-color);
  border-top: 3px solid var(--template-primary-color);
  position: relative;
}

.estimation-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--template-primary-color) 0%, transparent 70%);
  opacity: 0.05;
  border-radius: 50%;
  pointer-events: none;
}

.estimation-card__icon {
  color: var(--template-primary-color);
  font-size: calc(var(--estimation-icon-size) * 1.1);
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 2;
}

.estimation-card__title {
  color: var(--template-primary-color);
  font-size: var(--estimation-title-size);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 2;
}

/* Navigation gradient */
.nav__link {
  font-weight: var(--font-weight-semibold);
}

.nav__link::after {
  background: linear-gradient(90deg, var(--template-primary-color), var(--template-primary-dark));
  height: 3px;
}

.nav__link--cta {
  background: linear-gradient(135deg, var(--template-primary-color) 0%, var(--template-primary-dark) 100%);
  color: var(--color-text-on-dark);
  box-shadow: var(--template-btn-shadow);
  font-weight: var(--font-weight-bold);
}

.nav__link--cta:hover {
  box-shadow: var(--template-btn-shadow-hover);
  transform: translateY(-2px);
}

/* Footer immersif */
.footer {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--template-primary-soft) 100%);
  border-top: 6px solid var(--template-primary-color);
  padding: var(--footer-padding-y) 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--template-primary-color) 0%, transparent 50%, var(--template-primary-color) 100%);
}

.footer__col-title {
  color: var(--template-primary-color);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-5);
  letter-spacing: -0.5px;
}

/* Path cards décorées */
.path-card {
  border-top: 6px solid var(--template-primary-color);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  background: linear-gradient(135deg, #ffffff 0%, var(--template-primary-soft) 100%);
  transition: all var(--transition-main);
}

.path-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(204, 11, 19, 0.2);
}

.path-card__icon {
  color: var(--template-primary-color);
  font-size: 2.5rem;
  margin-bottom: var(--space-5);
}

.path-card__title {
  color: var(--template-primary-color);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
}

/* Grids avec écarts élargis */
.grid {
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.grid--5 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.grid--cities {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
}

/* ------- RESPONSIVE EDGE SPECIFIC ------- */
@media (max-width: 48rem) {
  :root {
    --template-hero-min-height: 62vh;
  }

  .hero {
    padding: var(--space-6) 0;
  }

  .hero__panel {
    padding: var(--space-6);
    max-width: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  }

  .hero__title--panel {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-3);
    letter-spacing: -0.5px;
  }

  .hero__subtitle--panel {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-2);
  }

  .hero__text {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-5);
  }

  .hero__actions {
    gap: var(--space-3);
  }

  .btn {
    width: 100%;
    padding: 14px 28px;
    font-size: 1rem;
  }

  .btn:hover {
    transform: translateY(-2px);
  }

  .section {
    padding: var(--space-8) 0;
  }

  .section__title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-4);
  }

  .section__header {
    margin-bottom: var(--space-8);
  }

  .grid--5,
  .grid--4,
  .grid--3 {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .card {
    border-top-width: 5px;
  }

  .feature-card {
    padding: var(--space-5);
  }

  .estimation-card {
    border-left-width: 5px;
    padding: var(--space-5);
  }
}

@media (max-width: 64rem) {
  .grid--5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--cities {
    grid-template-columns: repeat(2, 1fr);
  }
}
