/* 2moiselles.fr : « Vitrine parisienne ». Tokens issus du mood board validé le 2026-11-14. */
:root {
  --noir: #111111;
  --papier: #F7F6F3;
  --eau: #B8D8D0;
  --fuchsia: #E0337A;      /* filets, ficelles, aplats sans texte */
  --fuchsia-txt: #B81F5E;  /* texte des liens et catégories, fond des étiquettes avec texte (5,72:1 sur papier) */
  --gris: #4A4A46;         /* texte secondaire */
  --blanc: #FFFFFF;

  --font-titre: 'Gloock', Georgia, 'Times New Roman', serif;
  --font-texte: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'Courier New', monospace;

  --wrap: 1360px;
  --wrap-hero-int: 1000px;
  --measure-article: 820px;   /* largeur du bloc article (tableaux, figures) */
  --measure-text: 68ch;       /* longueur de ligne du texte courant */
  --gutter: clamp(16px, 4vw, 64px);
  --frame: clamp(8px, 1.3vw, 18px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; }
img { max-width: 100%; height: auto; display: block; }
body {
  background: var(--papier);
  color: var(--noir);
  font-family: var(--font-texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
a { color: var(--fuchsia-txt); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fuchsia-txt); outline-offset: 3px; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--eau); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--eau); color: var(--noir); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 { font-family: var(--font-titre); font-weight: 400; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.2vw, 3.75rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.2; }
.rule { display: block; width: 72px; height: 2px; background: var(--fuchsia); margin-top: 14px; border: 0; }
.etiquette {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  background: var(--noir);
  color: var(--papier);
}
.etiquette--f { background: var(--fuchsia-txt); color: var(--blanc); }
.date, time.date { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--gris); }

/* ---------- En-tête ---------- */
.site-header { background: var(--noir); color: var(--papier); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding-block: 20px 18px; }
.logo { font-family: var(--font-titre); font-size: 1.75rem; color: var(--papier); text-decoration: none; line-height: 1; display: inline-block; }
.logo::after { content: ''; display: block; width: 100%; height: 2px; background: var(--fuchsia); margin-top: 6px; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.site-nav a { color: var(--papier); text-decoration: none; font-weight: 500; padding: 6px 0; display: inline-block; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current='page'] { border-bottom-color: var(--fuchsia); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--noir); color: var(--papier); margin-top: 80px; }
.site-footer .wrap { padding-block: 40px 36px; display: grid; gap: 20px 48px; grid-template-columns: 1fr 1.3fr auto; align-items: start; }
.site-footer .logo { font-size: 1.5rem; }
.site-footer p { color: var(--eau); max-width: 44ch; margin-top: 14px; font-size: 0.9375rem; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--papier); }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(247, 246, 243, 0.25); padding-top: 18px; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--eau); margin: 0; max-width: none; }

/* ---------- Anti-distorsion : wrappers à ratio fixe ---------- */
.img-hero, .img-card, .img-body, .img-portrait { width: 100%; overflow: hidden; background: var(--noir); }
.img-hero { aspect-ratio: 16 / 9; max-height: min(75vh, 44vw); }
.img-hero--3x2 { aspect-ratio: 16 / 9; }
.img-card { aspect-ratio: 16 / 9; }
.img-body { aspect-ratio: 3 / 2; }
.img-portrait { aspect-ratio: 1 / 1; border-radius: 50%; }
.img-hero img, .img-card img, .img-body img, .img-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* ---------- Hero « vitrine » (signature 1/2) ---------- */
.vitrine-sec { padding-top: 0; }
.vitrine { width: 100%; border-block: var(--frame) solid var(--noir); background: var(--noir); }
.vitrine-txt { background: var(--papier); padding: clamp(24px, 3vw, 40px) 0 clamp(8px, 1.5vw, 16px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px clamp(24px, 4vw, 56px); align-items: end; }
.vitrine-txt .meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 14px; align-items: center; }
.vitrine-txt p { font-size: 1.125rem; max-width: 56ch; }
.vitrine-txt--solo { grid-template-columns: 1fr; }

/* ---------- Sections ---------- */
.section { padding-top: 64px; }
.section-titre { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 28px; }
.section-titre .rule { flex-basis: 100%; margin-top: 8px; }
.lead { font-size: 1.1875rem; max-width: var(--measure-text); }

