/*
 Theme Name:   CVV child theme
 Template:     hello-elementor
 Version:      1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600&display=swap');

.typingContents {
	display: inline-block;
	min-width: 350px;
}

/* ===========================
   STYLES COMMUNS AUX FORMULAIRES
   =========================== */

/* Conteneurs de formulaires */
.wpcf7,
.tnp-subscription {
	max-width: 600px;
	margin: 0 auto;
	padding: 40px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
	font-family: 'Barlow', sans-serif;
}

/* Groupes de champs */
.wpcf7 p,
.tnp-field {
	margin-bottom: 24px;
	position: relative;
}

/* Labels */
.wpcf7 label,
.tnp-field label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #254740;
	font-size: 17px;
	letter-spacing: 0.3px;
	font-family: 'Barlow', sans-serif;
}

/* Champs de saisie */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
.tnp-subscription input[type="text"],
.tnp-subscription input[type="email"] {
	width: 100%;
	padding: 14px 18px;
	border: 2px solid #bdcec8;
	border-radius: 8px;
	font-size: 17px;
	color: #254740;
	background-color: #ffffff;
	transition: all 0.2s ease;
	font-family: 'Barlow', sans-serif;
	outline: none;
	box-sizing: border-box;
}

/* État focus */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus,
.tnp-subscription input[type="text"]:focus,
.tnp-subscription input[type="email"]:focus {
	border-color: #0aa454;
	box-shadow: 0 0 0 3px rgba(10, 164, 84, 0.1);
}

/* Textarea */
.wpcf7 textarea {
	min-height: 140px;
	resize: vertical;
}

/* Placeholders */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder,
.tnp-subscription input::placeholder {
	color: #69baa0;
	opacity: 1;
}

/* Boutons de soumission */
.wpcf7 input[type="submit"],
.tnp-subscription input[type="submit"] {
	background: linear-gradient(135deg, #0aa454 0%, #077d49 100%);
	color: #ffffff;
	padding: 16px 36px;
	border: none;
	border-radius: 8px;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 6px rgba(10, 164, 84, 0.2);
	letter-spacing: 0.5px;
	font-family: 'Barlow', sans-serif;
}

.wpcf7 input[type="submit"]:hover,
.tnp-subscription input[type="submit"]:hover {
	background: linear-gradient(135deg, #077d49 0%, #254740 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(10, 164, 84, 0.3);
}

.wpcf7 input[type="submit"]:active,
.tnp-subscription input[type="submit"]:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(10, 164, 84, 0.2);
}

/* Checkbox privacy/consent */
.tnp-privacy-field label {
	display: flex;
	align-items: flex-start;
	font-weight: 500;
	font-size: 15px;
	cursor: pointer;
}

.tnp-privacy {
	margin-right: 10px;
	margin-top: 2px;
	width: 18px;
	height: 18px;
	cursor: pointer;
	flex-shrink: 0;
}

/* ===========================
   ERREURS ET VALIDATIONS
   =========================== */

.wpcf7-not-valid,
.tnp-subscription input:invalid:not(:placeholder-shown) {
	border-color: #ef4444 !important;
}

.wpcf7-not-valid-tip {
	color: #ef4444;
	font-size: 15px;
	margin-top: 6px;
	display: block;
	font-weight: 500;
	font-family: 'Barlow', sans-serif;
}

/* Messages de réponse */
.wpcf7-response-output {
	margin: 24px 0 0;
	padding: 16px 20px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 500;
	border: 2px solid;
	font-family: 'Barlow', sans-serif;
}

.wpcf7-mail-sent-ok {
	background-color: #d1fae5;
	border-color: #60b98f;
	color: #077d49;
}

.wpcf7-mail-sent-ng,
.wpcf7-validation-errors {
	background-color: #fee2e2;
	border-color: #ef4444;
	color: #991b1b;
}

.wpcf7-spam-blocked {
	background-color: #fef3c7;
	border-color: #f59e0b;
	color: #92400e;
}

/* Spinner de chargement */
.wpcf7-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	margin-left: 12px;
	vertical-align: middle;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 640px) {
	.wpcf7,
	.tnp-subscription {
		padding: 24px 20px;
	}
	
	.wpcf7 input[type="submit"],
	.tnp-subscription input[type="submit"] {
		width: 100%;
	}
}

