/**
 * Styles additionnels du thème Ebrioo (compléments à theme.json + ebrioo-charte.css).
 */

/* ---------------------------------------------------------------------
   CARROUSEL HERO (4 slides, dégradé infini teal → violet → magenta)
   ------------------------------------------------------------------- */
.ebrioo-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(120deg, #46B5AA 0%, #501E96 50%, #E5239C 100%);
}
.ebrioo-hero__track { position: relative; min-height: clamp(340px, 50vh, 520px); }
.ebrioo-hero__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3.5rem 1.5rem 5rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity .8s ease;
}
.ebrioo-hero__slide.is-active { opacity: 1; visibility: visible; }
.ebrioo-hero__inner { max-width: 900px; text-align: center; color: #fff; }
.ebrioo-hero__title {
	color: #fff;
	text-transform: uppercase;
	font-size: clamp(1.8rem, 4vw, 3rem);
	line-height: 1.15;
	margin: 0 0 1rem;
}
.ebrioo-hero__sub {
	color: rgba(255, 255, 255, .92);
	font-size: 1.15rem;
	margin: 0 0 2rem;
}
.ebrioo-hero__btn {
	display: inline-block;
	background: var(--eb-turquoise, #46B5AA);
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	padding: .9rem 2.2rem;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
	transition: transform .2s ease, background .2s ease;
}
.ebrioo-hero__btn:hover { background: #36a79c; color: #fff; transform: translateY(-2px); }
.ebrioo-hero__dots {
	position: absolute;
	bottom: 1.6rem; left: 0; right: 0;
	display: flex; gap: .5rem; justify-content: center;
	z-index: 3;
}
.ebrioo-hero__dot {
	width: 34px; height: 4px; padding: 0;
	border: 0; border-radius: 2px;
	background: rgba(255, 255, 255, .45);
	cursor: pointer; transition: background .2s ease;
}
.ebrioo-hero__dot.is-active { background: #fff; }
.ebrioo-hero__nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 46px; height: 46px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .15); color: #fff;
	border: 0; border-radius: 999px;
	font-size: 1.7rem; line-height: 1; cursor: pointer; z-index: 3;
	transition: background .2s ease;
}
.ebrioo-hero__nav:hover { background: rgba(255, 255, 255, .32); }
.ebrioo-hero__prev { left: 1rem; }
.ebrioo-hero__next { right: 1rem; }
@media (max-width: 600px) {
	.ebrioo-hero__nav { display: none; }
	.ebrioo-hero__track { min-height: clamp(380px, 60vh, 520px); }
}

/* En-tête : léger ombrage et adhérence en haut de page */
.ebrioo-header {
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 1px 0 rgba(50, 53, 50, .08);
}

/* ---------------------------------------------------------------------
   CARTES À HAUTEUR ÉGALE (services, formules)
   Les colonnes WP s'étirent ; on force la carte à remplir la hauteur et
   on pousse le lien « En savoir plus » en bas pour un alignement net.
   ------------------------------------------------------------------- */
/* Les colonnes contenant des cartes s'étirent à la même hauteur.
   IMPORTANT : pas de height:100% sur la carte (ça casse l'étirement flex). */
.wp-block-columns:not(.is-not-stacked-on-mobile),
.wp-block-columns { align-items: stretch !important; }

.ebrioo-card {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	border-radius: var(--eb-radius-card, 12px);
	box-shadow: 0 6px 22px rgba(50, 53, 50, .07);
	transition: transform .2s ease, box-shadow .2s ease;
}
.ebrioo-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(50, 53, 50, .12);
}
.ebrioo-card > :first-child { margin-top: 0; }
/* Cartes services : lien « En savoir plus » collé en bas pour aligner */
.ebrioo-card:not(.ebrioo-card--center) > p:last-child { margin-top: auto; margin-bottom: 0; }
/* Cartes formules : centrées, contenu en haut, hauteur égalisée par la colonne */
.ebrioo-card--center { text-align: center; align-items: center; }

/* Motif liseré (barre turquoise à gauche) — appliqué aux cartes services */
.ebrioo-card--liseret {
	box-shadow:
		inset 5px 0 0 0 var(--eb-turquoise, #46B5AA),
		0 6px 22px rgba(50, 53, 50, .07);
}
.ebrioo-card--liseret:hover {
	box-shadow:
		inset 5px 0 0 0 var(--eb-magenta, #E5239C),
		0 14px 32px rgba(50, 53, 50, .12);
}

/* ---------------------------------------------------------------------
   BOUTONS — plats et modernes (aplat de couleur charte, sans dégradé).
   La couleur vient de theme.json (violet par défaut) ou du bouton lui-même ;
   on n'impose donc pas le fond ici → les boutons inversés (blanc sur bande
   colorée) restent corrects.
   ------------------------------------------------------------------- */
.wp-element-button {
	border-radius: 8px;
	transition: filter .2s ease, transform .15s ease, box-shadow .2s ease;
}
.wp-block-button:not(.is-style-outline) > .wp-element-button {
	border: 0;
	box-shadow: 0 4px 14px rgba(50, 53, 50, .14);
}
.wp-block-button:not(.is-style-outline) > .wp-element-button:hover {
	filter: brightness(.93);
	transform: translateY(-1px);
	box-shadow: 0 7px 18px rgba(50, 53, 50, .22);
}
/* Variante outline (celle qui te plaît) — épurée */
.wp-block-button.is-style-outline > .wp-element-button {
	border-width: 2px;
	border-radius: 8px;
	font-weight: 700;
}
.wp-block-button.is-style-outline > .wp-element-button:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
}

/* Pictogrammes */
.ebrioo-picto img { display: block; margin-inline: auto; }

/* Bloc « Pourquoi choisir Ebrioo » : image infini + liste à puces infini */
.ebrioo-infini-img img { max-width: 360px; height: auto; }
.ebrioo-infini-list {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
}
.ebrioo-infini-list li {
	padding-left: 52px;
	margin-bottom: .9rem;
	min-height: 30px;
	font-size: 1.15rem;
	line-height: 1.5;
	color: var(--eb-text, #323532);
	background: var(--puce) no-repeat left 0.15em;
	background-size: 38px auto;
}

/* ---------------------------------------------------------------------
   CARROUSEL « NOS DOMAINES DE FORMATION » (1 domaine par slide)
   ------------------------------------------------------------------- */
.ebrioo-domcar { position: relative; max-width: 980px; margin: 2.5rem auto 0; }
.ebrioo-domcar__track { position: relative; min-height: 300px; }
.ebrioo-domcar__slide {
	position: absolute; inset: 0;
	opacity: 0; visibility: hidden;
	transition: opacity .6s ease;
}
.ebrioo-domcar__slide.is-active { opacity: 1; visibility: visible; position: relative; }
.ebrioo-domcard {
	display: grid;
	grid-template-columns: 1.2fr .8fr;
	align-items: center;
	gap: 1.5rem;
	min-height: 300px;
	padding: 2.5rem 2.75rem;
	border-radius: 22px;
	background: linear-gradient(135deg, #ffffff 0%, #dff1ee 100%);
	box-shadow: 0 18px 40px rgba(50, 53, 50, .10);
}
.ebrioo-domcard__eyebrow {
	display: inline-block;
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-weight: 700; font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase;
	color: var(--eb-turquoise, #46B5AA);
	margin-bottom: .35rem;
}
.ebrioo-domcard__title {
	margin: 0 0 .75rem;
	font-size: clamp(1.8rem, 3.5vw, 2.6rem);
	color: var(--eb-gris-fonce, #323532);
}
.ebrioo-domcard__desc { margin: 0 0 1.5rem; color: #4a4d4a; font-size: 1.05rem; }
.ebrioo-domcard__link {
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-weight: 700; text-decoration: none;
	color: var(--eb-magenta, #E5239C);
}
.ebrioo-domcard__link:hover { color: var(--eb-prune, #A31770); }
.ebrioo-domcard__media {
	position: relative;
	display: flex; align-items: center; justify-content: center;
	min-height: 200px;
}
.ebrioo-domcard__infini {
	position: absolute;
	width: 260px; max-width: 90%; height: auto;
	filter: grayscale(1);
	opacity: .12;
}
.ebrioo-domcard__picto { position: relative; width: 120px; height: auto; z-index: 1; }

.ebrioo-domcar__nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 44px; height: 44px;
	display: flex; align-items: center; justify-content: center;
	background: #fff; color: var(--eb-turquoise, #46B5AA);
	border: 0; border-radius: 999px;
	box-shadow: 0 4px 14px rgba(50, 53, 50, .18);
	font-size: 1.7rem; cursor: pointer; z-index: 3;
	transition: color .2s ease, transform .2s ease;
}
.ebrioo-domcar__nav:hover { color: var(--eb-magenta, #E5239C); transform: translateY(-50%) scale(1.08); }
.ebrioo-domcar__prev { left: -10px; }
.ebrioo-domcar__next { right: -10px; }
.ebrioo-domcar__dots {
	display: flex; gap: .5rem; justify-content: center;
	margin-top: 1.5rem;
}
.ebrioo-domcar__dot {
	width: 11px; height: 11px; padding: 0;
	border: 0; border-radius: 999px;
	background: rgba(70, 181, 170, .35);
	cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.ebrioo-domcar__dot.is-active { background: var(--eb-turquoise, #46B5AA); transform: scale(1.25); }

@media (max-width: 700px) {
	.ebrioo-domcard { grid-template-columns: 1fr; text-align: center; padding: 2rem 1.5rem; }
	.ebrioo-domcard__media { order: -1; min-height: 150px; }
	.ebrioo-domcar__nav { display: none; }
}

/* Numéros d'étapes « Pourquoi sur-mesure » */
.ebrioo-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	margin-right: .5rem;
	border-radius: 999px;
	background: var(--eb-magenta, #E5239C);
	color: #fff;
	font-size: 1rem;
	vertical-align: middle;
}

/* Puces de méthodologies (ancien style, conservé si réutilisé) */
.ebrioo-chip { margin: 0; white-space: nowrap; }

/* Nuage de mots des méthodologies */
.ebrioo-cloud {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: .6rem 1.3rem;
	max-width: 900px;
	margin: 2.5rem auto 0;
	line-height: 1.1;
	text-align: center;
	padding: 1.5rem 0;
}
.ebrioo-cloud__word {
	display: inline-block;
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-weight: 700;
	cursor: default;
	transform: translateY(var(--ty, 0)) rotate(var(--rot, 0deg));
	transition: transform .2s ease, opacity .2s ease;
}
.ebrioo-cloud__word:hover {
	transform: translateY(var(--ty, 0)) rotate(var(--rot, 0deg)) scale(1.12);
	opacity: 1;
}
.ebrioo-cloud .s1 { font-size: 1rem;    opacity: .85; }
.ebrioo-cloud .s2 { font-size: 1.3rem;  opacity: .9; }
.ebrioo-cloud .s3 { font-size: 1.7rem; }
.ebrioo-cloud .s4 { font-size: clamp(2rem, 3.5vw, 2.4rem); }
.ebrioo-cloud .s5 { font-size: clamp(2.4rem, 4.5vw, 3rem); }

/* Citation */
.ebrioo-quote { border: 0; padding: 0; }
.ebrioo-quote cite {
	display: block;
	margin-top: 1rem;
	text-align: center;
	font-style: normal;
	font-weight: 600;
	color: var(--eb-magenta, #E5239C);
}

/* Vidéo */
.ebrioo-video { margin-top: 2rem; }

/* Pas d'espace blanc avant le footer : il touche la section précédente
   (la marge de bloc au niveau racine entre <main> et le footer est annulée). */
.ebrioo-footer { margin-block-start: 0 !important; }

/* Liens du pied de page */
.ebrioo-footer__list { list-style: none; margin: 0; padding: 0; line-height: 2; }
.ebrioo-footer__list--legal li { line-height: 1.35; margin-bottom: .6rem; }
.ebrioo-footer__list--legal li:last-child { margin-bottom: 0; }
.ebrioo-doc { display: inline-flex; align-items: center; gap: .5rem; }
.ebrioo-doc__tag {
	font-size: .6rem; font-weight: 700; letter-spacing: .5px; line-height: 1;
	padding: .15rem .4rem; border-radius: 4px;
	background: rgba(255, 255, 255, .16); color: #fff;
}
.ebrioo-doc:hover .ebrioo-doc__tag { background: var(--eb-turquoise, #46B5AA); text-decoration: none; }
.ebrioo-footer a { color: #fff; text-decoration: none; }
.ebrioo-footer a:hover { color: var(--eb-turquoise, #46B5AA); text-decoration: underline; }

/* Portrait dirigeante (page Qui sommes-nous) */
.ebrioo-portrait img {
	width: 100%;
	max-width: 360px;
	height: auto;
	border-radius: 18px;
	box-shadow: 0 18px 40px rgba(50, 53, 50, .18);
	display: block;
}

/* ---------------------------------------------------------------------
   FORMULAIRE DE CONTACT — premium, accessible
   ------------------------------------------------------------------- */
.ebrioo-form {
	background: #fff;
	border-radius: 18px;
	padding: 2rem 2rem 1.75rem;
	box-shadow: 0 14px 38px rgba(50, 53, 50, .10);
}
.ebrioo-form__section { border: 0; margin: 0 0 1.5rem; padding: 0; }
.ebrioo-form__section legend {
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-weight: 700; font-size: 1.05rem;
	color: var(--eb-gris-fonce, #323532);
	padding: 0 0 .35rem; margin-bottom: .85rem;
	width: 100%; border-bottom: 2px solid var(--eb-turquoise, #46B5AA);
}
.ebrioo-form__grid {
	display: grid; grid-template-columns: 1fr 1fr;
	gap: 1.35rem 1.5rem;
	align-items: start;
}
.ebrioo-field { margin: 0; display: flex; flex-direction: column; }
.ebrioo-field--file, .ebrioo-form__section .ebrioo-field:only-child { grid-column: 1 / -1; }
.ebrioo-field label {
	font-size: .9rem; font-weight: 600; color: #3a3d3a; margin-bottom: .4rem;
	min-height: 1.25em; line-height: 1.25;
}
.ebrioo-req { color: var(--eb-magenta, #E5239C); }
.ebrioo-opt { color: var(--eb-gris-vert, #829696); font-weight: 400; }
.ebrioo-form input[type="text"],
.ebrioo-form input[type="email"],
.ebrioo-form input[type="tel"],
.ebrioo-form select,
.ebrioo-form textarea {
	box-sizing: border-box;
	width: 100%;
	padding: .7rem .85rem;
	border: 1px solid #d4d8d9;
	border-radius: 10px;
	font: inherit; line-height: 1.4; color: #222; background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
/* Hauteur identique input / select (le navigateur rend le select différemment) */
.ebrioo-form input[type="text"],
.ebrioo-form input[type="email"],
.ebrioo-form input[type="tel"],
.ebrioo-form select { height: 2.95rem; }
.ebrioo-form textarea { resize: vertical; min-height: 140px; height: auto; }
.ebrioo-form input:focus,
.ebrioo-form select:focus,
.ebrioo-form textarea:focus {
	outline: 0;
	border-color: var(--eb-turquoise, #46B5AA);
	box-shadow: 0 0 0 3px rgba(70, 181, 170, .22);
}
.ebrioo-form input:user-invalid,
.ebrioo-form textarea:user-invalid {
	border-color: #e0526a; box-shadow: 0 0 0 3px rgba(224, 82, 106, .18);
}
.ebrioo-field--file input[type="file"] {
	width: 100%; padding: .55rem; border: 1px dashed #c3c8cc; border-radius: 10px;
	background: #fafbfc; font-size: .9rem;
}
/* Honeypot : hors écran, jamais affiché à l'humain */
.ebrioo-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Menus en cours de chargement / désactivés (catalogue dynamique) */
.ebrioo-form select:disabled { background: #f6f7f8; color: #8b9094; cursor: progress; }
/* Message d'état sous les menus catégorie/formation */
.ebrioo-field-msg { margin: .6rem 0 0; font-size: .85rem; color: var(--eb-gris-vert, #829696); min-height: 1px; }
.ebrioo-field-msg.is-error { color: #b3304b; }
.ebrioo-field-msg:empty { margin: 0; }

.ebrioo-form__consent { margin: .5rem 0 1rem; }
.ebrioo-form__consent label { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.ebrioo-form__consent input { margin-top: .2rem; width: 1.05rem; height: 1.05rem; accent-color: var(--eb-magenta, #E5239C); }
.ebrioo-form__rgpd { font-size: .78rem; line-height: 1.5; color: var(--eb-gris-vert, #829696); margin: 0 0 1.25rem; }
.ebrioo-form__rgpd a { color: var(--eb-secondary, #46B5AA); }

.ebrioo-form__submit { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ebrioo-btn-submit {
	border: 0; cursor: pointer;
	background: var(--eb-violet, #501E96); color: #fff;
	font-family: var(--wp--preset--font-family--heading, inherit); font-weight: 700; font-size: 1.02rem;
	padding: .85rem 2rem; border-radius: 10px;
	box-shadow: 0 6px 18px rgba(80, 30, 150, .22);
	transition: filter .2s ease, transform .15s ease;
}
.ebrioo-btn-submit:hover { filter: brightness(.93); transform: translateY(-1px); }
.ebrioo-form__micro { font-size: .85rem; color: var(--eb-gris-vert, #829696); }
.ebrioo-form__shield { margin: 1.1rem 0 0; font-size: .8rem; color: var(--eb-gris-vert, #829696); }

.ebrioo-form__notice { padding: .9rem 1.1rem; border-radius: 10px; margin-bottom: 1.25rem; font-size: .95rem; }
.ebrioo-form__notice--ok { background: #e6f7f3; color: #11614f; border: 1px solid #9fe0d2; }
.ebrioo-form__notice--error { background: #fdecef; color: #8a1f3a; border: 1px solid #f3c0cb; }

/* Colonne de réassurance */
.ebrioo-aside { box-shadow: 0 12px 30px rgba(50, 53, 50, .08); position: sticky; top: 90px; }
.ebrioo-aside .wp-block-social-links { margin-top: .5rem; }

@media (max-width: 781px) {
	.ebrioo-form__grid { grid-template-columns: 1fr; }
	.ebrioo-form { padding: 1.5rem 1.25rem; }
	.ebrioo-aside { position: static; }
}

/* Pages de texte légal : lisibilité */
.ebrioo-legal h2 { margin-top: 2.5rem; font-size: 1.4rem; }
.ebrioo-legal h2:first-of-type { margin-top: 1rem; }
.ebrioo-legal h3 { margin-top: 1.5rem; font-size: 1.1rem; color: var(--eb-secondary, #46B5AA); }
.ebrioo-legal p, .ebrioo-legal li { line-height: 1.7; }
.ebrioo-legal ul { margin-left: 1.1rem; }
.ebrioo-legal li { margin-bottom: .4rem; }

/* ---------------------------------------------------------------------
   ACTUALITÉS — grille d'articles en cartes
   ------------------------------------------------------------------- */
.ebrioo-news .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.ebrioo-news li.wp-block-post {
	background: #fff;
	border-radius: 16px;
	padding: 1.25rem;
	box-shadow: 0 8px 24px rgba(50, 53, 50, .08);
	display: flex; flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease;
}
.ebrioo-news li.wp-block-post:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(50, 53, 50, .14);
}
.ebrioo-news .wp-block-post-featured-image {
	margin: -1.25rem -1.25rem 1rem;
	border-radius: 16px 16px 0 0;
	overflow: hidden;
}
.ebrioo-news .wp-block-post-featured-image img { width: 100%; display: block; }
.ebrioo-news .wp-block-post-date { font-size: .82rem; color: var(--eb-gris-vert, #829696); }
.ebrioo-news .wp-block-post-title { margin: .15rem 0 .5rem; line-height: 1.25; }
.ebrioo-news .wp-block-post-title a { color: var(--eb-gris-fonce, #323532); text-decoration: none; }
.ebrioo-news .wp-block-post-title a:hover { color: var(--eb-magenta, #E5239C); }
.ebrioo-news .wp-block-post-excerpt { color: #4a4d4a; font-size: .95rem; line-height: 1.6; margin-top: auto; }
.ebrioo-news .wp-block-post-excerpt__excerpt { margin-bottom: .6rem; }
.ebrioo-news .wp-block-post-excerpt__more-link { color: var(--eb-magenta, #E5239C); font-weight: 700; text-decoration: none; }
.ebrioo-news .wp-block-post-excerpt__more-link:hover { color: var(--eb-prune, #A31770); }
.ebrioo-news .wp-block-query-pagination a,
.ebrioo-news .wp-block-query-pagination .current { color: var(--eb-secondary, #46B5AA); font-weight: 700; }

/* Logo du site dans l'en-tête */
.wp-block-site-logo img { height: auto; }
