/*!
Theme Name: Francesca Guerrier
Theme URI: http://underscores.me/
Author: Guillaume Ruiz
Author URI: http://guillaumeruiz.com
Description: Archive
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: francescaguerrier
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Francesca Guerrier is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/


@font-face {
	font-family: 'FormaDJRText';
	src: url('fonts/FormaDJRText-Bold.woff2') format('woff2'),
	url('fonts/FormaDJRText-Bold.woff') format('woff');
	font-weight: unset;
	font-style: normal;
	font-display: swap;
}


/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
	 html {
	 	line-height: 1.15;
	 	-webkit-text-size-adjust: 100%;
	 }

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
	 body {
	 	margin: 0;
	 }

/**
 * Render the `main` element consistently in IE.
 */
	 main {
	 	display: block;
	 }

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
	 h1 {
	 	font-size: 2em;
	 	margin: 0.67em 0;
	 }

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
	 hr {
	 	box-sizing: content-box;
	 	height: 0;
	 	overflow: visible;
	 }

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
	 pre {
	 	font-family: monospace, monospace;
	 	font-size: 1em;
	 }

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
	 a {
	 	background-color: transparent;
	 }

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
	 abbr[title] {
	 	border-bottom: none;
	 	text-decoration: underline;
	 	text-decoration: underline dotted;
	 }

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
	 b,
	 strong {
	 	font-weight: normal;
	 }

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
	 code,
	 kbd,
	 samp {
	 	font-family: monospace, monospace;
	 	font-size: 1em;
	 }

/**
 * Add the correct font size in all browsers.
 */
	 small {
	 	font-size: 80%;
	 }

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
	 sub,
	 sup {
	 	font-size: 75%;
	 	line-height: 0;
	 	position: relative;
	 	vertical-align: baseline;
	 }

	 sub {
	 	bottom: -0.25em;
	 }

	 sup {
	 	top: -0.5em;
	 }

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
	 img {
	 	border-style: none;
	 }

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
	 button,
	 input,
	 optgroup,
	 select,
	 textarea {
	 	font-family: inherit;
	 	font-size: 100%;
	 	line-height: 1.15;
	 	margin: 0;
	 }

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
	 button,
	 input {
	 	overflow: visible;
	 }

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
	 button,
	 select {
	 	text-transform: none;
	 }

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
	 button,
	 [type="button"],
	 [type="reset"],
	 [type="submit"] {
	 	-webkit-appearance: button;
	 }

/**
 * Remove the inner border and padding in Firefox.
 */
	 button::-moz-focus-inner,
	 [type="button"]::-moz-focus-inner,
	 [type="reset"]::-moz-focus-inner,
	 [type="submit"]::-moz-focus-inner {
	 	border-style: none;
	 	padding: 0;
	 }

/**
 * Restore the focus styles unset by the previous rule.
 */
	 button:-moz-focusring,
	 [type="button"]:-moz-focusring,
	 [type="reset"]:-moz-focusring,
	 [type="submit"]:-moz-focusring {
	 	outline: 1px dotted ButtonText;
	 }

/**
 * Correct the padding in Firefox.
 */
	 fieldset {
	 	padding: 0.35em 0.75em 0.625em;
	 }

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
	 legend {
	 	box-sizing: border-box;
	 	color: inherit;
	 	display: table;
	 	max-width: 100%;
	 	padding: 0;
	 	white-space: normal;
	 }

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
	 progress {
	 	vertical-align: baseline;
	 }

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
	 textarea {
	 	overflow: auto;
	 }

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
	 [type="checkbox"],
	 [type="radio"] {
	 	box-sizing: border-box;
	 	padding: 0;
	 }

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
	 [type="number"]::-webkit-inner-spin-button,
	 [type="number"]::-webkit-outer-spin-button {
	 	height: auto;
	 }

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
	 [type="search"] {
	 	-webkit-appearance: textfield;
	 	outline-offset: -2px;
	 }

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
	 [type="search"]::-webkit-search-decoration {
	 	-webkit-appearance: none;
	 }

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
	 ::-webkit-file-upload-button {
	 	-webkit-appearance: button;
	 	font: inherit;
	 }

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
	 details {
	 	display: block;
	 }

