/*!
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;
}

.page-id-176{
  h1{
    margin-top: 6rem!important;
    margin-bottom: 3rem!important;
    text-shadow: 0 0 0.97rem #FF2DA1;
    font-size: 11.5vw;
    font-weight: normal;
  }

  .first-col{
    position: relative;
  }
  .centres-interet{
    background-image: url(assets/img/window-top.webp);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top 0;
    padding-top: 2rem;
    border-radius: .5rem;
    
  }
  main ul.wp-block-social-links{
    align-items: start;
    font-size: 2rem;
  }

}
@media screen and (max-width:899px) {
  .middle{
    order: -1;
  }
  .first-col{
    order: 3;
  }
}
@media screen and (min-width:900px) {


  .page-id-176{
    .middle{
      .about-text{
        margin-left: 4rem;
        margin-right: 4rem;
      }
    }

    .grandPhoto{
      transform: scale(1.3);
      position: relative;
      z-index: -1;
    }
    .centres-interet{
      margin-top: -10rem;
      transform: translateX(-3rem);
      width: calc(100% + 3rem);
    }
    .qualités{
      max-width: 60%;
      transform: translateX(-5rem) translateY(-4.6rem);

    }
    .wp-block-group:has(.volume){
      position: relative;
    }
    .volume{
      transform: translate(4rem,50%);
      max-width: 8.5rem;
      position: absolute;
      bottom: 0;
      right: 0;
    }
  }
}
.wp-block-cover{
  h1{
    text-shadow: 0 0 0.97rem #FF2DA1;
  }
  p{
    max-width: 18rem;
    margin-top: -2rem;
  }
}
.home-title{
  position: relative;
  font-size: 13.5vw!important;
  white-space: nowrap;
  line-height: .8;
  padding: 0rem 0;
  text-indent: -0.1em;
  letter-spacing: -0.03em;
  z-index: 2;
  

  &:before{
    content: '';
    position: absolute;
    top: .2rem;
    left: -2rem;
    width: calc(100% + 4rem); 
    background: #FF2DA1;
    height: 1rem;
    z-index: -1;
    box-shadow: 0 -.7rem .5rem #FF2DA1;
    
  }
  &:after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; 
    background: #000000;
    height: 0.02em;
    z-index: 1;
    
    
  }
}
.cover .wp-block-column{
  figure img,
  figure{
    width: 100%;
    height: 100%;
    object-fit: cover;

    
  }
}
.cover.dragon{
  figure img{
    object-position: 10% 30%;
  }
}
#projets{
  p.has-monsieur-la-doulaise-font-family{
    margin-top: 0;
    transform: translateY(-.5em);
    margin-bottom: 1em;
  }

  figure{
    position: relative;
    margin-bottom: 0;

    figcaption{
      --marge:2.5em;
      --w:55%;
      position: absolute;
      top:50%;
      left: 50%;

      transition: all .3s ease-out;
      transform: translateX(-50%) translateY(calc(-75%));
      clip-path: inset(100% 0% 0% 0%);
      background-color: #fff;
      color: #000;
      font-family: var(--wp--preset--font-family--arial-black) !important;
      z-index: -1;
      width:var(--w);
      text-align: left;
      
      padding: .4rem;
      font-size: .5rem;
      padding-bottom: 1.3rem;
      text-transform: uppercase;
      /* à supprimer */
      /*clip-path: inset(0% 0% 0% 0%);
      transform: translateX(-50%) translateY(calc(-100% - 4em));
      /* fin suppression */

      
    }
    &:hover figcaption{
      clip-path: inset(0% 0% 0% 0%);
      transform: translateX(-50%) translateY(calc(-100% - var(--marge) )); /* 4em */
    }
    

    &.supernova figcaption{
      --w:50%;
      background-color: #C1C1C1;
      padding-bottom: 1.75rem;
    }
    &.byredo figcaption{
      background-color: #CA0000;
      padding-bottom: 1.75rem;
    }
    &.affiches figcaption{
      background-color: #00FBFA;
      padding-bottom: 1.75rem;
    }
    &.film figcaption{
      background-color: #D4360C;
      
    }
    &.troisd figcaption{
      background-color: #C01030;
      
    }
    &.dessins figcaption{
      background-color: #B93F67;
      
    }
    &.photos figcaption{
      background-color: #eaf5ff;
    }
    &.jeu figcaption{
      background-color: #00AAF3;
    }
    &.esm figcaption{
      background-color: #B048FF;
    }
    &.byredo:hover figcaption{
      /* transform: translateX(-50%) translateY(calc(-100% - 6em)); */
    }

    @media screen and (max-width:1600px) {
      figcaption{
       
        --marge:6em!important;
        /* --w: 4rem!important; */
      }
    }
  }/* fin de figure */
}


@media screen and (min-width:1600px) {
  #projets figure>figcaption{
    
    padding-bottom: 2rem!important;
    --w:60%;
    /* --w: 4rem!important; */
  }
}

.wp-block-social-links{
  li:nth-child(1){
    
    transform: translateY(.5rem) translateX(-.5rem) scale(1);
  }
  li:nth-child(2){
    
    transform: translateX(-2rem) scale(.9);
  }
  li:nth-child(3){
    
    transform: translateX(-1rem) scale(1.3);
  }
}

.slick-dots li button:before{
  color:#FF2DA1;
  font-size: 0.7rem;
  opacity: 0.55;
}
.slick-dots li.slick-active button:before{
  color: #FF2DA1; 
  opacity: 1;

}

.wp-block-getwid-video-popup__wrapper{
  aspect-ratio: 16/9;
}

.single .wp-block-columns p{
  max-width: 15rem;
}

div.wp-site-blocks {
  overflow: hidden;
  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 */


header.site-header{
  padding-top: .8rem;
  z-index: 65;
}
body.postid-1{
  background-image: url(assets/img/supernova.webp);
  background-size: 100% auto;
  background-position: top center;
  animation: moveBG 20s linear infinite alternate-reverse;

}
body.postid-247{
  /* background-image: url(/wp-content/uploads/2026/11/fond_byredo-scaled.webp);
  background-size: 130% auto;
  background-attachment: fixed;
  background-position: top center; */
  

}

/*  */

@keyframes moveBG{
  from{
    background-size: 100% auto;
  }
  to{
    background-size: 120% auto;
  }
}


/**
       _   _  ___     _     _       _        _ 
 |\/| / \ |_)  |  |  |_    |_) |_| / \ |\ | |_ 
 |  | \_/ |_) _|_ |_ |_    |   | | \_/ | \| |_ 
                                                    
*/
@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;
	}
  .mobile-min-height{
    min-height: 250px;
  }
  .reversed{
    flex-direction: column-reverse;
    p{
      margin-left: auto;
      margin-right: 0;
      /* text-align: left!important; */
    }
  }

  .has-image .wp-block-getwid-video-popup__wrapper{
    min-height: unset;
  }

  .about-text{
    padding-bottom: 3rem;
  }
  .grandPhoto{
    transform: rotate(7deg) 
  }
  .applications{
    transform: rotate(10deg) translateY(-3rem);
  }
  .centres-interet,
  .qualités{
    
    transform: rotate(-7deg);
    
  }
  .qualités{
    transform: rotate(-7deg) translateY(-5.5rem) scale(.7);
  }
}/* fin du mobile breakpoint */