/* ============================================
   BASE — Reset, typographie, utilitaires
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--rev-font-body);
  font-size: var(--rev-body-size);
  line-height: var(--rev-body-line-height);
  color: var(--rev-body-color);
  background-color: var(--rev-blanc);
  -webkit-font-smoothing: antialiased;
}

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

a,
a:visited,
a:focus,
a:active {
  color: var(--rev-vert-clair);
  text-decoration: none;
  transition: color var(--rev-transition);
}

a:hover { color: var(--rev-vert-fonce); }

ul, ol { list-style: none; }

/* ---- Headings ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--rev-font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--rev-text);
}

h1 { font-size: var(--rev-h1); }
h2 { font-size: var(--rev-h2); }
h3 { font-size: var(--rev-h3); }
h4 { font-size: 18px; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ---- Layout ---- */
.rev-container {
  width: 100%;
  max-width: var(--rev-container);
  margin-inline: auto;
  padding-inline: 20px;
}

.rev-section {
  padding-block: var(--rev-space-lg);
}

.rev-section--dark {
  background-color: var(--rev-noir);
  color: rgba(255,255,255,0.85);
}
.rev-section--dark h2,
.rev-section--dark h3 { color: var(--rev-blanc); }

.rev-section--green {
  background-color: var(--rev-vert-fonce);
  color: var(--rev-blanc);
}

.rev-section--gray {
  background-color: var(--rev-gris-clair);
}

/* ---- Grilles ---- */
.rev-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--rev-space-sm);
}

.rev-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--rev-space-sm);
}

.rev-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--rev-space-sm);
}

/* ---- Utilitaires texte ---- */
.rev-text-center   { text-align: center; }
.rev-text-accent   { color: var(--rev-accent); }
.rev-text-vert     { color: var(--rev-vert-clair); }
.rev-text-light    { color: var(--rev-text-light); }
.rev-text-white    { color: var(--rev-blanc); }

/* ---- Section heading ---- */
.rev-section-heading {
  text-align: center;
  margin-bottom: var(--rev-space-md);
}
.rev-section-heading h2 {
  font-family: 'Raleway', system-ui, sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: var(--rev-text);
  margin-bottom: var(--rev-space-xs);
}
.rev-section-heading .rev-subtitle {
  font-size: 16px;
  color: var(--rev-text-light);
  max-width: 640px;
  margin-inline: auto;
  line-height: var(--rev-body-line-height);
}

/* ---- Séparateur ---- */
.rev-sep,
.rev-separator {
  width: 40px;
  height: 3px;
  background: #c9a84c;
  margin: 10px auto 30px;
  border: none;
  border-radius: 2px;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--rev-vert-fonce);
  color: var(--rev-blanc);
  padding: 8px 16px;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ---- Visually hidden ---- */
.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;
}

/* ---- Breadcrumb ---- */
.rev-breadcrumb {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}
.rev-breadcrumb a { color: rgba(255,255,255,0.7); }
.rev-breadcrumb a:hover { color: var(--rev-blanc); }
.rev-breadcrumb span + span::before {
  content: ' › ';
  margin-inline: 4px;
}

/* ---- Alt blocks (texte/image alternés) ---- */
.rev-alt-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--rev-space-md);
  align-items: center;
  margin-bottom: var(--rev-space-lg);
}
.rev-alt-block:last-child { margin-bottom: 0; }

.rev-alt-block__img {
  border-radius: var(--rev-radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.rev-alt-block__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rev-alt-block__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.rev-alt-block__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rev-vert-clair);
}

/* ---- Stats ---- */
.rev-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--rev-space-sm);
}
.rev-stat {
  text-align: center;
  padding: var(--rev-space-sm);
  background: var(--rev-gris-clair);
  border-radius: var(--rev-radius);
}
.rev-stat__number {
  font-family: var(--rev-font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--rev-vert-clair);
  line-height: 1;
}
.rev-stat__label {
  font-size: 13px;
  color: var(--rev-text-light);
  margin-top: 0.25rem;
}

/* ---- Tags ---- */
.rev-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rev-tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--rev-gris-clair);
  border: 1px solid var(--rev-gris-moyen);
  border-radius: 999px;
  font-size: 13px;
  color: var(--rev-text);
}

/* ---- Article content ---- */
.rev-article__content {
  font-size: 15px;
  line-height: 1.8;
}
.rev-article__content h2 { margin-top: 2rem; margin-bottom: 1rem; }
.rev-article__content h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.rev-article__content ul,
.rev-article__content ol { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.rev-article__content ol  { list-style: decimal; }
.rev-article__content blockquote {
  border-left: 4px solid var(--rev-vert-clair);
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: var(--rev-text-light);
}

/* ---- Author box ---- */
.rev-author-box {
  display: flex;
  gap: 1rem;
  background: var(--rev-gris-clair);
  border-radius: var(--rev-radius-lg);
  padding: var(--rev-space-sm);
  margin-top: var(--rev-space-md);
}
.rev-author-box__avatar { flex-shrink: 0; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; }
.rev-author-box__avatar img { width: 100%; height: 100%; object-fit: cover; }
.rev-author-box__name  { font-weight: 700; margin-bottom: 0.25rem; }
.rev-author-box__bio   { font-size: 13px; color: var(--rev-text-light); margin: 0; }

/* ---- Pagination ---- */
.rev-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: var(--rev-space-md);
}
.rev-pagination a,
.rev-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--rev-gris-moyen);
  border-radius: var(--rev-radius);
  font-size: 14px;
  color: var(--rev-text);
  transition: background-color var(--rev-transition), border-color var(--rev-transition), color var(--rev-transition);
}
.rev-pagination a:hover  { background-color: var(--rev-vert-clair); border-color: var(--rev-vert-clair); color: var(--rev-blanc); }
.rev-pagination .current { background-color: var(--rev-vert-clair); border-color: var(--rev-vert-clair); color: var(--rev-blanc); }

/* ---- 404 ---- */
.rev-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: var(--rev-space-xl);
}
.rev-404__code  { font-size: clamp(5rem, 15vw, 10rem); font-weight: 700; line-height: 1; color: var(--rev-vert-clair); opacity: 0.2; }
.rev-404__title { font-size: var(--rev-h2); margin-bottom: 1rem; }
.rev-404__text  { color: var(--rev-text-light); margin-bottom: var(--rev-space-md); }

/* ---- Process ---- */
.rev-process { display: flex; flex-direction: column; gap: var(--rev-space-sm); }
.rev-process__step { display: flex; gap: 1rem; align-items: flex-start; }
.rev-process__num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--rev-vert-clair);
  color: var(--rev-blanc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--rev-font-heading);
}
.rev-process__body h3 { margin-bottom: 0.375rem; }
.rev-process__body p  { font-size: 14px; color: var(--rev-text-light); margin: 0; }