/* ===========================
   NAVIGATION
   =========================== */

.site-navigation {
	background-color: transparent;
	padding: 0;
}

.site-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
}

.site-navigation li {
	margin: 0;
}

.site-navigation a {
	display: block;
	padding: 1rem 2rem;
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 1.1rem;
	font-weight: 500;
	color: #077d49;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
}

.site-navigation a:hover {
	background-color: #bdcec8;
	color: #254740;
}

.site-navigation a:active {
	background-color: #69baa0;
	color: #ffffff;
}

.site-navigation .current-menu-item a {
	background-color: #077d49;
	color: #ffffff;
}

.facebook-link {
    display: inline-block;
    background-color: #E0E0E0;
    color: #077D49;
    font-weight: bold;
    padding: 0px 3px;
    border-radius: 3px;
    text-decoration: none !important; /* Ceci supprime déjà le soulignement */
    transition: background-color 0.2s ease;
		line-height: 1.2
}
.facebook-link:hover {
    background-color: #d5d5d5;
    color: #077D49;
    text-decoration: none; /* Ajouté pour être sûr au survol */
}
.facebook-link:visited {
    color: #077D49;
    text-decoration: none; /* Ajouté pour les liens visités */
}
.facebook-link:active {
    color: #077D49;
    text-decoration: none; /* Ajouté pour les liens actifs */
} 


/** articles du blog **/
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600&family=Barlow:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ============================================================
   STYLES ARTICLE DE BLOG  — scoped .single-post uniquement
   ============================================================ */

/* Libère site-main de la contrainte max-width du thème
   (le thème Hello Elementor applique max-width sur body:not(.elementor-page-*) .site-main) */
.single-post .site-main {
    max-width: none !important;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* -------------------------------------------------------
   BANDEAU VERT : pleine largeur, contenu centré
   ------------------------------------------------------- */

.single-post .page-header {
    background-color: #077D49;
    padding: 75px 20px 60px;
}

.single-post .page-header .entry-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3.6rem;
    font-weight: 600;
    color: #E0E0E0;
    line-height: 1.15;
    margin: 0 auto;
    max-width: 1140px;
    padding-bottom: 24px;
}

.single-post .page-header .entry-excerpt {
    max-width: 1140px;
    margin: 0 auto;
    color: #E0E0E0;
    font-family: 'Barlow', sans-serif;
    font-size: 29px;
    font-weight: 400;
}

.single-post .page-header .entry-excerpt p {
    margin: 0 0 1em;
}

.single-post .page-header .entry-excerpt p:last-child {
    margin-bottom: 0;
}

.single-post .page-content {
    padding: 40px 0 60px;
}

/* -------------------------------------------------------
   CONTENU DE L'ARTICLE : centré avec max-width
   Règle générique : tout nouveau wp-block- est automatiquement centré
   ------------------------------------------------------- */

.single-post .page-content > [class*="wp-block-"] {
    box-sizing: border-box;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    font-family: 'Barlow', sans-serif;
}

/* Liens dans le contenu */
.single-post .page-content a,
.single-post .comments-area a {
    color: #077D49;
    text-decoration: underline;
}

.single-post .page-content a:hover,
.single-post .comments-area a:hover {
    color: #254740;
}

/* --- Titres --- */

.single-post .wp-block-heading {
    font-family: 'Barlow Condensed', sans-serif;
    color: #077D49;
    font-weight: 600;
    margin-top: 2.2rem;
    margin-bottom: 0.6rem;
}

.single-post h2.wp-block-heading {
    font-size: 1.7rem;
    border-bottom: 2px solid #bdcec8;
    padding-bottom: 0.35rem;
}

.single-post h3.wp-block-heading {
    font-size: 1.3rem;
}

/* --- Paragraphes --- */

.single-post .wp-block-paragraph {
    margin-top: 0;
    margin-bottom: 1.1em;
}

.single-post .wp-block-paragraph:empty {
    display: none;
}

.single-post .wp-block-paragraph.has-text-align-center {
    text-align: center;
}

