/*
 * Charte graphique Atypikoo — /page/charte-graphique/
 * Feuille autonome, entièrement scopée sous .cg (aucun effet sur le reste du thème).
 * Logos et fichiers : content/themes/atypikoo/static/brand/ (scripts/brand/generate-logo-assets.py).
 */

.cg {
  --cg-orange: #e7604d;
  --cg-orange-ink: #c74435;
  --cg-orange-soft: #fbe3dc;
  --cg-blue: #186e9a;
  --cg-ink: #1d1d1b;
  --cg-muted: #5f5e5a;
  --cg-line: #e7e1d6;
  --cg-beige: #fcf9f3;
  --cg-dark: #161616;
  --cg-radius: 14px;
  color: var(--cg-ink);
  background: #fff;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.cg *,
.cg *::before,
.cg *::after {
  box-sizing: border-box;
}

.cg h1,
.cg h2,
.cg h3,
.cg h4,
.cg p {
  margin: 0;
}

.cg a {
  color: var(--cg-orange-ink);
}

.cg-wrap {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

.cg-logo {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Hero ---------- */

.cg-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px);
  background: var(--cg-beige);
}

.cg-hero::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -220px;
  width: 520px;
  height: 520px;
  border: 64px solid var(--cg-orange-soft);
  border-radius: 50%;
  pointer-events: none;
}

.cg-hero .cg-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px 64px;
}

.cg-eyebrow {
  margin-bottom: 18px !important;
  color: var(--cg-orange-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cg-hero h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.cg-hero h1 span {
  color: var(--cg-orange-ink);
}

.cg-lead {
  max-width: 560px;
  margin-top: 22px !important;
  color: var(--cg-muted);
  font-size: 19px;
  line-height: 1.6;
}

.cg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.cg-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 2px solid var(--cg-ink);
  border-radius: 999px;
  background: var(--cg-ink);
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.cg-button:hover {
  transform: translateY(-1px);
  background: #000;
}

.cg-button--ghost {
  background: transparent;
  color: var(--cg-ink) !important;
}

.cg-button--ghost:hover {
  background: #fff;
}

.cg-button small {
  font-weight: 500;
  opacity: 0.7;
}

.cg-hero-stage {
  display: grid;
  gap: 18px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 60px -30px rgb(60 40 20 / 0.25);
}

.cg-hero-stage img {
  display: block;
  width: 100%;
  height: auto;
}

.cg-replay {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--cg-line);
  border-radius: 999px;
  background: #fff;
  color: var(--cg-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.cg-replay:hover {
  border-color: var(--cg-ink);
}

.cg-replay svg {
  width: 16px;
  height: 16px;
}

/* ---------- Navigation interne ---------- */

.cg-nav {
  position: sticky;
  top: var(--cg-header-h, 64px);
  z-index: 20;
  border-bottom: 1px solid var(--cg-line);
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: blur(8px);
}

.cg-nav ol {
  display: flex;
  gap: 4px;
  margin: 0 auto;
  padding: 10px 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.cg-nav ol::-webkit-scrollbar {
  display: none;
}

.cg-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--cg-muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.cg-nav a:hover,
.cg-nav a[aria-current="true"] {
  background: var(--cg-ink);
  color: #fff;
}

/* ---------- Sections ---------- */

.cg-section {
  padding: clamp(64px, 9vw, 112px) 0;
  scroll-margin-top: calc(var(--cg-header-h, 64px) + 64px);
}

.cg-section + .cg-section {
  border-top: 1px solid var(--cg-line);
}

.cg-section--beige {
  background: var(--cg-beige);
}

.cg-section--dark {
  background: var(--cg-dark);
  color: #f5f2ed;
}

.cg-section--dark .cg-heading p,
.cg-section--dark .cg-note {
  color: #c9c4bb;
}

.cg-heading {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px 32px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.cg-number {
  color: var(--cg-orange);
  font-family: "Ubuntu", "Outfit", sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.cg-heading h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.cg-heading p {
  max-width: 720px;
  margin-top: 14px;
  color: var(--cg-muted);
  font-size: 18px;
}

.cg-note {
  color: var(--cg-muted);
  font-size: 15px;
}

.cg-grid {
  display: grid;
  gap: 20px;
}

.cg-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cg-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cg-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------- 01 Le logo ---------- */

.cg-showcase {
  display: grid;
  place-items: center;
  padding: clamp(40px, 8vw, 96px) clamp(24px, 8vw, 120px);
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius);
  background: #fff;
}

.cg-showcase .cg-logo {
  max-width: 720px;
}

.cg-pillars {
  margin-top: 28px;
}

.cg-pillar {
  padding: 24px;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius);
  background: #fff;
}

.cg-pillar h3 {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 700;
}

.cg-pillar p {
  color: var(--cg-muted);
  font-size: 16px;
}

.cg-pillar-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 14px;
  background: var(--cg-orange-soft);
}

.cg-pillar-icon svg {
  width: 30px;
  height: 30px;
}

/* ---------- 02 Construction ---------- */

.cg-blueprint {
  padding: clamp(16px, 4vw, 40px);
  border-radius: var(--cg-radius);
  background: #fff;
  border: 1px solid var(--cg-line);
}

.cg-blueprint svg {
  display: block;
  width: 100%;
  height: auto;
}

.cg-blueprint text {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
}

.cg-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius);
  background: #fff;
  overflow: hidden;
}

.cg-spec {
  padding: 20px 22px;
  border-right: 1px solid var(--cg-line);
  border-bottom: 1px solid var(--cg-line);
}

.cg-spec:nth-child(3n) {
  border-right: 0;
}

.cg-spec:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.cg-spec strong {
  display: block;
  font-family: "Ubuntu", "Outfit", sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cg-spec span {
  color: var(--cg-muted);
  font-size: 15px;
}

/* ---------- Cartes de versions et téléchargements ---------- */

.cg-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius);
  background: #fff;
  color: var(--cg-ink);
}

