/*
Theme Name: Mille Fiori
Theme URI: https://example.com/
Author: Mille Fiori
Description: Thème bloc premium pour une exploitation corse et sa boutique WooCommerce.
Version: 1.0.2
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: mille-fiori
*/

:root {
  --encre: #171713;
  --encre-doux: #34342b;
  --papier: #fffdf8;
  --ivoire: #f3eee2;
  --sable: #e5dbc8;
  --miel: #d4a51e;
  --miel-clair: #f0d775;
  --sauge: #66705a;
  --ligne: rgba(23, 23, 19, .16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --gouttiere: clamp(22px, 5vw, 88px);
  --largeur: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--papier); color: var(--encre); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
.conteneur { width: min(100% - (var(--gouttiere) * 2), var(--largeur)); margin-inline: auto; }
.section { padding-block: clamp(84px, 10vw, 164px); }
.eyebrow { color: var(--sauge); font-size: 11px; font-weight: 700; letter-spacing: .22em; line-height: 1.3; text-transform: uppercase; }
.eyebrow--clair { color: var(--miel-clair); }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; line-height: .98; }
h1 { font-size: clamp(54px, 7.2vw, 112px); }
h2 { font-size: clamp(45px, 6vw, 88px); }

.topbar { background: var(--encre); color: var(--ivoire); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.topbar__inner { display: flex; justify-content: space-between; gap: 18px; padding-block: 10px; }
.topbar a { color: var(--miel-clair); }
.entete { position: sticky; top: 0; z-index: 10; background: rgba(255, 253, 248, .94); border-bottom: 1px solid var(--ligne); backdrop-filter: blur(14px); }
.entete__inner { display: flex; align-items: center; min-height: 88px; gap: 32px; }
.marque { display: inline-flex; flex-direction: column; flex-shrink: 0; }
.marque__nom { font-family: var(--serif); font-size: 28px; letter-spacing: -.04em; line-height: 1; }
.marque__sous-titre { margin-top: 7px; color: var(--sauge); font-size: 9px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.navigation { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3.5vw, 52px); margin-left: auto; }
.navigation a { position: relative; padding-block: 7px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.navigation a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--miel); transition: right .35s cubic-bezier(.22, 1, .36, 1); }
.navigation a:hover::after, .navigation a:focus-visible::after { right: 0; }
.navigation a:hover, .pied a:hover { color: var(--sauge); }
.entete__cta { margin-left: 10px; }
.menu-bouton { display: none; border: 0; background: transparent; color: var(--encre); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.bouton { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 22px; border: 1px solid var(--encre); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease; }
.bouton::after { content: ""; position: absolute; z-index: -1; top: -80%; bottom: -80%; left: -55%; width: 28%; background: rgba(255, 255, 255, .3); transform: skewX(-18deg) translateX(-220%); transition: transform .6s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
.bouton:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(23, 23, 19, .12); }
.bouton:hover::after { transform: skewX(-18deg) translateX(520%); }
.bouton:active, .bouton.est-clique { transform: translateY(1px) scale(.975); box-shadow: none; }
.bouton--sombre { background: var(--encre); color: var(--papier); }
.bouton--sombre:hover { background: var(--sauge); border-color: var(--sauge); }
.bouton--miel { border-color: var(--miel); background: var(--miel); color: var(--encre); }
.bouton--miel:hover { background: var(--miel-clair); border-color: var(--miel-clair); }
.bouton--contour:hover { background: var(--encre); color: var(--papier); }
.lien { position: relative; display: inline-block; padding-bottom: 5px; border-bottom: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lien::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: left; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.lien:hover::after, .lien:focus-visible::after { transform: scaleX(1.12); }
.lien:hover { color: var(--sauge); }
.lien--clair:hover { color: var(--miel-clair); }

.hero { background: var(--ivoire); overflow: hidden; }
.hero__grille { display: grid; grid-template-columns: minmax(0, .86fr) minmax(440px, 1.14fr); align-items: center; gap: clamp(46px, 8vw, 140px); min-height: min(780px, calc(100vh - 128px)); padding-block: clamp(70px, 9vw, 130px); }
.hero__texte { position: relative; z-index: 1; }
.hero h1 { max-width: 720px; margin-top: 21px; }
.hero h1 em, .exploitation h2 em { color: var(--sauge); font-style: italic; }
.hero__intro { max-width: 470px; margin-top: 30px; color: var(--encre-doux); font-size: 18px; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 34px; }
.hero__note { display: flex; align-items: center; gap: 10px; margin-top: 58px; color: var(--sauge); font-size: 12px; }
.point { width: 8px; height: 8px; border-radius: 50%; background: var(--miel); }
.hero__visuel { position: relative; min-height: 570px; }
.hero__image-principale { position: absolute; inset: 0 5% 5% 12%; overflow: hidden; }
.hero__image-principale img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.86); }
.hero__produit { position: absolute; right: -2%; bottom: -3%; width: min(29%, 195px); padding: 10px 10px 15px; background: var(--papier); box-shadow: 0 24px 60px rgba(23, 23, 19, .18); transform: rotate(2.5deg); }
.hero__produit img { width: 100%; aspect-ratio: .72; object-fit: cover; object-position: center; }
.hero__produit figcaption { padding: 12px 3px 0; color: var(--sauge); font-size: 11px; line-height: 1.35; }
.hero__produit strong { color: var(--encre); font-size: 14px; }
.sceau { position: absolute; top: 7%; left: 0; display: grid; place-items: center; width: 92px; height: 92px; border: 1px solid var(--miel); border-radius: 50%; color: var(--encre); font-family: var(--serif); font-size: 15px; line-height: 1.05; text-align: center; transform: rotate(-10deg); }
.signature { position: relative; overflow: hidden; background: var(--miel); color: var(--encre); }
.signature::before { content: ""; position: absolute; inset: 0; opacity: .25; background-image: radial-gradient(circle, var(--encre) 0 1.2px, transparent 1.6px); background-size: 28px 28px; pointer-events: none; }
.signature::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; border: 1px solid rgba(23, 23, 19, .42); transform: translate(-50%, -50%) rotate(45deg); pointer-events: none; }
.signature__inner { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-block: 23px; border-block: 1px solid rgba(23, 23, 19, .42); }
.signature span { position: relative; padding-left: 17px; color: rgba(23, 23, 19, .68); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.signature span::before { content: ""; position: absolute; left: 0; top: 3px; width: 7px; height: 7px; border: 1px solid var(--encre); transform: rotate(45deg); }
.signature b { display: block; margin-top: 4px; color: var(--encre); font-family: var(--serif); font-size: 19px; font-weight: 400; letter-spacing: -.02em; text-transform: none; }

.section__entete { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 62px; }
.section__entete h2 { margin-top: 15px; }
.section__chapo { max-width: 410px; color: var(--encre-doux); font-size: 16px; }
.produits { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.5vw, 38px); }
.produit__image { display: block; aspect-ratio: .78; overflow: hidden; background: var(--ivoire); }
.produit__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.produit:nth-child(1) .produit__image img { object-position: center 58%; }
.produit:nth-child(2) .produit__image img, .produit:nth-child(3) .produit__image img { object-position: center 48%; }
.produit:nth-child(4) .produit__image img { object-position: center 45%; }
.produit:hover .produit__image img { transform: scale(1.04); }
.produit { transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.produit:hover { transform: translateY(-5px); }
.produit__meta, .produit__bas { display: flex; justify-content: space-between; gap: 16px; }
.produit__meta { padding-top: 17px; color: var(--sauge); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.produit__meta span:last-child { color: var(--miel); }
.produit h3 { min-height: 58px; margin-top: 12px; font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: -.03em; line-height: 1.08; }
.produit p { min-height: 52px; margin-top: 8px; color: var(--encre-doux); font-size: 13px; line-height: 1.45; }
.produit__bas { align-items: end; padding-top: 17px; border-top: 1px solid var(--ligne); }
.produit__bas strong { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.produit__bas .lien { font-size: 10px; }
.boutique__footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 58px; padding-top: 25px; border-top: 1px solid var(--ligne); color: var(--sauge); font-size: 13px; }

.section--sombre { background: var(--encre); color: var(--papier); }
.exploitation__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-items: center; gap: clamp(60px, 10vw, 160px); }
.exploitation__visuels { position: relative; min-height: 580px; }
.exploitation__portrait { position: absolute; inset: 0 18% 8% 0; width: 82%; height: 92%; object-fit: cover; object-position: center; filter: saturate(.76); }
.exploitation__recolte { position: absolute; right: -3%; bottom: -4%; width: 37%; aspect-ratio: .78; object-fit: cover; border: 10px solid var(--encre); }
.exploitation h2 { margin-top: 22px; color: var(--papier); }
.exploitation h2 em { color: var(--miel-clair); }
.exploitation__texte > p:not(.eyebrow) { max-width: 490px; margin-top: 28px; color: rgba(255, 253, 248, .72); font-size: 17px; }
.exploitation__texte .lien { margin-top: 38px; color: var(--miel-clair); }
.matiere { background: var(--ivoire); }
.matiere__grille { display: grid; grid-template-columns: .84fr 1.16fr; align-items: center; gap: clamp(50px, 10vw, 160px); }
.matiere__texte h2 { max-width: 600px; margin-top: 20px; }
.matiere__texte p:last-child { max-width: 460px; margin-top: 28px; color: var(--encre-doux); font-size: 17px; }
.matiere__image { aspect-ratio: 1.35; overflow: hidden; }
.matiere__image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78); }

