/* TODO: remplacer les valeurs officielles (RCS, TVA, propriétaire) par les vraies données */

:root {
  --ev-cream: #FAF8F4;
  --ev-surface: #FFFFFF;
  --ev-forest: #1B4332;
  --ev-gold: #C9A86A;
  --ev-bordeaux: #8B2635;
  --ev-text: #2A2A2A;
  --ev-muted: #6C757D;

  /* Surcharge des variables Bootstrap pour unifier la palette */
  --bs-primary: #1B4332;
  --bs-primary-rgb: 27, 67, 50;
  --bs-secondary: #C9A86A;
  --bs-secondary-rgb: 201, 168, 106;
  --bs-success: #1B4332;
  --bs-danger: #8B2635;
  --bs-danger-rgb: 139, 38, 53;
  --bs-body-bg: #FAF8F4;
  --bs-body-color: #2A2A2A;
  --bs-font-sans-serif: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: var(--ev-cream);
  color: var(--ev-text);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ev-forest);
  font-weight: 600;
}

a {
  color: var(--ev-forest);
  text-decoration: none;
}

a:hover {
  color: var(--ev-gold);
}

/* --- Composants globaux --- */

.ev-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ev-hero--tall {
  min-height: 85vh;
}

.ev-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.45));
  z-index: 1;
}

.ev-hero__content {
  position: relative;
  z-index: 2;
}

.ev-hero__title,
.ev-hero__lead {
  color: #fff;
}

.ev-hero__lead {
  opacity: 0.92;
}

.ev-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.ev-section--alt {
  background-color: var(--ev-surface);
}

.ev-section--dark {
  background-color: var(--ev-forest);
  color: #fff;
}

.ev-section--dark h1,
.ev-section--dark h2,
.ev-section--dark h3,
.ev-section--dark h4 {
  color: var(--ev-gold);
}

.ev-section--dark a {
  color: var(--ev-gold);
}

.ev-section--dark a:hover {
  color: #fff;
}

.ev-card {
  border: none;
  border-radius: 1rem;
  background: var(--ev-muted);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.ev-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.ev-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 168, 106, 0.12);
  color: var(--ev-gold);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.ev-img {
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

.ev-img--rounded {
  border-radius: 1.5rem;
}

.ev-gold-line {
  width: 60px;
  height: 3px;
  background: var(--ev-gold);
  border-radius: 2px;
}

.ev-gold-line--center {
  margin-left: auto;
  margin-right: auto;
}

.ev-deco-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(201, 168, 106, 0.12);
  pointer-events: none;
}

.ev-deco-circle--sm {
  width: 8rem;
  height: 8rem;
}

.ev-deco-circle--md {
  width: 14rem;
  height: 14rem;
}

.ev-deco-circle--right {
  top: -3rem;
  right: -3rem;
}

.ev-deco-circle--left {
  bottom: -4rem;
  left: -4rem;
}

.ev-quote {
  border-left: 4px solid var(--ev-gold);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--ev-muted);
}

.ev-timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--ev-gold);
}

.ev-timeline__dot {
  position: absolute;
  left: -0.5rem;
  top: 0.25rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--ev-gold);
}

.ev-timeline__item {
  position: relative;
  padding-bottom: 2rem;
}

.ev-timeline__item:last-child {
  padding-bottom: 0;
}

.ev-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  background: rgba(201, 168, 106, 0.12);
  color: var(--ev-gold);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ev-btn {
  border-radius: 2rem;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.ev-btn--primary {
  background-color: var(--ev-forest);
  border-color: var(--ev-forest);
  color: #fff;
}

.ev-btn--primary:hover {
  background-color: var(--ev-gold);
  border-color: var(--ev-gold);
  color: #fff;
}

.ev-btn--gold {
  background-color: var(--ev-gold);
  border-color: var(--ev-gold);
  color: #fff;
}

.ev-btn--gold:hover {
  background-color: var(--ev-forest);
  border-color: var(--ev-forest);
  color: #fff;
}

.ev-btn--outline-gold {
  border-color: var(--ev-gold);
  color: var(--ev-gold);
  background: transparent;
}

.ev-btn--outline-gold:hover {
  background-color: var(--ev-gold);
  color: #fff;
}

.ev-btn--light {
  background-color: #fff;
  color: var(--ev-forest);
  border-color: #fff;
}

.ev-btn--light:hover {
  background-color: var(--ev-gold);
  color: #fff;
  border-color: var(--ev-gold);
}

/* --- Header --- */

.ev-topbar {
  background: var(--ev-forest);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.ev-topbar i {
  color: var(--ev-gold);
  margin-right: 0.4rem;
}

.ev-navbar {
  background: var(--ev-surface);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.ev-navbar .navbar-brand img {
  height: 48px;
}

.ev-navbar .nav-link {
  color: var(--ev-text);
  font-weight: 500;
  padding: 0.75rem 1rem !important;
}

.ev-navbar .nav-link:hover,
.ev-navbar .nav-link.active {
  color: var(--ev-gold);
}

.navbar-toggler {
  border: none;
  color: var(--ev-forest);
  font-size: 1.4rem;
}

/* --- Footer --- */

.ev-footer {
  background: var(--ev-forest);
  color: rgba(255, 255, 255, 0.85);
}

.ev-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.ev-footer a:hover {
  color: var(--ev-gold);
}

.ev-footer__title {
  color: var(--ev-gold);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.ev-footer__goldline {
  width: 100%;
  height: 1px;
  background: rgba(201, 168, 106, 0.35);
}

/* --- Formulaire --- */

.form-control:focus,
.form-select:focus {
  border-color: var(--ev-gold);
  box-shadow: 0 0 0 0.25rem rgba(201, 168, 106, 0.25);
}

/* --- Cookie banner --- */

.ev-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: var(--ev-surface);
  border-top: 1px solid var(--ev-gold);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.ev-cookie-banner.show {
  transform: translateY(0);
}

.ev-cookie-banner p {
  margin-bottom: 0;
}

/* --- Notification formulaire --- */

.ev-notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1060;
  max-width: 360px;
  background: var(--ev-surface);
  border-left: 4px solid var(--ev-gold);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 1rem;
  border-radius: 0.5rem;
  transform: translateX(120%);
  transition: transform 0.3s ease;
}

.ev-notification.show {
  transform: translateX(0);
}

/* --- Responsive --- */

@media (max-width: 991.98px) {
  .ev-hero {
    min-height: 60vh;
  }

  .ev-hero--tall {
    min-height: 70vh;
  }

  .ev-section {
    padding: 3.5rem 0;
  }
}
