/* ===========================================================================
   dedeacoudre.fr — handmade sewing boutique theme over Foundation 6
   Tokens from design/specs.md:
   terracotta #C56B4B / deep #9C4E33 / rose #D8A7A0 / sage #8AA17F
   cream #FBF6EE / ink #3A322C / muted #8A7F74 / border #EBE1D2
   Headings: Playfair Display · Body: Nunito Sans
   =========================================================================== */
:root {
  --ti-green: #4C9A6B;
  --ti-green-deep: #2F6E49;
  --ti-sky: #5BB3C9;
  --ti-sand: #E8B86D;
  --ti-cream: #F5FAF6;
  --ti-card: #FFFFFF;
  --ti-ink: #24302A;
  --ti-muted: #6C7A71;
  --ti-border: #DDEAE0;
  --ti-radius: 14px;
  --ti-shadow: 0 4px 16px rgba(58,50,44,0.07);
  --ti-shadow-hover: 0 10px 28px rgba(58,50,44,0.13);
}
body { background: var(--ti-cream); color: var(--ti-ink); font-family: "Open Sans", system-ui, sans-serif; font-size: 16px; line-height: 1.6; }
h1,h2,h3,h4,h5,h6 { font-family: "Nunito", system-ui, sans-serif; color: var(--ti-green-deep); font-weight: 700; line-height: 1.25; }

