﻿/* Styles généraux */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100vw;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Oxanium", cursive;
  color: white;
  text-align: center;
  font-size: 15px;
  margin: 0;
  padding: 0;
  background: white;
  position: relative;
}

/* Ligne en haut du header */
.header-top-line {
  width: 100%;
  height: 10px;
  background: linear-gradient(to right, #ffb6c1, #d8b4f8);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 12;
}

/* Header */
header {
  width: 100%;
  max-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  padding: 8px 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7);
  position: absolute;
  left: 0;
  z-index: 11;
}

/* Background GIF */
.background {
  background: url("../images/background.gif") no-repeat center center/cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
}

/* Background vidéo Index */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
}

.video-background video {
  position: absolute;
  top: 55%;
  left: 50%;
  min-width: 100vw;
  min-height: 100vh;
  width: auto;
  height: auto;
  object-fit: cover;
  transform: translate(-50%, -50%);
  filter: brightness(1);
}

@media screen and (max-width: 768px) {
  .video-background video {
    width: auto;
    height: 100vh;
  }
}

/* Logo Home */
.header-logo {
  width: 150px;
  height: auto;
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
  margin-top: 10px;
}

.header-logo:hover {
  transform: scale(1.1);
  filter: drop-shadow(0px 0px 10px rgba(255, 105, 180, 0.9));
}

/* Navigation */
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-container a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.nav-container img {
  width: 150px;
  height: auto;
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.nav-container a:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0px 0px 10px rgba(255, 105, 180, 0.9));
}

/* Logo principal */
.logo-container {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-main {
  width: 280px;
}

.logo-subtitle {
  width: 240px;
}

/* Articles Index */
.article-title-container {
  text-align: center;
  margin-top: 180px;
}

.article-title-container img {
  width: 480px;
  max-width: 90%;
  height: auto;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  width: 100%;
  margin-bottom: 50px;
}

.article-container {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
}

.article-card {
  width: 300px;
  height: 400px;
  border: 1px solid #ffa500;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.9);
}

.emoji-pin {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%) rotate(-25deg);
  font-size: 1.8rem;
  z-index: 99;
  pointer-events: none;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

.article-card:hover {
  box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.9);
}

.article-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease-in-out;
}

.article-card:hover img {
  filter: blur(5px);
}

.article-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.article-card:hover .overlay {
  opacity: 1;
}

.article-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
  color: white;
  display: block;
}

.overlay hr {
  width: 50%;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 5px 0;
}

.article-description {
  font-size: 14px;
  color: rgb(216, 192, 119, 0.8);
  font-weight: normal;
  text-align: center;
}

/* Articles Page */
.main-content .articles {
  margin-top: 20px;
}

.article-page-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  padding: 20px;
}

.no-articles {
  color: #ffb6c1;
  font-size: 28px;
}

.article-title-color {
  color: #ffb6c1;
  margin-top: 120px;
}

.article-page-card {
  width: 300px;
  height: 400px;
  border: 1px solid #ffa500;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  box-shadow: 5px 5px 15px rgba(169, 140, 107, 0.8);
}

.article-page-card:hover {
  box-shadow: 5px 5px 30px rgba(169, 140, 107, 0.8);
}

.article-page-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease-in-out;
}

.article-page-card:hover img {
  filter: blur(5px);
}

.article-page-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 2;
}

.article-page-card:hover .overlay {
  opacity: 1;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.pagination .page-item {
  margin: 0 5px;
}

.pagination .page-link {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.pagination .page-link:hover {
  background: rgba(255, 255, 255, 0.4);
  color: #ffdb70;
}

.pagination .active .page-link {
  background: #ffdb70;
  color: black;
  font-weight: bold;
  border-color: #9d90de;
  pointer-events: none;
}

@media (max-width: 768px) {
  .pagination {
    flex-wrap: wrap;
    gap: 8px;
  }
  .pagination .page-link {
    padding: 6px 10px;
    font-size: 14px;
  }
}

/* Article Page */
.video-article {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
}

.video-article video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100vw;
  min-height: 100vh;
  width: auto;
  height: auto;
  object-fit: cover;
  transform: translate(-50%, -50%);
  filter: brightness(1);
}

@media screen and (max-width: 768px) {
  .video-article video {
    width: auto;
    height: 100vh;
  }
}

.article-content {
  width: 900px;
  margin: 50px auto;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.5);
  position: relative;
}

.article-content::before {
  content: "";
  display: block;
  width: 100%;
  height: 30px;
  background: linear-gradient(to right, #ff91a4, #ffb6c1);
  border-radius: 10px 10px 0px 0px;
  position: absolute;
  top: 0;
  left: 0;
}

.window-buttons {
  display: flex;
  gap: 6px;
  position: absolute;
  top: 10px;
  left: 10px;
}

.window-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: gray;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease-in-out;
}

