/* =========================================================
   Lenergy Holding — Enrichissement footer CAC40
   Extension de main.css — variables --green, --orange, --yellow
   ========================================================= */

/* ======== MODAL CONTACT ======== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(14, 20, 24, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  background: var(--dark-2, #1A2128);
  border: 1px solid rgba(91,162,45,0.2);
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  padding: 40px;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.3s ease;
  color: #fff;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.06); border: none; cursor: pointer;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; color: rgba(255,255,255,0.6); font-size: 1.1rem;
  transition: all 0.25s ease;
}
.modal-close:hover { background: rgba(239,68,68,0.15); color: #ef4444; }
.modal-title { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.modal-subtitle { font-size: 0.88rem; color: rgba(255,255,255,0.55); margin-bottom: 28px; }

.contact-form .form-group { margin-bottom: 18px; }
.contact-form label { display: block; font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.7); margin-bottom: 7px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 12px 16px; font-size: 0.92rem; color: #fff;
  font-family: 'Poppins', sans-serif; outline: none; transition: border-color 0.25s;
  appearance: none; -webkit-appearance: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.25); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--green-vif, #7BC142); background: rgba(91,162,45,0.05); }
.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2382858E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
  cursor: pointer; background-color: rgba(255,255,255,0.06);
}
.contact-form textarea { resize: vertical; min-height: 100px; }

.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-label {
  display: flex; align-items: center; gap: 7px; font-size: 0.88rem;
  color: rgba(255,255,255,0.7); cursor: pointer; padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; transition: all 0.25s;
}
.radio-label input[type="radio"] { width: auto; border: none; padding: 0; accent-color: var(--green-vif); cursor: pointer; }
.radio-label:has(input:checked) { border-color: var(--green-vif); background: rgba(91,162,45,0.1); color: #fff; }
.radio-label:hover { border-color: rgba(91,162,45,0.4); }

.btn-submit {
  width: 100%; background: var(--green, #5BA22D); color: #fff; border: none;
  border-radius: 10px; padding: 14px; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; font-family: 'Poppins', sans-serif; transition: all 0.25s; margin-top: 6px;
}
.btn-submit:hover { background: var(--green-vif, #7BC142); transform: translateY(-1px); }

.form-success { display: none; text-align: center; padding: 32px 0; }
.form-success.show { display: block; }
.form-success-icon { width: 56px; height: 56px; background: rgba(16,185,129,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.form-success h3 { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.form-success p { font-size: 0.9rem; color: rgba(255,255,255,0.6); }

/* ======== FOOTER ENRICHI HOLDING ======== */
.footer {
  /* enrichissement du footer existant sans casser la structure */
}

/* Footer enrichi 6 colonnes — remplace le grid actuel */
.footer-grid-rich {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 0;
}

.footer-grid-rich .fc h5 {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--yellow, #F0A82E);
  margin-bottom: 18px;
}

