@charset 'utf-8';/**
 * Page Le pain (/le-pain) — refonte 2026
 *
 * Meme principe que l'accueil et la page des groupes : chaque selecteur est
 * prefixe par #PAGE_PAIN pour ne toucher aucune autre page. Les textes
 * viennent des zones modifiables de la page (voir V.page_pain.php).
 */

/** ------------------------------------------------------------- le chassis
 *  Le gabarit d'origine affiche le contenu dans une boite en position absolue
 *  qui defile pour son propre compte : on rend le flux a la page. */

#PAGE_PAIN #contain,
#PAGE_PAIN #content,
#PAGE_PAIN #wrap_main {
	display:block;
	height:auto;
}

#PAGE_PAIN #main {
	height:auto;
	overflow:visible;
}

#PAGE_PAIN #_str,
#PAGE_PAIN #_str.full {
	position:static;
	overflow:visible;
	top:auto;
	bottom:auto;
	left:auto;
	right:auto;
	max-width:none;
	font-size:17px;
}

#PAGE_PAIN #_str.full > div {
	padding:0;
}

#PAGE_PAIN #_str .bloc > * {
	background-color:transparent;
}

/** ------------------------------------------------- titre sur la photo */

#PAGE_PAIN .h_hero {
	position:relative;
	min-height:min(58vh,560px);
	display:flex;
	align-items:flex-end;
	padding:0 var(--marge) 52px;
	color:#fff;
}

#PAGE_PAIN .h_hero:before {
	content:"";
	position:absolute;
	inset:0;
	background:linear-gradient(to top, rgba(28,22,17,.84) 0%, rgba(28,22,17,.34) 48%, rgba(28,22,17,.06) 78%, rgba(28,22,17,.28) 100%);
}

#PAGE_PAIN .h_hero > div {
	position:relative;
	max-width:1120px;
	margin:0 auto;
	width:100%;
}

#PAGE_PAIN .h_hero h1 {
	font-family:var(--display);
	font-variation-settings:"SOFT" 70,"WONK" 1,"opsz" 144;
	font-weight:600;
	font-size:clamp(38px,6.6vw,82px);
	line-height:.98;
	letter-spacing:-.022em;
	margin:0 0 18px;
	max-width:16ch;
	color:#F6F1E6;
	text-shadow:0 2px 3px rgba(0,0,0,.45);
}

#PAGE_PAIN .h_hero h1 em {
	font-style:italic;
	color:var(--miel);
}

#PAGE_PAIN .h_hero p {
	font-size:clamp(17px,2vw,20px);
	max-width:52ch;
	margin:0;
	color:rgba(255,255,255,.92);
}

#PAGE_PAIN .h_hero .quand,
#PAGE_PAIN .h_hero .surtitre {
	color:var(--miel);
	margin:0 0 14px;
}

/** -------------------------------------------------------- barre pratique */

#PAGE_PAIN .h_pratique {
	background:var(--suie);
	color:#F0EAE0;
	padding:14px var(--marge);
	font-size:14.5px;
}

#PAGE_PAIN .h_pratique > div {
	max-width:1120px;
	margin:0 auto;
}

#PAGE_PAIN .h_pratique p {
	margin:0;
}

#PAGE_PAIN .h_pratique strong,
#PAGE_PAIN .h_pratique b {
	color:var(--miel);
	font-weight:700;
}

#PAGE_PAIN .h_pratique a {
	color:var(--miel);
	font-weight:700;
	text-decoration:none;
}

/** --------------------------------------------------------------- sections */

#PAGE_PAIN .h_section {
	position:relative;
	padding:clamp(56px,8vw,104px) var(--marge);
	background:var(--panneau);
}

#PAGE_PAIN .h_section.creme {
	background:var(--calcaire);
}

#PAGE_PAIN .h_section > div {
	max-width:1120px;
	margin:0 auto;
}

#PAGE_PAIN .h_section + .h_section {
	border-top:1px solid var(--pierre);
}

