/* Comptoir de Canton — feuille de style */

:root {
  --bleu-nuit: #14243B;
  --bleu-encre: #1D3557;
  --vermillon: #C8321E;
  --vermillon-fonce: #A32717;
  --ivoire: #F7F3EC;
  --blanc: #FFFFFF;
  --gris-texte: #3D4451;
  --gris-doux: #8A8F98;
  --font-titre: "Cormorant Garamond", Georgia, serif;
  --font-corps: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-chinois: "Noto Serif SC", "SimSun", "Songti SC", serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-corps);
  color: var(--gris-texte);
  background: var(--ivoire);
  line-height: 1.65;
  font-size: 1rem;
}

h1, h2, h3 { font-family: var(--font-titre); color: var(--bleu-nuit); line-height: 1.15; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 2.2rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }

section { padding: 5rem 1.5rem; }
.conteneur { max-width: 1080px; margin: 0 auto; }
.conteneur-etroit { max-width: 760px; }

[lang="zh-Hans"] { font-family: var(--font-chinois); }

/* ---- barre de navigation ---- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.65rem 1.5rem;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(20, 36, 59, 0.08);
}
.topbar-brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-titre); font-weight: 700; font-size: 1.15rem;
  color: var(--bleu-nuit); text-decoration: none; letter-spacing: 0.02em;
}
.sceau-mini { width: 38px; height: 38px; }
.sceau-caracteres { font-family: var(--font-chinois); }
.topbar-liens { display: flex; align-items: center; gap: 1.4rem; }
.topbar-liens a { color: var(--bleu-nuit); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.topbar-liens a:hover { color: var(--vermillon); }

/* ---- boutons ---- */
.btn {
  display: inline-block;
  background: var(--vermillon); color: var(--blanc);
  padding: 0.85rem 1.7rem; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 1rem;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn:hover { background: var(--vermillon-fonce); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--vermillon); outline-offset: 2px; }
.btn-petit { padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.btn-contour {
  background: transparent; border: 1.5px solid var(--ivoire); color: var(--ivoire);
}
.btn-contour:hover { background: rgba(247, 243, 236, 0.12); }
.btn-contour-sombre {
  background: transparent; border: 1.5px solid var(--bleu-nuit); color: var(--bleu-nuit);
}
.btn-contour-sombre:hover { background: rgba(20, 36, 59, 0.06); }

/* ---- hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bleu-nuit) 0%, var(--bleu-encre) 100%);
  color: var(--ivoire);
  text-align: center;
  padding: 6.5rem 1.5rem 6rem;
}
.hero > :not(.hero-fond) { position: relative; z-index: 2; }
.hero-fond {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("assets/hero-poster.jpg") center / cover no-repeat;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-video.est-actif { opacity: 1; }
.hero-voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(20, 36, 59, 0.32) 0%, rgba(29, 53, 87, 0.18) 60%, rgba(20, 36, 59, 0.35) 100%);
}
.hero-chinois {
  font-family: var(--font-chinois);
  color: rgba(200, 50, 30, 0.95);
  background: var(--ivoire);
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 4px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
}
.hero h1 {
  color: var(--ivoire);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  max-width: 880px; margin: 0 auto 1.4rem;
  text-shadow: 0 2px 18px rgba(10, 18, 32, 0.75), 0 1px 3px rgba(10, 18, 32, 0.6);
}
.hero-sous-titre {
  max-width: 680px; margin: 0 auto 2.4rem;
  font-size: 1.1rem; color: rgba(247, 243, 236, 0.92);
  text-shadow: 0 1px 10px rgba(10, 18, 32, 0.8), 0 1px 2px rgba(10, 18, 32, 0.65);
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- surtitres de section ---- */
.surtitre {
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.8rem; font-weight: 600; color: var(--vermillon);
  margin-bottom: 0.8rem;
}
.surtitre [lang="zh-Hans"] { font-size: 1rem; letter-spacing: 0.3em; }

/* ---- cartes ---- */
.cartes { display: grid; gap: 1.4rem; }
.cartes-risques { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.carte {
  background: var(--blanc);
  border: 1px solid rgba(20, 36, 59, 0.08);
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 2px 10px rgba(20, 36, 59, 0.04);
}

/* ---- méthode ---- */
.section-alternee { background: var(--blanc); }
.etapes {
  list-style: none; counter-reset: etape;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem;
}
.etapes li {
  counter-increment: etape;
  background: var(--ivoire);
  border-radius: 12px;
  padding: 1.8rem;
  position: relative;
}
.etapes li::before {
  content: counter(etape, decimal-leading-zero);
  display: block;
  font-family: var(--font-titre);
  font-size: 2rem; font-weight: 700;
  color: var(--vermillon);
  margin-bottom: 0.5rem;
}

/* ---- offres ---- */
.cartes-offres { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }
.offre { display: flex; flex-direction: column; }
.offre p:not(.badge):not(.offre-prix) { flex-grow: 1; }
.offre-vedette { border: 2px solid var(--vermillon); }
.badge {
  align-self: flex-start;
  background: var(--vermillon); color: var(--blanc);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 0.8rem; border-radius: 999px; margin-bottom: 1rem;
}
.badge-neutre { background: var(--gris-doux); }
.offre-prix {
  font-family: var(--font-titre); font-size: 1.3rem; font-weight: 600;
  color: var(--bleu-nuit); margin: 1.2rem 0 1rem;
}
.btn-carte { text-align: center; }
.note-offres {
  margin-top: 2rem; text-align: center;
  font-size: 0.95rem; color: var(--gris-doux);
  max-width: 720px; margin-left: auto; margin-right: auto;
}

/* ---- pourquoi (fond sombre) ---- */
.section-sombre { background: var(--bleu-nuit); color: rgba(247, 243, 236, 0.88); }
.section-sombre h2, .section-sombre h3 { color: var(--ivoire); }
.section-sombre h3 { margin-bottom: 1.2rem; }
.deux-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; }
.liste-coches { list-style: none; }
.liste-coches li {
  padding-left: 1.9rem; position: relative; margin-bottom: 0.85rem;
}
.liste-coches li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--vermillon); font-weight: 700;
}
.section-sombre .liste-coches li::before { color: #E8654F; }

/* ---- illustrations ---- */
.illustration {
  margin: 3rem 0 0;
}
.illustration img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(20, 36, 59, 0.18);
}
.illustration figcaption {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--gris-doux);
  text-align: center;
}
.section-sombre .illustration figcaption { color: rgba(247, 243, 236, 0.65); }
.bande-image {
  height: clamp(160px, 28vw, 300px);
  background: url("assets/conteneurs.webp") center / cover no-repeat;
}

