/*
Theme Name: Flore Power
Theme URI: https://florepower.com/
Author: Flore Cuny
Description: Thème sur mesure Flore Power, issu de la nouvelle identité visuelle et de la maquette d'accueil validée.
Version: 1.0.5
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: flore-power
*/

:root {
  --fp-ivory: #f5f0e8;
  --fp-plum: #332438;
  --fp-gold: #b99a62;
  --fp-sand: #e7dac9;
  --fp-muted: #65565f;
  --fp-line: #ded2c4;
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fp-ivory); }
body.admin-bar #flore-home { min-height: calc(100vh - 32px); }

#flore-home {
  width: 100%;
  min-height: 100vh;
  text-align: left;
  color: var(--fp-plum);
  background: var(--fp-ivory);
  font-family: Manrope, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.65;
}

#flore-home * { box-sizing: border-box; }
#flore-home img { display: block; max-width: 100%; height: auto; }
#flore-home article { margin: 0; }
#flore-home a { color: inherit; text-decoration: none; box-shadow: none; }
#flore-home summary { cursor: pointer; }
#flore-home h1,
#flore-home h2,
#flore-home h3,
#flore-home p { margin-top: 0; }
#flore-home h1,
#flore-home h2,
#flore-home h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  line-height: 1.05;
}

#flore-home .wrap,
#flore-home .content-wrap { padding-left: 6%; padding-right: 6%; }
#flore-home .site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 6%;
  border-bottom: 1px solid var(--fp-line);
}
#flore-home .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 29px;
  line-height: 1.1;
  white-space: nowrap;
}
#flore-home .brand-logo { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 50%; object-fit: cover; }
#flore-home .brand-copy { display: block; }
#flore-home .brand small {
  display: block;
  font-family: Manrope, sans-serif;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
#flore-home .custom-logo-link img { width: auto; max-height: 62px; }
#flore-home .primary-navigation ul,
#flore-home .footer-navigation ul {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
#flore-home .primary-navigation { font-size: 14px; }
#flore-home .menu-toggle { display: none; padding: 8px 13px; border: 1px solid var(--fp-plum); border-radius: 0; color: var(--fp-plum); background: transparent; font: 500 14px/1 Manrope, Arial, sans-serif; cursor: pointer; }
#flore-home .action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 13px 21px;
  background: var(--fp-plum);
  color: var(--fp-ivory);
  font-size: 14px;
  border: 1px solid var(--fp-plum);
}
#flore-home .outline { background: transparent; color: var(--fp-plum); }
#flore-home .eyebrow {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 21px;
  color: #725963;
}
#flore-home .hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
  padding-top: 52px;
  padding-bottom: 52px;
}
#flore-home h1 { font-size: clamp(42px, 6vw, 68px); letter-spacing: -1px; }
#flore-home em { color: #866b87; font-weight: 400; }
#flore-home .intro { max-width: 450px; margin: 25px 0; color: var(--fp-muted); }
#flore-home .buttons { display: flex; gap: 12px; flex-wrap: wrap; }
#flore-home .back-button { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 22px; padding: 0 0 4px; border: 0; border-bottom: 1px solid var(--fp-gold); background: transparent; color: var(--fp-plum); font: 500 14px/1.4 Manrope, Arial, sans-serif; cursor: pointer; }
#flore-home .portrait { position: relative; padding: 0 16px 18px 0; }
#flore-home .portrait::before {
  content: "";
  position: absolute;
  inset: 18px 0 0 18px;
  border: 1px solid var(--fp-gold);
  border-radius: 180px 180px 0 0;
}
#flore-home .portrait img {
  position: relative;
  width: 100%;
  height: 425px;
  object-fit: cover;
  border-radius: 180px 180px 0 0;
}
#flore-home .signature {
  position: absolute;
  bottom: 38px;
  left: -22px;
  background: var(--fp-ivory);
  padding: 14px 22px;
  font-family: "Cormorant Garamond", serif;
  font-size: 23px;
  box-shadow: 0 6px 25px #33243813;
}
#flore-home .ribbon {
  padding: 20px;
  text-align: center;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 14px;
  border-block: 1px solid var(--fp-line);
}
#flore-home section { padding-top: 52px; padding-bottom: 52px; }
#flore-home h2 { font-size: 42px; }
#flore-home .section-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 30px;
}
#flore-home .section-top p { max-width: 330px; color: var(--fp-muted); font-size: 15px; }
#flore-home .paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 23px; }
#flore-home .path { padding: 27px 0; border-top: 1px solid var(--fp-gold); }
#flore-home .number { font-family: "Cormorant Garamond", serif; font-size: 28px; color: #8b6b45; }
#flore-home h3 { font-size: 29px; margin: 15px 0; }
#flore-home .path p { font-size: 15px; color: var(--fp-muted); min-height: 72px; }
#flore-home .textlink {
  display: inline-block;
  font-size: 14px;
  margin-top: 20px;
  border-bottom: 1px solid var(--fp-gold);
  padding-bottom: 5px;
}
#flore-home .game {
  background: var(--fp-plum);
  color: var(--fp-ivory);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
