/* ============================================
   AUTO EXCELLENCE — Style Corporatif & Pro
   Palette: #1e40af, #3b82f6, #f8fafc, #1e293b
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:      #1e40af;
  --blue-l:    #3b82f6;
  --blue-ll:   #dbeafe;
  --dark:      #1e293b;
  --mid:       #475569;
  --light:     #94a3b8;
  --bg:        #f8fafc;
  --white:     #ffffff;
  --border:    #e2e8f0;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(30,64,175,0.12);
  --shadow-lg: 0 20px 60px rgba(30,64,175,0.15);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius); font-weight: 600;
  font-size: 0.9rem; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: all 0.25s ease; font-family: 'Poppins', sans-serif;
}
.btn--primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn--primary:hover { background: #1d3a9e; border-color: #1d3a9e; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,64,175,0.3); }
.btn--outline { background: transparent; color: var(--dark); border-color: var(--border); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.btn--white { background: var(--white); color: var(--blue); border-color: var(--white); font-weight: 700; }
.btn--white:hover { background: var(--bg); }
.btn--lg { padding: 16px 36px; font-size: 1rem; }
.btn--full { width: 100%; }

/* ---- SECTION HEADERS ---- */
.section-chip {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: var(--blue);
  background: var(--blue-ll); padding: 5px 14px; border-radius: 20px; margin-bottom: 16px;
}
.section-chip--white { background: rgba(255,255,255,0.2); color: var(--white); }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; color: var(--dark); }
.section-title--white { color: var(--white); }
.section-sub { color: var(--mid); max-width: 560px; font-size: 1rem; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .section-sub { margin: 0 auto; }

/* ---- NAVIGATION ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.nav__inner {
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; gap: 32px;
}
.nav__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-icon {
  width: 44px; height: 44px; background: var(--blue); color: var(--white);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem; letter-spacing: 1px; flex-shrink: 0;
}
.logo-icon--sm { width: 36px; height: 36px; font-size: 0.75rem; border-radius: 8px; }
.logo-text { display: flex; flex-direction: column; }
.logo-text-main { font-size: 0.9rem; font-weight: 800; color: var(--dark); letter-spacing: 1px; }
.logo-text-sub { font-size: 0.72rem; color: var(--mid); font-weight: 500; }

.nav__links { display: flex; gap: 24px; list-style: none; margin-left: auto; }
.nav__links a { color: var(--mid); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
.nav__links a:hover { color: var(--blue); }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; min-width: 36px; min-height: 36px; justify-content: center; align-items: center; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--dark); transition: all 0.3s; }

.nav__mobile {
  display: none; flex-direction: column;
  background: var(--white); border-top: 1px solid var(--border);
  padding: 8px 0;
}
.nav__mobile.open { display: flex; }
.nav__mobile a { padding: 14px 24px; color: var(--dark); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--border); }
.nav__mobile .btn { margin: 16px 24px 8px; display: flex; }

/* ---- HERO ---- */
.hero {
  background: var(--white);
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 100px); align-items: center;
  padding: 80px 0; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px;
  gap: 48px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--blue-ll);
  color: var(--blue); font-size: 0.8rem; font-weight: 600; padding: 6px 14px;
  border-radius: 20px; margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; line-height: 1.2;
  color: var(--dark); margin-bottom: 20px;
}
.hero__title-highlight { color: var(--blue); }
.hero__sub { color: var(--mid); font-size: 1.05rem; line-height: 1.7; margin-bottom: 36px; max-width: 500px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 500; color: var(--mid); }

.hero__img-wrap { position: relative; height: 480px; }
.hero__img {
  width: 100%; height: 100%; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--blue-ll) center/cover no-repeat;
}
.hero__stat-card {
  position: absolute; background: var(--white); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow-lg);
}
.hero__stat-card strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--blue); }
.hero__stat-card span { font-size: 0.8rem; color: var(--mid); font-weight: 500; }
.hero__stat-card--1 { bottom: 30px; left: -24px; }
.hero__stat-card--2 { top: 30px; right: -24px; }

