/*
Theme Name: Ciné-Horreur
Theme URI: https://cine-horreur.fr
Author: Toi
Description: Un thème sombre pour les films d'horreur.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: cine-horreur
*/

body {
    background-color: #111;
    color: #eee;
    font-family: 'Englebert', Arial, sans-serif;
}

.font-satisfy {
    font-family: 'Englebert', cursive;
}


.font-fredericka {
    font-family: 'Englebert', cursive;
	font-weight: normal !important;
}

.font-englebert {
    font-family: 'Englebert', sans-serif;
}

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

.font-agency {
    font-family: 'Englebert', sans-serif;
}


a { color: #d00; }
a:hover { color: #f00; }

.container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
}

.main-content {
    flex: 3;
    padding: 20px;
}

.sidebar {
    flex: 1;
    padding: 20px;
    background: #222;
}


/* === Header + Logo === */
.site-header {
    background-color: transparent;
    padding: 20px;
    box-shadow: none;
    position: relative;
    z-index: 9999;
}

.logo-header {
    width: 300px; /* augmente la largeur du logo ici */
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-title img {
    height: 120px;
    max-width: 100%;
	background: transparent !important;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.5);
    margin-bottom: 20px;
}

.nav-search-wrapper {
    display: flex;
    flex-wrap: wrap;  /* Wrap pour mobile */
    justify-content: center;
    align-items: center;
    gap: 20px;
}

@media (min-width: 600px) {
    .nav-search-wrapper {
        flex-wrap: nowrap;  /* Pas de wrap sur écran plus large */
    }
}

/* === Menu navigation === */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    color: #f5f5f5;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    background-color: #222;
    transition: background-color 0.3s, color 0.3s;
}

.main-navigation a:hover {
    background-color: #8b0005;
    color: #fff;
}

/* === Barre de recherche === */
.search-form {
    display: flex;
    align-items: center;
    background-color: #222;
    border-radius: 25px;
    overflow: hidden;
}

.search-field {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #f5f5f5;
    width: 150px;  /* Réduit de 180px à 150px */
}

.search-field::placeholder {
    color: #aaa;
}

.search-field:focus {
    outline: none;
    background-color: #333;
}

.search-form button {
    background-color: #8b0005;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: #fff;
    transition: background-color 0.3s;
    font-size: 16px;
}

.search-form button:hover {
    background-color: #ff0000;
}

/* === Liste de films (Grid) === */
.films-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.film-item {
    background-color: #1c1c1c;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.film-item:hover {
    transform: scale(1.03);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.film-item img {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
}

.film-item h3 {
    color: #f5f5f5;
    margin-top: 10px;
    font-size: 16px;
}

/* === Titre + Tri Liste === */
.films-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Pour que ça passe sur mobile */
    gap: 10px;
}

.films-header h2 {
    color: #f5f5f5;
    font-size: 24px;
    margin: 0;
}

.tri-form {
    display: flex;
    align-items: center;
    background-color: #222;
    padding: 6px 10px;
    border-radius: 25px;
    margin-top: 10px;
}

.tri-form label {
    color: #aaa;
    margin-right: 8px;
    font-size: 14px;
}

.tri-form select {
    background-color: transparent;
    color: #f5f5f5;
    border: none;
    font-size: 14px;
    outline: none;
    appearance: none;
    padding: 5px 10px;
    cursor: pointer;
}

.tri-form select:hover {
    background-color: #333;
}

/* === Bouton Charger Plus === */
.load-more-container {
    text-align: center;
    margin-top: 30px;
}

.load-more-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #222;
    color: #f5f5f5;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s;
    font-size: 14px;
    cursor: pointer;
}

.load-more-button:hover {
    background-color: #8b0005;
    color: #fff;
}

/* === Pagination fallback === */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination a, .pagination span {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    background-color: #222;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.pagination a:hover {
    background-color: #8b0005;
    color: #fff;
}

.pagination .current {
    background-color: #8b0005;
    font-weight: bold;
}

