/* ============================================================
   SuisseTrophée — CSS principal
   Design : élégant, premium, helvétique
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ---------- Variables ---------- */
:root {
  --gold:        #B8982A;
  --gold-light:  #D4B84A;
  --gold-pale:   #F5EDD6;
  --dark:        #1A1A18;
  --dark-soft:   #2C2C28;
  --mid:         #6B6B60;
  --light:       #F7F6F2;
  --white:       #FFFFFF;
  --border:      rgba(184,152,42,.22);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', Helvetica Neue, sans-serif;

  --radius: 6px;
  --shadow: 0 4px 32px rgba(26,26,24,.10);
  --shadow-lg: 0 16px 64px rgba(26,26,24,.16);

  --max-w: 900px;
  --gap: 3rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img { max-width: 100%; display: block; border-radius: var(--radius); }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }

/* ---------- Body ---------- */
body {
  background: var(--light);
  color: var(--dark);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
}

/* ---------- Barre de langue ---------- */
.lang-bar {
  background: var(--dark);
  text-align: center;
  padding: .55rem 1rem;
  font-size: .8rem;
  letter-spacing: .12em;
}
.lang-bar a {
  color: var(--mid);
  margin: 0 .6rem;
  text-transform: uppercase;
  font-weight: 400;
  transition: color .2s;
}
.lang-bar a:hover,
.lang-bar a.active {
  color: var(--gold);
}

/* ---------- Header ---------- */
header {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .04em;
}
.logo span { color: var(--gold); }
nav {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}
nav a {
  color: rgba(255,255,255,.6);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 400;
}
nav a:hover { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  background: var(--dark-soft);
  background-image:
    radial-gradient(ellipse 80% 60% at 60% 0%, rgba(184,152,42,.15) 0%, transparent 70%),
    linear-gradient(180deg, var(--dark) 0%, var(--dark-soft) 100%);
  color: var(--white);
  padding: 5rem 1.5rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(184,152,42,.03) 39px,
      rgba(184,152,42,.03) 40px
    );
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .35rem 1.1rem;
  border-radius: 2rem;
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.1rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero p {
  max-width: 560px;
  margin: 0 auto 2rem;
  color: rgba(255,255,255,.68);
  font-size: 1.05rem;
}
.hero-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .85rem 2.2rem;
  border-radius: 2rem;
  transition: background .2s, transform .2s;
}
.hero-cta:hover {
  background: var(--gold-light);
  color: var(--dark);
  transform: translateY(-2px);
}

/* ---------- Nav interne (ancres) ---------- */
.anchor-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 60px;
  z-index: 90;
}
.anchor-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 0;
  overflow-x: auto;
}
.anchor-nav a {
  color: var(--mid);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .9rem 1.2rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.anchor-nav a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---------- Contenu principal ---------- */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.section:last-child { border-bottom: none; }

.section-label {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: .6rem;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 1.4rem;
}
.section p {
  color: var(--mid);
  margin-bottom: 1rem;
  font-size: 1rem;
}
.section p:last-of-type { margin-bottom: 0; }

/* ---------- Sous-sections fabrication ---------- */
.subsection {
  margin-top: 3rem;
}
.subsection h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .8rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.subsection p {
  color: var(--mid);
  margin-bottom: 1rem;
}
.subsection img {
  margin: 1.4rem 0;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.subsection figcaption {
  font-size: .78rem;
  color: var(--mid);
  text-align: center;
  margin-top: .5rem;
  font-style: italic;
}

/* ---------- Grille 2 colonnes ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-top: 2rem;
}
@media (max-width: 680px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Card ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: box-shadow .25s, transform .25s;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: .6rem;
}
.card p { font-size: .92rem; color: var(--mid); }

/* ---------- Bloc highlight ---------- */
.highlight {
  background: var(--gold-pale);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.8rem;
  margin: 2rem 0;
}
.highlight p { color: var(--dark-soft); font-size: .97rem; }

/* ---------- Villes ---------- */
.city-section {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.city-section h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 1rem;
}
.city-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.city-links a {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: .35rem 1rem;
  font-size: .82rem;
  color: var(--dark-soft);
  transition: all .2s;
}
.city-links a:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

/* ---------- Sources ---------- */
.sources-list {
  list-style: none;
  margin-top: 1rem;
}
.sources-list li {
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.sources-list li:last-child { border: none; }
.sources-list a { color: var(--gold); }
.sources-list a:hover { text-decoration: underline; }

/* ---------- CTA commande ---------- */
.order-section {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  text-align: center;
  color: var(--white);
  margin-top: 4rem;
}
.order-section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: .8rem;
}
.order-section p { color: rgba(255,255,255,.65); margin-bottom: 1.8rem; }
.order-section .hero-cta { margin-top: 0; }

/* ---------- Footer ---------- */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.4);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: .8rem;
  letter-spacing: .05em;
}
footer a { color: var(--gold); }
footer a:hover { color: var(--gold-light); }

/* ---------- Mentions légales ---------- */
.legal-main {
  max-width: 760px;
  margin: 3rem auto;
  padding: 0 1.5rem 5rem;
}
.legal-main h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--dark);
  margin-bottom: .5rem;
}
.legal-main .last-updated {
  font-size: .8rem;
  color: var(--mid);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.legal-main h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--dark);
  margin: 2.4rem 0 .8rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border);
}
.legal-main p, .legal-main li {
  color: var(--mid);
  font-size: .97rem;
  line-height: 1.8;
  margin-bottom: .8rem;
}
.legal-main ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-main strong { color: var(--dark-soft); font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  nav { gap: 1rem; }
  .hero { padding: 3.5rem 1.2rem 3rem; }
  .order-section { padding: 2rem 1.4rem; }
  .card { padding: 1.3rem; }
}

/* ---------- Utilitaires ---------- */
.mt-2 { margin-top: 2rem; }
.text-center { text-align: center; }
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}
