/* cmsms stylesheet: ALFAC - Interface modified: Sunday, January 18, 2026 2:27:20 PM */
/* CSS for Paged.js interface – v0.4 */

/* Change the look */
:root {
    --color-background: whitesmoke;
    --color-pageSheet: #cfcfcf;
    --color-pageBox: violet;
    --color-paper: white;
    --color-marginBox: transparent;
    --pagedjs-crop-color: black;
    --pagedjs-crop-shadow: white;
    --pagedjs-crop-stroke: 1px;
}

/* To define how the book look on the screen: */

/* Réduire la qualité pour le preview */
@media screen {
  img {
    image-rendering: optimizeSpeed;
  }
}


@media screen, pagedjs-ignore {
    body {
        background-color: var(--color-background);
    }

    .pagedjs_pages {
        display: flex;
        width: calc(var(--pagedjs-width) * 2);
        flex: 0;
        flex-wrap: wrap;
        margin: 0 auto;
    }

    .pagedjs_page {
        background-color: var(--color-paper);
        box-shadow: 0 0 0 1px var(--color-pageSheet);
        margin: 0;
        flex-shrink: 0;
        flex-grow: 0;
        margin-top: 10mm;
    }

    .pagedjs_first_page {
        margin-left: var(--pagedjs-width);
    }

    .pagedjs_page:last-of-type {
        margin-bottom: 10mm;
    }

    .pagedjs_pagebox{
        box-shadow: 0 0 0 1px var(--color-pageBox);
    }

    .pagedjs_left_page{
        z-index: 20;
        width: calc(var(--pagedjs-bleed-left) + var(--pagedjs-pagebox-width))!important;
    }

    .pagedjs_left_page .pagedjs_bleed-right .pagedjs_marks-crop {
        border-color: transparent;
    }
    
    .pagedjs_left_page .pagedjs_bleed-right .pagedjs_marks-middle{
        width: 0;
    } 

    .pagedjs_right_page{
        z-index: 10;
        position: relative;
        left: calc(var(--pagedjs-bleed-left)*-1);
    }

    /* show the margin-box */

    .pagedjs_margin-top-left-corner-holder,
    .pagedjs_margin-top,
    .pagedjs_margin-top-left,
    .pagedjs_margin-top-center,
    .pagedjs_margin-top-right,
    .pagedjs_margin-top-right-corner-holder,
    .pagedjs_margin-bottom-left-corner-holder,
    .pagedjs_margin-bottom,
    .pagedjs_margin-bottom-left,
    .pagedjs_margin-bottom-center,
    .pagedjs_margin-bottom-right,
    .pagedjs_margin-bottom-right-corner-holder,
    .pagedjs_margin-right,
    .pagedjs_margin-right-top,
    .pagedjs_margin-right-middle,
    .pagedjs_margin-right-bottom,
    .pagedjs_margin-left,
    .pagedjs_margin-left-top,
    .pagedjs_margin-left-middle,
    .pagedjs_margin-left-bottom {
        box-shadow: 0 0 0 1px inset var(--color-marginBox);
    }

    /* uncomment this part for recto/verso book : ------------------------------------ */

    /*
    .pagedjs_pages {
        flex-direction: column;
        width: 100%;
    }

    .pagedjs_first_page {
        margin-left: 0;
    }

    .pagedjs_page {
        margin: 0 auto;
        margin-top: 10mm;
    } 

    .pagedjs_left_page{
        width: calc(var(--pagedjs-bleed-left) + var(--pagedjs-pagebox-width) + var(--pagedjs-bleed-left))!important;
    }

    .pagedjs_left_page .pagedjs_bleed-right .pagedjs_marks-crop{
        border-color: var(--pagedjs-crop-color);
    }

    .pagedjs_left_page .pagedjs_bleed-right .pagedjs_marks-middle{
        width: var(--pagedjs-cross-size)!important;
    } 

    .pagedjs_right_page{
        left: 0; 
    } 
    */
    
    

    /*--------------------------------------------------------------------------------------*/



    /* uncomment this par to see the baseline : -------------------------------------------*/

    
    /* .pagedjs_pagebox {
        --pagedjs-baseline: 22px;
        --pagedjs-baseline-position: 5px;
        --pagedjs-baseline-color: cyan;
        background: linear-gradient(transparent 0%, transparent calc(var(--pagedjs-baseline) - 1px), var(--pagedjs-baseline-color) calc(var(--pagedjs-baseline) - 1px), var(--pagedjs-baseline-color) var(--pagedjs-baseline)), transparent;
        background-size: 100% var(--pagedjs-baseline);
        background-repeat: repeat-y;
        background-position-y: var(--pagedjs-baseline-position);
    }  */
   

    /*--------------------------------------------------------------------------------------*/
}





