/*
Theme Name: ReyCorks V2 — Éditable
Theme URI: https://reycorks.com
Author: ReyCorks
Description: Thème blocs ReyCorks entièrement modifiable dans l’éditeur de site WordPress.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: reycorks
*/

:root {
  --rc-green: #173d2b;
  --rc-green-2: #285b3e;
  --rc-cork: #b97845;
  --rc-cream: #f4f0e7;
  --rc-paper: #fbfaf6;
  --rc-ink: #1e2923;
  --rc-muted: #637068;
  --rc-line: #d9ddd7;
  --rc-radius: 18px;
}

html { scroll-behavior: smooth; }
body { background: var(--rc-paper); color: var(--rc-ink); }
a { transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.wp-site-blocks { overflow: hidden; }

.rc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(23,61,43,.12);
  background: rgba(251,250,246,.96);
  backdrop-filter: blur(14px);
}
.rc-header-inner { min-height: 82px; }
.rc-brand { text-decoration: none; }
.rc-brand .wp-block-site-title { margin: 0; font-size: 1.25rem; font-weight: 700; }
.rc-brand .wp-block-site-title a { color: var(--rc-green); text-decoration: none; }
.rc-header .wp-block-navigation { font-size: .96rem; font-weight: 600; }
.rc-header .wp-block-navigation-item__content { color: var(--rc-ink); }
.rc-header .wp-block-navigation-item__content:hover { color: var(--rc-cork); }
.rc-nav-cta .wp-block-button__link { padding: .8rem 1.15rem; }

.rc-hero { min-height: 70vh; display: flex; align-items: center; padding-block: clamp(4rem,8vw,7rem); }
.rc-page-hero { padding-block: clamp(4rem,7vw,7rem); background: var(--rc-cream); }
.rc-kicker { margin-bottom: 1rem; color: var(--rc-cork); font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.rc-hero h1, .rc-page-hero h1 { max-width: 920px; margin: 0; line-height: .98; letter-spacing: -.035em; }
.rc-lead { max-width: 780px; color: var(--rc-muted); font-size: clamp(1.08rem,1.5vw,1.25rem); line-height: 1.65; }
.rc-hero-media { position: relative; min-height: 500px; }
.rc-hero-media .wp-block-image:first-child img { width: 86%; height: 440px; object-fit: cover; border-radius: var(--rc-radius); }
.rc-hero-media .wp-block-image:nth-child(2) { position: absolute; right: 0; bottom: 0; width: 43%; }
.rc-hero-media .wp-block-image:nth-child(2) img { width: 100%; height: 210px; object-fit: cover; border: 10px solid var(--rc-paper); border-radius: var(--rc-radius); }

.rc-section { padding-block: clamp(4rem,7vw,7rem); }
.rc-section-cream { background: var(--rc-cream); }
.rc-section-green { background: var(--rc-green); color: white; }
.rc-section-green p { color: rgba(255,255,255,.8); }
.rc-section h2 { line-height: 1.05; letter-spacing: -.025em; }

.rc-card {
  height: 100%;
  padding: clamp(1.5rem,3vw,2.3rem);
  border: 1px solid var(--rc-line);
  border-radius: var(--rc-radius);
  background: white;
  box-shadow: 0 16px 50px rgba(24,47,35,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.rc-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(24,47,35,.1); }
.rc-card h3 { margin-top: .5rem; }
.rc-card p { color: var(--rc-muted); }
.rc-card-dark { border-color: transparent; background: var(--rc-green); color: white; }
.rc-card-dark p { color: rgba(255,255,255,.78); }
.rc-badge { display: inline-block; padding: .35rem .65rem; border-radius: 99px; background: #e9dccd; color: #754421; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.rc-card-link { color: var(--rc-green); font-weight: 700; text-decoration: none; }
.rc-card-dark .rc-card-link { color: white; }

.rc-points { border-top: 1px solid var(--rc-line); }
.rc-point { display: grid; grid-template-columns: minmax(130px,.6fr) 1.4fr; gap: 1.5rem; padding-block: 1.35rem; border-bottom: 1px solid var(--rc-line); }
.rc-point strong { color: var(--rc-green); }
.rc-point p { margin: 0; color: var(--rc-muted); }

.rc-ticker { overflow-x: auto; scrollbar-width: thin; cursor: grab; background: var(--rc-green); color: white; }
.rc-ticker p { min-width: max-content; margin: 0; padding: 1rem 2rem; font-size: .82rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; white-space: nowrap; }
.rc-ticker strong { padding-inline: 1rem; color: #d8ae85; }

.rc-split-image img { width: 100%; min-height: 520px; object-fit: cover; border-radius: var(--rc-radius); }
.rc-split-panel { padding: clamp(2rem,5vw,4.5rem); border-radius: var(--rc-radius); background: var(--rc-green); color: white; }
.rc-split-panel p, .rc-split-panel li { color: rgba(255,255,255,.82); }
.rc-split-panel .wp-block-button__link { background: white; color: var(--rc-green); }

.rc-metrics { gap: 0; }
.rc-metric { min-height: 155px; padding: 1.5rem; border: 1px solid rgba(255,255,255,.2); }
.rc-metric strong { display: block; margin-bottom: .4rem; color: white; font-family: Newsreader, Georgia, serif; font-size: clamp(2.2rem,4vw,4rem); line-height: 1; }
.rc-metric p { margin: 0; font-size: .95rem; }

.rc-cta { padding-block: clamp(4rem,8vw,7rem); background: var(--rc-cork); color: #fff; text-align: center; }
.rc-cta h2 { max-width: 850px; margin-inline: auto; }
.rc-cta p { max-width: 700px; margin-inline: auto; color: rgba(255,255,255,.86); }
.rc-cta .wp-block-buttons { justify-content: center; }
.rc-cta .wp-block-button__link { background: white; color: var(--rc-green); }

.rc-support-mark { min-height: 105px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; border-radius: 12px; background: var(--rc-cream); color: var(--rc-green); font-weight: 700; text-align: center; }
.rc-notice { padding: 1.25rem 1.4rem; border-left: 4px solid var(--rc-cork); background: #fff8ed; }
.rc-footer { padding-block: 3rem; background: #102b1f; color: white; }
.rc-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.rc-footer a:hover { color: white; }

@media (max-width: 900px) {
  .rc-header-inner { min-height: 70px; }
  .rc-hero { min-height: auto; }
  .rc-hero-media { min-height: 390px; margin-top: 2rem; }
  .rc-hero-media .wp-block-image:first-child img { height: 340px; }
  .rc-hero-media .wp-block-image:nth-child(2) img { height: 160px; }
  .rc-point { grid-template-columns: 1fr; gap: .35rem; }
  .rc-split-image img { min-height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
