/* COLORS */

:root {
	--FCV_YELLOW: #FFEE00;
	--FCV_ORANGE: #EE9630;
	--FCV_PURPLE: #B02785;
	--FCV_GREEN: #A2C62C;
	--WWW_BACK: white;
	--WWW_WHITE: white;
	--WWW_GREY: rgb(189, 189, 189);
	--WWW_DARKGREY: rgb(82, 80, 80);
	--WWW_BLACK: black;
}

/* BODY */

* {
	box-sizing: border-box;
}

body {
	background-color: var(--WWW_BACK);
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	/* si besoin de changer avec Sofia Pro Semi Bold, il faut les fichiers woff*/
	font-size: 1.1rem;
}

main {
	width: 75%;
	height: max-content;
	margin: auto auto;
}

/* HEADER */

header {
	height: 15%;
	width: 100%;
}

.row-header {
	width: 100%;
	height: 130px;
	max-height: 100%;
	display: flex;
	flex-direction: row;
	margin: 0;
	position: relative;
	justify-content: space-between;
}

#header-logo {
	height: 100%;
	flex: 1;
	position: relative;
	display: flex;
	padding-top: 2px
}

#header-logo img {
	height: 80%;
	width: auto;
	position: absolute;
	left: 0;
}

#header-slogan {
	flex: 1;
	height: 100%;
	display: flex;
	text-align: center;
	justify-content: center;
	flex-direction: column;
}

#header-slogan img {
	height: stretch;
	width: auto;
	position: absolute;
	right: 0;
}

#message {
	background-color: var(--FCV_PURPLE);
	border: 2px solid var(--WWW_BACK);
	color: var(--WWW_WHITE);
	display: block;
	text-align: center;
	padding: 5px;
	font-weight: bold;
	font-size: medium;
}

/* NAVIGATION BAR */

nav {
	background: var(--FCV_GREEN);
	width: 100%;
	height: max-content;
	border-bottom: none;
	position: relative;
	line-height: 2;
}

nav ul {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
	height: 100%;
	width: 100%;
}

.logo-nav {
	height: 100%;
	display: none;
	flex-direction: row;
	justify-content: flex-end;
	width: 100%;
}

.logo-nav img {
	height: 100%;
}

nav input[type="checkbox"],
label[for=nav-button] {
	display: none;
}

input[type="checkbox" i] {
	padding: 30px;
	cursor: pointer;
	border: none;
	appearance: auto;
}

label[for=nav-button] span {
	color: var(--WWW_BLACK);
	font-size: 2rem;
	flex: 0.6;
}

nav ul div.menu-items {
	display: flex;
}

nav ul div.menu-items a {
	text-decoration: none;
	padding: 0 20px 0 0;
	color: var(--WWW_BLACK);
}

nav ul div.menu-items a.menu-actif {
	color: var(--WWW_BLACK);
	font-weight: bold;
}

nav ul div.menu-items a:hover {
	color: var(--FCV_PURPLE);
	font-weight: bold;
}

/* FOOTER */

footer {
	padding: 20px 20px;
	width: 100%;
}

.row-footer {
	width: 100%;
	max-height: 100%;
	display: flex;
	flex-direction: row;
	font-size: small;
}

#MyFooter {
	flex: 2;
	display: flex;
	/* max-width: fit-content; */
	justify-content: left;
}

#DataProtection {
	flex: 2;
	display: flex;
	justify-content: right;
}

#MyLegal {
	flex: 1;
	display: flex;
	justify-content: right;
}

footer p {
	line-height: 1.3;
}

/* PAGES - PARAMETRES GLOBAUX */

section.content-container {
	width: 100%;
	height: max-content;
	border-top: 1px solid var(--FCV_GREEN);
	border-bottom: 1px solid var(--FCV_GREEN);
	/* padding: 2% 0;  */
	padding: 0 0 2% 0;
	display: flex;
}

.row {
	flex-direction: row;
}

.column {
	flex-direction: column;
}

.page-text {
	font-size: 1.1rem;
	padding: 0 20px;
	line-height: 1.3;
	width: 100%;
}

.page-text p,
h1,
h2 {
	padding-top: 10px;
	line-height: 1.3;
}

.page-text ul {
	list-style-type: disc;
	list-style-position: outside;
	padding: 0 40px;
	line-height: 1.5;
}

.page-text ol {
	list-style-type: decimal;
	list-style-position: outside;
	padding: 0 40px;
	line-height: 1.5;
}

.submenu a {
	background-color: var(--FCV_PURPLE);
	color: var(--FCV_YELLOW);
	text-decoration: none;
	font-size: small;
}

.docs-activelink {
	background-color: var(--FCV_YELLOW);
	color: var(--FCV_PURPLE);
	font-weight: bold;
}

.sidelinks {
	text-align: center;
}

.img-text {
	font-size: 0.7rem;
	padding-bottom: 20px;
}