.window-button:nth-child(1) {
  background: #ff5f56;
}

.window-button:nth-child(2) {
  background: #ffbd2e;
}

.window-button:nth-child(3) {
  background: #27c93f;
}

.article-content-inner {
  padding: 40px 25px 20px;
}

.article-content img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  display: block;
}

.article-content p,
.article-content ul,
.article-content ol {
  font-size: 1.2em;
  text-align: left;
  margin-bottom: 10px;
}

.article-content h2 {
  text-align: center;
}

.article-content-inner .article-title {
  font-size: 24px;
  margin-top: 5px;
}

.article-meta {
  text-align: right;
  font-size: 0.9em;
  color: rgb(216, 192, 119);
  margin-bottom: 15px;
}

.like-container {
  text-align: center;
  margin-top: 25px;
}

.article-like-btn, .photo-like-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  color: white; 
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
}

.article-like-btn .heart, .photo-like-btn .heart {
  transition: color 0.3s ease-in-out;
  font-size: 1.5em;
}

.article-like-btn:hover, .photo-like-btn:hover {
  transform: scale(1.2);
}

.photo-like-btn {
  margin-top: 20px;
}

.like-count {
  font-size: 1.2em;
}

/* Gallery Page */
.title-container {
  text-align: center;
  margin-top: 180px;
}

@media (max-width: 1920px) {
  .title-container {
    margin-top: 125px;
  }
}

.title-container img {
  width: 480px;
  max-width: 90%;
  height: auto;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(500px, 1fr));
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
  padding: 0 50px;
  width: 100%;
}

.no-pictures {
  color: #ffb6c1;
  font-size: 28px;
}

.gallery-card {
  width: 98%;
  height: 300px;
  border-radius: 15px;
  border: 1px solid #ffa500;
  overflow: hidden;
  position: relative;
  box-shadow: 5px 5px 10px rgba(169, 140, 107, 0.8);
  transition: transform 0.3s ease-in-out;
}

.gallery-card:hover {
  box-shadow: 5px 5px 30px rgba(169, 140, 107, 0.8);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center 25%;
}

.gallery-card:hover img {
  transform: scale(1.1);
}

.gallery-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px;
  text-align: center;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.gallery-card:hover .overlay {
  opacity: 1;
}

@media (max-width: 1024px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-container {
    grid-template-columns: 1fr;
  }
}

.photo-title {
  font-size: 12px;
  font-weight: bold;
}

/* Modal Gallery */
.photo-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.modal-content {
  max-width: 80%;
  max-height: 80%;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.3);
}

@media screen and (max-width: 90vw), (max-height: 90vh) {
  .modal-content {
    max-width: 50%;
    max-height: 50%;
  }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3em;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.close-modal:hover {
  transform: scale(1.2);
}

.modal-nav {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
}

.prev,
.next {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background 0.3s;
}

.prev:hover,
.next:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Footer */
footer {
  position: fixed;
  left: 20px;
  bottom: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: rgb(216, 192, 119);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  text-align: center;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7);
  z-index: 100;
  transition: opacity 0.3s ease-in-out;
  min-width: 180px;
}

.cookie-banner {
  position: fixed;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: rgb(216, 192, 119);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
  transition: opacity 0.3s ease-in-out;
  opacity: 1;
  visibility: visible;
  z-index: 12;
}

.btn-cookie {
  background: #a9618d;
  border: none;
  color: white;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease-in-out;
}

.btn-cookie:hover {
  background: #ff91a4;
}

.cookie-banner.hide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* 404 */
.middle-text {
  font-size: 28px;
  text-align: center;
  margin-top: 150px;
  color: white;
}

/* Responsive */
@media only screen and (min-width: 360px) and (max-width: 768px) {
  .header-logo {
    width: 80px;
    margin-top: 10px;
  }

  .nav-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .nav-container img {
    width: 80px;
  }

  .logo-container {
    top: 80px;
  }

  .logo-main {
    width: 200px;
  }

  .logo-subtitle {
    width: 160px;
    margin: 5px auto;
  }

  .main-content {
    max-width: 768px;
  }

  .article-container {
    max-width: 768px;
    margin-top: 90px;
  }

  .article-card {
    width: 160px;
    height: 210px;
  }

  .article-page-card {
    width: 150px;
    height: 200px;
  }

  .article-title {
    font-size: 20px;
  }

  .article-title-color {
    margin-top: 210px;
  }

  .article-description {
    font-size: 16px;
  }

  .title-container {
    margin-top: 260px;
  }

  .article-title-container {
    margin-top: 210px;
  }

  .article-content {
    width: 360px;
    margin-top: 110px;
  }

  .cookie-banner {
    opacity: 0;
    pointer-events: none;
  }

  .btn-cookie {
    opacity: 0;
    pointer-events: none;
  }

  footer {
    opacity: 0;
    pointer-events: none;
  }
}

