/* Free sections (« Les cours », « Tarifs »…): neutral rules that inherit each layout's fonts and colours.
   Loaded before css/style.css, so a layout can restyle .x-section if needed. */
.x-head { max-width: 46rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.x-lead { max-width: 44rem; margin: .6rem 0 0; font-size: 1.12rem; line-height: 1.6; }
.x-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.8rem clamp(1.2rem, 3vw, 2.6rem); }
.x-item { padding-top: 1.1rem; border-top: 2px solid color-mix(in srgb, currentColor 22%, transparent); }
.x-item h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); line-height: 1.2; }
.x-item p { margin: .5rem 0 0; }
.x-item .x-meta { margin: 0 0 .55rem; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }

/* Blocks every layout shares (D-057): gallery of the client's photos, price list, team, questions, and the
   « à compléter » cards. Same neutral rules: fonts and colours come from the layout. */
.x-section ul { list-style: none; margin: 0; padding: 0; }
.x-section h3 { margin: 0; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.25; }
.x-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: clamp(.6rem, 1.5vw, 1rem); }
.x-gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.x-gallery[data-count="2"] { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.x-prices { max-width: 46rem; display: grid; gap: 1.15rem; }
.x-price-row { display: flex; align-items: baseline; gap: .8rem; }
.x-price-dots { flex: 1; min-width: 1.5rem; border-bottom: 2px dotted color-mix(in srgb, currentColor 30%, transparent); transform: translateY(-.25em); }
.x-price { flex: none; font-size: 1.1rem; white-space: nowrap; }
.x-prices p { margin: .25rem 0 0; max-width: 38rem; opacity: .85; }
.x-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.6rem clamp(1.2rem, 3vw, 2.4rem); }
.x-team li { display: flex; gap: 1rem; align-items: flex-start; }
.x-avatar { flex: none; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: var(--primary); color: var(--primary-ink); font-size: 1.35rem; font-weight: 700; text-transform: uppercase; }
.x-team p { margin: .35rem 0 0; }
.x-team .x-role { margin-top: .15rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.x-faq { max-width: 46rem; border-top: 2px solid color-mix(in srgb, currentColor 18%, transparent); }
.x-faq details { border-bottom: 2px solid color-mix(in srgb, currentColor 18%, transparent); }
.x-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 0; cursor: pointer;
  list-style: none; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); font-weight: 600; line-height: 1.35; }
