/* ==========================================================================
   Occaz Garantie – Feuille de styles principale
   Auteur : Imran Costanzo – occazgarantie.com
   Version : 2.0 – Avril 2026
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --navy: #0b1f3a;
  --blue: #1a5eb8;
  --blue-light: #2f7ae0;
  --blue-pale: #e8f1fb;
  --green: #2e7d32;
  --green-pale: #e8f5e9;
  --orange: #e65100;
  --orange-pale: #fff3e0;
  --gray-50: #fafbfc;
  --gray-100: #f7f8fa;
  --gray-200: #eef0f4;
  --gray-400: #b0b8c8;
  --gray-600: #6b7a94;
  --gray-900: #1a1f2e;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 8px 32px rgba(11, 31, 58, 0.1);
  --shadow-lg: 0 12px 40px rgba(11, 31, 58, 0.14);
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'Outfit', sans-serif;
  --font-display: 'DM Serif Display', serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--gray-900);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-200);
  height: 72px;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--blue);
  flex-shrink: 0;
  background: var(--white);
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text span:first-child {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.logo-text span:last-child {
  font-size: 11px;
  font-weight: 400;
  color: var(--blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: var(--navy);
  background: var(--gray-100);
}

.nav-link[aria-current="page"] {
  color: var(--blue);
  background: var(--blue-pale);
}

.nav-cta {
  padding: 10px 22px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition);
}

.nav-cta:hover {
  background: var(--blue);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Layout ---------- */
.page-wrap {
  padding-top: 72px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Buttons ---------- */
.btn-primary {
  padding: 14px 28px;
  border-radius: 10px;
  background: var(--blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  transition: background var(--transition), transform var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
}

.btn-primary--dark {
  background: var(--navy);
}

.btn-primary--dark:hover {
  background: var(--blue);
}

.btn-ghost {
  padding: 14px 28px;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-body);
  transition: all var(--transition);
  display: inline-block;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ---------- Section ---------- */
.section {
  padding: 100px 32px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  color: var(--navy);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 560px;
}

/* ---------- Page Header ---------- */
.page-header {
  background: var(--navy);
  padding: 80px 32px 60px;
}

.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  color: var(--white);
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  max-width: 560px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 60px 32px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-link {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.footer-link:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  /* Mobile menu open */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px;
    box-shadow: var(--shadow-md);
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 20px;
  }

  .page-header {
    padding: 60px 20px 40px;
  }
}
