/* ============================================================
   BRAND PAGE — LNK Design Touch (refonte v2)
   ============================================================ */

.brand-page { background: #FFF9F0; color: #001A17; }

/* ============ HERO ============ */
.brand-hero {
  position: relative;
  background: linear-gradient(135deg, #0B1F1C 0%, #0F3330 55%, #1A4A42 100%);
  color: #FFF9F0;
  padding: clamp(72px, 10vw, 140px) 0 clamp(80px, 12vw, 160px);
  overflow: hidden;
}
.brand-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(0, 150, 136, 0.28), transparent 55%);
  pointer-events: none;
}
.brand-hero .container { position: relative; z-index: 2; max-width: 820px; }

.brand-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7EE0D0;
  padding: 6px 14px;
  border: 1px solid rgba(126, 224, 208, 0.35);
  border-radius: 999px;
  background: rgba(126, 224, 208, 0.08);
  margin-bottom: 24px;
}
.brand-hero-title {
  font-family: var(--heading, "Montserrat", sans-serif);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 900;
  margin: 0 0 24px;
  color: #FFF9F0;
}
.brand-hero-title em {
  font-style: normal;
  color: #7EE0D0;
}
.brand-hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  color: rgba(255, 249, 240, 0.78);
  max-width: 620px;
  margin: 0;
}

