/* ─── Variables ─── */
:root {
  --primary: #006f8e;
  --primary-dark: #004f66;
  --accent: #00bcd4;
  --text: #2d3748;
  --muted: #718096;
  --bg: #f5f7fa;
  --white: #ffffff;
  --border: #e2e8f0;
}

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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

/* ─── NAVBAR ─── */
header {
  background: #1a1a2e;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-img {
  height: 38px;
  border-radius: 6px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 8px;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.nav-links a:hover {
  background: rgba(0,188,212,0.2);
  color: var(--accent);
}

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, rgba(0,31,50,0.88) 0%, rgba(0,111,142,0.75) 100%),
              url("accueil.jpg") no-repeat center center / cover;
  color: white;
  text-align: center;
  padding: 110px 20px 100px;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hero-tagline {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.2;
}

.hero-sub {
  font-size: 1.05rem;
  opacity: 0.88;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.btn:hover { background: #0097a7; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  transform: translateY(-1px);
}

/* ─── SECTION COMMUNES ─── */
section { padding: 70px 20px; }

h2 {
  text-align: center;
  font-size: 1.9rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 44px;
}

/* ─── SERVICES ─── */
.services { background: var(--bg); }

.service-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: 12px;
  width: 240px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-icon { font-size: 2rem; margin-bottom: 14px; }

.card h3 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.card p { font-size: 0.88rem; color: var(--muted); }

/* ─── GALERIE ─── */
.produits { background: var(--white); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  background: var(--bg);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}

.item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.item:hover img { transform: scale(1.04); }

.item-info {
  padding: 12px 14px;
}

.item-brand {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.item-desc {
  font-size: 0.88rem;
  color: var(--text);
}

/* ─── CONTACT ─── */
.contact { background: var(--bg); }

.contact-layout {
  display: flex;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.contact-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 280px;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,188,212,0.15);
}

.contact-form select {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s;
  width: 100%;
  color: var(--text);
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group { flex: 1; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.contact-form button {
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 4px;
}

.contact-form button:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.contact-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-alert {
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
}

.form-error {
  background: #fce4ec;
  border: 1px solid #f48fb1;
  color: #c62828;
}

.nav-links a.active {
  background: rgba(0,188,212,0.2);
  color: var(--accent);
}

.contact-info {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-icon { font-size: 1.4rem; margin-top: 2px; }

.info-item strong {
  display: block;
  color: var(--primary-dark);
  font-size: 0.9rem;
  margin-bottom: 3px;
}

.info-item p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.info-item a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.info-item a:hover { text-decoration: underline; }

/* ─── FOOTER ─── */
footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 40px 20px 24px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-logo {
  height: 32px;
  border-radius: 4px;
}

.footer-slogan {
  font-size: 0.85rem;
  color: var(--accent);
  font-style: italic;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.6);
}

.footer-address {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.9rem; }
  .nav-links { display: none; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .item img { height: 150px; }
  .contact-layout { flex-direction: column; }
  .footer-legal { flex-direction: column; gap: 4px; }
  .form-row { flex-direction: column; }
}
