:root {
  --navy: #06112a;
  --navy-2: #0b1b3d;
  --navy-3: #142a58;
  --line: rgba(255, 255, 255, .09);
  --text: #e8eefb;
  --muted: #9fb0cf;
  --accent: #5aa2ff;
  --radius: 16px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --pad: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; }
body {
  background: var(--navy);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, .logo, .price { font-family: 'Bebas Neue', sans-serif; font-weight: 400; letter-spacing: .03em; line-height: 1; }
h1 { font-size: clamp(48px, 8vw, 96px); margin-bottom: 32px; }
h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
.kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .2em; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.small { color: var(--muted); font-size: 14px; margin-top: 16px; }
.lead { color: var(--muted); font-size: 18px; margin: -16px 0 32px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 16px var(--pad);
  background: rgba(6, 17, 42, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { font-size: 30px; }
.logo span { color: var(--accent); }
.links { display: flex; gap: 28px; margin-left: auto; }
.links a { position: relative; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .3s; }
.links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.links a:hover, .links a.current { color: #fff; }
.links a:hover::after, .links a.current::after { transform: scaleX(1); }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); color: var(--muted);
  transition: color .3s, border-color .3s, transform .3s var(--ease);
}
.socials a:hover { color: #fff; border-color: var(--accent); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }

.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: #fff; transition: transform .3s var(--ease); }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* PAGES */
.page { display: none; padding: clamp(24px, 5vw, 64px) var(--pad); max-width: 1240px; margin: 0 auto; width: 100%; }
.page.active { display: block; animation: pageIn .6s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-3), var(--navy-2));
  color: var(--muted); font-size: 14px; letter-spacing: .05em;
}

/* HERO / CAROUSEL */
/* texte à gauche, photo 4:5 entière à droite */
.hero { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(24px, 5vw, 64px); }
.hero h1 { font-size: clamp(52px, 8vw, 112px); margin: 0 0 32px; line-height: .9; }
.slides { position: relative; height: min(76vh, 680px); aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--navy-2); }
/* balayage : la nouvelle photo se dévoile de droite à gauche par-dessus l'ancienne */
.slide { --wipe: cubic-bezier(.77, 0, .18, 1); position: absolute; inset: 0; z-index: 0; clip-path: inset(0 0 0 100%); transition: clip-path 1.1s var(--wipe); }
.slide.prev { z-index: 1; clip-path: inset(0); transition: none; }
.slide.on { z-index: 2; clip-path: inset(0); }
.slide img, .slide .ph { width: 100%; height: 100%; object-fit: cover; transform: translateX(12%); transition: transform 1.1s var(--wipe); }
.slide.on img, .slide.on .ph, .slide.prev img, .slide.prev .ph { transform: none; }
.slide.prev img, .slide.prev .ph { transition: none; }
.dots { display: flex; gap: 8px; }
.dots button { width: 26px; height: 4px; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .3); cursor: pointer; transition: width .4s var(--ease), background .4s; padding: 0; }
.dots button.on { background: #fff; width: 44px; }

/* ABOUT */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 64px); align-items: center; margin-top: clamp(48px, 8vw, 96px); }
.about p:not(.kicker) { color: var(--muted); margin-bottom: 24px; max-width: 56ch; }
.portrait { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* SPORT CARDS */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(48px, 8vw, 96px); }
.card { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--navy-2); }
.card img, .card .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 14, 30, .8), transparent 55%); }
.card span { position: absolute; left: 24px; bottom: 20px; z-index: 1; font-family: 'Bebas Neue', sans-serif; font-size: clamp(36px, 5vw, 56px); transition: transform .5s var(--ease); }
.card:hover img, .card:hover .ph { transform: scale(1.06); }
.card:hover span { transform: translateX(8px); }