.cg-card-stage {
  display: grid;
  min-height: 210px;
  place-items: center;
  padding: 36px 32px;
  background: #fff;
}

.cg-card-stage .cg-logo {
  max-width: 280px;
}

.cg-card-stage--picto .cg-logo {
  width: auto;
  max-width: 150px;
  max-height: 120px;
}

.cg-stage--white {
  background: #fff;
}

.cg-stage--beige {
  background: var(--cg-beige);
}

.cg-stage--dark {
  background: var(--cg-dark);
}

.cg-stage--orange {
  background: var(--cg-orange);
}

.cg-stage--blue {
  background: var(--cg-blue);
}

.cg-stage--check {
  background-color: #fff;
  background-image: linear-gradient(45deg, #eee 25%, transparent 25%),
    linear-gradient(-45deg, #eee 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eee 75%),
    linear-gradient(-45deg, transparent 75%, #eee 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

.cg-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 20px;
  border-top: 1px solid var(--cg-line);
}

.cg-card-body h3 {
  font-size: 18px;
  font-weight: 700;
}

.cg-card-body p {
  color: var(--cg-muted);
  font-size: 15px;
  line-height: 1.5;
}

.cg-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.cg-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--cg-line);
  border-radius: 999px;
  color: var(--cg-ink) !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
}

.cg-chip:hover {
  border-color: var(--cg-ink);
  background: var(--cg-ink);
  color: #fff !important;
}

.cg-chip svg {
  width: 14px;
  height: 14px;
}

/* ---------- 05 Animation ---------- */

.cg-motion {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
}

.cg-motion-player {
  display: grid;
  gap: 20px;
  align-content: center;
  justify-items: center;
  padding: 48px 32px 28px;
  border-radius: var(--cg-radius);
  background: #fff;
}

.cg-motion-player .cg-replay {
  justify-self: center;
}

.cg-motion-player img {
  width: 100%;
  max-width: 560px;
  height: auto;
}

.cg-motion-player--dark {
  background: #000;
}

.cg-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.cg-steps li {
  position: relative;
  padding: 16px 18px 16px 60px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 12px;
  counter-increment: step;
}

.cg-steps li::before {
  content: counter(step);
  position: absolute;
  top: 14px;
  left: 16px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--cg-orange);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.cg-steps strong {
  display: block;
  color: #fff;
}

.cg-steps span {
  color: #c9c4bb;
  font-size: 15px;
}

.cg-loader {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 12px;
}

.cg-loader img {
  width: 64px;
  height: auto;
}

.cg-loader p {
  color: #c9c4bb;
  font-size: 15px;
}

.cg-loader strong {
  color: #fff;
}

.cg-motion .cg-chip {
  border-color: rgb(255 255 255 / 0.25);
  color: #fff !important;
}

.cg-motion .cg-chip:hover {
  background: #fff;
  color: var(--cg-ink) !important;
}

/* ---------- 06 Protection et tailles ---------- */

.cg-sizes {
  display: grid;
  gap: 0;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius);
  background: #fff;
  overflow: hidden;
}