/* Marks (to delete when merge in paged.js) */

.pagedjs_marks-crop{
    z-index: 999999999999;
  
}

.pagedjs_bleed-top .pagedjs_marks-crop, 
.pagedjs_bleed-bottom .pagedjs_marks-crop{
    box-shadow: 1px 0px 0px 0px var(--pagedjs-crop-shadow);
}  

.pagedjs_bleed-top .pagedjs_marks-crop:last-child,
.pagedjs_bleed-bottom .pagedjs_marks-crop:last-child{
    box-shadow: -1px 0px 0px 0px var(--pagedjs-crop-shadow);
}  

.pagedjs_bleed-left .pagedjs_marks-crop,
.pagedjs_bleed-right .pagedjs_marks-crop{
    box-shadow: 0px 1px 0px 0px var(--pagedjs-crop-shadow);
}

.pagedjs_bleed-left .pagedjs_marks-crop:last-child,
.pagedjs_bleed-right .pagedjs_marks-crop:last-child{
    box-shadow: 0px -1px 0px 0px var(--pagedjs-crop-shadow);
}
/* cmsms stylesheet: ALFAC Guide print modified: Sunday, October 11, 2026 8:51:13 PM */
/* ==========================================================================
   ALFAC Guide print
   Feuille unique du livret "ALFAC assessor guidelines" (Paged.js 0.4.3)
   Remplace "ALFAC Paged Reset" + "ALFAC Paged style-print".
   Reprend l'identite visuelle a l'identique, sans flottants,
   avec des regles de coupure de page.
   ========================================================================== */

:root {
  --midnight-blue: #000059;
  --royal-blue: #347bfc;
  --white: #ffffff;
  --gold: #ffcc01;
  --alice-blue: #f0f5fa;
  --light-steel-blue: #c5d8fc;
  --light-grey: #eaecf0;
}

/* --------------------------------------------------------------------------
   Base (remise a zero minimale)
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Noto Sans', sans-serif;
  color: var(--midnight-blue);
  font-size: 12px;
  line-height: 16px;
  hyphens: auto;
}

section {
  display: block;
}

img {
  border-style: none;
}

sup,
sub {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup { top: -0.5em; }
sub { bottom: -0.25em; }

/* --------------------------------------------------------------------------
   Pages
   -------------------------------------------------------------------------- */

@page {
  size: 210mm 297mm;
  margin-top: 20mm;
  margin-bottom: 20mm;
}

@page :left {
  margin-left: 20mm;
  margin-right: 20mm;

  @bottom-left {
    content: counter(page);
    width: 30px;
    font-size: 10px;
    color: var(--midnight-blue);
  }

  @bottom-center {
    content: "Aquatic Literacy For All Children";
    text-align: left;
    font-size: 10px;
    color: var(--midnight-blue);
  }
}

@page :right {
  margin-left: 20mm;
  margin-right: 20mm;

  @bottom-right {
    content: counter(page);
    width: 30px;
    font-size: 10px;
    color: var(--midnight-blue);
  }

  @bottom-center {
    content: string(chapTitle);
    text-align: right;
    font-size: 10px;
    color: var(--midnight-blue);
  }
}

@page :blank {
  @bottom-left { content: none; }
  @bottom-center { content: none; }
  @bottom-right { content: none; }
}

/* Couverture */
@page :first {
  margin: 10mm;
  background-color: var(--white);
  background-image: url("/uploads/alfac/images/Alfac_Book_Images/Couv.jpg");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;

  @bottom-left { content: none; }
  @bottom-center { content: none; }
  @bottom-right { content: none; }
}

