/* =========================================================
   AKORESPRIT – BANNER : logo + titre côte à côte
   ========================================================= */

/* === AKORESPRIT : justification globale des paragraphes === */
p {
  text-align: justify;
}


#header {
  display: flex;
  align-items: center;
  gap: 12px;
}

#banner .inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: left;
  padding-left: 2rem;
}

/* Sous-titre sur la ligne suivante */
#banner .inner > p {
  flex-basis: 100%;
  margin-top: .6rem;
  text-align: left;
}

/* Cercle logo */
#banner .logo .image-circle,
#header .logo .image-circle {
  display: inline-block;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  padding: 10px; /* 👈 ajoute ça */
  box-sizing: border-box; /* 👈 important */
}

#banner .logo .image-circle img,
#header .logo .image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* 👈 optionnel mais propre */
}


#header .headerbis-logo {
  display: inline-block;     /* évite les comportements bizarres inline */
  border: 0;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  width: 48px;        /* taille du logo */
  height: 48px;
  flex-shrink: 0;     /* évite qu'il se réduise */
}

#header .headerbis-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;            /* supprime l'espace sous l'image */
}



/* Titre */
#banner h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

/* Mobile banner */
@media (max-width: 480px) {
  #banner .inner {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 1.5rem;
  }

  #banner .inner > p {
    margin-top: .4rem;
  }
}

/* =========================================================
   Mini logo inline
   ========================================================= */

.mini-image-logo {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #cfcfcf;
  background-color: transparent;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mini-image-logo img {
  width: 65%;
  height: 65%;
  object-fit: contain;
}

.mini-image-logo:hover {
  transform: scale(1.08);
  border-color: #999;
}

/* =========================================================
   Typographie utilitaire
   ========================================================= */

.colorise-letter {
  color: aqua;
}

.important {
  color: rgb(242, 136, 6);
  font-weight: bold;
}

.capitalize {
  color: #00ffff;
  font-size: 2em;
  text-transform: capitalize;
}

.nocapitalize {
  text-transform: lowercase;
}

/* =========================================================
   MEDIA SYSTEM – Images & vidéos
   ========================================================= */

/* Base : la vidéo se comporte comme une image */
.image video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* Sécurité left / right (texte qui s’enroule) */
.image.left video,
.image.right video {
  width: 100%;
  margin: 0;
}

/* FIT : comportement standard (image + vidéo) */
.image.fit video {
  width: 100%;
}

/* =========================================================
   VIDEO SMALL – réduction volontaire desktop
   ========================================================= */

.image.fit.video-small video {
  width: 50%;
  margin: auto auto auto auto;       /* centre le cadre */
  
}


/* Mobile : toujours plein format */
@media screen and (max-width: 736px) {
  .image.fit.video-small video {
    width: 100%;
  }
}

/* === Video frame : refined & left aligned === */
.image.fit.video-small {
  display: block;
  padding: 0.6em;                 /* DIVISÉ PAR DEUX */
  border-radius: 10px;  
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);

}

.date {
    margin-bottom: 0.6rem;
    font-size: 1rem;
}

.statut {
    font-weight: bold;
}

/* 🟢 OUVERT */
.statut.ouvert {
    color: green;
}

/* 🔴 COMPLET */
.statut.complet {
    color: red;
}

/* ⚪ ANNULÉ / REPORTÉ */
.statut.annule,
.statut.reporte {
    color: gray;
}

/* 🔵 TERMINÉ */
.statut.termine {
    color: blue;
}


@media screen and (max-width: 736px) {
    #header nav a[href="#menu"]:before {
        font-size: 1.6em;
    }
}

@media screen and (max-width: 480px) {
    #header nav a[href="#menu"]:before {
        font-size: 2em;
    }
}


/* Headerbis : remplace le h1 du header sans sémantique H1 */

#header .headerbis {
	-moz-transition: opacity 0.2s ease-in-out, visibility 0.2s;
	-webkit-transition: opacity 0.2s ease-in-out, visibility 0.2s;
	-ms-transition: opacity 0.2s ease-in-out, visibility 0.2s;
	transition: opacity 0.2s ease-in-out, visibility 0.2s;
	border-bottom: 0;
	font-family: Raleway, Helvetica, sans-serif;
	font-size: 1em;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 0;
	opacity: 1;
	visibility: visible;
	line-height: inherit;
}

#header .headerbis a {
	border: 0;
	color: inherit;
	text-decoration: none;
}