.cg-size {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 84px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--cg-line);
}

.cg-size:last-child {
  border-bottom: 0;
}

.cg-size strong {
  font-family: "Ubuntu", "Outfit", sans-serif;
  font-size: 20px;
}

.cg-size .cg-logo {
  width: var(--w);
}

.cg-size .cg-picto-sample {
  width: var(--w);
  height: auto;
}

.cg-verdict {
  padding: 4px 12px;
  border-radius: 999px;
  background: #e5f3ef;
  color: #0a6c57;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.cg-verdict--no {
  background: #fde8e4;
  color: #a8352a;
}

/* ---------- 07 Couleurs ---------- */

.cg-swatch {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius);
  background: #fff;
}

.cg-swatch-color {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 170px;
  padding: 18px 20px;
  background: var(--c);
  color: var(--on, #fff);
}

.cg-swatch--main .cg-swatch-color {
  min-height: 260px;
}

.cg-swatch-color h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cg-copy {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.cg-swatch dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin: 0;
  padding: 16px 20px 6px;
  font-size: 15px;
}

.cg-swatch dt {
  color: var(--cg-muted);
  font-weight: 500;
}

.cg-swatch dd {
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 14px;
}

.cg-swatch p {
  padding: 4px 20px 18px;
  color: var(--cg-muted);
  font-size: 14px;
  line-height: 1.5;
}

.cg-ratio {
  display: flex;
  height: 18px;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 999px;
}

.cg-ratio span {
  flex: var(--f);
  background: var(--c);
}

.cg-ratio-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 12px;
  color: var(--cg-muted);
  font-size: 14px;
}

/* ---------- 08 Typographies ---------- */

.cg-type {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 32px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius);
  background: #fff;
}

.cg-type + .cg-type {
  margin-top: 20px;
}

.cg-type-meta small {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--cg-orange-soft);
  color: var(--cg-orange-ink);
  font-size: 13px;
  font-weight: 700;
}

.cg-type-meta h3 {
  margin-bottom: 8px;
  font-size: 26px;
  font-weight: 800;
}

.cg-type-meta p {
  color: var(--cg-muted);
  font-size: 16px;
}

.cg-type-meta a {
  display: inline-block;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
}

.cg-type-sample {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
}

