/* Polices auto-hébergées : UNE déclaration par famille. Karla et
   Merriweather sont des fontes VARIABLES (un fichier couvre toutes les
   graisses). Merriweather choisie le 25/08/2026 : « la fonte des auteurs à
   la main » (Mathieu), le serif de blog le plus classique qui soit. */
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 200 800;
  font-display: swap;
  src: url('fonts/Karla-var.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-style: italic; font-weight: 200 800;
  font-display: swap;
  src: url('fonts/Karla-var-italic.woff2') format('woff2'); }
@font-face { font-family: 'Merriweather'; font-style: normal; font-weight: 300 900;
  font-display: swap;
  src: url('fonts/Merriweather-var.woff2') format('woff2'); }

/*
Theme Name: Floral Créations
Template: twentytwentyfive
Description: Blog déco floral, fond blanc, mosaïque de photos, Merriweather
  pour les titres, Karla pour le texte. Refonte du 25/08/2026 : sortie
  délibérée de l'archétype « carnet manuscrit » (Garamond + Caveat + papier
  crème + notes tournées), identifié comme le motif de design généré le plus
  courant. Ici : pas de rotation, pas de lettrine, pas de manuscrite, pas de
  grain, la personnalité vient des photos et de la typo de titrage.
Version: 4.0
*/

:root {
  --fond:     #FFFFFF;
  --fond-2:   #F6F4F1;
  --texte:    #2B2624;
  --texte-2:  #6A625C;
  --accent:   #9A4A57;   /* rose séché profond */
  --accent-f: #7A3844;
  --ligne:    #E9E4DF;
  --f-titre: "Merriweather", Georgia, serif;
  --f-texte: "Karla", "Helvetica Neue", Arial, sans-serif;
  --col: 42rem;
  --gout: 1.7rem;
}

body {
  background: var(--fond);
  color: var(--texte);
  font: 1.06rem/1.7 var(--f-texte);
  -webkit-font-smoothing: antialiased;
}
.wp-site-blocks { padding-top: 0 !important; }
::selection { background: #F0DFE2; }

h1, h2, h3, h4 {
  font-family: var(--f-titre); color: var(--texte);
  font-weight: 700; letter-spacing: 0; text-wrap: balance;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-f); }
strong { font-weight: 700; color: #1E1A18; }
em { font-style: italic; }

/* ── En-tête ───────────────────────────────────────────────────────── */
header.wp-block-template-part {
  background: var(--fond);
  border-bottom: 1px solid var(--ligne);
  position: sticky; top: 0; z-index: 40;
}
.tete { padding: .85rem var(--gout); }
.tete-in { align-items: center; }
.marque {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none;
}
.marque-logo { flex: none; height: 81px; width: auto; }
.marque-nom {
  font-family: var(--f-titre); font-size: 1.22rem; font-weight: 700;
  color: var(--texte); line-height: 1;
}
.marque-nom b { font-weight: 700; color: var(--accent); }
header .wp-block-navigation a {
  font-family: var(--f-texte); font-size: .98rem; font-weight: 500;
  color: var(--texte-2) !important; text-decoration: none;
}
header .wp-block-navigation a:hover {
  color: var(--accent) !important; text-decoration: underline;
  text-underline-offset: 5px;
}

/* ── Grille ────────────────────────────────────────────────────────── */
.entry-content.wp-block-post-content {
  max-width: none !important; width: auto !important;
  margin: 0 !important; padding: 0 !important;
}
.entry-content > * {
  max-width: var(--col); margin-left: auto; margin-right: auto;
  padding-left: var(--gout); padding-right: var(--gout);
  box-sizing: content-box;
}
.entry-content > .hero, .entry-content > .planche { max-width: none; padding: 0; }
.entry-content > figure.large { max-width: 52rem; }

/* ── Héros d'article ───────────────────────────────────────────────── */
.entry-content > .hero {
  position: relative; left: 50%; transform: translateX(-50%);
  width: 100vw; max-width: 100vw; margin: 0 0 3rem;
  background: #2A2422; min-height: 28rem; display: grid; align-items: end;
  overflow: hidden;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,16,15,.86) 0%,
              rgba(20,16,15,.35) 50%, rgba(20,16,15,.04) 100%);
}
.hero-txt {
  box-sizing: border-box;
  position: relative; z-index: 2; max-width: var(--col);
  margin: 0 auto; padding: 4rem var(--gout) 2.6rem; width: 100%;
}
.hero-eyebrow {
  display: inline-block; font-family: var(--f-texte); font-size: .82rem;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #E3B9C0; margin-bottom: .55rem;
}
.hero h1 {
  color: #FFFDFB; font-size: clamp(1.9rem, 4.4vw, 2.9rem); line-height: 1.18;
  margin: 0 0 .8rem;
}
.hero p { color: #E6DFDA; font-size: 1.12rem; margin: 0; max-width: 34rem; }
.hero:not(:has(img)) { min-height: 18rem; }

/* ── Texte courant ─────────────────────────────────────────────────── */
.entry-content > p { margin: 1.1rem auto; }
.hero + p, .entry-content > p.chapo {
  font-size: 1.22rem; line-height: 1.6; color: #423B37;
}

h2 {
  font-size: clamp(1.55rem, 2.6vw, 1.95rem); line-height: 1.2;
  margin: 3rem auto .9rem; scroll-margin-top: 5rem; padding-top: 0;
}
h3 {
  font-size: 1.28rem; margin: 2.1rem auto .5rem; color: #443D39;
}

/* ── Chiffres clés ─────────────────────────────────────────────────── */
.chiffres {
  display: grid; gap: 1.3rem 1.8rem; margin: 2.3rem auto;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  padding-top: 1.3rem; padding-bottom: 1.3rem;
  border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne);
}
.chiffres b {
  display: block; font-family: var(--f-titre); font-size: 1.8rem;
  color: var(--accent); line-height: 1.1; font-weight: 700;
}
.chiffres span {
  display: block; font-size: .92rem; color: var(--texte-2); margin-top: .2rem;
}