/* Couvertures de chapitre */
@page inner-cover {
  margin: 10mm;
  background-color: var(--alice-blue);

  @bottom-left { content: none; }
  @bottom-center { content: none; }
  @bottom-right { content: none; }
}

#cover {
  break-after: right;
}

#cover img {
  mix-blend-mode: lighten;
}

section[id^="inner_cover_"] {
  page: inner-cover;
  break-after: right;
}

.chapter {
  break-before: right;
}

/* Titre courant en pied de page */
.chapter h2 {
  string-set: chapTitle content(text);
}

/* --------------------------------------------------------------------------
   Titres
   -------------------------------------------------------------------------- */

h2,
h3,
h4,
h5,
h6 {
  break-after: avoid;
  break-inside: avoid;
}

h1.couv_title {
  color: var(--royal-blue);
  text-align: right;
  margin: 0 0 10px 0;
  letter-spacing: -2px;
  font-size: 60px;
  font-weight: 800;
  line-height: 65px;
}

h1.sub_title {
  color: var(--midnight-blue);
  text-align: right;
  margin: 10mm 0 0 0;
  letter-spacing: -1px;
  font-size: 20px;
  font-weight: 400;
  line-height: 22px;
}

h1.top {
  color: var(--royal-blue);
  text-align: right;
  margin: 20mm 0 0 0;
  padding: 0;
  letter-spacing: -2px;
  font-size: 32px;
  font-weight: 800;
  line-height: 36px;
}

h2 {
  color: var(--midnight-blue);
  text-align: left;
  margin: 20mm 0 0 0;
  padding: 0;
  font-size: 32px;
  font-weight: 400;
  line-height: 36px;
}

h3 {
  color: var(--royal-blue);
  text-align: left;
  margin: 5mm 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
}

