/* K-hope-in — feuille de style unique. Aucune dépendance externe.
   Les couleurs et les réglages généraux sont dans :root. */

:root {
  --rose: #f2a5c4;
  --rose-pale: #fdeff5;
  --rose-vif: #e2528f;
  --rose-sombre: #c93f79;
  --marine: #2f5a9b;
  --marine-sombre: #1c365f;
  --turquoise: #2f9ea8;
  --encre: #23232b;
  --gris: #666672;
  --fond: #fffbfc;
  --blanc: #ffffff;
  --bordure: rgba(226, 82, 143, .12);
  --ombre: 0 18px 44px -18px rgba(28, 54, 95, .22);
  --ombre-rose: 0 18px 40px -16px rgba(226, 82, 143, .35);
  --rayon: 22px;
  --largeur: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: .35s cubic-bezier(.2, .7, .2, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 92px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.65;
  color: var(--encre);
  background: var(--fond);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--marine); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--rose-vif); }
:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; color: var(--marine-sombre); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 1.6rem + 2.8vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
p, li { max-width: 68ch; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }

/* En-tête */
.entete {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 251, 252, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--bordure);
}
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.logo { display: inline-flex; }
.logo img { height: 54px; width: auto; border-radius: 10px; }
.nav { display: flex; flex-wrap: wrap; gap: 2px 6px; font-size: .95rem; }
.nav a { position: relative; text-decoration: none; color: var(--marine-sombre); padding: 8px 10px; border-radius: 999px; }
.nav a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px;
  background: var(--rose-vif); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.nav a:hover::after, .nav a.actif::after { transform: scaleX(1); }
.nav a:hover, .nav a.actif { color: var(--rose-vif); }

.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px;
  background: var(--blanc); border: 1px solid var(--bordure); border-radius: 12px; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 2px;
  background: var(--marine-sombre); transition: transform .3s, opacity .3s, top .3s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -6px; }
.nav-toggle span::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Bandeau d'accueil */
.bandeau { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); overflow: hidden; isolation: isolate; }
.bandeau::before, .bandeau::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none;
}
.bandeau::before { width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; top: -30%; left: -15%; background: radial-gradient(circle, rgba(242, 165, 196, .55), transparent 70%); }
.bandeau::after { width: 50vw; height: 50vw; max-width: 620px; max-height: 620px; right: -12%; bottom: -35%; background: radial-gradient(circle, rgba(47, 158, 168, .22), transparent 70%); }
.bandeau .conteneur { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.bandeau h1 { margin-bottom: .2em; }
.bandeau .accroche { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); color: var(--rose-vif); margin-bottom: 1.2em; }
.bandeau h2 { font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); color: var(--marine); font-style: italic; margin-top: 1em; }
.photo { position: relative; max-width: 440px; margin: 0 auto; width: 100%; }
.photo::before {
  content: ""; position: absolute; inset: -14px; z-index: -1; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  background: linear-gradient(135deg, var(--rose-pale), rgba(242, 165, 196, .55));
  animation: flotter 9s ease-in-out infinite alternate;
}
.photo img { border-radius: var(--rayon); box-shadow: var(--ombre); aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
@keyframes flotter {
  from { transform: rotate(-3deg) scale(1); }
  to { transform: rotate(4deg) scale(1.03); }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.teinte { background: var(--blanc); border-top: 1px solid var(--bordure); border-bottom: 1px solid var(--bordure); }
.deux-colonnes { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.surtitre { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--turquoise); font-weight: 600; margin-bottom: .8em; }
.figure img { border-radius: var(--rayon); box-shadow: var(--ombre); background: var(--blanc); }
.legende { margin-top: 16px; color: var(--gris); font-size: .95rem; line-height: 1.55; }

/* Encart et manifeste */
.encart { background: var(--rose-pale); border-left: 4px solid var(--rose-vif); padding: 20px 24px; border-radius: 0 var(--rayon) var(--rayon) 0; }
.manifeste { text-align: center; max-width: 760px; margin: 0 auto; }
.manifeste h3 { font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.4rem); color: var(--rose-vif); letter-spacing: .04em; margin-bottom: .6em; }
.manifeste p { margin-left: auto; margin-right: auto; font-size: 1.08rem; }
.manifeste p:last-child { color: var(--gris); font-size: 1rem; }

/* Boutons et contacts */
.boutons { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }
.bouton {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; border: 1.5px solid rgba(47, 90, 155, .3); color: var(--marine); background: var(--blanc);
  transition: transform var(--transition), box-shadow var(--transition), background .25s, color .25s, border-color .25s;
}
.bouton:hover { transform: translateY(-2px); box-shadow: var(--ombre); border-color: var(--marine); color: var(--marine); }
.bouton.plein { background: linear-gradient(135deg, var(--rose-vif), var(--rose-sombre)); border-color: transparent; color: var(--blanc); box-shadow: var(--ombre-rose); }
.bouton.plein:hover { color: var(--blanc); box-shadow: 0 22px 44px -16px rgba(226, 82, 143, .5); }

.contact-grille { display: grid; gap: 14px; }
.tuile {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; text-decoration: none; color: var(--marine-sombre);
  background: var(--fond); border: 1px solid var(--bordure); border-radius: 16px; font-weight: 500;
  transition: transform var(--transition), box-shadow var(--transition), border-color .25s;
}
.tuile:hover { transform: translateX(4px); box-shadow: var(--ombre); border-color: rgba(226, 82, 143, .35); color: var(--rose-vif); }
.tuile svg { width: 24px; height: 24px; flex: none; color: var(--rose-vif); }
.tuile-double { display: flex; gap: 14px; }
.tuile-double .tuile { flex: 1; justify-content: center; }

/* Grille des marques */
.grille-marques { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; margin-top: 28px; }
.carte {
  position: relative; background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 26px;
  text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 12px; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color .25s;
}
.carte::after {
  content: "→"; position: absolute; right: 22px; bottom: 18px; color: var(--rose-vif); font-size: 1.3rem;
  opacity: 0; transform: translateX(-8px); transition: opacity var(--transition), transform var(--transition);
}
.carte:hover { transform: translateY(-5px); box-shadow: var(--ombre-rose); border-color: rgba(226, 82, 143, .3); color: inherit; }
.carte:hover::after { opacity: 1; transform: translateX(0); }
.carte img { width: 84px; height: 84px; object-fit: contain; border-radius: 18px; background: var(--fond); padding: 6px; border: 1px solid var(--bordure); }
.carte h3 { margin: 0; font-size: 1.25rem; }
.carte p { margin: 0 24px 0 0; color: var(--gris); font-size: .95rem; }
.etiquette { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--turquoise); font-weight: 600; }
.section h2 + .grille-marques { margin-top: 20px; }
.groupe + .groupe { margin-top: clamp(40px, 6vw, 72px); }