/* ── En bref ───────────────────────────────────────────────────────── */
.enbref {
  background: var(--fond-2); padding: 1.3rem 1.5rem 1.4rem;
  margin: 0 auto 2.5rem; border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
}
.enbref p { margin: 0; }
.enbref strong:first-child {
  font-family: var(--f-texte); font-size: .85rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: .35rem;
}

/* ── Sommaire ──────────────────────────────────────────────────────── */
#sommaire {
  font-family: var(--f-texte); font-size: .85rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--texte-2);
  margin: 2.5rem auto .4rem;
}
#sommaire + ul {
  list-style: none; padding: 1rem 1.4rem 1.1rem; margin: 0 auto 2.7rem;
  background: var(--fond-2); border-radius: 6px; columns: 2; column-gap: 2rem;
}
#sommaire + ul li { margin: .3rem 0; break-inside: avoid; font-size: .98rem; }
#sommaire + ul a { text-decoration: none; }
#sommaire + ul a:hover { text-decoration: underline; }
@media (max-width: 700px) { #sommaire + ul { columns: 1; } }

/* ── Tableaux ──────────────────────────────────────────────────────── */
.tablewrap { overflow-x: auto; margin: 2rem auto; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: .98rem; }
.entry-content th {
  text-align: left; font-family: var(--f-texte); font-weight: 700;
  font-size: .92rem; color: var(--texte); padding: .3rem .8rem .5rem;
  border-bottom: 2px solid var(--accent);
}
.entry-content td {
  padding: .6rem .8rem; border-bottom: 1px solid var(--ligne);
  vertical-align: top;
}
.entry-content tbody tr:hover td { background: var(--fond-2); }

/* ── Listes : des puces normales, pas d'ornement ───────────────────── */
.entry-content ul { list-style: disc outside; padding-left: calc(var(--gout) + 1.2rem); }
.entry-content ul li, .entry-content ol li { margin: .4rem 0; }
.entry-content ul > li::marker { color: var(--accent); }
.entry-content ol { list-style: decimal outside; padding-left: calc(var(--gout) + 1.4rem); }
.entry-content ol > li::marker { color: var(--accent); font-weight: 700; }
#sommaire + ul { padding-left: 1.4rem; }
#sommaire + ul > li { list-style: none; }

/* ── Figures ───────────────────────────────────────────────────────── */
figure { margin: 2.3rem auto; }
figure img { display: block; width: 100%; height: auto; border-radius: 6px; }
figcaption {
  font-size: .92rem; color: var(--texte-2);
  margin-top: .55rem; line-height: 1.45;
}
.planche {
  display: grid; gap: 8px; margin: 3rem 0;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.planche figure { margin: 0; position: relative; }
.planche img { aspect-ratio: 1/1; object-fit: cover; border-radius: 0; }
.planche figcaption {
  position: absolute; inset: auto 0 0 0; margin: 0; padding: 2.2rem .9rem .7rem;
  color: #FFFDFB; font-size: .95rem; max-width: none;
  background: linear-gradient(to top, rgba(20,16,15,.85), transparent);
}

/* ── Cartes (accueil, 404) ─────────────────────────────────────────── */
.cartes {
  display: grid; gap: 1.2rem; margin: 1.8rem auto 2.8rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.carte {
  display: block; text-decoration: none; padding: 1.1rem 1.2rem 1.2rem;
  border: 1px solid var(--ligne); border-radius: 8px; background: var(--fond);
}
.carte:hover { border-color: var(--accent); }
.carte a { text-decoration: none; }
.carte a b, .carte b {
  display: block; font-family: var(--f-titre); font-size: 1.05rem;
  color: var(--texte); margin-bottom: .3rem; font-weight: 700; line-height: 1.3;
}
.carte:hover a b, .carte:hover b { color: var(--accent); }
.carte span { display: block; font-size: .95rem; color: var(--texte-2);
  line-height: 1.5; font-style: normal; }

/* ── À lire ensuite ────────────────────────────────────────────────── */
.suite {
  margin: 3.2rem auto 0; max-width: var(--col);
  padding: 1.4rem var(--gout) 1.6rem;
  background: var(--fond-2); border-radius: 8px;
}
.suite h2 {
  padding: 0; margin: 0 0 .7rem; font-family: var(--f-texte);
  font-size: .85rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--texte-2);
}
.suite ul { list-style: none; padding: 0; margin: 0; }
.suite ul > li { margin: .65rem 0; padding-left: 0; }
.suite ul > li::marker { content: none; }
.suite a { font-size: 1.08rem; text-decoration: none; font-weight: 500; }
.suite a:hover { text-decoration: underline; }
.suite em { display: block; font-size: .93rem; color: var(--texte-2);
  font-style: normal; }

/* ── Pied de page ──────────────────────────────────────────────────── */
footer.wp-block-template-part {
  background: var(--fond-2); color: var(--texte-2); margin-top: 4.5rem;
  border-top: 1px solid var(--ligne); font-size: .98rem; padding: 2rem 0;
}
footer.wp-block-template-part a { color: var(--accent-f); }
.pied-nom {
  font-family: var(--f-titre); font-size: 1.15rem; font-weight: 700;
  color: var(--texte); margin: 0 0 .3rem;
}
.pied-note { color: #5C554E; margin: 0 0 1rem; font-size: .98rem; }
.pied-liens { font-size: .95rem; line-height: 2; margin: 0; color: var(--texte-2); }
.pied-liens a { text-decoration: none; display: inline-block; padding: .3rem .1rem; }
.pied-liens a:hover { text-decoration: underline; }

/* ── Outil interactif ──────────────────────────────────────────────── */
.alc-outil { background: var(--fond-2); border: 1px solid var(--ligne);
  border-radius: 8px; box-shadow: none; }
.alc-intro { font-family: var(--f-texte); font-size: 1rem; }
.alc-chip { font-family: var(--f-texte); font-size: .98rem;
  border-color: var(--ligne); background: var(--fond); }
.alc-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.alc-res-fleur { font-family: var(--f-titre); font-size: 1.25rem; font-weight: 700; color: var(--accent); }
.alc-diff { font-family: var(--f-texte); }
.alc-astuce { border-left-color: var(--accent); font-style: normal; }

/* ── Mosaïque du carnet ────────────────────────────────────────────── */
.carnet-tete h1 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); margin: 2.6rem 0 .4rem; }
.carnet-sous { color: var(--texte-2); margin: 0 0 2.2rem; font-size: 1.05rem; }

.wp-block-post-template.is-layout-grid {
  list-style: none; padding: 0; margin: 0 0 2.5rem; gap: 2.2rem 1.8rem;
}
.wp-block-post-template.is-layout-grid > li { margin: 0; }
.mosa-img { margin: 0 0 .8rem; }
.mosa-img img {
  width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 8px;
  display: block;
}
.wp-block-post-template .wp-block-post-title {
  font-family: var(--f-titre); font-size: 1.12rem; font-weight: 700;
  margin: .15rem 0 .3rem; line-height: 1.28;
}
.wp-block-post-template .wp-block-post-title a {
  text-decoration: none; color: var(--texte);
}
.wp-block-post-template .wp-block-post-title a:hover { color: var(--accent); }
.wp-block-post-date {
  font-family: var(--f-texte); font-size: .85rem; color: var(--texte-2);
  text-transform: none;
}
.wp-block-post-terms { font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; }
.wp-block-post-terms a { color: var(--accent); text-decoration: none; }
.wp-block-post-excerpt__excerpt {
  color: var(--texte-2); font-size: .97rem; line-height: 1.55; margin-top: .3rem;
}
.wp-block-post-excerpt__more-link { font-style: normal; font-size: .95rem; }
.wp-block-query-pagination { margin-bottom: 3rem; }

/* Le conteneur principal du thème parent ajoute un retrait haut qui décolle
   le héros de l'en-tête. Mesuré au navigateur : ~145 px de blanc. */
.wp-site-blocks > main,
main.wp-block-group,
main > .wp-block-group,
.wp-block-post-content { margin-top: 0 !important; padding-top: 0 !important; }

/* Focus clavier visible partout */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.wp-block-navigation__responsive-close:focus {
  outline: 2px solid var(--accent) !important;
}

/* ── Page 404 ──────────────────────────────────────────────────────── */
.quatrecentquatre { padding: 4rem var(--gout) 2rem; }
.quatrecentquatre h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 .8rem; }
.quatrecentquatre .chapo { font-size: 1.15rem; color: var(--texte-2); }
.quatrecentquatre .cartes { margin-top: 2.4rem; }
.quatrecentquatre-note { margin-top: 2.4rem; color: var(--texte-2); }

@media (max-width: 640px) {
  :root { --gout: 1.2rem; }
  body { font-size: 1.02rem; }
  .hero { min-height: 21rem; }
}