#flore-home .game h2 { color: var(--fp-ivory); }
#flore-home .game .eyebrow { color: #d8c6ad; }
#flore-home .game p { margin: 24px 0; color: #e0d5df; font-size: 15px; }
#flore-home .game em { color: #d6b8d0; }
#flore-home .game .action { background: var(--fp-ivory); color: var(--fp-plum); border-color: var(--fp-ivory); }
#flore-home .board {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  max-width: 340px;
  justify-self: center;
  object-fit: cover;
  object-position: 50% 24%;
  border-radius: 50%;
  box-shadow: 0 20px 40px #160d2040;
  border: 12px solid #c3a682;
}
#flore-home .caption { text-align: center; font-size: 14px; color: #d8c6ad; margin-top: 24px; }
#flore-home .oracle-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 23px;
  margin-top: 30px;
}
#flore-home .oracle-card { display: flex; flex-direction: column; }
#flore-home .oracle-card h3 { font-size: 25px; }
#flore-home .book {
  height: 235px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8dfd4;
  padding: 20px;
  overflow: hidden;
}
#flore-home .book img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
#flore-home .oracle-card > a:first-child:hover img { transform: scale(1.025); }
#flore-home .soon {
  display: inline-block;
  align-self: flex-start;
  margin-top: 10px;
  padding: 5px 10px;
  background: var(--fp-sand);
  color: #624a64;
  font-size: 14px;
}
#flore-home .books-line {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr auto;
  align-items: center;
  gap: 30px;
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--fp-line);
}
#flore-home .books-line .eyebrow { margin-bottom: 10px; }
#flore-home .books-line h3 { font-size: 27px; margin: 0; }
#flore-home .books-line p { color: var(--fp-muted); font-size: 13px; max-width: 470px; }
#flore-home .books-line .action { white-space: nowrap; }
#flore-home .catalog-block { margin-top: 48px; padding-top: 38px; border-top: 1px solid var(--fp-line); }
#flore-home .catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 26px; }
#flore-home .catalog-heading .eyebrow { margin-bottom: 9px; }
#flore-home .catalog-heading h3 { font-size: 31px; margin: 0; }
#flore-home .catalog-heading p { max-width: 470px; color: var(--fp-muted); font-size: 15px; }
#flore-home .feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
#flore-home .feature-card { display: flex; min-width: 0; flex-direction: column; }
#flore-home .feature-image { height: 260px; padding: 20px; background: #e8dfd4; overflow: hidden; }
#flore-home .feature-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
#flore-home .feature-card:hover .feature-image img { transform: scale(1.025); }
#flore-home .feature-card h3 { font-size: 25px; margin: 15px 0 0; }
#flore-home .feature-card .textlink { align-self: flex-start; }
#flore-home .catalog-action { margin-top: 30px; text-align: right; }
#flore-home .bespoke { display: block; border-top: 1px solid var(--fp-gold); border-bottom: 1px solid var(--fp-gold); }
#flore-home .about {
  background: var(--fp-sand);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 45px;
}
#flore-home .about p { color: var(--fp-muted); margin-top: 22px; }
#flore-home .about-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
#flore-home .nous { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: center; border-bottom: 1px solid var(--fp-line); }
#flore-home .nous-image { position: relative; padding: 0 14px 14px 0; }
#flore-home .nous-image::before { content: ""; position: absolute; inset: 14px 0 0 14px; border: 1px solid var(--fp-gold); }
#flore-home .nous-image img { position: relative; width: 100%; height: 390px; object-fit: cover; object-position: center; }
#flore-home .nous-copy { max-width: 590px; }
#flore-home .nous-copy h2 { margin-bottom: 22px; }
#flore-home .nous-copy p { color: var(--fp-muted); margin-top: 14px; }
#flore-home .nous-copy .lead { color: var(--fp-plum); font-family: "Cormorant Garamond", Georgia, serif; font-size: 26px; line-height: 1.25; }
#flore-home .programs { background: var(--fp-plum); color: var(--fp-ivory); border-block: 1px solid var(--fp-plum); }
#flore-home .programs h2, #flore-home .programs h3 { color: var(--fp-ivory); }
#flore-home .programs .eyebrow { color: #d8c6ad; }
#flore-home .programs .section-top p { color: #e0d5df; }
#flore-home .program-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
#flore-home .program-card { display: flex; flex-direction: column; min-height: 255px; padding: 30px; background: #443149; border: 1px solid #725d76; border-radius: 14px; }
#flore-home .program-card:nth-child(2) { background: #3d2b42; }
#flore-home .program-number { font-family: "Cormorant Garamond", serif; font-size: 28px; color: var(--fp-gold); }
#flore-home .program-card h3 { margin: 12px 0 14px; }
#flore-home .program-card p { color: #e0d5df; font-size: 15px; }
#flore-home .program-card .textlink { align-self: flex-start; margin-top: auto; padding-top: 22px; color: var(--fp-ivory); }
#flore-home .programs .catalog-action { text-align: left; }
#flore-home .programs .program-cta { padding: 15px 28px; font-weight: 500; background: var(--fp-ivory); color: var(--fp-plum); border-color: var(--fp-ivory); }
#flore-home .closing { border-bottom: 1px solid var(--fp-line); }
#flore-home .closing-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
#flore-home .closing h3 { font-size: 28px; }
#flore-home .closing p { color: var(--fp-muted); font-size: 15px; }
#flore-home .promo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
#flore-home .promo-card { display: flex; min-width: 0; flex-direction: column; }
#flore-home .promo-image { position: relative; height: 235px; padding: 18px; background: #e8dfd4; overflow: hidden; }
#flore-home .promo-image img { width: 100%; height: 100%; object-fit: cover; }
#flore-home .promo-badge { position: absolute; top: 12px; right: 12px; padding: 5px 9px; background: var(--fp-plum); color: var(--fp-ivory); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
#flore-home .promo-card h3 { font-size: 24px; margin: 14px 0 0; }
#flore-home .collection-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 34px; }
#flore-home .collection-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 92px; padding: 22px 24px; border-top: 1px solid var(--fp-gold); background: #fffdfa; font-family: "Cormorant Garamond", serif; font-size: 23px; line-height: 1.2; }
#flore-home .collection-link::after { content: "↗"; font-family: Manrope, sans-serif; font-size: 16px; }
#flore-home .site-footer {
  padding: 30px 6%;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
  font-size: 14px;
}
#flore-home .footer-social { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
#flore-home .footer-social-title { color: var(--fp-muted); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
#flore-home .footer-social-links { display: flex; gap: 14px; flex-wrap: wrap; }
#flore-home .footer-social-links a { padding-bottom: 2px; border-bottom: 1px solid var(--fp-gold); }
#flore-home .footer-copyright { color: var(--fp-muted); }
#flore-home .resources { padding-top: 38px; padding-bottom: 38px; }
#flore-home #fp-game-detail { padding-bottom: 34px; }
#flore-home #fp-oracles { padding-top: 34px; }
#flore-home details { border-top: 1px solid var(--fp-line); padding: 16px 0; }
#flore-home summary { font-size: 14px; }
#flore-home details p { padding-top: 14px; color: var(--fp-muted); max-width: 650px; }
#flore-home .resource-link {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--fp-line);
  padding: 16px 0;
  font-size: 14px;
}
#flore-home .resource-link::before { content: "\25B8"; font-size: 14px; }
#flore-home a:hover { opacity: .86; }
#flore-home a:focus-visible,
#flore-home summary:focus-visible { outline: 2px solid var(--fp-gold); outline-offset: 4px; }