/* ---------- Card : étiquette de prix perforée (signature 2/2) ---------- */
.cards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 40px; padding-top: 6px; }
.card-wrap { position: relative; padding-top: 58px; filter: drop-shadow(0 6px 0 rgba(17, 17, 17, 0.12)) drop-shadow(0 0 1px rgba(17, 17, 17, 0.6)); transition: transform 0.18s ease; }
.card-wrap:hover, .card-wrap:focus-within { transform: translateY(-4px); }
.card-wrap[hidden] { display: none; }
.card-string { position: absolute; top: 0; left: 50%; width: 120px; height: 80px; transform: translateX(-50%); z-index: 2; overflow: visible; pointer-events: none; }
.card-hole { position: absolute; top: 42px; left: 50%; width: 20px; height: 20px; border-radius: 50%; background: var(--papier); transform: translateX(-50%); z-index: 3; box-shadow: inset 0 0 0 3px var(--noir); pointer-events: none; }
.card-tag {
  position: relative;
  background: var(--blanc);
  padding: 46px 22px 42px;
  clip-path: polygon(34px 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%, 0 34px);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 100% repeat-x;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 100% repeat-x;
}
.card-tag .img-card { border: 3px solid var(--noir); }
.card-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 16px 0 10px; }
.card-cat { font-size: 0.9375rem; font-weight: 600; color: var(--fuchsia-txt); }
.card-tag h3 { font-size: 1.5rem; }
.card-tag h3 a { color: var(--noir); text-decoration: none; }
.card-tag h3 a::after { content: ''; position: absolute; inset: 0; }
.card-tag time { display: block; margin-top: 14px; }
.card-tag .card-resume { font-size: 0.9375rem; color: var(--gris); margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .card-wrap { transition: none; } .card-wrap:hover, .card-wrap:focus-within { transform: none; } html { scroll-behavior: auto; } }

/* ---------- Filtre de catégories ---------- */
.filtre { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; padding: 0; list-style: none; }
.filtre button { font: inherit; font-weight: 500; font-size: 0.9375rem; background: transparent; color: var(--noir); border: 2px solid var(--noir); padding: 8px 16px; cursor: pointer; min-height: 44px; }
.filtre button:hover { background: var(--eau); }
.filtre button[aria-pressed='true'] { background: var(--noir); color: var(--papier); }

/* ---------- Fil d'Ariane ---------- */
.fil { padding-top: 22px; font-size: 0.875rem; color: var(--gris); }
.fil ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.fil li + li::before { content: '/'; margin-right: 10px; color: var(--gris); }
.fil [aria-current='page'] { color: var(--noir); }

/* ---------- Article ---------- */
.article { max-width: var(--measure-article); margin-inline: auto; padding-inline: var(--gutter); box-sizing: content-box; }
.article-head { padding-top: 40px; }
.article-head .meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 16px; }
.article-body { padding-top: 32px; }
.article-body > p, .article-body > ul, .article-body > ol, .article-body > blockquote, .article-body > h2, .article-body > h3, .article-body > h4 { max-width: var(--measure-text); }
.article-body p, .article-body li { font-size: 1.125rem; line-height: 1.7; }
.article-body p { margin-top: 1.1em; }
.article-body h2 { margin-top: 2.4em; padding-bottom: 10px; border-bottom: 1px solid var(--noir); }
.article-body h3 { margin-top: 1.9em; }
.article-body h2 + p, .article-body h3 + p { margin-top: 0.9em; }
.article-body ul, .article-body ol { margin-top: 1em; padding-left: 1.4em; }
.article-body li { margin-top: 0.4em; padding-left: 0.2em; }
.article-body li::marker { color: var(--fuchsia-txt); }
.article-body blockquote { margin-top: 1.6em; padding: 4px 0 4px 22px; border-left: 4px solid var(--fuchsia); font-family: var(--font-titre); font-size: 1.375rem; line-height: 1.35; }
.article-body figure { margin: 2.2em 0 0; }
.article-body figure .img-body { border: 3px solid var(--noir); }
.article-body figcaption { font-size: 0.875rem; color: var(--gris); margin-top: 8px; }
.article-body hr { border: 0; border-top: 1px solid var(--noir); margin: 2.4em 0; }

/* Encart « Le mot de N2 » */
.mot-n2 { margin-top: 2em; background: var(--eau); border-left: 6px solid var(--noir); padding: 18px 22px 20px; max-width: var(--measure-text); }
.mot-n2 .etiquette { margin-bottom: 10px; }
.mot-n2 p { margin-top: 0.5em; font-size: 1.0625rem; }

/* Sommaire */
.toc { margin-top: 28px; border: 2px solid var(--noir); background: var(--blanc); padding: 18px 22px 20px; max-width: var(--measure-text); }
.toc h2 { font-size: 1.125rem; border: 0; padding: 0; margin: 0 0 8px; }
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; margin-top: 6px; font-size: 1rem; }
.toc li::before { content: counter(toc, decimal-leading-zero) ' '; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--gris); margin-right: 6px; }
.toc a { color: var(--noir); }
.toc a:hover { color: var(--fuchsia-txt); }

/* FAQ */
.faq { margin-top: 3em; }
.faq > h2 { padding-bottom: 10px; border-bottom: 1px solid var(--noir); }
.faq details { background: var(--eau); margin-top: 12px; border-left: 6px solid var(--noir); }
.faq summary { cursor: pointer; padding: 16px 22px; font-weight: 600; font-size: 1.0625rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-mono); font-size: 1.25rem; line-height: 1.2; }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 22px 18px; }
.faq details p { margin-top: 0.6em; font-size: 1.0625rem; }

