/* Core layout and theme */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Toast messages */
#toast { position: fixed; z-index: 2000; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 12px 16px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; font-weight: 600; }
#toast.show { opacity: 1; }
.toast-success { background: #0f2a6a; color: #fff; }
.toast-error { background: #d9534f; color: #fff; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; background-color: #f8f9fa; }

/* Header */
.header { background: linear-gradient(135deg, #0f2a6a 0%, #1a3d7a 100%); color: white; padding: 0.6rem 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: fixed; width: 100%; top: 0; z-index: 1000; }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 2rem; }
.logo-section { display: flex; align-items: center; gap: 1rem; }
.logo-img { width: 64px; height: 64px; border-radius: 8px; border: 2px solid #ffbc66; object-fit: contain; background: white; padding: 5px; }
.nav-menu { display: flex; list-style: none; gap: 1.25rem; }
.nav-menu li a { color: white; text-decoration: none; font-weight: 500; transition: color 0.3s ease; padding: 0.4rem 0.75rem; border-radius: 5px; position: relative; font-size: 0.95rem; }
.nav-menu li a::after { content: ""; position: absolute; left: 50%; bottom: 0.2rem; height: 2px; width: 0; background: #ffbc66; border-radius: 2px; transform: translateX(-50%); transition: width 0.25s ease; }
.nav-menu li a:hover { color: #ffbc66; background-color: rgba(255, 188, 102, 0.08); }
.nav-menu li a:hover::after { width: 60%; }
.mobile-menu-btn { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero { position: relative; margin-top: 80px; color: white; }
.hero .hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; text-align: center; pointer-events: none; z-index: 3; }
.hero .hero-content .cta-buttons { pointer-events: auto; }
.hero-content h1 { font-size: 3.6rem; margin-bottom: 1rem; color: #ffbc66; text-shadow: 0 3px 18px rgba(0,0,0,0.35); }
.hero-content p { font-size: 1.25rem; margin-bottom: 2rem; max-width: 680px; text-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.cta-buttons { display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; }
.btn { padding: 1rem 2rem; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: inline-block; }
.hero .btn { padding: 1.15rem 2.3rem; font-size: 1.15rem; }
.btn-primary { background: #ffbc66; color: #0f2a6a; }
.btn-primary:hover { background: #ff9f33; transform: translateY(-2px); }
.btn-secondary { background: transparent; color: white; border: 2px solid white; }
.btn-secondary:hover { background: white; color: #0f2a6a; }
.btn-outline { background: transparent; color: #0f2a6a; border: 2px solid #0f2a6a; }
.btn-outline:hover { background: #0f2a6a; color: #fff; }
.btn-success { background: #25D366; color: #0b3b1e; }
.btn-success:hover { background: #1ebe5d; }

/* Smaller action button inside gallery cards */
.gallery-actions .btn { font-size: 0.85rem; padding: 0.45rem 0.8rem; border-width: 2px; }

/* Hero carousel */
.carousel { position: relative; max-width: 1200px; margin: 0 auto; overflow: hidden; border-radius: 10px; }
.carousel-track { display: flex; flex-wrap: nowrap; width: 100%; transition: transform 500ms ease; will-change: transform; }
.slide { position: relative; flex: 0 0 100%; height: clamp(190px, 35vw, 340px); overflow: hidden; background: #111; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide:not(.is-active) img { animation: none; }
.slide.is-active img { animation: kenburns 10s ease-in-out infinite alternate; will-change: transform; }
.hero .carousel::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.2) 70%); pointer-events: none; z-index: 2; }

@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-2%, -2%); }
}
.caption { position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; background: rgba(0,0,0,0.45); border-radius: 6px; font-size: 1rem; }
.nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(0,0,0,0.45); color: #fff; font-size: 24px; cursor: pointer; z-index: 4; }
.nav:hover { background: rgba(0,0,0,0.65); }
.nav:focus { outline: 2px solid #fff; outline-offset: 2px; }
.nav.prev { left: 10px; }
.nav.next { right: 10px; }
.dots { display: flex; gap: 8px; justify-content: center; padding: 12px 0 18px; position: relative; z-index: 4; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: #9fb3c8; opacity: 0.6; cursor: pointer; }
.dots button[aria-current="true"] { background: #ffffff; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

.operations-section { padding: 2.2rem 0; background: white; }
.video-section { padding: 2.6rem 0; background: #f8f9fa; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-title { text-align: center; font-size: 2.1rem; color: #0f2a6a; margin-bottom: 0.55rem; }
.section-subtitle { text-align: center; font-size: 1.02rem; color: #666; margin-bottom: 1.25rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.gallery-item { background: white; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 28px rgba(0,0,0,0.12); border: 1px solid #e9eef5; transition: transform 0.35s ease, box-shadow 0.35s ease; cursor: pointer; }
.gallery-item:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(0,0,0,0.18); }
.gallery-image { width: 100%; height: 260px; background-size: cover; background-position: center; position: relative; overflow: hidden; border-top-left-radius: 14px; border-top-right-radius: 14px; transition: background-position 0.5s ease, filter 0.35s ease; }
.gallery-image .photo-badge { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.6); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 6px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; backdrop-filter: blur(2px); letter-spacing: .2px; }
.gallery-image .photo-badge svg { width: 14px; height: 14px; display: block; }
.gallery-image .view-hint { position: absolute; right: 10px; bottom: 10px; background: rgba(255,255,255,0.88); color: #0f2a6a; font-size: 0.75rem; font-weight: 800; padding: 6px 10px; border-radius: 8px; transform: translateY(8px); opacity: 0; transition: all 0.25s ease; box-shadow: 0 8px 18px rgba(0,0,0,0.15); }
.gallery-item:hover .gallery-image .view-hint { transform: translateY(0); opacity: 1; }
/* Small image indicator (icon only, no number) */
.gallery-image .photo-indicator { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff; box-shadow: 0 6px 12px rgba(0,0,0,0.2); }
.gallery-image .photo-indicator svg { width: 15px; height: 15px; display: block; }
.gallery-overlay { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.58) 100%); color: #fff; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; transition: height 0.35s ease; padding: 0 1rem; }
.gallery-overlay span { font-weight: 700; letter-spacing: .2px; padding: 10px 12px 14px; width: 100%; text-align: center; text-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.gallery-item:hover .gallery-overlay { height: 45%; }
.gallery-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.0) 60%, rgba(0,0,0,0.18) 100%); pointer-events: none; }
.gallery-item:hover .gallery-image { background-position: center 45%; filter: brightness(1.05) contrast(1.03); }
.gallery-content { padding: 1.25rem 1.25rem 1.5rem; }
.gallery-title { font-size: 1.2rem; font-weight: 700; color: #0f2a6a; margin-bottom: 0.35rem; }
.gallery-description { color: #5c6b80; font-size: 0.97rem; line-height: 1.55; }
.gallery-content { padding: 1.5rem; }
.gallery-title { font-size: 1.3rem; font-weight: 600; color: #0f2a6a; margin-bottom: 0.5rem; }
.gallery-description { color: #666; font-size: 0.95rem; line-height: 1.5; }

.video-card { display: grid; grid-template-columns: 3fr 2fr; gap: 0.8rem; align-items: start; max-width: 960px; margin: 0 auto; }
.video-wrapper { position: relative; width: 100%; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 28px rgba(0,0,0,0.12); background: #000; }
.video-player, .video-embed { display: block; width: 100%; height: clamp(150px, 26vw, 280px); }
.video-description { background: #fff; border: 1px solid #e9ecef; border-radius: 12px; padding: 0.85rem 0.95rem; box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.video-description h3 { color: #0f2a6a; margin-bottom: 0.5rem; }
.video-description p { color: #4d5b6a; line-height: 1.4; font-size: 0.93rem; }

.map-section { padding: 2.4rem 0; background: #fff; }
.map-embed { position: relative; width: 100%; height: 0; padding-bottom: 24%; max-height: 240px; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 28px rgba(0,0,0,0.12); }
.map-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.map-actions { display: flex; justify-content: center; margin-top: 12px; }
.map-actions .btn { font-size: 0.9rem; padding: 0.5rem 0.9rem; }
.map-embed .map-overlay { position: absolute; inset: 0; text-indent: -9999px; z-index: 2; }

/* Upload */
.upload-section { background: #f8f9fa; padding: 2rem; border-radius: 12px; text-align: center; border: 2px dashed #0f2a6a; margin-top: 2rem; }
.upload-btn { background: #0f2a6a; color: white; padding: 1rem 2rem; border: none; border-radius: 8px; font-size: 1.1rem; cursor: pointer; transition: background 0.3s ease; margin: 1rem; }
.upload-btn:hover { background: #1a3d7a; }
.file-input { display: none; }

/* Services */
.services-section { padding: 2.6rem 0; background: #f8f9fa; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.service-card { background: white; padding: 2rem; border-radius: 12px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.1); transition: transform 0.3s ease; }
.service-card:hover { transform: translateY(-5px); }
.service-icon { font-size: 3rem; color: #ffbc66; margin-bottom: 1rem; }
.service-title { font-size: 1.3rem; font-weight: 600; color: #0f2a6a; margin-bottom: 1rem; }

/* Mot du DG */
.dg-section { padding: 3.2rem 0 2rem; background: white; }
.dg-section .section-title { text-align: left; font-size: 1.8rem; margin-bottom: 0.6rem; }
.dg-grid { display: grid; grid-template-columns: 300px minmax(0, 700px); column-gap: 1rem; align-items: start; justify-content: start; max-width: 1100px; margin: 0 auto; }
.dg-left { display: flex; flex-direction: column; align-items: flex-start; }
.dg-left .section-title { margin-bottom: 0.6rem; }
.dg-photo { width: 100%; }
.dg-photo img { width: 100%; max-width: 300px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; box-shadow: 0 10px 28px rgba(0,0,0,0.12); border: none; }
.dg-text { margin-left: 0; padding-left: 0; text-align: left; }
.dg-text h3 { color: #0f2a6a; margin-bottom: 0.35rem; font-size: 1.3rem; }
.dg-text p { color: #4d5b6a; line-height: 1.55; margin-bottom: 0.4rem; max-width: 62ch; }
.dg-signature { margin-top: 0.9rem; font-weight: 700; color: #0f2a6a; }

@media (max-width: 900px) {
  .dg-grid { grid-template-columns: 1fr; row-gap: 0.75rem; }
  .dg-left { align-items: center; }
  .dg-photo { display: flex; justify-content: center; }
  .dg-photo img { max-width: 360px; width: 100%; }
}

/* Contact */
.contact-section { padding: 2.6rem 0; background: white; }
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.contact-card { background: #f8f9fa; padding: 2rem; border-radius: 12px; text-align: center; border: 1px solid #e9ecef; }
.contact-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.contact-card h3 { color: #0f2a6a; margin-bottom: 0.5rem; font-size: 1.1rem; }
.contact-card p { color: #666; font-size: 0.9rem; line-height: 1.4; }
.contact-form-container { background: #f8f9fa; padding: 2rem; border-radius: 12px; border: 1px solid #e9ecef; }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; }
.form-group label { color: #0f2a6a; font-weight: 600; margin-bottom: 0.5rem; }
.form-group input, .form-group select, .form-group textarea { padding: 0.75rem; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; transition: border-color 0.3s ease; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #0f2a6a; box-shadow: 0 0 0 2px rgba(15, 42, 106, 0.1); }
.submit-btn { background: #0f2a6a; color: white; padding: 1rem 2rem; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: background 0.3s ease; }
.submit-btn:hover { background: #1a3d7a; }
.form-note { font-size: 0.9rem; color: #666; text-align: center; margin-top: 0.5rem; }

/* Footer */
.footer { background: #0f2a6a; color: white; padding: 3rem 0 1rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section h3 { color: #ffbc66; margin-bottom: 1rem; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); color: #ccc; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 2000; }
.lightbox[aria-hidden="false"] { display: flex; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(2px); }
.lightbox-content { position: relative; width: min(100%, 1024px); margin: 0 16px; display: grid; grid-template-columns: 48px 1fr 48px; grid-template-rows: auto auto 1fr auto; gap: 12px; z-index: 1; }
.lightbox-header { grid-column: 1 / span 3; display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.45); color: #fff; padding: 8px 12px; border-radius: 8px; }
.lightbox-header-title { font-weight: 700; }
.lightbox-header-counter { opacity: 0.9; font-size: 0.9rem; }
.lightbox-close { position: absolute; top: -8px; right: -8px; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(0,0,0,0.6); color: #fff; font-size: 22px; cursor: pointer; }
.lightbox-prev, .lightbox-next { grid-row: 2 / span 1; align-self: center; width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; font-size: 24px; cursor: pointer; }
.lightbox-prev { grid-column: 1; }
.lightbox-next { grid-column: 3; }
.lightbox-stage { grid-column: 2; grid-row: 2; position: relative; background: #000; border-radius: 10px; overflow: hidden; min-height: 320px; display: flex; align-items: center; justify-content: center; }
.lightbox-image { max-width: 100%; max-height: 72vh; object-fit: contain; opacity: 1; transform: translateX(0); transition: opacity 250ms ease, transform 250ms ease; }
.lightbox-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.95rem; }
.lightbox-thumbs { grid-column: 1 / span 3; display: flex; gap: 10px; overflow-x: auto; padding: 8px 4px; }
.lightbox-thumbs .thumb { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; min-width: 72px; }
.lightbox-thumbs .thumb img { width: 72px; height: 56px; object-fit: cover; border-radius: 6px; opacity: 0.7; cursor: pointer; border: 2px solid transparent; transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease; }
.lightbox-thumbs .thumb img:hover { transform: scale(1.06); box-shadow: 0 8px 18px rgba(0,0,0,0.3); opacity: 0.95; }
.lightbox-thumbs .thumb[aria-current="true"] img, .lightbox-thumbs img[aria-current="true"] { opacity: 1; border-color: #ffbc66; }
.lightbox-thumbs .thumb-caption { color: #eaeaea; font-size: 0.72rem; text-align: center; line-height: 1.2; max-width: 86px; }

@media (max-width: 640px) {
  .lightbox-content { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-stage { grid-column: 1; }
  .lightbox-thumbs { grid-column: 1; }
}

/* Floating buttons */
.float-contact { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; z-index: 1100; }
.float-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; color: #0f2a6a; background: #ffbc66; text-decoration: none; font-weight: 700; box-shadow: 0 10px 25px rgba(0,0,0,0.18); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.float-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.22); }
.float-btn.whatsapp { background: #25D366; color: #0b3b1e; }
.float-btn.whatsapp:hover { background: #1ebe5d; }
.float-btn .icon { font-size: 18px; line-height: 1; }

/* Responsive */
@media (max-width: 768px) {
  .logo-img { width: 44px; height: 44px; padding: 4px; }
  .nav-menu { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-content h1 { font-size: 2.5rem; }
  .hero .hero-content { margin-top: 0; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-image { height: 200px; }
  .video-card { grid-template-columns: 1fr; }
  .map-embed { padding-bottom: 44%; max-height: 200px; }
  .contact-content { grid-template-columns: 1fr; gap: 2rem; }
  .contact-info { grid-template-columns: 1fr; }
  .map-embed { padding-bottom: 56.25%; }
}

/* Section équipe */
.team-section {
  padding: 60px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
  text-align: center;
  padding-bottom: 14px;
}

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

/* Avatar rond centré */
.avatar {
  width: 160px;
  height: 160px;
  margin: 20px auto 8px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #f3f4f6; /* anneau léger autour */
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* crop propre */
  display: block;
}

.team-card figcaption {
  padding: 0 12px 10px;
}

.team-name {
  margin: 8px 0 2px;
  font-size: 1.05rem;
  font-weight: 600;
}

.team-role {
  margin: 0;
  color: #6b7280;
  font-size: .95rem;
}

/* Responsive */
@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .team-grid { grid-template-columns: 1fr; }
  .avatar { width: 140px; height: 140px; }
}