/*
 * Add the correct display in all browsers.
 */
	 summary {
	 	display: list-item;
	 }

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
	 template {
	 	display: none;
	 }

/**
 * Add the correct display in IE 10.
 */
	 [hidden] {
	 	display: none;
	 }

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: var(--lineheight-1);
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}



/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 0px solid;
	border-color: var(--color-1);
	border-radius: 0;
	background: transparent;
	color: var(--color-1);
	line-height: var(--lineheight-1);
	padding: 0;
	margin: 0;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: var(--color-1);
	cursor: pointer;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: var(--color-1);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: var(--color-1);
	border: 1px solid var(--color-1);
	border-radius: 0;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: var(--color-1);
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
/*	margin: 0 0 1.5em;*/
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
/*	margin: 1.5em 0 0;*/
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}



/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/* Root
--------------------------------------------- */

:root {
	--grid-offset: 10px; 
	--padding-unit: 10px;
	--fontfamily-1: 'FormaDJRText';
	--fontsize-1: 16px;
	--lineheight-1: 20px;
	--fontsize-2: 16px;
	--lineheight-2: 20px;
	--fontsize-3: 12px;
	--lineheight-3: 14px;
	--color-1: black;
	--color-2: white;
	--color-3: #ededed;
	--opacity-light: .2;
	--opacity-ease: opacity 0.5s ease;
	--thumb-h: calc(var(--padding-unit) * 10);
	/**/
	--plyr-color-main: #181818;
}

@media screen and (max-width: 800px) {
	:root {
		--fontsize-1: 16px;
		--lineheight-1: 20px;
	}
}

/* Global
--------------------------------------------- */
#accessibility-controls button {
	text-align: left;
}

#accessibility-controls button:hover {
	opacity: var(--opacity-light);
}

/* Global
--------------------------------------------- */

/* Scrollbars masqués pour tous les éléments avec overflow */
::-webkit-scrollbar {
	width: 0px;
	height: 0px;
}

body, .scroll-column {
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE/Edge */
}

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
}

html, body {
  touch-action: manipulation;
}


body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

main {
	animation: fadeInAnimation ease .3s;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

/* Supprime le halo bleu sur mobile iOS/Android */
* {
	-webkit-tap-highlight-color: transparent;
	-webkit-focus-ring-color: rgba(0, 0, 0, 0);
}

/* Supprime les bordures de focus par défaut */
a, button, input, textarea {
	outline: none;
}

/* Links
--------------------------------------------- */
a {
	color: var(--color-1);
}

a:visited {
	color: var(--color-1);
}

a:hover,
a:focus,
a:active {
	color: var(--color-1);
}

a:focus {
	color: var(--color-1);
}

a:hover,
a:active {
	outline: 0;
}


/* Typography
--------------------------------------------- */

body,
p,
a,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
li,
button {
	font-family: var(--fontfamily-1);
	font-weight: normal;
	font-size: var(--fontsize-1);
	line-height: var(--lineheight-1);
	color: var(--color-1);
	margin: 0;
	padding: 0;	
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
	text-underline-offset: 4px;
	color: var(--color-1);
	cursor: pointer;
}

a:hover {
	text-decoration: none;
}

img {
	vertical-align: top;
}

@media (min-width: 1024px) {

	.hide-desktop {
		display: none !important;
	}
}

/* Header
--------------------------------------------- */

/* Ligne du titre + bouton + (panel en dessous) */
.header-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--padding-unit);
  align-items: start;
}

.site-title {
	cursor: pointer;
}

/* Bouton + / × */
.toggle-menu-button {
  display:flex;
  align-items:center;
  justify-content:space-between; /* "Menu" à gauche, icône à droite */
  min-width: 8rem;              /* donne de l’espace pour bien voir le décalage */
  background:transparent;
  border-bottom:1px solid var(--color-1);
  font:inherit;
  cursor:pointer;
  opacity: 1;
}

.toggle-menu-button:hover {
	opacity: var(--opacity-light);
}

.toggle-menu-icon{
  width:1ch;                    /* évite que le texte saute quand + devient − */
  text-align:right;
  font-weight:inherit;
}

/* Le panneau : replié par défaut, animé à l'ouverture */
.toggle-menu-content {
  width: 100%;
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}

