/* =============================================
   RAILLON AUTOS SERVICES — Ford La Voulte-sur-Rhône
   Palette : #003478 (bleu Ford), #1a5276, #2980b9
   ============================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1a1a2e; background: #f8f9fa; line-height: 1.7;
}
a { color: #003478; text-decoration: none; transition: color .2s; }
a:hover { color: #2980b9; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; color: #003478; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .6em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .5em; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin-bottom: .4em; }
p { margin-bottom: 1em; }

/* ---------- Container ---------- */
.container { width: 92%; max-width: 1200px; margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: #003478; box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 0; gap: 1rem;
}
.logo { display: flex; flex-direction: column; color: #fff; text-decoration: none; }
.logo-main { font-size: 1.15rem; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.logo-sub { font-size: .72rem; font-weight: 400; opacity: .85; letter-spacing: 1.5px; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: .15rem; }
.main-nav a {
  color: rgba(255,255,255,.9); padding: .45rem .7rem; border-radius: 4px;
  font-size: .88rem; font-weight: 500; transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,.15); color: #fff; }
.btn-cta {
  display: inline-block; background: #2980b9; color: #fff !important; padding: .55rem 1.2rem;
  border-radius: 5px; font-weight: 700; font-size: .88rem; transition: background .2s, transform .15s;
  border: none; cursor: pointer; text-align: center;
}
.btn-cta:hover { background: #1a6ea0; transform: translateY(-1px); }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; }
.burger span { display: block; width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: .3s; }

@media (max-width: 900px) {
  .burger { display: flex; }
  .main-nav {
    position: fixed; top: 0; right: -100%; width: 75%; max-width: 320px; height: 100vh;
    flex-direction: column; background: #003478; padding: 5rem 2rem 2rem;
    gap: 0; transition: right .35s ease; box-shadow: -4px 0 20px rgba(0,0,0,.3);
  }
  .main-nav.open { right: 0; }
  .main-nav a { padding: .8rem 0; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 999;
  }
  .nav-overlay.active { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, rgba(0,52,120,.88), rgba(26,82,118,.82)),
              url('https://images.unsplash.com/photo-1494976388531-d1058494cdd8?w=1400&q=75&auto=format&fit=crop') center/cover no-repeat;
  color: #fff; padding: 4.5rem 0 4rem; text-align: center;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); }
.hero p { font-size: 1.15rem; max-width: 700px; margin: 0 auto 1.5rem; opacity: .93; }
.hero .btn-cta { font-size: 1rem; padding: .75rem 2rem; }

.hero-sm { padding: 3rem 0 2.5rem; }
.hero-sm h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }

/* ---------- Content Sections ---------- */
.section { padding: 3.5rem 0; }
.section-alt { background: #fff; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title::after {
  content: ''; display: block; width: 60px; height: 3px; background: #2980b9;
  margin: .6rem auto 0; border-radius: 2px;
}

/* ---------- Grid Layout ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Content with Sidebar ---------- */
.content-with-sidebar {
  display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start;
}
@media (max-width: 900px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
}

/* ---------- Sidebar ---------- */
.sidebar-cta {
  background: #003478; color: #fff; border-radius: 10px; padding: 2rem;
  position: sticky; top: 5rem; text-align: center;
}
.sidebar-cta h3 { color: #fff; margin-bottom: .8rem; }
.sidebar-cta p { opacity: .9; font-size: .95rem; margin-bottom: 1.2rem; }
.sidebar-cta .btn-cta { background: #fff; color: #003478 !important; width: 100%; }
.sidebar-cta .btn-cta:hover { background: #e8f0fe; }
.sidebar-cta ul { text-align: left; margin: 1rem 0; }
.sidebar-cta ul li { padding: .3rem 0; font-size: .9rem; }
.sidebar-cta ul li::before { content: '✓ '; color: #2980b9; font-weight: 700; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border-radius: 10px; padding: 2rem;
  box-shadow: 0 2px 15px rgba(0,0,0,.06); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,.1); }
.card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: .5rem; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #003478, #1a5276);
  color: #fff; padding: 3rem 0; text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: .5rem; }
.cta-banner p { opacity: .9; margin-bottom: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-cta { background: #fff; color: #003478 !important; font-size: 1rem; padding: .75rem 2.2rem; }
.cta-banner .btn-cta:hover { background: #e8f0fe; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid #e0e0e0; padding: 1.2rem 0; }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 700; font-size: 1.05rem; color: #003478;
  background: none; border: none; width: 100%; text-align: left; padding: 0;
  font-family: inherit;
}
.faq-question::after { content: '+'; font-size: 1.5rem; transition: transform .3s; flex-shrink: 0; margin-left: 1rem; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s; }
.faq-item.open .faq-answer { max-height: 500px; padding-top: .8rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0a1628; color: rgba(255,255,255,.8); padding: 3.5rem 0 1.5rem; }
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 2.5rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col a { color: rgba(255,255,255,.7); display: block; padding: .25rem 0; font-size: .9rem; }
.footer-col a:hover { color: #2980b9; }
.footer-col p { font-size: .9rem; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem;
  text-align: center; font-size: .82rem; opacity: .6;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .3rem; color: #003478; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .7rem 1rem; border: 2px solid #dde; border-radius: 6px;
  font-size: 1rem; font-family: inherit; transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: #2980b9; outline: none;
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* ---------- Table ---------- */
.styled-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.styled-table th, .styled-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid #e8e8e8; }
.styled-table th { background: #003478; color: #fff; font-weight: 600; }
.styled-table tr:hover { background: #f0f4f8; }

/* ---------- Badge / Tag ---------- */
.badge {
  display: inline-block; background: #e8f0fe; color: #003478;
  padding: .2rem .7rem; border-radius: 20px; font-size: .8rem; font-weight: 600;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: .8rem 0; font-size: .85rem; color: #666; }
.breadcrumb a { color: #2980b9; }
.breadcrumb span { margin: 0 .4rem; }

/* ---------- Animations fade-in ---------- */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- Internal links list ---------- */
.internal-links { background: #f0f4f8; border-radius: 8px; padding: 1.5rem 2rem; margin: 2rem 0; }
.internal-links h3 { font-size: 1rem; margin-bottom: .8rem; }
.internal-links ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.internal-links ul li a {
  display: inline-block; background: #fff; padding: .35rem .9rem;
  border-radius: 20px; font-size: .85rem; border: 1px solid #dde;
  transition: background .2s, border-color .2s;
}
.internal-links ul li a:hover { background: #003478; color: #fff; border-color: #003478; }

/* ---------- Promo card ---------- */
.promo-card {
  background: linear-gradient(135deg, #003478, #1a5276);
  color: #fff; border-radius: 10px; padding: 2rem; text-align: center;
}
.promo-card h3 { color: #fff; }
.promo-card .old-price { text-decoration: line-through; opacity: .7; font-size: .9rem; }
.promo-card .new-price { font-size: 1.8rem; font-weight: 800; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