.teaser {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 20px; padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(120deg, var(--navy-2), var(--navy-3));
  transition: border-color .4s;
}
.teaser:hover { border-color: var(--accent); }
.teaser h2 { margin-bottom: 4px; }
.teaser p:not(.kicker) { color: var(--muted); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; border: 0;
  background: var(--accent); color: #06142b; font: 600 15px Inter, sans-serif;
  cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px var(--accent); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); box-shadow: none; }

/* GALLERY */
/* 3 colonnes fixes (2 sur mobile) : avec un nombre de photos multiple de 6, toutes les lignes sont pleines */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { aspect-ratio: 4 / 5; border: 0; padding: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--navy-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile:has(.ph) { cursor: default; }

/* plein écran + grille : l'image reste centrée quel que soit son format */
#lightbox { border: 0; padding: 0; margin: 0; background: transparent; width: 100vw; height: 100dvh; max-width: none; max-height: none; }
#lightbox::backdrop { background: rgba(5, 12, 26, .92); backdrop-filter: blur(6px); }
#lightbox[open] { display: grid; place-items: center; animation: pageIn .4s var(--ease); }
#lightbox img { max-width: 94vw; max-height: 88dvh; border-radius: 8px; }
#lightbox .close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 36px; cursor: pointer; line-height: 1; }

/* SHOP */
.product {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 48px);
  background: var(--navy-2); border: 1px solid var(--line); border-radius: 20px; padding: clamp(16px, 3vw, 28px);
}
.product-info { align-self: center; }
.product-info h2 { margin-bottom: 4px; }
.price { font-size: 64px; color: var(--accent); margin-bottom: 16px; }
.product-info > p:not(.price):not(.small) { color: var(--muted); margin-bottom: 16px; }
.product-info ul { list-style: none; padding: 0; margin-bottom: 28px; }
.product-info li { padding: 6px 0 6px 28px; position: relative; }
.product-info li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 600; }

.viewer-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.viewer-nav p { font-weight: 600; text-align: center; }
.viewer-nav p span { color: var(--accent); margin-right: 6px; }
.arrow {
  width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
  transition: border-color .3s, transform .3s var(--ease);
}
.arrow:hover { border-color: var(--accent); }
#prev:hover { transform: translateX(-3px); }
#next:hover { transform: translateX(3px); }
.compare { --pos: 50%; position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--navy-2); }
.compare > img, .compare > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare > .after { clip-path: inset(0 0 0 var(--pos)); }
.compare > .ph.after { background: linear-gradient(135deg, #2b5fb3, #142a58); }
.compare::after { content: ''; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.compare::before {
  content: '‹ ›'; position: absolute; z-index: 1; top: 50%; left: var(--pos); width: 36px; height: 36px; margin: -18px 0 0 -18px;
  display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--navy); font-weight: 600; pointer-events: none;
  transition: transform .3s var(--ease);
}
.compare:hover::before { transform: scale(1.12); }
.compare .tag { position: absolute; top: 10px; z-index: 1; padding: 3px 10px; border-radius: 999px; background: rgba(6, 17, 42, .7); font-size: 12px; pointer-events: none; }
.compare .tag:first-of-type { left: 10px; }
.compare .tag:last-of-type { right: 10px; }
.compare input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

/* CONTACT */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 720px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea {
  font: inherit; color: var(--text); background: var(--navy-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(90, 162, 255, .2); }
.mail { color: var(--accent); }

/* FOOTER */
footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px var(--pad); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* MOBILE */
@media (max-width: 800px) {
  .burger { display: block; margin-left: auto; }
  .nav .socials { display: none; }
  .links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--pad) 16px;
    background: var(--navy); border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0); transition: clip-path .4s var(--ease);
  }
  .links.open { clip-path: inset(0 0 0 0); }
  .links a { padding: 12px 0; font-size: 18px; }
  .links a::after { display: none; }
  .about, .cards, .product, .form { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .portrait { max-width: 360px; }
  .hero { grid-template-columns: 1fr; }
  .slides { height: auto; width: 100%; }
}

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

/* un 
 dans contenu.js = retour à la ligne */
[data-texte] { white-space: pre-line; }