/* Modèles intérieurs de cette première version. */
#flore-home .content-wrap { max-width: 1120px; margin: 0 auto; padding-top: 70px; padding-bottom: 80px; }
#flore-home .entry-header { max-width: 850px; margin-bottom: 35px; }
#flore-home .entry-title { font-size: clamp(42px, 6vw, 64px); }
#flore-home .entry-meta { color: var(--fp-muted); font-size: 14px; }
#flore-home .entry-content { max-width: 820px; font-size: 16px; }
#flore-home .entry-content a { border-bottom: 1px solid var(--fp-gold); }
#flore-home .entry-content > * + * { margin-top: 1.25em; }
#flore-home .post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
#flore-home .post-card { padding-top: 20px; border-top: 1px solid var(--fp-gold); }
#flore-home .post-card h2 { font-size: 31px; }
#flore-home .pagination { margin-top: 40px; }

/* Base WooCommerce, volontairement légère pour la version 0.1. */
body.woocommerce-page #flore-home .site-main { padding: 60px 6%; }
#flore-home .woocommerce ul.products li.product,
#flore-home .woocommerce-page ul.products li.product { color: var(--fp-plum); }
#flore-home .woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: "Cormorant Garamond", serif; font-size: 25px; }
#flore-home .woocommerce div.product .product_title { font-size: clamp(38px, 5vw, 58px); }
#flore-home .woocommerce .button,
#flore-home .woocommerce button.button,
#flore-home .woocommerce input.button {
  border-radius: 0;
  background: var(--fp-plum);
  color: var(--fp-ivory);
  font-family: Manrope, sans-serif;
  font-weight: 500;
}

