/*
Theme Name:   Janine Couratier — Enfant
Theme URI:    https://www.easyconnect83.fr/
Template:     twentytwentyfive
Author:       Easy Connect 83
Author URI:   https://www.easyconnect83.fr/
*/

/* ==========================================================================
   Base
   ========================================================================== */

a {
	text-decoration: none;
}

html {
	scroll-padding-top: 120px; /* hauteur de votre en-tête sticky + une marge confortable */
	scroll-behavior: smooth;   /* défilement en douceur (optionnel) */
}

.barre-sous-titre {
	border-bottom-color: #2b272126;
	width: 80px;
	height: 1px;
	margin: 28px 0;
}

/* ==========================================================================
   Header sticky
   ========================================================================== */

.wp-site-blocks > header,
.wp-block-template-part.header,
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 999;
	background-color: var(--wp--preset--color--base, #F0EBDF);
	transition: box-shadow 0.3s ease;
}

/* ==========================================================================
   Visuels pleine cellule (grilles / hero) — style natif Gutenberg
   ========================================================================== */

.is-style-fill-cell {
	height: 100%;
}

.is-style-fill-cell img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* --- Colonne : toile en vedette (hero) --- */
/* Chemin relatif depuis style.css (wp-content/themes/twentytwentyfive-child/)
   jusqu'à wp-content/uploads/2026/07/ : on remonte de 2 niveaux (../..). */
.cjb-hero-visuel {
	background-image: url('../../uploads/2026/07/evasion-coloree.jpg');
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	min-height: 440px;
}

/* --- Colonne : photo d'atelier (À propos) --- */
.cjb-apropos-visuel {
	background-image: url('../../uploads/2026/07/portrait-artiste-peintre-janine-couratier');
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	min-height: 360px;
}

/* ==========================================================================
   Lien « Lire la suite » — modèle Blog (bloc natif core/read-more)
   Même apparence que .cjb-actu-more sur la page d'accueil.
   ========================================================================== */

.wp-block-read-more {
	font-family: 'Lora', serif;
	font-size: 14px;
	color: #3C5476;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding-bottom: 2px;
}

.wp-block-read-more:hover {
	border-bottom-color: #3C5476;
}

.wp-block-read-more::after {
	content: "→";
	transition: transform 0.2s ease;
}

.wp-block-read-more:hover::after {
	transform: translateX(3px);
}

/* ==========================================================================
   Grille des Actualités — [cjb_actualites]
   Le PHP (structure/données) est dans functions.php ; tout le style est ici.
   Personnalisez librement les valeurs ci-dessous.
   ========================================================================== */

/* --- Disposition de la grille --- */
.cjb-actu-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr); /* nombre de colonnes sur ordinateur */
	gap: 22px;                              /* espace entre les cartes */
}

