/* Fondation Bon Sauveur de Picauville - restoration stylesheet.
   AUTHORED: the four archived Compoz'it stylesheets are still owed by the fetch lane (see the
   plan _note). Structure, class names and layout intent come from the archived markup itself. */

:root{
  --encre:#1d2b33; --encre-doux:#4a5a64; --bleu:#14495e; --bleu-clair:#0b5c7a;
  --orange:#b8481a; --vert:#5c7a00; --violet:#6b2f8a;
  --trait:#d3dce1; --fond:#eef2f4; --fond-doux:#f7f9fa;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--fond);color:var(--encre);
  font:16px/1.65 "Segoe UI",Roboto,-apple-system,"Helvetica Neue",Arial,sans-serif}
img{max-width:100%;height:auto}
a{color:var(--bleu-clair)}
a:hover,a:focus{color:var(--orange)}
:focus-visible{outline:3px solid var(--orange);outline-offset:2px}

.skip-link{position:absolute;left:-9999px;top:0;background:#fff;color:var(--bleu);
  padding:.7em 1em;z-index:20}
.skip-link:focus{left:0}

#centrage{max-width:960px;margin:0 auto;background:#fff;
  box-shadow:0 0 0 1px rgba(20,73,94,.08),0 2px 14px rgba(20,73,94,.07)}

/* ---- header ---------------------------------------------------------------------------- */
#header{padding:22px 24px 0;border-top:5px solid var(--orange)}
#marque{display:inline-block;text-decoration:none;color:var(--bleu);line-height:1.15}
.marque-nom{display:block;font-size:30px;font-weight:700;letter-spacing:.01em}
.marque-lieu{display:block;font-size:19px;font-weight:400;color:var(--orange)}
.marque-baseline{margin:.5em 0 1.1em;font-size:14px;color:var(--encre-doux);max-width:44em}

#menuhaut{display:flex;flex-wrap:wrap;gap:0;border-top:1px solid var(--trait);
  margin:0 -24px;background:var(--bleu)}
.nav-groupe{flex:1 1 260px;padding:12px 18px 14px}
.nav-groupe+.nav-groupe{border-left:1px solid rgba(255,255,255,.22)}
.nav-titre{margin:0 0 .35em;font-size:12.5px;letter-spacing:.09em;text-transform:uppercase;
  color:#a9d4e6;font-weight:700}
#menuhaut ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:2px 14px}
#menuhaut a{display:block;padding:6px 2px;min-height:26px;color:#fff;text-decoration:none;
  font-size:15px;border-bottom:2px solid transparent}
#menuhaut a:hover,#menuhaut a:focus{border-bottom-color:#ffb590;color:#ffe4d6}
#menuhaut a.actif{border-bottom-color:var(--orange);color:#ffd9c7;font-weight:600}

/* ---- body columns ---------------------------------------------------------------------- */
#centre{display:flex;flex-direction:column;padding:0}
#gauche{order:2;padding:20px 24px;background:var(--fond-doux);border-top:1px solid var(--trait)}
.page{order:1;padding:6px 24px 30px;min-width:0}

@media (min-width:860px){
  #centre{flex-direction:row;align-items:stretch}
  #gauche{order:0;flex:0 0 232px;width:232px;border-right:1px solid var(--trait);border-top:0}
  .page{flex:1 1 auto}
}

/* ---- left column ----------------------------------------------------------------------- */
#rechercherapide{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 18px}
/* label[for] is measured as a tap target: at 12.5px its box is 21px tall, which blocks. */
#rechercherapide label,.recherche-page label{flex:1 0 100%;font-size:12.5px;font-weight:700;
  letter-spacing:.06em;text-transform:uppercase;color:var(--encre-doux);
  display:block;padding:5px 0;min-height:26px}
#rechercherapide input,.recherche-page input{flex:1 1 120px;min-width:0;min-height:40px;
  padding:6px 10px;font-size:16px;border:1px solid #9fb2bc;border-radius:3px;background:#fff;
  color:var(--encre)}
