/* ============================================
   NONZA MOTOS - Feuille de style
   Concession Moto Multi-Marques - Bastia, Corse
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@700;800&display=swap');

/* === Variables === */
:root {
  --rouge: #D41920;
  --rouge-fonce: #B01418;
  --rouge-clair: #E8302A;
  --noir: #1A1A1A;
  --gris-900: #2D2D2D;
  --gris-700: #555555;
  --gris-500: #888888;
  --gris-300: #CCCCCC;
  --gris-200: #E5E5E5;
  --gris-100: #F2F2F2;
  --gris-50: #F8F8F8;
  --blanc: #FFFFFF;

  --font-titre: 'Playfair Display', Georgia, serif;
  --font-texte: 'DM Sans', -apple-system, sans-serif;

  --radius: 6px;
  --radius-lg: 10px;
  --ombre: 0 2px 12px rgba(0,0,0,0.08);
  --ombre-hover: 0 4px 20px rgba(0,0,0,0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-texte);
  background: var(--blanc);
  color: var(--noir);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-titre);
  color: var(--noir);
  line-height: 1.2;
}

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

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

ul { list-style: none; }

button, input, textarea, select {
  font-family: var(--font-texte);
  font-size: 1rem;
  border: none;
  outline: none;
}

/* === Layout === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--gris-50);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--noir);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gris-700);
  max-width: 560px;
  margin-bottom: 40px;
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ============================
   HEADER
   ============================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--blanc);
  border-bottom: 1px solid var(--gris-200);
}

.header.scrolled {
  box-shadow: var(--ombre);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo img {
  height: 38px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-desktop a {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gris-700);
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.nav-desktop a:hover {
  color: var(--noir);
  background: var(--gris-100);
}

.nav-desktop a.active {
  color: var(--rouge);
  font-weight: 600;
}

.nav-cta {
  background: var(--rouge) !important;
  color: var(--blanc) !important;
  font-weight: 600 !important;
  padding: 9px 20px !important;
}

.nav-cta:hover {
  background: var(--rouge-fonce) !important;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--noir);
  margin: 5px auto;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--blanc);
  z-index: 999;
  padding: 90px 24px 40px;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 1.1rem;
  font-weight: 500;
  padding: 14px 24px;
  color: var(--gris-700);
  border-radius: var(--radius);
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--rouge);
  background: var(--gris-50);
}

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--noir);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 20px;
}

.hero-badge svg { display: none; }

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--rouge-clair);
  -webkit-text-fill-color: var(--rouge-clair);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.hero-description {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================
   BOUTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: 0.2s;
  border: none;
}

.btn-primary {
  background: var(--rouge);
  color: #fff;
}

.btn-primary:hover {
  background: var(--rouge-fonce);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

/* Sur fond clair */
.section .btn-outline,
.section-alt .btn-outline,
.cta-section .btn-outline {
  color: var(--noir);
  border-color: var(--gris-300);
}

.section .btn-outline:hover,
.section-alt .btn-outline:hover {
  background: var(--gris-100);
  border-color: var(--gris-500);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* ============================
   CARTES
   ============================ */
.card {
  background: var(--blanc);
  border: 1px solid var(--gris-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  border-color: var(--gris-300);
  box-shadow: var(--ombre-hover);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FEF0F0;
  border-radius: var(--radius);
  margin-bottom: 16px;
  color: var(--rouge);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-family: var(--font-texte);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  color: var(--gris-700);
  font-size: 0.93rem;
}

/* ============================
   SERVICES
   ============================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  text-align: left;
  padding: 28px;
}

.service-card .card-icon {
  margin: 0 0 16px 0;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  color: var(--rouge);
  font-weight: 500;
  font-size: 0.9rem;
}

.service-link svg {
  width: 16px;
  height: 16px;
}

.service-link:hover {
  text-decoration: underline;
}

/* ============================
   MARQUES
   ============================ */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.brand-card {
  background: var(--blanc);
  border: 1px solid var(--gris-200);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.brand-card::before { display: none; }

.brand-card:hover {
  transform: scale(1.06);
  border-color: var(--rouge);
  box-shadow: 0 6px 24px rgba(212, 25, 32, 0.12);
  z-index: 10;
}

.brand-card-content {
  position: relative;
  z-index: 1;
}

.brand-name {
  font-family: var(--font-texte);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--noir);
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--gris-500);
  margin-top: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.25s;
}

.brand-card:hover .brand-subtitle {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   HISTOIRE
   ============================ */
.history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.history-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--ombre);
}

.history-content h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.history-content h2 span {
  color: var(--rouge);
  -webkit-text-fill-color: var(--rouge);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.history-content p {
  color: var(--gris-700);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.history-stat {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 20px;
  background: var(--gris-50);
  border: 1px solid var(--gris-200);
  border-radius: var(--radius);
}

.history-stat .stat-number {
  font-family: var(--font-titre);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--rouge);
}

.history-stat .stat-label {
  font-size: 0.85rem;
  color: var(--gris-700);
  line-height: 1.3;
}

/* ============================
   RÉSEAUX SOCIAUX
   ============================ */
.social-bar {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gris-100);
  border: 1px solid var(--gris-200);
  border-radius: var(--radius);
  color: var(--gris-700);
  transition: 0.2s;
}

