:root {
	--primary-color: #f39325;
	--secondary-color: #3c3c3b;
	--thirty-color: #FFF;
	--background-color: #0b161a;
	--text-color: #333;
	--border-radius: 5px;
	--border-radius2: 5px 5px 0 0;
}
body {
	font-family: 'Poppins', sans-serif;
	margin: 0;
	padding: 0;
	background-color: var(--background-color);
	color: var(--text-color);
}
header {/*
	background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
	color: white;
	text-align: center;
	padding: 40px 20px;
	border-bottom-left-radius: var(--border-radius);
	border-bottom-right-radius: var(--border-radius);*/
}
div#navbar{
	height:70px;
	width:100%;
	position:relative;
}
div#navbar a{
	float:left;
}
div#logo_coquicook{
	position:relative;
	width:60px;
	height:60px;
	margin:5px 0 0 30px;
	display:block;
}
div#logo_coquicook img{
	width:100%;
	height:100%;
}
.logo-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow: hidden; /* optionnel pour couper les débordements */
}
.social.haut{
	position:relative;
	float:right;
	width:190px;
	z-index:1000;
	Margin:20px 15px 0;
	padding-right: 15px;
}
.container{
	position:relative;
	width:96%;
	padding:0 2%;
	color:#FFF;
}
.container a{
	color:#FFF;
}
.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50vw;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/*Carousel*/
.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
	/*box-shadow: 0 8px 8px #777;*/
}
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.carousel-img {
    min-width: 100%;
    object-fit: cover;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 2rem;
}
.carousel-btn.prev {
    left: 10px;
}
.carousel-btn.next {
    right: 10px;
}
.carousel-btn:hover {
    background: rgba(0,0,0,0.7);
}
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
	align-items: stretch; /* aligne toutes les cellules à hauteur égale */
}
.recipe {
	display: flex;
	flex-direction: column;
	background: #141e20;
	border-radius: var(--border-radius);
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease-in-out;
	box-sizing: border-box;
	width: 100%;
	height: 100%; /* très important ici */
	background: var(--primary-color);
  	color: white;
  	/*filter: grayscale(100%);*/
	text-transform:uppercase;
	
}

.recipe:hover {
	transform: translateY(-5px);
	background:#a85547;
	/*filter: grayscale(0%);*/
}
.recipe img {
	width: 100%;
	border-radius: var(--border-radius2);
	/*filter: grayscale(90%) brightness(0.8);*/
	transition: filter 0.4s ease, transform 0.4s ease;
}

.recipe:hover img {
	filter: grayscale(0%) brightness(1);
}
.recipe-inner {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	/*padding: 20px;*/
}
.recipe h2 {
	font-size: 1em;
	color: var(--thirty-color);
	text-align: center;
	font-weight: normal;
	padding:0 !important;
	flex-grow: 1;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	text-align: center;
}
.recipe a {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.recipe a:hover {
	filter:grayscale(0%);
}
/*Social media*/
.social {
	position:relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding-bottom:20px;
	color:#FFF;
}
.social p {
	margin-bottom: 0.5rem;
}
.social a.lien_rs {
	width: 30px;
	height: 30px;
	background-size: contain;
	background-repeat: no-repeat;
	margin: 0 2px;
}
.social .icon-container {
	display: flex;
	gap: 10px;
	justify-content: center;
}
.lien_rs{
	filter: grayscale(0%);
  	transition: filter 0.4s ease, transform 0.4s ease;
}
.lien_rs:hover{
	filter: grayscale(100%);
}
.lien_rs.insta{
	background-image:url("../img/public/lien_rs_instagram.png");
}
.lien_rs.facebook{
	background-image:url("../img/public/lien_rs_facebook.png");
}
.lien_rs.youtube{
	background-image:url("../img/public/lien_rs_youtube.png");
}
.lien_rs.tiktok{
	background-image:url("../img/public/lien_rs_tiktok.png");
}
.lien_rs.email{
	background-image:url("../img/public/lien_rs_email.png");
}
.categ_container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 30px auto;
	max-width: 100%;
	text-transform:uppercase;
	font-weight:bold;
}
.lien_categ {
	padding: 8px 20px;
	border-radius: var(--border-radius, 8px);
	text-decoration: none;
	color: white;
	background: #f39325; /* orange principal */
	border: none;
	box-shadow: 0 2px 0 #c2701c; /* ombre plus foncée */
	transition: all 0.15s ease;
	display: inline-block;
	margin: 5px 20px 10px 0;
}

.lien_categ:hover {
	transform: translateY(2px);
	box-shadow: 0 2px 0 #c2701c;
	cursor: pointer;
}