.contact__grille { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(60px, 12vw, 190px); }
.contact__intro h2 { margin-top: 20px; }
.contact__intro > p:not(.eyebrow) { max-width: 430px; margin-top: 28px; color: var(--encre-doux); font-size: 17px; }
.contact__repere { display: flex; flex-direction: column; gap: 2px; margin-top: 52px; padding-left: 18px; border-left: 2px solid var(--miel); color: var(--sauge); font-size: 12px; }
.contact__repere strong { color: var(--encre); font-family: var(--serif); font-size: 25px; font-weight: 400; }
.contact__lieu { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--ligne); color: var(--sauge); font-size: 12px; }
.contact__lieu > div { display: flex; flex-direction: column; gap: 3px; }
.contact__lieu strong { color: var(--encre); font-family: var(--serif); font-size: 21px; font-weight: 400; }
.contact__lieu .lien { flex: 0 0 auto; }
.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 22px; padding: clamp(28px, 5vw, 62px); background: var(--ivoire); }
.contact__form label { color: var(--sauge); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.contact__form input, .contact__form textarea { width: 100%; margin-bottom: 12px; padding: 11px 0; border: 0; border-bottom: 1px solid var(--ligne); border-radius: 0; outline: 0; background: transparent; color: var(--encre); }
.contact__form input:focus, .contact__form textarea:focus { border-color: var(--miel); }
.contact__form input, .contact__form textarea { transition: border-color .25s ease, box-shadow .25s ease; }
.contact__form input:focus, .contact__form textarea:focus { box-shadow: 0 2px 0 var(--miel); }
.contact__form textarea, .contact__form label:nth-of-type(3), .contact__form .bouton, .formulaire__statut { grid-column: 1 / -1; }
.contact__form textarea { resize: vertical; }
.formulaire__statut { min-height: 24px; color: var(--sauge); font-size: 13px; }
.pied { background: var(--encre); color: var(--ivoire); }
.pied__haut { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 28px; padding-block: 54px; }
.marque--pied .marque__sous-titre { color: var(--miel-clair); }
.pied__liens { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 28px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pied__phrase { justify-self: end; color: rgba(243, 238, 226, .64); font-family: var(--serif); font-size: 18px; font-style: italic; }
.pied__bas { display: flex; justify-content: space-between; gap: 18px; padding-block: 18px; border-top: 1px solid rgba(243, 238, 226, .2); color: rgba(243, 238, 226, .55); font-size: 11px; }
.reveal { opacity: 1; transform: none; }
.js-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.js-ready .reveal.est-visible { opacity: 1; transform: none; }
.reveal--retard { transition-delay: .12s !important; }
.reveal--retard-1 { transition-delay: .08s !important; }
.reveal--retard-2 { transition-delay: .16s !important; }
.reveal--retard-3 { transition-delay: .24s !important; }

@media (max-width: 980px) {
  .entete__inner { gap: 22px; }
  .navigation { gap: 20px; }
  .hero__grille, .exploitation__grille, .matiere__grille, .contact__grille { gap: 56px; }
  .produits { grid-template-columns: repeat(2, 1fr); row-gap: 52px; }
  .hero__grille { grid-template-columns: 1fr 1fr; }
  .hero__visuel { min-height: 500px; }
  .exploitation__visuels { min-height: 500px; }
}
@media (max-width: 720px) {
  :root { --gouttiere: 20px; }
  .topbar__inner { align-items: center; font-size: 9px; }
  .topbar__inner a { display: none; }
  .entete__inner { min-height: 74px; justify-content: space-between; }
  .marque__nom { font-size: 24px; }
  .menu-bouton { display: block; margin-left: auto; }
  .navigation { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 14px var(--gouttiere) 20px; border-bottom: 1px solid var(--ligne); background: var(--papier); }
  .navigation .wp-block-navigation__container { gap: 0; }
  .navigation.est-ouvert { display: flex; }
  .navigation a { padding: 12px 0; border-bottom: 1px solid var(--ligne); }
  .entete__cta { display: none; }
  .hero__grille, .exploitation__grille, .matiere__grille, .contact__grille { grid-template-columns: 1fr; }
  .hero__grille { padding-block: 70px 52px; }
  .hero__intro, .contact__intro > p:not(.eyebrow), .matiere__texte p:last-child { font-size: 16px; }
  .hero__note { margin-top: 38px; }
  .hero__visuel { min-height: 420px; }
  .hero__image-principale { inset: 0 6% 4% 6%; }
  .hero__produit { right: 0; bottom: 0; width: 34%; }
  .sceau { left: 2%; top: 4%; width: 76px; height: 76px; font-size: 13px; }
  .signature__inner { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .section__entete { display: block; margin-bottom: 42px; }
  .section__chapo { margin-top: 22px; }
  .produits { gap: 38px 16px; }
  .produit h3 { min-height: 0; font-size: 21px; }
  .produit p { min-height: 0; }
  .boutique__footer { align-items: start; flex-direction: column; margin-top: 42px; }
  .exploitation__visuels { min-height: 410px; }
  .exploitation__portrait { inset: 0 12% 8% 0; width: 88%; }
  .exploitation__recolte { width: 40%; }
  .contact__form { grid-template-columns: 1fr; }
  .contact__form textarea, .contact__form label:nth-of-type(3), .contact__form .bouton, .formulaire__statut { grid-column: 1; }
  .contact__lieu { align-items: start; flex-direction: column; }
  .pied__haut { grid-template-columns: 1fr; align-items: start; }
  .pied__liens { justify-content: start; }
  .pied__phrase { justify-self: start; }
  .pied__bas { flex-direction: column; }
}
@media (max-width: 960px) {
  .wp-block-navigation__container.navigation { gap: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Ajustements du balisage natif Gutenberg. */
.wp-site-blocks { padding: 0; }
.wp-block-group { margin-block: 0; }
.wp-block-image { margin: 0; }
.wp-block-heading { font-family: var(--serif); font-weight: 400; }
.wp-block-button { margin: 0; }
.wp-block-button__link { border-radius: 0; }
.wp-block-navigation { gap: 0; }
.navigation .wp-block-navigation__container { gap: clamp(18px, 3.5vw, 52px); }
.wp-block-navigation__container.navigation { gap: clamp(18px, 3.5vw, 52px) !important; }
.navigation .wp-block-navigation__responsive-container-content { gap: 0; }
.wp-block-navigation .wp-block-navigation-item__content { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--papier); color: var(--encre); }
.woocommerce .site-main, .woocommerce-page .site-main { padding-block: 80px; }
.woocommerce ul.products li.product a img { aspect-ratio: .78; object-fit: cover; }
.woocommerce ul.products li.product .price { color: var(--encre); font-family: var(--serif); font-size: 22px; }

/* Les boutons Gutenberg reprennent les mêmes règles que la maquette. */
.wp-block-button.bouton { position: relative; isolation: isolate; overflow: hidden; display: inline-block; min-height: 0; padding: 0; border: 0; background: transparent; transition: transform .25s ease, box-shadow .25s ease; }
.wp-block-button.bouton::after { content: none; }
.wp-block-button.bouton .wp-block-button__link { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 22px; border: 1px solid var(--encre); border-radius: 0; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.wp-block-button.bouton .wp-block-button__link::after { content: ""; position: absolute; z-index: -1; top: -80%; bottom: -80%; left: -55%; width: 28%; background: rgba(255, 255, 255, .3); transform: skewX(-18deg) translateX(-220%); transition: transform .6s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
.wp-block-button.bouton:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(23, 23, 19, .12); }
.wp-block-button.bouton:hover .wp-block-button__link::after { transform: skewX(-18deg) translateX(520%); }
.wp-block-button.bouton:active { transform: translateY(1px) scale(.975); box-shadow: none; }
.wp-block-button.bouton:focus-within { outline: 2px solid var(--miel); outline-offset: 4px; }
.wp-block-button.bouton--sombre .wp-block-button__link { background: var(--encre); color: var(--papier); }
.wp-block-button.bouton--sombre:hover .wp-block-button__link { background: var(--sauge); border-color: var(--sauge); }
.wp-block-button.bouton--miel .wp-block-button__link { border-color: var(--miel); background: var(--miel); color: var(--encre); }
.wp-block-button.bouton--miel:hover .wp-block-button__link { background: var(--miel-clair); border-color: var(--miel-clair); }
.wp-block-button.bouton--contour:hover .wp-block-button__link { background: var(--encre); color: var(--papier); }
.wp-block-button.lien { display: inline-block; min-height: 0; padding: 0; border: 0; background: transparent; }
.wp-block-button.lien .wp-block-button__link { padding: 0 0 5px; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; background: transparent; color: inherit; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.wp-block-buttons.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