/* === Footer === */
.site-footer {
    background-color: #111;
    text-align: center;
    padding: 15px 10px;
    margin-top: 40px;
    border-top: 1px solid #222;
}

.site-footer p {
    color: #aaa;
    font-size: 14px;
    margin: 0;
}

.site-footer a {
    color: #8b0005;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* === Single Page === */
.film-detail-container {
    max-width: 900px;
    margin: 30px auto;
    background-color: #1c1c1c;
    padding: 20px;
    border-radius: 8px;
    color: #f5f5f5;
}


.accroche {
    color: #8b0005;
    font-size: 24px;
    margin-bottom: 20px;
}
.accroche2 {
    color: #8b0005;
    font-size: 30px;
    margin-bottom: 0px;
	margin-top: 5px;
	font-size: 42px
}
.accroche2-5 {
    color: #8b0005;
    font-size: 30px;
    margin-bottom: 10px;
    margin-top: 5px;
}

.accroche3 {
    color: #8b0005;
    font-size: 18px;
    margin-bottom: 10px;
	margin-top: 5px;
}
.film-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.film-header-thumbnail img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 4px;
}

.film-infos {
    flex: 1;
    min-width: 250px;
}

.film-meta-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.film-meta-list li {
    margin-bottom: 8px;
}

.film-synopsis h3,
.film-note h3,
.film-avis h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.film-avis p {
    margin: 0;
    line-height: 1.5;
}

.film-note .star {
    font-size: 24px;
    color: #555;
    margin-right: 4px;
}

.film-note .star.filled {
    color: #ffcc00;
}
.films-recommandes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

.film-recommande-item {
    background-color: #1c1c1c;
    border-radius: 8px;
    padding: 8px;
    width: 120px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.film-recommande-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
}

