/* Crée par Rojo Ambinina - https://rehetra.blogspot.com */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Style général */
body {
    font-family: Calibri, Arial, sans-serif;
    background-color: #e3e3e3;
    color: #333;
	margin: 10px 20px;
    min-width: 320px; 
}

.page-container {
    width: 100%; 
    max-width: 1200px;
    margin: 0 auto; 
    padding: 0 20px; 
    box-sizing: border-box;
}

.main-wrapper {
    min-height: 100vh;
    padding: 20px;
    margin: 0 auto; 
	max-width: 100%; 
}

header .banner {
    position: relative; 
    background-color: #1D2650;
    padding: 10px;
    text-align: center;
    color: white;
    border-bottom: 2px solid #1D2650;
    margin-bottom: 5px;
    overflow: hidden;
	max-width: 100%;
    box-sizing: border-box;
}    

#fond-etoile-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-content h1 {
    font-family: 'Eras Bold ITC', Arial, sans-serif;
    font-size: 3em;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    opacity: 0.8;
}

.banner-content p {
    font-size: 20pt;
    margin-bottom: 5px;
    font-family: 'Bradley Hand ITC', Calibri, sans-serif, Arial; 
    color: #fff;
    animation: fadeSlideIn 1s ease-out forwards;
}

.main-container {
    display: grid;
    grid-template-columns: 230px 1.5fr 0.5fr;
    gap: 1px;
    align-items: start;
    margin: 0 auto; 
	max-width: 1200px;
}

.sidebar {
	font-family: Calibri, Arial, sans-serif;
    background-color: #1D2650;
    color: white;
    padding: 10px;
    border-right: 2px solid #fff;
    position: relative;
    width: 230px;
    margin: 0 20px 0 0;
	border-radius: 0px 15px 0px 0px;
	z-index: 1;
	height: 100%;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    padding: 5px 0;
    position: relative;
    border-bottom: 1px solid #fff;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 3px;
    font-size: 18px;
    transition: all 0.3s ease-in-out;
    position: relative;
    z-index: 1;
}

.sidebar ul li a:hover {
    background-color: #3E4A8D;
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.7);
}

/* Sous-menu */
.sidebar ul li ul {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #1D2650;
    min-width: 240px;
    border: 1px solid #1D2650;
	z-index: 1;
}

.sidebar ul li:hover > ul {
    display: block;
}

.sidebar ul li ul li {
    padding: 5px;
}

.sidebar ul li ul li a {
    font-size: 18px;
}

.center-block {
    display: flex;
    background-color: #fff;
	border-radius: 10px 10px 0px 0px;
    padding: 10px;
    width: 100%;
    justify-content: center; 
    align-items: flex-start;
	height: 100%;
}

.text-block {
	display: flex;
    background-color: #fff;
	border-radius: 5px 5px 0px 0px;
    padding: 10px;
    width: 100%;
    justify-content: left; 
    align-items: flex-start;
	height: 100%;
}

.text-image-block h3 {
	font-family: 'Eras Bold ITC', Calibri, Arial, sans-serif;
	color: #1A76D1;
	font-size: 16pt;
}

.text-image-block h4 {
	font-family: Calibri, 'Arial Black', Arial, sans-serif;
	color: #1A76D1;
	font-size: 16pt;
	margin-bottom: 10px;
}

.text-image-block strong {
	font-family: Calibri, Arial, sans-serif;
    color: #1D2650;
	margin-bottom: -5px;
}

.text-image-block p {
	font-family: Calibri, Arial, sans-serif;
	text-align: justify;
    /*hyphens: auto; Ajoute des césures pour équilibrer les mots */
    word-spacing: -0.5px;
    font-size: 11pt;
    line-height: 1.5;
    margin-bottom: 10px;
	white-space: pre-line;
}

.text-image-block ul {
	font-family: Calibri, Arial, sans-serif;
    list-style-type: square;
	margin-top: 5px;
    margin-left: 20px;
    margin-bottom: 5px;
	font-size: 11pt;
	line-height: 1.5;
}

.text-image-block ul li:not(:last-child) {
    margin-bottom: -17px;
}

.text-image-block ul li:last-child {
    margin-bottom: 2px;
}

.directeurs {
  text-align: center;
}

.directeurs h4 {
	font-family: 'Arial Black', Arial, sans-serif;
	color: #1A76D1;
	font-size: 12pt;
}

.directeurs p {
	font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 11pt;
}

.president img {
  width: 80%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 10px auto;
  border-radius: 10px;
  transition: transform 0.3s ease; 
}

.conseil img {
  width: 80%;
  max-width: 400px;
  height: auto;
  margin: 10px auto;
  border-radius: 10px;
  justify-content: left; 
  align-items: flex-start;
  transition: transform 0.3s ease; 
}

