/* ===========================================
   styles.css — AM Transporter
   Design system mobile-first
   =========================================== */

:root {
  --primary:        #1d6fb8;
  --primary-dark:   #155489;
  --primary-light:  #e3eff9;
  --accent:         #f5b301;
  --accent-dark:    #d99e00;
  --hero-a:         #0f2f52;
  --hero-b:         #1d6fb8;
  --text:           #1a1a2e;
  --text-light:     #4b5563;
  --text-muted:     #6b7280;
  --bg:             #ffffff;
  --bg-light:       #f2f7fb;
  --bg-gray:        #f8fafc;
  --border:         #e2e8f0;
  --success:        #10b981;
  --radius:         12px;
  --radius-sm:      8px;
  --radius-lg:      20px;
  --shadow:         0 4px 20px rgba(30,35,45,0.10);
  --shadow-md:      0 8px 32px rgba(30,35,45,0.16);
  --transition:     0.25s ease;
  --font-body:      'Inter', sans-serif;
  --font-heading:   'Montserrat', sans-serif;
  --max-width:      1160px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px)  { .container { padding: 0 32px; } }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(1.7rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.35rem); }
p  { color: var(--text-light); line-height: 1.7; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition); text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: #fff; color: var(--primary); border-color: #fff; }
.btn-lg { padding: 17px 34px; font-size: 1.02rem; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ===== HEADER ===== */
.site-header {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(30,35,45,0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem; color: var(--text); line-height: 1.15; }
.brand strong { color: var(--primary); }
.brand:hover { color: var(--text); }
.main-nav ul { display: flex; gap: 22px; }
.main-nav a { color: var(--text-light); font-weight: 600; font-size: 0.9rem; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 3px; background: var(--text); margin: 4px 0; border-radius: 2px; transition: all var(--transition); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .main-nav { position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); display: none; box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav a { display: block; padding: 13px 0; font-size: 1rem; }
  .burger { display: block; }
  .nav-cta { display: none; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--hero-a) 0%, var(--hero-b) 100%);
  color: #fff;
  padding: 64px 0 56px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.08), transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; gap: 32px; } .hero { padding: 44px 0 40px; } }
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero p.hero-lead { color: rgba(255,255,255,0.88); font-size: 1.08rem; margin-bottom: 26px; max-width: 560px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); object-fit: cover; width: 100%; aspect-ratio: 4/3; }
.section-tag {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
section .section-tag.on-light { background: var(--primary-light); color: var(--primary-dark); }

/* Badges de réassurance */
.badges { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.badge-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.92); font-size: 0.88rem; font-weight: 600; }
.badge-item svg { flex: none; }
.badges-bar { background: var(--bg-light); border-bottom: 1px solid var(--border); padding: 18px 0; }
.badges-bar .badges { justify-content: center; }
.badges-bar .badge-item { color: var(--text-light); }
.badges-bar .badge-item svg { color: var(--primary); stroke: var(--primary); }

/* ===== SECTIONS ===== */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-light); }
.section-header { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.section-header h2 { margin-bottom: 12px; }
@media (max-width: 768px) { .section { padding: 44px 0; } }

/* ===== CARDS ===== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .cards-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards-grid { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; transition: all var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--primary-light); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.92rem; }
.card .card-link { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 0.9rem; }

/* ===== STEPS ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px 24px; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; }

/* ===== IMAGE + TEXT SPLIT ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split h2 { margin-bottom: 16px; }
.split p { margin-bottom: 14px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; color: var(--text-light); font-size: 0.95rem; }
.check-list li::before { content: "✓"; color: var(--success); font-weight: 800; flex: none; }

/* ===== PRICE TABLE ===== */
.price-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow); }
table.price-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
.price-table th {
  background: var(--primary); color: #fff; text-align: left;
  padding: 14px 18px; font-family: var(--font-heading); font-size: 0.88rem; font-weight: 700;
}
.price-table td { padding: 14px 18px; border-top: 1px solid var(--border); font-size: 0.92rem; color: var(--text-light); }
.price-table tr:nth-child(even) td { background: var(--bg-gray); }
.price-table td strong { color: var(--text); }
.price-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 12px; font-style: italic; }

/* ===== FAQ ===== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 48px 18px 20px; position: relative;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.98rem; color: var(--text);
}
.faq-q::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--primary); font-weight: 400; transition: transform var(--transition);
}
.faq-item.open .faq-q::after { content: "–"; }
.faq-a { display: none; padding: 0 20px 18px; color: var(--text-light); font-size: 0.93rem; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ===== ZONES ===== */
.zones-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.zones-list li {
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 18px; font-size: 0.88rem; font-weight: 600; color: var(--text-light);
}

/* ===== CTA BAND ===== */
.cta-band { background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); color: #fff; padding: 52px 0; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 24px; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ===== FORM ===== */
.devis-section { padding: 64px 0; background: var(--bg-light); }
.devis-box {
  max-width: 680px; margin: 0 auto; background: #fff;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: 36px 32px;
  border-top: 5px solid var(--accent);
}
@media (max-width: 620px) { .devis-box { padding: 28px 20px; } }
.devis-header { text-align: center; margin-bottom: 26px; }
.devis-header .section-tag { background: var(--primary-light); color: var(--primary-dark); }
.devis-header p { font-size: 0.92rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 0.86rem; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--text);
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 10px; }
.form-consent input { margin-top: 4px; flex: none; width: 17px; height: 17px; accent-color: var(--accent); }
.form-consent label { font-size: 0.86rem; color: var(--text); font-weight: 500; line-height: 1.5; }
.form-privacy { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 18px; }
.form-status { margin-top: 12px; font-size: 0.88rem; font-weight: 600; text-align: center; }
.form-status.error { color: #dc2626; }

/* ===== LEGAL PAGES ===== */
.legal-content { max-width: 760px; margin: 0 auto; padding: 56px 20px; }
.legal-content h1 { margin-bottom: 24px; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.legal-content h2 { font-size: 1.2rem; margin: 28px 0 10px; }
.legal-content p, .legal-content li { color: var(--text-light); font-size: 0.94rem; margin-bottom: 10px; }
.legal-content ul { list-style: disc; padding-left: 22px; }

/* ===== MERCI ===== */
.merci-wrap { min-height: 55vh; display: flex; align-items: center; justify-content: center; padding: 64px 20px; text-align: center; }
.merci-box { max-width: 560px; }
.merci-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--primary-light); color: var(--success); font-size: 2.2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.merci-box h1 { margin-bottom: 14px; font-size: clamp(1.5rem, 4vw, 2.1rem); }
.merci-box p { margin-bottom: 22px; }

/* ===== FOOTER ===== */
.site-footer { background: #12151c; color: #9aa3b2; padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; color: #fff; margin-bottom: 12px; }
.footer-brand strong { color: var(--accent); }
.footer-about { font-size: 0.88rem; color: #9aa3b2; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer-col li { margin-bottom: 8px; font-size: 0.88rem; }
.footer-col a { color: #9aa3b2; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; }
.footer-bottom p { font-size: 0.82rem; color: #6d7686; margin-bottom: 6px; }
.footer-disclaimer { font-size: 0.75rem !important; }

/* Jaune signal : texte sombre pour le contraste */
.btn-primary, .btn-primary:hover { color: #20242c; }
.step-num { color: #20242c; }
