/* Fluvial – design des pages du blog. Couleurs reprises de la charte (barre de menu, titres, logo). */

@font-face {
	font-family: "Source Serif 4";
	src: url("fonts/source-serif-4-latin.woff2") format("woff2");
	font-weight: 600 700;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("fonts/source-serif-4-latin-ext.woff2") format("woff2");
	font-weight: 600 700;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.fd {
	--fd-sarcelle: #075467;
	--fd-bleu: #0872b3;
	--fd-ligne: #4ebad6;
	--fd-ecume: #eef8fb;
	--fd-berge: #d8c7a3;
	--fd-encre: #1e1e24;
	--fd-gris: #56616b;
	--fd-titre: "Source Serif 4", Georgia, "Times New Roman", serif;
	--fd-texte: Arial, Helvetica, sans-serif;
	color: var(--fd-encre);
	font-family: var(--fd-texte);
}
.fd *, .fd *::before, .fd *::after { box-sizing: border-box; }

.fd-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.fd a:focus-visible {
	outline: 3px solid var(--fd-ligne);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ---------- Bandeau de rubrique ---------- */

.fd-hero {
	position: relative;
	background: var(--fd-sarcelle);
	color: #fff;
	padding: 28px 0 92px;
}
.fd-crumbs {
	font-size: 0.875rem;
	color: #cfe6ee;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.fd-crumbs a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.fd-crumbs a:hover { color: var(--fd-ligne); }

.fd-hero__title {
	font-family: var(--fd-titre);
	font-weight: 700;
	font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
	line-height: 1.08;
	letter-spacing: -0.01em;
	color: #fff;
	margin: 22px 0 12px;
}
.fd-hero__intro {
	max-width: 58ch;
	font-size: 1.125rem;
	line-height: 1.55;
	color: #e3f1f6;
	margin: 0 0 28px;
}

.fd-filters ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.fd-filter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 999px;
	color: #fff;
	font-size: 0.95rem;
	text-decoration: none;
	transition: background-color 0.15s;
}
.fd-filter:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.fd-filter[aria-current="page"] {
	background: var(--fd-ligne);
	border-color: var(--fd-ligne);
	color: #06323f;
	font-weight: 700;
}
.fd-filter__count {
	font-size: 0.8rem;
	opacity: 0.75;
}

/* Les vagues qui terminent le bandeau ; la dernière prend la couleur de la section suivante */
.fd-hero__waves {
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	height: 72px;
	display: block;
}

/* ---------- Corps ---------- */

.fd-body { padding-top: 24px; padding-bottom: 72px; }

.fd-media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 6px;
	background: var(--fd-ecume);
}
.fd-hero__wave-front { fill: #fff; }
.fd-hero--home .fd-hero__wave-front { fill: var(--fd-ecume); }

.fd-media__img,
.fd-media__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fd-kicker {
	margin: 0 0 6px;
	font-size: 0.875rem;
	font-weight: 700;
}
.fd-kicker a {
	color: var(--fd-bleu);
	text-decoration: none;
	border-left: 3px solid var(--fd-ligne);
	padding-left: 8px;
}
.fd-kicker a:hover { text-decoration: underline; }

.fd-excerpt {
	margin: 0 0 12px;
	color: #3a444d;
	font-size: 1rem;
	line-height: 1.6;
}
.fd-meta {
	margin: 0;
	font-size: 0.85rem;
	color: var(--fd-gris);
}

.fd-feature__title a,
.fd-card__title a {
	color: var(--fd-sarcelle);
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 2px;
	background-position: 0 100%;
	background-repeat: no-repeat;
}
.fd-feature__title a:hover,
.fd-card__title a:hover {
	color: var(--fd-bleu);
	background-size: 100% 2px;
}

/* Article à la une */
.fd-feature {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	gap: 40px;
	align-items: center;
	padding-bottom: 48px;
	margin-bottom: 48px;
	border-bottom: 1px solid #dbe7ec;
}
.fd-media--feature { aspect-ratio: 3 / 2; }
.fd-feature__title {
	font-family: var(--fd-titre);
	font-weight: 700;
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
	line-height: 1.15;
	margin: 0 0 14px;
}

/* Grille */
.fd-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px 32px;
}
.fd-card .fd-media { margin-bottom: 16px; }
.fd-card__title {
	font-family: var(--fd-titre);
	font-weight: 600;
	font-size: 1.3rem;
	line-height: 1.25;
	margin: 0 0 10px;
}

.fd-empty {
	padding: 48px 0;
	font-size: 1.1rem;
}

/* Pagination */
.fd-pages {
	margin-top: 64px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px 24px;
}
.fd-pages ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 8px;
}
.fd-pages__num {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	border-radius: 6px;
	border: 1px solid #c9dde4;
	color: var(--fd-sarcelle);
	text-decoration: none;
	font-weight: 700;
}
a.fd-pages__num:hover { border-color: var(--fd-bleu); color: var(--fd-bleu); }
.fd-pages__num[aria-current="page"] {
	background: var(--fd-sarcelle);
	border-color: var(--fd-sarcelle);
	color: #fff;
}

