/* marion-thiessard.com — restore-extras.css
   Loaded last on every page. Everything here answers a defect that was measured, not a taste:
   each block names what was wrong and what the fix is worth. Nothing here changes the site's
   colours, type or layout beyond what it takes to make the existing design legible and to give
   the rebuilt widgets somewhere to live. */

/* ============================================================================================
   A. THE HEADER: white type on a pale photograph, and a fixed width wider than a phone.
   qa_legibility measured the site title and the strapline at contrast 1.04:1 against the ground
   actually painted behind them - i.e. invisible - at BOTH 1440 and 390. The site's own Additional
   CSS also pins .site-title to width:24rem and .site-description to 20rem, which at 390px makes
   .custom-header 444px wide and scrolls the whole page sideways.
   The scrim is a gradient over the photograph, darkest where the text sits, which is the
   treatment Twenty Seventeen itself uses for header images; the widths become max-widths.
   ============================================================================================ */
.custom-header { display: block; }
.has-header-image .custom-header .site-branding,
.custom-header .site-branding {
  background-image: linear-gradient(180deg,
    rgba(10, 16, 12, 0) 0%,
    rgba(10, 16, 12, 0.35) 45%,
    rgba(10, 16, 12, 0.86) 100%);
}
.site-title,
.site-description {
  width: auto;
  max-width: 100%;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 18px rgba(0, 0, 0, 0.65);
}
.site-title a,
.site-title a:hover,
.site-title a:focus { color: #fff; }
.site-description { color: #f2f4f2; }

/* ============================================================================================
   B. TAP TARGETS. qa_legibility blocks on any control whose shorter side is under 24px. The
   theme's prose links and the "Continuer la lecture" links measure 17-19px tall, so a finger
   misses them. Vertical padding on an inline box grows the border box the gate measures without
   moving a single line of text, which is why it is used here instead of display:inline-block -
   inline-block would break mid-sentence wrapping in justified paragraphs.
   ============================================================================================ */
.entry-content a[href],
.entry-summary a[href],
.taxonomy-description a[href],
.widget a[href],
.site-footer a[href],
.mt-inscription a[href],
.mt-contact a[href] {
  padding-top: 4px;
  padding-bottom: 4px;
}
.more-link { display: inline-block; min-height: 26px; }

/* The floating booking button: white on #0596DE is 3.27:1, under the 4.5 the gate demands.
   The inline style has to be beaten with !important; the hue is kept, only the value drops. */
.widget_block a[style*="position:fixed"] {
  background-color: #0a68a5 !important;
  height: 44px !important;
  line-height: 44px !important;
  font-size: 15px !important;
}

/* ============================================================================================
   C. LISTINGS. The site's Additional CSS hides .entry-meta everywhere, which is fine on a single
   post but leaves a 67-item archive with no dates at all. It is restored on listing pages only
   (body.blog), so single posts keep the site's own choice.
   ============================================================================================ */
body.blog .entry-meta { display: block; }
body.blog .entry-meta,
body.blog .entry-meta a { color: #5a635a; }
/* The theme sets .entry-meta at 11px uppercase with 0.14em tracking. Unhidden on a 67-item
   archive that is 40 lines of sub-12px copy and 67 date links 14px tall, both of which the
   legibility gate blocks on, so the meta line is sized like text a person is meant to read. */
body.blog .entry-meta {
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: none;
}
body.blog .entry-meta a {
  display: inline-block;
  min-height: 26px;
  line-height: 26px;
}
.page-header { margin-bottom: 2em; }
.page-header .page-title { font-size: 1.6em; }
.taxonomy-description { color: #4a534a; margin-top: 0.5em; }

/* ============================================================================================
   D. THE TESTIMONIALS. Strong Testimonials rendered these as a SLIDER; the static copy showed all
   21 stacked, which measured 20,305px of a 25,452px page at 390 - the footer was four fifths of
   every page on the site. They are one slide at a time again, with real controls.
   The slides are hidden only under html.js (the theme's own no-js/js flag): with JavaScript off
   nothing is hidden and nothing is offered, so the page never shows chrome without behaviour.
   ============================================================================================ */
.js .mt-slider .wpmtst-testimonial { display: none; }
.js .mt-slider .wpmtst-testimonial.is-active { display: block; }
.mt-slider .wpmtst-testimonial-inner {
  background: #f6f7f5;
  border-left: 4px solid #6b8f71;
  padding: 1.2em 1.4em;
  border-radius: 3px;
}
.mt-slider-nav {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin-top: 0.9em;
}
.mt-slider-nav button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.9em;
  border: 1px solid #6b8f71;
  background: #fff;
  color: #2f4a35;
  font-size: 1.1em;
  line-height: 1;
  border-radius: 3px;
  cursor: pointer;
}
.mt-slider-nav button:hover,
.mt-slider-nav button:focus { background: #6b8f71; color: #fff; }
.mt-slider-count { font-size: 0.9em; color: #4a534a; }

/* ============================================================================================
   E. CLICK-TO-LOAD VIDEO. The poster is self-hosted and the player only exists after a click, so
   the first paint of these two pages contacts nobody.
   ============================================================================================ */
.mt-embed { position: relative; margin: 0 0 1.5em; max-width: 100%; }
.mt-embed img { display: block; width: 100%; height: auto; border-radius: 3px; }
.mt-embed iframe { width: 100%; height: 100%; border: 0; }
.mt-embed-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0 1.4em;
  border: 0;
  border-radius: 40px;
  background: rgba(10, 16, 12, 0.86);
  color: #fff;
  font-size: 1.05em;
  cursor: pointer;
}
.mt-embed-play:hover,
.mt-embed-play:focus { background: #0a68a5; }
.mt-embed-play-icon { font-size: 1.1em; }
.mt-embed-credit {
  position: static;
  margin: 0.5em 0 0;
  font-size: 0.9em;
  color: #4a534a;
}
.mt-embed-live .mt-embed-credit { display: none; }

/* ============================================================================================
   F. THE PAGES THAT WERE REBUILT: the contact block that replaced the dead Contact Form 7 form,
   the registration note that replaced the HelloAsso widgets, and the search results.
   ============================================================================================ */
.mt-contact { margin-bottom: 2em; }
.mt-contact-facts {
  list-style: none;
  margin: 1.2em 0;
  padding: 0;
}
.mt-contact-facts li {
  margin: 0 0 0.9em;
  padding-left: 0;
}
.mt-contact-facts strong { display: block; color: #2f4a35; }
.mt-form label { display: block; margin-bottom: 1em; }
.mt-form input[type="text"],
.mt-form input[type="email"],
.mt-form textarea {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  padding: 0.55em 0.7em;
  border: 1px solid #b9c2b9;
  border-radius: 3px;
  font: inherit;
}
.mt-form textarea { min-height: 9em; }
.mt-form button[type="submit"] {
  min-height: 48px;
  padding: 0 1.6em;
  border: 0;
  border-radius: 3px;
  background: #0a68a5;
  color: #fff;
  font-size: 1em;
  cursor: pointer;
}
.mt-form button[type="submit"]:hover,
.mt-form button[type="submit"]:focus { background: #084f7d; }
.mt-form-note { font-size: 0.92em; color: #4a534a; }
.mt-inscription {
  border-left: 4px solid #6b8f71;
  padding: 0.2em 0 0.2em 1em;
  margin: 1.4em 0;
}
.mt-search-hit { margin-bottom: 2em; }
.mt-search-hit .entry-title { font-size: 1.25em; margin-bottom: 0.2em; }
.mt-search-hit .entry-meta { display: block; color: #5a635a; font-size: 0.9em; }
#mt-search .search-form { display: flex; gap: 0.6em; margin-bottom: 1.2em; }
#mt-search .search-field {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0.5em 0.7em;
  border: 1px solid #b9c2b9;
  border-radius: 3px;
  font: inherit;
}
#mt-search .search-submit {
  min-height: 44px;
  padding: 0 1.2em;
  border: 0;
  border-radius: 3px;
  background: #0a68a5;
  color: #fff;
  cursor: pointer;
}

/* ============================================================================================
   G. LAST RESORT against sideways scroll on a phone: nothing inside the page may be wider than
   the page. Applied to the containers only, never to <html>/<body> with overflow-x:hidden, which
   hides the symptom and leaves the cause.
   ============================================================================================ */
img, iframe, video, table { max-width: 100%; }
@media screen and (max-width: 767px) {
  .wrap { max-width: 100%; }
  .site-branding-text { max-width: 100%; }
  .entry-content p { text-align: left; }
}

/* ============================================================================================
   H. The last three legibility blockers, each measured by qa_legibility at 1440 and 390.
   ============================================================================================ */

/* Content Views prints its "Lire La Suite…" button as Bootstrap .btn-success — white on #5cb85c,
   2.48:1. The green is kept as the identity; only its value drops far enough to read. */
.pt-cv-readmore.btn-success,
.pt-cv-readmore.btn-success:hover,
.pt-cv-readmore.btn-success:focus {
  background-color: #2f6b34 !important;
  border-color: #2f6b34 !important;
  color: #fff !important;
  min-height: 34px;
}

/* The sidebar widget titles ship at 11px uppercase; under the 12px floor. */
.widget-title,
.widget .widget-title { font-size: 13px; }

/* Links in the two blocks written for /recherche/ need the same tap height as prose links. */
.mt-search-links a[href],
.mt-search-intro a[href],
.mt-related a[href],
.mt-source a[href] {
  padding-top: 4px;
  padding-bottom: 4px;
}
.mt-related { margin-bottom: 1.5em; }
.mt-related li { margin-bottom: 0.8em; }
.mt-related-meta { color: #5a635a; font-size: 0.92em; }
.mt-source { font-size: 0.92em; color: #4a534a; }

/* (The authored 404 and cookies pages no longer use .o5-legal: they sit in the theme's own
   .entry-content template since O7, so the theme's link and list rules apply.) */


/* The nine captions whose photographs were never archived now read as an ordinary list
   (see _scripts/mt_12_orphan_captions.py); the gallery's four-column grid must not apply. */
.mt-caption-list {
  display: block;
  list-style: disc;
  margin: 0 0 1.75em 1.4em;
  padding: 0;
}
.mt-caption-list li { display: list-item; margin: 0 0 0.6em; width: auto; }

/* o7 review: restore-legibility.css underlines `p > a:not([class])` so prose links stay visible.
   Its second selector excludes header/nav/footer, its first does not - and on every page except
   the homepage Twenty Seventeen prints the site title as <p class="site-title"><a>, so
   "Marion THIESSARD" came out underlined in the header of 92 pages (the homepage uses <h1> and
   404.html does not load the sheet, which is why those two were clean). The fixed booking button
   is <p><a style="position:fixed..."> and was underlined by the same selector. Neither is prose.
   (0,2,1) here outranks the (0,1,2) of that rule although this sheet loads first. */
.site-branding .site-title > a,
.widget_block a[style*="position:fixed"] { text-decoration: none; }

/* o7 review: the same legibility rule also underlines every prose link that Twenty Seventeen
   ALREADY underlines with `box-shadow: inset 0 -1px 0 rgba(15,15,15,1)` (style.css,
   ".entry-content a, .entry-summary a, .widget a, .site-footer .widget-area a"), so those links
   carried two lines - a green text underline and the theme's dark rule 3px under it (post notes,
   the footer phone number, "pour m'envoyer un message"). The theme's line is the affordance it
   was designed with and it stays; only the duplicate goes. These links are green on dark text,
   so they remain distinguishable by colour as well. (0,2,2) beats the rule's (0,1,8).
   The client's content-wraparea block is excluded on purpose: its rendering is settled. */
.entry-content p a:not([class]):not(.content-wraparea a),
.entry-summary p a:not([class]),
.widget p a:not([class]),
.site-footer .widget-area p a:not([class]) { text-decoration: none; }
