/* ============================================================
   SAOU TRANSPORT — Feuille de style globale
   saoutransport.com
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif; background: #fff; color: #1a1a1a; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── VARIABLES ── */
:root {
  --white:       #ffffff;
  --off-white:   #F8F7F4;
  --border:      #E8E4DC;
  --light:       #F0EDE6;
  --black:       #0A0A0A;
  --black-soft:  #1C1C1C;
  --text:        #2A2A2A;
  --muted:       #7A7265;
  --gold:        #C9A961;
  --gold-dark:   #A8842A;
  --gold-light:  #DFC07A;
  --gold-bg:     rgba(201,169,97,0.10);
  --gold-border: rgba(201,169,97,0.32);
  --nav-h:       72px;
  --radius:      4px;
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.06);
  --shadow-md:   0 6px 32px rgba(0,0,0,0.10);
  --shadow-gold: 0 6px 28px rgba(201,169,97,0.18);
  --transition:  0.22s ease;
}

/* ── UTILITAIRES ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 5%; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.text-center { text-align: center; }
.text-gold { color: var(--gold-dark); }

.label {
  display: inline-block;
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 12px;
}
.gold-bar { width: 40px; height: 3px; background: var(--gold); margin-bottom: 20px; }
.gold-bar.center { margin-left: auto; margin-right: auto; }

.heading {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 900; font-style: italic;
  text-transform: uppercase; color: var(--black);
  line-height: 1.05; letter-spacing: -0.5px;
}
.subheading {
  font-size: 1rem; color: var(--muted);
  max-width: 540px; margin-top: 14px; line-height: 1.8;
}
.subheading.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ── BOUTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; font-weight: 700; font-size: 0.92rem;
  border-radius: var(--radius); transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--black); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--black-soft); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: var(--black); box-shadow: var(--shadow-gold); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--black); border: 1.5px solid var(--gold); }
.btn-outline:hover { background: var(--gold-bg); }
.btn-outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.28); }
.btn-outline-white:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { padding: 16px 38px; font-size: 1rem; }
.btn-sm { padding: 9px 20px; font-size: 0.82rem; }

/* ── NAVIGATION ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 16px rgba(0,0,0,0.05);
  transition: box-shadow var(--transition);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 5%;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 44px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px; font-size: 0.87rem; font-weight: 600;
  color: var(--text); border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-link:hover { color: var(--gold-dark); }
.nav-link.active { color: var(--gold-dark); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 4px; left: 14px; right: 14px;
  height: 2px; background: var(--gold); border-radius: 2px;
}
.nav-cta {
  margin-left: 8px;
  background: var(--black); color: var(--white);
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 0.87rem; font-weight: 700;
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--black-soft); }
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; cursor: pointer;
}
.nav-burger span {
  display: block; width: 24px; height: 2px;
  background: var(--black); border-radius: 2px;
  transition: all var(--transition);
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 999;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 20px 5% 28px;
  box-shadow: var(--shadow-md);
}
.nav-mobile.open { display: block; }
.nav-mobile ul { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.nav-mobile a {
  display: block; padding: 12px 16px;
  font-weight: 600; color: var(--text); border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.nav-mobile a:hover, .nav-mobile a.active { background: var(--off-white); color: var(--gold-dark); }
.nav-mobile .btn { width: 100%; justify-content: center; }

/* ── PAGE HERO (sous-pages) ── */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 64px;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}
.page-hero-inner { max-width: 720px; }
.page-hero .label { display: block; }
.breadcrumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb span { margin: 0 8px; }

/* ── STATS BAND ── */
.stats-band {
  background: var(--black); display: flex; flex-wrap: wrap;
}
.stat-cell {
  flex: 1; min-width: 140px; padding: 28px 32px;
  text-align: center; border-right: 1px solid rgba(255,255,255,0.07);
}
.stat-cell:last-child { border-right: none; }
.stat-num { display: block; font-size: 1.85rem; font-weight: 900; font-style: italic; color: var(--gold); line-height: 1; }
.stat-lbl { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.45); margin-top: 6px; }

/* ── CARDS GENERIQUES ── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 32px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); }

/* ── FORMULAIRE ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text); margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 0.95rem; color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-bg);
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-hint { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.form-error { font-size: 0.8rem; color: #c0392b; margin-top: 5px; display: none; }
.alert {
  padding: 16px 20px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600; margin-bottom: 24px;
}
.alert-success { background: #f0faf4; border: 1px solid #a8d5b8; color: #276444; }
.alert-error   { background: #fdf0f0; border: 1px solid #f0b0a8; color: #8b2020; }

/* ── FOOTER ── */
#footer {
  background: var(--off-white); border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-logo img { height: 52px; width: auto; margin-bottom: 16px; }
.footer-desc { font-size: 0.86rem; color: var(--muted); line-height: 1.8; margin-bottom: 18px; max-width: 280px; }
.footer-contact a { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 700; color: var(--black); transition: color var(--transition); margin-bottom: 8px; }
.footer-contact a:hover { color: var(--gold-dark); }
.footer-heading { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2.5px; color: var(--muted); margin-bottom: 18px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.87rem; color: var(--text); transition: color var(--transition); }
.footer-links a:hover { color: var(--gold-dark); }
.footer-bottom {
  padding-top: 28px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 0.78rem; color: var(--muted); }
.footer-copy strong { color: var(--text); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.78rem; color: var(--muted); transition: color var(--transition); }
.footer-legal a:hover { color: var(--black); }

/* ── AGENCE CARD ── */
.agence-card { overflow: hidden; }
.agence-top { background: var(--black); padding: 30px 32px; border-bottom: 3px solid var(--gold); }
.agence-city { font-size: 2rem; font-weight: 900; font-style: italic; text-transform: uppercase; color: var(--white); line-height: 1; }
.agence-tag-badge {
  display: inline-block; margin-top: 8px;
  background: var(--gold-bg); border: 1px solid var(--gold-border);
  color: var(--gold-dark); padding: 4px 12px;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
}
.agence-body { padding: 28px 32px 32px; }
.agence-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.agence-row-icon { color: var(--gold-dark); flex-shrink: 0; margin-top: 1px; font-size: 1rem; }
.agence-row strong { display: block; color: var(--text); font-weight: 700; font-size: 1rem; }
.agence-official { display: inline-flex; align-items: center; gap: 6px; background: var(--gold-bg); border: 1px solid var(--gold-border); color: var(--gold-dark); padding: 6px 14px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-top: 10px; }

/* ── GOOGLE MAP ── */
.map-frame { width: 100%; height: 320px; border: 1px solid var(--border); border-top: none; filter: grayscale(20%); }

/* ── BACK-TO-TOP ── */
#back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 46px; height: 46px;
  background: var(--black); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { transform: translateY(-3px); background: var(--black-soft); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-menu { display: none; }
  .nav-burger { display: flex; }
  .section { padding: 72px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-band { justify-content: center; }
  .stat-cell { min-width: 45%; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .heading { font-size: 1.8rem; }
  .stat-cell { min-width: 50%; }
  #back-to-top { bottom: 18px; right: 18px; }
}