/* --- Citations --- */

.single-post .page-content > .wp-block-quote {
    border-left: 4px solid #077D49;
    background-color: #f4faf7;
    color: #254740;
    font-size: 1.05rem;
    margin-top: 1.8rem;
    margin-bottom: 1.8rem;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
}

.single-post .page-content > .wp-block-quote p {
    margin-bottom: 0;
}

/* --- Images --- */

.single-post .wp-block-image {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.single-post .wp-block-image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.single-post .wp-block-image.aligncenter {
    text-align: center;
}

.single-post .wp-block-image figcaption {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
    text-align: center;
}

.single-post .wp-block-paragraph.has-text-align-center em {
    font-size: 0.9rem;
    color: #555;
}

/* --- Tableau --- */

.single-post .wp-block-table {
    overflow-x: auto;
    margin-top: 1.8rem;
    margin-bottom: 1.8rem;
}

.single-post .wp-block-table table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.95rem;
    background: transparent;
}

.single-post .wp-block-table thead th {
    background-color: #077D49;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 14px;
    text-align: left;
    border: none;
}

.single-post .wp-block-table tbody td {
    padding: 9px 14px;
    border-bottom: 1px solid #bdcec8;
    border-top: none;
    border-left: none;
    border-right: none;
    color: #254740;
}

.single-post .wp-block-table tbody tr:nth-child(even) td {
    background-color: #f4faf7;
}

.single-post .wp-block-table tbody tr:hover td {
    background-color: #e8f4ef;
}

/* --- Séparateur --- */

