/* ============================================================================================
   restore-extras.css - osteopathie-guichard-angers.com
   Loaded AFTER /css/main_style-*.css, which is the archived 2013 PIXELE stylesheet and is left
   byte-honest. Everything here is hygiene the original never had, in two groups:

     R. REFLOW.  main_style.css is a fixed 1040px canvas with 113 rule blocks and ZERO @media
        queries, and the pages nevertheless declare <meta name="viewport" content="width=
        device-width>. That pairing is the trap this project has already paid a day for: the
        phone is told to lay out at 390px, the canvas insists on 1040, and the page scrolls
        sideways with the right-hand third of every line off screen. The alternative - pinning
        the viewport to width=1040 - is the "hold a magnifying glass to the screen" complaint,
        so the viewport stays honest and the layout is taught to fold instead.
        Nothing here changes the desktop rendering: every rule sits inside a max-width query at
        or below 1080px, which is under the 1040px canvas plus its scrollbar.

     L. LEGIBILITY.  Measured, not guessed, against qa_legibility's blocking floors: 11px footer
        copy (blocks under 12px), #CCC on white at 1.61:1 (blocks under 1.6), and sidebar,
        breadcrumb and footer links whose inline box is ~16px tall (blocks under a 24px tap
        target). The brand turquoise #30ABB3 is kept everywhere it is large; where it carries
        20px or smaller text it is replaced by #146D73, the same hue darkened until it clears
        4.5:1 on both grounds the theme uses - 6.15:1 on white, 4.75:1 on the #E2E2E2 panels.
   ============================================================================================ */

/* A slide parked outside the frame is not on the page. visibility, not display, so the plugin can
   still measure it. Set from the homepage's inline script; see the comment there. */
#slider li[data-off] { visibility: hidden; }

/* ---------- L. the dark plate that was never meant to be seen ---------- */
/* .main carries background-color:#161616 and contains nothing but floats, so on the 1040px canvas
   it has zero layout height and the colour never paints - the page reads white. The reflow below
   takes .header/.bloc2/.footer out of the float context, which gives .main height for the first
   time in thirteen years and turned the whole phone layout black behind white-on-turquoise
   chrome. It also poisons every contrast measurement even on desktop, because a checker walking
   up the ancestors finds #161616 and reports #666 body copy at 3.15:1 against a ground the
   reader never sees. Removing a colour that never painted changes no pixel and makes the
   measurement true. */
.main { background-color: transparent; }

/* ---------- L. labels that live on a sprite, not in the type ---------- */
/* .home, .next and .link are image buttons: main_style.css pushes their words off-screen with
   text-indent:-5000px and paints the label into the PNG. The box stays where it was, so a
   contrast probe removes the text colour, sees no pixel change and reports 1:1 - "invisible
   text" - on three controls that are perfectly visible. text-indent:-5000px is also the 2005
   version of this technique and it is read aloud by nothing: the label now sits in a properly
   clipped span, which is both what the checker recognises and what a screen reader wants. */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- L. text that was too small or too faint to read ---------- */

.footer .fl .texte {              /* was 11px #999 - the practice address and telephone */
  font: 13px/18px arial;
  color: #5F5F5F;
}

.footer .f2 {                     /* was 11px #CCC on white = 1.61:1, effectively invisible */
  font: 13px/20px arial;
  color: #6E6E6E;
}

.footer .f2 a {
  color: #146D73;
  text-decoration: underline;
  display: inline-block;
  padding: 6px 2px;               /* lifts the inline box over the 24px tap-target floor */
}

