/* ============================================
   INSTITUT DÉESSE - Base Styles
   ============================================ */

/* === RESET === */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
}

/* === IMAGES === */

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  object-fit: cover;
}

.responsive-picture {
  display: contents;
}

/* === LIENS === */

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-gold);
}

/* === LISTES === */

ul,
ol {
  list-style: none;
}

/* === BOUTONS === */

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* === INPUTS === */

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* === FOCUS VISIBLE === */

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* === SÉLECTION === */

::selection {
  background-color: var(--color-gold);
  color: var(--color-bg-primary);
}

/* === SCROLLBAR === */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-tertiary);
}

/* === CONTAINER === */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 767px) {
  .container {
    padding: 0 var(--space-5);
  }
}

/* === SECTIONS === */

.section {
  padding: var(--space-24) 0;
}

.section--alt {
  background-color: var(--color-bg-secondary);
}

@media (max-width: 767px) {
  .section {
    padding: var(--space-16) 0;
  }
}

/* === TITRES === */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-normal);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
}

.h1 {
  font-size: var(--text-4xl);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.h2 {
  font-size: var(--text-3xl);
  letter-spacing: var(--tracking-wide);
}

.h3 {
  font-size: var(--text-xl);
}

@media (max-width: 767px) {
  .h1 {
    font-size: var(--text-2xl);
  }

  .h2 {
    font-size: 1.75rem;
  }

  .h3 {
    font-size: var(--text-lg);
  }
}

/* === TEXTES === */

.text-gold {
  color: var(--color-gold);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-tertiary {
  color: var(--color-text-tertiary);
}

.text-center {
  text-align: center;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* === UTILITAIRES === */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .hide-desktop {
    display: none !important;
  }
}
