/* Chauvaux TP */

:root {
  --blue: #1a3a5c;
  --blue-dark: #0f2740;
  --yellow: #e8a624;
  --yellow-dark: #c78d1a;
  --text: #333;
  --text-light: #5a6370;
  --bg: #fff;
  --bg-alt: #f4f6f8;
  --bg-dark: #1a2332;
  --border: #d8dee5;
  --radius: 6px;
  --shadow: 0 2px 8px rgba(0,0,0,0.07);
  --max-w: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--yellow-dark); }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--blue);
}

.logo-icon {
  width: 36px; height: 36px;
  border-radius: 4px;
}

.logo span { color: var(--yellow-dark); }

.nav { display: flex; align-items: center; gap: 1.5rem; }

.nav-links { display: flex; gap: 1.5rem; }

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.nav-links a:hover { color: var(--yellow-dark); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
}
.lang-switch:hover { border-color: var(--yellow); color: var(--blue); }
.lang-switch svg { width: 14px; height: 14px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.25s ease;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero */
.hero {
  margin-top: 64px;
  padding: 5rem 0 4rem;
  background: var(--blue);
  color: #fff;
}

.hero-content { max-width: 640px; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  color: var(--yellow);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero h1 .highlight { color: var(--yellow); }

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 540px;
}

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stat .number { font-size: 1.6rem; font-weight: 700; color: var(--yellow); }
.hero-stat .label { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 0.15rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn svg { width: 16px; height: 16px; }

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

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

.btn-secondary { background: var(--blue); color: #fff; }
.btn-secondary:hover { background: var(--blue-dark); color: #fff; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-header .overline {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--yellow-dark);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1rem;
  color: var(--text-light);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
}

.about-image-placeholder {
  width: 100%; height: 100%;
  background: var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  gap: 0.75rem;
}
.about-image-placeholder svg { width: 64px; height: 64px; opacity: 0.4; }
.about-image-placeholder span { font-size: 0.85rem; }

.about-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--blue-dark);
}

.about-feature .icon {
  width: 28px; height: 28px;
  background: rgba(232,166,36,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-feature .icon svg { width: 14px; height: 14px; color: var(--yellow-dark); }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.service-card:hover { box-shadow: var(--shadow); }

.service-icon {
  width: 48px; height: 48px;
  background: var(--blue);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.service-icon svg { width: 24px; height: 24px; color: var(--yellow); }

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
}

.service-card ul { margin-top: 0.75rem; }

.service-card li {
  padding: 0.2rem 0;
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.service-card li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--yellow);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Zone */
.zone-content {
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}
.zone-content p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.zone-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.zone-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--bg);
}

.faq-item summary {
  padding: 1.15rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blue-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-light);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after { content: '-'; }

.faq-item[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq-item p {
  padding: 1rem 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}

.contact-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.75rem;
}

.contact-info > p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.contact-details { display: flex; flex-direction: column; gap: 1rem; }

.contact-item { display: flex; align-items: flex-start; gap: 0.75rem; }

.contact-item .icon {
  width: 40px; height: 40px;
  background: rgba(232,166,36,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item .icon svg { width: 18px; height: 18px; color: var(--yellow-dark); }

.contact-item .text { display: flex; flex-direction: column; }
.contact-item .text strong { font-size: 0.8rem; color: var(--text-light); font-weight: 600; margin-bottom: 0.1rem; }
.contact-item .text span,
.contact-item .text a { font-size: 0.95rem; color: var(--blue-dark); font-weight: 500; }

/* Form */
.contact-form-wrapper {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
}

.contact-form-wrapper h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-group { margin-bottom: 0.75rem; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--yellow);
}

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

.callback-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}
.callback-toggle input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--yellow);
}

.callback-fields { display: none; gap: 0.75rem; }
.callback-fields.visible { display: grid; grid-template-columns: 1fr 1fr; }

.form-submit { margin-top: 0.5rem; }
.form-submit .btn { width: 100%; justify-content: center; padding: 0.85rem; }

.form-success { display: none; text-align: center; padding: 2rem; }
.form-success.visible { display: block; }
.form-success svg { width: 40px; height: 40px; color: #27ae60; margin: 0 auto 0.75rem; }
.form-success h4 { font-size: 1.1rem; color: var(--blue-dark); margin-bottom: 0.4rem; }
.form-success p { color: var(--text-light); font-size: 0.9rem; }

/* Footer */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.65);
  padding: 3rem 0 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-brand .logo { color: #fff; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.65; max-width: 320px; }

.footer h4 { font-size: 0.9rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }

.footer-links a {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.footer-links a:hover { color: var(--yellow); }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.25rem 0;
  font-size: 0.85rem;
}
.footer-contact-item svg { width: 14px; height: 14px; color: var(--yellow); flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

.footer-legal a {
  color: rgba(255,255,255,0.35);
  margin-left: 1.25rem;
}
.footer-legal a:hover { color: var(--yellow); }

/* Responsive */
@media (max-width: 968px) {
  .hero h1 { font-size: 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    z-index: 99;
  }
  .nav-links.active { display: flex; }
  .nav-links a { font-size: 1.1rem; }
  .menu-toggle { display: block; }

  .hero { padding: 3.5rem 0 3rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }

  .section { padding: 3rem 0; }
  .section-header h2 { font-size: 1.5rem; }

  .services-grid { grid-template-columns: 1fr; }
  .form-row, .callback-fields.visible { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
