/* style_MC_travail.css */

a {
    position: relative;
    color: inherit;
    text-decoration: underline;
    text-decoration-color: #1f3a47;
    transition: background 0.3s ease-out;
    padding: 2px 4px; /* nécessaire pour voir les arrondis */
    border-radius: 4px; /* arrondis permanents */
}

a:hover {
    background: rgba(31, 58, 71, 0.35);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #cbdde6; /* Base conservée */
    font-family: Georgia, Garamond, Verdana, serif;
    display: grid;
    grid-template-areas: 
        "nav"
        "header" 
        "article"
        "footer";
    grid-template-rows: auto auto 1fr auto;
    min-height: 100vh;
}

/* Navigation */
nav {
    grid-area: nav;
    width: 100%;
    background: rgba(31, 58, 71, 0.55); /* verre mat bleu foncé #1f3a47 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 112;
}

/* Style du texte du menu */
.style-nav {
    font-family: Georgia, Garamond, Verdana, sans-serif;
    font-size: 1.5em;
    font-style: oblique;
    font-weight: 600;
}

/* Structure du menu */
nav ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
}

nav ul li {
    flex: 1 1 25%;
    text-align: center;
    position: relative;
}

nav ul::after {
    content: "";
    display: table;
    clear: both;
}

/* Liens */
nav a {
    display: block;
    text-decoration: none;
    color: #e6eef2; /* bleu très clair lisible sur fond foncé */
    border-bottom: 2px solid transparent;
    padding: 15px 0;
    transition: all 0.3s ease;
}

/* Hover des liens */
nav a:hover {
    color: #DBBE91; /* sable harmonisé */
    border-bottom: 4px solid #DBBE91;
    background: rgba(219,190,145,0.12); /* hover sable léger */
}

/* Sous-menu */
.sous {
    display: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    background: rgba(31, 58, 71, 0.90); /* même bleu foncé, plus opaque */
    border: 1px solid rgba(255, 255, 255, 0.25);
    position: absolute;
    width: 100%;
    z-index: 1000;
}

nav ul li:hover .sous {
    display: block;
}

.sous li {
    float: none;
    width: 100%;
    text-align: left;
}

.sous a {
    padding: 15px;
    border-bottom: none;
    color: #e6eef2;
}

.sous a:hover {
    background: rgba(219,190,145,0.18); /* hover sable */
    color: #DBBE91;
}

/* Flèche ▼ */
.deroulant > a::after {
    content: " ▼";
    font-size: 0.8em;
}

/* HEADER */
header {
    grid-area: header;
   /*background: rgba(255,255,255,0.20); /* verre clair*/
  /* backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);*/
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    padding: 30px 20px;
    position: relative;
	background-image:url(../img/img_common/drakkar2.png);
}

header img {
    max-width: 100%;
    height: auto;
}


#logo_class {
    width: 20%;
    z-index: 2;
    transition: transform 0.3s ease;
}

#logo_class:hover {
    transform: scale(1.05);
}

#logo_ndp {
    width: 12%;
    z-index: 2;
    transition: transform 0.3s ease;
}

#logo_ndp:hover {
    transform: scale(1.05);
}

#titre_page {
    width: 100%;
    z-index: 3;
}

h1 {
    font-size: 5em;
    font-weight: bold;
    text-align: center;
    text-shadow: 4px 4px 25px rgba(255, 255, 255, 0.8);
    color: #2B2F36; /* texte sombre harmonisé */
    /*background: rgba(203, 221, 230, 0.40);*/
    padding: 10px 20px;
    border-radius: 15px;
    /*background: rgba(255,255,255,0.4);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);*/
}

h6 {
    font-size: 3.5em;
    font-weight: bold;
    color: #282653; /* conserve indigo atténué */
    text-align: center;
    text-shadow: 3px 3px 4px rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* Article - Grille principale */
article {
    grid-area: article;
    display: grid;
    grid-template-columns: 1fr 3fr;
    grid-template-areas: "bandeau texte";
    gap: 50px;
    padding: 50px 20px;
    min-height: 75vh;
}

/* BANDEAU INDICE - GLASSMORPHISM */
#nav_indice {
    grid-area: bandeau;
    background: rgba(15, 37, 44, 0.55); /* #497a94 en verre mat */
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 20em;
	/*width:100%;*/
    transition: all 0.3s ease;
	width: 28em; /**/
    flex: 0 0 22em;/**/

}


