/*----------------------------------main--------------------------------------*/

body{
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: #000;
	background: #fff;
	margin: 0 auto;
	font-size: 1em;
	line-height: 1.75em;
	background: white;
	background-image: linear-gradient(to right, rgb(255,255,255) 0%, rgb(230,225,230) 50%, rgb(255,255,255) 100%);	
	}

/*----------------------------------general styling--------------------------------------*/

p{
	margin: 0;
	padding: 0;
}

a{
	color: #316896;
	text-decoration: none;
}

a img{
	border: none;
}

a:hover{
	text-decoration: underline;
}

acronym, abbr{
	border-bottom: 1px dashed #333;
	letter-spacing: .07em;
	cursor: help;
}

.caps{
	font-variant: all-small-caps;
	font-size: 0.8em;
	letter-spacing: 0.1em;
}

.italinrefs{
	font-style: italic;
}

h2{
	clear: both;
	font-weight: normal;
	margin: 0.2em 0 0.5em 0;
	color: black;
}

.nobreak{
	-webkit-hyphens: none;
	hyphens: none;
}

.physymbol{
	font-style: italic;
	font-family: serif;
}


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

#lang_box{
	float: right;
}

#lang_box a{
	display: block;
	font-size: 1.2em;
	padding: 0.2em;
	margin: 0.5em 0.5em 0 0.5em;
	border: 1px gray solid;
	color: #316896;
	border-radius: 2px;
}

#lang_box a:hover{
  background: gray;
}