.x-faq summary::-webkit-details-marker { display: none; }
.x-faq summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 400; line-height: 1; }
.x-faq details[open] summary::after { content: "–"; }
.x-faq summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.x-faq p { margin: 0 0 1.2rem; max-width: 40rem; }
.x-pending { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.x-pending li { padding: 1.1rem 1.2rem 1.2rem; border: 2px dashed color-mix(in srgb, currentColor 35%, transparent); border-radius: 12px; }
.x-pending p { margin: .4rem 0 0; font-size: .95rem; }
.x-todo { display: inline-block; margin-bottom: .6rem; padding: .1em .55em; border-radius: 4px; background: #fff3c4; color: #6b4e00;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
@media (max-width: 520px) { .x-price-row { flex-wrap: wrap; } .x-price-dots { display: none; } .x-price { width: 100%; } }

/* Client logo in the header (uploaded with the form or read on their existing site). Shown on a small
   white plate so that it stays readable on dark headers too; it replaces the decorative initial or icon. */
.site-logo { display: block; flex: none; height: 2.6rem; width: auto; max-width: 9rem; object-fit: contain;
  padding: 3px 6px; background: #fff; border-radius: 8px; box-sizing: content-box; }
.brand:has(> .site-logo) { display: inline-grid !important; grid-template-columns: auto minmax(0, 1fr);
  align-items: center; column-gap: .75rem; }
.brand:has(> .site-logo):has(> .brand-tag) > .site-logo { grid-row: 1 / span 2; }  /* name + tagline */
.brand:has(> .site-logo) > .brand-mark, .brand:has(> .site-logo) > .ic { display: none; }
.site-logo--masthead { height: 4rem; max-width: 12rem; margin: 0 auto .9rem; }
@media (max-width: 600px) { .site-logo { height: 2rem; max-width: 5.5rem; } }

/* Legal page (mentions-legales.html, D-044): the layout's own header and footer around a sober text page.
   A coloured band carries the title, so that layouts whose header sits over a dark hero stay readable. */
.legal-in { width: min(100% - 2 * var(--gutter, 1.25rem), 46rem); margin-inline: auto; }
.legal-hero { padding: clamp(2.6rem, 6vw, 4.5rem) 0 clamp(2.2rem, 5vw, 3.5rem); background: var(--primary); color: var(--primary-ink); }
.legal-hero h1 { margin: 0; max-width: none; color: inherit; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); line-height: 1.1; }
.legal-kicker { margin: 0 0 .7rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.legal-date { margin: 1rem 0 0; font-size: .92rem; opacity: .85; }
.legal-body { padding: clamp(2.4rem, 5vw, 3.8rem) 0 clamp(3rem, 7vw, 5rem); font-size: 1rem; line-height: 1.7; }
.legal-body section + section { margin-top: 2.4rem; }
.legal-body h2 { margin: 0 0 .7rem; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); line-height: 1.25; letter-spacing: 0; }
.legal-body p, .legal-body ul { margin: 0 0 .9rem; max-width: none; }
.legal-body ul { padding-left: 1.2rem; }
.legal-body li + li { margin-top: .3rem; }
.legal-body a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--primary) 60%, currentColor); text-underline-offset: .15em; overflow-wrap: anywhere; }
.legal-todo { white-space: nowrap; padding: .05em .4em; border-radius: 4px; background: #fff3c4; color: #6b4e00; font-size: .92em; font-weight: 600; }
.legal-back { margin-top: 2.6rem !important; }
.legal-links { display: inline-flex; flex-wrap: wrap; gap: .2rem 1rem; margin-left: 1rem; }
.legal-links a { color: inherit; text-decoration: underline; text-underline-offset: .15em; opacity: .9; }
.legal-links a:hover { opacity: 1; }
@media (max-width: 600px) { .legal-links { display: flex; margin: .5rem 0 0; } }

/* Contact form, simple version (D-064): opens the visitor's e-mail program */
.x-form { max-width: 46rem; display: grid; gap: 1rem; }
.x-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.x-field { margin: 0; display: grid; gap: .35rem; }
.x-field label { font-weight: 600; font-size: .95rem; }
.x-field input, .x-field textarea { width: 100%; box-sizing: border-box; padding: .8rem .9rem; border: 1.5px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 10px; background: color-mix(in srgb, currentColor 6%, transparent); color: inherit; font: inherit; }
.x-field textarea { resize: vertical; min-height: 8rem; }
.x-field input:focus, .x-field textarea:focus { outline: 3px solid color-mix(in srgb, currentColor 35%, transparent); outline-offset: 1px; }
.x-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; }
.x-form-direct { font-size: .95rem; }
.x-form-direct a { overflow-wrap: anywhere; }
.x-form-status { margin: 0; padding: .8rem 1rem; border-radius: 10px; font-weight: 600; background: color-mix(in srgb, currentColor 8%, transparent); }
.x-form-status[hidden] { display: none; }
.x-form-note { margin: 0; font-size: .85rem; opacity: .8; }
.x-form-note a { color: inherit; }
.x-form.is-sent .x-form-row, .x-form.is-sent .x-field, .x-form.is-sent .x-form-actions { display: none; }
.x-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Map (C-20): a still picture and a button; Google's map is loaded only after the click */
.x-map { margin-top: 1.4rem; max-width: 40rem; }
.x-map-frame { position: relative; width: 100%; aspect-ratio: 2 / 1; border-radius: 14px; overflow: hidden; background: #f1ece4; color: #6b5d50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; }
.x-map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.x-map-pin { position: relative; width: 2.6rem; height: auto; filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)); }
.x-map-show { position: relative; font: inherit; font-weight: 600; padding: .65rem 1.2rem; border-radius: 999px; border: 0; cursor: pointer; background: var(--primary, #2a1f1a); color: var(--primary-ink, #fff); box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.x-map-show:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.x-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.x-map-note { font-size: .82rem; opacity: .8; margin: .5rem 0 0; line-height: 1.45; }
.x-map-note a { white-space: nowrap; color: inherit; text-decoration: underline; }
@media (max-width: 600px) { .x-map-frame { aspect-ratio: 4 / 3; } }

/* Example reviews (C-21): the mention is visible to visitors, never hidden */
.x-example { display: inline-block; margin: 0 0 .6rem; padding: .2rem .6rem; border-radius: 999px; background: #fff3c4; color: #5c4300; font: 700 .72rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .04em; text-transform: uppercase; }