.toggle-menu-content {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: var(--row-h, calc(var(--lineheight-1) + .2rem)); /* hauteur d'une "ligne" texte */
    grid-auto-flow: row dense;
    column-gap: var(--padding-unit);
    row-gap: 0;
    align-items: start;
}

.toggle-menu-content nav {
	grid-column-start: 2;
}

/* Quand ouvert via la classe sur .header-nav */
.header-nav.is-open .toggle-menu-content {
  max-height: 600px; /* assez grand pour contenir le menu */
}

/* Accessibilité : on contrôle aussi l'attribut hidden */
.header-nav.is-open .toggle-menu-content[hidden] {
  display: block;   /* pour les UA qui respectent strictement hidden */
}

.menu {
  display: flex;
  flex-direction: column;
  padding-bottom: var(--lineheight-1);
}

.menu a {
	text-decoration: none;
	opacity: var(--opacity-light);
	display: block;
}

.menu a:hover {
	opacity: 1;
}

.current-menu-item a,
.current_page_item a,
a.active {
	opacity: 1;
	text-decoration: none;
}

.current-menu-item a:hover,
.current_page_item a:hover,
a.active:hover {
	opacity: var(--opacity-light);
}


.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  column-gap: var(--padding-unit);
}

.header-inner .header-inner-col {
	flex:1;
	display: flex;
	flex-direction: column;
}


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

#section-container {
  transition: opacity 0.3s ease;
}

.fade-out {
  opacity: 0;
}

.fade-in {
  opacity: 1;
}

/* Footer
--------------------------------------------- */

footer {
	text-align: left;
/*	padding-top: var(--lineheight-1);*/
}


/*.display-fixed-btn {
    position: fixed;
    bottom: var(--lineheight-1);
    left: var(--padding-unit);
}*/

/* Bouton fixe */
.display-fixed-btn{
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1000;
  padding: .6rem .9rem;
  border-radius: .75rem;
  border: 1px solid rgba(0,0,0,.1);
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  cursor: pointer;
}

/* Overlay */
.display-overlay{ position: fixed; inset: 0; z-index: 1100; display: none; }
.display-overlay.display-overlay--open{ display: block; }
.display-overlay-backdrop{ position: absolute; inset: 0; background: rgba(0,0,0,.45); }

.display-panel{
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(420px, 100%); background: #fff; overflow: auto;
  padding: 1rem 1rem 2rem 1rem; box-shadow: -8px 0 24px rgba(0,0,0,.2);
}

.display-close{
  position: absolute; top: .5rem; right: .5rem;
  width: 2.25rem; height: 2.25rem; line-height: 2.25rem; text-align:center;
  border-radius: .5rem; border: 1px solid rgba(0,0,0,.1); background:#fff; cursor:pointer;
}

.overlay-title{ margin: 0 2.5rem 1rem 0; font-size: 1.1rem; }
.overlay-section{ padding: .5rem 0 1rem; border-top: 1px solid rgba(0,0,0,.06); }
.overlay-section:first-of-type{ border-top: 0; }
.display-panel .toggle-title{ display:block; margin-bottom: .4rem; }
.display-panel .toggle-content{ display:flex; flex-wrap: wrap; gap: .4rem .5rem; }
.display-panel .toggle-col,
.display-panel .filter{ border:1px solid rgba(0,0,0,.12); padding:.35rem .55rem; border-radius:.5rem; background:#fff; cursor:pointer; }


/* Typography
--------------------------------------------- */

#page {
	padding: var(--padding-unit);
}

strong {
	font-weight: normal;
}

/* Page header
--------------------------------------------- */

#page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--padding-unit)* 5);
}

/* section-creations section-header
--------------------------------------------- */
/* Base : desktop (4 colonnes) */
.sort-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--padding-unit);
  align-items: start;
  margin-bottom: var(--lineheight-2) 0;
}