#PAGE_PAIN .h_section h2 {
	font-family:var(--display);
	font-variation-settings:"SOFT" 60,"WONK" 1,"opsz" 90;
	font-weight:600;
	font-size:clamp(28px,4vw,44px);
	line-height:1.08;
	letter-spacing:-.018em;
	margin:0 0 16px;
	color:var(--suie);
}

#PAGE_PAIN .h_section p {
	font-size:17px;
	line-height:1.65;
}

#PAGE_PAIN .chapeau {
	max-width:64ch;
}

#PAGE_PAIN .chapeau p:not(:has(+ h1)):not(:has(+ h2)):not(:has(+ h3)) {
	font-size:clamp(17px,1.9vw,19.5px);
	color:var(--suie-clair);
}

#PAGE_PAIN .surtitre,
#PAGE_PAIN .quand {
	font-family:var(--texte);
	font-size:11px;
	font-weight:700;
	letter-spacing:.22em;
	text-transform:uppercase;
	color:var(--braise);
	margin:0 0 14px;
}

#PAGE_PAIN .a-completer {
	border-bottom:2px dashed var(--braise);
	color:var(--braise);
	font-weight:700;
}

#PAGE_PAIN .rCSS a {
	color:var(--braise);
}

/** ----------------------------------------------------------------- cartes */

#PAGE_PAIN .h_cartes {
	display:grid;
	gap:2px;
	background:var(--pierre);
	margin-top:36px;
}

#PAGE_PAIN .h_cartes.trois {
	grid-template-columns:repeat(3,1fr);
}

#PAGE_PAIN .h_cartes > div {
	background:var(--panneau);
	padding:28px 26px;
}

#PAGE_PAIN .h_section.creme .h_cartes > div {
	background:var(--calcaire);
}

#PAGE_PAIN .h_cartes h3 {
	font-family:var(--display);
	font-variation-settings:"SOFT" 60,"WONK" 1,"opsz" 40;
	font-weight:600;
	font-size:21px;
	line-height:1.18;
	margin:0 0 10px;
	color:var(--suie);
}

#PAGE_PAIN .h_cartes p {
	margin:0 0 10px;
	font-size:15.5px;
	color:var(--suie-clair);
	line-height:1.6;
}

#PAGE_PAIN .h_cartes .quand {
	margin:0 0 8px;
	font-size:11px;
	color:var(--lichen);
}

#PAGE_PAIN .encart,
#PAGE_PAIN .bon {
	margin-top:22px;
	padding:18px 20px;
	background:rgba(111,122,98,.13);
	border-left:2px solid var(--lichen);
	font-size:15.5px;
	line-height:1.55;
}

#PAGE_PAIN .encart strong,
#PAGE_PAIN .bon strong,
#PAGE_PAIN .bon h3 {
	display:block;
	margin:0 0 5px;
	font-family:var(--display);
	font-size:17px;
	color:var(--suie);
}

#PAGE_PAIN .bon p {
	margin:0;
	font-size:15.5px;
}


/** ------------------------------------------------------ surtitres
 *  L'editeur ne garde pas les classes : un paragraphe place juste avant un
 *  titre est un surtitre, quelle que soit la saisie. */

#PAGE_PAIN .rCSS p:has(+ h1),
#PAGE_PAIN .rCSS p:has(+ h2),
#PAGE_PAIN .rCSS p:has(+ h3) {
	font-family:var(--texte);
	font-size:11px;
	font-weight:700;
	letter-spacing:.22em;
	text-transform:uppercase;
	color:var(--braise);
	margin:0 0 14px;
}

#PAGE_PAIN .h_hero .rCSS p:has(+ h1) {
	color:var(--miel);
}

#PAGE_PAIN .h_cartes .rCSS p:has(+ h3) {
	color:var(--lichen);
	margin:0 0 8px;
}

/** ----------------------------------------------- bande sombre : fournee */