/* ---- TRUST BAND ---- */
.trust-band { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 0; }
.trust-band__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.trust-badge {
  display: flex; align-items: center; gap: 16px;
  padding: 28px 20px; border-right: 1px solid var(--border);
}
.trust-badge:last-child { border-right: none; }
.trust-badge__icon { flex-shrink: 0; }
.trust-badge strong { display: block; font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
.trust-badge span { font-size: 0.8rem; color: var(--mid); }

/* ---- SERVICES / TABS ---- */
.services { background: var(--bg); }
.tabs__nav {
  display: flex; gap: 4px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 6px; width: fit-content; margin: 0 auto 40px;
}
.tab-btn {
  padding: 10px 24px; border-radius: 8px; border: none; background: none;
  font-size: 0.875rem; font-weight: 600; color: var(--mid); cursor: pointer; transition: all 0.2s;
  font-family: 'Poppins', sans-serif;
}
.tab-btn.active { background: var(--blue); color: var(--white); }
.tab-btn:hover:not(.active) { color: var(--blue); background: var(--blue-ll); }

.tabs__content { position: relative; }
.tab-panel { display: none; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.tab-panel.active { display: grid; }
.tab-panel__img { height: 400px; background: var(--blue-ll) center/cover no-repeat; }
.tab-panel__text { padding: 48px; }
.tab-panel__text h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 16px; }
.tab-panel__text p { color: var(--mid); margin-bottom: 24px; line-height: 1.7; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.check-list li {
  padding-left: 24px; position: relative; font-size: 0.9rem; color: var(--mid);
}
.check-list li::before {
  content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 700;
}
.tab-panel__footer { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.price-from { font-size: 0.9rem; color: var(--mid); }
.price-from strong { color: var(--blue); font-size: 1.2rem; }

/* ---- PROCESSUS ---- */
.processus { background: var(--white); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.step {
  text-align: center; padding: 32px 24px; position: relative;
  display: flex; flex-direction: column; align-items: center;
}
.step__num {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 2px; color: var(--blue-l);
  margin-bottom: 16px; text-transform: uppercase;
}
.step__line {
  position: absolute; top: 72px; left: calc(50% + 32px); right: calc(-50% + 32px);
  height: 2px; background: var(--border); z-index: 0;
}
.step__icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--blue-ll);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  position: relative; z-index: 1; flex-shrink: 0;
}
.step h4 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 0.875rem; color: var(--mid); line-height: 1.6; }

/* ---- ÉQUIPE ---- */
.equipe { background: var(--bg); }
.equipe__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.membre-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); transition: transform 0.3s, box-shadow 0.3s;
}
.membre-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.membre-card__photo { height: 220px; background: var(--blue-ll) top/cover no-repeat; }
.membre-card__body { padding: 20px; }
.membre-card__body strong { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.membre-card__body span { display: block; font-size: 0.8rem; color: var(--blue); font-weight: 600; margin-bottom: 10px; }
.membre-card__body p { font-size: 0.85rem; color: var(--mid); line-height: 1.5; }

/* ---- AVIS ---- */
.avis { background: var(--white); }
.avis__global { display: flex; align-items: center; gap: 16px; justify-content: center; margin-bottom: 8px; }
.avis__score { font-size: 3rem; font-weight: 800; color: var(--blue); line-height: 1; }
.avis__stars { color: #f59e0b; font-size: 1.5rem; }
.avis__count { font-size: 0.85rem; color: var(--mid); }
.avis__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.avis-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; transition: box-shadow 0.3s;
}
.avis-card:hover { box-shadow: var(--shadow); }
.avis-card__header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.avis-card__avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--blue);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.avis-card__header strong { display: block; font-size: 0.95rem; font-weight: 700; }
.avis-card__stars { color: #f59e0b; font-size: 0.9rem; }
.avis-card__date { font-size: 0.8rem; color: var(--light); margin-left: auto; }
.avis-card p { font-size: 0.9rem; color: var(--mid); line-height: 1.7; font-style: italic; }

/* ---- RÉSERVATION ---- */
.reservation { background: var(--blue); }
.reservation .section-sub { color: rgba(255,255,255,0.75); }
.reservation__wrap {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start;
}
.reservation__text .section-title { margin-top: 12px; margin-bottom: 20px; }
.reservation__text p { color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 32px; }
.reservation__garanties { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.reservation__garanties li { color: rgba(255,255,255,0.9); font-size: 0.9rem; font-weight: 500; }

.reservation__form {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 16px;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.83rem; font-weight: 600; color: var(--dark); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 8px;
  color: var(--dark); padding: 12px 14px; font-size: 0.9rem; font-family: inherit;
  transition: border-color 0.2s; outline: none; resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); background: var(--white); }

/* ---- FAQ ---- */
.faq { background: var(--bg); }
.faq__grid { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item__question {
  width: 100%; padding: 20px 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; background: none; border: none;
  cursor: pointer; font-family: 'Poppins', sans-serif; font-size: 0.95rem;
  font-weight: 600; color: var(--dark); text-align: left; transition: color 0.2s;
}
.faq-item__question:hover { color: var(--blue); }
.faq-icon { flex-shrink: 0; transition: transform 0.3s; color: var(--mid); }
.faq-item__question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); color: var(--blue); }
.faq-item__answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item__answer.open { max-height: 300px; }
.faq-item__answer p { padding: 0 24px 20px; color: var(--mid); font-size: 0.9rem; line-height: 1.7; border-top: 1px solid var(--border); padding-top: 16px; }