/* Tablette : 2 colonnes → 2 lignes pour tes 4 blocs */
@media (min-width: 641px) and (max-width: 1024px) {
  .sort-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile : 1 colonne */
@media (max-width: 640px) {
  .sort-inner {
    grid-template-columns: 1fr;
  }
}

/* (Optionnel) utilitaire si tu veux faire span un bloc sur 2 colonnes */
.sort-inner .col-span-2 {
  grid-column: 1 / -1;
}

.site-title {
	opacity: 1;
}

.border-title {
	display: block;
	border-bottom: 1px solid black;
}

.toggle-header {
	display: grid;
  	grid-template-columns: repeat(1, 1fr);
  	column-gap: var(--padding-unit);
}

.toggle-content,
.toggle-menu-content nav {
  display: flex;
  flex-direction: column;
}

.content-header {
	opacity: 1;
	cursor: auto !important;
}

.header-inner-col.open .toggle-content,
.sort-inner-col.open .toggle-content {
  display: flex;
  flex-direction: column;
}

/**/

.toggle-col {
	cursor: pointer;
}

.toggle-col,
.filter.active {
    opacity: 1;
}

.toggle-col.toggled-off,
.filter {
	opacity: var(--opacity-light);
}

.toggle-col.toggled-off:hover,
.filter:hover {
	opacity: 1;
}

.filter {
	cursor: pointer;
}

#accessibility-controls button {
	opacity: var(--opacity-light);
}

#accessibility-controls button:hover {
	opacity: 1;
}

button#reset-filters {
	opacity: var(--opacity-light);
}

button#reset-filters:hover {
	opacity: 1;
}

/* Bouton flex comme le menu */
.toggle-filters-button {
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  background:transparent;
  border-bottom:1px solid var(--color-1);
  font:inherit;
  cursor:pointer;
  margin-top: var(--lineheight-2);
  opacity: 1;
}

.toggle-filters-button:hover {
	opacity: var(--opacity-light);
}

.toggle-filters-icon {
	width:1ch;
	text-align:right;
	font-weight:inherit;
}

/* Panneau animé (comme le menu) */
/* Panel pliable */
.filters-panel{
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
  will-change: max-height;
}

/* Neutralise d’éventuels rognages hérités dans la zone filtres */
.filters-panel .sort-inner,
.filters-panel .toggle-content,
.filters-panel .filter,
.filters-panel .border-title,
.filters-panel .toggle-title {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

/* résultats */

.table-container-inner {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: var(--padding-unit);
}

#reset-filters {
	padding-left: var(--padding-unit);
}

#result-count {
	text-align: right;
	display: block;
}

.result-row {
	display: flex;
	justify-content: space-between;
}

/* barre de recherche */

#keyword-search {
	display: flex;
	align-items: baseline;
}

#keyword-search .sr-only {
    margin-right: var(--padding-unit);
}
/**/

/* cible précisément ton champ */
#search-input::placeholder {        /* standard */
  color: var(--color-1);            /* ta couleur */
  opacity: 1;                       /* certains navigateurs forcent une opacité */
}

/* vieux préfixes (encore utiles sur Safari/Firefox plus anciens) */
#search-input::-webkit-input-placeholder { color: var(--color-1); opacity: 1; }
#search-input::-moz-placeholder { color: var(--color-1); opacity: 1; }
#search-input:-ms-input-placeholder { color: var(--color-1); opacity: 1; }
#search-input::-ms-input-placeholder { color: var(--color-1); opacity: 1; }


#keyword-search #search-input {
    width: -webkit-fill-available;
    border: 0;
/*    border-bottom: 1px solid var(--color-1);*/
    padding: 0;
    font-family: var(--fontfamily-1);
    font-size: var(--fontsize-1);
    color: var(--color-1);
    opacity: var(--opacity-light);
}

.search-submit {
	display: none;
}

/* 1) Cacher la croix native (Chrome/Safari/Edge) */
#search-input::-webkit-search-cancel-button,
#search-input::-webkit-search-decoration,
#search-input::-webkit-search-results-button,
#search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

/* (option legacy IE/EdgeHTML) */
#search-input::-ms-clear { display: none; width: 0; height: 0; }

/* 2) S'assurer que l'input n'ajoute pas de “chrome” particulier */
#search-input { -webkit-appearance: textfield; }

/* 3) Placeholder (si tu veux une autre couleur) */
#search-input::placeholder { color: var(--color-1); opacity: 1; }


/* section-creations table-container
--------------------------------------------- */

.table-container {
	width: 100%;
	padding-bottom: var(--lineheight-1);
/*	margin-top: var(--lineheight-2);*/
}

/* Bouton toggle Tri */
/* ===== Toggle Tri ===== */