.footer .f2 a:hover { color: #0E4F54; }

.content .ariane { color: #6A6A6A; }

.content .ariane a {
  color: #146D73;
  display: inline-block;
  padding: 6px 1px;
}

.header .top .ct {                /* CONTACT & TARIFS, an 18px-tall hit area at the top right */
  padding: 8px 2px;
  color: #4F4F4F;
}

/* Sidebar and sub-menu links: one <a> alone in its <li>, so a finger has 16px to aim at, and
   they were #666 - the same colour as the prose around them, with no underline. */
.liens ul li a,
.smenu ul li a {
  display: block;
  color: #146D73;
  padding: 7px 0 7px 14px;
}

.liens ul li a:hover,
.smenu ul li a:hover { color: #0E4F54; }

.liens ul li { background-position: 2px 13px; }

.smenu ul li { height: auto; min-height: 37px; line-height: 22px; }

.liens div,
.smenu div { color: #146D73; }     /* 20px panel headings, 2.14:1 on #E2E2E2 before this */

.content p a { color: #146D73; }

/* The tariff table's service names are .content tr .a - 14px in the brand turquoise on white,
   2.76:1. This is the one place the "turquoise under 20px becomes #146D73" rule above was not
   applied, and it is the page that carries the three published prices. 6.15:1 after. */
.content tr .a { color: #146D73; }

/* The three authored pages (404, privacy, cookies) list their links inside <li>, which no rule in
   main_style.css reaches, so they rendered in the browser default #0000EE with an underline - ten
   bright blue links down the middle of the 404 page, on a site with no other blue anywhere. */
.o5-legal a { color: #146D73; }
.o5-legal a:hover { color: #0E4F54; }
.o5-legal li a { display: inline-block; padding: 4px 0; }

/* The homepage's authored block sits outside .content, so none of the theme's link rules reach it
   and its one anchor rendered in the browser default #0000EE - and #551A8B once visited - on a site
   whose only other colour is turquoise. Same treatment the legal pages already got. */
.content-wraparea a { color: #146D73; }
.content-wraparea a:visited { color: #146D73; }
.content-wraparea a:hover { color: #0E4F54; }

.content h1,
.content h3,
.header .top .titre { color: #2A9AA1; }  /* 45/35/30px: 2.63:1 -> 3.37:1, large-text floor is 3.0 */

/* The teaser-card caption plate is bg_trans.png - the brand turquoise at 50% - carrying WHITE
   20px type. Over the pale half of a photograph that lands at 2.49:1 where 4.5 is wanted. Same
   hue, darker and less transparent: white on this is 7:1 over anything the ten bandeaux contain. */
.block .visu .overtxt { background: rgba(20, 109, 115, .86); }

/* ---------- R. reflow: below the 1040px canvas ---------- */

@media (max-width: 1080px) {
  .main { width: auto; max-width: 1040px; }

  /* display:flow-root, not block. Taking these four out of the float context is what lets them be
     fluid, but every one of them CONTAINS floats (.top, .menu, .fl, .f2), and a plain block does
     not enclose its floats - it collapses to zero height. The footer then rode up the page and
     painted itself over the sidebar panels and the teaser captions; the only reason nothing looked
     wrong in a screenshot is that the footer is mostly white. It was visible to the contrast
     checker, which reported thirteen elements on the homepage as unphotographable at 390 because
     document.elementFromPoint kept returning DIV.footer for text 400px above it.
     clear:both keeps each band below the one before it. */
  .header, .bloc1, .bloc2, .footer {
    width: auto; float: none; clear: both; display: flow-root;
    padding-left: 20px; padding-right: 20px; box-sizing: border-box;
  }

  /* A PERCENTAGE SPLIT WAS THE WRONG SHAPE and it is what made the 821-1001px band scroll
     sideways. 34% of an 860px window is a 259px sidebar, and the sidebar's contents are not
     fluid: .liens ul li is a hard 270px, .smenu div is a float whose min-content is 303px (the
     word DYSFONCTIONNEMENTS at 20px plus its 60px icon gutter, and a float cannot shrink below
     min-content). Both simply hung out of the page - measured right edge 882 on an 860 viewport.
     The sidebar is 320px BY DESIGN in every archived rule, so give it 320px and let the text
     column take the remainder: nothing inside it has to shrink, no photograph is upscaled, and
     at 1040 this reproduces the archived 680 + 320 split exactly rather than approximating it. */
  .bloc3   { width: calc(100% - 340px); padding: 0 0 0 20px; box-sizing: border-box; }
  .colonne { width: 340px; padding: 0 20px 0 0;  box-sizing: border-box; }

  .liens, .smenu, .block, .block .visu, .block p { width: 100%; box-sizing: border-box; }
  .liens div, .liens ul { width: auto; float: none; padding-left: 44px; }
  /* The hard 270px on the sidebar list item is the thing that made this site scroll sideways, and
     giving .colonne its designed 320px only hid it above 821px. Below that the column is the page
     and the 12px gutter leaves 252px, so the 270 came back - 6px of sideways scroll at 320px wide,
     on the homepage only. Fluid, once, for every width. */
  .liens ul li { width: 100%; box-sizing: border-box; }
  .block .visu img { width: 100%; height: auto; float: none; display: block; }
  .block .visu .overtxt { width: 100%; box-sizing: border-box; }

  /* THE SLIDER IS THE ONE THING CSS ALONE CANNOT FOLD. jquery.sudoSlider (2012) measures its
     container at init; give it a width without a matching DEFINITE height and it writes
     width:1e7px / height:3.8e6px straight onto #slider - a ten-million-pixel strip that made
     document.scrollWidth 10000012 on a 390px screen. So every breakpoint hands it a box with both
     dimensions resolved, at the theme's own 1000x380 aspect, and .diapo clips whatever the plugin
     does inside. Measured, not assumed: the 1e7 is what the browser reported before this rule. */
  .diapo { width: 100%; height: auto; overflow: hidden; }
  #slider, #slider li { width: 100%; height: clamp(200px, calc((100vw - 40px) * 0.38), 380px); }
  #slider li img { width: 100%; height: 100%; object-fit: cover; }
  .bandeau { width: 100%; }

  .content .bb, .content table, .cform { width: 100%; max-width: 100%; box-sizing: border-box; }
  .content .list li, .content .col .list li { width: 100%; box-sizing: border-box; }
  .footer .fl, .footer .f2 { width: 100%; box-sizing: border-box; }

  img { max-width: 100%; }
}

/* ---------- R. two teaser cards stay two, until a phone ---------- */
/* .block is a 320px card holding a 320px-wide photograph. The max-width:1080 block widens it to
   100% of its column, which on the HOMEPAGE stacks the two cards and blows a 320px JPEG up to
   600px at 960 and 728px at 768 - a 2.3x upscale, and it looks it. Two-up costs nothing above a
   phone: 290px each at 960, 270px at 600, both at or under the photograph's real size. Only the
   homepage has .block as a direct child of .bloc3; the sidebar teasers on interior pages are
   inside .colonne and keep their full width. Below 481px one card per row is right. */
@media (min-width: 481px) and (max-width: 1080px) {
  .bloc3 > .block { width: calc(50% - 10px); margin: 20px 20px 0 0; }
  .bloc3 > .block + .block { margin-right: 0; }
}

/* ---------- R. the interior-page sidebar teaser stays native size, not column-width ----------
   The independent reviewer caught this after the homepage fix above shipped: the fix only reaches
   `.bloc3 > .block` (the homepage), but the SAME 320px photograph sits inside `.colonne` on 16
   interior pages, one card per page. Below 821px `.colonne` folds to the full content column (the
   max-width:820 rule further down), and the width:100% given to every `.block` at line ~168
   stretches with it: 441px @481 (1.38x) up to 780px @820 (2.44x), soft enough to see in a
   screenshot (the hand and drawstring in p1 turn to mush at 820). `.colonne .block` outranks the
   bare `.block` on specificity, so capping it here re-covers the photograph's own 320px at every
   width from 481 to 1080 without touching the homepage rule above or the <481px full-bleed tier,
   where the same cap simply means no upscale at all (previously 366-456px, 1.14-1.43x). */
.colonne .block { max-width: 320px; }

/* ---------- R. the tablet band, 821-1080px: the widths no gate ever looks at ----------

   qa_legibility, qa_interactions and qa_invariance all run at 1440 and 390. The fold below runs
   at <=820 and the archived canvas is honest at >=1002, so the ~180px band between them was green
   everywhere and broken on all 19 pages. An independent review measured three defects there, and
   they were re-measured here before being touched (_scripts/tmp_gu_band.js):

     1. THE NAVIGATION LOST A DESTINATION. .header .menu and its <ul> are both height:74px, and the
        six items need ~1000px of row. Below 1002 the sixth - QUI SOMMES NOUS ? / FORMATION &
        EXPERIENCES, the only nav route to /notre-experience/ - wrapped onto a second row that
        starts exactly at the bar's bottom edge: unpainted, and elementFromPoint at its own centre
        returned the bandeau IMG, so it was not clickable either. No overflow, no contrast problem,
        nothing for a machine to see. Fixed by letting the bar GROW instead of clip.
     2. THE MASTHEAD COLLIDED WITH "CONTACT & TARIFS" from 821 to 960 - .titre is absolutely
        positioned at left:210px and is 571px wide at 45px, .ct is pinned to the right edge, and
        below 981 the two boxes intersect and the words print on top of each other.
     3. Sideways scroll 821-920, fixed in the max-width:1080 block above.

   The band is not exotic: it holds iPad Air and iPad Pro 11in in portrait (834) and every desktop
   window under ~1000px, which includes half of a 1920 screen (960). */

@media (min-width: 821px) and (max-width: 1080px) {

  /* A BAR THAT GROWS. The <ul> becomes a wrapping flex row so a sixth item that does not fit takes
     the bar's height with it instead of falling out of the back of it. bg_menu_off.png is a 74px
     gradient that repeats sideways ONLY, so a second row would show the page behind it: the strip
     gets its own bottom pixel (#31ACB5, sampled from the sprite) as a background colour underneath,
     which continues the gradient's last row with no visible seam. */
  .header .menu { height: auto; background-color: #31ACB5; }
  .header .menu ul { height: auto; display: flex; flex-wrap: wrap; align-items: stretch; }
  .header .menu ul li { float: none; height: auto; display: flex; align-items: stretch; }
  .header .menu ul li .bar { float: none; height: auto; min-height: 74px; }
  .header .menu ul li .l {
    float: none; height: auto; display: flex; flex-direction: column; justify-content: center;
    padding: 10px 9px; min-height: 74px; box-sizing: border-box;
  }
  /* Slightly tighter type keeps all six on one row down to ~880px, so the wrap above is the
     safety net rather than the normal state. 21/17px still clears every legibility floor. */
  .header .menu ul li .l div  { font-size: 21px; line-height: 24px; }
  .header .menu ul li .l span { font-size: 17px; line-height: 20px; }
  .header .menu ul li .home { margin: 15px 12px; }

  /* A TITLE THAT GETS OUT OF THE WAY. Solved from the measurement rather than stepped by hand:
     the title box starts at x=210 inside a container inset 20px, and .ct occupies the last 175px,
     so the title may be (100vw - 460)px wide at most. It is 12.7x its font-size wide, hence the
     divisor. min() keeps 45px wherever 45px fits, so 1040-1080 renders exactly as the archive did
     and only the widths that would collide are reduced. Centred in the 85px plate instead of
     pinned to top:20px, because a smaller line at a fixed top sits high in the band. */
  .header .top .titre {
    font-size: min(45px, calc((100vw - 460px) / 12.9));
    line-height: 1.1;
    top: 0; height: 85px; display: flex; align-items: center;
  }
}

/* ---------- R. one column, and a header that folds ---------- */

@media (max-width: 820px) {
  /* THE GUTTER. .header, .bloc2 and .footer carry 20px of horizontal padding; .bloc3 and .colonne
     carried none, so once they went full-width every breadcrumb, <h1>, paragraph and bullet on the
     site started at x=0 - hard against the edge of the screen - while the practice name above them
     and the address below them were inset. Measured with _scripts/tmp_gu_gutter.js: h1@0 and
     para@0 against footer@20 at 768/600 and against footer@12 at 480/390/360, on every page.
     One gutter for the whole page, matching the bands above and below. */
  .bloc3, .colonne {
    width: 100%; float: none; clear: both; display: flow-root;
    padding: 0 20px; box-sizing: border-box;
  }

  /* The 1000x85 logo plate and the 45px practice name are absolutely positioned at left:210px
     over a background image that is wider than the screen. Unpin both. */
  .header .top {
    height: auto; min-height: 0; padding: 0 0 8px 0;
    background-position: left top;      /* the 1000x85 plate keeps its size and simply clips: the
                                           logo lives in its first 215px, the rest is a gradient */
  }
  .header .top .titre {
    position: static; padding: 92px 0 4px 0;   /* clear of the 85px logo plate */
    font-size: 28px; line-height: 32px;
  }
  .header .top .ct { position: static; display: inline-block; }

  /* Six menu items of 24px + 20px text will not sit on one row of a phone. bg_menu_off.png is a
     74px strip that repeats sideways only, so a stacked menu would show turquoise for one row and
     the page behind it for the other five: the strip gets a colour from its own gradient under it. */
  .header .menu, .header .menu ul { height: auto; }
  .header .menu { background-color: #3BB7C0; }
  .header .menu ul li { float: none; width: 100%; height: auto; }
  .header .menu ul li .bar { display: none; }
  .header .menu ul li .l {
    float: none; display: block; height: auto;
    padding: 11px 14px; border-top: 1px solid rgba(255, 255, 255, .38);
  }
  .header .menu ul li .l div  { font-size: 20px; line-height: 24px; }
  .header .menu ul li .l span { font-size: 16px; line-height: 20px; }
  /* Stacked, the icon-only home button is a 68px band of turquoise with a 44px house in the
     corner and nothing else - it reads as an unfinished row rather than as a menu item. Give it
     the same shape as its five siblings; the label is generated, so the sprite keeps its job and
     the sr-only text in the markup is untouched. */
  .header .menu ul li .home {
    display: block; width: auto; height: auto; text-indent: 0; margin: 0;
    padding: 11px 14px; background: none; text-decoration: none;
    font-family: 'Hel', sans-serif; font-size: 20px; line-height: 44px; color: #FFF;
  }
  /* btn_home.png is a 44x88 two-state sprite; drawn on a pseudo-element it keeps both states
     instead of bleeding the orange half into a taller box. */
  .header .menu ul li .home::before {
    content: ""; float: left; width: 44px; height: 44px; margin: 0 12px 0 0;
    background: url(/img/btn_home-aebcc6a5.png) no-repeat top;
  }
  .header .menu ul li .home:hover::before { background-position: bottom; }
  .header .menu ul li .home::after { content: "ACCUEIL"; }
  .header .menu ul li .home:hover { background: #31ACB5; }

  /* The bandeau crops a 1000x380 photograph to a 240px window by pulling it up 70px. At phone
     width the photograph is 148px tall, so the crop would show almost nothing: let it be a
     picture instead. */
  .bandeau { height: auto; }
  .bandeau img { position: static; width: 100%; height: auto; top: auto; left: auto; }
  .bandeau .t1, .bandeau .t2,
  #slider li .t1, #slider li .t2 {
    font-size: 30px; line-height: 34px; left: 10px; bottom: 46px; padding: 0 8px;
  }
  .bandeau .t2, #slider li .t2 { bottom: 8px; }

  .diapo .next { top: auto; bottom: 12px; right: 12px; }

  .content { padding-right: 0; }
  .content h1 { font-size: 28px; line-height: 32px; }
  .content h2, .content h3 { font-size: 24px; line-height: 28px; }
  .content .col { width: 100%; padding-right: 0; }
  .content table td { display: block; width: 100%; border-bottom: 0; }
  .content table tr td:last-child,
  .content thead td:last-child { border-bottom: 1px solid #CEDBDF; padding-bottom: 10px; }
}

@media (max-width: 480px) {
  .header, .bloc1, .bloc2, .footer,
  .bloc3, .colonne { padding-left: 12px; padding-right: 12px; }
  #slider, #slider li { height: calc((100vw - 24px) * 0.38); }
  .header .top .titre { font-size: 24px; line-height: 28px; }
  .bandeau .t1, .bandeau .t2,
  #slider li .t1, #slider li .t2 { font-size: 22px; line-height: 26px; bottom: 44px; }
  .bandeau .t2, #slider li .t2 { bottom: 10px; }
}

/* ---------- the contact panel that replaced the dead POST form ---------- */

.cbloc {
  float: left; width: 100%; box-sizing: border-box;
  border: 1px solid #CEDBDF; padding: 18px 20px; margin: 20px 0 0 0;
}
.cbloc .titre {
  font-family: 'Hel', sans-serif; font-size: 24px; line-height: 28px;
  text-transform: uppercase; color: #2A9AA1; display: block; margin: 0 0 10px 0;
}
.cbloc p { float: none; margin: 0 0 10px 0; font: 14px/22px arial; color: #666; }
.cbloc .tel {
  display: inline-block; font: 24px/30px arial; color: #146D73;
  text-decoration: none; padding: 6px 0;
}
.cbloc .tel:hover { text-decoration: underline; }
.cbloc address { font-style: normal; font: 14px/22px arial; color: #666; }

/* O7 REVIEW (2026-10-14). The authored pages' lists were coloured above but never given a FONT:
   main_style.css sets `font:14px arial` on .content p and on .content .list li only, and the
   .o5-legal <ul> has no class, so every list item - the ten page links on the 404 - fell back to the
   browser's default Times beside Arial paragraphs. Same face, size and grey as .content p. */
.content .o5-legal li { font: 14px/18px arial, sans-serif; color: #666; }
/* The generator's .o5-legal{padding:1.5em 1em 2.5em} insets the authored pages' heading and text
   16px right of every other page's (x=246 against 220 at 1440); .content already provides the
   gutter. Keep the vertical padding, drop the sideways one. */
.content .o5-legal { padding-left: 0; padding-right: 0; }