.cg-type-big {
  font-size: clamp(56px, 8vw, 104px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.cg-type-line {
  overflow: hidden;
  color: var(--cg-muted);
  font-size: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cg-font-ubuntu {
  font-family: "Ubuntu", sans-serif;
  font-weight: 700;
}

.cg-font-outfit {
  font-family: "Outfit", sans-serif;
}

.cg-font-phudu {
  font-family: "Phudu", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

.cg-weights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 22px;
}

/* ---------- 09 Fonds ---------- */

.cg-bg {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius);
}

.cg-bg-stage {
  display: grid;
  min-height: 190px;
  place-items: center;
  padding: 32px;
}

.cg-bg-stage .cg-logo {
  max-width: 240px;
}

.cg-bg-stage--photo {
  background: radial-gradient(circle at 25% 30%, #6d8a96 0, transparent 55%),
    radial-gradient(circle at 80% 75%, #2b3a42 0, transparent 60%),
    linear-gradient(135deg, #46606b, #1e2a30);
}

.cg-bg-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  font-size: 15px;
}

.cg-bg-caption span {
  color: var(--cg-muted);
}

/* ---------- 10 À éviter ---------- */

.cg-dont {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius);
  background: #fff;
}

.cg-dont-stage {
  position: relative;
  display: grid;
  min-height: 170px;
  place-items: center;
  padding: 28px;
  overflow: hidden;
  background: #fff;
}

.cg-dont-stage .cg-logo {
  max-width: 200px;
}

.cg-dont-stage::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #d63c2f
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}

.cg-dont-body {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--cg-line);
}

.cg-dont-body h3 {
  font-size: 16px;
  font-weight: 700;
}

.cg-dont-body p {
  color: var(--cg-muted);
  font-size: 14px;
  line-height: 1.5;
}

.cg-dont--stretch .cg-logo {
  max-width: 150px;
  transform: scaleX(1.35) scaleY(0.8);
}

.cg-dont--rotate .cg-logo {
  transform: rotate(-14deg);
}

.cg-dont--effects .cg-logo {
  filter: drop-shadow(4px 5px 0 #f2b8ad) drop-shadow(0 0 1px #000);
}

.cg-dont--busy .cg-dont-stage {
  background: repeating-linear-gradient(45deg, #f6c6bd 0 12px, #fff 12px 24px),
    #fff;
}

.cg-dont--contrast .cg-dont-stage {
  background: #ee8e7f;
}

.cg-dont-retype {
  font-family: "Outfit", sans-serif;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cg-dont-retype span {
  color: var(--cg-orange);
}

/* ---------- 11 En situation ---------- */

.cg-mockups {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.cg-mockup {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--cg-radius);
  background: #efebe4;
}

.cg-mockup--span-2 {
  grid-column: span 2;
}

.cg-mockup--span-3 {
  grid-column: span 3;
}

.cg-mockup--span-4 {
  grid-column: span 4;
}

.cg-mockup-scene {
  position: relative;
  display: grid;
  flex: 1;
  min-height: 340px;
  place-items: center;
  padding: 32px;
  overflow: hidden;
}

.cg-mockup figcaption {
  padding: 14px 18px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
}

.cg-mockup figcaption span {
  display: block;
  color: var(--cg-muted);
  font-size: 14px;
  font-weight: 400;
}

/* Smartphone */
.cg-phone {
  width: 230px;
  padding: 10px;
  border-radius: 38px;
  background: #111;
  box-shadow: 0 30px 50px -20px rgb(0 0 0 / 0.45);
}

.cg-phone-screen {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-content: start;
  gap: 16px 10px;
  height: 420px;
  padding: 44px 14px 14px;
  border-radius: 30px;
  background: linear-gradient(160deg, #f3d9cc 0%, #c9dbe4 55%, #9ab6c4 100%);
}

.cg-app {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: #1d1d1b;
  font-size: 9px;
  font-weight: 500;
}

.cg-app i {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--c, #fff);
}

.cg-app svg {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 6px 12px -6px rgb(0 0 0 / 0.4);
}

.cg-dock {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-around;
  margin-top: 120px;
  padding: 10px;
  border-radius: 22px;
  background: rgb(255 255 255 / 0.4);
}

.cg-dock i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.85);
}

/* Profil réseau social */
.cg-social {
  width: min(320px, 100%);
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 40px -24px rgb(0 0 0 / 0.3);
}

.cg-social-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cg-social-head svg {
  width: 72px;
  height: 72px;
  flex: none;
}

.cg-social-head strong {
  display: block;
  font-size: 16px;
}

.cg-social-head span {
  color: var(--cg-muted);
  font-size: 13px;
}

.cg-social p {
  margin-top: 12px !important;
  font-size: 13px;
  line-height: 1.45;
}

.cg-social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 14px;
}

.cg-social-grid > * {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  padding: 10px;
  background: var(--c);
}

.cg-social-grid svg {
  width: 70%;
  height: auto;
}

.cg-social-grid b {
  color: #fff;
  font-family: "Phudu", sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
}

/* Cartes de visite */
.cg-cards {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 280px;
}

.cg-bcard {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 300px;
  height: 172px;
  padding: 22px 24px;
  border-radius: 8px;
  box-shadow: 0 22px 34px -18px rgb(0 0 0 / 0.45);
}

.cg-bcard--front {
  top: 8px;
  left: 0;
  justify-content: center;
  background: var(--cg-orange);
  transform: rotate(-6deg);
}

.cg-bcard--front .cg-logo {
  width: 190px;
  margin: 0 auto;
}

.cg-bcard--back {
  right: 0;
  bottom: 8px;
  background: #fff;
  font-size: 11px;
  line-height: 1.5;
  transform: rotate(4deg);
}

.cg-bcard--back .cg-logo {
  width: 104px;
}

.cg-bcard--back strong {
  display: block;
  font-size: 14px;
}

.cg-bcard--back span {
  color: var(--cg-muted);
}

/* Affiche */
.cg-poster-frame {
  width: 250px;
  padding: 12px;
  border-radius: 6px;
  background: #2a2a2a;
  box-shadow: 0 30px 50px -24px rgb(0 0 0 / 0.55);
}

.cg-poster {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 3 / 4.3;
  padding: 22px 20px;
  background: var(--cg-orange);
  color: #fff;
}

.cg-poster .cg-logo {
  width: 120px;
}

.cg-poster h4 {
  font-family: "Phudu", sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 0.88;
  text-transform: uppercase;
}

.cg-poster small {
  font-size: 11px;
  font-weight: 600;
}

/* Navigateur */
.cg-browser {
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 26px 46px -26px rgb(0 0 0 / 0.4);
}

.cg-browser-bar {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 10px 12px 0;
  background: #e6e2db;
}

.cg-browser-dots {
  display: flex;
  gap: 6px;
  padding: 0 8px 12px 0;
}

.cg-browser-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9c3b8;
}

.cg-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  padding: 9px 14px;
  border-radius: 10px 10px 0 0;
  background: #fff;
  font-size: 12px;
  white-space: nowrap;
}

