@charset "UTF-8";
/*
Designed by Jean Loup Couegnas
*/
/* Coloration de contenpage.css */ 

#actu {
    padding: 0
}
#actus {
    font-size: 1.25em;
}
#actu header {
	background-color: rgba(0,137,209,0.2);
	padding: 32px 16px 0 32px;
	font-size: 1.6em;
}
#actu header h1 {
	padding: 0;
	margin: 0;
	font-size: 80%;
	color: rgb(0,137,209);
	background-color: transparent;
}
#actu header h1 a {
	color: rgb(0,137,209);
	
}
#actu header h1 a oi {
	font-size: 80%;
}
#actu header h1 strong {
	font-size: 200%;
}
#nav_bottom  {
    background-color:rgba(0,137,209,0.2); 
}

#nav_bottom a {
    color: white;
    background-color:rgb(0,137,209); 
}


/* Styles spécifiques aux actualités */ 

#texte {
    background-color: rgba(255,255,255,0.5);
    position: relative;
    border-top: 1px solid white;
    font-size: 1.25em;
}
.oldie #texte {
    background-color: white;
}
#photos {
    list-style: none;
}
#photos li {
    list-style: none;
    padding: 0;
    margin: 0;
}


#actus .calendate, #actu .calendate {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 100;
}


.btn-suite {
    background-color:rgba(0,137,209,0.8);
    color: white !important;
    margin:0 auto;
    padding: 6px 16px;
    border-radius: 0;
    text-align: center;
    font-family: "Alegreya Sans", sans-serif;
    position: absolute;
    bottom: 0;
    right: 0;
}
.btn-suite big {
    font-size: 1.6em;
}
.btn-suite:hover {
    background: #333;
    text-decoration: none;
}

/* Styles mis à jour pour les actualités */
#actus .card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Assure une hauteur égale pour toutes les cartes */
}

#actus .card-header {
    position: relative;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

#actus .card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure que l'image remplit le header */
}

#actus .card-header h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,137,209, 0.67); /* Overlay semi-transparent */
    color: white;
    margin: 0;
    padding: 4px 10px 2px 10px;
    font-size: 1.2em;
    text-align: center;
    z-index: 1;

    /* Limitation à 3 lignes */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limite à 3 lignes */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* Ajoute "..." pour indiquer le texte tronqué */
}

#actus .card-body {
    flex-grow: 1;
    padding: 16px;
    position: relative;
}

#actus .btn-suite {
    position: absolute;
    bottom: 0px;
    right: 0px;
    background-color: rgb(0, 137, 209);
    color: white;
    text-align: center;
    padding: 6px 12px;
    border-radius: 0px;
    font-size: 0.9em;
    text-decoration: none;
    transition: background 0.3s ease;
}

#actus .btn-suite:hover {
    background-color: #005792; /* Couleur plus sombre au survol */
}

@media (min-width: 768px) {
    #actus .card-header {
        height: 60%; /* Maintient les proportions sur les écrans plus grands */
    }

    #actus .card-header h3 {
        font-size: 1.4em;
        padding: 15px;
    }
    .date {
        background-color:rgb(0,137,209);
        color: white;
        width: 72px;
        height: 56px;
        margin: 0;
        padding: 0;
        position: relative;
        font-size: 1em;
    }
    .jour {
        padding: 14px 0 0 0;
        position: absolute;
        left: 6px;
        top:2px;
    }
    .mois {
      top: 24px;
      right: -20px;
      width: 56px;
      height: 30px;
    }
}