.film-recommande-thumbnail img {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.film-recommande-title a {
	    margin-top: 8px;
    font-size: 14px;
    color: #8b0005;
    text-decoration: none;
    transition: color 0.3s;
}

.film-recommande-title a:hover {
    color: #a80006;
}

/* === User Menu === */
.user-menu {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.user-name {
    color: #eee;
    font-weight: bold;
}

.nav-button {
    background-color: #8b0005;
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav-button:hover {
    background-color: #f00;
}

/* === Comment Section === */
.comments-section {
    margin-top: 40px;
    padding: 20px;
    background: #222;
    border-radius: 8px;
}

.comments-section h2 {
    color: #f00;
    margin-bottom: 15px;
}

.comment-list li {
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.comment-form input, .comment-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: #111;
    color: #eee;
    border: 1px solid #444;
    border-radius: 4px;
}

.comments-section .comment-form input[type="submit"] {
    background-color: #8b0005; /* comme les boutons alphabet */
    color: #fff;
    border: none;
    width: 28px;         /* même que boutons alphabet */
    height: 28px;
    line-height: 28px;   /* centre le texte verticalement */
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.comments-section .comment-form input[type="submit"]:hover {
    background-color: #a80006;
}

.wpcf7-submit {
    background-color: #8b0005 !important;
    color: #fff !important;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.wpcf7-submit:hover {
    background-color: #a80006 !important;
    transform: scale(1.05);
}


.user-access {
    position: absolute;
    top: 20px;
    right: 20px;
}

.login-link {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 14px;
    background-color: #222;
    padding: 6px 10px;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.login-link:hover {
    background-color: #8b0005;
    color: #fff;
}

.mini-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #8b0005;
    object-fit: cover;
}
.auth-container {
    max-width: 400px;
    margin: 40px auto;
    background-color: #1c1c1c;
    padding: 20px;
    border-radius: 8px;
    color: #eee;
    text-align: center;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.auth-form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background: #111;
    color: #eee;
    border: 1px solid #444;
    border-radius: 4px;
}

.auth-form button {
    background-color: #d00;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 10px;
}

.auth-form button:hover {
    background-color: #f00;
}

.auth-error {
    color: #8b0005;
    font-weight: bold;
    margin-bottom: 10px;
}

.avatar-selection {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.avatar-selection label {
    cursor: pointer;
}

.avatar-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid transparent;
    object-fit: cover;
    transition: transform 0.2s, border 0.2s;
}

.avatar-selection input[type="radio"]:checked + .avatar-option {
    border: 2px solid #8b0005;
    transform: scale(1.1);
}
.auth-success {
    color: #00ff66;
    font-weight: bold;
    margin-bottom: 10px;
}
.custom-avatar {
    border-radius: 50%;
    border: 2px solid #8b0005;
    object-fit: cover;
    width: 48px;
    height: 48px;
}
.comment-bubble {
    background-color: #1c1c1c;
    border: 1px solid #444;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 0 5px rgba(255,0,0,0.2);
	align-items: center;
}

.comment-meta {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 5px;
}

.comment-meta .comment-date {
    font-style: italic;
    font-size: 12px;
    color: #888;
    margin-left: 8px;
}

.comment-content {
    color: #eee;
    font-size: 15px;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
    box-sizing: border-box;
}
.comment-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

.comment-bubble-webmaster {
    background-color: #8b0005; /* rouge sombre */
	border: 1px solid #a80006; /* un rouge un peu plus clair pour contraste */
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 0 8px rgba(255,0,0,0.4);
    color: #fff;
    display: block;	
	max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    border-radius: 8px;
}

.comment-bubble-webmaster strong {
    font-size: 18px;
    display: block;
    margin-bottom: 10px;
    color: #fff;
}

.comment-bubble-webmaster .comment-content {
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
}

.comment-bubble img.avatar {
    border-radius: 50%;
    border: 2px solid #8b0005;
}
.logo-header {
    border: none !important;
    box-shadow: none !important;
     background: transparent !important;
    padding: 4px;
    border-radius: 6px;
    height: auto !important;
    width: auto !important;
    max-height: none !important; /* <-- on enlève la limite de taille */
    margin-bottom: 0 !important;
    transition: all 0.3s ease-in-out;
    width: 200px; /* <-- taille fixe pour agrandir le logo */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Plus grand sur grand écran */
@media screen and (min-width: 1024px) {
    .logo-header {
        width: 250px; /* <-- encore plus grand sur PC */
    }
}
#comment-popin {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    width: 500px;           /* Largeur élargie */
    max-width: 90%;         /* Adapté aux petits écrans */
    background-color: #1c1c1c;
    padding: 20px;
    border-radius: 8px;
    color: #eee;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);

}
.film-recommande-thumbnail img {
    display: block;
    margin: 0 auto;
}
.alphabet-filter {	
	display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-top: 10px;

    flex: 1; /* 👈 Ajouté pour qu’il prenne la place disponible */
    text-align: center;
}

.alphabet-filter a {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    justify-content: center;
    text-align: center;
    background-color: #8b0005; /* Rouge sombre */
    border-radius: 50%; /* Rond parfait */
    font-size: 14px;
    font-weight: bold;
    color: #ffffff; /* Texte blanc */
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
}

.alphabet-filter a:hover {
    transform: scale(1.1);
    background-color: #a80006; /* Légèrement plus clair au hover */
}

.film-item h3 a {
    color: #8b0005;
    text-decoration: none;
    transition: color 0.3s;
}

.film-item h3 a:hover {
    color: #a80006;
}

@media (max-width: 600px) {
  .alphabet-filter {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
}

.tag-cloud-wrapper {
  text-align: center;
  margin: 40px 0;
}

.tag-cloud-wrapper h2 {
  color: #f5f5f5;
  margin-bottom: 20px;
  font-size: 24px;
}

.tag-cloud {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #222 20%, #111 100%);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.5), 0 0 10px rgba(255, 0, 0, 0.3);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.tag-cloud-link {
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s, color 0.2s;
}

.tag-cloud-link:hover {
  transform: scale(1.2);
  text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

/* === Burger menu Ciné-Horreur === */
#burger-toggle {
  background: none;
  border: none;
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger-icon {
  width: 25px;
  height: 3px;
  background-color: #8b0005;
  border-radius: 2px;
  transition: background-color 0.3s;
}

#burger-toggle:hover .burger-icon {
  background-color: #a80006;
}

.burger-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #111;
  padding: 20px;
  z-index: 10000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.burger-menu.open {
  display: flex;
  animation: fadeInDown 0.3s ease forwards;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.burger-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.burger-menu li a {
  display: inline-block;
  background-color: #222;
  color: #f5f5f5;
  padding: 8px 12px;
  border-radius: 5px;
  font-family: 'Englebert', sans-serif;
  font-size: 1.1em;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.burger-menu li a:hover {
  background-color: #8b0005;
  color: #fff;
}

.containertest {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  display: flex;
  gap: 40px;
}
.containertest .gauche {
  flex: 3;
  width: 75%; /* facultatif mais ça aide parfois */
}

.containertest .gauche .swiper-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}

.containertest .gauche .swiper-wrapper {
  display: flex;
}

.containertest .gauche .swiper-slide {
  flex: 0 0 20%;
  max-width: 20%;
  box-sizing: border-box;
  margin: 0 4px;
  padding: 0;
}

.containertest .gauche .swiper-slide img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .containertest .gauche .swiper-slide {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.swiper-button-prev,
.swiper-button-next {
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: background-color 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: #8b0005;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 24px;
  color: white;
}



.containertest .droite {
  flex: 1;
  max-width: 340px;
  margin-left: auto;
  align-self: flex-start; /* aligne le haut avec la colonne gauche */
}



.containertest .droite h2 {
  text-align: center;
  font-size: 20px;
  color: #f5f5f5;
  margin-bottom: 16px;
  font-weight: bold;
  position: relative;
}

.containertest .tag-cloud {
  max-width: 100%;
  background: #1c1c1c;
  padding: 20px;
  border-radius: 16px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 0, 0, 0.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  border: 1px solid #333;
}

.containertest .tag-cloud a:hover {
  transform: scale(1.2);
  color: #ff0000;
  text-shadow: 0 0 5px rgba(255, 0, 0, 0.4);
}

.swiper-button-prev::after {
  content: '‹'; /* chevron gauche */
  font-size: 24px;
  color: white;
}

.swiper-button-next::after {
  content: '›'; /* chevron droit */
  font-size: 24px;
  color: white;
}

.auth-textarea {
    width: 100%;
    min-height: 160px;
    padding: 10px;
    margin: 10px 0;
    background: #111;
    color: #eee;
    border: 1px solid #444;
    border-radius: 4px;
    font-family: 'Englebert', sans-serif;
    font-size: 16px;
    resize: vertical;
}

.entry-content p {
  margin: 0 0 12px 0;
}

.entry-content table {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-spacing: 10px;
  border-collapse: separate;
}

.entry-content p + table {
  margin-top: 0 !important;
}

/* Supprime l'espace entre image et bord du <td> */
.entry-content table td {
  padding: 0;
}

/* Corrige le rendu vertical des images dans les cellules */
.entry-content table img {
  display: block;
}

.tag-badge {
  display: inline-block;
  margin: 5px 6px 5px 0;
  padding: 5px 12px;
  background-color: #a30000;
  color: #fff;
  border-radius: 15px;
  font-size: 0.85em;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.tag-badge:hover {
  background-color: #c30000;
}

.menu-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1rem;
}

.menu-col {
  flex: 1 1 150px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-col li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .menu-columns {
    flex-direction: column;
  }
}
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #8b0005;  /* fond rouge sombre */
  color: #fff;                /* flèche blanche */
  border: none;               /* pas de bord natif */
  border-radius: 50%;         /* rond */
  width: 45px;
  height: 45px;
  display: none; 
  font-size: 22px;
  cursor: pointer;
  z-index: 9999;

  /* supprime l’aspect bouton natif */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* centrer la flèche */
  display: flex;
  align-items: center;
  justify-content: center;

  transition: background-color 0.3s, transform 0.2s;
}

#backToTop:hover {
  background-color: #a80006;  /* rouge plus clair au survol */
  transform: scale(1.1);
}

#backToTop:focus {
  outline: none;  /* enlève le halo bleu au clic */
}

