/* cyrilabad.com — feuille de style principale
   Reprend l'identité du site Squarespace : fond blanc, typographies Garamond, sections noires pour les projets. */

/* ---------- Polices (auto-hébergées, aucune requête externe) ---------- */
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/eb-garamond-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/eb-garamond-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/eb-garamond-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC; }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/eb-garamond-latin-ext-400-italic.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: "EB Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/eb-garamond-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC; }
@font-face { font-family: "EB Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/eb-garamond-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-style: normal; font-display: swap; src: url(/fonts/cormorant-garamond-latin-300-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-style: normal; font-display: swap; src: url(/fonts/cormorant-garamond-latin-ext-300-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/cormorant-garamond-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/cormorant-garamond-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF; }

/* ---------- Variables ---------- */
:root {
  --font-body: "EB Garamond", "Adobe Garamond Pro", Garamond, Georgia, serif;
  --font-heading: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --black: #000;
  --white: #fff;
  --grey: #797979;        /* darkAccent du site d'origine */
  --light: #f5f5f5;       /* lightAccent */
  --line: #d9d9d9;        /* accent */
  --gap: 12px;
  --gutter: clamp(12px, 1.2vw, 24px);
  --text: 1.2rem;
  --h1: clamp(2.2rem, 3.4vw, 3.4rem);
  --h2: clamp(1.8rem, 2.6vw, 2.8rem);
  --h3: clamp(1.5rem, 2vw, 2.2rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 14px; -webkit-text-size-adjust: 100%; }
@media (min-width: 768px) { html { font-size: 15px; } }
body { margin: 0; font-family: var(--font-body); font-size: var(--text); line-height: 1.6; color: var(--black); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { opacity: .75; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 300; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: var(--h1); } h2 { font-size: var(--h2); } h3 { font-size: var(--h3); } h4 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 600; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 10; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.small { font-size: .9rem; color: var(--grey); }
.small-caps { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-top: 1.6em; }

.button { display: inline-block; background: var(--black); color: var(--white); border: 1px solid var(--black); padding: .7em 1.4em; font: inherit; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap; }
.button:hover { opacity: .85; }
.button--disabled { background: transparent; color: var(--grey); border-color: var(--line); cursor: default; }
.theme-dark main .button, .site-footer .button { background: var(--white); color: var(--black); }

/* ---------- En-tête ---------- */
.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 2rem var(--gutter) 1.6rem; background: var(--white); color: var(--black); border-bottom: 1px solid var(--light); }
.site-header__center { text-align: center; }
.site-title { font-family: var(--font-heading); font-weight: 300; font-size: clamp(1.9rem, 3vw, 2.6rem); text-decoration: none; display: inline-block; margin-bottom: .6rem; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1rem; max-width: 34rem; margin: 0 auto; font-size: 1.05rem; }
.site-nav a { text-decoration: none; padding-bottom: 2px; }
.site-nav a[aria-current="page"] { border-bottom: 1px solid currentColor; }
.site-header__actions { justify-self: end; }
.site-header__actions .button { font-size: .85rem; }
.nav-toggle { display: none; }
.socials { list-style: none; margin: 0; padding: 0; display: flex; gap: .9rem; align-items: center; }
.socials a { display: inline-flex; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr; text-align: center; padding-top: 1.2rem; }
  .site-header__socials { display: none; }
  .site-header__actions { justify-self: center; }
  .site-header > * { min-width: 0; }
  .site-title { font-size: 1.7rem; }
  .nav-toggle { display: block; margin-left: auto; margin-right: auto; background: none; border: 1px solid var(--line); font: inherit; padding: .3rem 1rem; margin-bottom: .5rem; cursor: pointer; }
  .js .site-nav { display: none; flex-direction: column; gap: .5rem; padding: .6rem 0; }
  .js .site-nav.is-open { display: flex; }
}

/* ---------- Mises en page ---------- */
.page { max-width: 1100px; margin: 0 auto; padding: 3rem var(--gutter); }
.page--wide { max-width: none; padding: 1rem var(--gutter) 3rem; }
.page__title { margin-top: .3em; }
.prose { max-width: 46rem; }
.prose ul { padding-left: 1.2em; }
.prose li p { margin: 0; }
.meta, .breadcrumb { font-size: .95rem; color: var(--grey); }
.meta a, .breadcrumb a { color: inherit; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0 0 1.5rem; font-size: 1rem; }
.notice { background: var(--light); padding: 1rem 1.2rem; }

/* ---------- Grille de vignettes carrées (accueil, jardins, boutique) ---------- */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(var(--gutter) * 1.6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card a { display: block; position: relative; text-decoration: none; }
.card a:hover { opacity: 1; }
.card__img, .card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.card__title { position: absolute; inset: auto 0 0 0; padding: 1rem; color: var(--white); font-family: var(--font-heading); font-size: 1.5rem; line-height: 1.2; background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: opacity .3s; }
.card a:hover .card__title, .card a:focus-visible .card__title { opacity: 1; }
@media (hover: none) { .card__title { opacity: 1; } }
.shop .card__title, .card__price { position: static; display: block; color: var(--black); background: none; opacity: 1; padding: .6rem 0 0; }
.card__price { font-size: 1rem; color: var(--grey); padding-top: .1rem; }
/* Boutique : présentation de l'ancien site (titre et prix centrés, bouton « Voir les options ») */
.shop-list .page__title, .shop-list .breadcrumb { text-align: center; }
.shop-list .filters { justify-content: center; gap: 0; }
.shop-list .filters a + a { border-left: 1px solid var(--line); }
.shop-list .filters a { padding-inline: 1.2rem; }
.shop-list .page__title { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.shop-list .filters { font-size: clamp(1.1rem, 2vw, 1.3rem); margin-bottom: 2.2rem; }
.shop .card { text-align: center; }
.shop .card__title { font-size: clamp(1.45rem, 2.2vw, 1.75rem); padding-top: 1rem; }
.shop .card__price { color: var(--black); font-size: clamp(1.1rem, 1.6vw, 1.25rem); padding-top: .25rem; }
.card__cta { display: block; width: 100%; margin-top: 1rem; padding: 1em; font-size: clamp(1rem, 1.5vw, 1.15rem); }
.card a:hover .card__cta { opacity: .85; }

/* ---------- Pages projet (section noire) ---------- */
.theme-dark main { background: var(--black); color: var(--white); }
.project__intro { max-width: 820px; margin: 0 auto; padding: 4rem var(--gutter) 2.5rem; }
.project__logo { margin: 0 0 1.5rem; max-width: 260px; }
.project__title { font-size: var(--h1); }
.accordion { border-top: 1px solid rgba(255,255,255,.6); border-bottom: 1px solid rgba(255,255,255,.6); margin: 1.5rem 0; }
.accordion summary { cursor: pointer; padding: .7rem 0; list-style: none; display: flex; justify-content: space-between; }
.accordion summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
.accordion[open] summary::after { content: "−"; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion .prose { padding: .4rem 0 1rem; }

/* ---------- Galerie justifiée ---------- */
.gallery { display: flex; flex-wrap: wrap; gap: var(--gap); padding: 0 var(--gutter) 3rem; }
.gallery::after { content: ""; flex-grow: 999999; }
.gallery__item { margin: 0; flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * 200px); }
@media (min-width: 1200px) { .gallery__item { flex-basis: calc(var(--r) * 260px); } }
.gallery__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__item img { width: 100%; height: auto; }
.page--wide .gallery { padding-left: 0; padding-right: 0; }

.pager { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem var(--gutter) 3rem; font-family: var(--font-heading); font-size: 1.4rem; }
.pager a { text-decoration: none; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(0,0,0,.96); color: var(--white); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 92vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; margin: 0 auto; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); font-size: 2.6rem; cursor: pointer; padding: 1rem; }
.lightbox__close { top: 0; right: .5rem; } .lightbox__prev { left: 0; } .lightbox__next { right: 0; }

/* ---------- News ---------- */
.news-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem calc(var(--gutter) * 1.6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 1000px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: .8rem; }
.news-card .meta { margin-bottom: .4rem; color: var(--black); font-size: .95rem; }
.news-card__title { font-size: 1.6rem; margin-bottom: .8rem; }
.news-card__title a { text-decoration: none; }
.read-more { font-size: .95rem; }
.post .prose { margin-top: 1.5rem; }
.tags { margin-top: 2rem; }

/* ---------- Vidéo légère ---------- */
.lite-video { position: relative; max-width: 960px; margin: 1.5rem 0; aspect-ratio: 16 / 9; background: var(--black); }
.lite-video__play { position: absolute; inset: 0; border: 0; padding: 0; background: none; cursor: pointer; }
.lite-video__play img { width: 100%; height: 100%; object-fit: cover; }
.lite-video__icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: rgba(0,0,0,.7); color: var(--white); font-size: 1.8rem; line-height: 72px; }
.lite-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { margin: 1.5rem 0; max-width: 960px; }

/* ---------- Boutique ---------- */
.product__grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .product__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.product__images { display: grid; gap: var(--gap); }
.product__images .gallery__open img { width: 100%; }
.product__price { font-size: 1.2rem; }
.variants { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 1.05rem; }
.variants caption { text-align: left; font-weight: 600; margin-bottom: .5rem; }
.variants th { text-align: left; font-weight: 400; color: var(--grey); font-size: .9rem; border-bottom: 1px solid var(--line); padding: .4rem 0; }
.variants td { border-bottom: 1px solid var(--line); padding: .6rem .5rem .6rem 0; }
.variants td:last-child { text-align: right; }
.variants td:nth-child(2) { white-space: nowrap; }

/* ---------- À propos, contact, formulaires ---------- */
.about { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .about { grid-template-columns: 2fr 3fr; align-items: start; } }
.contact { display: grid; gap: 3rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; } }
.contact__cta .button { display: inline-block; }
.button--large { font-size: 1.15rem; padding: 1rem 2.2rem; }
.button--outline { background: transparent; color: inherit; border: 1px solid currentColor; }
/* Inscription newsletter compacte (contact, fin des projets et articles, pied de page) */
.signup { max-width: 560px; margin: 3.5rem auto 0; text-align: center; }
.contact .signup { margin: 0 0 1rem; text-align: left; }
.project .signup { padding: 0 var(--gutter) 4rem; box-sizing: content-box; }
.signup__title { font-family: var(--font-heading); font-weight: 400; font-size: 1.5rem; margin: 0 0 .8rem; }
.signup__form { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.contact .signup__form { justify-content: flex-start; }
.signup__form .form__row { flex: 1 1 220px; margin: 0; }
.signup__form input { font: inherit; padding: .6rem .7rem; border: 1px solid var(--line); background: var(--white); color: var(--black); width: 100%; min-height: 44px; }
.signup__form .button { min-height: 44px; }
.signup__msg { flex-basis: 100%; margin: .5rem 0 0; }
.signup__privacy { margin: .6rem 0 0; font-size: .8rem; }
.site-footer .signup { margin: 0 auto 3.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.2); }
.site-footer .signup__privacy { color: rgba(255,255,255,.6); }
.theme-dark .signup__privacy { color: rgba(255,255,255,.6); }
.form__row { display: flex; flex-direction: column; gap: .3rem; }
.form input, .form textarea { font: inherit; padding: .6rem .7rem; border: 1px solid var(--line); background: var(--white); width: 100%; }
.form input:focus, .form textarea:focus { border-color: var(--black); outline: none; }
.newsletter { max-width: 640px; text-align: center; }
.newsletter .form { text-align: left; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--black); color: var(--white); text-align: center; padding: 5rem var(--gutter) 6rem; font-size: 1rem; }
.site-footer__title { font-family: var(--font-heading); font-weight: 300; font-size: 2rem; margin-bottom: 1rem; }
.site-footer__links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.site-footer .socials { justify-content: center; margin-top: .6rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Parutions (tearsheets) des news ---------- */
.tearsheets { position: relative; margin: 1.5rem 0 2rem; }
.tearsheets__track { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: .5rem; }
.tearsheets__item { margin: 0; flex: 0 0 auto; height: min(62vh, 560px); aspect-ratio: var(--r); max-width: 100%; scroll-snap-align: start; }
.tearsheets__item .gallery__open, .tearsheets__item img { height: 100%; width: 100%; object-fit: contain; background: var(--light); }
.tearsheets__nav { position: absolute; top: 45%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.tearsheets__nav--prev { left: .5rem; } .tearsheets__nav--next { right: .5rem; }
@media (max-width: 600px) { .tearsheets__item { height: 64vw; max-width: 92vw; } }
.cta { margin: 1.5rem 0 2.5rem; }

.tearsheets:not(:has(.tearsheets__item)) { display: none; }

/* ---------- Langues ---------- */
.lang-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin-right: .6rem; font-size: .95rem; letter-spacing: .05em; text-decoration: none; border: 1px solid var(--line); padding: 0 .6rem; }
.site-header__actions { display: flex; align-items: center; }
.lang-banner { display: flex; align-items: center; justify-content: center; gap: 1rem; background: var(--light); padding: .5rem var(--gutter); font-size: .95rem; }
.lang-banner[hidden] { display: none; }
.lang-banner p { margin: 0; }
.lang-banner__close { background: none; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; min-width: 44px; min-height: 44px; }

/* ---------- Ajustements responsive / accessibilité (cibles tactiles ≥ 44 px) ---------- */
.visually-hidden { width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; }
.socials a { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
.socials { gap: 0; }
@media (max-width: 900px) {
  .filters a, .read-more, .meta a, .breadcrumb a, .site-footer__links a, .site-nav a { display: inline-block; padding-block: .55rem; }
  .pager a { padding-block: .6rem; }
}

/* Bandeau d'offre (boutique) */
.promo-banner { background: #8b1e1e; color: #fff; text-align: center; padding: 1.1rem var(--gutter) 1.2rem; line-height: 1.35; }
.promo-banner p { margin: 0; }
.promo-banner__lead { font-family: var(--font-heading); font-size: clamp(1.25rem, 2.6vw, 1.7rem); margin-bottom: .35rem !important; }
.promo-banner__offer { font-size: clamp(1rem, 1.8vw, 1.15rem); letter-spacing: .01em; }
.promo-banner a { color: inherit; text-decoration: underline; text-underline-offset: .2em; font-weight: 600; white-space: nowrap; margin-left: .4em; }
.promo-lead { text-align: center; color: #8b1e1e; max-width: 40rem; margin: .5rem auto 2.5rem; padding: 1.6rem 1rem; border-top: 1px solid #e3c9c9; border-bottom: 1px solid #e3c9c9; }
.promo-lead p { margin: 0; }
.promo-lead__line1 { font-family: var(--font-heading); font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.2; margin-bottom: .6rem !important; }
.promo-lead__line2 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); }
/* Pastille de Noël sur les vignettes (pages Tirages numérotés / Open édition) */
.promo-badge { position: absolute; top: .8rem; right: .8rem; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 5.6rem; height: 5.6rem; border-radius: 50%; background: #8b1e1e; color: #fff; font-size: .8rem; line-height: 1.15; text-align: center; letter-spacing: .02em; box-shadow: 0 2px 8px rgba(0,0,0,.25); transform: rotate(-8deg); }
.promo-badge strong { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 600; line-height: 1; }
@media (max-width: 600px) { .promo-badge { width: 5rem; height: 5rem; } .promo-badge strong { font-size: 1.4rem; } }
