/* Playfair Display 400 */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/web/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgA.woff2') format('woff2'),
       url('../fonts/web/PlayfairDisplay-Regular.ttf') format('truetype');
}

/* Playfair Display 700 */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/web/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgA.woff2') format('woff2'),
       url('../fonts/web/PlayfairDisplay-Bold.ttf') format('truetype');
}

/* Raleway 400 */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/web/1Ptug8zYS_SKggPNyC0ITw.woff2') format('woff2'),
       url('../fonts/web/Raleway-Regular.ttf') format('truetype');
}

/* Raleway 700 */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/web/1Ptug8zYS_SKggPNyC0ITw.woff2') format('woff2'),
       url('../fonts/web/Raleway-Bold.ttf') format('truetype');
}

/* Usage par défaut */
h1, h2, h3 { font-family: 'Playfair Display', serif; }
body, p, li { font-family: 'Raleway', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }

.w3-cds-bordeaux {
    color: #6a2d31;
    background-color: #fff;
    margin: 0.3rem!important;
    padding: 0.5rem 1rem;
    border-radius: 5rem;
}

html {
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

body {
    font-family: "Raleway", sans-serif; 
    font-size: 18px;
    line-height: 1.75;
    color: rgb(57,51,57);
}

h1, h2, h3, h4, h5 {
    font-family: "Playfair Display", serif;
    line-height: 1.25;
}

h1 {
    color: #16315d; 
    font-size: 45px;
    text-align: center;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 30px auto 25px;
    max-width: 800px;
    position: relative;
    padding-bottom: 15px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #16315d 0%, #ffffff 100%);
    border-radius: 2px;
}

/* Masquer la ligne pour les titres dans les en-têtes bleus */
.cds-bleu h1::after,
.cds-titre-page::after {
    display: none;
}
h2 {
    text-align: left;
    font-size: 28px;
    line-height: 1.75;
    word-break: auto-phrase;
}

h3 {
    color: #16315d; 
    text-align: left;
    font-size: 22px;
    margin: 1em auto auto 2em;
    padding-left: 1em;
}

a {
    text-underline-offset: 8px;
}

a:hover {
/*  background-color: #e1d7aaad; */
  padding: 5px 0; 
  text-decoration: none; 
}

footer p {
    text-align: center;
}

.cds-bleu {
    color:#fff !important;
    background-color:#16315d !important;
    padding: 1rem;
}

.cds-contenu-bleu {background-color:#f0f2f4 !important}
.cds-bordeaux {color:#fff !important;background-color:#400020 !important}
.cds-golden {background-color: #b9a178 !important}
.cds-text-bleu {color: #16315d}
.cds-titre-1 {font-family: "Playfair Display", serif; font-size: 20px} 
.mySlides {display: none}
.cds-titre-site {
    font-family: "Playfair display"; 
    font-size: 60px; 
    line-height: 1.25em; 
    text-align: right; 
    color: white; 
    padding-right: 10%;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}
.cds-titre-site-m {
    font-family: "Playfair display"; font-size: 40px; line-height: 1.25em; text-align: center; margin: 30px auto;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}
.cds-soustitre-site {
    font-family: "Playfair display"; font-size: 28px; line-height: 1.67em; text-align: right; color: white; padding-right: 10%;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}
.cds-soustitre-site-m {
    font-family: "Playfair display"; font-size: 20px; line-height: 1.25em; text-align: center; padding-bottom: 20px;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}
.cds-titre-page {color: #ffffff; font-size: 50px; text-align: center;}
.cds-soustitre-page {color: #ffffff; font-size: 30px; text-align: center;}

ul {
    font-size: 18px; 
}

ul > li {
    margin-bottom: 10px;
}

p {
    text-align: justify; 
}

/* arrière-plan des différentes zone d'une page */
.ap-blanc div {
    max-width:980px; 
    padding: 0 40px; 
    margin: 39px 0px 31px calc((100% - 600px) * 0.18);
}

.content {
    max-width: 2000px;
    margin: 39px calc((100% - 360px) * 0.18) 31px calc((100% - 360px) * 0.18); 
    padding: 0 10px;
}

.stripe-light {
    background-color: #f1f5dc8c; 
    min-height: 100px; 
    padding: 39px 0 31px;
/*    padding: 30px;*/
}

.stripe-light p {
    color: rgb(57,51,57);
}

.stripe-light h2 {
    color: #16315d;
}

.stripe-light h3 {
    border-left: 3px solid #763237;
}

.stripe-dark {
    background-color: #e1d7aaad; 
    min-height: 100px; 
    padding: 39px 0 31px;
/*    padding: 50px 0 30px;*/
} 

.stripe-dark h2 {
    color: #16315d;
}

.stripe-dark h3 {
    border-left: 3px solid #763237;
}

.stripe-dark p {
    color: rgb(57,51,57);
}

.w3-quarter > a {
    text-decoration: none;
}

.ap-blanc p {
    background-color: white; 
    color: rgb(57,51,57);
    font-size: 18px;
    text-align: left;
    line-height: 1.875em;
    min-height: 100px; 
    padding: 50px 0 30px;
}

.ap-blanc h2 {
    font-family: "Playfair Display", serif;
    font-size: 30px;
    color: #16315d;
    margin: 39px 0px 31px calc((100% - 600px) * 0.18);
}

.ap-gris {
/*    background-color: rgb(240,242,244); */
    background-color: #e1d7aaad; 
    color: rgb(57,51,57);
    font-size: 18px;
    text-align: left;
    line-height: 1.875em;
    min-height: 100px; 
    padding-top: 40px;
}

.ap-gris h2 {
    font-family: "Playfair Display", serif;
    font-size: 30px;
    color: rgb(57,51,57);
    margin: 39px 0px 31px calc((100% - 600px) * 0.18);
}

.container {
    max-width: 900px;
    margin: 39px 0px 31px calc((100% - 600px) * 0.18);
}

nav ul {list-style-type: none;margin: 0;padding: 0;overflow: hidden;background-color: none;}
nav li {float: left;}
nav li a, .dropbtn {display: inline-block;color: white;text-align: center;padding: 14px 16px;text-decoration: none;}
nav li a:hover, .dropdown:hover .dropbtn {background-color: #f1f5dc8c;}
nav li.dropdown {display: inline-block;}
.dropdown-content {display: none;position: absolute;background-color: none;min-width: 160px;box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.8);z-index: 1;}
.dropdown-content a {color: white;padding: 12px 16px;text-decoration: none;display: block;text-align: left;}
.dropdown-content a:hover {background-color: none;}
.dropdown:hover .dropdown-content {display: block;}

.w3-button {
    color: white !important;
    padding: 14px 16px;
}

.w3-button:hover {
/*    color: white !important;*/
    background-color: #f1f5dc8c !important;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.8);
    padding: 14px 16px;
}

.oblique-border {
    position: relative;
    width: 300px; /* Set the width as desired */
    padding: 20px; /* Set the padding as desired */
    background-color: #f0f0f0; /* Set the background color as desired */
    overflow: hidden; /* Hide overflow of pseudo-element */
}

.oblique-border::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%; /* Adjust this value to control the angle of the oblique border */
    width: 200%; /* Adjust this value to control the length of the oblique border */
    height: 100%;
    background-color: #007bff; /* Set the oblique border color */
    transform: rotate(-10deg); /* Adjust the rotation angle as desired */
    transform-origin: top left;
}

#parcours .w3-button:hover {
    color: black !important;
    background-color: #e1d7aaad !important;
}

.w3-bar-block .w3-bar-item {
    padding: 14px 16px; 
}

.w3-bar .w3-bar-item {
    padding: 14px 16px;
}

.w3-dropdown-content {
    background: none;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.8)
}

.w3-dropdown-hover:hover > .w3-button:first-child {
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.8);
    background: none;
}

.w3-hide > p {
    padding-left: 40px;
}

.w3-sidebar {
    background-color: #16315d;
    margin: -20px -40px;
    font-family: "Playfair Display", serif;
    font-size: xx-large;
}

.w3-opacity {
    transition: opacity 1s;
}

#website {
  display: none; 
  aria-hidden: true;
}

 /* Slideshow container, first page */
.slideshow-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

/* Slides */
.mySlides {
  display: none;
  position: relative;
  height: 413px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* News item styling inspired by Unistra */
.news-item {
  position: relative;
  height: 413px;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.news-item:hover {
  transform: translateY(-2px);
}

.news-item a {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* News infos overlay */
.news-infos {
  --c: 70%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 40px;
  padding-right: 30%;
  background: radial-gradient(25% var(--c) at 100% 50%, #fcc0 calc(100% - 20px), #fff8e3);
  color: #333;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Suppression des effets décoratifs inutiles */
.news-infos::after,
.news-infos::before {
  display: none !important;
}

.news-image-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 25%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.news-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* Category tag */
.news-category {
  margin-bottom: 15px;
}

.category-tag {
  display: inline-block;
  background-color: white;
  color: #333;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* News content */
.news-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 15px 0;
  color: #333;
}

.news-subheader {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bouton "Cliquez pour en savoir plus" */
.news-read-more {
  margin-top: 20px;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

ol.bold-numbers {
  list-style-type: none;
  counter-reset: item;
}

ol.bold-numbers li {
  counter-increment: item;
  margin-bottom: 0.5em;
}

ol.bold-numbers li::before {
  content: "Niveau " counter(item) ". ";
  font-weight: bold;
  margin-right: 0.5em;
}

/* Responsive design */
@media screen and (max-width: 768px) {
  .mySlides, .news-item {
    height: 300px;
  }
  .news-infos {
    padding: 20px;
    width: 100%;
    padding-right: 30%;
  }
  .news-image-container {
    width: 25%;
  }
  .news-title {
    font-size: 22px;
  }
  .news-subheader {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }
}

@media screen and (max-width: 480px) {
  .mySlides, .news-item {
    height: 250px;
  }
  .news-infos {
    padding: 15px;
    width: 100%;
    padding-right: 30%;
  }
  .news-image-container {
    width: 25%;
  }
  .news-title {
    font-size: 18px;
  }
  .news-subheader {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin: -30px 30px 0;
  padding: 30px 5px;
  color: rgb(0,0,0,0.5);
  font-weight: bold;
  font-size: 20px;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  position: absolute;
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  color: #16315d;
}

/* The dot/bullet/indicator container */
.dot-container {
  text-align: center;
  padding-bottom: 20px;
/*  background: #ddd;*/
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

/* Add a background color to the active dot/circle */
.active, .dot:hover {
  background-color: #16315d;
}

/* Add an italic font style to all quotes */
q {font-style: italic;}

/* Add style for "pour en savoir plus" */
.lire-plus a {
    color: cornflowerblue;
    text-decoration: none;
} 

/* end of: Slideshow container, first page */ 

header a {
    text-decoration: none;
}

footer {
    color: white;
    font-size: 14px;
    text-align: center;
    background-color: rgb(57,51,57);
}

.cds-animate-right{
    position: relative;
    animation:animateright 0.9s !important;
}

.content-small {
    max-width: 2000px;
    margin: auto calc((100% - 360px) * 0.18); 
}

.ariane {
    padding:10px;
    margin-bottom:22px;
    list-style:none;
    background-color:transparent;
    border-radius:0;
}
.ariane > li {
    display:inline-block; 
    font-size:0.8rem;
    font-weight:bold;
}

.ariane > li+li:before {
    font-family: 'FontAwesome', 'Font Awesome 6 Free', sans-serif;
    content:'\f178';
    padding:0 5px;
    color:#763237;
}
.ariane > .this-page {
    color:#763237;
    font-weight: normal;
}

.ariane > li > a {
    text-decoration: none;
}

.ariane > li > a:hover {
    text-decoration: underline;
}

div.actu-img {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    float: left;
    height: 80px;
    margin-top: 22px;
    margin-bottom: 22px;
}

.actu-main {
    padding-left: 15px; 
    padding-right: 15px;
}

.actu-main h2 {
  	font-size: 22px;
  	line-height: 1.5;
}

.actu-main p {
  	font-size: 16px;
  	line-height: 1.6;
}

.actu-main a {
    text-decoration: none;
}

.actu-main a:hover{
    text-decoration: underline;
}

.actu-aside {
    
}

/* Select responsive pour les programmes */
#program {
  max-width: 100%;
  width: 100%;
  word-wrap: break-word;
  white-space: normal;
}

/* Sur mobile, réduire la taille de police */
@media (max-width: 768px) {
  #program {
      font-size: 14px;
      padding: 8px;
  }
  
  #program option {
      font-size: 14px;
      padding: 4px;
  }
}

@media screen and (max-width: 600px) {
    h1 {
        font-size: 35px;
        margin: 20px 15px 20px;
        padding-bottom: 12px;
    }
    
    h1::after {
        width: 60px;
        height: 3px;
    }

    h2 {
        font-size: 25px;
    }
    
    .container {
        margin: 39px 0 31px;
    }
}

/* Style pour les images d'articles avec overlay dégradé */
.article-default-image {
  position: relative;
  display: inline-block;
}

.article-default-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 30%, rgba(22,49,93,0.4) 70%, rgba(22,49,93,0.2) 100%);
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
}

/* Affichage côte à côte image + contenu dans actu-detail */
.article-main-flex {
    /* les deux lignes suivantes: pour affichage avec une colonne image principale à gauche*/
    /*display: flex; */
    /* gap: 32px; */
    display: block;
    align-items: flex-start;
    margin-bottom: 32px;
}
.article-image-side {
    flex: 0 0 280px;
    max-width: 280px;
}
.article-image-side img {
    width: 100%;
    max-width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
}
.article-content-side {
    flex: 1 1 0;
    min-width: 0;
}
.article-tags {
    font-size: 0.85em;
    color: #666;
}
.article-tags .w3-tag {
    font-size: 0.9em;
    padding: 2px 8px;
}


.logo-stack {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.logo-stack img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
}

.logo-stack img:first-child {
  position: relative; /* Garde l'espace pour le conteneur */
  left: 8px;
  top: 16px;
  width: 90%;
  z-index: 1;
}

.logo-stack img:last-child {
  
}

img[src*="logo-sds-cuv.png"] {
  -webkit-animation: spin 120s linear infinite;
  -moz-animation: spin 120s linear infinite;
  animation: spin 120s linear infinite;
  z-index: 2;
}

/* Version fixe lors du scroll */
.logo-stack.fixed {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 150px; /* Taille réduite */
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Boutons des disciplines */
#disciplines-list button {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

#disciplines-list button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Détails des disciplines */
#discipline-details {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@-webkit-keyframes spin {
  from { -webkit-transform: rotate(0deg); }
  to { -webkit-transform: rotate(360deg); }
}

@-moz-keyframes spin {
  from { -moz-transform: rotate(0deg); }
  to { -moz-transform: rotate(0deg); }
}

.narratif > p {
    font-family: 'Courier New', sans-serif;
}

.narratif-term {
  background-color: #763237c2;
  color: white;
  padding: 5px;
}

/* Styles pour le système "Lire davantage" */
.narratif {
    position: relative;
}

.narratif-visible {
    display: block;
}

.narratif-collapsed {
    max-height: 150px;
    overflow: hidden;
    transition: max-height 0.6s ease-out;
    position: relative;
}

.narratif.expanded .narratif-collapsed {
    max-height: 5000px;
    transition: max-height 0.8s ease-in;
}

.narratif-fade {
    position: absolute;
    bottom: 60px;
    left: 2rem;
    right: 2rem;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 40%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    transition: opacity 0.4s ease-out;
    z-index: 1;
}

.narratif.expanded .narratif-fade {
    opacity: 0;
    pointer-events: none;
}

.narratif-toggle {
    display: block;
    margin: 1rem auto 0;
    padding: 0.75rem 1.5rem;
    background-color: #16315d;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.narratif-toggle:hover {
    background-color: white;
    color: #16315d;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.narratif-toggle:active {
    transform: translateY(0);
}

/* Responsive : ajuster la hauteur du fade sur petits écrans */
@media (max-width: 768px) {
    .narratif-collapsed {
        max-height: 120px;
    }
    
    .narratif-fade {
        height: 60px;
        bottom: 50px;
        left: 1rem;
        right: 1rem;
    }
    
    .narratif-toggle {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}