/* Page marques */
.sommaire {
  position: sticky; top: 72px; z-index: 15; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 12px 0; margin: 0 0 8px; font-size: .92rem;
  background: rgba(255, 251, 252, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.sommaire::-webkit-scrollbar { display: none; }
.sommaire a {
  flex: none; text-decoration: none; background: var(--blanc); border: 1px solid var(--bordure); border-radius: 999px; padding: 7px 16px;
  color: var(--marine-sombre); transition: background .25s, color .25s, border-color .25s, transform var(--transition);
}
.sommaire a:hover, .sommaire a.actif { background: var(--rose-vif); border-color: var(--rose-vif); color: var(--blanc); transform: translateY(-1px); }
.intro-groupe { padding: clamp(28px, 5vw, 56px) 0 8px; }
.intro-groupe h1 { font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.8rem); }

.marque { padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--bordure); }
.marque:last-of-type { border-bottom: 0; }
.marque-tete { display: flex; align-items: center; gap: 22px; margin-bottom: 28px; }
.marque-tete img { width: 96px; height: 96px; object-fit: contain; border-radius: 22px; background: var(--blanc); border: 1px solid var(--bordure); padding: 6px; flex: none; }
.marque-tete h2 { margin: 0; }
.marque-corps { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.marque:nth-of-type(even) .marque-corps > :first-child { order: 2; }
.marque-corps h3 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--turquoise); margin: 1.6em 0 .6em; }
.marque-corps h3:first-child { margin-top: 0; }
.avis { position: relative; background: var(--rose-pale); border-radius: var(--rayon); padding: 24px 26px 22px 30px; font-style: italic; }
.avis::before { content: "“"; position: absolute; left: 14px; top: 2px; font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--rose); }
.avis p:last-child { margin-bottom: 0; }
.visuel { position: sticky; top: 140px; }
.visuel img { border-radius: var(--rayon); box-shadow: var(--ombre); width: 100%; }
.visuel img + img { margin-top: 14px; aspect-ratio: 4 / 3; object-fit: cover; }
.galerie { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.galerie img { border-radius: 16px; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; box-shadow: var(--ombre); transition: transform var(--transition); }
.galerie img:hover { transform: scale(1.02); }
.galerie img:only-child, .galerie img:first-child:nth-last-child(3) { grid-column: 1 / -1; aspect-ratio: 3 / 2; }

/* Pied de page */
.pied { background: var(--marine-sombre); color: #d6e0ef; padding: 40px 0; font-size: .92rem; margin-top: auto; }
.pied a { color: #fff; }
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }

/* Apparition au défilement (uniquement si le script est chargé) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.visible { opacity: 1; transform: none; }
.js .grille-marques .reveal:nth-child(2) { transition-delay: .08s; }
.js .grille-marques .reveal:nth-child(3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Tablette */
@media (max-width: 900px) {
  .bandeau .conteneur, .deux-colonnes, .marque-corps { grid-template-columns: 1fr; }
  .marque:nth-of-type(even) .marque-corps > :first-child { order: 0; }
  .visuel { position: static; }
  .photo { max-width: 360px; }
  .bandeau .photo { order: -1; }
}

/* Mobile */
@media (max-width: 800px) {
  [id] { scroll-margin-top: 80px; }
  .entete .conteneur { flex-wrap: wrap; min-height: 64px; }
  .logo img { height: 46px; }
  .nav-toggle { display: inline-block; }
  .nav {
    display: flex; flex-direction: column; width: 100%; gap: 0;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .45s cubic-bezier(.2, .7, .2, 1), opacity .3s;
  }
  .nav.ouvert { max-height: 420px; opacity: 1; padding-bottom: 10px; }
  .nav a { padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--bordure); }
  .nav a::after { display: none; }
  .nav a:last-child { border-bottom: 0; }
  .sommaire { top: 64px; }
  .photo::before { inset: -10px; }
  .boutons .bouton { flex: 1 1 auto; justify-content: center; }
  .marque-tete { flex-direction: column; align-items: flex-start; }
  .tuile-double { flex-direction: column; }
}