#PAGE_PAIN .h_pratique > div {
	display:flex;
	flex-wrap:wrap;
	align-items:center;
	gap:8px 26px;
}

#PAGE_PAIN .h_pratique .fournee {
	display:inline-flex;
	align-items:center;
	gap:9px;
	padding:4px 12px 4px 10px;
	border:1px solid rgba(217,160,60,.55);
	border-radius:99px;
	white-space:nowrap;
}

#PAGE_PAIN .h_pratique .fournee i {
	width:8px;
	height:8px;
	border-radius:50%;
	background:var(--braise);
	box-shadow:0 0 0 3px rgba(184,67,30,.3);
}

#PAGE_PAIN .h_pratique .fournee b {
	color:var(--miel);
	font-weight:700;
}

#PAGE_PAIN .h_pratique .fournee b * {
	color:inherit;
	font-weight:inherit;
}

/** ------------------------------------------- la journee d'une fournee
 *  Chaque etape : l'heure (premier paragraphe), une photo, un titre, une
 *  phrase. Une ligne relie les heures, du gris de la pierre au rouge braise. */

#PAGE_PAIN .journee {
	list-style:none;
	margin:44px 0 0;
	padding:0;
	display:grid;
	grid-auto-columns:1fr;
	grid-auto-flow:column;
	gap:20px;
	position:relative;
}

#PAGE_PAIN .journee:before {
	content:"";
	position:absolute;
	left:0;
	right:0;
	top:27px;
	height:2px;
	background:linear-gradient(to right, var(--pierre), var(--miel) 55%, var(--braise));
}

#PAGE_PAIN .journee > li {
	position:relative;
	margin:0;
	padding:0;
	list-style:none;
}

#PAGE_PAIN .h_section .etape > p:first-child {
	display:inline-block;
	position:relative;
	margin:0 0 10px;
	padding-right:10px;
	background:var(--panneau);
	font-family:var(--display);
	font-variation-settings:"opsz" 144;
	font-weight:700;
	font-size:clamp(26px,3vw,36px);
	line-height:56px;
	color:var(--suie);
	font-variant-numeric:tabular-nums;
	white-space:nowrap;
	text-transform:none;
	letter-spacing:0;
}

#PAGE_PAIN .h_section .journee > li:last-child .etape > p:first-child {
	color:var(--braise);
}

#PAGE_PAIN .etape p:has(> img:only-child) {
	margin:0 0 12px;
}

#PAGE_PAIN .etape img {
	display:block;
	width:100%;
	height:auto;
	aspect-ratio:4/5;
	object-fit:cover;
	border-radius:var(--rayon);
	background:var(--pierre);
}

#PAGE_PAIN .etape h3 {
	font-family:var(--display);
	font-variation-settings:"opsz" 40;
	font-weight:700;
	font-size:18px;
	line-height:1.25;
	margin:0 0 6px;
	color:var(--suie);
}

#PAGE_PAIN .h_section .etape > p:not(:first-child) {
	margin:0 0 6px;
	font-size:15px;
	line-height:1.55;
	color:var(--suie-clair);
}

/** --------------------------------------------------------- la recette */

#PAGE_PAIN .p_recette {
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:clamp(32px,5vw,72px);
	align-items:center;
}

#PAGE_PAIN .recette > p:not(:has(+ h2)) {
	font-size:clamp(17px,1.9vw,19.5px);
	color:var(--suie-clair);
	max-width:52ch;
}

#PAGE_PAIN .recette table {
	width:100%;
	margin:26px 0 0;
	border-collapse:separate;
	border-spacing:2px;
	background:var(--pierre);
	table-layout:fixed;
}

#PAGE_PAIN .recette td {
	background:var(--calcaire);
	padding:16px 18px;
	vertical-align:top;
	font-size:14.5px;
	color:var(--suie-clair);
	border:0;
}