.single-post .wp-block-separator {
    border: none;
    border-top: 2px solid #bdcec8;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

/* --- Boutons --- */

.single-post .wp-block-buttons {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.single-post .wp-block-button__link {
    display: inline-block;
    background: #077D49;
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: opacity 0.2s;
}

.single-post .page-content .wp-block-button__link,
.single-post .page-content .wp-block-button__link:hover {
    color: #fff;
    text-decoration: none;
}

.single-post .wp-block-button__link:hover {
    opacity: 0.88;
}

/* -------------------------------------------------------
   FORMULAIRE DE COMMENTAIRES
   ------------------------------------------------------- */

.single-post .comments-area {
    box-sizing: border-box;
    max-width: 1140px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    border-top: 2px solid #bdcec8;
}

.single-post .comment-reply-title {
    font-family: 'Barlow Condensed', sans-serif;
    color: #254740;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.single-post .comment-form p {
    margin-bottom: 1rem;
}

.single-post .comment-form label {
    display: block;
    font-weight: 600;
    color: #254740;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.single-post .comment-form textarea,
.single-post .comment-form input[type="text"],
.single-post .comment-form input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #bdcec8;
    border-radius: 6px;
    font-size: 1rem;
    color: #254740;
    outline: none;
    transition: border-color 0.2s;
}

.single-post .comment-form textarea:focus,
.single-post .comment-form input:focus {
    border-color: #077D49;
}

.single-post .comment-form textarea {
    min-height: 130px;
    resize: vertical;
}

.single-post .comment-form input[type="submit"] {
    background: linear-gradient(135deg, #077D49 0%, #254740 100%);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.single-post .comment-form input[type="submit"]:hover {
    opacity: 0.88;
}

/* -------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------- */

@media (max-width: 768px) {
    .single-post .page-header {
        padding: 30px 20px 30px;
    }

    .single-post .page-header .entry-title {
        font-size: 3rem;
        padding-bottom: 16px;
    }

    .single-post .page-header .entry-excerpt {
        font-size: 18px;
    }

    .single-post .wp-block-table table {
        font-size: 0.85rem;
    }

    .single-post .wp-block-table td,
    .single-post .wp-block-table th {
        padding: 7px 10px;
    }
}

@media (max-width: 480px) {
    .single-post .page-header .entry-title {
        font-size: 2.4rem;
    }

    .single-post .page-header .entry-excerpt {
        font-size: 16px;
    }
}

/* ============================================================
   LISTE DES ARTICLES (page-mes-articles.php)
   ============================================================ */

.ma-liste-articles.site-main,
.agenda-politique.site-main {
    max-width: none !important;
    width: 100%;
    padding: 0;
    margin: 0;
}

.ma-liste-articles .page-header,
.agenda-politique .page-header {
    background-color: #077D49;
    padding: 75px 20px 0;
}

.ma-liste-articles .page-header .entry-title,
.agenda-politique .page-header .entry-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3.6rem;
    font-weight: 600;
    color: #E0E0E0;
    line-height: 1.15;
    margin: 0 auto;
    max-width: 1140px;
    padding-bottom: 24px;
}

.ma-liste-articles .page-content,
.agenda-politique .page-content {
    padding: 0 0 60px;
}

/* Chapo : continuation du bandeau vert, texte repris tel quel de la page Actualités */
.ma-liste-articles .chapo-articles,
.agenda-politique .chapo-articles {
    background-color: #077D49;
    margin: 0;
    padding: 0 20px 125px;
    color: #E0E0E0;
    font-family: 'Barlow', sans-serif;
    font-size: 29px;
    font-weight: 400;
}

.ma-liste-articles .chapo-articles p,
.agenda-politique .chapo-articles p {
    max-width: 1140px;
    margin: 0 auto 1em;
}

.ma-liste-articles .chapo-articles p:last-child,
.agenda-politique .chapo-articles p:last-child {
    margin-bottom: 0;
}

.grille-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1140px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.ma-liste-articles-vide {
    max-width: 1140px;
    margin: 0 auto;
    color: #254740;
    font-family: 'Barlow', sans-serif;
    font-size: 1.1rem;
}

.carte-article {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carte-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.carte-article-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.carte-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.carte-article:hover .carte-article-image img {
    transform: scale(1.05);
}

.carte-article-corps {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px;
}

.carte-article-date {
    font-family: 'Barlow', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #69baa0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
}

.carte-article-titre {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 12px;
}

.carte-article-titre a {
    color: #077D49;
    text-decoration: none;
}

.carte-article-titre a:hover {
    color: #254740;
    text-decoration: underline;
}

.carte-article-extrait {
    font-family: 'Barlow', sans-serif;
    font-size: 0.95rem;
    color: #254740;
    line-height: 1.5;
    margin: 0 0 16px;
    flex-grow: 1;
}

.carte-article-lien {
    align-self: flex-start;
    font-family: 'Barlow', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    background: #077D49;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.carte-article-lien:hover {
    opacity: 0.88;
    text-decoration: none;
    color: #ffffff;
}

@media (max-width: 768px) {
    .ma-liste-articles .page-header,
    .agenda-politique .page-header {
        padding: 30px 20px 0;
    }

    .ma-liste-articles .page-header .entry-title,
    .agenda-politique .page-header .entry-title {
        font-size: 3rem;
        padding-bottom: 16px;
    }

    .ma-liste-articles .chapo-articles,
    .agenda-politique .chapo-articles {
        font-size: 18px;
        padding-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .ma-liste-articles .page-header .entry-title,
    .agenda-politique .page-header .entry-title {
        font-size: 2.4rem;
    }

    .ma-liste-articles .chapo-articles,
    .agenda-politique .chapo-articles {
        font-size: 16px;
    }
}

/* --- Encart newsletter (sous la grille d'articles) --- */

.encart-newsletter {
    max-width: 700px;
    margin: 56px auto 0;
    padding: 40px 20px 60px;
    border-top: 2px solid #bdcec8;
}

.encart-newsletter-titre {
    font-family: 'Barlow Condensed', sans-serif;
    color: #077D49;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 10px;
    text-align: center;

}

.encart-newsletter-texte {
    font-family: 'Barlow', sans-serif;
    color: #254740;
    font-size: 1rem;
    margin: 0 0 20px;
    text-align: center;

}

@media (max-width: 480px) {
    .encart-newsletter-titre {
        font-size: 1.5rem;
    }
}

/* ============================================================
   CALENDRIER / AGENDA (fonction fiche_section_calendrier +
   shortcode [ics_calendar]) — palette et typo reprises de
   l'identité CVV (vert #077D49, texte #254740, Barlow/Barlow
   Condensed) au lieu du gris neutre d'origine.
   ============================================================ */

.fa-section {
    margin-bottom: 2rem;
}

.agenda-politique .fa-section {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 20px 0;
    box-sizing: border-box;
}

.fa-section-titre {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #077D49;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid #bdcec8;
    margin-bottom: 1rem;
}

.fa-card {
    background: #ffffff;
    border: 1px solid #bdcec8;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* ── En-tête section calendrier ─────────────────────────────── */
.fa-cal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: .75rem;
}

.fa-cal-header .fa-section-titre {
    margin-bottom: .15rem;
}

.fa-cal-note {
    font-size: 13px;
    font-family: 'Barlow', sans-serif;
    color: #254740;
    opacity: 0.7;
    margin: 0;
    font-style: italic;
}

.fa-cal-export {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
    margin-top: .25rem;
}

.fa-cal-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .75rem;
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #077D49;
    background: #d1fae5;
    border: 1px solid #60b98f;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, opacity .15s ease;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none;
}

.fa-cal-copy-btn:hover {
    background: #bdcec8;
    color: #254740;
}

.fa-cal-copy-btn:focus,
.fa-cal-copy-btn:active,
.fa-cal-copy-btn:focus:not(:focus-visible) {
    background: #d1fae5;
    color: #077D49;
    outline: none;
    box-shadow: none;
}

.fa-cal-copy-ok {
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    color: #077D49;
    font-weight: 600;
}

.fa-cal-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #69baa0;
    cursor: default;
}

.fa-cal-help:hover .fa-cal-tooltip,
.fa-cal-help:focus .fa-cal-tooltip {
    opacity: 1;
    pointer-events: auto;
}

.fa-cal-tooltip {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    width: 220px;
    background: #254740;
    color: #ffffff;
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    line-height: 1.45;
    padding: .45rem .6rem;
    border-radius: 6px;
    z-index: 100;
    transition: opacity .15s;
}

.fa-cal-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 5px;
    border: 5px solid transparent;
    border-top: none;
    border-bottom-color: #254740;
}

/* ── Wrapper général du shortcode [ics_calendar] ───────────── */
.ics-calendar.layout-list {
    font-family: 'Barlow', sans-serif;
    max-width: 520px;
}

/* ── En-têtes de mois ───────────────────────────────────────── */
.ics-calendar .ics-calendar-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.6rem;
    letter-spacing: .01em;
    text-transform: none;
    color: #077D49;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #bdcec8;
}