.cg-tab svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.cg-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cg-tab--off {
  background: transparent;
  color: #6d6a64;
}

.cg-browser-url {
  margin: 10px 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #f1eee9;
  color: #6d6a64;
  font-size: 12px;
}

.cg-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid #eee;
}

.cg-site-header .cg-logo {
  width: 120px;
}

.cg-site-header span {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--cg-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.cg-site-hero {
  padding: 26px 20px 30px;
  background: var(--cg-beige);
}

.cg-site-hero b {
  display: block;
  max-width: 300px;
  font-family: "Phudu", sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
}

.cg-site-hero i {
  display: block;
  width: 60%;
  height: 8px;
  margin-top: 14px;
  border-radius: 4px;
  background: #e6e0d6;
}

/* Tote bag */
.cg-tote {
  width: 230px;
  height: auto;
  filter: drop-shadow(0 26px 30px rgb(0 0 0 / 0.25));
}

/* Badge */
.cg-lanyard {
  position: relative;
  display: grid;
  justify-items: center;
}

.cg-lanyard::before {
  content: "";
  width: 30px;
  height: 90px;
  background: linear-gradient(90deg, #c74435, #e7604d);
  clip-path: polygon(0 0, 100% 0, 70% 100%, 30% 100%);
}

.cg-badge {
  width: 190px;
  margin-top: -6px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 36px -20px rgb(0 0 0 / 0.45);
  text-align: center;
}

.cg-badge-top {
  padding: 22px 20px 18px;
  background: var(--cg-orange);
}

.cg-badge-top .cg-logo {
  width: 130px;
  margin: 0 auto;
}

.cg-badge-body {
  padding: 18px 16px 22px;
}

.cg-badge-body strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
}

.cg-badge-body span {
  color: var(--cg-muted);
  font-size: 12px;
}

/* Signature */
.cg-mail {
  width: 100%;
  max-width: 380px;
  padding: 22px;
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 20px 36px -24px rgb(0 0 0 / 0.35);
}

.cg-mail p {
  color: var(--cg-muted);
}

.cg-mail-sign {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.cg-mail-sign svg {
  width: 46px;
  height: 46px;
  flex: none;
}

.cg-mail-sign strong {
  display: block;
  font-size: 14px;
}

.cg-mail-sign span {
  color: var(--cg-muted);
  font-size: 12px;
}

/* ---------- 12 Téléchargements ---------- */

.cg-kit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--cg-radius);
  background: var(--cg-orange);
  color: #fff;
}

.cg-kit h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cg-kit p {
  margin-top: 6px;
  color: rgb(255 255 255 / 0.85);
}

.cg-kit .cg-button {
  border-color: #fff;
  background: #fff;
  color: var(--cg-ink) !important;
}

.cg-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius);
  background: #fff;
}

.cg-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
}

.cg-table th,
.cg-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--cg-line);
  text-align: left;
  vertical-align: middle;
}

.cg-table tr:last-child > * {
  border-bottom: 0;
}

.cg-table th {
  color: var(--cg-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cg-table-preview {
  display: grid;
  width: 120px;
  height: 52px;
  place-items: center;
  padding: 8px 12px;
  border-radius: 8px;
}

.cg-table-preview .cg-logo {
  max-height: 34px;
  width: auto;
  max-width: 100%;
}

.cg-table td:last-child {
  white-space: nowrap;
}

.cg-table td:last-child .cg-chip + .cg-chip {
  margin-left: 6px;
}

/* ---------- Contact ---------- */

.cg-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--cg-radius);
  background: var(--cg-dark);
  color: #fff;
}

.cg-contact h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cg-contact p {
  margin-top: 8px;
  color: #c9c4bb;
}

.cg-contact .cg-button {
  border-color: #fff;
  background: #fff;
  color: var(--cg-ink) !important;
}

.cg-updated {
  margin-top: 20px !important;
  color: var(--cg-muted);
  font-size: 14px;
  text-align: center;
}