/* Décorations flottantes */
.brand-hero-deco { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.brand-hero-deco span {
  position: absolute;
  border: 1px solid rgba(126, 224, 208, 0.18);
  border-radius: 50%;
}
.deco-1 { width: 220px; height: 220px; top: 12%; right: 6%; }
.deco-2 { width: 80px;  height: 80px;  top: 62%; right: 18%; }
.deco-3 { width: 60px;  height: 60px;  bottom: 15%; left: 8%; border-radius: 8px !important; }
.deco-4 { width: 14px;  height: 14px;  top: 22%; left: 72%; background: #7EE0D0; border: none !important; opacity: 0.5; }
.deco-5 { width: 130px; height: 130px; top: 42%; right: 2%; }

/* ============ SECTIONS ============ */
.brand-section { padding: clamp(64px, 8vw, 120px) 0; }
.brand-section-alt { background: #FFFFFF; }

.brand-section-head {
  max-width: 780px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}
.brand-section-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #009688;
  margin-bottom: 16px;
  padding-left: 22px;
  position: relative;
}
.brand-section-kicker::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 14px; height: 2px;
  background: #009688;
  transform: translateY(-50%);
}
.brand-section-head h2 {
  font-family: var(--heading, "Montserrat", sans-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #001A17;
  margin: 0 0 18px;
}
.brand-section-head h2 em {
  font-style: normal;
  color: #009688;
}
.brand-section-lead {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.7;
  color: rgba(0, 26, 23, 0.65);
  margin: 0;
}

/* ============ 01 PRINCIPES ============ */
.brand-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}
.brand-principle {
  padding: 32px 28px;
  border: 1px solid rgba(0, 26, 23, 0.08);
  border-radius: 16px;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.brand-principle:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -14px rgba(0, 26, 23, 0.12);
  border-color: rgba(0, 150, 136, 0.3);
}
.brand-principle-num {
  display: inline-block;
  font-family: var(--heading, "Montserrat", sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #009688;
  padding: 4px 10px;
  background: rgba(0, 150, 136, 0.08);
  border-radius: 6px;
  margin-bottom: 16px;
}
.brand-principle h3 {
  font-family: var(--heading, "Montserrat", sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #001A17;
  margin: 0 0 12px;
}
.brand-principle p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(0, 26, 23, 0.7);
  margin: 0;
}

/* ============ 02 LOGOS ============ */
.brand-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
  margin-bottom: clamp(32px, 4vw, 48px);
}
.brand-logo-card {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.brand-logo-frame {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  border: 1px solid rgba(0, 26, 23, 0.08);
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.brand-logo-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -10px rgba(0, 26, 23, 0.15);
}
.brand-logo-frame-light { background: #FFF9F0; }
.brand-logo-frame-dark  { background: #0B1F1C; border-color: rgba(255, 249, 240, 0.08); }
.brand-logo-frame img {
  max-width: 80%;
  max-height: 80%;
  display: block;
}
.brand-logo-placeholder {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(0, 26, 23, 0.4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.brand-logo-card figcaption {
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand-logo-card figcaption strong {
  font-family: var(--heading, "Montserrat", sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #001A17;
}
.brand-logo-card figcaption code {
  font-size: 0.78rem;
  color: #009688;
  background: rgba(0, 150, 136, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
  font-family: 'SF Mono', Monaco, monospace;
}
.brand-logo-card figcaption span {
  font-size: 0.85rem;
  color: rgba(0, 26, 23, 0.6);
  line-height: 1.5;
}

/* Do / Don't */
.brand-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
}
.brand-rule {
  padding: 28px 28px 24px;
  border-radius: 14px;
  border: 1px solid rgba(0, 26, 23, 0.08);
  background: #fff;
}
.brand-rule-do { border-color: rgba(0, 150, 136, 0.35); }
.brand-rule-dont { border-color: rgba(255, 112, 67, 0.35); }
.brand-rule h3 {
  font-family: var(--heading, "Montserrat", sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 16px;
}
.brand-rule-do h3 { color: #009688; }
.brand-rule-dont h3 { color: #FF7043; }
.brand-rule ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.brand-rule li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(0, 26, 23, 0.75);
}
.brand-rule-do li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #009688;
  font-weight: 700;
}
.brand-rule-dont li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #FF7043;
  font-weight: 700;
}

/* ============ 03 PALETTE ============ */
.brand-palette {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(14px, 2vw, 20px);
}
.brand-swatch {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.brand-swatch-chip {
  aspect-ratio: 1;
  border-radius: 14px;
  box-shadow: 0 4px 12px -4px rgba(0, 26, 23, 0.15);
  border: 1px solid rgba(0, 26, 23, 0.06);
  transition: transform .25s ease;
}
.brand-swatch:hover .brand-swatch-chip { transform: translateY(-4px) scale(1.02); }
.brand-swatch strong {
  font-family: var(--heading, "Montserrat", sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: #001A17;
}
.brand-swatch code {
  font-size: 0.78rem;
  color: rgba(0, 26, 23, 0.6);
  font-family: 'SF Mono', Monaco, monospace;
}

/* ============ 04 TYPO ============ */
.brand-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
}
.brand-type-card {
  padding: 32px 28px;
  border: 1px solid rgba(0, 26, 23, 0.08);
  border-radius: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.brand-type-sample {
  font-size: 4rem;
  line-height: 1;
  color: #009688;
  display: block;
}
.brand-type-card h3 {
  font-family: var(--heading, "Montserrat", sans-serif);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0;
  color: #001A17;
}
.brand-type-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(0, 26, 23, 0.7);
  margin: 0;
}
.brand-type-meta {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 26, 23, 0.4);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 26, 23, 0.06);
}

/* ============ 05 APPLICATIONS ============ */
.brand-apps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
}
.brand-app {
  padding: 36px 30px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  transition: transform .25s ease;
}
.brand-app:hover { transform: translateY(-4px); }
.brand-app-digital { background: #0B1F1C; color: #FFF9F0; }
.brand-app-print   { background: #FFC107; color: #001A17; }
.brand-app-brand   { background: #FF7043; color: #001A17; }

.brand-app-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  width: fit-content;
}
.brand-app-print .brand-app-tag,
.brand-app-brand .brand-app-tag {
  background: rgba(0, 26, 23, 0.12);
}
.brand-app-digital .brand-app-tag {
  color: #7EE0D0;
  background: rgba(126, 224, 208, 0.15);
  border: 1px solid rgba(126, 224, 208, 0.3);
}

.brand-app h3 {
  font-family: var(--heading, "Montserrat", sans-serif);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}
.brand-app p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: auto 0 0;
  opacity: 0.85;
}

/* ============ CTA ============ */
.brand-cta {
  background: linear-gradient(135deg, #009688 0%, #00796B 100%);
  color: #FFF9F0;
  padding: clamp(56px, 8vw, 96px) 0;
}
.brand-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.brand-cta-inner h2 {
  font-family: var(--heading, "Montserrat", sans-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0;
  max-width: 640px;
}
.brand-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: #FFF9F0;
  color: #001A17;
  font-family: var(--heading, "Montserrat", sans-serif);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.brand-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.3);
}
.brand-cta-btn svg { width: 18px; height: 18px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .brand-principles,
  .brand-logos,
  .brand-apps { grid-template-columns: 1fr 1fr; }
  .brand-palette { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .brand-section { padding: 56px 0; }
  .brand-section-head { text-align: left; }
  .brand-section-kicker { padding-left: 18px; }

  .brand-principles,
  .brand-logos,
  .brand-apps,
  .brand-rules,
  .brand-type { grid-template-columns: 1fr; }

  .brand-palette { grid-template-columns: 1fr 1fr; }

  .brand-cta-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .brand-cta-btn { width: 100%; justify-content: center; }

  .brand-hero { padding: 64px 0 80px; }
}

/* ============================================================
   FORCE RESPONSIVE — fix grilles + overflow
   ============================================================ */
@media (max-width: 900px) {
  .brand-principles,
  .brand-logos,
  .brand-apps,
  .brand-rules,
  .brand-type {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .brand-palette {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .brand-page { overflow-x: hidden !important; }

  .brand-hero .container,
  .brand-section .container,
  .brand-cta .container {
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-inline: 20px !important;
  }

  .brand-principles,
  .brand-logos,
  .brand-apps,
  .brand-rules,
  .brand-type {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }
  .brand-palette {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  /* CTA : bouton propre */
  .brand-cta-inner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 24px !important;
  }
  .brand-cta-inner h2 { font-size: 1.5rem !important; }
  .brand-cta-btn {
    width: 100% !important;
    justify-content: center !important;
    white-space: nowrap !important;
    padding: 14px 20px !important;
  }

  /* Sections plus compactes */
  .brand-section { padding: 56px 0 !important; }
  .brand-section-head { text-align: left !important; }
  .brand-section-kicker { padding-left: 18px !important; }
  .brand-hero { padding: 64px 0 80px !important; }

  /* Cards plus compactes */
  .brand-principle,
  .brand-type-card,
  .brand-rule { padding: 24px 22px !important; }
  .brand-app { min-height: auto !important; padding: 28px 24px !important; }
}

/* ============================================================
   MOTION DOUX — décors hero brand (style accueil)
   ============================================================ */
.brand-hero-deco span {
  will-change: transform;
}

.deco-1 {
  animation: brand-deco-drift-a 9s ease-in-out infinite alternate;
}
.deco-2 {
  animation: brand-deco-drift-b 10s ease-in-out infinite alternate;
}
.deco-3 {
  animation: brand-deco-drift-c 11s ease-in-out infinite alternate;
}
.deco-4 {
  animation: brand-deco-drift-d 7s ease-in-out infinite alternate;
}
.deco-5 {
  animation: brand-deco-drift-e 8s ease-in-out infinite alternate;
}

@keyframes brand-deco-drift-a {
  0%   { transform: translate3d(-2px, 2px, 0) rotate(0deg); }
  100% { transform: translate3d(3px, -3px, 0) rotate(4deg); }
}
@keyframes brand-deco-drift-b {
  0%   { transform: translate3d(2px, -1px, 0); }
  100% { transform: translate3d(-3px, 2px, 0); }
}
@keyframes brand-deco-drift-c {
  0%   { transform: translate3d(-1px, 2px, 0) rotate(-3deg); }
  100% { transform: translate3d(2px, -3px, 0) rotate(3deg); }
}
@keyframes brand-deco-drift-d {
  0%   { transform: translate3d(1px, -2px, 0) scale(1); }
  100% { transform: translate3d(-2px, 2px, 0) scale(1.15); }
}
@keyframes brand-deco-drift-e {
  0%   { transform: translate3d(-2px, 1px, 0) rotate(0deg); }
  100% { transform: translate3d(2px, -2px, 0) rotate(-5deg); }
}

/* Respect : désactiver si l'utilisateur a "reduced motion" */
@media (prefers-reduced-motion: reduce) {
  .brand-hero-deco span {
    animation: none !important;
  }
}