@media (max-width: 850px) {
  #flore-home .oracle-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #flore-home .feature-grid, #flore-home .promo-grid, #flore-home .collection-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #flore-home .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body.admin-bar #flore-home { min-height: calc(100vh - 46px); }
  #flore-home .site-header { align-items: flex-start; flex-direction: column; gap: 14px; }
  #flore-home .primary-navigation { width: 100%; }
  #flore-home .menu-toggle { display: inline-flex; }
  #flore-home .menu-panel { display: none; width: 100%; padding-top: 12px; }
  #flore-home .primary-navigation.is-open .menu-panel { display: block; }
  #flore-home .primary-navigation ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0; width: 100%; }
  #flore-home .primary-navigation li { border-top: 1px solid var(--fp-line); }
  #flore-home .primary-navigation li a { display: block; padding: 10px 4px; }
  #flore-home .hero,
  #flore-home .game,
  #flore-home .about,
  #flore-home .nous { grid-template-columns: 1fr; gap: 35px; }
  #flore-home .portrait { max-width: 340px; margin: auto; }
  #flore-home .portrait img { height: 350px; }
  #flore-home .paths { grid-template-columns: 1fr; }
  #flore-home .path p { min-height: 0; }
  #flore-home .section-top,
  #flore-home .closing-heading,
  #flore-home .catalog-heading { align-items: flex-start; flex-direction: column; }
  #flore-home .books-line { grid-template-columns: 1fr; align-items: flex-start; gap: 18px; }
  #flore-home h2 { font-size: 35px; }
  #flore-home .hero { padding-top: 40px; }
  #flore-home section { padding-top: 45px; padding-bottom: 45px; }
  #flore-home .signature { left: 0; }
  #flore-home .nous-image { max-width: 520px; }
  #flore-home .nous-image img { height: auto; aspect-ratio: 4 / 3; }
  #flore-home .program-grid { grid-template-columns: 1fr; }
  #flore-home .ribbon { letter-spacing: 1px; }
  #flore-home .post-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  #flore-home .oracle-row { grid-template-columns: 1fr; }
  #flore-home .feature-grid, #flore-home .promo-grid, #flore-home .collection-links { grid-template-columns: 1fr; }
  #flore-home .book { height: 270px; }
  #flore-home .primary-navigation ul { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #flore-home .book img { transition: none; }
}