#rechercherapide button,.recherche-page button{min-height:40px;padding:6px 16px;font-size:15px;
  border:0;border-radius:3px;background:var(--bleu);color:#fff;cursor:pointer}
#rechercherapide button:hover,.recherche-page button:hover{background:var(--bleu-clair)}
.recherche-page{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 1.4em;max-width:32em}

#menuvariable ul{list-style:none;margin:0;padding:0}
#menuvariable li{margin:0}
#menuvariable a{display:block;padding:8px 6px;min-height:26px;text-decoration:none;
  color:var(--bleu);font-size:15px;border-bottom:1px solid var(--trait)}
#menuvariable a:hover,#menuvariable a:focus{background:#e6eef2;color:var(--orange)}
#menuvariable a.thememenuactif,#menuvariable a.rubmenuactif{font-weight:700;color:var(--orange)}
#menuvariable ul ul{margin:0 0 6px;background:#fff}
#menuvariable ul ul a{padding-left:16px;font-size:14px;color:var(--encre-doux);
  border-bottom:1px dotted var(--trait)}
#menuvariable ul ul a:hover{color:var(--orange)}

.carte-lien{margin:16px 0 0}
.carte-lien a{display:block;padding:11px 12px;min-height:44px;background:var(--bleu-clair);
  color:#fff;text-decoration:none;border-radius:3px;font-size:15px;font-weight:600}
.carte-lien a:hover,.carte-lien a:focus{background:var(--bleu);color:#fff}
.bloc-contact{margin:18px 0 0;padding:14px 0 0;border-top:2px solid var(--trait);font-size:14px;
  color:var(--encre-doux)}
.bloc-contact p{margin:.4em 0}
.bloc-contact a{display:inline-block;padding:4px 0}
.bloc-titre{font-weight:700;color:var(--bleu);text-transform:uppercase;letter-spacing:.05em;
  font-size:12.5px}

/* ---- breadcrumb ------------------------------------------------------------------------ */
#navigation{margin:0 0 14px;padding:14px 0 10px;border-bottom:1px solid var(--trait)}
#barreprogre{margin:0;font-size:13.5px;color:var(--encre-doux)}
#barreprogre a{color:var(--bleu-clair);display:inline-block;padding:4px 0}
.pageactif{color:var(--encre);font-weight:600}

/* ---- content --------------------------------------------------------------------------- */
.page h1,.page H1{margin:.5em 0 .6em;font-size:27px;line-height:1.25;color:var(--bleu);
  font-weight:700}
.page h2,.page H2{margin:1.6em 0 .5em;font-size:20px;line-height:1.3;color:var(--orange)}
.page h3,.page H3{margin:1.4em 0 .4em;font-size:17px;line-height:1.35;color:var(--bleu)}
.page p{margin:0 0 1em;hyphens:auto;-webkit-hyphens:auto}
.page p a,.page li a,.page td a,.page blockquote a{padding:3px 0}
.page ul,.page ol{margin:0 0 1.1em;padding-left:1.4em}
.page li{margin:.25em 0}
.page blockquote{margin:0 0 1.2em;padding:.2em 0 .2em 1.1em;border-left:3px solid var(--trait)}
.module{margin:0 0 .4em}
.section{margin:0 0 .6em}
hr.sep{border:0;border-top:1px solid var(--trait);margin:1.6em 0}

/* An inline <a> wrapped round a photograph reports its FONT box, not the picture: 205x21 for a
   205x173 image, which reads to the legibility gate as a tap target no finger can hit - and the
   gate is right, because the anchor's own box really is that thin. Anchors that contain only an
   image become inline-block so the box is the picture. */
.lefttop a,.righttop a,.centertop a,figure a,a:has(> img){display:inline-block}
.lefttop{float:left;margin:.3em 1.2em .8em 0;max-width:45%}
.righttop{float:right;margin:.3em 0 .8em 1.2em;max-width:45%}
.centertop{clear:both;margin:1em 0;text-align:center}
.centertop div{max-width:100%!important}
.module::after,.section::after,.ligne::after{content:"";display:block;clear:both}
.legende{margin:.4em auto 0;font-size:13px;color:var(--encre-doux);text-align:center;
  max-width:100%!important}

/* R3: the icon is the site's OWN archived logopdf.gif now (install_images(), strip_dead_downloads),
   an <img> sibling immediately before .document/.document-attente in the same row - not the
   authored inline-SVG data URI this used to draw in its place while the real file sat unused in
   _raw and qa_generated_over_real correctly called that PAINTED OVER. The row div itself
   (.bgbody.telechargement) is the flex container: .document keeps display:block for its
   full-width border-bottom, but a block box never sits BESIDE a preceding inline sibling, so
   without this the icon rendered on its own line and the title dropped below it - one extra
   ~20px line per row, which on /espace-presse/'s 9 stacked press releases pushed the last rows
   900px+ from the explanatory sentence above them, the exact defect R1 fixes just reintroduced
   by the row growing taller. Flex blockifies its children regardless of their own `display`, so
   icon and title sit on one line again, wrapping exactly as before. */
.bgbody.telechargement{display:flex;align-items:flex-start;gap:.5em}
.doc-icon{flex:none;margin-top:.5em}
.document{display:block;flex:1 1 auto;min-width:0;padding:.45em 0;font-weight:600;
  color:var(--encre);text-decoration:none;border-bottom:1px dotted var(--trait)}
a.document{color:var(--bleu-clair);text-decoration:underline}
a.document:hover{color:var(--orange)}
/* A document row that is NOT a link must not dress like one: its icon goes grayscale and the
   label drops to the muted ink, so nothing on the page invites a click that does nothing. */
.document-attente{color:var(--encre-doux);font-weight:600}
.doc-icon:has(+ .document-attente){filter:grayscale(1) opacity(.6)}
.doc-route{margin:.6em 0 1.2em;font-size:14px;color:var(--encre-doux)}
.doc-route a{display:inline-block;padding:4px 0;white-space:nowrap}
.credit{color:inherit}

/* the CMS grid: .col1_1 full width, .col2_* halves, .col3_* thirds */
.col1_1{width:100%}
@media (min-width:700px){
  /* Scoped to sections that actually HAVE more than one column, not every `.section` on the site.
     A lone `.section > .col1_1` (the homepage welcome text, id=homepage_1) sits next to the
     floated photo div id=homepage_0 - a SEPARATE element, not a sibling column inside the same
     section. `display:flex` establishes a block formatting context, and a BFC box beside a float
     computes its shrink-to-fit width ONCE, at its top edge, and keeps that width for its entire
     height instead of widening back out once it clears the float - unlike a plain block box,
     whose LINE BOXES individually wrap around the float and regain full width below it. That put
     a 273x556px hole of white on the homepage, left of the welcome text and below the photograph,
     found by an independent review's ink-raster probe (R2) after every other check passed clean
     because nothing overflows and nothing is unreadable. A `.col1_1`-only section never needed
     flex in the first place - `flex:1 1 100%` on a single item is identical to block width 100% -
     so it no longer gets it, and normal float-wrap behaviour is restored for anything beside it. */
  /* :not(.section--stack): `:has()` gives this selector HIGHER specificity than the plain
     `.section--stack{display:block}` override two rules down, so without the exclusion this rule
     was WINNING the cascade on stack_stranded_two_column_sections()'s own output and un-stacking
     it back into a 2-up (D2's regression, caught by re-opening nos-missions-et-nos-valeurs and
     seeing two side-by-side columns again instead of one). */
  .section:has(>[class^="col2_"]):not(.section--stack),
  .section:has(>[class^="col3_"]):not(.section--stack){display:flex;flex-wrap:wrap;gap:0 26px}
  .col2_1,.col2_2{flex:1 1 calc(50% - 13px);min-width:0}
  .col3_1,.col3_2,.col3_3{flex:1 1 calc(33.333% - 18px);min-width:0}
  /* a 2-up section whose balancing photographs the archive never held - see
     stack_stranded_two_column_sections() - reads down the page instead of stranding one column */
  .section--stack{display:block}
  .section--stack>[class^="col2_"]{width:100%}
}
.ligne{margin:0 0 1.1em}
.ligne::after{content:"";display:block;clear:both}
#homepage_0 .lefttop,#homepage_2 .lefttop,#homepage_3 .lefttop,#homepage_4 .lefttop{
  float:none;max-width:100%;margin:0;text-align:center}
/* never blow a 222px archived teaser up to 358px on a phone - it only goes soft */
#homepage_0 img,#homepage_2 img,#homepage_3 img,#homepage_4 img{width:auto;max-width:100%;height:auto}
/* Row 1 of the homepage is photograph + welcome text and row 2 is three teasers. Floats rather
   than flex, so the welcome text closes up under the photograph instead of leaving half a column
   of white below it. */
@media (min-width:700px){
  #homepage_0{float:left;width:236px;margin:0 24px 12px 0}
  #homepage_2,#homepage_3,#homepage_4{float:left;width:32%;margin-right:2%}
  #homepage_4{margin-right:0}
}

/* ---- the client's block ---------------------------------------------------------------- */
.content-wraparea{margin-top:1em}

/* ---- search results -------------------------------------------------------------------- */
.partenaires{list-style:none;margin:0;padding:0}
.partenaires li{margin:0;padding:.65em 0;border-bottom:1px solid var(--trait)}
.partenaires a{font-size:14.5px}
.resultats{list-style:none;margin:0;padding:0}
.resultats li{margin:0;padding:.7em 0;border-bottom:1px solid var(--trait)}
.resultats a{font-weight:600}
.extrait{display:block;font-size:14px;color:var(--encre-doux)}

/* ---- map ------------------------------------------------------------------------------- */
figure.carte{margin:1.2em 0;padding:0}
figure.carte img{display:block;width:100%;height:auto;border:1px solid var(--trait)}
figure.carte figcaption{margin:.6em 0 0;font-size:13.5px;color:var(--encre-doux)}
figure.carte figcaption a{display:inline-block;padding:5px 0}

/* ---- footer ---------------------------------------------------------------------------- */
#pied{background:var(--bleu);color:#dbe8ee;padding:20px 24px 24px;font-size:14px}
#pied p{margin:.5em 0}
.pied-liens{display:flex;flex-wrap:wrap;gap:4px 20px}
#pied a{color:#fff;text-decoration:underline;padding:4px 0;display:inline-block;min-height:26px}
#pied a:hover,#pied a:focus{color:#ffd9c7}
.pied-credit{color:#a9c4d1;font-size:13px}

/* ---- narrow screens -------------------------------------------------------------------- */
@media (max-width:699px){
  #header{padding:16px 16px 0}
  #menuhaut{margin:0 -16px}
  .marque-nom{font-size:24px}
  .marque-lieu{font-size:16px}
  #gauche,.page{padding-left:16px;padding-right:16px}
  #pied{padding:18px 16px 22px}
  .lefttop,.righttop{float:none;margin:0 0 1em;max-width:100%}
  .centertop div{width:auto!important}
  #homepage_2,#homepage_3,#homepage_4{float:none;width:100%}
  /* Order-7 review 2026-10-14: 197 archived paragraphs on 19 pages carry the CMS's inline
     style="text-align: justify;". In a 358px measure that opens rivers even with hyphens:auto
     ("Pour   contacter   la   DSEL   :   02   33" - _shots/o7_*/espace_fournisseurs_*-p0.png,
     home-p0/p1). Ragged-right on narrow screens only; the desktop keeps the archived justify.
     The content-wraparea block is excluded: it is settled and this pass does not touch it. */
  .page [style*="text-align: justify"]:not(.content-wraparea *),
  .page [style*="text-align:justify"]:not(.content-wraparea *){text-align:left!important}
}