#nav_indice:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
		
}

#mois {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#indice {
    width: 100%;
}

h4 {
    font-size: 2.5em;
    font-weight: bold;
    color: white;
    text-align: center;
    text-shadow: 1px 1px 2px red, 0 0 0.8em #DB5560, 0 0 1em black; /* glow chaud conservé */
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.style-mois {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    text-align: center;
    line-height: 3em;
}

ul {
    list-style: none;
}

#indice a {
    outline: none;
    text-decoration: none;
    padding: 8px 12px;
    color: white;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 2px 0;
}

#indice a:link,
#indice a:visited {
    color: white;
}

#indice a:hover {
	/*
    background: rgba(219, 190, 145, 0.3); /* #dbbe91 transparent */
   /* color: #DBBE91;
	*/
	/*background: rgba(159, 191, 204, 0.25);*/
    color: #9fbfcc;
    transform: translateX(5px);
	color: #DBBE91; /* sable harmonisé */
    /*border-bottom: 4px solid #DBBE91;*/
    background: rgba(219,190,145,0.12); /* hover sable léger */
}

/* Zone texte principale */
#text01 {
    grid-area: texte;
    display: flex;
    flex-direction: column;
    gap: 20px;
	padding: 30px;
	/*
    background: rgba(255, 255, 255, 0.60); /* verre un peu plus léger
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
	*/
}

#photo01 {
    align-self: center;
}


#text_photo {
	padding-top: 18px;
}

.style-01 {
    font-size: 1.5em;
    text-align: justify;
    line-height: 1.5em;
}

.style-02 {
    font-size: 1em;
    font-style: oblique;
    text-align: justify;
    line-height: 1.5em;
}

.style-03 {
    font-size: 1.5em;
    font-style: oblique;
    line-height: 1.5em;
}

.style-07 {
    font-size: 2em;
    font-weight: bold;
    color: #2B2F36; /* harmonisé avec titres */
    text-shadow: 1px 1px 2px rgba(219,85,96,0.6); /* optionnel : léger glow */
}

.style-com {
    font-family: Helvetica, sans-serif;
    font-size: 1.2em;
    text-align: justify;
    line-height: 1.5em;
}

#text-exp {
    max-width: 98%;
}

h2 {
    font-size: 3.5em;
    text-align: center;
    font-weight: bold;
    color: #2B2F36;
    text-shadow: 1px 1px 2px rgba(219,85,96,0.6);
    padding: 15px;
    border-radius: 15px;
    background: rgba(255,255,255,0.4);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);

}

h3 {
    font-size: 2em;
    font-weight: bold;
    color: #2B2F36;
    text-shadow: 1px 1px 2px rgba(219,85,96,0.5);
}

h5 {
    font-size: 2em;
    font-weight: bold;
    color: #282653;
    text-shadow: 1px 1px 2px rgba(219,85,96,0.5);
}

/* Classes pour colonnes de texte */
.cols-1 {
    column-count: 1;
}

.cols-2 {
    column-count: 2;
    column-gap: 40px;
}

/*Image sur deux colonnes*/
.cartes-container {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;        /* Retour à la ligne sur petit écran */
}

/* Chaque colonne */
.img-col2 {
  flex: 1 1 0;
  max-width: 50%;         /* Deux colonnes côte à côte */
  box-sizing: border-box;
}

/* Wrapper qui gère le ratio de l'iframe (16:9 ici) */
.iframe-wrapper {
  position: relative;
  width: 100%;
  padding-top: 75%;    /* 16:9 = 9/16 = 0,5625 */
  overflow: hidden;
}

/* Iframe responsive qui remplit son wrapper */
.iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/*Coin du prof*/
#coin-prof {
	position:relative;
    border: thick double RGB(24,64,58);
	border-radius: 15px;
	z-index:12;
	width:100%;
    background: rgba(255, 255, 255, 0.6);	
	
}

#photo img	{
	text-align:center;
	position:relative;
	/*width:auto;*/
	max-width:100%;

}

img.display	{
	display: block;
	margin-left: auto;
    margin-right: auto;
}

iframe.display	{
	display: block;
	margin-left: auto;
    margin-right: auto;
}