/* Desktop : bouton caché, panel ouvert en hauteur auto */
.toggle-sort-button { display: none; }
.sort-panel { max-height: none; overflow: visible; }


/* forcer le masquage quel que soit le display de la ligne (grid, contents, etc.) */
#table-rows .table-row.is-hidden { display: none !important; }



/* Tablette/Mobile : bouton visible, panel replié par défaut */
@media (max-width: 1024px) {

/* masquer affichage toggle tri tablette */

.toggle-header {
	display: none;
}

/* masquer affichage sidebar tablette */

#overlay-display {
	display: none;
}

  .toggle-sort-button{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border-bottom: 1px solid var(--color-1);
    font: inherit;
    cursor: pointer;
  }
  .toggle-sort-icon {
  	width: 1ch;
  	text-align: right;
  	font-weight: inherit;
  }

  .sort-panel{
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease;
    will-change: max-height;
  }

  /* Header de tri en colonne sur mobile/tablette (optionnel) */
  #sort-panel #header-row{
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Panneau tri : desktop = ouvert, mobile/tablette = repliable */
.sort-panel{
  overflow:visible;
  max-height:none;            /* desktop: toujours ouvert */
}

/* Tablette/Mobile */
@media (max-width:1024px){
  .toggle-sort-button{ display:flex; }            /* afficher le bouton */
  .sort-panel{
    overflow:hidden;                               /* animé */
    max-height:0;
    transition:max-height .3s ease;
    will-change:max-height;
  }
  /* header-row vertical si tu veux */
  #header-row{
    display:grid;
    grid-template-columns: 1fr;
    row-gap:.35rem;
  }
}




/*@media (max-width: 1024px) {}*/

#header-row,
.table-row {
	display: grid;
	grid-auto-flow: column;        /* on remplit en colonnes */
	grid-auto-columns: 0.5fr;      /* unité de base = 0.5fr */
	column-gap: var(--padding-unit);
}

#header-row *,
.table-row * {
	grid-column: span 2;
}

#header-row .is-half,
.table-row .is-half {
  grid-column: span 1;
}

/* Cellules */
.table-cell {
  min-width: 0; /* IMPORTANT en grid pour que ellipsis fonctionne */
  text-align: left;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  border-bottom: 1px solid var(--color-1);
}

.table-cell:last-child {
	border-right: none;
}

/* Les cellules “galerie” doivent réserver l’espace de la vignette */
#table-rows .table-cell[data-field="images"],
#table-rows .table-cell[data-field="recherches"] {
  position: relative;
  min-height: var(--thumb-h);
  padding-bottom: var(--lineheight-1); /* comme sur l'image */
}

/* S'il n'y a aucune vignette (.preview-thumb), on affiche un slash diagonal */
#table-rows .table-cell[data-field="images"]:not(:has(.preview-thumb)),
#table-rows .table-cell[data-field="recherches"]:not(:has(.preview-thumb)) {
  /* au cas où tu affichais un tiret/texte, on le masque visuellement */
  color: transparent;
}

/* Le trait diagonal */
#table-rows .table-cell[data-field="images"]:not(:has(.preview-thumb))::before,
#table-rows .table-cell[data-field="recherches"]:not(:has(.preview-thumb))::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' preserveAspectRatio='none'%3E%3Cline x1='0' y1='0' x2='100%25' y2='100%25' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
  border-bottom: 0 !important;
}

/* Ton style existant reste tel quel */
.table-cell img {
  height: var(--thumb-h);
  padding-bottom: var(--lineheight-1);
  width: auto;
  opacity: 1;
  cursor: pointer;
}

/* ========== TABLETTE : 641–1024px ========== */
@media (max-width: 1024px) {
  /* En-têtes de tri en une seule colonne verticale */

/*	#header-row .images {
		display: none;
	}*/

  #sort-panel .header-cell.images { display: none; }

	.toggle-header {
	  	grid-template-columns: repeat(1, 1fr);
	}

  #header-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    row-gap: 0;
    grid-column-start: 2;
  }
  #header-row .table-cell {
  	grid-column: 1 !important;
  	border-bottom: 0;
  }

