/* ANCHOR Reset */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* FIXME CSS D'urgence*/
section img {
	width: auto;
	max-height: 200px;
}

/* ANCHOR Core colors */
:root {
	--white: rgb(255, 255, 255);
	--ocean: rgb(0, 153, 204);
	--ocean-shadow: rgba(0, 153, 204, 0.1);
	--ocean-semi: rgba(0, 153, 204, 0.2);
	--deep-water: rgb(6, 78, 111);
	--black: rgb(0, 0, 0);
}

/* ANCHOR Base styles */
body {
	font-family: Arial, sans-serif;
	line-height: 1.6;
	color: var(--black);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background-image: url('https://aquaculteurs.com/library/fond-bleu.gif');
}

h1 {
	color: var(--white);
}

h3 {
	margin-top: 1.6rem;
}

h2,
h3,
h4,
h5,
h6 {
	color: var(--ocean);
	margin-bottom: 1.6rem;
}

.title-logo {
	text-align: center;
	padding: 0 30px;
	margin: 70px 0;
}

.title-logo img {
	max-width: 470px;
}

main {
	margin: 0 auto 10px;
	max-width: 940px;
	width: 100%;
	padding: 0;
	flex: 1 0 auto;
}

/* ANCHOR Content Lists */
a:not(.principal-nav a),
a:not(.principal-nav a) {
	color: var(--deep-water);
	text-decoration: none;
}

a:not(.principal-nav a):hover,
a:not(.principal-nav a):focus {
	text-decoration: underline;
}

a:not(.principal-nav a):visited {
	text-decoration: underline;
}

/* ANCHOR back-to-top */
.back-to-top {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	background-color: var(--white);
	color: var(--ocean);
	border: 2px solid var(--ocean);
	border-radius: 50%;
	text-align: center;
	line-height: 36px;
	text-decoration: none !important;
	font-size: 16px;
	font-weight: bold;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	z-index: 1000;
}

.back-to-top:hover,
.back-to-top:focus {
	background-color: var(--ocean);
	color: var(--white);
}

.back-to-top.visible {
	opacity: 1;
	visibility: visible;
}

figure {
	text-align: center;
}

figure img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 2px 8px var(--ocean-semi);
}

.species-grid {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	margin: 1.6em 0;
}

.species-grid dl {
	flex: 1 1 calc(100% / 5);
	min-width: 188px;
	padding: 0.5rem;
	border-radius: 8px;
	background-color: var(--ocean-semi);
}

.species-grid dt {
	margin-bottom: 8px;
}

.species-grid dd {
	margin: 0;
}

.species-grid ul {
	margin: 0;
	padding-left: 1rem;
}

@media (max-width: 940px) {
	.species-grid {
		flex-direction: column;
	}

	main {
		max-width: 940px;
		width: calc(100% - 3.2rem);
		margin: 0 1.6rem;
	}
}



main ul {
	margin-left: 0;
	padding-left: 2em;
}

main ol {
	margin-left: 0;
	padding-left: 2em;
}

section {
	margin: 0;
	padding: 0.6rem 1rem;
	background-color: var(--white);
	border-radius: 8px;
	overflow: hidden;
}

section:not(:last-of-type) {
	margin-bottom: 1.6rem;
}

/* ANCHOR Applique une marge inférieure de 1.6rem par défaut à tous les paragraphes. */
p {
	margin-bottom: 1.6rem;
}

/* ANCHOR Annule cette marge si le paragraphe est le dernier élément enfant direct à l'intérieur de sa balise <section> parente. */
section>p:last-child {
	margin-bottom: 0;
}

section ul li:last-child p {
	margin-bottom: 0;
}

/* NOTE TO CHECK */
section ul+p {
	margin-top: 1.6rem;
}

.section-annuary {
	background-color: transparent;
	padding: 0;
}

/* ANCHOR accordéon */
details {
	width: 100%;
	border: 2px solid var(--ocean);
	border-radius: 8px;
	margin: 0.6rem 0;
	padding: 0;
	background-color: var(--white);
}

details:hover {
	box-shadow: 0 2px 8px var(--ocean-semi);
}

summary {
	padding: 1rem;
	cursor: pointer;
	color: var(--ocean);
}

summary h3 {
	margin: 0;
	padding: 0;
	display: inline;
}

summary span {
	color: var(--deep-water);
}

summary:hover,
summary:focus {
	background-color: var(--ocean-shadow);
}

details p,
details section {
	padding: 0.6rem 1rem
		/* 1.6rem */
	;
	margin: 0;
}

/* .yt-iframe {
	width: 50%;
	max-width: 940px;
	aspect-ratio: 16/9;
	display: block;
	margin: 0
}

@media (max-width: 940px) {
	.yt-iframe {
		width: 100%;
	}
}
 */
/* .nutritional-table {
	width: 100%;
	margin: 0 auto 2em auto;
	border-collapse: collapse;
	background: var(--white);
	box-shadow: 0 2px 8px var(--ocean-semi);
	border-radius: 8px;
	overflow: hidden;
	font-size: 1rem;
}

.nutritional-table th,
.nutritional-table td {
	padding: 0.2em 1em;
	text-align: left;
}

.nutritional-table thead th {
	background: var(--ocean);
	color: var(--white);
	font-weight: 600;
	border-bottom: 2px solid var(--deep-water);
}

.nutritional-table tbody tr:nth-child(even) {
	background: var(--ocean-shadow);
}

.nutritional-table tbody tr:nth-child(odd) {
	background: var(--white);
}

.nutritional-table td {
	border-bottom: 1px solid var(--ocean-semi);
}

.nutritional-table tbody tr:last-child td {
	border-bottom: none;
} */