/* ============================================================
   E.T Auto — style.css
   Palette : noir, rouge, blanc
   ============================================================ */

:root {
  --noir:        #0a0a0b;
  --noir-2:      #141416;   /* cartes / sections alternées */
  --noir-3:      #1c1c20;   /* champs / bordures claires */
  --bordure:     #2a2a30;
  --rouge:       #d90429;
  --rouge-fonce: #a80320;
  --blanc:       #f4f4f5;
  --gris:        #a8a8b0;
  --whatsapp:    #25d366;
  --whatsapp-h:  #1eb954;
  --max:         1080px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--noir);
  color: var(--blanc);
  font-family: "Barlow", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

a { color: inherit; text-decoration: none; }

/* ---------- Titres ---------- */
h1, h2, h3, .brand-name {
  font-family: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.eyebrow {
  color: var(--rouge);
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  margin-bottom: 28px;
}
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--rouge);
  margin-top: 12px;
}

/* ============ EN-TÊTE / MENU ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,11,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--bordure);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { display: block; flex: none; }
.brand-logo-text {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 34px;
  fill: #fff;
}
.brand-name { font-size: 1.5rem; font-weight: 700; }
.brand-name.small { font-size: 1.25rem; }
.brand-dot { color: var(--rouge); }

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--blanc);
}
.main-nav a:hover { color: var(--rouge); }
.nav-cta {
  background: var(--rouge);
  color: #fff !important;
}
.nav-cta:hover { background: var(--rouge-fonce); color:#fff !important; }

/* Bouton burger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 1px solid var(--bordure);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--blanc);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ BOUTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border: none;
  border-radius: 8px;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background .2s ease, transform .05s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--rouge); color: #fff; }
.btn-red:hover { background: var(--rouge-fonce); }
.btn-whatsapp { background: var(--whatsapp); color: #062b13; }
.btn-whatsapp:hover { background: var(--whatsapp-h); }
.btn-outline {
  background: transparent;
  color: var(--blanc);
  border: 2px solid var(--bordure);
}
.btn-outline:hover { border-color: var(--rouge); color: var(--rouge); }
.btn-block { width: 100%; margin-top: 12px; }

/* ============ 1. ACCUEIL ============ */
.hero {
  border-bottom: 1px solid var(--bordure);
  background:
    radial-gradient(1100px 480px at 50% -12%, rgba(217,4,41,0.16), transparent 70%),
    var(--noir);
}
.hero-inner {
  text-align: center;
  padding: 64px 20px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo { margin-bottom: 18px; }
.hero-title {
  font-size: clamp(3rem, 12vw, 5.5rem);
  font-weight: 700;
}
.hero-slogan {
  color: var(--rouge);
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  font-size: clamp(1.05rem, 3.5vw, 1.4rem);
  margin: 6px 0 18px;
}
.hero-text {
  max-width: 560px;
  color: var(--gris);
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ============ SECTIONS ============ */
.section { padding: 68px 0; }
.section-alt { background: var(--noir-2); border-top: 1px solid var(--bordure); border-bottom: 1px solid var(--bordure); }

/* ---------- Services ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--noir-2);
  border: 1px solid var(--bordure);
  border-radius: 12px;
  padding: 22px;
  border-top: 3px solid var(--rouge);
}
.card h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--gris); font-size: 0.98rem; }

/* ---------- Fonctionnement ---------- */
.steps { list-style: none; display: grid; gap: 14px; max-width: 760px; }
.step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--noir);
  border: 1px solid var(--bordure);
  border-radius: 12px;
  padding: 20px 22px;
}
.section-alt .step { background: var(--noir); }
.step-num {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--rouge);
  line-height: 1;
  min-width: 46px;
}
.step-body h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 4px; }
.step-body p { color: var(--gris); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.contact-info {
  background: var(--noir-2);
  border: 1px solid var(--bordure);
  border-radius: 12px;
  padding: 24px;
}
.info-line { padding: 12px 0; border-bottom: 1px solid var(--bordure); }
.info-line:first-child { padding-top: 0; }
.info-label {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--gris);
  margin-bottom: 2px;
}
.info-value { font-size: 1.1rem; font-weight: 500; word-break: break-word; }
a.info-value:hover { color: var(--rouge); }

.contact-form {
  background: var(--noir-2);
  border: 1px solid var(--bordure);
  border-radius: 12px;
  padding: 24px;
}
.form-intro { color: var(--gris); font-size: 0.95rem; margin-bottom: 18px; }
.contact-form label {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  margin: 14px 0 6px;
}
.opt { color: var(--gris); text-transform: none; letter-spacing: 0; font-size: 0.85em; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--noir-3);
  border: 1px solid var(--bordure);
  border-radius: 8px;
  color: var(--blanc);
  font-family: inherit;
  font-size: 1rem;
  padding: 13px 14px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--rouge);
  box-shadow: 0 0 0 2px rgba(217,4,41,0.25);
}
.form-note { margin-top: 10px; font-size: 0.9rem; min-height: 1.2em; }
.form-note.error { color: var(--rouge); }
.form-note.ok { color: var(--whatsapp); }

/* ============ PIED DE PAGE ============ */
.site-footer { border-top: 1px solid var(--bordure); background: var(--noir); }
.footer-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 24px 20px;
}
.footer-slogan { color: var(--gris); font-size: 0.95rem; }
.footer-top { margin-left: auto; color: var(--gris); }
.footer-top:hover { color: var(--rouge); }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; }

  /* Menu déroulant mobile */
  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--noir);
    border-bottom: 1px solid var(--bordure);
    padding: 8px 12px 14px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 14px; font-size: 1.2rem; border-radius: 8px; }
  .nav-cta { text-align: center; margin-top: 6px; }

  .cards { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 52px 0; }
}

/* Accessibilité : mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Repère de focus clavier visible */
a:focus-visible, button:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--rouge);
  outline-offset: 2px;
}