#PAGE_PAIN .recette td strong,
#PAGE_PAIN .recette td b {
	display:block;
	font-family:var(--display);
	font-variation-settings:"opsz" 40;
	font-size:19px;
	color:var(--suie);
	margin-bottom:2px;
}

#PAGE_PAIN .encart h3,
#PAGE_PAIN .encart h4 {
	font-family:var(--display);
	font-size:17px;
	margin:0 0 5px;
	color:var(--suie);
	text-transform:none;
	letter-spacing:0;
}

#PAGE_PAIN .encart p {
	margin:0;
	font-size:15.5px;
}

#PAGE_PAIN .encart p:has(+ h3) {
	color:var(--suie);
}

#PAGE_PAIN .photo p {
	margin:0;
	font-size:13px;
	color:var(--lauze);
}

#PAGE_PAIN .photo p:has(> img) {
	margin:0 0 8px;
}

#PAGE_PAIN .photo img {
	display:block;
	width:100%;
	height:auto;
	aspect-ratio:4/3;
	object-fit:cover;
	border-radius:var(--rayon);
}

/** ------------------------------------------------------------ galerie
 *  Une grande case (la video, ou la premiere photo) et six vignettes ; s'il
 *  y en a plus, la sixieme annonce « + N » et tout s'ouvre en grand. */

#PAGE_PAIN .p_galerie {
	display:grid;
	grid-template-columns:2fr 1fr 1fr 1fr;
	grid-auto-rows:200px;
	grid-auto-flow:dense;
	gap:6px;
	margin-top:36px;
}

#PAGE_PAIN .p_galerie.seule {
	grid-template-columns:1fr;
	grid-auto-rows:auto;
}

#PAGE_PAIN .p_galerie figure {
	position:relative;
	margin:0;
	overflow:hidden;
	border-radius:var(--rayon);
	background:var(--suie);
	cursor:pointer;
}

#PAGE_PAIN .p_galerie .grande {
	grid-row:span 2;
}

#PAGE_PAIN .p_galerie .cachee {
	display:none;
}

#PAGE_PAIN .p_galerie img,
#PAGE_PAIN .p_galerie video {
	display:block;
	width:100%;
	height:100%;
	object-fit:cover;
	transition:transform .5s ease;
}

#PAGE_PAIN .p_galerie .grande.video {
	cursor:default;
}

#PAGE_PAIN .p_galerie .grande.video video {
	object-fit:contain;
	background:#000;
	transition:none;
}

#PAGE_PAIN .p_galerie .lg-item:hover img,
#PAGE_PAIN .p_galerie .lg-item:hover video {
	transform:scale(1.03);
}

#PAGE_PAIN .p_galerie figcaption {
	position:absolute;
	left:0;
	right:0;
	bottom:0;
	padding:22px 14px 10px;
	font-size:13.5px;
	font-weight:600;
	color:#fff;
	background:linear-gradient(to top, rgba(28,22,17,.75), transparent);
	pointer-events:none;
}

#PAGE_PAIN .p_galerie .grande.video figcaption {
	bottom:auto;
	top:0;
	padding:10px 14px 22px;
	background:linear-gradient(to bottom, rgba(28,22,17,.7), transparent);
}

#PAGE_PAIN .p_galerie .badge {
	display:inline-block;
	margin-right:10px;
	padding:2px 8px;
	border-radius:2px;
	background:var(--miel);
	color:var(--suie);
	font-size:11px;
	font-weight:700;
	letter-spacing:.1em;
	text-transform:uppercase;
	vertical-align:1px;
}

#PAGE_PAIN .p_galerie .lecture {
	position:absolute;
	left:50%;
	top:50%;
	width:56px;
	height:56px;
	margin:-28px 0 0 -28px;
	border-radius:50%;
	background:rgba(184,67,30,.92);
	box-shadow:0 6px 20px rgba(0,0,0,.35);
	pointer-events:none;
}