/* ---- transparence / témoignages ---- */
.bloc-transparence { text-align: center; }
.bloc-transparence p:not(.surtitre) { max-width: 640px; margin: 0 auto 2rem; }
.temoignages { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.temoignage { margin: 0; display: flex; flex-direction: column; }
.temoignage p { flex-grow: 1; font-style: italic; }
.temoignage p::before {
  content: "\201C";
  display: block;
  font-family: var(--font-titre);
  font-size: 3rem;
  line-height: 1;
  color: var(--vermillon);
}
.temoignage footer { margin-top: 1rem; font-size: 0.9rem; color: var(--gris-doux); }

/* ---- FAQ ---- */
#faq details {
  background: var(--blanc);
  border: 1px solid rgba(20, 36, 59, 0.08);
  border-radius: 10px;
  margin-bottom: 0.9rem;
  padding: 1.1rem 1.4rem;
}
#faq summary {
  cursor: pointer;
  font-weight: 600; color: var(--bleu-nuit);
  list-style: none; position: relative; padding-right: 2rem;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: "+";
  position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-titre); font-size: 1.5rem; color: var(--vermillon);
  transition: transform 0.2s ease;
}
#faq details[open] summary::after { content: "–"; }
#faq details p { margin-top: 0.8rem; }

/* ---- contact ---- */
.section-contact { background: var(--blanc); text-align: center; }
.section-contact p { max-width: 560px; margin: 0 auto 2rem; }

/* ---- formulaire ---- */
.formulaire {
  max-width: 640px;
  margin: 0 auto 1.6rem;
  text-align: left;
  display: grid;
  gap: 1.1rem;
}
.formulaire label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--bleu-nuit);
}
.formulaire input,
.formulaire select,
.formulaire textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(20, 36, 59, 0.22);
  border-radius: 8px;
  font: inherit;
  color: var(--gris-texte);
  background: var(--ivoire);
}
.formulaire input:focus,
.formulaire select:focus,
.formulaire textarea:focus {
  outline: 2px solid var(--vermillon);
  outline-offset: 1px;
  border-color: transparent;
}
.champs-ligne {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.formulaire .btn { justify-self: center; margin-top: 0.4rem; border: 0; cursor: pointer; }
.champ-piege { display: none; }
.contact-alternatif { font-size: 0.95rem; color: var(--gris-doux); }
.contact-alternatif a { color: var(--bleu-nuit); }
@media (max-width: 640px) {
  .champs-ligne { grid-template-columns: 1fr; }
}

/* ---- page légale ---- */
.page-legale h1 { font-size: 2rem; margin: 2.5rem 0 1rem; }
.page-legale h1:first-child { margin-top: 0; }
.page-legale h2 { font-size: 1.25rem; margin: 1.6rem 0 0.5rem; }
.legale-maj { margin-top: 2.5rem; color: var(--gris-doux); font-size: 0.9rem; }

/* ---- footer ---- */
footer {
  background: var(--bleu-nuit);
  color: rgba(247, 243, 236, 0.65);
  padding: 2.2rem 1.5rem;
  font-size: 0.85rem;
}
.pied { display: flex; flex-direction: column; gap: 0.5rem; text-align: center; }
.pied a { color: rgba(247, 243, 236, 0.85); }
.pied-chinois { color: #E8654F; margin-right: 0.5rem; letter-spacing: 0.2em; }

/* ---- responsive ---- */
@media (max-width: 640px) {
  section { padding: 3.5rem 1.2rem; }
  .topbar { padding: 0.55rem 1rem; }
  .topbar-brand { font-size: 1rem; white-space: nowrap; gap: 0.45rem; }
  .sceau-mini { width: 32px; height: 32px; }
  .topbar-liens a:not(.btn) { display: none; }
  .btn-petit { font-size: 0.82rem; padding: 0.45rem 0.9rem; white-space: nowrap; }
  .hero { padding: 4.5rem 1.2rem 4rem; }
  .deux-colonnes { gap: 2rem; }
}