.footer-grid-rich .fc a,
.footer-grid-rich .fc p {
  display: block;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.52);
  padding: 3px 0;
  line-height: 1.6;
  transition: color 0.25s;
  text-decoration: none;
}
.footer-grid-rich .fc a:hover { color: var(--green-vif, #7BC142); }

.footer-grid-rich .fc.fc-brand .footer-logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 12px;
  display: block;
}

.footer-grid-rich .fc.fc-brand p {
  max-width: 240px;
  margin-bottom: 20px;
  font-size: 0.84rem;
}

/* Bouton contact */
.btn-footer-contact-holding {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green, #5BA22D);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.25s;
  margin-bottom: 22px;
  text-decoration: none;
}
.btn-footer-contact-holding:hover { background: var(--green-vif, #7BC142); transform: translateY(-1px); }

/* Réseaux sociaux holding */
.footer-social-holding {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.footer-social-holding a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  transition: all 0.25s;
  text-decoration: none;
}
.footer-social-holding a:hover { background: var(--green, #5BA22D); border-color: var(--green); }
.footer-social-holding svg { width: 14px; height: 14px; fill: rgba(255,255,255,0.6); transition: fill 0.25s; }
.footer-social-holding a:hover svg { fill: #fff; }

/* Newsletter holding */
.footer-newsletter-holding p { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.newsletter-form-holding {
  display: flex; gap: 6px;
}
.newsletter-form-holding input {
  flex: 1; min-width: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; padding: 8px 12px;
  font-size: 0.8rem; color: #fff; font-family: 'Poppins', sans-serif; outline: none;
}
.newsletter-form-holding input::placeholder { color: rgba(255,255,255,0.25); }
.newsletter-form-holding input:focus { border-color: var(--green-vif); }
.newsletter-form-holding button {
  background: var(--green); color: #fff; border: none; border-radius: 6px;
  padding: 8px 12px; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  font-family: 'Poppins', sans-serif; transition: background 0.25s;
}
.newsletter-form-holding button:hover { background: var(--green-vif); }

/* Footer bottom enrichi */
.footer-bot-rich {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0 4px;
}
.footer-bot-rich .footer-legal {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px;
}
.footer-bot-rich .footer-legal span,
.footer-bot-rich .footer-legal a {
  font-size: 0.76rem; color: rgba(255,255,255,0.35);
}
.footer-bot-rich .footer-legal a:hover { color: var(--green-vif); }
.footer-bot-rich .footer-legal .sep { color: rgba(255,255,255,0.15); }

.footer-bot-rich .footer-right {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.a11y-controls { display: flex; gap: 5px; }
.a11y-btn {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5); font-size: 0.74rem; padding: 4px 8px;
  border-radius: 5px; cursor: pointer; font-family: 'Poppins', sans-serif; transition: all 0.25s;
}
.a11y-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }
.footer-lang-holding {
  font-size: 0.76rem; color: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.1); padding: 4px 9px; border-radius: 5px;
  background: transparent; cursor: pointer; font-family: 'Poppins', sans-serif;
}
.footer-credit-holding { font-size: 0.72rem; color: rgba(255,255,255,0.3); }
.footer-credit-holding strong { color: var(--green-vif); }

/* Pages légales et blog — holding */
.legal-page-holding {
  padding-top: 96px;
  padding-bottom: 80px;
  min-height: 100vh;
  background: var(--paper, #FFFEFA);
}
.legal-page-holding .legal-header {
  text-align: center;
  margin-bottom: 48px;
}
.legal-page-holding .legal-header .section-tag-holding {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--green, #5BA22D);
  background: rgba(91,162,45,0.07);
  border: 1px solid rgba(91,162,45,0.2);
  padding: 5px 14px; border-radius: 100px; margin-bottom: 14px;
}
.legal-page-holding .legal-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--ink, #0F1115); margin-bottom: 10px;
}
.legal-page-holding .legal-header p { font-size: 0.9rem; color: var(--ink-faded, #82858E); }

.legal-content-holding {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line, #E8E5DD);
  border-radius: 16px;
  padding: 48px;
}
.legal-content-holding h2 {
  font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-top: 32px; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.legal-content-holding h2:first-child { margin-top: 0; }
.legal-content-holding p, .legal-content-holding li {
  font-size: 0.9rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: 8px;
}
.legal-content-holding ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.legal-content-holding a { color: var(--green); text-decoration: underline; }
.legal-content-holding strong { color: var(--ink); font-weight: 600; }
.legal-todo-holding { color: var(--orange, #E8741C); font-style: italic; }

/* Blog holding */
.blog-page-holding {
  padding-top: 96px;
  padding-bottom: 80px;
  background: var(--paper, #FFFEFA);
}
.blog-header-holding { text-align: center; margin-bottom: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.blog-header-holding h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.blog-header-holding p { color: var(--ink-faded); font-size: 1rem; }

.blog-filters-holding {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 36px;
}
.blog-search-holding {
  flex: 1; min-width: 200px; max-width: 280px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 14px; font-size: 0.88rem;
  color: var(--ink); font-family: 'Poppins', sans-serif; outline: none;
  transition: border-color 0.25s;
}
.blog-search-holding:focus { border-color: var(--green); }
.filter-btn-holding {
  padding: 7px 14px; border-radius: 6px; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; border: 1px solid var(--line); background: #fff;
  color: var(--ink-soft); font-family: 'Poppins', sans-serif; transition: all 0.25s;
}
.filter-btn-holding:hover, .filter-btn-holding.active {
  background: var(--green); border-color: var(--green); color: #fff;
}

.blog-grid-holding {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px;
}
.article-card-holding {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; transition: all 0.25s; display: flex; flex-direction: column;
}
.article-card-holding:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-3px); border-color: rgba(91,162,45,0.3); }
.article-img-placeholder-holding {
  width: 100%; aspect-ratio: 16/9;
  background: var(--paper-alt, #F6F4ED);
  display: flex; align-items: center; justify-content: center;
}
.article-body-holding { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.article-meta-holding { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.article-cat-holding {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--green); background: rgba(91,162,45,0.08); border: 1px solid rgba(91,162,45,0.2);
  padding: 3px 9px; border-radius: 100px;
}
.article-date-holding { font-size: 0.76rem; color: var(--ink-faded); }
.article-title-holding { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; line-height: 1.4; }
.article-excerpt-holding { font-size: 0.83rem; color: var(--ink-soft); line-height: 1.65; flex: 1; margin-bottom: 18px; }
.article-footer-holding { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.article-author-holding { font-size: 0.76rem; color: var(--ink-faded); }
.article-author-holding strong { color: var(--ink-soft); }
.article-read-more-holding { font-size: 0.8rem; font-weight: 600; color: var(--green); transition: color 0.25s; }
.article-read-more-holding:hover { color: var(--green-vif); }

/* Responsive enrichi */
@media (max-width: 1100px) {
  .footer-grid-rich { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 768px) {
  .footer-grid-rich { grid-template-columns: 1fr 1fr; gap: 24px; }
  .blog-grid-holding { grid-template-columns: 1fr; }
  .legal-content-holding { padding: 24px 18px; }
  .footer-bot-rich { flex-direction: column; align-items: flex-start; }
  .modal-box { padding: 24px 18px; }
}
@media (max-width: 480px) {
  .footer-grid-rich { grid-template-columns: 1fr; }
}
