/*
------------------------------------------------
Perm'Educ — homepage.css
3 bandeaux (images + texte en code)
------------------------------------------------
*/

/* ---- Héros : image fond + texte HTML à gauche ---- */
.permeduc-hero {
	position: relative;
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	min-height: clamp(380px, 52vh, 560px);
	aspect-ratio: 1216 / 848;
	background:
		linear-gradient(90deg, rgba(245,239,227,.94) 0%, rgba(245,239,227,.78) 32%, rgba(245,239,227,.25) 52%, rgba(245,239,227,0) 68%),
		url("../images/photos/hero.jpg") center right / cover no-repeat;
	background-color: var(--color-background);
	overflow: hidden;
}

.permeduc-hero__content {
	position: relative;
	z-index: 2;
	max-width: 520px;
	padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px) 80px;
}

.permeduc-hero__title {
	font-size: clamp(42px, 5.5vw, 72px);
	line-height: 1.05;
	color: var(--color-forest);
	margin: 0 0 10px;
}

.permeduc-hero__tagline {
	font-family: "Cormorant Garamond", serif;
	font-style: italic;
	font-size: clamp(22px, 2.8vw, 32px);
	color: var(--color-moss);
	line-height: 1.2;
	margin: 0 0 8px;
}

.permeduc-hero__text {
	color: var(--color-text);
	max-width: 400px;
	margin: 12px 0 28px;
	line-height: 1.65;
}

.permeduc-hero__hit { display: none; }

.permeduc-hero__wave {
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	line-height: 0;
	z-index: 3;
	pointer-events: none;
}
.permeduc-hero__wave svg { width: 100%; height: 56px; display: block; }

.pe-flourish { margin: 10px 0 14px; }
.pe-flourish svg { width: 180px; max-width: 70%; height: auto; display: block; }

/* ---- Titres de section ---- */
.permeduc-section-heading { display: flex; align-items: center; gap: 12px; }
.permeduc-section-heading::before {
	content: ""; width: 26px; height: 26px; flex: 0 0 26px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20c0-9 6-14 16-16-2 10-8 15-16 16z' fill='none' stroke='%23AA8B5A' stroke-width='1.5'/%3E%3Cpath d='M5 19c3-4 7-7 12-9' fill='none' stroke='%23AA8B5A' stroke-width='1.2'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---- Derniers articles ---- */
.permeduc-latest { padding: 72px 0; }
.permeduc-latest .wp-block-post-template { gap: 32px; margin-top: 32px; }
.permeduc-readmore { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--color-moss); text-decoration: none; }
.permeduc-readmore:hover { color: var(--color-forest); }

/* ---- Méthode : icônes en fond + grille texte HTML ---- */
.permeduc-method-band {
	position: relative;
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 56px clamp(24px, 5vw, 72px) 64px;
	box-sizing: border-box;
	background: var(--color-surface);
}

.permeduc-method-band__content {
	position: relative;
	z-index: 2;
	max-width: 1080px;
	margin: 0 auto;
}

.permeduc-method-band__title {
	text-align: center;
	color: var(--color-forest);
	margin: 0 0 8px;
	font-size: clamp(28px, 3vw, 36px);
}

.permeduc-method-band__ornament {
	display: flex;
	justify-content: center;
	margin: 0 0 28px;
}

.permeduc-method {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	margin-top: 8px;
}

.permeduc-method__step {
	text-align: center;
	padding: 0 20px;
}

/* Symbole celte de l'étape. Purement décoratif — le titre porte le sens —
   donc en fond CSS : le chemin reste relatif à cette feuille, ce qui
   survit à une installation en sous-répertoire. */
.permeduc-method__step::before {
	content: "";
	display: block;
	width: 56px;
	height: 56px;
	margin: 0 auto 18px;
	background: center / contain no-repeat;
}

.permeduc-method__step:nth-child(1)::before { background-image: url("../images/icons/editorial/methode-question.png"); }
.permeduc-method__step:nth-child(2)::before { background-image: url("../images/icons/editorial/methode-contradictions.png"); }
.permeduc-method__step:nth-child(3)::before { background-image: url("../images/icons/editorial/methode-connaissances.png"); }
.permeduc-method__step:nth-child(4)::before { background-image: url("../images/icons/editorial/methode-reponse.png"); }

.permeduc-method__step + .permeduc-method__step {
	border-left: 1px solid rgba(127, 152, 126, 0.35);
}

.permeduc-method__num {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--color-forest);
	color: var(--color-background);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: "Source Sans 3", sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	margin: 0 auto 12px;
}

.permeduc-method__step h3 {
	font-size: 1.1rem;
	line-height: 1.25;
	margin: 0 0 10px;
	color: var(--color-forest);
}

.permeduc-method__step p {
	font-size: 0.95rem;
	color: var(--color-text);
	margin: 0;
	line-height: 1.5;
}

/* ---- Curiosité : image + texte HTML à gauche ---- */
.permeduc-nook-band {
	position: relative;
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box;
	min-height: clamp(220px, 28vw, 360px);
	/* Voile clair au-dessus de la photo. Sans lui, le texte vert forêt tombait
	   à 1,00:1 sur le feuillage sombre : la phrase de clôture du site était
	   invisible aux deux tailles d'écran. Le voile s'efface vers la droite,
	   là où le contenu ne va pas. */
	background:
		linear-gradient(90deg,
			rgba(245, 239, 227, .96) 0%,
			rgba(245, 239, 227, .92) 34%,
			rgba(245, 239, 227, .55) 58%,
			rgba(245, 239, 227, .08) 82%),
		url("../images/photos/nook.jpg") center right / cover no-repeat;
	background-color: var(--color-surface);
}

.permeduc-nook-band__content {
	position: relative;
	z-index: 2;
	max-width: 460px;
	padding: clamp(36px, 5vw, 64px) clamp(28px, 5vw, 56px);
}

.permeduc-nook-band__content h2 {
	color: var(--color-forest);
	font-size: clamp(26px, 3vw, 34px);
	line-height: 1.2;
	margin: 0 0 14px;
	text-align: center;
}

.permeduc-nook-band__content p {
	color: var(--color-text);
	line-height: 1.65;
	margin: 0;
	text-align: center;
}

.permeduc-nook-band__ornament {
	display: flex;
	justify-content: center;
	margin-bottom: 12px;
}
