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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #333;
  background-color: #fff;
}

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

/* =============================== HEADER ================================ */
header {
  background-color: #fff;
  border-bottom: 3px solid #00A8CC;
  padding: 14px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

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

.header-logo img {
  height: 70px;
  width: auto;
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.header-phone {
  font-size: 1.15rem;
  font-weight: 700;
  color: #00A8CC;
  letter-spacing: 0.03em;
}

.header-email {
  font-size: 0.88rem;
  color: #666;
}

.header-phone:hover { color: #007fa0; }
.header-email:hover { color: #333; }

/* =============================== MENU ================================ */
.menu {
  background-color: #2c2c2c;
  position: sticky;
  top: 99px;
  z-index: 99;
}

.menu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
}

.menu ul li a {
  display: block;
  padding: 14px 20px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.menu ul li a:hover {
  color: #00A8CC;
}

.menu-fb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1877F2;
  border-radius: 6px;
  padding: 8px 12px !important;
  transition: background-color 0.2s ease;
}

.menu-fb-btn:hover {
  background-color: #0f5cbf !important;
  color: #fff !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 20px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

/* =============================== HERO ================================ */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #2c3e50 60%, #00A8CC 100%);
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.hero-overlay h1 {
  font-family: 'Fredoka One', 'Segoe UI', Arial, sans-serif;
  font-size: 4.2rem;
  font-weight: 400;
  color: #00C8EE;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

.hero-tagline {
  font-size: 1.3rem;
  color: #00A8CC;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.hero-zone {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-block;
  background-color: #00A8CC;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 8px;
  letter-spacing: 0.04em;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: #007fa0;
  transform: scale(1.04);
}

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

/* =============================== SECTION TITLES ================================ */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 10px;
}

.section-title.light {
  color: #fff;
}

.section-subtitle {
  text-align: center;
  color: #666;
  font-size: 1rem;
  margin-bottom: 48px;
}

.section-subtitle.light {
  color: rgba(255,255,255,0.8);
}

/* =============================== SERVICES ================================ */
.services-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 44px 32px 36px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  border: 1px solid #edf0f3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: #00A8CC;
  border-radius: 2px 2px 0 0;
  transition: width 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,168,204,0.12);
}

.service-card:hover::after {
  width: 80px;
}

.service-icon {
  margin-bottom: 22px;
  display: flex;
  justify-content: center;
}

.service-icon svg {
  width: 56px;
  height: 56px;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.service-card p {
  font-size: 0.93rem;
  color: #666;
  line-height: 1.75;
}

/* =============================== À PROPOS ================================ */
.about-section {
  padding: 80px 0;
  background-color: #fff;
}

.about-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-text {
  flex: 1;
}

.about-text .section-title {
  text-align: left;
}

.about-text p {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-text p strong {
  color: #1a1a2e;
}

.btn-secondary {
  display: inline-block;
  background-color: #1a1a2e;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 8px;
  margin-top: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  background-color: #00A8CC;
  transform: scale(1.03);
}

.about-logo {
  flex: 0 0 320px;
  text-align: center;
}

.about-logo img {
  width: 100%;
  max-width: 320px;
}

/* =============================== RÉALISATIONS ================================ */
.realisations-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* =============================== GALLERY NAV ================================ */
.gallery-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gallery-nav .gallery-grid {
  flex: 1;
}

.gallery-arrow {
  background: #fff;
  border: 2px solid #00A8CC;
  color: #00A8CC;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,168,204,0.15);
}

.gallery-arrow svg {
  width: 22px;
  height: 22px;
}

.gallery-arrow:hover {
  background: #00A8CC;
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0,168,204,0.3);
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}

.gallery-dot.active {
  background: #00A8CC;
  transform: scale(1.3);
}

/* =============================== LIGHTBOX ================================ */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#lightbox.active {
  display: flex;
}

#lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(0,168,204,0.5); }

.gallery-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: #aaa;
  font-size: 1.1rem;
  border: 2px dashed #ddd;
  border-radius: 12px;
}

/* =============================== CONTACT ================================ */
.contact-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #2c3e50 100%);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.contact-card {
  background-color: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: block;
}

.contact-card:hover {
  background-color: rgba(0,168,204,0.2);
  transform: translateY(-4px);
}

.contact-card.no-link:hover {
  transform: none;
  background-color: rgba(255,255,255,0.08);
  cursor: default;
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #00A8CC;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* =============================== FOOTER ================================ */
footer {
  background-color: #111;
  padding: 24px 40px;
  text-align: center;
}

footer p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  line-height: 1.8;
}

/* =============================== BACK TO TOP ================================ */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background-color: #00A8CC;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease;
  z-index: 999;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#back-to-top:hover {
  transform: scale(1.1);
}

/* =============================== RESPONSIVE ================================ */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-inner {
    flex-direction: column;
    text-align: center;
  }

  .about-text .section-title {
    text-align: center;
  }

  .about-logo {
    flex: 0 0 auto;
  }

  .about-logo img {
    max-width: 260px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    padding: 12px 20px;
    position: relative;
  }

  .header-logo img {
    height: 50px;
  }

  .header-email {
    display: none;
  }

  .menu {
    position: relative;
    top: 0;
  }

  .hamburger {
    display: flex;
  }

  .menu ul {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background-color: #2c2c2c;
  }

  .menu ul.open {
    display: flex;
  }

  .menu ul li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .menu ul li a {
    padding: 16px 20px;
    width: 100%;
    display: block;
  }

  .menu-fb-btn {
    border-radius: 0 !important;
    padding: 16px 20px !important;
    justify-content: center;
  }

  .hero-overlay h1 {
    font-size: 2.8rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-arrow {
    width: 36px;
    height: 36px;
  }

  .gallery-arrow svg {
    width: 16px;
    height: 16px;
  }

  .about-logo img {
    max-width: 200px;
  }

  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }

  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
    padding: 6px 12px;
  }
}