.lien_categ:active {
	transform: translateY(4px);
	box-shadow: 0 0 0 #c2701c;
}
/*footer*/
footer{
	position:relative;
	width:100%;
	text-align:center;
	background: var(--primary-color);
	padding:5px 0;
	color:white;
}
footer a{
	color:inherit;
	text-decoration:none;
}
#recette_honneur {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 2rem 0;
	padding:30px 0;
	background:#243235;
}
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/*Cookies*/
#cookie-banner, #cookie-settings {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background: #333; color: #fff; z-index: 9999;
    font-family: sans-serif; font-size: 14px;
}
#cookie-banner p, #cookie-settings p { margin: 0; padding: 0.5rem 0; }
.cookie-container {
    max-width: 960px;
    margin: auto;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.cookie-buttons button {
    margin-left: 10px;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.accept-btn { background: #4CAF50; color: white; }
.reject-btn { background: #f44336; color: white; }
.customize-btn { background: #777; color: white; }
#cookie-settings {
    display: none;
    flex-direction: column;
    padding: 1rem;
    background: #222;
    border-top: 1px solid #555;
}
#cookie-settings label {
    display: block;
    margin-bottom: 8px;
}
#cookie-settings .save-btn {
    margin-top: 1rem;
    background: #4CAF50;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
}
.cookie-btn {
  margin-top: 1rem;
  padding: 0.4rem 0.8rem;
  background-color: #eee;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}
.cookie-btn:hover {
  background-color: #ddd;
}
/*Fil Ariane*/
nav[aria-label="Fil d'Ariane"] {
	padding:15px 0 0 15px;	
	color:#3c3c3b;
}
nav[aria-label="Fil d'Ariane"] a {
	color: #fff;
	text-decoration:none;
}
nav[aria-label="Fil d'Ariane"] span {
	font-weight:bold;
}
nav[aria-label="Fil d'Ariane"] a:hover {
	color: var(--primary-color);
}
nav[aria-label="Fil d'Ariane"] span.current {
	font-weight: bold;
	color: #fff;
}
nav[aria-label="Fil d'Ariane"] span.separator {
	font-size: 1.2rem;
	margin: 0 6px;
	display: inline-block;
	vertical-align: middle;
	color: #fff;
}
/*Bouton de chargement des recettes*/
#load-more {
	padding: 10px 20px;
	font-size: 16px;
	background-color:var(--primary-color);
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	margin: 20px auto;
	display: block;
	text-transform: uppercase;
}

#load-more:hover:not(:disabled) {
	background-color:var(--secondary-color);
}

#load-more:disabled {
  background-color: #999;
  cursor: not-allowed;
}
.seo-text{
	position:relative;
	display:block;
	margin-bottom:30px;
}

/*.category-banner,
.recipe-hero {
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}

.banner-overlay {
  background-color: rgba(0, 0, 0, 0.45);
  padding: 2rem;
  border-radius: 1rem;
}


*/
/* Le conteneur du hero (celui qui entoure <picture> + overlay) */
.recipe-hero, .category-banner {
  position: relative;

  overflow: hidden;      /* clippe image + overlay */
  height: 300px;     /* remets ta limite si tu la veux */
}

/* L’image remplit le conteneur, pas d’arrondi ici */
.recipe-hero img,
.category-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center; /* centrage horizontal + vertical */
  display: block;
}


/* L’overlay couvre le hero (pour le voile/gradient) et sera lui aussi “clippé” par overflow:hidden */
.banner-overlay {
  position: absolute;
  inset: 0;              /* plein conteneur */
  display: flex;
  align-items: center;   /* ou flex-end si tu veux le texte en bas */
  justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.35)); /* ajuste/retire si besoin */
  z-index: 1;
  pointer-events: none;  /* évite de bloquer des clics (si boutons au-dessus) */
}

/* Le texte : centré et limité en largeur, avec padding interne */
.banner-content {
padding:2rem;
  text-align: center;
  color: #fff;
border-radius: 12px;   /* l'arrondi vit ici */
	background-color: rgba(0, 0, 0, 0.45);
  pointer-events: auto;  /* si tu as des liens/boutons dans le texte */
}

/* Espacements pour retrouver le saut de ligne */
.banner-content h1 {
	font-size: 1.5rem;
}
.banner-content .sous-titre {
  font-size: 1.2rem;
  font-style: italic;
  margin-top: 0.5rem;
}

.presentation h2{
	/*font-weight: normal;*/
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}



@media (max-width: 1280px) {
	.logo img {
	  
	}
}
@media (max-width: 420px) {
  .grid {
    grid-template-columns: 1fr;
  }
}