/* Maison Ancolie : mise en page de magazine.
   Les photos portent le site ; la typographie reste nette ; le rose ne sert qu'aux actions. */

:root {
  --page: #fbfaf9;     /* blanc cassé neutre */
  --ink: #171314;      /* noir légèrement chaud */
  --muted: #625a5c;    /* texte secondaire (contraste 6,4:1) */
  --line: #e4dfdf;
  --rose: #b8365f;     /* rose profond : liens, boutons (contraste 5,4:1) */
  --blush: #f6e3e8;    /* rose pâle : le seul aplat de couleur */

  --display: "Gloock", "Didot", Georgia, serif;
  --text: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 78rem;
  --gutter: clamp(1rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--text);
}

a { color: var(--rose); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--page); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* En-tête : logotype à gauche, menu à droite */
.site-header {
  max-width: var(--wrap); margin: 0 auto; padding: 1.4rem var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem;
}
.brand {
  font: 400 1.7rem/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -.01em;
}
.site-header ul { display: flex; flex-wrap: wrap; gap: 0 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-header nav a {
  display: inline-block; padding: .7rem 0; font-size: .92rem; font-weight: 500;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent;
}
.site-header nav a:hover { color: var(--rose); }
.site-header nav a[aria-current="page"] { border-bottom: 2px solid var(--rose); }
.site-header .nav-cta { color: var(--rose); }
.brand-rose { color: var(--rose); }

/* Ouverture : photo bord à bord, puis titre et chapeau côte à côte */
.hero-frame { margin: 0; }
.hero-frame img {
  display: block; width: 100%; height: clamp(16rem, 62vh, 40rem); object-fit: cover;
}
.hero-frame figcaption { max-width: var(--wrap); margin: 0 auto; padding: .5rem var(--gutter) 0; }
.hero-text {
  max-width: var(--wrap); margin: 0 auto; padding: 2.5rem var(--gutter) 1rem;
  display: grid; gap: 1rem 3rem;
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.edge { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); margin: 0; }
.hero h1 { font: 400 clamp(2.3rem, 5.6vw, 4.6rem)/1.02 var(--display); letter-spacing: -.02em; margin: 0; }
.intro { font-size: 1.2rem; line-height: 1.55; color: var(--muted); margin: 0; max-width: 34rem; }
@media (min-width: 900px) {
  .hero-text { grid-template-columns: 7fr 4fr; align-items: end; }
  .hero-text > :not(.intro) { grid-column: 1; }
  .intro { grid-column: 2; grid-row: 1 / span 3; align-self: end; padding-bottom: .4rem; }
}

/* Photos */
.frame { margin: 0; }
.frame img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  background: linear-gradient(150deg, #e9d3d9 0%, #d7c3c4 50%, #f1e2e4 100%);
  color: transparent; /* masque le texte de remplacement tant que la photo manque */
}
.frame figcaption { font-size: .82rem; color: var(--muted); padding-top: .5rem; }
.frame figcaption::before { content: ""; display: inline-block; width: .9rem; height: 1px; background: var(--rose); vertical-align: middle; margin-right: .5rem; }

/* Galerie : rangées justifiées, portraits et paysages mêlés comme dans un magazine.
   --r est le ratio largeur/hauteur de la photo : chaque rangée se remplit sans déformer les images. */
.mosaic { display: flex; flex-wrap: wrap; gap: .6rem; }
.mosaic::after { content: ""; flex: 400 1 0; } /* la dernière rangée s'agrandit un peu, sans devenir géante */
.shot { margin: 0; flex: calc(var(--r) * 100) 1 calc(var(--r) * 9rem); }
.shot img {
  display: block; width: 100%; height: auto;
  background: linear-gradient(150deg, #e9d3d9 0%, #d7c3c4 50%, #f1e2e4 100%);
  color: transparent;
}
@media (min-width: 900px) { .mosaic { gap: .9rem; } .shot { flex-basis: calc(var(--r) * 15rem); } }
.block[id] { scroll-margin-top: 1rem; }

/* Sommaire de la galerie */
.toc { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.2rem; }
.toc li { margin: 0; }
.toc a {
  display: inline-block; min-height: 44px; padding: .65rem 1.1rem; border: 1px solid var(--line);
  font-size: .9rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.toc a:hover { border-color: var(--rose); color: var(--rose); }

/* Sections : intertitre dans la colonne de gauche, texte à droite */
.block { max-width: var(--wrap); margin: 0 auto; padding: 3.5rem var(--gutter); display: grid; gap: 2.5rem; }
.block > * { min-width: 0; }
.block + .block, .faq { border-top: 1px solid var(--line); }
.text { display: grid; gap: 0 3rem; }
.text > * { min-width: 0; max-width: 42rem; }
h2 { font: 400 clamp(1.7rem, 3vw, 2.4rem)/1.12 var(--display); letter-spacing: -.01em; margin: 0 0 1.2rem; }
h2::before { content: ""; display: block; width: 2.5rem; height: 3px; background: var(--rose); margin-bottom: 1rem; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 1.8rem 0 .4rem; }
@media (min-width: 900px) {
  .text { grid-template-columns: 4fr 7fr; }
  .text > h2 { grid-column: 1; grid-row: 1 / span 20; }
  .text > :not(h2) { grid-column: 2; }
  .frame:not(.hero-frame) { width: 64%; justify-self: end; }
  .flip .frame { justify-self: start; }
}

/* La réponse directe, en chapeau */
.answer { font-size: 1.3rem; line-height: 1.5; margin: 0 0 1.2rem; }

ul { padding-left: 1.1rem; }
li { margin-bottom: .4rem; }
li::marker { color: var(--rose); }
strong { font-weight: 600; }
.note { font-size: .82rem; color: var(--muted); }

/* Tableaux */
.table-wrap { overflow-x: auto; margin: 1.4rem 0; }
table { border-collapse: collapse; width: 100%; min-width: 32rem; font-size: .95rem; }
caption { text-align: left; font-size: .82rem; color: var(--muted); padding-bottom: .6rem; }
th, td { text-align: left; vertical-align: top; padding: .75rem .8rem .75rem 0; border-bottom: 1px solid var(--line); }
thead th { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--rose); }
tbody th { font: 400 1.1rem/1.3 var(--display); }
td:last-child { white-space: nowrap; }

/* FAQ */
.faq { max-width: var(--wrap); margin: 2rem auto 0; padding: 3.5rem var(--gutter); display: grid; gap: 0 3rem; background: var(--blush); }
.faq .qa { border-bottom-color: #e8c6d0 !important; }
.faq .qa { padding: 1.1rem 0; border-bottom: 1px solid var(--line); max-width: 42rem; }
.faq h3 { margin: 0 0 .3rem; }
.faq p { margin: 0; }
@media (min-width: 900px) {
  .faq { grid-template-columns: 4fr 7fr; }
  .faq h2 { grid-row: 1 / span 10; }
  .faq .qa { grid-column: 2; }
}

/* Appel à l'action : le seul aplat rose du site */
.cta {
  max-width: var(--wrap); margin: 3rem auto 0; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter);
  background: var(--blush);
}
.cta-title { font: 400 clamp(1.9rem, 4.4vw, 3.4rem)/1.08 var(--display); letter-spacing: -.015em; margin: .7rem 0 1.8rem; max-width: 40rem; }
.cta a, .button {
  display: inline-block; min-height: 44px; padding: .9rem 1.6rem;
  font-size: .95rem; font-weight: 600; text-decoration: none; color: #fff; background: var(--rose);
}
.cta a:hover, .button:hover { background: var(--ink); color: #fff; }

/* Pied de page */
.site-footer {
  max-width: var(--wrap); margin: 0 auto; padding: 3rem var(--gutter) 3.5rem;
  color: var(--muted); font-size: .95rem;
}
.brand-foot { font-size: clamp(2.4rem, 7vw, 4.5rem); margin: 0 0 1.2rem; color: var(--ink); }
.site-footer p { margin: .25rem 0; }
.mention { font-size: .82rem; margin-top: 1.4rem !important; }

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