.conseil img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.president img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.adjoints {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.adjoint {
  margin: 20px;
}

.adjoint img {
  width: 70%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 10px auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.adjoint img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}



.text-image-block table {
    width: 100%;
    border-collapse: collapse;
	font-size: 11pt;
}

.text-image-block td, th {
	font-family: 'Arial Narrow', Arial, sans-serif;
	vertical-align: top;
    padding: 10px; 
    border-right: 0px solid #ddd;
}

.text-image-block td.date {
    white-space: nowrap;
}

.text-image-block tr {
    border-bottom: 0px solid #ddd;
}

.text-image-block td:last-child {
    border-right: none;
}

.text-image-block tr:last-child {
    border-bottom: none;
}

.right-block {
    background-color: #fff;
    padding: 5px;
    border: 3px solid #1D2650;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    margin: 0px -20px 0px 0px ;
	border-radius: 15px 0px 0px 0px;
	overflow: hidden;
	height: 100%;
}





.banner {
    font-size: 20pt;
    text-align: center;
    padding: 5px 5px;
	margin-bottom: 2px;
    background: linear-gradient(135deg, #1D2650, #3A4A8A);
    color: white;
    border-radius: 0 0 15px 15px;
    position: relative;
    overflow: hidden;
    animation: fadeSlideIn 1s ease-out forwards;
}

.banner:hover {
    background: linear-gradient(135deg, #3A4A8A, #1D2650);
    transition: background 0.5s ease-in-out;
}

.slogan {
    font-family: Arial, sans-serif;
    text-align: center;
    font-size: 12pt;
    margin-top: -10px;
    opacity: 0;
    animation: fadeSlideIn 1s ease-out 0.5s forwards;
}

@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .banner {
        font-size: 24pt;
        padding: 15px;
    }
    .slogan {
        font-size: 12pt;
    }
}

@media (max-width: 480px) {
    .banner {
        font-size: 20pt;
        padding: 10px;
    }
    .slogan {
        font-size: 10pt;
    }
}



.sliding-blocks {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
}

.block {
    width: 33%;
    padding: 33px;
    background-color: #1D2650;
    color: white;
    text-align: left;
    border: 2px solid #1D2650;
    height: auto;
    opacity: 0;
    transition: all 1s ease-in-out;
    box-sizing: border-box;
}

.block.left {
    transform: translateX(-100%);
	border-radius: 0px 10px 0px 0px;
}

.block.center {
    transform: translateX(0);
	border-radius: 10px 10px 0px 0px;
}

.block.right {
    transform: translateX(100%);
	border-radius: 10px 0px 0px 0px;
}

.sliding-blocks.show .block {
    opacity: 1;
    transform: translateX(0);
}

h3 {
    text-align: left;
    margin-bottom: 10px;
    position: relative;
}

h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
}

.section-line {
    border: 0;
    border-top: 2px solid white;
    margin: 10px 0;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul li {
    padding: 8px;
    border-bottom: 1px solid white;
    transition: background-color 0.3s ease, padding-left 0.3s ease;
}

.right-block .news-block,
.right-block .weather-block {
    background-color: white;
    padding-top: 5px;
	padding-left: 5px;
	padding-right: 3px;
    border: 0px solid #1D2650;
    margin-bottom: 2px; 
}

.right-block .weather-block {
	border: 0px solid #1D2650;
}

.weather-block h3 {
	margin-bottom: 0px;
}

.sliding-blocks.show .block {
    transform: translateX(0);
    opacity: 1;
}

.sliding-blocks.show .block.center {
    transform: translateY(0);
}

.block h3 {
    font-size: 16px;
    margin-bottom: 5px;
	line-height: 30px;
}

.block ul {
    list-style: none;
    padding-left: 0;
}

.block ul li {
	font-size: 16px;
}

.block ul li:hover {
	font-size: 16px;
	padding-left: 20px;
}

.block .citation {
    font-size: 9pt;
    font-style: italic;
    position: absolute;
    bottom: 5px;
    right: 5px;
}

/* Footer */
footer {
    background-color: #1D2650;
    text-align: center;
    padding: 10px;
    color: white;
	font-size: 12px;
	max-width: 100%;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .left-block,
    .center-block,
    .right-block {
        margin-bottom: 5px;
		
    }
}

.news-scroller {
    display: flex;
    flex-direction: column; 
    transition: transform 1s ease-in-out;
	margin-top: -12px;
}

.news-group {
    display: none; 
    flex-direction: column; 
    justify-content: flex-start;
    height: 100%; 
}

.news-item {
    padding-top: 10px;
    border-bottom: 0px solid #1D2650;
    background-color: white;
    color: #333;
    opacity: 0.9;
}

.news-item h3 {
    font-size: 10pt;
    margin-bottom: 5px;
}

.news-item p {
    font-size: 9pt;
    line-height: 1.2;
    color: #555;
}

.slider-weather {
    position: relative;
    width: 100%;
    height: 150px; 
    overflow: hidden;
    
}

.slider-content {
    display: flex;
    flex-direction: column;
	margin-top: -10px;
}

.slider-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 40px;
    border-bottom: 0px solid #ccc;
    background-color: white;
    opacity: 0; 
    position: absolute;
    width: 100%;
	height: 100%;
    transition: opacity 1s ease-in-out;
    animation: none;
}

.slider-item h3 {
    color: #1A76D1;
	font-size: 12pt;
	margin: 0px 0px -10px 0px;
}

.slider-item.active {
    opacity: 1;
    animation: pulseAnimation 1s ease-out;
}

@keyframes pulseAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.slider:hover .slider-item {
    opacity: 1; 
}

.drapeaux {
  text-align: center;
}

.ligne1,
.ligne2 {
  display: flex;
  justify-content: center;
  margin: 20px 0; 
  flex-wrap: wrap;
}

.drapeau {
  margin: 10px;
}

.drapeau img {
  width: 80%; 
  max-width: 200px;
  height: auto;
  transition: transform 0.3s ease;
}

.drapeau img:hover {
  transform: scale(1.1);
}

.drapeau p {
  margin-bottom: 10px;
  text-align: center;
}

/* Crée par Rojo Ambinina - https://rehetra.blogspot.com */
