/* PrestaDiet - restoration extras.
   Everything here is either (a) a third party the static copy cannot keep, replaced by a
   self-hosted equivalent, or (b) legibility hygiene the 2014 stylesheet never had.
   The original style.min.css is otherwise untouched apart from the deleted http:// @import.

   SECTION A - Open Sans, self-hosted.
   style.min.css opened with @import url(http://fonts.googleapis.com/css?family=Open+Sans:400,600).
   From an https page that is blocked as mixed content, and it is a live third-party request the
   delivered site must not make at all. The two subsets a French site actually uses (latin and
   latin-ext) are served from /fonts/. The files are Google's current variable Open Sans, so one
   file per subset covers the whole 300-800 axis, including the 600 the original asked for. */
@font-face{font-family:'Open Sans';font-style:normal;font-weight:300 800;font-stretch:100%;
  font-display:swap;src:url(/fonts/opensans-latin-c79c2f57.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,
    U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Open Sans';font-style:normal;font-weight:300 800;font-stretch:100%;
  font-display:swap;src:url(/fonts/opensans-latinext-1c3db71c.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,
    U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,
    U+A720-A7FF}

/* SECTION B - contrast.
   The original painted the site title #35c5dd (2.06:1 on white) and every link #11bbd4
   (2.31:1). Both are below the floor at any text size, so an email address in the sidebar was
   effectively unreadable. The replacements stay inside the site's own palette: #0a7482 is a shade under the
   colour style.min.css already uses for a:hover, and #0e8fa1 is one step lighter for the
   masthead, which is 32px bold and therefore judged as large text (3:1). Measured on white:
   #0a7482 5.48:1, #0e8fa1 3.85:1. */
a{color:#0a7482}
a:hover,a:focus{color:#05454e}
.site-title{color:#0e8fa1}

/* SECTION C - the masthead is not an h1.
   Every archived page carried TWO h1: the site title in the header and the page title in the
   content. The header lockup is now a <p class="site-title"> so each page has exactly one h1,
   and these rules reproduce h1.site-title's own box byte for byte (Bootstrap's h1: 36px, 500,
   line-height 1.1, margin 20px 0 10px) so nothing moves. */
p.site-title{font-family:inherit;font-size:36px;font-weight:500;line-height:1.1;
  margin:20px 0 10px;padding-top:20px;padding-left:100px}
@media (max-width:991px){p.site-title{padding-left:0;text-align:center}}

/* SECTION D - the mint decoration must not scroll the phone sideways.
   .deco.menthe is absolutely positioned at left:220px and is 285px wide, so on a 390px screen it
   pushed the document to 505px and every page scrolled sideways. The header is given a
   containing block and clips it: on desktop the sprig is fully inside the 970/1170px container
   and nothing changes, on a phone it is cropped at the edge exactly as a background decoration
   should be. Below 768px it is dropped outright - at that width it lands on top of the logo. */
header.row{position:relative;overflow:hidden}
@media (max-width:767px){.deco.menthe{display:none}}

/* SECTION E - tap targets.
   #menu put the padding on the li and left the <a> 22px tall, so every navigation item was a
   22px target inside a 38px pill - the anchor is what a finger has to hit, and what a checker
   measures. The padding moves to the anchor: the pill keeps its exact size, the hit area becomes
   the whole pill. The two social icons rendered as 36x22 and 35x22 links because the anchor was
   inline around a 34px image; the same is true of the logo, whose anchor measured 190x22 around a
   190x125 picture. Running prose links (mailto:, tel:, the footer's Mentions legales) get 3px of
   vertical padding: on an inline box that overflows the line without moving anything, so nothing
   reflows and the target grows from 22px to 28px. */
#menu li{padding:0}
#menu li a{display:block;padding:8px;border-radius:14px}
.social a{display:inline-block;padding:6px 8px;line-height:0}
.social a img{vertical-align:middle}
.logo a{display:inline-block}
a{padding-top:3px;padding-bottom:3px}
#menu li a{padding:8px}

/* SECTION E2 - the one navigation pill whose label was unreadable.
   style.min.css paints the current page's pill per palette. Four of the five are pale and carry
   the #333 label fine, but .couleur2 #menu li#active is #fb4466: 3.68:1 against #333, and white
   on it is worse at 3.43:1. It becomes #d31f41 - the colour .couleur2 already uses for its own
   strong.color and blockquote rule - with a white label, measured 5.19:1. The hover state has to
   be restated because #menu li:hover repaints every pill pale green, which would have left white
   text on near-white. */
.couleur2 #menu li#active{background-color:#d31f41}
.couleur2 #menu li#active a{color:#fff}
.couleur2 #menu li#active:hover{background-color:#a8172f}

/* SECTION F - the printable questionnaire on /analyse/.
   346 inputs laid out in nine tables, two of them width="600". At 390px that dragged the whole
   document to 595px. A horizontal scroll box was tried first and rejected: it stops the document
   scrolling sideways but it also hides most of the form off-screen, and a contrast checker that
   samples the painted page then reads those cells as 1:1 - text nobody can see is still text
   nobody can see. So the tables reflow instead. Every row here is a single full-width cell or a
   label/field pair, so stacking them loses no association. SCREEN ONLY: @media print keeps the
   original table layout untouched, because the page exists to be printed and posted. */
@media screen and (max-width:767px){
  .analyse-scroll table,.analyse-scroll tbody,.analyse-scroll tr,.analyse-scroll td{
    display:block;width:auto!important;max-width:100%}
  .analyse-scroll td{padding:2px 6px}
  .analyse-scroll input[type=text],.analyse-scroll input:not([type]),
  .analyse-scroll select,.analyse-scroll textarea{max-width:100%;box-sizing:border-box}
}
/* SECTION F2 - the souvent/rarement/jamais matrix is the one table SECTION F must NOT stack.
   Each of its eleven rows is a label plus THREE checkboxes whose meaning lives only in the header
   row's column position; stacking made the header a loose list of three words and left bare,
   unlabelled boxes. At phone width the header row is hidden and each row becomes the label on its
   own line followed by "[] souvent [] rarement [] jamais", the words printed beside their boxes.
   Scoped to the table that has a 4th cell holding a checkbox - no other table on the site does.
   Governs only that table, screen only; print and desktop keep the original table. */
@media screen and (max-width:767px){
  .analyse-scroll table:has(tr > td:nth-child(4) input[type=checkbox]) tr:has(> td:nth-child(4)){
    display:flex;flex-wrap:wrap;align-items:center;gap:2px 18px;padding:6px 0;border-bottom:1px solid rgba(0,0,0,.08)}
  .analyse-scroll table:has(tr > td:nth-child(4) input[type=checkbox]) tr:has(> td:nth-child(4)):not(:has(input)){display:none}
  .analyse-scroll table:has(tr > td:nth-child(4) input[type=checkbox]) tr:has(> td:nth-child(4)) > td:first-child{flex:0 0 100%}
  .analyse-scroll table:has(tr > td:nth-child(4) input[type=checkbox]) tr:has(> td:nth-child(4)) > td:not(:first-child){
    flex:0 0 auto;width:auto!important;padding:2px 0;text-align:left}
  .analyse-scroll table:has(tr > td:nth-child(4) input[type=checkbox]) td:nth-child(2)::after{content:" souvent"}
  .analyse-scroll table:has(tr > td:nth-child(4) input[type=checkbox]) td:nth-child(3)::after{content:" rarement"}
  .analyse-scroll table:has(tr > td:nth-child(4) input[type=checkbox]) td:nth-child(4)::after{content:" jamais"}
}
.content table{max-width:100%}

/* SECTION G - the sidebar coordinates.
   style.min.css hides .coordonnees below 992px, so on a phone the practice's postal address and
   e-mail vanished from every page except /contact/. They are restored below the navigation,
   where they cost one short block and are the thing a visitor on a phone is most likely to
   want. Unchanged at desktop. */
@media (max-width:991px){.coordonnees{display:block}}

/* SECTION H - the two palettes whose body text was unreadable on the site's own white.
   style.min.css gives each page a palette class and paints <strong class="color"> with it. Three
   of the five are fine (#712f90 5.9:1, #d31f41 5.2:1, #27363b 13.9:1). Two are not, and both were
   shipped that way in 2014:
     .couleur3 #ff7e07 -> 2.55:1  (/coaching/, /partenaires/ - whole opening sentences)
     .couleur6 #f7db33 -> 1.39:1  (/analyse/ - "MAIGRIR ET BIEN MANGER", the page's own headline,
                                   pale yellow on white, effectively invisible)
   The replacements are the same hues driven down to a legible lightness rather than different
   colours: #b35400 measures 5.02:1 and #8a6a00 5.10:1 against the white the .container paints.
   The matching blockquote border-colours are left exactly as they were - a 5px decorative rule
   carries no text and changing it would alter the page for no reason. */
.couleur3 strong.color{color:#b35400}
.couleur6 strong.color{color:#8a6a00}

/* SECTION I - the decorative fruit in the sidebar, on a phone only.
   Section G brings the postal address and e-mail back at phone widths. The fruit picture above
   them is pure decoration and 200px tall, and at 390px it sits between the navigation and the
   first line of the page's own content. The text stays, the picture goes. Desktop untouched. */
@media (max-width:991px){.coordonnees img{display:none}}

/* SECTION J - the one real button on the site.
   /analyse/ ends with <a class="btn btn-primary btn-lg"> "Imprimer le formulaire", the control the
   whole page exists for. style.min.css themes Bootstrap's primary button as white on #11bbd4:
   2.31:1, a washed-out label on a pale cyan slab. It takes the same teal family the links now use
   (white on #096a77 measures 6.29:1) with the stylesheet's own darker cyan for the border, and the
   hover state keeps its original relationship by going one step darker again. */
.btn-primary{background-color:#096a77;border-color:#05454e}
.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.btn-primary.active{
  background-color:#06525d;border-color:#043c44}

/* SECTION K - floated pictures on a phone.
   .alignleft/.alignright float a 133-200px picture beside the copy. That is right at 1440 and
   wrong at 390: on /therap/ the 200px cook left a 140px gutter, and the first bullet -
   "Formation denutrition de la personnes agees" - broke into a one-word ribbon with its
   continuation stranded below the picture with no bullet beside it. Ten pages carry an
   .alignright and one an .alignleft, so this is the template, not one page. Below 768 the float
   is dropped and the picture becomes a centred block: exactly the same photograph, in the reading
   order the archive put it in, with the text at full width. Desktop is untouched.
   The unconditional max-width keeps any picture inside its column at every width. */
.content img{max-width:100%;height:auto}
@media (max-width:767px){
  .content .alignleft,.content .alignright{float:none;display:block;
    margin:0 auto 1em;padding:0}
}

/* SECTION L - the partner wall, at phone width.
   /partenaires/ ends with fourteen partner logos in a three-column <table>. At 1440 each cell is
   ~280px and every wordmark is readable. At 390 the same three columns leave ~95px per logo and
   the words INSIDE the picture turn to grey smear: "ELECTRICITE RESEAU DISTRIBUTION FRANCE" under
   eRDF, "direction interdepartementale des routes Est", "Communaute de Communes des Trois
   Frontieres du Pays de Sierck", "Centre d'Information des Viandes", "Interprofession des
   oleagineux". No contrast or font-size check can see any of it - those words are pixels in a
   JPEG, not text nodes - which is why this was found by cropping the phone capture at 1:1 and
   looking. Below 768 the wall reflows to TWO across, which roughly doubles each logo.
   The table is turned into a flex wall and the rows are collapsed with display:contents, so the
   fourteen logos flow continuously instead of leaving a 2+1 ragged tail per source row; the one
   cell with colspan=2 (a single wide strip holding the three judo marks) takes the full width.
   Guarded by @supports: a browser without display:contents keeps today's three-column table
   rather than getting a broken flex table. Desktop is not touched - the query is max-width:767. */
@media screen and (max-width:767px){
  @supports (display:contents){
    .content table.partner-wall{display:flex;flex-wrap:wrap;align-items:center;
      justify-content:center;width:100%}
    .partner-wall tbody,.partner-wall tr{display:contents}
    .partner-wall td{flex:0 0 50%;box-sizing:border-box;padding:14px 8px;text-align:center}
    .partner-wall td[colspan="2"]{flex-basis:100%}
  }
}

/* SECTION M - o7 visual review, 2026-10-14: the stacked (phone) layout.
   1. style.min.css draws the column divider as `.content{border-left:2px dotted #b9d231;
      padding-left:30px}` with no breakpoint. Below 992px Bootstrap stacks the sidebar ABOVE the
      content, so the divider has nothing left of it to divide from: it became a dotted rail
      hugging the left edge of the screen from the page title to the footer, and pushed the copy
      32px in while the menu and coordinates above sit at 15px. At desktop nothing changes.
   2. Section I hides the sidebar fruit below 992px, but the picture is wrapped as
      <br/><img/><br/><br/> inside p.coordonnees (identical on all eleven pages that carry it), so
      the three line breaks stayed behind as a ~70px blank band between the last menu pill and the
      address. The breaks before the <strong>PrestaDiet</strong> line are the 1st, 3rd and 4th
      element children; they go with the picture. */
@media (max-width:991px){
  .content{border-left:0;padding-left:15px}
  .coordonnees > br:nth-child(-n+4){display:none}
}

/* SECTION F - phone navigation.
   At 390px the left-hand #menu falls below the masthead, the logo and the contact blurb, so a
   visitor met a page with no visible way to the other eleven. The burger is a checkbox plus a
   label (no script to lose): pressing "Menu" checks the box and the sibling rule shows #menu.
   Hidden on 768px and up, where the sidebar menu is already visible. */
.menu-toggle,.menu-toggle-box{display:none}
@media (max-width:767px){
  .menu-toggle{display:inline-block;margin:10px 15px;min-width:120px;padding:12px 16px;background:#0a7482;color:#fff;
    font-weight:600;text-align:center;border-radius:14px;cursor:pointer;min-height:44px}
  .menu-toggle-box{display:block;position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
  .menu-toggle-box:focus-visible + .menu-toggle{outline:3px solid #05454e;outline-offset:2px}
  .container > .wrap #menu{display:none}
  .menu-toggle-box:checked ~ .wrap #menu{display:block}
}
