/* ============================================
   上海旅游网 · 分站法语 (Shanghai Voyage) — styles.css
   ============================================ */
:root {
  --bleu: #0e3a5d;
  --bleu-fonce: #082a44;
  --bleu-clair: #eaf2f8;
  --rouge: #c8102e;
  --or: #d9a441;
  --texte: #2b2f36;
  --gris: #6b7480;
  --fond: #ffffff;
  --gris-fond: #f5f7fa;
  --rayon: 12px;
  --ombre: 0 6px 24px rgba(14, 58, 93, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--texte);
  background: var(--fond);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--bleu); text-decoration: none; }
a:hover { color: var(--rouge); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- Barre supérieure + langues ---------- */
.topbar {
  background: var(--bleu-fonce);
  color: #cfe0ee;
  font-size: 13px;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 34px; flex-wrap: wrap; gap: 4px;
}
.topbar a { color: #cfe0ee; }
.topbar-contact span { margin-right: 16px; }

.langues { position: relative; }
.langues-bouton {
  background: transparent; border: 1px solid #3d5a75; color: #fff;
  padding: 3px 12px; border-radius: 20px; cursor: pointer; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
}
.langues-bouton:hover { border-color: var(--or); color: var(--or); }
.langues-menu {
  display: none; position: absolute; right: 0; top: 120%; z-index: 1000;
  background: #fff; color: var(--texte); border-radius: 8px; box-shadow: var(--ombre);
  min-width: 190px; padding: 6px 0; overflow: hidden;
}
.langues-menu.ouvert { display: block; }
.langues-menu a {
  display: flex; justify-content: space-between; padding: 7px 16px;
  color: var(--texte); font-size: 14px;
}
.langues-menu a:hover { background: var(--bleu-clair); }
.langues-menu a.actif { color: var(--rouge); font-weight: 600; }
.langues-menu .bientot { font-size: 11px; color: #9aa5b1; }

/* ---------- En-tête principal ---------- */
.entete {
  background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.08);
  position: sticky; top: 0; z-index: 900;
}
.entete .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; flex-wrap: wrap; gap: 8px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-badge {
  width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(135deg, var(--rouge), #e8455f);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.logo-texte strong { display: block; font-size: 19px; color: var(--bleu); letter-spacing: .5px; }
.logo-texte span { font-size: 12px; color: var(--gris); }

.nav ul { list-style: none; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav > ul > li { position: relative; }
.nav a.niveau1 {
  display: block; padding: 10px 12px; font-weight: 600; font-size: 15px; color: var(--bleu);
}
.nav a.niveau1:hover { color: var(--rouge); }
.nav li.actif > a.niveau1 { color: var(--rouge); }
.nav li.actif > a.niveau1::after {
  content: ""; display: block; height: 3px; border-radius: 3px;
  background: var(--rouge); margin-top: 2px;
}
.sous-menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 950;
  background: #fff; box-shadow: var(--ombre); border-radius: 10px;
  min-width: 230px; padding: 8px 0; list-style: none;
}
.nav li:hover .sous-menu, .sous-menu.ouvert { display: block; }
.sous-menu a {
  display: block; padding: 9px 18px; font-size: 14.5px; color: var(--texte);
}
.sous-menu a:hover { background: var(--bleu-clair); color: var(--bleu); }
.burger {
  display: none; background: none; border: none; font-size: 26px;
  color: var(--bleu); cursor: pointer; padding: 6px 10px;
}

/* ---------- Héros de page ---------- */
.heros {
  position: relative; min-height: 520px; display: flex; align-items: center;
  background-size: cover; background-position: center; color: #fff;
}
.heros::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,42,68,.55), rgba(8,42,68,.75));
}
.heros .container { position: relative; z-index: 2; padding: 60px 20px; }
.heros h1 { font-size: 42px; line-height: 1.25; margin-bottom: 14px; }
.heros p.sous-titre { font-size: 19px; max-width: 720px; color: #e8eef4; }
.heros .fil {
  font-size: 13.5px; margin-bottom: 18px; color: #b9cbdb;
}
.heros .fil a { color: #b9cbdb; }
.boutons-heros { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 30px;
  font-weight: 700; font-size: 15.5px; transition: .2s; border: 2px solid transparent;
  cursor: pointer;
}
.btn-rouge { background: var(--rouge); color: #fff; }
.btn-rouge:hover { background: #a90d26; color: #fff; }
.btn-blanc { background: transparent; color: #fff; border-color: #fff; }
.btn-blanc:hover { background: #fff; color: var(--bleu); }
.btn-bleu { background: var(--bleu); color: #fff; }
.btn-bleu:hover { background: var(--bleu-fonce); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section.fond-gris { background: var(--gris-fond); }
.titre-section { text-align: center; margin-bottom: 44px; }
.titre-section h2 { font-size: 32px; color: var(--bleu); }
.titre-section p { color: var(--gris); max-width: 700px; margin: 10px auto 0; }
.titre-section .accent {
  display: inline-block; width: 60px; height: 4px; border-radius: 4px;
  background: var(--rouge); margin-bottom: 14px;
}

/* Cartes services / circuits */
.grille { display: grid; gap: 26px; }
.grille-3 { grid-template-columns: repeat(3, 1fr); }
.grille-4 { grid-template-columns: repeat(4, 1fr); }
.grille-2 { grid-template-columns: repeat(2, 1fr); }
.carte {
  background: #fff; border-radius: var(--rayon); overflow: hidden;
  box-shadow: var(--ombre); transition: .25s; display: flex; flex-direction: column;
}
.carte:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(14,58,93,.16); }
.carte img.photo { width: 100%; height: 220px; object-fit: cover; }
.carte-corps { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.carte-corps h3 { font-size: 19px; color: var(--bleu); margin-bottom: 8px; }
.carte-corps p { font-size: 14.5px; color: var(--gris); flex: 1; }
.carte-corps .meta { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; }
.prix { color: var(--rouge); font-weight: 800; font-size: 19px; }
.prix small { font-size: 12px; color: var(--gris); font-weight: 400; }
.etiquettes { margin: 0 0 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.etiquette {
  font-size: 12px; background: var(--bleu-clair); color: var(--bleu);
  padding: 3px 10px; border-radius: 20px;
}

/* Bandeau chiffres */
.chiffres { background: var(--bleu); color: #fff; padding: 46px 0; }
.chiffres .grille { text-align: center; }
.chiffres .nombre { font-size: 40px; font-weight: 800; color: var(--or); }
.chiffres .libelle { font-size: 14.5px; color: #cfe0ee; }

/* Pourquoi nous */
.atout { text-align: center; padding: 26px 20px; background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); }
.atout .icone { font-size: 42px; margin-bottom: 12px; }
.atout h3 { color: var(--bleu); font-size: 18px; margin-bottom: 8px; }
.atout p { font-size: 14px; color: var(--gris); }

/* Itinéraire (timeline) */
.itineraire { list-style: none; position: relative; margin: 30px 0 0; padding-left: 34px; }
.itineraire::before {
  content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px;
  width: 3px; background: var(--bleu-clair); border-radius: 3px;
}
.itineraire li { position: relative; padding: 0 0 30px 14px; }
.itineraire li::before {
  content: ""; position: absolute; left: -31px; top: 7px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--rouge); border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--rouge);
}
.itineraire h3 { color: var(--bleu); font-size: 18px; }
.itineraire .heure { font-size: 13px; color: var(--or); font-weight: 700; }
.itineraire p { color: var(--gris); font-size: 15px; margin-top: 4px; }

/* Tableau tarifs */
.tableau { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.tableau th, .tableau td { padding: 14px 18px; text-align: left; font-size: 15px; }
.tableau thead th { background: var(--bleu); color: #fff; }
.tableau tbody tr:nth-child(even) { background: var(--gris-fond); }
.tableau td.prix { font-size: 16px; }

/* FAQ accordéon */
.faq-item { background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); margin-bottom: 14px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--bleu);
  list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--rouge); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .reponse { padding: 0 22px 18px; color: var(--gris); font-size: 15px; }

/* Contact */
.bloc-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.carte-contact { background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); padding: 30px; }
.carte-contact h3 { color: var(--bleu); margin-bottom: 16px; }
.carte-contact .ligne { display: flex; gap: 12px; margin-bottom: 16px; font-size: 15px; }
.carte-contact .ligne .icone { font-size: 20px; }
form .champ { margin-bottom: 16px; }
form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--bleu); }
form input, form select, form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid #d4dde5; border-radius: 8px;
  font-size: 15px; font-family: inherit; background: #fbfcfe;
}
form input:focus, form select:focus, form textarea:focus {
  outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(14,58,93,.12);
}

/* Page actualités */
.article { display: grid; grid-template-columns: 300px 1fr; gap: 26px; background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; margin-bottom: 26px; }
.article img.photo { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
.article .contenu { padding: 24px 26px 24px 0; }
.article .date { font-size: 13px; color: var(--or); font-weight: 700; }
.article h3 { color: var(--bleu); font-size: 21px; margin: 6px 0 10px; }
.article p { color: var(--gris); font-size: 15px; }

/* Pied de page */
.pied { background: var(--bleu-fonce); color: #b9cbdb; padding: 56px 0 0; font-size: 14.5px; }
.pied h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.pied a { color: #b9cbdb; }
.pied a:hover { color: var(--or); }
.pied .grille { padding-bottom: 36px; }
.pied ul { list-style: none; }
.pied ul li { margin-bottom: 8px; }
.pied-bas { border-top: 1px solid #1d4666; padding: 18px 0; text-align: center; font-size: 13px; color: #7d95ab; }

/* QR codes du pied de page */
.qr-liste { display: flex; gap: 14px; flex-wrap: wrap; }
.qr-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: #fff; border-radius: 10px; padding: 10px; width: 92px;
}
.qr-item img { width: 72px; height: 72px; object-fit: contain; }
.qr-item span { font-size: 12.5px; color: var(--bleu); font-weight: 700; }
.topbar-droite { color: #7d95ab; font-size: 12.5px; }

/* Bouton WhatsApp flottant */
.btn-whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 990;
  background: #25d366; color: #fff; border-radius: 40px;
  padding: 12px 20px; font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); display: inline-flex; align-items: center; gap: 8px;
}
.btn-whatsapp:hover { background: #1fb955; color: #fff; }
.note-langue {
  background: #12395a; border: 1px solid #2c5a80; color: #cfe0ee;
  font-size: 13px; border-radius: 8px; padding: 10px 14px; margin-bottom: 18px;
}

/* Bandeau CTA */
.cta { background: linear-gradient(120deg, var(--rouge), #9c1229); color: #fff; text-align: center; padding: 54px 20px; }
.cta h2 { font-size: 28px; margin-bottom: 10px; }
.cta p { color: #ffd9de; margin-bottom: 22px; }

/* Responsive */
@media (max-width: 960px) {
  .grille-3, .grille-4 { grid-template-columns: repeat(2, 1fr); }
  .bloc-contact { grid-template-columns: 1fr; }
  .article { grid-template-columns: 1fr; }
  .article .contenu { padding: 0 26px 26px; }
  .heros h1 { font-size: 32px; }
  .burger { display: block; }
  .nav { display: none; width: 100%; }
  .nav.ouvert { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 12px; }
  .sous-menu { position: static; box-shadow: none; padding-left: 18px; }
  .nav li.actif > a.niveau1::after { display: none; }
}
@media (max-width: 620px) {
  .grille-3, .grille-4, .grille-2 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .topbar-contact span { display: block; margin: 2px 0; }
}
