/*!
Theme Name: B:B Thème de base Wordpress
Author: Michael Caillet
Description: Thème de base Full site editing pour les élèves du CPMD 2026
Version: 2
Requires at least: 6.2
Tested up to: 6.2
Requires PHP: 8.2
Text Domain: bb-wp-base
*/
@charset "UTF-8";
/* 1. Reset css */
body,html{scroll-behavior:smooth}progress,sub,sup{vertical-align:baseline}html,legend{box-sizing:border-box}.gallery-item,.wp-caption-text{text-align:center}button,hr,input{overflow:visible}.widget select,.wp-caption,embed,iframe,img,legend,object,pre{max-width:100%}pre,textarea{overflow:auto}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}.gallery-caption,.sticky,details,main{display:block}h1{font-size:2em;margin:.67em 0}code,kbd,pre,samp{font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;height:auto}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:ButtonText dotted 1px}fieldset{padding:.35em .75em .625em}legend{color:inherit;display:table;padding:0;white-space:normal}textarea{width:100%}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}.frm_hidden,.updated:not(.published),[hidden],template{display:none}.screen-reader-text,.vh{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#f1f1f1;border-radius:3px;box-shadow:0 0 2px 2px rgba(0,0,0,.6);clip:auto!important;clip-path:none;color:#21759b;display:block;font-size:.875rem;font-weight:700;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}#primary[tabindex="-1"]:focus{outline:0}*,:after,:before{box-sizing:inherit}.entry-content,.entry-summary,.page-content{margin:1.5em 0 0}.page-links{clear:both;margin:0 0 1.5em}.widget{margin:0}.aligncenter,.alignleft,.alignright,.gallery,.wp-caption,hr,p{margin-bottom:1.5em}.comment-content .wp-smiley,.entry-content .wp-smiley,.page-content .wp-smiley{border:none;margin-bottom:0;margin-top:0;padding:0}.custom-logo-link{display:inline-block}.wp-caption img[class*=wp-image-]{display:block;margin-left:auto;margin-right:auto}.wp-caption .wp-caption-text{margin:.8075em 0}.gallery{display:grid;grid-gap:1.5em}.gallery-item{display:inline-block;width:100%}.gallery-columns-2{grid-template-columns:repeat(2,1fr)}.gallery-columns-3{grid-template-columns:repeat(3,1fr)}.gallery-columns-4{grid-template-columns:repeat(4,1fr)}.gallery-columns-5{grid-template-columns:repeat(5,1fr)}.gallery-columns-6{grid-template-columns:repeat(6,1fr)}.gallery-columns-7{grid-template-columns:repeat(7,1fr)}.gallery-columns-8{grid-template-columns:repeat(8,1fr)}.gallery-columns-9{grid-template-columns:repeat(9,1fr)}.alignleft{float:left;margin-right:1.5em}.alignright{float:right;margin-left:1.5em}.aligncenter{clear:both;display:block;margin-left:auto;margin-right:auto}input[type=color],input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=range],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],textarea{color:#666;border:1px solid #ccc;border-radius:3px;padding:3px}input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=range]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,textarea:focus{color:#111}select{border:1px solid #ccc}.site-main .post-navigation,.site-main .posts-navigation{margin:0 0 1.5em}.post-navigation .nav-links,.posts-navigation .nav-links{display:flex}.post-navigation .nav-previous,.posts-navigation .nav-previous{flex:1 0 50%}.post-navigation .nav-next,.posts-navigation .nav-next{text-align:end;flex:1 0 50%}cite,em,i{font-style:italic}blockquote{margin:0 1.5em}hr{box-sizing:content-box;background-color:#ccc;border:0;height:1px}ol,ul{margin:0 0 1.5em 3em}ul{list-style:disc}ol{list-style:decimal}li>ol,li>ul{margin-bottom:0;margin-left:1.5em}pre{background:#eee;font-family:"Courier 10 Pitch",courier,monospace;line-height:1.6;margin-bottom:1.6em;padding:1.6em}

:root {
  --fz: max(16px, 1.25vw); /* font-size */
  --lh: 1.14; /* line-height */

  --gap: 1.2rem; /* gap between elements */
  --quartergap: calc(0.25 * var(--gap));
  --halfgap: calc(0.5 * var(--gap));
  --gap2x: calc(2 * var(--gap));
  --gap3x: calc(3 * var(--gap));
  --gap4x: calc(4 * var(--gap));

  --border_radius: 1rem; /* general border radius */

  --main : #21759b; /* main color */
  --main_light: #dbe9ee; /* light version of main color */
  --main_dark: #1e4e63; /* dark version of main color */    

}

html {
  max-width: 100%;
  font-size: var(--fz);
  line-height: var(--lh);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}


::selection {
  color: #00342f;
  background: #00ffea;
}
::-moz-selection {
  color: #00342f;
  background: #00ffea;
}



.site-header{
  padding: 0 1rem;
  position: sticky;
  z-index: 30;
  top: 1rem;

  nav{
    ul.wp-block-navigation__container{
       background-color: rgba(255,255,255,.1);
    backdrop-filter: blur(3px);
    padding: 1.5rem 3rem;
    border:0.04rem solid rgba(255,255,255,.5);
    }
    /* ul,div,*{
      background-color: unset;
    } */
  }
}


div.wp-site-blocks {
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  & > main.main,
  & > div.main,
  & > div#content,
  & > main#content {
    flex: 1 0;
  }

  footer.wp-block-template-part,
  header.wp-block-template-part {
    flex: 0 1;
  }
} /* footer en bas */


/**
       _   _  ___     _     _       _        _ 
 |\/| / \ |_)  |  |  |_    |_) |_| / \ |\ | |_ 
 |  | \_/ |_) _|_ |_ |_    |   | | \_/ | \| |_ 
                                                    
*/
@media screen and (max-width: 768px) { 
    /* TOUTES LES RÈGLES CSS DANS CE MEDIA QUERY SONT APPLIQUÉES UNIQUEMENT SUR MOBILE  */
	:root {
	    /* --fz:clamp(.9rem, 1vw, 1.2rem); */ /* par exemple changer la taille de la police sur mobile */
	}
	.hide-on-mobile{
		display: none!important;
	}
}/* fin du mobile breakpoint */