/* Variables CSS + Reset — Tony Noël Portfolio */

:root {
  --color-bg:           #1a1a1f;
  --color-bg-alt:       #242428;
  --color-bg-card:      #2e2e33;
  --color-text:         #e8e6e1;
  --color-text-heading: #f0eeea;
  --color-text-muted:   #8a8885;
  --color-text-ghost:   rgba(232, 230, 225, 0.15);
  --color-border:       rgba(232, 230, 225, 0.06);
  --color-border-hover: rgba(232, 230, 225, 0.15);

  /* Écrase les variables heading de Blocksy */
  --theme-heading-color:   #f0eeea;
  --theme-heading-2-color: #f0eeea;
  --theme-heading-3-color: #f0eeea;
  --theme-heading-4-color: #f0eeea;
  --theme-heading-5-color: #f0eeea;
  --theme-heading-6-color: #f0eeea;
  --theme-headings-color:  #f0eeea;
  --theme-link-initial-color: #e8e6e1;
  --theme-link-hover-color:   #ffffff;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-ui:      'Inter', sans-serif;

  --section-padding: 140px;
  --transition-fast: 200ms ease;
  --transition-base: 300ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* cursor: none activé uniquement quand le cursor custom est prêt */
body.has-custom-cursor {
  cursor: none;
}

body.has-custom-cursor a,
body.has-custom-cursor button {
  cursor: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

h1, h2, h3, h4 {
  color: var(--color-text-heading);
}

/* Titres de section — toujours sous le hero en hiérarchie */
.section-title {
  font-size: clamp(36px, 3.5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--color-text-heading) !important;
}

/* Neutralise la couleur de lien Blocksy dans les sections custom */
.portfolio a,
.about a,
.contact a {
  color: inherit;
  text-decoration: none;
}

/* Effet miroir */
.mirror-title {
  display: flex;
  flex-direction: column;
}

.mirror-title__text {
  display: block;
}

.mirror-title__reflect {
  display: block;
  transform: rotate(180deg);
  opacity: 0.08;
  color: var(--color-text);
  line-height: 0.9;
  pointer-events: none;
  user-select: none;
}

/* Surcharge wrappers Blocksy — forcer fond sombre sur tout le site */
#page,
#content,
#main,
.site,
.site-content,
.site-main,
.ct-container,
.ct-main-content-area,
.entry-content,
.wp-site-blocks {
  background-color: var(--color-bg) !important;
  color: var(--color-text);
}

/* Fond sombre sur les pages single-projet */
.single-projet-template #page,
.single-projet-template .site-content,
.single-projet-template .ct-main-content-area,
body.single-projet #page,
body.single-projet .site-content,
body.single-projet .ct-main-content-area,
body.single-type-projet #page,
body.single-type-projet .site-content,
body.single-type-projet .ct-main-content-area {
  background-color: var(--color-bg) !important;
}

/* Sections */
section {
  padding-block: var(--section-padding);
  background-color: var(--color-bg);
  color: var(--color-text);
}