/*  #table-rows {
  	margin-top: var(--lineheight-2);
  }*/

    .sort-inner-col {
  	margin-bottom: var(--lineheight-2);
  }

  /* Chaque article = 2 colonnes : gauche image, droite tous les textes (y compris "recherches") */
  #table-rows .table-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: var(--row-h, calc(var(--lineheight-1) + .2rem)); /* hauteur d'une "ligne" texte */
    grid-auto-flow: row dense;
    column-gap: var(--padding-unit);
    row-gap: 0;
    align-items: start;
    border-bottom: 1px solid black;
  }

  /* Par défaut, TOUT va à droite (colonne 2) */
  #table-rows .table-row .table-cell {
  	grid-column: 2 !important;
  	border-bottom: 0;
  }

  /* La galerie d'images : colonne 1 + occupe plusieurs "pistes" (ajuste 6 → 8 si besoin) */
  #table-rows .table-row .table-cell[data-field="images"] {
    grid-column: 1 !important;
    grid-row: 1 / span var(--img-span, 6);
    align-self: start;
  }

  /* La galerie "recherches" reste à droite avec les textes */
  #table-rows .table-row .table-cell[data-field="recherches"] {
    grid-column: 2 !important;
  }

  /* Si une colonne est masquée (toggle), on la retire proprement du layout */
  #table-rows .table-row .table-cell.hidden { display: none !important; }

  /* Les cellules de galeries ne doivent PAS hériter du nowrap global */
  .table-cell[data-field="images"],
  .table-cell[data-field="recherches"] {
    white-space: normal;       /* annule le nowrap global */
    overflow: visible;
    text-overflow: clip;
  }

  /* Vignettes fluides */
  .table-cell[data-field="images"] .preview-thumb,
  .table-cell[data-field="recherches"] .preview-thumb {
    display: block;
    width: auto;
    height: 100%;
  }
}


/* ========== AJUSTS GLOBAUX UTILES ========== */
/* Si tu as un nowrap global sur .table-cell, on lève l’exception pour les galeries */
.table-cell[data-field="images"],
.table-cell[data-field="recherches"] {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

/* Option : n’afficher qu’UNE vignette dans les listes de galeries (si tu n'as pas mis 1 en PHP) */
/* .gallery-list .preview-thumb:not(:first-child) { display: none; }
   .gallery-list .more-count { display: none; } */



/**/

.sort-btn {
	display: flex;
	flex-direction: row;
	column-gap: var(--padding-unit);
	width: 100%;
	white-space: nowrap; /* Empêche le retour à la ligne */
	overflow: hidden; /* Cache le texte qui dépasse */
	text-overflow: ellipsis; /* Ajoute "..." à la fin du texte */
	max-width: 100%; /* Assure que le titre ne dépasse pas son conteneur */
	justify-content: space-between;
	height: var(--lineheight-1);
}

.sort-btn:hover {
	opacity: var(--opacity-light) !important;
}

.sort-indicator {
	opacity: var(--opacity-light);
}


.miniature img {
	cursor: pointer;
}

/**/

#no-results {
	display: none;
}




/* Masquage d'une colonne */
.hidden {
	display: none !important;
}



/* Template publications
--------------------------------------------- */

.publication .gallery {
    margin-bottom: var(--padding-unit);
    display: flex;
    flex-direction: row;
    grid-gap: var(--padding-unit);
}

/*#header-row .images {
	display: none;
}*/

.table-image-cell {
	display: none;
}

/* Template informations
--------------------------------------------- */

.informations li {
	display: flex;
	flex-direction: row;
	column-gap: var(--padding-unit);
	border-bottom: 1px solid var(--color-1)
}

.informations li p:nth-child(1) {
	flex: 1;
}

.informations li p:nth-child(2) {
	flex: 4;
}

/* Image preview
--------------------------------------------- */

#image-preview-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
#image-preview-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
#image-preview {
  max-width: 90vw;
  max-height: 90vh;
/*  box-shadow: 0 0 20px rgba(0,0,0,0.4);*/
}

/*Grille*/

.grid-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100%;
	padding: 0;
	pointer-events: none;
	z-index: 9999;
}

.grid-col {
	float: left;
	height: 100%;
	width: calc(100% / 16);
	border-left: 1px dashed rgba(255, 0, 0, 0.3);
}

.grid-line {
	position: absolute;
	left: 0;
	width: 100%;
	height: 1px;
	background: rgba(0, 0, 255, 0.3);
}