@media screen and (min-width: 768px) {
  .header-logo {
    width: 120px;
    margin-top: 10px;
  }

  .nav-container img {
    width: 120px;
  }

  .logo-container {
    top: 120px;
  }

  .logo-main {
    width: 300px;
  }

  .logo-subtitle {
    width: 240px;
  }

  .main-content {
    max-width: 1920px;
    margin: 40px auto 0 auto;
  }

  .article-container {
    max-width: 1920px;
    gap: 25px;
    margin-top: 90px;
  }

  .article-card {
    width: 300px;
    height: 400px;
  }

  .article-page-container {
    gap: 25px;
  }

  .article-page-card {
    width: 300px;
    height: 400px;
  }

  .article-title {
    font-size: 20px;
  }

  .article-title-color {
    margin-top: 210px;
  }

  .article-description {
    font-size: 16px;
  }

  .title-container {
    margin-top: 260px;
  }

  .article-title-container {
    margin-top: 260px;
  }

  .article-content {
    width: 780px;
    margin-top: 110px;
  }

  .cookie-banner {
    padding: 6px 10px;
    font-size: 10px;
    right: 1%;
  }

  .btn-cookie {
    padding: 6px 8px;
    font-size: 10px;
  }

  footer {
    left: 25px;
    bottom: 8px;
    padding: 6px 8px;
    font-size: 10px;
  }
}

@media screen and (min-width: 1920px) {
  .header-logo {
    width: 150px;
    margin-top: 10px;
  }

  .nav-container img {
    width: 160px;
  }

  .logo-container {
    top: 120px;
  }

  .logo-main {
    width: 300px;
  }

  .logo-subtitle {
    width: 240px;
  }

  .main-content {
    max-width: 1400px;
    margin: 40px auto 0 auto;
  }

  .article-container {
    max-width: 1300px;
    gap: 25px;
    margin-top: 90px;
  }

  .article-card {
    width: 300px;
    height: 400px;
  }

  .article-page-container {
    gap: 25px;
  }

  .article-page-card {
    width: 290px;
    height: 390px;
  }

  .article-title {
    font-size: 20px;
  }

  .article-title-color {
    margin-top: 210px;
  }

  .article-description {
    font-size: 16px;
  }

  .title-container {
    margin-top: 260px;
  }

  .article-title-container {
    margin-top: 260px;
  }

  .article-content {
    width: 900px;
    margin-top: 110px;
  }

  .cookie-banner {
    padding: 6px 10px;
    font-size: 10px;
    transform: translateX(-50%);
    right: 29%;
  }

  .btn-cookie {
    padding: 10px 12px;
    font-size: 10px;
  }

  footer {
    left: 25px;
    bottom: 8px;
    padding: 6px 8px;
    font-size: 10px;
  }
}

@media screen and (min-width: 2560px) {
  .header-logo {
    width: 210px;
    margin-top: 10px;
  }

  .nav-container img {
    width: 210px;
  }

  .logo-container {
    top: 160px;
  }

  .logo-main {
    width: 350px;
  }

  .logo-subtitle {
    width: 300px;
  }

  .main-content {
    max-width: 1800px;
    margin: 140px auto 0 auto;
  }

  .article-container {
    max-width: 1800px;
    gap: 30px;
    margin-top: 65px;
  }

  .article-card {
    width: 400px;
    height: 500px;
  }

  .article-page-container {
    gap: 30px;
  }

  .article-page-card {
    width: 400px;
    height: 500px;
  }

  .article-title {
    font-size: 22px;
  }

  .article-title-color {
    margin-top: 80px;
  }

  .article-description {
    font-size: 18px;
  }

  .title-container {
    margin-top: 350px;
  }

  .article-title-container {
    margin-top: 350px;
  }

  .article-content {
    width: 1200px;
    margin-top: 50px;
  }

  .middle-text {
    margin-top: 200px;
  }

  .cookie-banner {
    padding: 10px 15x;
    font-size: 14px;
    transform: translateX(-50%);
    right: 29%;
  }

  .btn-cookie {
    padding: 10px 12px;
    font-size: 14px;
  }

  footer {
    left: 25px;
    bottom: 8px;
    padding: 10px 15px;
    font-size: 14px;
  }
}