h4 {
  border-top: 1px solid var(--royal-blue);
  text-align: left;
  margin: 10px 0;
  padding: 10px 0 0 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

h4.top {
  margin: 0 0 10px 0;
  padding: 10px;
  line-height: 26px;
}

h5,
h6 {
  text-align: left;
  margin: 10px 0;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

/* --------------------------------------------------------------------------
   Texte
   -------------------------------------------------------------------------- */

p {
  margin: 0 0 10px 0;
  color: var(--midnight-blue);
  font-size: 12px;
  line-height: 16px;
  text-align: justify;
  orphans: 2;
  widows: 2;
}

strong {
  color: var(--royal-blue);
  font-weight: 700;
}

ul,
ol {
  margin: 0 0 10px 0;
  font-size: 12px;
  line-height: 18px;
}

li {
  margin-bottom: 10px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 18px;
}

.list {
  list-style-type: none;
}

/* --------------------------------------------------------------------------
   Tableaux
   -------------------------------------------------------------------------- */

.table,
.table_cs {
  border-collapse: collapse;
  width: 100%;
  border: 1px solid var(--royal-blue);
  font-size: 12px;
  line-height: 16px;
}

.table {
  margin: 0 0 20px 0;
}

.table_cs {
  margin: 0 0 10px 0;
  break-before: page;
}

.table_illustration {
  width: 100%;
  margin: 0 0 20px 0;
}

.caption {
  caption-side: top;
  text-align: left;
  margin: 0 0 10px 10px;
  line-height: 16px;
  font-weight: 700;
  break-after: avoid;
}

thead {
  display: table-header-group;
}

tr {
  break-inside: avoid;
}

.th {
  border: 1px solid var(--royal-blue);
  vertical-align: top;
  text-align: center;
  padding: 10px;
  font-size: 12px;
  line-height: 16px;
}

.th.left {
  width: 30%;
}

.th.blue {
  background-color: var(--light-steel-blue);
  font-weight: 700;
}

.td {
  border: 1px solid var(--royal-blue);
  vertical-align: top;
  text-align: left;
  padding: 10px;
}

.td.illustration {
  border-color: var(--white);
  text-align: center;
}

.td.picture {
  border-bottom: 1px solid var(--royal-blue);
  text-align: center;
}

.td.blue {
  background-color: var(--light-steel-blue);
  font-weight: 700;
}

.td.alice {
  background-color: var(--alice-blue);
}

.td.grey {
  background-color: var(--light-grey);
}

/* Largeurs */
._10 { width: 10%; }
._20 { width: 20%; }
._25 { width: 25%; }
._30 { width: 30%; }
._33 { width: 33.33%; }
._40 { width: 40%; }
._50 { width: 50%; }
._75 { width: 75%; }
._80 { width: 80%; }

.td._10,
.td._20 {
  text-align: center;
  font-weight: 700;
}

/* Contenu des cellules */
.table p,
.table_cs p,
.table_illustration p {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
}

.table_p {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 16px;
}

.table_p.foot {
  padding: 10px 0;
  font-style: italic;
}

.table_p.foot.center {
  text-align: center;
  font-style: normal;
  font-weight: 700;
}

.table_p._50 {
  width: 50%;
}

.bold-text {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Blocs
   -------------------------------------------------------------------------- */

.table_block,
.item-properties {
  display: block;
  width: 100%;
}

.div_table_block {
  display: flex;
  align-items: center;
  width: 100%;
}

.div_page_break {
  height: 0;
  break-after: page;
}

.empty-page {
  break-after: page;
}

.div_title {
  width: 100%;
  margin-top: 184mm;
  padding-right: 10mm;
}

.attention_block {
  text-align: center;
  width: 100%;
  padding-top: 20px;
  margin-bottom: 10px;
  break-after: avoid;
}

.top_block {
  border: 1px solid var(--royal-blue);
  text-align: center;
  padding: 0 10px 10px 10px;
}

.big_block_picto {
  text-align: center;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Images et pictogrammes
   -------------------------------------------------------------------------- */

figure,
img {
  width: 100%;
  break-inside: avoid;
}

figure {
  margin: 0 0 10px 0;
}

.img_picto {
  width: 40px;
  height: 40px;
  margin-right: 0;
  vertical-align: middle;
}

.img_picto.big {
  width: 80px;
  height: 80px;
}

.img_picto.small {
  width: 26px;
  height: 26px;
}

.table_img {
  max-width: 50%;
}

.table_img_80 {
  min-width: 80%;
  max-width: 80%;
}

.table_img_70 {
  min-width: 70%;
  max-width: 70%;
}

.div_logo_form {
  text-align: right;
  width: 100%;
}

.logo_form_img {
  width: 25%;
  margin-right: 0.5cm;
}

.linkcc {
  display: inline-block;
  width: 150px;
}

/* --------------------------------------------------------------------------
   Table des matieres (createToc.js)
   Sans debordement : points de suite dessines en fond, numero dans le flux.
   Le gabarit "Paged" enveloppe le texte de chaque entree dans .toc-title.
   -------------------------------------------------------------------------- */

#list-toc-generated {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: counterTocLevel1;
}

.toc-element {
  display: block;
  margin: 0 0 6px 0;
  padding: 0;
  break-inside: avoid;
}

.toc-element a {
  display: flex;
  align-items: baseline;
  text-decoration: none;
  color: var(--midnight-blue);
  background-image: radial-gradient(circle, var(--royal-blue) 0.7px, transparent 1px);
  background-size: 6px 4px;
  background-repeat: repeat-x;
  background-position: 0 calc(100% - 3px);
}

.toc-title {
  background-color: var(--white);
  padding-right: 6px;
}

/* Numero de page : ecrit par le gabarit "Paged" apres la mise en page
   (target-counter de Paged.js renvoie 0 dans Firefox) */
.toc-page {
  margin-left: auto;
  padding-left: 6px;
  background-color: var(--white);
  white-space: nowrap;
}

.toc-element-level-1 {
  margin-top: 25px;
  font-weight: 700;
  counter-increment: counterTocLevel1;
  counter-reset: counterTocLevel2;
}

.toc-element-level-1 .toc-title::before {
  content: counter(counterTocLevel1) ". ";
}

.toc-element-level-2 {
  margin-left: 25px;
  counter-increment: counterTocLevel2;
}

.toc-element-level-2 .toc-title::before {
  content: counter(counterTocLevel1) ". " counter(counterTocLevel2) ". ";
}

.toc-element-level-3,
.toc-element-level-h4 {
  margin-left: 60px;
  font-weight: 400;
}

/* Neutralise les anciennes regles de la table des matieres
   (numero target-counter et points de suite en ::after) */
.toc-element a::after,
.toc-element::after {
  content: none !important;
}