#head_box{
	clear: right;
	padding: 0 0 2em 0;
	line-height: 2em;
	text-align: center;
}

	h1{
		font-size: 5em;
		font-weight: normal;
		line-height: 1.3em;
		text-shadow: 0 2px 0 rgba(255,255,255,0.75);
	}


	.maindesc{
		font-size: 1.5em;
		line-height: 1.6em;
		width: 30em;
		max-width: 90%;
		margin: 1em auto;
	}
	
		span.suggestedline{
			display: inline-block;
		}


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


 :root {
      --card-width: 19.5em;
      --card-radius: 18px;
      --card-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
      --accent: #00995f;
      --border: rgba(0, 0, 0, 0.08);
      --text-muted: #5f6b6d;
      --bg: linear-gradient(180deg, #f8fbfa 0%, #eef5f2 100%);
    }

    .section.prompt {
      display: flex;
      justify-content: center;
      align-items: stretch;
      gap: 0;
      padding: 0rem 1.5rem 5rem;
      perspective: 1200px;
      flex-wrap: wrap;
    }

    .promptbox {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      width: min(var(--card-width), 100%);
      padding: 1.25rem 1.1rem 1.4rem;
      margin: 0 -0.9rem;
      background: rgba(255, 255, 255, 0.88);
      backdrop-filter: blur(6px);
      border: 1px solid var(--border);
      border-radius: var(--card-radius);
      box-shadow: var(--card-shadow);
      text-align: center;
      transform-origin: center 88%;
      transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
      z-index: 1;
    }

    .promptbox:nth-child(1) {
      transform: rotate(-7deg) translateY(0.7rem);
    }

    .promptbox:nth-child(2) {
      transform: rotate(0deg) translateY(-0.6rem);
      z-index: 3;
    }

    .promptbox:nth-child(3) {
      transform: rotate(7deg) translateY(0.7rem);
    }

    .section.prompt:hover .promptbox {
      transform: rotate(0deg) translateY(0);
    }

    .section.prompt:hover .promptbox:nth-child(2) {
      transform: translateY(-0.35rem) scale(1.02);
    }

    .promptbox:hover {
      z-index: 5;
      border-color: rgba(0, 153, 95, 0.22);
      box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
      transform: translateY(-0.45rem) scale(1.025) !important;
    }

    .aboveprice {
      font-size: 0.88rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 0.15rem;
    }

    .price {
      font-size: 2.1rem;
      font-weight: 800;
      line-height: 1.1;
      padding: 0.4rem 0 0.8rem;
    }

    .promptbox > a {
      display: inline-flex;
      justify-content: center;
      align-items: center;
      min-height: 270px;
      text-decoration: none;
    }

    .promptbox a img {
      display: block;
      max-width: 100%;
      height: auto;
      border: 1px solid transparent;
      border-radius: 14px;
      transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease, border-color 220ms ease;
    }

    .promptbox a:hover img {
      background-color: rgba(255, 255, 255, 0.6);
      box-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
      border: 1px solid rgba(255, 255, 255, 0.35);
      transform: translateY(-2px);
    }

    .desc {
      min-height: 5.6em;
      margin-top: 1rem;
      color: var(--text-muted);
      line-height: 1.45;
      font-size: 0.98rem;
    }

    .biigbutton {
      width: 100%;
      font-size: 1.15rem;
      font-weight: 700;
      margin-top: auto;
      padding-top: 1.1rem;
    }

    .biigbutton a {
      display: block;
      padding: 0.95rem 1rem;
      border: 1px solid rgba(0, 0, 0, 0.12);
      border-radius: 999px;
      background: #ffffff;
      color: inherit;
      text-decoration: none;
      transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }

    .biigbutton a:hover,
    .biigbutton a:active {
      background: var(--accent);
      border-color: var(--accent);
      color: white;
      text-decoration: none;
      transform: translateY(-1px);
    }

    @media (max-width: 980px) {
      .section.prompt {
        gap: 1.2rem;
      }

      .promptbox,
      .promptbox:nth-child(1),
      .promptbox:nth-child(2),
      .promptbox:nth-child(3),
      .section.prompt:hover .promptbox,
      .section.prompt:hover .promptbox:nth-child(2) {
        margin: 0;
        transform: none;
      }
    }

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


.ribbon{
	font-size: 1.2em;
	margin: 2em auto 2em auto;
	padding: 2em 4em;

	background-color: rgba(255,255,255,0.6); /*transparency woo*/
	box-shadow: silver 0 0 7px;
	
	text-align: justify;
}

.ribboncontent{
	max-width: 55em;
	margin: 0 auto;
}

.credit_box p{
	font-size: 1.6em;
	line-height: 1.5em;
}

.license_text{
	font-size: 1.2em;
	margin-top: 2em;
}


.main_column{
	font-size: 1.2em;
	width: 35em;
	max-width: -webkit-calc(100% - 50px);
	max-width: calc(100% - 50px);
	margin: 4em auto 3em;
	padding-bottom: 1em;

	text-align: justify;
}


.section{
	clear: both;
	margin-top: 3em;
}



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

.excerpts{
	width: min(100%, 1100px);
	margin: 0 auto 3em;
	text-align: left;
}

/* Each card */
.excerptbox{
	display: flex;
	align-items: center;
	padding: 16px 18px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 4px 18px rgba(0,0,0,0.18);
	width: min(20em, calc(100% - 120px));
	margin-bottom: -22px;
}

/* Stagger with margins instead of transforms */
.excerptbox:nth-child(1){
	margin-left: 0;
}

.excerptbox:nth-child(2){
	margin-left: auto;
	margin-right: auto;
}

.excerptbox:nth-child(3){
	margin-left: auto;
	margin-right: 0;
}

.excerptitem{
	display: inline-block;
}

/* Cropped thumbnail (top 50%) */
.excerptitem:first-child{
	width: 100px;
	height: 75px;
	overflow: hidden;
	border-radius: 3px;
	box-shadow: silver 0 0 10px;
	flex: 0 0 auto;
}

.excerptitem:first-child img{
	width: 100%;
	height: auto;
	display: block;
	transform: translateY(0);
}

.excerpttext{
	width: 16em;
	max-width: calc(100% - 114px);
	padding-left: 14px;
	vertical-align: middle;
}



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


.contents{
	margin-top: 2em
}

	.contenthead{
		margin-bottom: 1em;
	}

	.contents h2{
		clear: both;
		font-size: 1.2em;
		padding-top: 0.6em;

		text-align: left;
	}

	.coursnumber{
		display: inline-block;
		height: 1.65em;
		width: 1.65em;
		line-height: 1.65em;
		font-size: -webkit-calc(1.8em / 2);
		font-size: calc(1.8em / 2);
		margin: 1px;
		padding-left: 1px;
		padding-top: 1px;

		border: 1px silver solid;
		border-radius: 1.8em;

		vertical-align: middle;
		text-align: center;

		font-family: serif;
	}

	.blurb_cours{
		box-sizing: border-box;
		font-size: 1em;
		padding-left: 2.4em;
		max-width: 60%;
		min-height: 2lh;
		
		text-align: left;
		-ms-hyphens:auto;
		-webkit-hyphens:auto;
		-moz-hyphens:auto;
		hyphens:auto;
	}


	.cours_content{
		box-sizing: border-box;
		float: right;
		max-width: 35%;
		min-height: 3lh;
		font-size: 0.75em;
		margin-top: -5em;
		padding: 5px 10px 0 10px;

		border-right: 1px silver solid;
		font-style: italic;
		text-align: right;
		color: grey;
		-webkit-hyphens: auto;
		hyphens: auto;
	}

	.contentfoot{
		clear: both;
		padding-top: 1em;
	}

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


.author{
	margin-top: 3em;
	margin-bottom: 6em;
	min-height: calc(200px + 2em);
}

	.author img{
		float: left;
		margin: 1px 15px 1em 0;
		max-width: 50%;
		height: auto;
	}


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


blockquote{
	min-width: 18em;
	max-width: 43em;
	line-height: 1.5em;
	padding: 1.5em;
	margin: 0 0 1.5em 1.5em;
	background: #D9D9D9;
	opacity: 0.9;
	border-radius: 0.5em;
}

blockquote:before{
	content: "«";
	padding: 0 0.2em 0 0;
}

blockquote:after{
	content: "»";
	padding: 0 0 0 0.1em;
}

blockquote:before,
blockquote:after{
	font-size: 3em;
	display: inline-block;
	line-height: 0.333em;
	vertical-align: top;
  color: gray;
}


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


.backlinks{
	-webkit-hyphens: none;
	hyphens: none;
	text-align: left;
}


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


.diffusion{
	text-align: left;
}


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

.niousletter{
}

	.niouslettersignup{
		text-align: left;
	}

	.niouslettersignup input{
		display: inline-block;
		height: 3.1em;
		margin: 0;
		padding: 0 0.5em;
		font-size: 1em;
		line-height: 1.5em;
	}

	input.emailsub{
		width: 55%;
		min-width: 20em;
	}

	input.pouf{
		float: right;
		width: 25%;
		min-width: 8em;
		margin-bottom: 1em;
	}

	.pouf:hover{
		cursor: pointer;
	}

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

.licence{
}

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

.contact{
	margin-bottom: 10em;
}

	.contactfields{
		margin: 0 auto;
		width: 40em;
		max-width: calc(90% - 0.5em);
	}

		input{
			box-sizing: border-box;
			width: 100%;
			height: 2em;
			margin: 0;
			padding: 0.5em;

			line-height: 2em;
		}

		textarea{
			box-sizing: border-box;
			width: 100%;
			height: 15em;
			font-size: 1.2em;

			margin: 3px 0;
			padding: 1em;
		}

		.hopla{
			display: block;
			width: 30%;
			min-width: 10em;
			height: 4em;
			margin: 0 auto;
			padding: 0;
			line-height: 2.5em;
		}

		.hopla:hover{
			cursor: pointer;
		}


	.viandenboite{
		display:none;
	}
	


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

.sanspub{
	text-align: center;
	margin: 4em 0 1em 0;
}

.sanspub a{
	opacity: 0.5;
}

.sanspub a:hover{
	opacity: 1;
}


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

/* Responsive layout */

@media all and (max-height: 580px), all and (max-width: 550px){

	html{
		font-size: 0.9em; /* shrink, shrink */
	}

	h2, .maindesc{
		-ms-hyphens:auto;
		-webkit-hyphens:auto;
		-moz-hyphens:auto;
		hyphens:auto;
	}
	
	
	.author img{
		float: none;
		display: block;
		margin: 5px auto;
		max-width: 80%;
		height: auto;
	}

	span.suggestedline{
		display: inline;
	}
}




/* if screen becomes narrow */

@media all and (max-width: 41em){

	.main_column{
		-webkit-hyphens: auto;
		hyphens:auto;
	}
	
	.blurb_cours{
		-webkit-hyphens: none;
		hyphens:none;
		max-width: 95%;
	}

	.cours_content{
		float: none;
		max-width: 70%;
		margin: 0 0 0 auto;
		padding: 0 20px 0 20px;
	}
	
	.excerptbox,
	.excerptbox:nth-child(1),
	.excerptbox:nth-child(2),
	.excerptbox:nth-child(3){
		width: 90%;
		margin-left: 0;
		margin-right: 0;
  }
}


/* if screen becomes very narrow */

@media all and (max-width: 350px){

	
	/* reduce padding around descriptions */
	.cours_content{
		padding-right: 10px;
		}
}


/* Dark Mode Styling */
@media (prefers-color-scheme: dark){
    body{
        color: #ddd;
        background: #333333;
        background-image: none;
    }
	
		h1{
			text-shadow: 0 2px 0 rgba(0,0,8,0.75);
		}
	
		#head_box #lead_picture{
			filter: brightness(0.8);
			}
	
    img{
	    filter: brightness(0.8);
    }

    .sanspub img{
      filter: none;
    }

    a{
        color: #79b8ff;
    }

    a:hover{
    }

    h2{
        color: #fff;
    }
    
    .promptbox{
      background: #494949;
    }

	  .desc{
		  color: #fff;
	  }
	
    .ribbon{
      border-top: 2px #444 solid;
			border-bottom: 2px #444 solid;
      background-color: #494949;
    }

    .biigbutton a{
        border: 1px #888 solid;
        color: #fff;
			background: #008f6d5d;
    }

    .biigbutton a:hover, .biigbutton a:active{
        background: #007a5e;
        border-color: #007a5e;
    }

    blockquote{
        background: #333;
        color: #bbb;
    }

    .cours_content{
        color: #aaa;
        border-right: 1px #555 solid;
    }

    .promptbox a:hover img{
        background-color: rgba(255, 255, 255, 0.1);
			  border-color: rgba(255, 255, 255, 0);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
       
    }

    .excerptbox{
	    background: #494949;
    }

    input, textarea{
        background: #222;
        color: #ddd;
        border: 1px solid #555;
    }

    input::placeholder, textarea::placeholder{
        color: #888;
    }

}



