/*
Theme Name: Chemin de Fleurs Clean
Theme URI: https://chemindefleurs.fr/
Update URI: https://chemindefleurs.fr/theme-chemin-de-fleurs-clean
Author: Chemin de Fleurs
Description: Thème Gutenberg premium reconstruit proprement pour Chemin de Fleurs.
Version: 2.0.4
Requires at least: 6.8
Requires PHP: 8.0
Text Domain: chemin-de-fleurs-clean
*/

:root {
  --cdf-blush: #f7e3e7;
  --cdf-cream: #fffaf5;
  --cdf-paper: #fffdfb;
  --cdf-ink: #2c2927;
  --cdf-wine: #704250;
  --cdf-moss: #596342;
  --cdf-gold: #b79a5c;
  --cdf-line: rgba(112, 66, 80, .2);
  --cdf-shadow: 0 22px 60px rgba(74, 48, 55, .12);
  --cdf-shadow-soft: 0 10px 32px rgba(74, 48, 55, .09);
  --cdf-radius: 24px;
  --cdf-serif: Georgia, 'Times New Roman', serif;
  --cdf-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--cdf-paper);
  color: var(--cdf-ink);
  font-family: var(--cdf-serif);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::before {
  background: linear-gradient(90deg, var(--cdf-wine), var(--cdf-gold), var(--cdf-moss));
  content: '';
  display: block;
  height: 4px;
  position: relative;
  z-index: 1001;
}
a { text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(183, 154, 92, .55);
  outline-offset: 3px;
}