.social-link:hover {
  background: var(--rouge);
  border-color: var(--rouge);
  color: #fff;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* ============================
   PAGE HERO (pages internes)
   ============================ */
.page-hero {
  padding: 130px 0 60px;
  text-align: center;
  background: var(--gris-50);
  border-bottom: 1px solid var(--gris-200);
}

.page-hero::after { display: none; }

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero h1 span {
  color: var(--rouge);
  -webkit-text-fill-color: var(--rouge);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.page-hero p {
  color: var(--gris-700);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto;
}

/* ============================
   FORMULAIRES
   ============================ */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--noir);
}

.form-group label .required {
  color: var(--rouge);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 14px;
  background: var(--blanc);
  border: 1px solid var(--gris-300);
  border-radius: var(--radius);
  color: var(--noir);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--rouge);
  box-shadow: 0 0 0 3px rgba(212, 25, 32, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gris-500);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.form-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-card {
  background: var(--blanc);
  border: 1px solid var(--gris-200);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 32px 16px;
}

.form-success.show {
  display: block;
}

.form-success svg {
  width: 56px;
  height: 56px;
  color: #16A34A;
  margin-bottom: 12px;
}

.form-success h3 {
  font-family: var(--font-texte);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.form-success p {
  color: var(--gris-700);
}

/* ============================
   TARIFS
   ============================ */
.pricing-card {
  background: var(--blanc);
  border: 1px solid var(--gris-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pricing-header {
  padding: 28px;
  background: var(--gris-50);
  border-bottom: 1px solid var(--gris-200);
  text-align: center;
}

.pricing-header h3 {
  font-family: var(--font-texte);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-price {
  font-family: var(--font-titre);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--rouge);
}

.pricing-price span {
  font-family: var(--font-texte);
  font-size: 1rem;
  font-weight: 400;
  color: var(--gris-700);
}

.pricing-body {
  padding: 24px 28px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gris-100);
  color: var(--gris-700);
  font-size: 0.93rem;
}

.pricing-feature:last-child {
  border-bottom: none;
}

.pricing-feature svg {
  width: 18px;
  height: 18px;
  color: var(--rouge);
  flex-shrink: 0;
}

/* ============================
   CTA
   ============================ */
.cta-section {
  text-align: center;
  padding: 60px 0;
  background: var(--gris-50);
  border-top: 1px solid var(--gris-200);
  border-bottom: 1px solid var(--gris-200);
}

.cta-section::before { display: none; }

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.cta-section h2 span {
  color: var(--rouge);
  -webkit-text-fill-color: var(--rouge);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.cta-section p {
  color: var(--gris-700);
  font-size: 1.05rem;
  max-width: 460px;
  margin: 0 auto 24px;
}

/* ============================
   CONTACT
   ============================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--blanc);
  border: 1px solid var(--gris-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: 0.2s;
}

.contact-info-card:hover {
  border-color: var(--gris-300);
  box-shadow: var(--ombre);
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FEF0F0;
  border-radius: var(--radius);
  color: var(--rouge);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 18px;
  height: 18px;
}

.contact-info-text h4 {
  font-family: var(--font-texte);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-info-text p,
.contact-info-text a {
  color: var(--gris-700);
  font-size: 0.9rem;
}

.contact-info-text a:hover {
  color: var(--rouge);
}

/* Map */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gris-200);
  height: 300px;
  margin-top: 20px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================
   FEATURES
   ============================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--blanc);
  border: 1px solid var(--gris-200);
  border-radius: var(--radius-lg);
  transition: 0.2s;
}

.feature-item:hover {
  box-shadow: var(--ombre-hover);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FEF0F0;
  border-radius: var(--radius-lg);
  margin: 0 auto 16px;
  color: var(--rouge);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-item h3 {
  font-family: var(--font-texte);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-item p {
  color: var(--gris-700);
  font-size: 0.88rem;
}

/* ============================
   LIEN EXTERNE
   ============================ */
.external-link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: var(--blanc);
  border: 1px solid var(--gris-200);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: 0.2s;
  max-width: 700px;
  margin: 0 auto;
}

.external-link-card:hover {
  border-color: var(--rouge);
  box-shadow: var(--ombre-hover);
}

.external-link-content h3 {
  font-family: var(--font-texte);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.external-link-content p {
  color: var(--gris-700);
  margin-bottom: 20px;
  max-width: 440px;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--noir);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer .social-link {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
}

.footer .social-link:hover {
  background: var(--rouge);
  border-color: var(--rouge);
  color: #fff;
}

.footer-col h4 {
  font-family: var(--font-texte);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ============================
   ANIMATIONS (subtiles)
   ============================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .mobile-toggle { display: block; }
  .history-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .hero { min-height: 90svh; }
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .section-title { font-size: 1.6rem; }
  .page-hero { padding: 110px 0 40px; }
  .page-hero h1 { font-size: 1.8rem; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .brand-card { min-height: 90px; padding: 20px 12px; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-section h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.7rem; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gris-100); }
::-webkit-scrollbar-thumb { background: var(--gris-300); border-radius: 3px; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--rouge);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