/* header */
.ti-header { position: sticky; top: 0; z-index: 60; background: var(--ti-green); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.10); }
.ti-header__inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 1.25rem; flex-wrap: wrap; }
.ti-brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.05; }
.ti-brand__title { font-family: "Nunito", sans-serif; font-weight: 700; font-size: 1.4rem; color: #fff; }
.ti-brand__sub { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: #f6e4dc; }
.ti-nav ul { display: flex; flex-wrap: wrap; gap: 0.1rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.ti-nav li { margin: 0; position: relative; }
.ti-nav a { display: block; padding: 0.4rem 0.7rem; border-radius: 999px; color: #fbeae3; text-decoration: none; font-size: 0.9rem; font-weight: 700; transition: background .2s,color .2s; }
.ti-nav a:hover, .ti-nav a.active { background: rgba(255,255,255,0.18); color: #fff; }
.ti-nav .has-children > .submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--ti-card); border: 1px solid var(--ti-border); border-radius: var(--ti-radius); box-shadow: var(--ti-shadow); padding: 0.3rem; z-index: 70; flex-direction: column; }
.ti-nav .has-children:hover > .submenu, .ti-nav .has-children:focus-within > .submenu { display: flex; }
.ti-nav .submenu a { color: var(--ti-ink); white-space: nowrap; font-weight: 400; }
.ti-nav .submenu a:hover { background: #f7ece2; color: var(--ti-green-deep); }
.ti-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.4); color: #fff; border-radius: 8px; padding: 0.25rem 0.6rem; font-size: 1.3rem; cursor: pointer; }
@media (max-width: 940px) {
  .ti-toggle { display: block; }
  .ti-nav { display: none; flex-basis: 100%; }
  #ti-nav-toggle:checked ~ .ti-nav { display: block; }
  .ti-nav ul { flex-direction: column; align-items: stretch; }
  .ti-nav .has-children > .submenu { position: static; box-shadow: none; border: none; padding-left: 1rem; }
}

/* hero */
.ti-hero { background: linear-gradient(120deg, var(--ti-green), var(--ti-green-deep)); color: #fff; border-radius: 0 0 20px 20px; padding: 3rem 1.5rem; text-align: center; margin-bottom: 2rem; }
.ti-hero h1 { color: #fff; font-size: clamp(1.9rem,4vw,2.9rem); margin: 0 0 0.5rem; }
.ti-hero p { color: #f6ded6; max-width: 60ch; margin: 0 auto; }
.ti-hero::after { content:""; display:block; width:90px; height:4px; background:var(--ti-sky); margin:1.1rem auto 0; border-radius:4px; }

/* layout */
.ti-wrap { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.ti-cols { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 940px) { .ti-cols { grid-template-columns: 1fr; } }
.ti-section-title { font-size: 1.7rem; margin: 0 0 1.1rem; padding-bottom: 0.4rem; border-bottom: 3px solid var(--ti-sky); display: inline-block; }

/* sidebar */
.ti-aside { display: flex; flex-direction: column; gap: 1.25rem; }
.ti-panel { background: var(--ti-card); border: 1px solid var(--ti-border); border-radius: var(--ti-radius); box-shadow: var(--ti-shadow); padding: 1.1rem 1.25rem; }
.ti-panel h3 { font-size: 1.05rem; margin: 0 0 0.7rem; color: var(--ti-green-deep); }
.ti-panel ul { list-style: none; margin: 0; padding: 0; }
.ti-panel li { margin: 0 0 0.4rem; }
.ti-panel a { color: var(--ti-ink); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.ti-panel a:hover { color: var(--ti-green); }

/* content */
.content-prose { max-width: 100%; }
.content-copy { margin: 0 0 1rem; }
.content-heading { margin: 1.5rem 0 0.7rem; }
.content-prose a, .content-copy a, .content-mini-card h3 a { color: var(--ti-green); text-decoration: underline; text-decoration-color: rgba(197,107,75,0.4); text-underline-offset: 2px; }
.content-prose a:hover, .content-copy a:hover { color: var(--ti-green-deep); }
.content-figure { margin: 1rem 0; }
.content-figure img, .content-gallery img { max-width: 100%; height: auto; border-radius: 10px; }
.content-gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 0.7rem; margin: 1rem 0; }
.content-gallery__item { margin: 0; }
.content-gallery__item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
figcaption { font-size: 0.8rem; color: var(--ti-muted); margin-top: 0.25rem; }
.content-list { padding-left: 1.2rem; margin: 0 0 1rem; }
.content-table-wrap { overflow-x: auto; margin: 1rem 0; }
.content-table { width: 100%; border-collapse: collapse; background: var(--ti-card); }
.content-table td, .content-table th { padding: 0.45rem 0.6rem; border: 1px solid var(--ti-border); text-align: left; vertical-align: top; }
.content-table th { background: #f7ece2; color: var(--ti-green-deep); }

/* cards */
.ti-card-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 1.2rem; }
.content-mini-card { background: var(--ti-card); border: 1px solid var(--ti-border); border-radius: var(--ti-radius); box-shadow: var(--ti-shadow); padding: 1rem 1.1rem; transition: transform .2s, box-shadow .2s; }
.content-mini-card:hover { transform: translateY(-3px); box-shadow: var(--ti-shadow-hover); }
.content-mini-card h3 { font-size: 1.02rem; margin: 0 0 0.3rem; }
.content-mini-card p { margin: 0; color: var(--ti-muted); font-size: 0.88rem; }

/* breadcrumbs */
.ti-breadcrumbs { margin: 0 0 1rem; font-size: 0.85rem; }
.ti-breadcrumbs ul { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0; }
.ti-breadcrumbs li::after { content: "›"; margin-left: 0.35rem; color: var(--ti-muted); }
.ti-breadcrumbs li:last-child::after { content: ""; }
.ti-breadcrumbs a { color: var(--ti-green); text-decoration: none; }

/* article */
.ti-article { background: var(--ti-card); border: 1px solid var(--ti-border); border-radius: var(--ti-radius); box-shadow: var(--ti-shadow); padding: 1.5rem 1.75rem; }
.ti-article__meta { color: var(--ti-muted); font-size: 0.85rem; margin-bottom: 1rem; }
.ti-article__summary { border-left: 4px solid var(--ti-sky); background: var(--ti-cream); padding: 0.8rem 1.1rem; border-radius: 0 8px 8px 0; margin: 0 0 1.4rem; }
.ti-article__image { float: right; max-width: 40%; margin: 0 0 1rem 1.4rem; border-radius: 10px; }
@media (max-width: 600px) { .ti-article__image { float: none; max-width: 100%; margin: 0 0 1rem; } }
.ti-toc { background: var(--ti-cream); border: 1px solid var(--ti-border); border-radius: 8px; padding: 0.9rem 1.1rem; margin-bottom: 1.4rem; }
.ti-toc ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.ti-toc a { color: var(--ti-green); }

/* category grid */
.ti-cat-grid { display: grid; gap: 1.2rem; }
.ti-cat-grid.cols-2 { grid-template-columns: repeat(2,1fr); }
.ti-cat-grid.cols-3 { grid-template-columns: repeat(3,1fr); }
@media (max-width: 800px) { .ti-cat-grid.cols-2, .ti-cat-grid.cols-3 { grid-template-columns: 1fr; } }
.ti-cat-card { display: flex; flex-direction: column; overflow: hidden; }
.ti-cat-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.ti-cat-card__body { padding: 1rem 1.1rem; }
.ti-cat-card__body h3 a { color: var(--ti-green-deep); text-decoration: none; }
.ti-cat-card__body h3 a:hover { color: var(--ti-green); }
.ti-readmore { display: inline-block; margin-top: 0.5rem; color: var(--ti-green); font-weight: 700; text-decoration: none; }
.ti-readmore:hover { text-decoration: underline; }

/* footer */
.ti-footer { background: var(--ti-green-deep); color: #f2ddd4; margin-top: 3rem; padding: 2.5rem 1.25rem; border-top: 4px solid var(--ti-sky); }
.ti-footer__inner { max-width: 1200px; margin: 0 auto; }
.ti-footer h2 { color: #fff; margin: 0 0 0.5rem; font-family: "Nunito", sans-serif; }
.ti-footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 1rem 0; }
.ti-footer__links a { color: #f3ddd3; text-decoration: none; font-size: 0.85rem; }
.ti-footer__links a:hover { text-decoration: underline; color: #fff; }
.ti-footer__copy { color: #d6a695; font-size: 0.8rem; margin-top: 1rem; }