/* Comportement identique au header.alt */

#header.alt .headerbis {
	opacity: 0;
	visibility: hidden;
}


/* Format du path */
.colorise-path {
  color: aqua;
  font-size:0.8em;
}



/* =========================
   NEWS
========================= */

.news-container{
	display:flex;
	gap:2em;
	margin:2em auto;
	max-width:65em;
}

.news-box{
	flex:1;
	border-radius:6px;
	padding:1.5em 2em;
	box-shadow:0 10px 25px rgba(0,0,0,0.3);
	border:solid 2px rgba(255,255,255,0.15);
}

/* news 1 */

.news-box.event{
	background:linear-gradient(135deg,#4c5c96,#2e3141);
	border-left:6px solid #4c5c96;
}

/* news 2 */

.news-box.update{
	background:linear-gradient(135deg,#3f7f5f,#2e3141);
	border-left:6px solid #3f7f5f;
}

.news-box h3{
	margin-bottom:0.5em;
	font-size:1.05em;
  text-transform: none !important;
}

.news-box p{
	margin-bottom:1em;
	font-size:0.9em;
}

.news-badge{
	font-size:0.65em;
	padding:0.3em 0.6em;
	border-radius:3px;
	margin-right:0.4em;
	background:white;
	color:#2e3141;
	font-weight:700;
}

/* responsive */

@media screen and (max-width:736px){

.news-container{
	flex-direction:column;
}

}


.wrapper .inner > section.alt {
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.08), /* augmenter le blanc */
    rgba(0,0,0,0.1) /*diminuer le noir */
  );
  margin: 2em -2em;   /* 👈 magie ici */
  padding: 1.5em 2em; /* padding normal */

  border-radius: 6px;
}

.news-item {
  margin-bottom: 15px;
}

.news-line {
  font-size: 0.95em;
  margin-left: 5px;
}

.flag-icon {
  width: 18px;
  vertical-align: middle;
  margin-right: 6px;
}

.flag-icon-inline {
  width: 18px;
  vertical-align: middle;
  margin-left: 6px;
}


/* Desktop */
#header nav {
    display: flex;
    align-items: center;
}

.header-user {
    margin-right: 10px;
    font-size: 12px;
    color: #bbb;
}

.header-user a {
    color: #bbb;
    text-decoration: none;
}

.header-user a {
    text-transform: none !important;
}

/* 📱 Mobile */
@media screen and (max-width: 736px) {

    #header nav {
        flex-direction: column;
        align-items: flex-end;
    }

    .header-user {
        margin-right: 0;
        margin-bottom: 5px;
        font-size: 10px;
    }
}



/* ===== MODULE (BASE COMMUNE) ===== */

.module .module-table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
}

.module .module-table th,
.module .module-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* 🔵 TITRES */
.module .module-table th {
    font-size: 15px;
    color: #00ffff;
    font-weight: 600;
    text-transform: none;
    text-align: left;
}

/* 📄 CONTENU */
.module .module-table td {
    font-size: 15px;
    color: inherit;
}

/* 👉 ALIGNEMENT DERNIÈRE COLONNE */
.module .module-table th:last-child,
.module .module-table td:last-child {
    text-align: right;
}

/* ===== DOCUMENTS ===== */

.module-documents .file-name a {
    color: inherit;
    text-decoration: none;
    transition: 0.2s;
}

.module-documents .file-name a:hover {
    text-decoration: underline;
    color: #ffffff;
}

/* ===== AUDIOS ===== */

.module-audios .audio-player {
    text-align: right;
}

.module-audios audio {
    width: 220px;
    max-width: 100%;
}

/* ===== RESPONSIVE (optionnel mais conseillé) ===== */

@media screen and (max-width: 736px) {

    .module .module-table th,
    .module .module-table td {
        font-size: 13px;
        padding: 8px 6px;
    }

    .module-audios audio {
        width: 100%;
    }
}


/* ===== VIDEOS ===== */

.module-videos .video-action {
    text-align: right;
}

.module-videos .video-action a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.module-videos .video-action a:hover {
    text-decoration: underline;
    color: #ffffff;
}

/* ===== VIDEOS ===== */

.module-videos .video-player {
    text-align: right;
}

.module-videos video {
    width: 220px;
    max-width: 100%;
    border-radius: 4px;
}

/* Mobile */
@media screen and (max-width: 736px) {
    .module-videos video {
        width: 100%;
    }
}