/* Groupe Berthier – mobile first */
:root {
  --blue: #2e588d;
  --blue-dark: #14263f;
  --blue-light: #e9f0f9;
  --text: #1d2733;
  --muted: #5c6b7c;
  --bg: #f6f8fb;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(20, 38, 63, .08);
  --font-title: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .6em; }
h2 { font-size: 1.7rem; color: var(--blue-dark); }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  margin: 0 0 .8rem; opacity: .85;
}
.eyebrow.dark { color: var(--blue); opacity: 1; }

.btn {
  display: inline-block; padding: .9rem 1.6rem; border-radius: 999px; border: 2px solid #fff;
  background: #fff; color: var(--blue-dark); font: 600 .95rem var(--font-body);
  text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--blue-light); }
.btn.small { padding: .5rem 1.1rem; font-size: .85rem; }
.btn.ghost { background: transparent; color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.15); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem;
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled, .site-header.open {
  background: rgba(20, 38, 63, .95); backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.brand img { height: 36px; width: auto; }
.burger { width: 44px; height: 44px; background: none; border: 0; cursor: pointer; display: grid; place-content: center; gap: 6px; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu {
  position: absolute; top: 64px; left: 0; right: 0; background: var(--blue-dark);
  display: flex; flex-direction: column; padding: .5rem 1.25rem 1.25rem;
  transform: translateY(-120%); opacity: 0; visibility: hidden; transition: transform .3s, opacity .3s, visibility .3s;
}
.site-header.open .menu { transform: none; opacity: 1; visibility: visible; }
.menu a { color: #fff; text-decoration: none; padding: .9rem 0; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.1); }

/* Hero */
.hero {
  position: relative; min-height: 88svh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: var(--blue-dark);
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 80% center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,38,63,.55) 0%, rgba(20,38,63,.35) 35%, rgba(20,38,63,.92) 100%);
}
.hero-content { position: relative; padding: 0 1.25rem 4.5rem; width: min(1120px, 100%); margin-inline: auto; }
.hero h1 { font-size: clamp(2.6rem, 13vw, 5.5rem); font-weight: 800; margin-bottom: .3em; }
.hero h1 span { display: block; color: #9cc2f2; }
.lead { font-size: 1.1rem; max-width: 30ch; margin: 0 0 1.8rem; opacity: .95; }
.scroll-hint {
  position: absolute; bottom: 1.2rem; left: 50%; width: 22px; height: 22px; margin-left: -11px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg);
  animation: bounce 1.8s infinite;
}
@keyframes bounce { 50% { transform: translateY(8px) rotate(45deg); } }

/* Intro */
.intro { padding: 4rem 0; text-align: center; }
.intro .container { max-width: 760px; }
.intro p { color: var(--muted); font-size: 1.05rem; }
.stats { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.stats li { background: var(--blue-light); border-radius: 16px; padding: 1.1rem .5rem; }
.stats strong { display: block; font: 800 2rem var(--font-title); color: var(--blue); }
.stats span { font-size: .78rem; color: var(--muted); }

/* Shops */
.shops { background: var(--bg); padding: 4rem 0; }
.shops .container > .eyebrow, .shops h2 { text-align: center; }
.grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(20,38,63,.15); }
.card-img { display: block; overflow: hidden; aspect-ratio: 16 / 10; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 1.4rem; display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; flex: 1; }
.logo { height: 44px; width: auto; max-width: 70%; object-fit: contain; }
.tag {
  background: var(--blue-light); color: var(--blue); font-size: .75rem; font-weight: 600;
  padding: .3rem .7rem; border-radius: 999px; text-transform: capitalize;
}
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.link { margin-top: auto; padding-top: .4rem; color: var(--blue); font-weight: 600; text-decoration: none; }
.link::after { content: " →"; transition: margin .2s; }
.link:hover::after { margin-left: .3rem; }

/* Footer */
.footer { background: var(--blue-dark); color: #fff; padding: 3.5rem 0 5rem; text-align: center; }
.footer-logo { margin: 0 auto 1.5rem; }
.footer address { font-style: normal; opacity: .9; margin-bottom: 1.2rem; }
.footer address strong { display: block; margin-bottom: .3rem; }
.contact { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-direction: column; gap: .4rem; }
.contact a { color: #9cc2f2; text-decoration: none; }
.contact a:hover { text-decoration: underline; }
.legal { font-size: .8rem; opacity: .75; margin: 0; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.2rem; }

/* Utilitaires */
.to-top {
  position: fixed; right: 1rem; bottom: 1rem; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--blue); color: #fff; font-size: 1.3rem; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s; z-index: 40;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Tablette */
@media (min-width: 700px) {
  h2 { font-size: 2.3rem; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .intro, .shops { padding: 6rem 0; }
  .stats span { font-size: .9rem; }
  .contact { flex-direction: row; justify-content: center; gap: 1.8rem; }
}

/* Desktop */
@media (min-width: 1000px) {
  .site-header { padding: 0 max(2rem, calc((100% - 1120px) / 2)); }
  .burger { display: none; }
  .menu {
    position: static; flex-direction: row; gap: 2rem; padding: 0; background: none;
    transform: none; opacity: 1; visibility: visible;
  }
  .menu a { border: 0; padding: .5rem 0; position: relative; }
  .menu a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: #9cc2f2; transition: width .3s; }
  .menu a:hover::after { width: 100%; }
  .hero { min-height: 92vh; }
  .hero-overlay { background: linear-gradient(90deg, rgba(20,38,63,.95) 0%, rgba(20,38,63,.75) 45%, rgba(20,38,63,.15) 100%); }
  .hero-content { padding-bottom: 6rem; }
  .grid { grid-template-columns: repeat(3, 1fr); }
}