.ics-calendar .ics-calendar-label:first-child {
    margin-top: 0;
}

/* ── Bloc par date ──────────────────────────────────────────── */
.ics-calendar .ics-calendar-date-wrapper {
    display: flex;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #bdcec8;
    align-items: flex-start;
}

.ics-calendar .ics-calendar-date-wrapper:last-child {
    border-bottom: none;
}

/* ── Badge date (jour + mois) ───────────────────────────────── */
.ics-calendar .ics-calendar-date {
    min-width: 44px;
    text-align: center;
    background: #d1fae5;
    border-radius: 8px;
    padding: 7px 6px;
    flex-shrink: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Masquer le nom du jour, ne garder que chiffre + mois */
.ics-calendar .ics-calendar-date [data-date-format="l"] {
    display: none;
}

.ics-calendar .ics-calendar-date [data-date-format="j"] {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #077D49;
    line-height: 1.1;
    order: 1;
}

.ics-calendar .ics-calendar-date [data-date-format="F"] {
    font-family: 'Barlow', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #0aa454;
    font-weight: 600;
    margin-top: 2px;
    order: 2;
}

.ics-calendar dl.events {
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.ics-calendar dl.events dt {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    color: #69baa0;
    margin: 0;
}

.ics-calendar dl.events dt .end_time {
    color: #bdcec8;
}

.ics-calendar dl.events dd {
    margin: 0;
}

.ics-calendar dl.events .title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #254740;
    display: block;
}

.ics-calendar dl.events .descloc {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    color: #254740;
    opacity: 0.75;
    margin-top: 2px;
}

.ics-calendar dl.events .location::before {
    content: "📍 ";
    font-size: 11px;
}

@media (max-width: 540px) {
    .fa-cal-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .fa-cal-export {
        margin-top: .5rem;
    }
}
