/* ==========================================================================
   02-global.css - Base styles
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--t-font-body);
  font-size: var(--t-font-size-base);
  line-height: var(--t-line-height);
  color: var(--t-text);
  background-color: var(--t-bg);
  -webkit-font-smoothing: antialiased;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--t-font-heading);
  line-height: var(--t-line-height-tight);
  color: var(--t-text);
  margin-top: 0;
  margin-bottom: var(--t-space-4);
}

h1 { font-size: var(--t-font-size-3xl); font-weight: 800; }
h2 { font-size: var(--t-font-size-2xl); font-weight: 700; }
h3 { font-size: var(--t-font-size-xl);  font-weight: 600; }
h4 { font-size: var(--t-font-size-lg);  font-weight: 600; }
h5 { font-size: var(--t-font-size-md);  font-weight: 600; }
h6 { font-size: var(--t-font-size-base);font-weight: 600; }

/* Liens */
a {
  color: var(--t-primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--t-transition-fast);
}
a:hover { color: var(--t-primary-darker); }

/* Paragraphes */
p { margin-top: 0; margin-bottom: var(--t-space-4); }
p:last-child { margin-bottom: 0; }

/* Images */
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Listes */
ul, ol { margin-top: 0; padding-left: var(--t-space-6); }
li { margin-bottom: var(--t-space-2); }

/* Sélection */
::selection {
  background-color: var(--t-primary-light);
  color: var(--t-primary-dark);
}

/* Focus */
:focus-visible {
  outline: 3px solid var(--t-primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Hr */
hr {
  border: none;
  border-top: 1px solid var(--t-border);
  margin: var(--t-space-8) 0;
}

/* Conteneur principal */
.tinderet-container {
  width: 100%;
  max-width: var(--t-max-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--t-gutter);
  padding-right: var(--t-gutter);
}

.tinderet-container--narrow {
  max-width: var(--t-max-content);
}

.tinderet-container--full {
  max-width: var(--t-max-full);
}

/* Section générique */
.tinderet-section {
  padding-top: var(--t-section-gap);
  padding-bottom: var(--t-section-gap);
}

.tinderet-section--bg-light { background-color: var(--t-bg); }
.tinderet-section--bg-white { background-color: var(--t-white); }
.tinderet-section--bg-primary { background-color: var(--t-primary); color: var(--t-white); }
.tinderet-section--bg-secondary { background-color: var(--t-secondary); color: var(--t-white); }
.tinderet-section--bg-ice { background-color: var(--t-primary-light); }
.tinderet-section--bg-forest { background-color: var(--t-secondary-light); }
.tinderet-section--bg-beige { background-color: var(--t-accent-light); }

/* En-tête de section */
.tinderet-section-header {
  text-align: center;
  margin-bottom: var(--t-space-12);
}

.tinderet-section-header__eyebrow {
  display: inline-block;
  font-family: var(--t-font-heading);
  font-size: var(--t-font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--t-primary-dark);
  margin-bottom: var(--t-space-3);
}

.tinderet-section--bg-primary .tinderet-section-header__eyebrow,
.tinderet-section--bg-secondary .tinderet-section-header__eyebrow {
  color: rgba(255,255,255,0.75);
}

.tinderet-section-header__title {
  margin-bottom: var(--t-space-4);
}

.tinderet-section-header__subtitle {
  font-size: var(--t-font-size-md);
  color: var(--t-text-light);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.tinderet-section--bg-primary .tinderet-section-header__subtitle,
.tinderet-section--bg-secondary .tinderet-section-header__subtitle {
  color: rgba(255,255,255,0.85);
}

/* Grilles */
.tinderet-grid {
  display: grid;
  gap: var(--t-space-6);
}
.tinderet-grid--2 { grid-template-columns: repeat(2, 1fr); }
.tinderet-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tinderet-grid--4 { grid-template-columns: repeat(4, 1fr); }
.tinderet-grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

@media (max-width: 900px) {
  .tinderet-grid--3,
  .tinderet-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tinderet-grid--2,
  .tinderet-grid--3,
  .tinderet-grid--4 { grid-template-columns: 1fr; }
}

/* Image caption */
.wp-element-caption {
  padding: 0rem 0.75rem;
  font-size: 0.75rem;
  color: var(--t-text);
  opacity: 0.55;
  text-align: center;
}