.cdf-header {
  backdrop-filter: blur(14px);
  background: rgba(247, 227, 231, .95);
  border-bottom: 1px solid rgba(112, 66, 80, .22);
  box-shadow: 0 8px 28px rgba(73, 43, 52, .07);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.admin-bar .cdf-header { top: 32px; }
.cdf-header-inner {
  min-height: 132px;
  padding: 20px clamp(20px, 3.5vw, 48px);
}
.cdf-header-logo { margin: 0; }
.cdf-header-logo img {
  display: block;
  height: auto;
  max-width: 285px;
  transition: transform .25s ease;
  width: 100%;
}
.cdf-header-logo a:hover img { transform: translateY(-2px); }
.cdf-header .wp-block-navigation {
  font-family: var(--cdf-sans);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .035em;
  line-height: 1.35;
}
.cdf-header .wp-block-navigation__container { gap: 12px 26px; }
.cdf-header .wp-block-navigation-item__content {
  color: var(--cdf-ink);
  padding: 8px 0;
  position: relative;
  text-decoration: none;
}
.cdf-header .wp-block-navigation-item__content::after {
  background: var(--cdf-wine);
  bottom: 2px;
  content: '';
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
  width: 100%;
}
.cdf-header .wp-block-navigation-item__content:hover::after,
.cdf-header .wp-block-navigation-item__content:focus::after,
.cdf-header .current-menu-item .wp-block-navigation-item__content::after {
  transform: scaleX(1);
  transform-origin: left;
}

.cdf-page-title {
  background:
    radial-gradient(circle at 12% 30%, rgba(183, 154, 92, .18) 0 3px, transparent 4px),
    radial-gradient(circle at 88% 68%, rgba(89, 99, 66, .14) 0 5px, transparent 6px),
    linear-gradient(135deg, #fff9f7 0%, var(--cdf-blush) 52%, #f3ebe1 100%);
  border-bottom: 1px solid var(--cdf-line);
  overflow: hidden;
  padding: clamp(54px, 7vw, 92px) 20px clamp(48px, 6vw, 76px);
  position: relative;
}
.cdf-page-title::before, .cdf-page-title::after {
  border: 1px solid rgba(112, 66, 80, .12);
  border-radius: 50%;
  content: '';
  height: 260px;
  position: absolute;
  width: 260px;
}
.cdf-page-title::before { left: -150px; top: -150px; }
.cdf-page-title::after { bottom: -190px; right: -110px; }
.cdf-page-title h1 {
  color: var(--cdf-wine);
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -.025em;
  margin: 0 auto;
  max-width: 900px;
  position: relative;
}
.cdf-page-title h1::after {
  background: linear-gradient(90deg, transparent, var(--cdf-gold), transparent);
  content: '';
  display: block;
  height: 1px;
  margin: 26px auto 0;
  width: min(180px, 40vw);
}

.cdf-main { padding: clamp(52px, 7vw, 92px) clamp(20px, 4vw, 48px) clamp(72px, 9vw, 118px); }
.cdf-main > .wp-block-post-content > * + * { margin-block-start: 1.35em; }
.cdf-main p, .cdf-main li { line-height: 1.78; overflow-wrap: anywhere; }
.cdf-main h2 {
  color: var(--cdf-wine);
  font-size: clamp(30px, 3.2vw, 43px);
  letter-spacing: -.015em;
  margin-top: 1.7em;
}
.cdf-main h3 { color: var(--cdf-moss); font-size: clamp(24px, 2.3vw, 31px); }
.cdf-main hr {
  background: linear-gradient(90deg, transparent, var(--cdf-gold), transparent);
  border: 0;
  height: 1px;
  margin-block: 42px;
}
.cdf-main blockquote {
  background: var(--cdf-cream);
  border-left: 4px solid var(--cdf-gold);
  border-radius: 0 18px 18px 0;
  box-shadow: var(--cdf-shadow-soft);
  margin: 40px 0;
  padding: 28px 32px;
}
.cdf-main ul, .cdf-main ol { padding-left: 1.35em; }
.cdf-main li::marker { color: var(--cdf-wine); font-weight: 700; }
.cdf-main .wp-block-image { margin-block: 38px; }
.cdf-main .wp-block-image img {
  border-radius: 20px;
  box-shadow: var(--cdf-shadow-soft);
  height: auto;
  max-width: 100%;
}
.cdf-main figcaption {
  color: #6c625e;
  font-family: var(--cdf-sans);
  font-size: 14px;
  margin-top: 12px;
}
.cdf-main .wp-block-button__link, input[type='submit'] {
  background: var(--cdf-wine);
  border: 1px solid var(--cdf-wine);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(112, 66, 80, .2);
  color: #fff;
  cursor: pointer;
  font-family: var(--cdf-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .025em;
  padding: 14px 25px;
  text-decoration: none;
  transition: background .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease;
}
.cdf-main .wp-block-button__link:hover, input[type='submit']:hover {
  background: var(--cdf-paper);
  box-shadow: 0 10px 28px rgba(112, 66, 80, .24);
  color: var(--cdf-wine);
  transform: translateY(-2px);
}

.home .cdf-main {
  background:
    radial-gradient(circle at 92% 12%, rgba(247, 227, 231, .8), transparent 26%),
    linear-gradient(180deg, #fffdfb, #fffaf6);
}
.home .cdf-main > .wp-block-post-content { max-width: 1180px; }
.home .cdf-main .wp-block-columns { gap: clamp(40px, 6vw, 78px); }
.home .cdf-main .wp-block-column:last-child {
  align-self: flex-start;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--cdf-line);
  border-radius: var(--cdf-radius);
  box-shadow: var(--cdf-shadow);
  padding: clamp(22px, 3vw, 34px);
}
.home .cdf-main .wp-block-column:last-child .wp-block-image { margin-top: 0; }
.home .cdf-main h1 {
  color: var(--cdf-wine);
  font-size: clamp(43px, 5.1vw, 70px) !important;
  letter-spacing: -.035em;
  line-height: 1.06;
  max-width: 800px;
}
.home .cdf-main .has-large-font-size {
  color: var(--cdf-moss);
  font-size: clamp(25px, 2.8vw, 34px) !important;
  line-height: 1.5;
}
.home .cdf-main .wp-block-column:last-child h2 {
  font-size: clamp(27px, 2.5vw, 34px);
  margin-top: 24px;
}

.cdf-post-hero {
  background: linear-gradient(135deg, var(--cdf-wine), var(--cdf-ink));
  color: #fff;
  overflow: hidden;
  padding: clamp(72px, 10vw, 126px) 20px;
  position: relative;
}
.cdf-post-hero::after {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  content: '';
  height: 420px;
  position: absolute;
  right: -160px;
  top: -240px;
  width: 420px;
}
.cdf-post-hero h1 { font-size: clamp(42px, 6vw, 72px); letter-spacing: -.035em; max-width: 950px; }
.cdf-post-hero .wp-block-post-date {
  color: #f2dfe4;
  font-family: var(--cdf-sans);
  font-size: 14px;
  letter-spacing: .12em;
  margin-top: 20px;
  text-transform: uppercase;
}

.cdf-blog-card {
  background: #fff;
  border: 1px solid var(--cdf-line);
  border-radius: var(--cdf-radius);
  box-shadow: var(--cdf-shadow-soft);
  margin-inline: auto;
  max-width: 720px;
  padding: clamp(28px, 5vw, 52px);
  transition: box-shadow .25s ease, transform .25s ease;
}
.cdf-blog-card:hover { box-shadow: var(--cdf-shadow); transform: translateY(-4px); }
.cdf-blog-card .wp-block-post-date {
  color: var(--cdf-moss);
  font-family: var(--cdf-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.cdf-blog-card .wp-block-post-title a { color: var(--cdf-wine); text-decoration: none; }

input:not([type='submit']), textarea, select {
  background: #fff;
  border: 1px solid rgba(112, 66, 80, .28);
  border-radius: 12px;
  box-sizing: border-box;
  color: var(--cdf-ink);
  font: inherit;
  padding: 13px 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}
input:not([type='submit']):focus, textarea:focus, select:focus {
  border-color: var(--cdf-wine);
  box-shadow: 0 0 0 4px rgba(112, 66, 80, .1);
}
.wpcf7 {
  background: var(--cdf-cream);
  border: 1px solid var(--cdf-line);
  border-radius: var(--cdf-radius);
  padding: clamp(24px, 4vw, 42px);
}
.wpcf7 label { color: var(--cdf-wine); font-family: var(--cdf-sans); font-size: 14px; font-weight: 700; }
.wpcf7-spinner { vertical-align: middle; }

.cdf-footer {
  background:
    radial-gradient(circle at 85% 0, rgba(183,154,92,.13), transparent 28%),
    linear-gradient(145deg, #f8e6e9, #f4dddf 55%, #f1e7dc);
  border-top: 1px solid rgba(112, 66, 80, .22);
  color: var(--cdf-ink);
  padding: clamp(54px, 7vw, 82px) clamp(20px, 4vw, 48px) 24px;
}
.cdf-footer-grid { align-items: flex-start; gap: clamp(32px, 6vw, 76px); }
.cdf-footer-brand img { max-width: 245px; }
.cdf-footer-kicker {
  color: var(--cdf-wine);
  font-family: var(--cdf-sans);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.cdf-footer h2 { color: var(--cdf-wine); font-size: 22px; margin: 0 0 16px; }
.cdf-footer p { font-size: 16px; line-height: 1.65; }
.cdf-footer .wp-block-navigation { font-family: var(--cdf-sans); font-size: 14px; }
.cdf-footer .wp-block-navigation__container { align-items: flex-start; gap: 10px; }
.cdf-footer .wp-block-navigation-item__content { text-decoration: none; }
.cdf-footer .wp-block-navigation-item__content:hover { color: var(--cdf-wine); text-decoration: underline; }
.cdf-footer .wp-block-button__link {
  background: var(--cdf-wine);
  border-radius: 999px;
  color: #fff;
  font-family: var(--cdf-sans);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 20px;
  text-decoration: none;
}
.cdf-footer-bottom {
  border-top: 1px solid rgba(112, 66, 80, .19);
  font-family: var(--cdf-sans);
  margin-top: 42px;
  padding-top: 20px;
}
.cdf-footer-bottom p { font-size: 12px; letter-spacing: .025em; margin: 0; }

@media (max-width: 900px) {
  .cdf-header { backdrop-filter: none; }
  .cdf-header-inner { min-height: 105px; }
  .cdf-header-logo img { max-width: 225px; }
  .cdf-header .wp-block-navigation__responsive-container-open {
    background: rgba(255,255,255,.52);
    border: 1px solid rgba(112,66,80,.22);
    border-radius: 999px;
    padding: 10px;
  }
  .cdf-header .wp-block-navigation__responsive-container.is-menu-open {
    background: var(--cdf-blush);
    box-sizing: border-box;
    height: 100dvh;
    inset: 0;
    max-height: none;
    overflow-y: auto;
    padding: 56px 24px 36px;
    position: fixed;
    width: 100vw;
  }
  .admin-bar .cdf-header .wp-block-navigation__responsive-container.is-menu-open {
    height: calc(100dvh - 46px);
    top: 46px;
  }
  .cdf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { font-size: 20px; gap: 10px; }
  .cdf-footer-grid { flex-wrap: wrap !important; }
  .cdf-footer-grid > .wp-block-column { flex-basis: calc(50% - 24px) !important; }
  .cdf-footer-grid > .wp-block-column:first-child { flex-basis: 100% !important; }
}

@media (max-width: 781px) {
  body::before { height: 3px; }
  .admin-bar .cdf-header { top: 46px; }
  .cdf-header-inner { min-height: 82px; padding: 12px 16px; }
  .cdf-header-logo img { max-width: 205px; }
  .cdf-page-title { padding: 48px 18px 42px; }
  .cdf-page-title h1 { font-size: clamp(34px, 10vw, 48px); }
  .cdf-main { padding: 46px 18px 72px; }
  .home .cdf-main .wp-block-columns { gap: 46px; }
  .home .cdf-main h1 { font-size: clamp(39px, 11.7vw, 54px) !important; }
  .home .cdf-main .wp-block-column:last-child { padding: 22px; }
  .cdf-main .wp-block-image { margin-block: 30px; }
  .cdf-main .wp-block-image img { border-radius: 16px; }
  .cdf-footer { padding: 46px 18px 22px; }
  .cdf-footer-grid { flex-direction: column; gap: 30px; }
  .cdf-footer-grid > .wp-block-column { flex-basis: 100% !important; width: 100%; }
  .cdf-footer-brand img { max-width: 215px; }
  .cdf-footer-bottom { align-items: flex-start !important; flex-direction: column; gap: 12px; }
}

@media (max-width: 430px) {
  .cdf-header-logo img { max-width: 175px; }
  .cdf-header-inner > .wp-block-column:first-child { flex-basis: 180px !important; }
  .cdf-main { padding-inline: 16px; }
  .cdf-page-title h1 { font-size: 35px; }
  .cdf-main p, .cdf-main li { line-height: 1.7; }
  .wpcf7 { padding: 20px 16px; }
}

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