.style-prof	{
	font-family:Georgia,Garamond, Verdana, serif;
	font-size:1em;
	text-align:justify;
	line-height:1.5em;
}

#prof	{
	/*position:relative;
	top:10px;
	left:10px;*/
	margin: 10px;
	max-width:100%;

}

img.photo-prof	{
	display: block;
	margin-left: auto;
    margin-right: auto;
	border-radius : 15px;
}

/* ---- Footer - Grille ----*/
footer {
    grid-area: footer;
    display: grid;
    /*grid-template-columns: 1fr 3fr;*/
	
	/*grid-template-areas: "info avertissement";*/
    gap: 20px;
    padding: 20px 20px;
    /*min-height: 15em;
    align-items: center;*/
	min-height: 20vh;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "info avertissement logo";
    align-items: stretch; /* même hauteur */
    height: 100%;/**/
	
}


#info-NDP {
    /*grid-column: info;*/
	grid-area: info;
    background: rgba(15, 37, 44, 0.55); /* #497a94 en verre mat */
    border-radius: 15px;
    padding: 25px;
    display: flex;
	flex-direction: column;
    justify-content: center;
	justify-content: flex-start;
    min-width: 20em;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
	transition: all 0.3s ease;
	width: 28em;/**/
    flex: 0 0 22em;/**/

}


#avertissement {
    /*grid-column: avertissement;*/
	grid-area: avertissement;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#logo_ndp {
	/*grid-column : logo_ndp;*/
/*width: 12%;*/
	grid-area: logo;
    z-index: 2;
    transition: transform 0.3s ease;
}
.style-04 {
    font-size: 1em;
}

/* Divers */
.style-cas {
    font-size: 1em;
    font-style: oblique;
    text-align: center;
    line-height: 1.5em;
}

.acc {
    color: #7F1519; /* accent brique conservé */
    font-weight: bolder;
}

img.display, img.zoom {
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 5px solid rgba(24,64,58,0.85); /* bord teal */
    border-radius: 12px;
    transition: all 0.3s ease;
}

img.display:hover, img.zoom:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

img.displaysc {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.style-05 {
    font-size: 1.2em;
    text-align: justify;
    color: #282653; /* harmonisé */
    font-style: oblique;
}

blockquote {
    margin-left: 100px;
    background: rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

video.display {
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
}

/* RESPONSIVE  */
@media (max-width: 1024px) {
    article {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    footer {
        grid-template-columns: 1fr;
        gap: 20px;
    }
	
    #nav_indice, #info-NDP {
        min-width: auto;
        order: -1;
    }
}

@media (max-width: 768px) {
    article {
        grid-template-columns: 1fr;
        padding: 20px 10px;
        gap: 20px;
    }
    footer {
        grid-template-columns: 1fr;
        padding: 20px 10px;
        gap: 20px;
    }
    h1 { font-size: 3em; }
    h2 { font-size: 2.5em; }
    h4 { font-size: 2em; }
    .cols-2 { column-count: 1; }
    nav ul li { flex: 1 1 50%; }
    .style-nav { font-size: 1.2em; }
	blockquote { margin-left: 40px;}
	.img-col2 { max-width: 100%;}
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        padding: 10px;
    }
	
    article {
        grid-template-columns: 1fr;
        padding: 20px 10px;
        gap: 20px;
    }
    footer {
        grid-template-columns: 1fr;
        padding: 20px 10px;
        gap: 20px;
    }
	.img-col2 { max-width: 100%;}
	
    #logo_class, #logo_ndp ,#photo01 { width: 40%; }
    h1 { font-size: 2em; }
    h2 { font-size: 1.8em; }
    h3, h5 { font-size: 1.5em; }
    h4 { font-size: 1.6em; }
    h6 { font-size: 1.8em; }
    .style-01 { font-size: 1.1em; }
    .style-mois { font-size: 1.2em; line-height: 2em; }
    .style-nav { font-size: 1em; }
    .style-04, .style-cas, .style-com { font-size: 0.9em; }
    .style-07 { font-size: 1.5em; }
    article { padding: 15px 10px; gap: 15px; }
    footer { padding: 15px 10px; gap: 15px; min-height: 12em; }
	
    #nav_indice { padding: 15px; }
    blockquote { margin-left: 20px; }
	nav ul li {flex: 1 1 100%;}
}