#PAGE_PAIN .p_galerie .lecture:after {
	content:"";
	position:absolute;
	left:22px;
	top:17px;
	border-style:solid;
	border-width:11px 0 11px 17px;
	border-color:transparent transparent transparent #fff;
}

#PAGE_PAIN .p_galerie .plus_n {
	position:absolute;
	inset:0;
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content:center;
	background:rgba(42,33,26,.72);
	color:#fff;
	font-family:var(--display);
	font-weight:600;
	font-size:24px;
}

#PAGE_PAIN .p_galerie .plus_n small {
	font-family:var(--texte);
	font-size:12px;
	font-weight:700;
	letter-spacing:.18em;
	text-transform:uppercase;
	color:var(--miel);
	margin-top:2px;
}

/** ----------------------------------------------------- ecrans etroits */

@media screen and (max-width:1000px) {

	#PAGE_PAIN .h_cartes.trois,
	#PAGE_PAIN .p_recette {
		grid-template-columns:1fr;
	}

}

@media screen and (max-width:900px) {

	/* la frise passe a la verticale : la ligne descend le long des heures */
	#PAGE_PAIN .journee {
		grid-auto-flow:row;
		grid-template-columns:1fr;
		gap:30px;
	}

	#PAGE_PAIN .journee:before {
		left:7px;
		right:auto;
		top:8px;
		bottom:8px;
		width:2px;
		height:auto;
		background:linear-gradient(to bottom, var(--pierre), var(--miel) 55%, var(--braise));
	}

	#PAGE_PAIN .journee > li {
		padding-left:34px;
	}

	#PAGE_PAIN .h_section .etape > p:first-child {
		line-height:1.1;
		font-size:26px;
		background:none;
		padding:0;
	}

	#PAGE_PAIN .journee > li:before {
		content:"";
		position:absolute;
		left:0;
		top:7px;
		width:12px;
		height:12px;
		border-radius:50%;
		background:var(--panneau);
		border:2px solid var(--miel);
	}

	#PAGE_PAIN .journee > li:last-child:before {
		background:var(--braise);
		border-color:var(--braise);
	}

	#PAGE_PAIN .etape img {
		aspect-ratio:16/10;
	}

	#PAGE_PAIN .p_galerie {
		grid-template-columns:1fr 1fr;
		grid-auto-rows:150px;
	}

	#PAGE_PAIN .p_galerie .grande {
		grid-column:span 2;
		grid-row:span 2;
	}

}

@media screen and (max-width:600px) {

	#PAGE_PAIN .h_hero {
		min-height:min(52vh,460px);
	}

}

/** ---------------------------------------------------- telephone
 *  Meme traitement que l'accueil. Sous 600 px, le gabarit d'origine reduit le
 *  fond a une bande de 200 px en haut de l'ecran : le titre se retrouvait sur
 *  un aplat gris. On retablit la photo plein cadre, fixee derriere le contenu.
 *  Les largeurs de lecture en « ch » depassaient l'ecran et faisaient deborder
 *  la page : on les ramene a la largeur disponible. */

@media screen and (max-width:760px) {

	#PAGE_PAIN .h_hero p,
	#PAGE_PAIN .h_hero h1,
	#PAGE_PAIN .chapeau,
	#PAGE_PAIN .h_section p {
		max-width:100%;
	}

	#PAGE_PAIN .h_hero h1 {
		font-size:clamp(32px,10vw,50px);
	}

	#PAGE_PAIN .h_pratique {
		font-size:14px;
	}

}

@media screen and (max-width:600px) {

	#PAGE_PAIN #bg {
		position:fixed;
		top:0;
		left:0;
		width:100%;
		height:100%;
		overflow:hidden;
		z-index:-2;
	}

	#PAGE_PAIN #bg,
	#PAGE_PAIN #bg .bg {
		height:100%;
	}

	#PAGE_PAIN .h_hero {
		min-height:min(70vh,560px);
		padding-bottom:36px;
	}

}