/* ---- FOOTER ---- */
.footer { background: var(--dark); color: var(--white); padding: 64px 0 0; }
.footer__top { display: flex; align-items: flex-start; gap: 24px; margin-bottom: 48px; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer__top > p { color: rgba(255,255,255,0.6); font-size: 0.9rem; max-width: 400px; line-height: 1.7; margin-left: auto; }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
.footer__col h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer__col ul li, .footer__col ul a { color: rgba(255,255,255,0.7); font-size: 0.875rem; text-decoration: none; transition: color 0.2s; }
.footer__col ul a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer__bottom span { color: rgba(255,255,255,0.5); font-size: 0.8rem; }
.footer__links { display: flex; gap: 20px; }
.footer__links a { color: rgba(255,255,255,0.5); font-size: 0.8rem; text-decoration: none; }
.footer__links a:hover { color: var(--white); }

/* ---- FADE-UP ANIMATION ---- */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 60px 24px; }
  .hero__right { display: none; }
  .trust-band__grid { grid-template-columns: repeat(2, 1fr); }
  .trust-badge:nth-child(2) { border-right: none; }
  .trust-badge:nth-child(3) { border-top: 1px solid var(--border); }
  .tab-panel { grid-template-columns: 1fr; }
  .tab-panel__img { height: 260px; }
  .tab-panel__text { padding: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step__line { display: none; }
  .equipe__grid { grid-template-columns: repeat(2, 1fr); }
  .reservation__wrap { grid-template-columns: 1fr; gap: 40px; }
  .footer__top { flex-direction: column; }
  .footer__top > p { margin-left: 0; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav__inner { padding: 10px 16px; gap: 8px; overflow: hidden; }
  .reservation__form { padding: 24px 20px; }
  .logo-icon { width: 32px; height: 32px; font-size: 0.7rem; border-radius: 7px; }
  .logo-text-main { font-size: 0.75rem; }
  .logo-text-sub { font-size: 0.62rem; }
  .nav__burger { display: flex; flex-shrink: 0; margin-left: auto; }
  .nav__links, .nav > .btn { display: none; }
  .nav__inner > .btn { font-size: 0.72rem; padding: 7px 12px; white-space: nowrap; }
  .tabs__nav { flex-wrap: wrap; width: 100%; }
  .tab-btn { flex: 1; font-size: 0.8rem; padding: 8px 12px; }
  .avis__grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .reservation__form { padding: 20px 16px; }
  .btn { padding: 10px 18px; font-size: 0.88rem; }
  .btn--lg { padding: 13px 22px; font-size: 0.92rem; width: 100%; }
  .form-group input, .form-group select, .form-group textarea { padding: 10px 12px; font-size: 0.88rem; }
  .trust-band__grid { grid-template-columns: 1fr; }
  .trust-badge { border-right: none; border-bottom: 1px solid var(--border); }
  .steps { grid-template-columns: 1fr; }
  .equipe__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .avis__global { flex-direction: column; text-align: center; }
}
