* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #1f2933;
  background-color: #f5f7fa;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  background: #0b3b5c;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.main-nav a {
  margin-left: 1.25rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.main-nav a:hover,
.main-nav a.active {
  opacity: 1;
  text-decoration: underline;
}

.hero {
  background-image: linear-gradient(135deg, rgba(11, 59, 92, 0.38), rgba(18, 99, 138, 0.38)), url("../img/devant.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 3rem 0 3.5rem;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text {
  background: rgba(0, 0, 0, 0.45);
  padding: 1.25rem 1.5rem;
  border-radius: 0.9rem;
  max-width: 36rem;
}

.hero-highlight-side {
  max-width: 260px;
  justify-self: flex-end;
}

.hero h1 {
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero p {
  max-width: 32rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-highlight {
  background: rgba(15, 23, 42, 0.35);
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
}

.phone-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.phone {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.small {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn.primary {
  background: #fca311;
  border-color: #fca311;
  color: #1f2933;
  font-weight: 600;
}

.btn.primary:hover {
  background: #ffb43a;
  border-color: #ffb43a;
}

.btn.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn.full {
  width: 100%;
}

main {
  padding-bottom: 3rem;
}

.section {
  padding: 3rem 0;
}

.section.alt {
  background: #e4ecf5;
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.section .intro {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.services {
  padding: 2.75rem 0 2.5rem;
}

.services h2 {
  margin-bottom: 1.5rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.depannage {
  padding: 2.75rem 0;
}

.depannage-content {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: flex-start;
}

.depannage-content ul {
  margin-top: 0.75rem;
  padding-left: 1.2rem;
}

.depannage-content li {
  margin-bottom: 0.25rem;
}

.depannage-box {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.rge {
  padding: 2.75rem 0;
}

.rge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.rge-logos {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.rge-logos img {
  display: block;
  background: #ffffff;
  border-radius: 0.5rem;
  padding: 0.35rem 0.6rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.contact {
  background: #ffffff;
  padding: 3rem 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-infos {
  margin-top: 0.75rem;
  list-style: none;
}

.contact-infos li + li {
  margin-top: 0.25rem;
}

.contact-form {
  background: #f5f7fa;
  border-radius: 0.75rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}

.form-row label {
  font-size: 0.9rem;
}

.form-row input,
.form-row textarea {
  border-radius: 0.5rem;
  border: 1px solid #c4ceda;
  padding: 0.55rem 0.7rem;
  font: inherit;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid #0b3b5c;
  outline-offset: 1px;
}

.site-footer {
  background: #0b3b5c;
  color: #f9fafb;
  padding: 1rem 0;
  font-size: 0.85rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a {
  opacity: 0.85;
}

.footer-links a:hover {
  opacity: 1;
}

.page-hero {
  background-image: linear-gradient(135deg, rgba(11, 59, 92, 0.38), rgba(18, 99, 138, 0.38)), url("../img/devant.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 2.5rem 0 2.75rem;
}

.page-hero .container {
  background: rgba(0, 0, 0, 0.45);
  border-radius: 0.9rem;
  padding: 1.5rem 1.75rem;
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  opacity: 0.9;
}

.breadcrumb a {
  text-decoration: underline;
}

.page-hero h1 {
  font-size: 1.9rem;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.page-hero .intro {
  max-width: 34rem;
  margin-bottom: 1.2rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.page main {
  padding-bottom: 3rem;
}

.two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: flex-start;
}

.highlight-box {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.highlight-box h3 {
  margin-bottom: 0.5rem;
}

.highlight-box ol {
  margin-left: 1.2rem;
}

.highlight-box li + li {
  margin-top: 0.25rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery-item {
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  background: #0b3b5c;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  opacity: 0.96;
}

.gallery-note {
  margin-top: 0.75rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.page-hero,
.card,
.depannage-box,
.highlight-box,
.gallery-item {
  animation: fadeInUp 0.6s ease both;
}

@media (max-width: 800px) {
  .hero-content,
  .depannage-content,
  .contact-layout,
  .two-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-header {
    position: static;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .main-nav a {
    margin-left: 0;
    margin-right: 1rem;
  }

  .hero {
    padding-top: 2.25rem;
  }
}