/* Tablette : 2 colonnes */
@media (max-width: 900px) {
	.cjb-actu-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Mobile : 1 colonne */
@media (max-width: 600px) {
	.cjb-actu-grid {
		grid-template-columns: 1fr;
	}
}

/* --- Carte d'article --- */
.cjb-actu-card {
	display: flex;
	flex-direction: column;
}

/* --- Date · Catégorie --- */
.cjb-actu-meta {
	font-family: 'Lora', serif;
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #8C8475;
	margin: 16px 0 9px;
}

.cjb-actu-cat {
	color: #3C5476; /* couleur du tag de catégorie */
}

/* --- Titre de l'article --- */
.cjb-actu-title {
	font-family: 'Cormorant', serif;
	font-style: italic;
	font-weight: 500;
	font-size: 23px;
	line-height: 1.15;
	margin: 0 0 9px;
}

.cjb-actu-title a {
	color: #2B2721;
	text-decoration: none;
}

.cjb-actu-title a:hover {
	color: #3C5476;
}

/* --- Extrait --- */
.cjb-actu-excerpt {
	font-family: 'Lora', serif;
	font-size: 15px;
	line-height: 1.7;
	color: #4A443B;
	margin: 0 0 12px;
}

/* --- Lien « Lire la suite » --- */
.cjb-actu-more {
	margin-top: auto; /* pousse le lien en bas de carte même si les textes ont des longueurs différentes */
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'Lora', serif;
	font-size: 14px;
	color: #3C5476;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	width: fit-content;
}

.cjb-actu-more:hover {
	border-bottom-color: #3C5476;
}

.cjb-actu-more-arrow {
	transition: transform 0.2s ease;
}

/* La flèche avance légèrement au survol (mettre transform: none; pour désactiver) */
.cjb-actu-more:hover .cjb-actu-more-arrow {
	transform: translateX(3px);
}

/* ==========================================================================
   Formulaire de contact — Contact Form 7
   ========================================================================== */

.cjb-contact-form .wpcf7-form {
	display: flex;
	flex-wrap: wrap;
	column-gap: 16px;
}

.cjb-contact-form .wpcf7-form p {
	width: 100%;
	margin: 0 0 16px;
}

/* Champs à accoler : 2 par ligne sur ordinateur, empilés sur mobile */
.cjb-contact-form .wpcf7-form p.cjb-half {
	flex: 1 1 calc(50% - 8px);
	max-width: calc(50% - 8px);
}

@media (max-width: 600px) {
	.cjb-contact-form .wpcf7-form p.cjb-half {
		flex-basis: 100%;
		max-width: 100%;
	}
}

.cjb-contact-form label {
	display: flex;
	flex-direction: column;
	gap: 7px;
	font-family: 'Lora', serif;
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #9FB2CC;
}

.cjb-contact-form .cjb-champ,
.cjb-contact-form .wpcf7-form-control.cjb-champ {
	font-family: 'Lora', serif;
	font-size: 15px;
	color: #2B2721;
	background: #F5F1E7;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 0;
	padding: 12px 14px;
	width: 100%;
	box-sizing: border-box;
}

.cjb-contact-form textarea.cjb-champ {
	line-height: 1.6;
}

.cjb-contact-form .cjb-champ:focus {
	outline: none;
	border-color: #3C5476;
}

.cjb-contact-form input.wpcf7-not-valid,
.cjb-contact-form textarea.wpcf7-not-valid {
	border-color: #B0554A;
}

.cjb-contact-form .wpcf7-not-valid-tip {
	font-family: 'Lora', serif;
	font-size: 12px;
	color: #E4A79A;
	margin-top: 6px;
}

/* Bouton d'envoi */
.cjb-contact-form input.wpcf7-form-control.wpcf7-submit {
	font-family: 'Lora', serif;
	font-size: 13px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #FBF8F2;
	background: #3C5476;
	border: none;
	border-radius: 0;
	padding: 15px 34px;
	cursor: pointer;
	width: auto;
}

.cjb-contact-form input.wpcf7-form-control.wpcf7-submit:hover {
	background: #2B3E58;
}

/* Messages de statut (succès / erreur) */
.cjb-contact-form .wpcf7-response-output {
	font-family: 'Lora', serif;
	font-size: 13px;
	color: #EDE9E0;
	border-color: rgba(255, 255, 255, .3) !important;
	border-radius: 3px;
	margin-top: 16px;
}

/* Masque le spinner par défaut de CF7 (optionnel, décommentez pour l'enlever) */
/* .cjb-contact-form .wpcf7-spinner { display: none; } */

.cjb-contact-form .wpcf7-acceptance {
	display: block;
	margin: 4px 0 16px;
}

.cjb-contact-form .wpcf7-acceptance .wpcf7-list-item {
	margin: 0;
}

.cjb-contact-form .wpcf7-acceptance label {
	display: flex;
	flex-direction: row;      /* case et texte côte à côte, pas empilés */
	align-items: flex-start;
	gap: 10px;
	text-align: left;
	text-transform: none;     /* annule les majuscules héritées */
	letter-spacing: normal;
	font-size: 13px;
	color: #C7C0B2;           /* même ton que le texte de contact, plus lisible que le bleu clair actuel */
}

.cjb-contact-form .wpcf7-acceptance input[type="checkbox"] {
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 2px;
	accent-color: #3C5476;    /* couleur de la case cochée */
}

.cjb-contact-form .wpcf7-acceptance label a {
	color: #9FB2CC;
	text-decoration: underline;
}

.cjb-contact-form .wpcf7-acceptance label a:hover {
	color: #FBF8F2;
}

/* ==========================================================================
   Galerie des œuvres — plugin CJB Tableaux ([galerie_tableaux])
   ========================================================================== */

/* --- Grille des œuvres --- */
.cjb-grille {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 900px) {
	.cjb-grille {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.cjb-grille {
		grid-template-columns: 1fr;
	}
}

/* --- Affichage/masquage au filtrage (fonctionnel, ne pas retirer) --- */
.cjb-item {
	display: none;
	opacity: 0;
	transition: opacity 0.35s ease;
}

.cjb-item.cjb-visible {
	display: block;
}

.cjb-item.cjb-visible.cjb-fade-in {
	opacity: 1;
}

/* --- Visuel de l'œuvre --- */
.cjb-item-image {
	position: relative;
}

.cjb-item-image img {
	width: 100%;
	height: auto;
	display: block;
}

.cjb-badge-vendu {
	position: absolute;
	top: 10px;
	right: 10px;
	font-family: 'Lora', serif;
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	background: #FBF8F2;
	color: #2B2721;
	padding: 5px 12px;
}

/* --- Titre et détails de l'œuvre --- */
.cjb-item-infos {
	padding: 14px 0 0;
	text-align: center;
}

.cjb-item-infos h3 {
	margin: 0 0 4px;
	font-family: 'Cormorant', serif;
	font-style: italic;
	font-weight: 500;
	font-size: 19px;
	color: #2B2721;
}

.cjb-details {
	margin: 0;
	font-family: 'Lora', serif;
	font-size: 12.5px;
	color: #8C8475;
}

/* ==========================================================================
   Boutons de filtre — galerie ([galerie_tableaux])
   ========================================================================== */

.cjb-filtres {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	margin-bottom: 24px;
}

.cjb-filtre-btn {
	font-family: 'Lora', serif;
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #8C8475;
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 8px 16px;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.cjb-filtre-btn:hover {
	background: rgba(60, 84, 118, .08);
	color: #3C5476;
}

.cjb-filtre-btn.active {
	background: rgba(60, 84, 118, .1);
	color: #3C5476;
	font-weight: 600;
}