/*
Theme Name: Fvf
Description: Thème site web Feu Vert Franchise
Author: Jérôme Lafforgue
Author URI: https://www.inasoft.fr
Template: Divi
Version: 1.0
*/
/* ==========================================================
   VARIABLES GLOBALES
   ========================================================== */
/* Couleurs */
/* UI */
/* Overlay */
/* Z-index */
/* ==========================================================
   LAYOUT GLOBAL
   ========================================================== */
body.fv-modal-open {
  overflow: hidden;
}
/* ==========================================================
   FV – MODAL VIDEO
   ========================================================== */
.fv-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}
.fv-modal.is-open {
  display: block;
}
.fv-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.fv-modal-dialog {
  position: relative;
  width: 90%;
  max-width: 900px;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  background: #000;
  border-radius: 15px;
  overflow: hidden;
}
.fv-modal-video {
  position: relative;
  padding-top: 56.25%;
}
.fv-modal-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.fv-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.4s ease;
}
.fv-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
}
.cookies-table {
  width: 100%;
  max-width: 900px;
  margin: 25px 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15px;
  color: #333;
}
.cookies-table th,
.cookies-table td {
  border: 1px solid #e5e5e5;
  padding: 12px;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}
.cookies-table th {
  background: #f7f7f7;
  font-weight: 600;
}
.cookies-table th:nth-child(1),
.cookies-table td:nth-child(1) {
  width: 25%;
}
.cookies-table th:nth-child(2),
.cookies-table td:nth-child(2) {
  width: 25%;
}
.cookies-table th:nth-child(3),
.cookies-table td:nth-child(3) {
  width: 30%;
}
.cookies-table th:nth-child(4),
.cookies-table td:nth-child(4) {
  width: 20%;
}
@media (max-width: 768px) {
  .cookies-table {
    font-size: 14px;
  }
  .cookies-table th,
  .cookies-table td {
    padding: 10px;
  }
}
@media (max-width: 480px) {
  .cookies-table {
    display: block;
    overflow-x: auto;
  }
  .cookies-table th,
  .cookies-table td {
    white-space: nowrap;
  }
}
/* ==========================================================
   TITRES
   ========================================================== */
h1,
h2 {
  position: relative;
  margin-bottom: 20px;
}
h1::before,
h2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 3px;
  background: #00AC45;
  border-radius: 15px;
}
h1.text-center::before,
h2.text-center::before {
  left: 50%;
  transform: translateX(-50%);
}
/* ==========================================================
   RESETS DIVI
   ========================================================== */
.nav li ul {
  width: auto;
}
.et_mobile_menu .sub-menu li,
#top-menu li .sub-menu li {
  border: none !important;
}
#page-container {
  overflow-y: visible !important;
}
/* ===============================
   PAGINATION – WP Pagenavi
================================ */
.wp-pagenavi {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 60px 0 40px;
  font-size: 16px;
}
.wp-pagenavi a,
.wp-pagenavi span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}
.wp-pagenavi a {
  background: #f3f5f4;
  color: #1b3d33;
}
.wp-pagenavi a:hover {
  background: #0f6b46;
  color: #fff !important;
  transform: translateY(-2px);
}
.wp-pagenavi .current {
  background: #06bb4e;
  color: #fff !important;
  font-weight: 600;
}
.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink {
  font-weight: 600;
}
@media (max-width: 768px) {
  .wp-pagenavi {
    gap: 6px;
    margin: 40px 0 30px;
    font-size: 14px;
  }
  .wp-pagenavi a,
  .wp-pagenavi span {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 13px;
  }
  .wp-pagenavi .pages,
  .wp-pagenavi .last {
    display: none;
  }
}
@media (max-width: 576px) {
  .wp-pagenavi {
    gap: 4px;
    margin: 30px 0 20px;
    font-size: 12px;
  }
  .wp-pagenavi .page,
  .wp-pagenavi .current,
  .wp-pagenavi .extend {
    display: none;
  }
}