/* ---------- Utilitaires de la page ---------- */

.cg-grid--top {
  align-items: start;
}

.cg-grid--swatches {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.cg-note--caption {
  margin-top: 14px !important;
}

.cg-note--after {
  margin-top: 20px !important;
}

.cg-subtitle {
  margin: 48px 0 18px !important;
  font-size: 22px;
  font-weight: 800;
}

.cg-swatch-color--light {
  box-shadow: inset 0 -1px 0 var(--cg-line);
}

.cg-swatch-color--small {
  min-height: 120px;
}

.cg-swatch-color--small h3 {
  font-size: 18px;
}

.cg-copy--inline {
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--cg-orange-ink);
  font-family: inherit;
  font-size: inherit;
}

.cg-weight-400 {
  font-weight: 400;
}

.cg-weight-600 {
  font-weight: 600;
}

.cg-weight-800 {
  font-weight: 800;
}

.cg-type-big.cg-font-phudu {
  line-height: 0.9;
}

.cg-tile--orange {
  --c: var(--cg-orange);
}

.cg-tile--ink {
  --c: var(--cg-ink);
}

.cg-tile--blue {
  --c: var(--cg-blue);
}

.cg-tile--beige {
  --c: var(--cg-beige);
}

.cg-mockup-scene--sky {
  background: #dfe7eb;
}

.cg-mockup-scene--dark {
  background: #3b3b3b;
}

.cg-mockup-scene--sand {
  background: #e9e1d3;
}

.cg .cg-table-name {
  color: inherit;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}

.cg-contact--spaced {
  margin-top: 56px;
}

/* ---------- Construction de la pastille ---------- */

.cg-subtitle--first {
  margin-top: 0 !important;
}

.cg-badge-build {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.cg-specs--stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.cg-specs--stack .cg-spec:nth-child(n) {
  border-right: 1px solid var(--cg-line);
  border-bottom: 1px solid var(--cg-line);
}

.cg-specs--stack .cg-spec:nth-child(2n) {
  border-right: 0;
}

.cg-specs--stack .cg-spec:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.cg-specs--stack .cg-spec strong {
  font-size: 20px;
}

.cg-blueprint-labels text {
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 0.9px;
  stroke-linejoin: round;
}

@media (max-width: 860px) {
  .cg-badge-build {
    grid-template-columns: 1fr;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .cg-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cg-mockup--span-2 {
    grid-column: span 3;
  }

  .cg-mockup--span-4 {
    grid-column: span 6;
  }
}

@media (max-width: 860px) {
  .cg-hero .cg-wrap,
  .cg-motion,
  .cg-type {
    grid-template-columns: 1fr;
  }

  .cg-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cg-heading {
    grid-template-columns: 1fr;
  }

  .cg-number {
    font-size: 40px;
  }

  .cg-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cg-spec:nth-child(n) {
    border-right: 1px solid var(--cg-line);
    border-bottom: 1px solid var(--cg-line);
  }

  .cg-spec:nth-child(2n) {
    border-right: 0;
  }

  .cg-spec:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .cg-mockup--span-2,
  .cg-mockup--span-3 {
    grid-column: span 6;
  }
}

@media (max-width: 600px) {
  .cg {
    font-size: 16px;
  }

  .cg-grid--2,
  .cg-grid--3,
  .cg-grid--4 {
    grid-template-columns: 1fr;
  }

  .cg-specs {
    grid-template-columns: 1fr;
  }

  .cg-spec:nth-child(n) {
    border-right: 0;
    border-bottom: 1px solid var(--cg-line);
  }

  .cg-spec:last-child {
    border-bottom: 0;
  }

  .cg-size {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .cg-size .cg-verdict {
    grid-column: 2;
    justify-self: start;
  }

  .cg-kit,
  .cg-contact {
    grid-template-columns: 1fr;
  }

  .cg-hero::after {
    display: none;
  }

  .cg-cards {
    height: 250px;
  }

  .cg-bcard {
    width: 240px;
    height: 138px;
    padding: 16px 18px;
  }

  .cg-bcard--front .cg-logo {
    width: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cg-button {
    transition: none;
  }
}

@media (max-width: 600px) {
  .cg-specs--stack {
    grid-template-columns: 1fr;
  }

  .cg-specs--stack .cg-spec:nth-child(n) {
    border-right: 0;
    border-bottom: 1px solid var(--cg-line);
  }

  .cg-specs--stack .cg-spec:last-child {
    border-bottom: 0;
  }
}
