:root {
  --navy: #1b2350;
  --navy-dark: #131a3d;
  --turquoise: #36d6e0;
  --turquoise-dark: #1fb8c4;
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #20283f;
  --muted: #6b7390;
  --border: #e3e7f0;
  --success: #1d9e63;
  --danger: #d64545;
  --warning: #c98a1b;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--turquoise-dark); text-decoration: none; }
h1, h2, h3 { color: var(--navy); line-height: 1.25; }

/* ---- Header ---- */
header.topbar {
  background: var(--navy); padding: 8px 5%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: sticky; top: 0; z-index: 60;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .18);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 50px; display: block; }
.brand .brand-tag {
  font-size: .72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--turquoise); border-left: 1px solid rgba(255, 255, 255, .25); padding-left: 12px;
}
nav.menu { display: flex; gap: 26px; align-items: center; }
nav.menu a { color: #e3e7f4; font-weight: 600; }
nav.menu a:hover { color: var(--turquoise); }
header.topbar .muted { color: #c3c9e2; }

/* Bouton hamburger (mobile) */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px; z-index: 61;
}
.menu-toggle span { display: block; width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s; }
.topbar.nav-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.topbar.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.topbar.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  nav.menu {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-dark); flex-direction: column; align-items: stretch;
    gap: 0; max-height: 0; overflow: hidden; transition: max-height .28s ease;
    box-shadow: 0 12px 22px rgba(0, 0, 0, .25);
  }
  .topbar.nav-open nav.menu { max-height: 420px; padding-bottom: 10px; }
  nav.menu a { padding: 14px 5%; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  nav.menu #nav-auth { padding: 12px 5%; }
  nav.menu #nav-auth .btn { width: 100%; text-align: center; }
}

/* ---- Boutons ---- */
.btn {
  display: inline-block; border: none; cursor: pointer; font-size: 1rem; font-weight: 600;
  padding: 11px 22px; border-radius: 10px; transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-primary { background: var(--turquoise); color: var(--navy-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-sm { padding: 6px 14px; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; border-radius: 12px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 2px solid rgba(255,255,255,.7); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }

/* ---- Hero ---- */
.hero {
  position: relative; min-height: 600px; padding: 120px 5%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1502602898657-3e91760cbb34?auto=format&fit=crop&w=1600&q=75');
  background-size: cover; background-position: center;
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(19,26,61,.92) 0%, rgba(27,35,80,.72) 55%, rgba(31,184,196,.55) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero-kicker {
  display: inline-block; color: var(--turquoise); font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; font-size: .8rem; margin-bottom: 18px;
  border: 1px solid rgba(54,214,224,.5); border-radius: 99px; padding: 6px 16px;
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 4rem); margin: 0 auto 16px; line-height: 1.1; }
.hero p { color: #e3e7f4; font-size: clamp(1rem, 2vw, 1.3rem); margin: 0 auto 34px; font-weight: 500; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Rangée de services (carrousel horizontal) ---- */
.services-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; gap: 16px; }
.section-title-left { font-size: 1.9rem; margin-bottom: 6px; text-align: left; }
.section-sub-left { color: var(--muted); text-align: left; }
.services-nav { display: flex; gap: 10px; flex-shrink: 0; }
.services-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--border);
  background: #fff; color: var(--navy); font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.services-nav button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.services-row {
  display: flex; gap: 22px; overflow-x: auto; padding: 6px 4px 18px; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.service-card {
  flex: 0 0 270px; scroll-snap-align: start; margin: 0;
}
@media (max-width: 640px) { .service-card { flex-basis: 80%; } .services-nav { display: none; } }

/* ---- Hero des pages internes (services...) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 65%, var(--turquoise-dark) 150%);
  color: #fff; padding: 70px 5%; text-align: center;
}
.page-hero .hero-kicker { margin-bottom: 16px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 14px; }
.page-hero p { color: #c8cde6; max-width: 700px; margin: 0 auto; font-size: 1.1rem; line-height: 1.6; }

/* ---- Barre promo ---- */
.promo-bar {
  background: var(--turquoise); color: var(--navy-dark); text-align: center;
  padding: 12px 5%; font-size: .95rem; display: flex; gap: 10px; justify-content: center;
  align-items: center; flex-wrap: wrap;
}
.promo-bar strong { background: rgba(19,26,61,.12); padding: 3px 12px; border-radius: 99px; }
.promo-dot { opacity: .5; }

/* ---- Hero d'une page destination ---- */
.dest-hero {
  position: relative; min-height: 460px; padding: 110px 5% 70px;
  display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden;
  background: var(--navy); background-image: var(--img); background-size: cover; background-position: center;
}
.dest-hero .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(19,26,61,.85) 0%, rgba(27,35,80,.6) 55%, rgba(31,184,196,.5) 100%);
}
.dest-hero .hero-content { position: relative; z-index: 2; max-width: 760px; }
.dest-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 8px 0 10px; }
.dest-hero p { color: #e3e7f4; font-size: clamp(1.05rem, 2vw, 1.3rem); margin-bottom: 28px; }

/* ---- Lieux incontournables (cartes avec photo) ---- */
.lieu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.lieu-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 10px rgba(27,35,80,.06); transition: transform .18s, box-shadow .18s;
}
.lieu-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(27,35,80,.15); }
.lieu-photo {
  position: relative; height: 180px; background-size: cover; background-position: center; background-color: var(--navy);
}
.lieu-num {
  position: absolute; top: 12px; left: 12px; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--turquoise-dark)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.lieu-txt { padding: 16px 18px; }