/* ---------- Pour aller plus loin ---------- */

.fd-more {
	background: var(--fd-ecume);
	border-top: 4px solid var(--fd-ligne);
	padding: 48px 0 56px;
}
.fd-more__title {
	font-family: var(--fd-titre);
	font-weight: 700;
	font-size: 1.6rem;
	color: var(--fd-sarcelle);
	margin: 0 0 24px;
}
.fd-more__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}
.fd-more__list a {
	font-family: var(--fd-titre);
	font-weight: 600;
	font-size: 1.2rem;
	color: var(--fd-bleu);
	text-underline-offset: 4px;
}
.fd-more__list p {
	margin: 8px 0 0;
	color: #3a444d;
	line-height: 1.55;
}

/* Neve ajoute des marges autour du contenu : on les neutralise sur ces pages */
.fluvial-design .neve-main { padding-top: 0; }

/* ---------- Boutons et liens d'action ---------- */

.fd-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 16px;
	margin: 0;
}
.fd-btn {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	padding: 0 22px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}
.fd-btn--primary { background: var(--fd-ligne); color: #06323f; }
.fd-btn--primary:hover { background: #8ad3e7; color: #06323f; }
.fd-btn--ghost { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.fd-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.fd-btn--solid { background: var(--fd-sarcelle); color: #fff; }
.fd-btn--solid:hover { background: var(--fd-bleu); color: #fff; }
.fd-btn--outline { border-color: var(--fd-sarcelle); color: var(--fd-sarcelle); }
.fd-btn--outline:hover { background: var(--fd-ecume); color: var(--fd-sarcelle); }
.fd-section--tint .fd-btn--outline:hover { background: #fff; }
.fd-btn--sm {
	min-height: 40px;
	padding: 0 16px;
	font-size: 0.95rem;
}

/* ---------- Sections ---------- */

.fd-section { padding: 56px 0; }
.fd-section--tint { background: var(--fd-ecume); }
.fd-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 24px;
}
.fd-section__head .fd-section__title { margin: 0; }
.fd-section__title {
	font-family: var(--fd-titre);
	font-weight: 700;
	font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
	line-height: 1.2;
	color: var(--fd-sarcelle);
	margin: 0 0 24px;
}

/* ---------- Article et pages ---------- */

.fd-wrap--text { max-width: 768px; }
.fd-wrap--wide { max-width: 1048px; }

.fd-hero--article { padding-bottom: 96px; }
.fd-article__title { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); max-width: 22ch; }
.fd-hero .fd-meta { color: #cfe6ee; font-size: 0.95rem; }

.fd-article__cover { margin: 8px auto 0; }
.fd-article__cover img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}
.fd-article__cover figcaption,
.fd-prose figcaption {
	margin-top: 8px;
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--fd-gris);
	text-align: left;
}
.fd-article__cover figcaption a,
.fd-prose figcaption a { color: inherit; }

.fd-prose {
	padding-top: 32px;
	padding-bottom: 32px;
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--fd-encre);
}
.fd-prose p,
.fd-prose ul,
.fd-prose ol,
.fd-prose figure,
.fd-prose blockquote,
.fd-prose .wp-block-table,
.fd-prose .wp-block-group { margin: 0 0 1.25em; }
.fd-prose h2 {
	font-family: var(--fd-titre);
	font-weight: 700;
	font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
	line-height: 1.2;
	color: var(--fd-sarcelle);
	margin: 2em 0 0.6em;
}
.fd-prose h3 {
	font-family: var(--fd-titre);
	font-weight: 600;
	font-size: 1.3rem;
	line-height: 1.3;
	color: var(--fd-sarcelle);
	margin: 1.6em 0 0.5em;
}
.fd-prose h4 {
	font-family: var(--fd-titre);
	font-weight: 600;
	font-size: 1.2rem;
	line-height: 1.3;
	color: var(--fd-sarcelle);
	margin: 1.6em 0 0.5em;
}
.fd-prose h2:first-child,
.fd-prose h3:first-child,
.fd-prose h4:first-child { margin-top: 0; }
.fd-prose h2 strong,
.fd-prose h3 strong,
.fd-prose h4 strong { font-weight: inherit; }
.fd-prose a {
	color: var(--fd-bleu);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.fd-prose ul,
.fd-prose ol { padding-left: 1.3em; }
.fd-prose ul { list-style: disc; }
.fd-prose ol { list-style: decimal; }
.fd-prose li::marker { color: var(--fd-bleu); }
.fd-prose li { margin-bottom: 0.35em; }
.fd-prose img { max-width: 100%; height: auto; border-radius: 6px; }
.fd-prose .has-medium-font-size {
	font-size: 1.2rem !important;
	line-height: 1.6;
	color: #2c3640;
}
.fd-prose blockquote {
	border-left: 4px solid var(--fd-ligne);
	padding: 0.2em 0 0.2em 1.1em;
	font-family: var(--fd-titre);
	font-size: 1.2rem;
	color: var(--fd-sarcelle);
}
.fd-prose .wp-block-group.has-background {
	border-radius: 8px;
	padding: 1.4em 1.6em;
}
.fd-prose .wp-block-group.has-background > :last-child { margin-bottom: 0; }
.fd-prose .wp-block-group.has-nv-light-bg-background-color { background-color: var(--fd-ecume) !important; }
.fd-prose .wp-block-table { overflow-x: auto; }
.fd-prose table {
	width: 100%;
	border-collapse: collapse;
	border: 0 !important;
	font-size: 0.95rem;
}
.fd-prose th,
.fd-prose td {
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid #d3e3e9;
	text-align: left;
}
.fd-prose th {
	background: var(--fd-sarcelle) !important;
	color: #fff;
	font-weight: 700;
}
.fd-prose tbody tr:nth-child(even) td { background: #f6fbfd; }
.fd-prose .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	padding: 0 22px;
	border-radius: 999px;
	background: var(--fd-sarcelle);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}
.fd-prose .wp-block-button__link:hover { background: var(--fd-bleu); color: #fff; }

.fd-article__footer {
	padding-bottom: 48px;
	font-size: 0.95rem;
	color: var(--fd-gris);
}
.fd-article__footer a { color: var(--fd-bleu); font-weight: 700; }

.fd-related {
	padding: 48px 0 56px;
	border-top: 1px solid #dbe7ec;
}
.fd-comments { padding: 0 0 56px; }
.fd-comments .comment-respond,
.fd-comments .nv-comments-wrap {
	background: var(--fd-ecume) !important;
	border-radius: 8px;
	padding: 28px !important;
}
.fd-comments .comment-reply-title,
.fd-comments .comments-title {
	font-family: var(--fd-titre);
	font-weight: 700;
	font-size: 1.4rem;
	color: var(--fd-sarcelle);
}
.fd-comments input[type="text"],
.fd-comments input[type="email"],
.fd-comments input[type="url"],
.fd-comments textarea {
	background: #fff;
	border: 1px solid #c3d9e1;
	border-radius: 6px;
}
.fd-comments input[type="submit"],
.fd-comments .form-submit .submit {
	min-height: 46px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--fd-sarcelle);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}
.fd-comments input[type="submit"]:hover { background: var(--fd-bleu); }

/* Le guide du marinier */
.fd-guide {
	margin-bottom: 56px;
	padding: 24px 28px;
	border-radius: 8px;
	background: var(--fd-ecume);
}
.fd-guide__title {
	font-family: var(--fd-titre);
	font-weight: 700;
	font-size: 1.3rem;
	color: var(--fd-sarcelle);
	margin: 0 0 8px;
}
.fd-guide ul { list-style: none; margin: 0; padding: 0; }
.fd-guide li { border-bottom: 1px solid #cfe3ea; }
.fd-guide li:last-child { border-bottom: 0; }
.fd-guide a,
.fd-guide [aria-current] {
	display: block;
	padding: 10px 0;
	font-weight: 700;
}
.fd-guide a { color: var(--fd-bleu); text-decoration: none; }
.fd-guide a:hover { text-decoration: underline; }
.fd-guide [aria-current] { color: var(--fd-sarcelle); }

/* ---------- Accueil ---------- */

.fd-hero--home { padding: 48px 0 120px; }
.fd-home__hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 56px;
	align-items: center;
}
.fd-home__lead .fd-hero__title {
	font-size: clamp(2.4rem, 1.5rem + 3.2vw, 4rem);
	margin-top: 0;
	max-width: 14ch;
}

/* Cartes « polaroïd » : la photo dans son cadre blanc, posée sur la table */
.fd-polaroid {
	display: flex;
	flex-direction: column;
	background: #fff;
	color: var(--fd-encre);
	padding: 12px 12px 22px;
	border-radius: 3px;
	box-shadow: 0 1px 2px rgba(2, 40, 52, 0.14), 0 10px 26px rgba(2, 40, 52, 0.16);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fd-polaroid .fd-media {
	aspect-ratio: 4 / 3;
	border-radius: 2px;
	margin-bottom: 16px;
}
.fd-polaroid > :not(.fd-media):not(.fd-card),
.fd-polaroid .fd-card > :not(.fd-media) { padding-left: 6px; padding-right: 6px; }
.fd-polaroid .fd-card__title a { color: var(--fd-sarcelle); }
.fd-polaroid--left { transform: rotate(-2.2deg); }
.fd-polaroid--right { transform: rotate(1.6deg); }
@media (hover: hover) {
	.fd-polaroid:hover { box-shadow: 0 2px 4px rgba(2, 40, 52, 0.14), 0 16px 34px rgba(2, 40, 52, 0.22); }
	.fd-polaroid--left:hover,
	.fd-polaroid--right:hover { transform: rotate(0deg); }
}
.fd-hero .fd-polaroid { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 18px 38px rgba(1, 30, 40, 0.5); }

.fd-home__latest {
	justify-self: center;
	width: 100%;
	max-width: 440px;
}
.fd-home__latest .fd-meta { color: var(--fd-gris); font-size: 0.85rem; }
.fd-home__latest-label {
	font-family: var(--fd-texte);
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--fd-gris);
	margin: 2px 6px 10px;
}

.fd-polaroids {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 36px;
}
/* Les boutons des cartes s'alignent en bas, quelle que soit la longueur du texte */
.fd-card-actions { margin-top: auto; padding-top: 4px; }
.fd-polaroids--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fd-polaroids--wide .fd-media { aspect-ratio: 16 / 10; }

.fd-guide--card {
	margin: 0;
	padding: 22px 24px;
	background: #fff;
	border-radius: 3px;
}
.fd-guide--card ul { padding: 0 !important; }

.fd-community {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
	gap: 56px;
	align-items: center;
}
.fd-community__text {
	max-width: 46ch;
	margin: 0 0 20px;
	font-size: 1.15rem;
	line-height: 1.6;
}

.fd-archives {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 48px;
	align-items: center;
}
.fd-archives__photo { padding-bottom: 12px; }
.fd-archives__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 2px;
}
.fd-archives__text {
	max-width: 52ch;
	margin: 0 0 24px;
	font-size: 1.1rem;
	line-height: 1.6;
}

.fd-credits {
	padding-bottom: 32px;
	font-size: 0.8rem;
	color: var(--fd-gris);
}
.fd-credits a { color: inherit; }

/* ---------- Page introuvable ---------- */

.fd-search {
	/* Neve impose des champs carrés via ses variables : on les redéfinit ici */
	--formfieldborderradius: 999px;
	--formfieldborderwidth: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 14px 16px;
	max-width: 560px;
	margin: 8px 0 28px;
}
.fd-search input[type="search"] {
	flex: 1 1 260px;
	min-width: 0;
	min-height: 50px;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 999px !important;
	-webkit-appearance: none;
	appearance: none;
	background: #fff;
	color: var(--fd-encre);
	font-size: 1rem;
	box-shadow: 0 2px 8px rgba(1, 30, 40, 0.25);
}
.fd-search input[type="search"]:focus-visible { outline: 3px solid var(--fd-ligne); outline-offset: 2px; }
.fd-search .fd-btn { min-height: 50px; padding: 0 26px; cursor: pointer; }
.fd-404__photo {
	justify-self: center;
	width: 100%;
	max-width: 420px;
	margin: 0;
}
.fd-404__drawing {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 2px;
}
.fd-404__photo figcaption {
	padding: 14px 6px 0;
	font-family: var(--fd-titre);
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--fd-sarcelle);
}

/* ---------- Écrans moyens et petits ---------- */

@media (max-width: 999px) {
	.fd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fd-feature { grid-template-columns: 1fr; gap: 20px; }
	.fd-more__list { grid-template-columns: 1fr; gap: 24px; }
	.fd-home__hero,
	.fd-archives,
	.fd-community { grid-template-columns: 1fr; gap: 36px; }
	.fd-polaroids { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fd-guide--card { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
	.fd-wrap { padding: 0 16px; }
	.fd-hero { padding-bottom: 76px; }
	.fd-hero__waves { height: 44px; }
	.fd-grid { grid-template-columns: 1fr; gap: 40px; }
	.fd-filter { padding: 7px 13px; font-size: 0.9rem; }
	.fd-polaroids,
	.fd-polaroids--two { grid-template-columns: 1fr; }
	.fd-polaroid--left { transform: rotate(-1.2deg); }
	.fd-polaroid--right { transform: rotate(1deg); }
	.fd-hero--home { padding: 32px 0 92px; }
	.fd-guide { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.fd-filter,
	.fd-btn,
	.fd-polaroid { transition: none; }
}
