/* ==========================================================================
   Happer — styles communs aux 3 pages
   (polices, variables, typographie, boutons, en-tête, pied de page,
   composants partagés). Les sections propres à chaque page sont dans
   home.css, creator.css et partner.css.

   Points de rupture utilisés partout :
     ≤ 1100px  tablette
     ≤ 960px   menu mobile (burger)
     ≤ 760px   mobile (les colonnes s’empilent)
   ========================================================================== */

/* ---------- Polices ---------- */
@font-face { font-family: Poppins; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

/* ---------- Variables ---------- */
:root {
  /* Couleurs */
  --ink: #111111;          /* titres, boutons */
  --text: #595959;         /* texte courant */
  --text-soft: #777777;    /* légendes */
  --eyebrow: #6f6255;      /* sur-titres */
  --white: #ffffff;
  --grey-50: #fafafa;
  --grey-100: #f7f7f7;
  --beige-50: #fcf8f3;     /* fonds de cartes, sections claires */
  --beige-100: #faf5ee;
  --beige-200: #f7ebde;    /* bloc de fin de page */
  --accent: #f4e3d1;       /* soulignement des titres, pastilles */
  --line: #e8dfd5;         /* séparateurs beiges */
  --card-border: #eee4d9;
  --focus: #9b7656;
  --error: #a33a2b;        /* messages d’erreur des formulaires */

  /* Mise en page */
  --container: 1240px;
  --gutter: 52px;          /* marge latérale de chaque côté */
  --header-h: 84px;
  --radius: 22px;

  --font: Poppins, Arial, sans-serif;
}

@media (max-width: 1100px) { :root { --gutter: 32px; } }
@media (max-width: 760px)  { :root { --gutter: 20px; --header-h: 72px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure, ul { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.05em; }
h3 { letter-spacing: -0.035em; }
p { color: var(--text); line-height: 1.8; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section { padding-block: 104px; }
@media (max-width: 760px) { .section { padding-block: 68px; } }

.center { text-align: center; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 16px; background: var(--ink); color: var(--white); border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* N’affiche un <br> que sur grand écran */
@media (max-width: 760px) { .br-desktop { display: none; } }

/* ---------- Typographie partagée ---------- */
.eyebrow {
  display: block;
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
@media (max-width: 760px) { .eyebrow { font-size: 10px; margin-bottom: 16px; } }

/* Soulignement beige sous un morceau de titre. Fonctionne sur plusieurs lignes. */
.hl {
  background: linear-gradient(transparent 70%, var(--accent) 70%, var(--accent) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.nowrap { white-space: nowrap; }

/* Bloc titre + intro de section */
.section-intro { max-width: 780px; margin-bottom: 52px; }
.section-intro.center { margin-inline: auto; }
.section-intro > p:not(.eyebrow) { max-width: 660px; margin-top: 22px; font-size: 15px; }
.section-intro.center > p:not(.eyebrow) { margin-inline: auto; }
@media (max-width: 760px) {
  .section-intro { margin-bottom: 34px; }
  .section-intro > p:not(.eyebrow) { margin-top: 18px; font-size: 14px; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 16px 24px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: #333333; border-color: #333333; transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn--sm { padding: 10px 18px; gap: 12px; font-size: 12px; }
.btn--sm svg { width: 17px; height: 17px; }

.btn--outline { background: transparent; color: var(--ink); border-color: #bbb7b1; }
.btn--outline:hover { background: var(--white); border-color: var(--ink); }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.text-link svg { width: 18px; height: 18px; }

@media (max-width: 760px) {
  .btn { padding: 15px 21px; font-size: 12px; gap: 15px; }
  .btn--sm { padding: 10px 16px; }
}

/* ---------- Logo (Happer + étiquette Creator / Partner) ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; line-height: 0; }
.logo img { width: 140px; }
.logo__tag {
  padding: 3px 10px;
  border: 1.5px solid currentColor;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

/* ---------- En-tête (identique sur les 3 pages) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgb(238 238 238 / .7);
}
.site-header__inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.site-nav { display: flex; gap: 32px; }
.site-nav a {
  padding: 6px 0;
  font-size: 13px; font-weight: 500;
  color: #707070;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.site-header__actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
@media (max-width: 1100px) { .site-header__cta { display: none; } }  /* le bouton principal reste dans le premier écran */

.menu-toggle {
  display: none;
  justify-self: end;
  width: 44px; height: 44px;
  padding: 10px;
  border: 0; background: none;
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Menu mobile */
.mobile-menu {
  border-top: 1px solid #eeeeee;
  background: var(--white);
  padding: 12px 0 28px;
  box-shadow: 0 24px 40px rgb(17 17 17 / .06);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 18px; font-weight: 500; letter-spacing: -0.03em;
}
.mobile-menu nav a[aria-current="page"]::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink);
}
.mobile-menu__actions { display: grid; gap: 10px; margin-top: 24px; }
.mobile-menu__actions .btn { width: 100%; }

@media (max-width: 960px) {
  .site-header__inner { grid-template-columns: 1fr auto; }
  .site-nav, .site-header__actions { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 760px) {
  .logo img { width: 116px; }
  .logo__tag { font-size: 11px; padding: 2px 8px; }
}

/* ---------- Pied de page (identique sur les 3 pages) ---------- */
.site-footer { background: var(--ink); color: var(--white); padding: 60px 0 26px; }

.site-footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer__brand img { width: 140px; filter: invert(1); }
.site-footer__brand p { margin-top: 18px; font-size: 13px; color: #a3a3a3; }

.site-footer h2 {
  margin: 4px 0 16px;
  font-size: 13px; font-weight: 500; letter-spacing: 0;
  color: #eeeeee;
}
.site-footer ul { padding: 0; list-style: none; display: grid; gap: 10px; }
.site-footer__top a { font-size: 13px; color: #a3a3a3; transition: color .2s; }
.site-footer a:hover { color: var(--white); }

.site-footer__bottom {
  display: flex; justify-content: space-between; gap: 20px;
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid #303030;
  font-size: 12px; color: #8a8a8a;
}
.site-footer__bottom ul { display: flex; gap: 22px; }

@media (max-width: 760px) {
  .site-footer { padding: 44px 0 24px; }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__brand img { width: 120px; }
  .site-footer__bottom { flex-direction: column; gap: 14px; margin-top: 34px; }
}

/* ---------- Composants partagés ---------- */

/* Pastille ronde beige contenant une icône */
.icon-disc {
  display: inline-grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--accent);
}
.icon-disc svg { width: 26px; height: 26px; }

/* Grille de logos de marques (accueil + Partner) */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  padding: 0; list-style: none;
}
.brand-grid li {
  display: flex; align-items: center; justify-content: center;
  min-width: 0; height: 108px; padding: 20px;
  border: 1px solid #ebe8e4; border-radius: 16px;
  background: var(--white);
}
.brand-grid img { width: var(--w, 120px); max-width: 100%; height: 54px; object-fit: contain; }
/* Taille optique de chaque logo (ordinateur / mobile) */
.brand--zara             { --w: 98px;  --w-sm: 69px; }
.brand--nike             { --w: 112px; --w-sm: 76px; }
.brand--sephora          { --w: 140px; --w-sm: 90px; }
.brand--maje             { --w: 107px; --w-sm: 75px; }
.brand--american-vintage { --w: 145px; --w-sm: 93px; }
.brand--asos             { --w: 110px; --w-sm: 77px; }
@media (max-width: 1100px) { .brand-grid li { padding: 16px; } }
@media (max-width: 760px) {
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .brand-grid li { height: 80px; padding: 14px 12px; border-radius: 14px; }
  .brand-grid img { width: var(--w-sm, 80px); height: 42px; }
}

/* Bloc de fin de page : sur-titre, titre, bouton */
.cta-band { background: var(--beige-200); text-align: center; padding-block: 96px; }
.cta-band h2 {
  max-width: 850px;
  margin: 0 auto 32px;
  font-size: clamp(40px, 4.3vw, 60px);
  line-height: 1.14;
}
@media (max-width: 760px) {
  .cta-band { padding-block: 70px; }
  .cta-band h2 { font-size: 36px; margin-bottom: 28px; }
}

/* ---------- Fenêtre de contact / candidature ---------- */
.dialog {
  width: min(500px, 100% - 32px);
  padding: 42px;
  border: 1px solid #dddddd;
  border-radius: 24px;
  color: var(--ink);
  box-shadow: 0 30px 120px rgb(0 0 0 / .2);
}
.dialog::backdrop { background: rgb(17 17 17 / .45); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.dialog h2 { font-size: 30px; line-height: 1.2; margin-bottom: 16px; }
.dialog p { font-size: 14px; }
.dialog__close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; padding: 10px;
  border: 0; border-radius: 50%; background: none;
}
.dialog__close:hover { background: var(--grey-100); }
.dialog__close svg { width: 20px; height: 20px; }

.lead-form { display: grid; gap: 14px; margin-top: 26px; }
.lead-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }   /* Prénom + Nom */
.field { display: grid; gap: 6px; }
.lead-form label { font-size: 13px; font-weight: 500; }
.lead-form input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #d9d4ce; border-radius: 14px;
  background: var(--white);
  font-size: 15px;
}
.lead-form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent); }
.lead-form input[aria-invalid="true"] { border-color: var(--error); }
.lead-form .btn { margin-top: 6px; }
.lead-form__status { min-height: 1.6em; font-size: 13px; }
.lead-form__status[data-state="error"] { color: var(--error); }
.lead-form__status[data-state="success"] { color: var(--ink); font-weight: 500; }
.dialog small { display: block; margin-top: 6px; font-size: 12px; color: var(--text-soft); }

@media (max-width: 760px) {
  .dialog { padding: 34px 24px 28px; }
  .dialog h2 { font-size: 26px; }
}
@media (max-width: 420px) {
  .lead-form__row { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Accessibilité : animations réduites ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