.lieu-txt h3 { font-size: 1.1rem; margin-bottom: 4px; }
.lieu-txt p { color: var(--muted); font-size: .9rem; }

/* ---- Destinations populaires ---- */
.dest-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.dest-card {
  position: relative; height: 240px; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: flex-end; color: #fff; background-color: var(--navy);
  background-image: var(--img); background-size: cover; background-position: center;
  box-shadow: 0 4px 14px rgba(27,35,80,.12); transition: transform .25s, box-shadow .25s;
}
.dest-card::before { content: ''; position: absolute; inset: 0; background-image: var(--img); background-size: cover; background-position: center; transition: transform .5s; z-index: 0; }
.dest-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(27,35,80,.22); }
.dest-card:hover::before { transform: scale(1.08); }
.dest-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(19,26,61,.85) 0%, rgba(19,26,61,.1) 60%); z-index: 1; }
.dest-info { position: relative; z-index: 2; padding: 22px; }
.dest-info h3 { color: #fff; font-size: 1.5rem; margin-bottom: 2px; }
.dest-info span { color: #d7dcf0; font-size: .88rem; }
.dest-badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: var(--turquoise); color: var(--navy-dark); font-weight: 800;
  padding: 5px 12px; border-radius: 99px; font-size: .85rem;
}
.dest-badge-zone { position: absolute; top: 14px; left: 14px; z-index: 2; }
.badge-evisa { background: var(--turquoise); color: var(--navy-dark); font-weight: 800; padding: 5px 12px; border-radius: 99px; font-size: .8rem; }
.dest-filtres { display: flex; gap: 10px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.dest-filtre {
  background: #fff; border: 1.5px solid var(--border); color: var(--navy); cursor: pointer;
  padding: 8px 18px; border-radius: 99px; font-weight: 600; font-size: .9rem; transition: all .15s;
}
.dest-filtre:hover { border-color: var(--turquoise); }
.dest-filtre.actif { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---- Galerie médias ---- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.media-card {
  margin: 0; border-radius: var(--radius); overflow: hidden; position: relative;
  background: var(--card); border: 1px solid var(--border); box-shadow: 0 2px 10px rgba(27,35,80,.06);
  transition: transform .2s, box-shadow .2s;
}
.media-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(27,35,80,.16); }
.media-card img { width: 100%; height: 260px; object-fit: cover; display: block; }
.media-card figcaption { padding: 14px 16px; }
.media-card figcaption p { color: var(--text); font-size: .92rem; margin-top: 6px; }
.media-badge {
  display: inline-block; background: var(--turquoise); color: var(--navy-dark);
  font-weight: 700; font-size: .78rem; padding: 3px 11px; border-radius: 99px;
}

/* ---- Pourquoi nous ---- */
.why { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); padding: 80px 5%; }
.why-inner { max-width: 1200px; margin: 0 auto; }
.why-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-bottom: 60px; }
.why-item { text-align: center; padding: 10px; }
.why-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: rgba(54,214,224,.15); color: var(--turquoise);
  display: flex; align-items: center; justify-content: center;
}
.why-icon svg { width: 30px; height: 30px; }
.why-item h3 { color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.why-item p { color: #aab1d4; font-size: .92rem; }

/* ---- Bandeau sécurité ---- */
.security-band { background: linear-gradient(135deg, var(--navy-dark) 0%, #0c1230 100%); padding: 80px 5%; }
.security-inner { max-width: 1200px; margin: 0 auto; }
.security-head { text-align: center; }
.security-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 40px; }
.security-item {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 26px; text-align: center;
}
.security-item h3 { color: #fff; font-size: 1.08rem; margin-bottom: 8px; }
.security-item p { color: #aab1d4; font-size: .9rem; }

/* ---- Statistiques ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 44px; }
.stat { text-align: center; }
.stat-num, .stat-plus { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--turquoise); }
.stat p { color: #c3c9e2; font-size: .9rem; margin-top: 4px; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; } }

/* ---- Bouton WhatsApp flottant ---- */
.whatsapp-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.5); transition: transform .2s;
  animation: fab-pulse 2.4s infinite;
}
.whatsapp-fab svg { width: 30px; height: 30px; }
.whatsapp-fab:hover { transform: scale(1.1); }
@keyframes fab-pulse { 0%,100% { box-shadow: 0 6px 20px rgba(37,211,102,.5); } 50% { box-shadow: 0 6px 28px rgba(37,211,102,.85); } }

/* ---- Sections / cartes ---- */
section.page { padding: 70px 5%; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; font-size: 1.9rem; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 44px; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 2px 10px rgba(27, 35, 80, .05);
}
a.card-link { display: block; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(27, 35, 80, .12);
  border-color: var(--turquoise);
}
.card-more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: .9rem; color: var(--turquoise-dark); }
a.card-link:hover .card-more { text-decoration: underline; }

.icon-box {
  width: 52px; height: 52px; border-radius: 13px; margin-bottom: 16px;
  background: linear-gradient(135deg, #e3f6f8, #d2f1f4); color: var(--turquoise-dark);
  display: flex; align-items: center; justify-content: center;
}
.icon-box svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.card p { color: var(--muted); font-size: .95rem; }

/* ---- Formulaires ---- */
label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 5px; color: var(--navy); }
input, select, textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 1rem; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--turquoise); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ---- Tableaux ---- */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: .92rem; }
th { background: var(--navy); color: #fff; font-weight: 600; }
tr:hover td { background: #f3fbfc; }

/* ---- Badges de statut ---- */
.badge { display: inline-block; padding: 3px 11px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.badge-info { background: #e3f6f8; color: var(--turquoise-dark); }
.badge-warn { background: #fdf3df; color: var(--warning); }
.badge-ok { background: #e2f5ec; color: var(--success); }
.badge-bad { background: #fbe7e7; color: var(--danger); }
.badge-muted { background: #eceef5; color: var(--muted); }

/* ---- Modale ---- */
.modal-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(19, 26, 61, .6);
  z-index: 100; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius); padding: 30px; width: 100%; max-width: 440px;
  max-height: 90vh; overflow-y: auto;
}
.modal h2 { margin-bottom: 6px; }

/* Indicateur de robustesse du mot de passe */
.pwd-strength { margin: 8px 0 4px; }
.pwd-strength span#pwd-bar { display: block; height: 6px; width: 0; border-radius: 99px; transition: width .25s, background .25s; }
.pwd-strength small { display: block; margin-top: 4px; font-size: .78rem; color: var(--muted); }

/* Bandeau de vérification e-mail (espace client) */
.verif-banner {
  background: #fdf3df; color: #7a5a10; border: 1px solid #f0dca0;
  border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; font-size: .92rem;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}

/* ---- Divers ---- */
.alert { padding: 12px 16px; border-radius: 10px; margin: 12px 0; font-size: .92rem; }
.alert-error { background: #fbe7e7; color: var(--danger); }
.alert-ok { background: #e2f5ec; color: var(--success); }
.muted { color: var(--muted); }
.total-line { font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.doc-list li { list-style: none; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.aide-btn { background: none; border: none; cursor: pointer; color: var(--turquoise-dark); font-size: 1rem; padding: 0 2px; vertical-align: middle; }
.aide-btn:hover { color: var(--navy); }
footer { background: var(--navy-dark); color: #aab1d4; text-align: center; padding: 30px 5%; margin-top: 60px; font-size: .9rem; }
@media (max-width: 900px) { #svc-layout { grid-template-columns: 1fr !important; } }

/* ---- Layout dashboard ---- */
.dash { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 64px); }
.dash aside { background: var(--navy); padding: 24px 0; }
.dash aside a { display: block; color: #c3c9e2; padding: 12px 26px; font-weight: 500; }
.dash aside a.active, .dash aside a:hover { background: var(--navy-dark); color: var(--turquoise); border-left: 3px solid var(--turquoise); }
.dash main { padding: 34px; max-width: 1100px; min-width: 0; }
.dash main .card, .dash main > div { overflow-x: auto; }
.dash main table { min-width: 560px; }
@media (max-width: 800px) {
  .dash { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .dash main { padding: 22px 16px; }
  /* Barre de navigation horizontale propre (onglets défilants) */
  .dash aside {
    display: flex; overflow-x: auto; padding: 0;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    border-bottom: 2px solid var(--navy-dark); position: sticky; top: 0; z-index: 5;
  }
  .dash aside::-webkit-scrollbar { display: none; }
  .dash aside a {
    flex: 0 0 auto; white-space: nowrap;
    padding: 14px 16px; font-size: .92rem;
    border-left: none; border-bottom: 3px solid transparent;
  }
  .dash aside a.active, .dash aside a:hover {
    background: transparent; color: var(--turquoise);
    border-left: none; border-bottom: 3px solid var(--turquoise);
  }
}
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-cards .card { text-align: center; }
.stat-cards .num { font-size: 1.9rem; font-weight: 800; color: var(--navy); }
.stat-clic { cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.stat-clic:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(27,35,80,.16); border-color: var(--turquoise); }
.row-clic { cursor: pointer; transition: background .15s; }
.row-clic:hover { background: #f3fbfc; }