.button-download {
    display: inline-block;
    padding: 2px 4px 2px;
    background-color: var(--WWW_WHITE);
	border: 1px dotted var(--FCV_PURPLE);
    color:  var(--WWW_BLACK);
    text-decoration: none;
    border-radius: 6px;
    font-size: small;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.button-download:hover {
    background-color: var(--FCV_PURPLE);
	color: var(--WWW_WHITE);
    transform: translateY(-2px);
}

.button-download:active {
    transform: translateY(0);
}

/* SEARCH FILTER */

.form-filter {
    display: flex;
    flex-wrap: wrap; /* utile si écran étroit */
    gap: 10px;
	font-size: 0.8rem;
}

.form-filter select {
    padding: 4px 30px 4px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    min-width: 200px;
}

.search-filter {
    position: relative;
    width: 200px;  
}

.search-filter input {
    width: 100%;
    padding: 4px 30px 4px 10px; 
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: 0.2s;
}

.search-filter input:focus {
    border-color: var(--FCV_GREEN);
    box-shadow: 0 0 3px var(--WWW_GREY);
    outline: none;
} 

.button-reset {
    position: absolute;
    right: 6px;
    top: 12px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 1rem;
    cursor: pointer;
    color: #888;
    padding: 0;
}

.button-reset:hover {
    color: #000;
}

/* PAGE - HOME */

.home-adresse {
	display: flex;
	flex-direction: column;
	text-align: center;
	padding-top: 20px;
}

.home-bandeau-image {
    width: 100%;
    text-align: center;
    margin-bottom: 5px;
}

.home-bandeau-image img {
    width: 100%;
    height: auto;
    display: block;
}

#homemail a {
	color: var(--FCV_PURPLE);
    text-decoration: none;
}

/* PAGE - QUI SOMMES NOUS */

.fede-content {
	display: flex;
	flex-direction: column;
}

/* COMMUNS AUX TABLEAUX */

div#table {
	width: 100%;
	height: max-content;
	/* padding: 20px 20px 0; */
}

div.tab-row {
	display: flex;
	flex-direction: row;
	width: 100%;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid var(--WWW_GREY);
	text-align: center;
	height: max-content;
	padding: 1% 0;
	line-height: 1.3;
}

.pagenumbers {
	display: flex;
	/* option initiale */
	/* flex-direction: row; 
	justify-content: flex-end; 
	align-items: center; 
	height: 4vh; 
	gap: 20px; */
	/* option numéros de pages sur plusieurs lignes */ 
	/* flex-wrap: wrap;
	justify-content: center; */
	overflow-x: auto;
	white-space: nowrap;
	gap: 8px;
	padding-bottom: 6px;
}

.pagenumbers .pagelink {
	display: flex;
	justify-content: center;
	line-height: 30px;
	min-width: 40px;
	text-decoration: none;
}

.pagenumbers .active {
	border-bottom: 3px solid var(--FCV_GREEN);
}

.tab-column-img {
	flex: 1;
	/* affichage du nom si pas de logo */
	font-size: smaller;
	font-weight: bold;
	/* affichage logo */
	width: auto;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.tab-column-img a { /* le a se comporte comme le containeur ci-dessus */
	width: auto;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tab-column-img img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.tab-column-img-event img {
	width: auto;
	height: 70px;
}

.tab-column-date {
	flex: 1;
}

.tab-column-fcv {
	/* logos CC CV */
	flex: 0.5;
	display: flex;
	flex-direction: column;
	align-items: end;
}

.tab-column-name {
	flex: 3;
	/* augmente la taille de la colonne centrale du tableau des commerçants */
}

.tab-column-name p {
	padding-block: 2px;
}

.tab-column-name a {
	text-decoration: none;
}

.field-name {
	color: var(--FCV_PURPLE);
	font-weight: bold;
	font-size: large;
}

.field-name a {
	color: var(--FCV_PURPLE);
	font-weight: bold;
	text-decoration: none;
}

.field-name a:hover {
	background: var(--FCV_PURPLE);
	color: var(--WWW_WHITE);
}

.field-date {
	/* date, author */
	color: var(--FCV_PURPLE);
	font-weight: bold;
}

.field-logo-asso, .field-logo {
	/* max-height: 30px; */
	max-width: 50px;
	padding-top: 2px;
}

.field-logo-cc {
	max-height: 30px;
	padding-top: 2px;
}

.field-logo-cv {
	max-width: 50px;
	padding-top: 2px;
}

.field-logo-social {
	max-height: 20px;
}

.field-text,
.field-telephone,
.field-adresse,
.field-adresse-complete,
.field-mail {
	font-size: medium;
	font-weight: normal;
}

.field-adresse {
	display: none;
}
.field-adresse-complete {
	display: block;
}

.field-mail a {
	color: var(--FCV_PURPLE);
	text-decoration: none;
}

.field-new {
	font-size: small;
	font-weight: bold;
	color: var(--WWW_WHITE);
	background-color: var(--FCV_ORANGE);
}

/* PAGE - QUI SOMMES NOUS / LA FEDE */

.lafede-content {
	height: max-content;
	justify-content: left;
	display: flex;
	flex-direction: row;
}