/* Articles liés */
.related { margin-top: 3.5em; }
.related > h2 { padding-bottom: 10px; border-bottom: 1px solid var(--noir); }
.related ul { list-style: none; margin-top: 8px; }
.related li { border-bottom: 1px dashed rgba(17, 17, 17, 0.35); }
.related a { display: block; padding: 14px 0; font-family: var(--font-titre); font-size: 1.25rem; color: var(--noir); text-decoration: none; }
.related a:hover { color: var(--fuchsia-txt); }

/* Tableau (TableauMode) */
.tableau-mode { margin-top: 1.8em; overflow-x: auto; border: 2px solid var(--noir); background: var(--blanc); -webkit-overflow-scrolling: touch; }
.tableau-mode table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 1rem; }
.tableau-mode caption { text-align: left; font-family: var(--font-mono); font-size: 0.8125rem; padding: 10px 14px; background: var(--noir); color: var(--papier); caption-side: top; }
.tableau-mode th, .tableau-mode td { text-align: left; padding: 12px 14px; vertical-align: top; border-bottom: 1px solid rgba(17, 17, 17, 0.2); }
.tableau-mode thead th { background: var(--eau); font-weight: 600; border-bottom: 2px solid var(--noir); }
.tableau-mode tbody tr:last-child td { border-bottom: 0; }
.article-body > table { display: block; overflow-x: auto; margin-top: 1.8em; border: 2px solid var(--noir); background: var(--blanc); border-collapse: collapse; }
.article-body > table th, .article-body > table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(17, 17, 17, 0.2); }
.article-body > table th { background: var(--eau); }

/* Page 404 / simple */
.page-simple { padding-top: 56px; max-width: var(--measure-article); margin-inline: auto; padding-inline: var(--gutter); box-sizing: content-box; }
.btn { display: inline-block; margin-top: 22px; background: var(--noir); color: var(--papier); padding: 12px 22px; text-decoration: none; font-weight: 600; border: 2px solid var(--noir); min-height: 44px; }
.btn:hover { background: var(--fuchsia-txt); border-color: var(--fuchsia-txt); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .vitrine-txt { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  /* Menu compact : logo + 4 liens tiennent sur 2 lignes régulières à 390 px */
  .site-header .wrap { padding-block: 14px 12px; gap: 10px 0; }
  .logo { font-size: 1.5rem; }
  .site-nav { flex-basis: 100%; }
  .site-nav ul { flex-wrap: nowrap; justify-content: space-between; gap: 0 10px; }
  .site-nav a { font-size: 0.9375rem; padding: 10px 0; white-space: nowrap; }
  .cards { grid-template-columns: 1fr; gap: 36px; }
  .card-tag { padding-inline: 16px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .section { padding-top: 48px; }
  .article-body p, .article-body li { font-size: 1.0625rem; }
  .img-hero, .img-hero--3x2 { width: 100%; max-height: none; aspect-ratio: 16 / 9; }
  .img-hero:not(.img-hero--3x2) { aspect-ratio: 16 / 9; }
}

@media (max-width: 380px) {
  .site-nav ul { gap: 0 6px; }
  .site-nav a { font-size: 0.875rem; }
}

/* ---------- Filtre : états, statut, repli sans JS ---------- */
.filtre[hidden] { display: none; }
.filtre button:disabled { opacity: 0.4; cursor: not-allowed; background: transparent; }
.filtre-statut { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--gris); margin: -22px 0 28px; min-height: 1.2em; }
.cards-vide { color: var(--gris); }

/* ---------- Rubriques d'accueil ---------- */
.intro-accueil { max-width: var(--measure-text); }
.intro-accueil p + p { margin-top: 1em; }
.lien-fleche { display: inline-block; margin-top: 28px; font-weight: 600; }

/* ---------- Formulaire de contact ---------- */
.contact-form { max-width: 620px; display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.contact-form .form-group { display: flex; flex-direction: column; gap: 6px; }
.contact-form label { font-weight: 600; font-size: 0.9375rem; }
.contact-form input[type='text'], .contact-form input[type='email'], .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 2px solid var(--noir); background: var(--blanc); color: var(--noir); border-radius: 0; min-height: 44px;
}
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-form .btn { align-self: flex-start; margin-top: 4px; cursor: pointer; font: inherit; font-weight: 600; }
.contact-form .btn:disabled { opacity: 0.6; cursor: wait; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-statut { font-weight: 600; min-height: 1.4em; }
.contact-statut.ok { color: #1E6B3A; }
.contact-statut.ko { color: #A31515; }

/* ---------- Pages texte (à propos, mentions) ---------- */
.page-texte { max-width: var(--measure-article); margin-inline: auto; padding-inline: var(--gutter); box-sizing: content-box; }
.liste-piliers { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; padding: 0; }
.liste-piliers a { font-weight: 600; }
