/* Styles spécifiques pour la page de contenu */
.page-header {
  padding: 3rem 0 2rem;
  text-align: center;
}

.page-title {
  color: var(--primary);
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.post-date {
  color: var(--secondary);
  font-size: 0.95rem;
  font-weight: normal;
  margin-bottom: 2rem;
  display: block;
}

.featured-image {
  max-height: 400px;
  overflow: hidden;
  margin-bottom: 3rem;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.content-area {
  padding: 0 0 4rem 0;
}

.content-wrapper {
  display: flex;
  gap: 3rem;
}

.main-content {
  flex: 2;
}

.sidebar {
  flex: 1;
  position: sticky;
  top: 4rem;
  align-self: flex-start;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.toc-container {
  background-color: var(--primary-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.toc-title {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  margin-bottom: 0.75rem;
}

.toc-item a {
  color: var(--text-color);
  text-decoration: none;
  display: block;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.toc-item a:hover,
.toc-item a.active {
  background-color: rgba(255, 255, 255, 0.5);
  color: var(--primary);
}

.toc-item a.active {
  font-weight: 600;
}

.breadcrumbs {
  margin-bottom: 1rem;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs i {
  font-size: 0.8rem;
}

/* Page Receipt */

.page-receipt {
  max-width: var(--container-width);
  margin: 1rem auto;
}

/* Styles pour les blocs Gutenberg */
.wp-block-heading {
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.wp-block-heading.is-style-h2 {
  font-size: 2rem;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.5rem;
}

.wp-block-heading.is-style-h3 {
  font-size: 1.5rem;
}

.wp-block-heading.is-style-h4 {
  font-size: 1.25rem;
}

.wp-block-paragraph {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.wp-block-image {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
}

.wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.wp-block-image figcaption {
  font-size: 0.9rem;
  text-align: center;
  color: var(--secondary);
  padding: 0.5rem 0;
}

.wp-block-quote {
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  margin-left: 0;
  margin-right: 0;
  font-style: italic;
  margin: 2rem 0;
}

.wp-block-quote p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--primary);
}

.wp-block-quote cite {
  font-size: 0.9rem;
  color: var(--secondary);
  font-style: normal;
}

.wp-block-list {
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}

.wp-block-list li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

/* Bloc Info */
.wp-block-info {
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
}

.wp-block-info .title {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wp-block-info .content {
  color: var(--text-color);
}

/* Bloc FAQ */
.wp-block-faq {
  margin: 2rem 0;
}

.wp-block-faq .faq-item {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.wp-block-faq .faq-question {
  font-weight: 600;
  color: var(--primary);
  padding: 1rem 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wp-block-faq .faq-question:hover {
  color: var(--accent);
}

.wp-block-faq .faq-answer {
  padding: 0 0 1rem;
  color: var(--text-color);
  display: none;
}

.wp-block-faq .faq-item.active .faq-answer {
  display: block;
}

/* Bloc CTA */
.wp-block-cta {
  background-color: var(--primary-light);
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  margin: 3rem 0;
}

.wp-block-cta h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.wp-block-cta p {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Articles associés dans la sidebar */
.sidebar-widget {
  margin-bottom: 2.5rem;
}

.sidebar-widget-title {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.sidebar-posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-post {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-post-image {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-post-content {
  flex: 1;
}

.sidebar-post-title {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-post-meta {
  color: var(--secondary);
  font-size: 0.8rem;
}

/* Pagination des articles */
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.post-navigation-link {
  max-width: 48%;
  display: flex;
  flex-direction: column;
}

.post-navigation-link.prev {
  padding-right: 1rem;
}

.post-navigation-link.next {
  text-align: right;
  padding-left: 1rem;
}

.post-navigation-direction {
  color: var(--secondary);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-navigation-title {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-navigation-title:hover {
  color: var(--accent);
}

/* Auteur */
.author-box {
  margin-top: 3rem;
  display: flex;
  gap: 2rem;
  padding: 2rem;
  background-color: var(--primary-light);
  border-radius: 12px;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  flex: 1;
}

.author-name {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.author-bio {
  color: var(--text-color);
  margin-bottom: 1rem;
}

.author-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.author-link:hover {
  text-decoration: underline;
}

/* Bouton de retour en haut */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--primary);
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
}

.back-to-top:hover {
  background-color: var(--accent);
}

/* Tags */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tag:hover {
  background-color: var(--primary);
  color: white;
}

/* Media queries */
@media (max-width: 1024px) {
  .content-wrapper {
    flex-direction: column;
  }

  .sidebar {
    position: static;
    margin-top: 2rem;
    max-height: none;
    overflow: visible;
    order: -1;
  }

  .toc-container {
    position: relative;
  }

  .featured-image {
    max-height: 300px;
  }

  .page-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 2rem 0 1.5rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .featured-image {
    max-height: 200px;
    margin-bottom: 2rem;
  }

  .post-navigation {
    flex-direction: column;
    gap: 1.5rem;
  }

  .post-navigation-link {
    max-width: 100%;
  }

  .post-navigation-link.next {
    text-align: left;
    padding-left: 0;
  }

  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
}

/* Bloc Code - Style amélioré */
.wp-block-code {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1.25rem;
  margin: 2rem 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--accent);
}

.wp-block-code::before {
  content: "Code";
  position: absolute;
  top: -10px;
  left: 12px;
  background-color: var(--accent);
  color: white;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.wp-block-code pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
  overflow-x: auto;
}

.wp-block-code code {
  font-family: "Courier New", Courier, monospace;
}

/* Ajout de styles pour la coloration syntaxique */
.wp-block-code .keyword {
  color: #0033b3;
  font-weight: bold;
}

.wp-block-code .string {
  color: #067d17;
}

.wp-block-code .comment {
  color: #8c8c8c;
  font-style: italic;
}

.wp-block-code .function {
  color: #7d5bbe;
}

.wp-block-code .variable {
  color: #871094;
}

/* Version responsive du bloc code */
@media (max-width: 768px) {
  .wp-block-code {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .wp-block-code pre {
    font-size: 0.85rem;
  }
}

/* Style pour les blocs de code inline */
code {
  background-color: #f0f0f0;
  padding: 2px 5px;
  border-radius: 3px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9em;
  color: var(--primary);
  border: 1px solid #e0e0e0;
}

/* Ajout d'une barre de défilement personnalisée pour les blocs de code */
.wp-block-code pre::-webkit-scrollbar {
  height: 6px;
  background-color: #f0f0f0;
}

.wp-block-code pre::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 10px;
}

.wp-block-code pre::-webkit-scrollbar-track {
  background-color: #f0f0f0;
  border-radius: 10px;
}

/* Ajout d'un bouton de copie de code */
.wp-block-code {
  position: relative;
}

.wp-block-code .copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wp-block-code:hover .copy-button {
  opacity: 1;
}

.wp-block-code .copy-button:hover {
  background-color: var(--primary-light);
}

.wp-block-code .copy-button.copied {
  background-color: #4caf50;
  color: white;
}

/* Section Articles Recommandés */
.recommended-articles {
  background-color: #f8f9fa;
  padding: 4rem 0;
  margin-top: 3rem;
}

.recommended-articles h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  font-weight: 800;
}

.recommended-articles h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.article-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.article-image {
  height: 200px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-tag {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.article-title {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.article-excerpt {
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
}

.author-avatar-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name-small {
  color: var(--secondary);
  font-size: 0.85rem;
}

.article-date {
  color: var(--secondary);
  font-size: 0.85rem;
}

.article-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: 1rem;
  transition: color 0.3s ease;
}

.article-read-more:hover {
  color: var(--primary);
}

.article-read-more i {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.article-read-more:hover i {
  transform: translateX(3px);
}

@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .recommended-articles {
    padding: 3rem 0;
  }

  .recommended-articles h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
}

/* Module */
.module-info {
  display: flex;
  flex-direction: column;
  padding: 1.5em 1.25em;
  border: 1px solid var(--primary-light);
  background-color: var(--primary-light);
  border-radius: 12px;
  margin-bottom: 2em;
}
.module-info h3,
.module-requirements h3 {
  font-size: 1.225em;
}
.module-info p {
  font-size: 0.9em;
}
.module-info a {
  margin-bottom: 1em;
}
.module-info .module-condition {
  font-size: 0.8em;
  color: var(--primary-dark);
  font-style: italic;
}

.module-requirements {
  margin: 0 0 2em;
}
.module-requirements p {
  font-size: 1.225em;
  margin: 0 0 0.8em;
  line-height: 1.2;
  color: var(--primary);
  font-weight: 700;
}
.module-requirements ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.module-requirements ul li {
  align-items: center;
  background: var(--primary-light);
  border-radius: 2px;
  display: flex;
  font-weight: 500;
  margin: 0 0.5em 0.5em 0;
  font-size: 0.8em;
}
.module-requirements ul li span {
  display: block;
  font-size: 0.875em;
  padding: 2px 8px;
}
.module-requirements ul li span:first-child {
  background-color: var(--primary);
  color: var(--white);
}

/* Section Modules Recommandés */
.recommended-modules {
  background-color: var(--primary-light);
  padding: 4rem 0;
  margin-top: 3rem;
}

.recommended-modules h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  font-weight: 800;
}

.recommended-modules h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.module-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.module-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.module-image {
  height: 200px;
  overflow: hidden;
  background-color: var(--primary-light);
}

.module-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.module-card:hover .module-image img {
  transform: scale(1.05);
}

.module-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.module-title {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.module-excerpt {
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.module-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.module-price {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
}

@media (max-width: 1024px) {
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .modules-grid {
    grid-template-columns: 1fr;
  }

  .recommended-modules {
    padding: 3rem 0;
  }

  .recommended-modules h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
}

/* Styles spécifiques pour la page archive des modules */
.page-description {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 800px;
  margin: 1rem auto 2rem;
  line-height: 1.6;
}

.header-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.header-cta .guarantee {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.header-cta .guarantee i {
  color: var(--accent);
  font-size: 1.25rem;
}

.modules-section {
  padding: 4rem 0;
  background-color: var(--primary-light);
}

.modules-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.modules-intro h2 {
  color: var(--primary);
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.modules-description {
  font-size: 1.25rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.modules-cta {
  margin-top: 4rem;
  text-align: center;
}

.modules-cta .wp-block-cta {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white);
  border: 1px solid var(--primary-light);
}

.modules-cta .wp-block-cta h3 {
  color: var(--primary);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.modules-cta .wp-block-cta p {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .page-description {
    font-size: 1.125rem;
    padding: 0 1rem;
  }

  .modules-intro h2 {
    font-size: 1.75rem;
  }

  .modules-description {
    font-size: 1.125rem;
    padding: 0 1rem;
  }

  .modules-cta .wp-block-cta h3 {
    font-size: 1.5rem;
  }

  .modules-cta .wp-block-cta p {
    font-size: 1rem;
  }
}

/* Style du CTA dans les cartes de modules */
.module-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.module-cta i {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.module-card:hover .module-cta {
  color: var(--primary);
}

.module-card:hover .module-cta i {
  transform: translateX(4px);
}

/* Styles de connexion */
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100vw;
  padding: 2rem 0;
  gap: 3vw;
  background: linear-gradient(120deg, #331f5b 0%, #6b3fa0 100%);
}

.login-logo-col {
  flex: 0 0 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  min-height: 350px;
}

.login-logo {
  max-width: 420px;
  width: 100%;
}

.login-form-col {
  flex: 0 0 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 350px;
}

.login-container {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 2.5rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.login-header h1 {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: var(--gray-600);
  font-size: 1.1rem;
}

.edd-blocks-form__group {
  margin-bottom: 1.25rem;
}

.edd-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
  font-weight: 600;
}

.edd-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}

.edd-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.edd-blocks-form__group-password {
  position: relative;
}

.edd-blocks-form__control {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-600);
  font-size: 1.25rem;
  padding: 0;
  display: flex;
  align-items: center;
  height: 2.5rem;
}

.edd-blocks-form__group-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.edd-blocks-form__group-remember input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
}

.edd-blocks-form__group-submit {
  margin-top: 0.5rem;
}

.edd-submit {
  width: 100%;
  padding: 0.875rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.edd-submit:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.edd-blocks-form__group-lost-password {
  text-align: right;
  margin-top: -1.25rem;
  margin-bottom: 1.25rem;
}

.edd-blocks-form__group-lost-password a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.98rem;
  transition: var(--transition);
}

.edd-blocks-form__group-lost-password a:hover {
  color: var(--accent);
}

.login-footer {
  text-align: center;
  font-size: 0.98rem;
  color: var(--gray-600);
}

.login-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.login-footer a:hover {
  color: var(--accent);
}

.edd-required-indicator {
  color: var(--accent);
}

@media (max-width: 900px) {
  .login-main {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
  }
  .login-logo-col,
  .login-form-col {
    min-width: 0;
    width: 100%;
    justify-content: center;
    min-height: unset;
    flex: 0 0 200px;
  }
  .login-logo {
    margin-bottom: 0;
  }
}

@media (max-width: 600px) {
  .login-main {
    padding: 0.5rem 0;
  }
  .login-logo {
    max-width: 90vw;
    max-height: 120px;
    margin: 2rem auto 2rem auto;
    display: flex;
    justify-content: center;
  }
  .login-container {
    padding: 1.5rem 0.5rem;
    max-width: 98vw;
  }
}

/* Styles pour la page Compte */
.account-main {
  display: flex;
  gap: 1rem;
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
  max-width: var(--container-width);
  margin: 0 auto;
  background: none;
}

.account-sidebar {
  flex: 0 0 220px;
  min-width: 180px;
  background: none;
  box-shadow: none;
  border: none;
  padding: 0;
  position: static;
}

.account-navigation {
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.account-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.account-menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--gray-700);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.account-menu .current-menu-item a,
.account-menu a[aria-current="page"] {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}
.account-menu a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.account-content {
  flex: 1;
  min-width: 0;
}

.account-container {
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 2rem 0;
  margin: 0;
}

/* Tableau d'abonnements épuré */
#edd_user_history {
  width: 100%;
  border-collapse: collapse;
  background: none;
  box-shadow: none;
  font-size: 0.97rem;
  margin: 0 0 2rem 0;
}
#edd_user_history thead th {
  background: none;
  color: var(--primary);
  font-weight: 700;
  text-align: left;
  padding: 0.6rem 0.5rem;
  font-size: 0.93rem;
  border-bottom: 2px solid var(--primary-light);
  text-transform: none;
  letter-spacing: 0;
}
#edd_user_history tbody tr {
  border-bottom: 1px solid var(--primary-light);
  background: none;
  transition: background 0.2s;
}
#edd_user_history tbody tr:hover {
  background: var(--primary-light);
}
#edd_user_history tbody td {
  padding: 0.6rem 0.5rem;
  border: none;
  vertical-align: middle;
  color: var(--gray-800);
}

#edd_user_history td:last-child a {
  margin: 0;
  line-height: 1.2;
  font-size: 0.93em;
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.2s;
}
#edd_user_history td:last-child a:hover {
  color: var(--accent);
}

.edd_subscription_name {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.2rem;
}
.edd_subscription_billing_cycle {
  font-size: 0.9rem;
  color: var(--gray-600);
}
.edd_subscription_status {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--primary-light);
  color: var(--primary);
}
.edd_subscription_status.active {
  background: #e6f4ea;
  color: #1e7e34;
}
.edd_subscription_status.expired {
  background: #fbe9e7;
  color: #d32f2f;
}
.edd_subscription_status.cancelled {
  background: #f5f5f5;
  color: #757575;
}
.edd_subscription_status.failing {
  background: #fff3e0;
  color: #f57c00;
}

/* Responsive : masquer colonnes non essentielles */
@media (max-width: 1024px) {
  #edd_user_history th:nth-child(4),
    #edd_user_history td:nth-child(4), /* Initial Amount */
    #edd_user_history th:nth-child(5),
    #edd_user_history td:nth-child(5)  /* Times Billed */ {
    display: none;
  }
  #edd_user_history {
    font-size: 0.9rem;
  }
  #edd_user_history thead th,
  #edd_user_history tbody td {
    padding: 0.5rem 0.3rem;
  }
}
@media (max-width: 600px) {
  #edd_user_history {
    font-size: 0.85rem;
  }
  #edd_user_history thead th,
  #edd_user_history tbody td {
    padding: 0.3rem 0.2rem;
  }
}

/* Tableau des licences EDD épuré et professionnel */
#edd_sl_license_keys {
  width: 100%;
  border-collapse: collapse;
  background: none;
  box-shadow: none;
  font-size: 0.97rem;
  margin: 0 0 2rem 0;
}
#edd_sl_license_keys thead th {
  background: none;
  color: var(--primary);
  font-weight: 700;
  text-align: left;
  padding: 0.6rem 0.5rem;
  font-size: 0.93rem;
  border-bottom: 2px solid var(--primary-light);
  text-transform: none;
  letter-spacing: 0;
}
#edd_sl_license_keys tbody tr {
  border-bottom: 1px solid var(--primary-light);
  background: none;
  transition: background 0.2s;
}
#edd_sl_license_keys tbody tr:hover {
  background: var(--primary-light);
}
#edd_sl_license_keys tbody td {
  padding: 0.6rem 0.5rem;
  border: none;
  vertical-align: middle;
  color: var(--gray-800);
}
.edd_sl_item_name {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.2rem;
}
.edd_sl_license_key {
  width: 100%;
  font-family: "Fira Mono", "Consolas", monospace;
  font-size: 0.97em;
  background: var(--primary-light);
  border: 1px solid var(--primary-light);
  border-radius: 6px;
  padding: 0.3em 0.6em;
  margin-top: 0.2em;
  color: var(--primary);
  transition: border 0.2s;
}
.edd_sl_license_key:focus {
  border: 1px solid var(--primary);
  outline: none;
  background: #fff;
}
.edd_sl_status_label {
  color: var(--gray-700);
  font-weight: 500;
}
.edd_sl_license_status {
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  font-size: 0.85rem;
  background: #fbe9e7;
  color: #d32f2f;
}
.edd_sl_license_status.edd-sl-active {
  background: #e6f4ea;
  color: #1e7e34;
}
.edd_sl_license_status.edd-sl-expired {
  background: #fbe9e7;
  color: #d32f2f;
}
.edd_sl_license_status.edd-sl-cancelled {
  background: #f5f5f5;
  color: #757575;
}
.edd_sl_license_status.edd-sl-inactive {
  background: #fff3e0;
  color: #f57c00;
}
.edd_sl_item_expiration,
.edd_sl_limit_label,
.edd_sl_limit_used,
.edd_sl_limit_sep,
.edd_sl_limit_max {
  font-size: 0.93em;
  color: var(--gray-700);
}
.edd_sl_no_management {
  color: var(--gray-500);
  font-size: 0.92em;
}
.edd_sl_key_sep {
  color: var(--gray-400);
}
#edd_sl_license_keys a {
  color: var(--primary);
  text-decoration: underline;
  font-size: 0.95em;
  transition: color 0.2s;
}
#edd_sl_license_keys a:hover {
  color: var(--accent);
}
.edd_sl_purchase_number {
  display: inline-block;
  margin-top: 0.3em;
  font-size: 0.92em;
  color: var(--gray-600);
}

/* Responsive : police et padding réduits */
@media (max-width: 1024px) {
  #edd_sl_license_keys {
    font-size: 0.9rem;
  }
  #edd_sl_license_keys thead th,
  #edd_sl_license_keys tbody td {
    padding: 0.5rem 0.3rem;
  }
}
@media (max-width: 600px) {
  #edd_sl_license_keys {
    font-size: 0.85rem;
  }
  #edd_sl_license_keys thead th,
  #edd_sl_license_keys tbody td {
    padding: 0.3rem 0.2rem;
  }
}

/* Formulaire profil et gestion des moyens de paiement - style épuré */
#edd_profile_editor_form {
  max-width: 600px;
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
#edd_profile_editor_form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 2rem 0;
}
#edd_profile_editor_form legend {
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding: 0;
  border-bottom: 1px solid var(--primary-light);
  padding-bottom: 0.3rem;
}
#edd_profile_editor_form p {
  margin-bottom: 1rem;
}
#edd_profile_editor_form label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.97rem;
}
#edd_profile_editor_form .edd-input,
#edd_profile_editor_form .edd-select {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--primary-light);
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  color: var(--primary);
  transition: border 0.2s;
}
#edd_profile_editor_form .edd-input:focus,
#edd_profile_editor_form .edd-select:focus {
  outline: none;
  border-color: var(--primary);
  background: #f9f9fb;
}
#edd_profile_editor_form .edd-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.825L1.175 4 2.05 3.125 6 7.075 9.95 3.125 10.825 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
#edd_profile_editor_form .edd-submit {
  width: 100%;
  padding: 0.8rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
#edd_profile_editor_form .edd-submit:hover {
  background: var(--accent);
}

/* Gestion des cartes Stripe - style épuré */
#edd-stripe-manage-cards {
  margin: 2rem 0 0 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
#edd-stripe-manage-cards fieldset {
  border: none;
  padding: 0;
  margin: 0 0 2rem 0;
}
#edd-stripe-manage-cards legend {
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--primary-light);
  padding-bottom: 0.3rem;
}
.edd-stripe-card-item {
  background: none;
  border-bottom: 1px solid var(--primary-light);
  border-radius: 0;
  padding: 1rem 0 1rem 0;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  transition: background 0.2s;
}
.edd-stripe-card-item:last-child {
  border-bottom: none;
}
.card-details {
  flex: 1;
  min-width: 180px;
  font-weight: 600;
  color: var(--primary);
}
.card-brand {
  font-weight: 600;
  color: var(--primary);
}
.card-last-4 {
  color: var(--gray-600);
}
.card-meta {
  flex: 1;
  min-width: 180px;
  color: var(--gray-600);
  font-size: 0.95rem;
}
.card-expiration {
  display: block;
  margin-bottom: 0.3rem;
}
.card-expiration-label {
  color: var(--gray-700);
}
.card-address {
  display: block;
}
.card-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
.card-actions a {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.2s;
}
.card-actions a:hover {
  color: var(--accent);
}
.card-actions .delete {
  color: var(--accent);
}
.card-actions .delete:hover {
  color: var(--primary);
}
.default-card-sep {
  color: var(--gray-400);
  margin: 0 0.3rem;
}
.card-is-default {
  color: var(--accent);
  font-weight: 500;
}
.card-update-form {
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--primary-light);
  display: none;
}
.card-update-form.active {
  display: block;
}
.card-update-form label {
  display: block;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.card-address-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.card-expiration-fields {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.exp-divider {
  color: var(--gray-400);
}
.edd-stripe-submit-update {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.edd-stripe-submit-update:hover {
  background: var(--accent);
}
.edd-stripe-cancel-update {
  color: var(--gray-600);
  text-decoration: underline;
  margin-left: 1rem;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.edd-stripe-cancel-update:hover {
  color: var(--primary);
}
.edd-stripe-add-new-card {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--primary-light);
  background: none;
  border-radius: 0;
}
.edd-stripe-new-card {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
}
.edd-stripe-add-card-actions {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.edd-stripe-add-new {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.edd-stripe-add-new:hover {
  background: var(--accent);
}
#edd-stripe-add-new-cancel {
  color: var(--gray-600);
  text-decoration: underline;
  font-size: 0.95rem;
  transition: color 0.2s;
}
#edd-stripe-add-new-cancel:hover {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 900px) {
  #edd_profile_editor_form {
    max-width: 100%;
    padding: 0 1rem;
  }
  .card-address-fields {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  #edd_profile_editor_form legend,
  #edd-stripe-manage-cards legend {
    font-size: 1rem;
  }
  #edd_profile_editor_form .edd-input,
  #edd_profile_editor_form .edd-select {
    font-size: 0.95rem;
    padding: 0.5rem 0.7rem;
  }
  .card-meta {
    font-size: 0.92rem;
  }
  .card-actions {
    font-size: 0.92rem;
    gap: 0.4rem;
  }
}

/* Tableau des transactions d'abonnement et lien retour - style épuré */
.account-container > a[href*="/abonnement"] {
  display: inline-block;
  margin-bottom: 1.2rem;
  color: var(--primary);
  font-size: 0.97rem;
  text-decoration: none;
  transition: color 0.2s;
}
.account-container > a[href*="/abonnement"]:hover {
  color: var(--accent);
  text-decoration: underline;
}
.account-container h3 {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  margin-top: 0;
}
.edd-recurring-subscription-transactions {
  width: 100%;
  border-collapse: collapse;
  background: none;
  box-shadow: none;
  font-size: 0.97rem;
  margin: 0 0 2rem 0;
}
.edd-recurring-subscription-transactions thead th {
  background: none;
  color: var(--primary);
  font-weight: 700;
  text-align: left;
  padding: 0.6rem 0.5rem;
  font-size: 0.93rem;
  border-bottom: 2px solid var(--primary-light);
  text-transform: none;
  letter-spacing: 0;
}
.edd-recurring-subscription-transactions tbody tr {
  border-bottom: 1px solid var(--primary-light);
  background: none;
  transition: background 0.2s;
}
.edd-recurring-subscription-transactions tbody tr:hover {
  background: var(--primary-light);
}
.edd-recurring-subscription-transactions tbody td {
  padding: 0.6rem 0.5rem;
  border: none;
  vertical-align: middle;
  color: var(--gray-800);
}
.edd-recurring-subscription-transactions a {
  color: var(--primary);
  text-decoration: underline;
  font-size: 0.97em;
  transition: color 0.2s;
}
.edd-recurring-subscription-transactions a:hover {
  color: var(--accent);
}
/* Responsive */
@media (max-width: 900px) {
  .edd-recurring-subscription-transactions {
    font-size: 0.9rem;
  }
  .edd-recurring-subscription-transactions thead th,
  .edd-recurring-subscription-transactions tbody td {
    padding: 0.5rem 0.3rem;
  }
}
@media (max-width: 600px) {
  .edd-recurring-subscription-transactions {
    font-size: 0.85rem;
  }
  .edd-recurring-subscription-transactions thead th,
  .edd-recurring-subscription-transactions tbody td {
    padding: 0.3rem 0.2rem;
  }
}

/* Tableau reçu d'abonnement - style épuré */
#edd_subscription_receipt {
  width: 100%;
  border-collapse: collapse;
  background: none;
  box-shadow: none;
  font-size: 0.97rem;
  margin: 0 0 2rem 0;
}
#edd_subscription_receipt thead th {
  background: none;
  color: var(--primary);
  font-weight: 700;
  text-align: left;
  padding: 0.6rem 0.5rem;
  font-size: 0.93rem;
  border-bottom: 2px solid var(--primary-light);
  text-transform: none;
  letter-spacing: 0;
}
#edd_subscription_receipt tbody tr {
  border-bottom: 1px solid var(--primary-light);
  background: none;
  transition: background 0.2s;
}
#edd_subscription_receipt tbody tr:hover {
  background: var(--primary-light);
}
#edd_subscription_receipt tbody td {
  padding: 0.6rem 0.5rem;
  border: none;
  vertical-align: middle;
  color: var(--gray-800);
}
#edd_subscription_receipt .edd_subscription_name {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.2rem;
}
#edd_subscription_receipt .edd_subscription_billing_cycle {
  font-size: 0.9rem;
  color: var(--gray-600);
}
#edd_subscription_receipt .edd_subscription_status {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #fbe9e7;
  color: #d32f2f;
}
#edd_subscription_receipt .edd_subscription_status.active {
  background: #e6f4ea;
  color: #1e7e34;
}
#edd_subscription_receipt .edd_subscription_status.expired {
  background: #fbe9e7;
  color: #d32f2f;
}
#edd_subscription_receipt .edd_subscription_status.cancelled {
  background: #f5f5f5;
  color: #757575;
}
#edd_subscription_receipt .edd_subscription_status.failing {
  background: #fff3e0;
  color: #f57c00;
}
/* Responsive */
@media (max-width: 900px) {
  #edd_subscription_receipt {
    font-size: 0.9rem;
  }
  #edd_subscription_receipt thead th,
  #edd_subscription_receipt tbody td {
    padding: 0.5rem 0.3rem;
  }
}
@media (max-width: 600px) {
  #edd_subscription_receipt {
    font-size: 0.85rem;
  }
  #edd_subscription_receipt thead th,
  #edd_subscription_receipt tbody td {
    padding: 0.3rem 0.2rem;
  }
}

/* Bouton Update Payment Method (EDD Recurring) */
#edd-recurring-update-submit {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.8rem 2.2rem;
  margin-top: 1.2rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: none;
}
#edd-recurring-update-submit:hover {
  background: var(--accent);
  color: var(--white);
}
@media (max-width: 600px) {
  #edd-recurring-update-submit {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.97rem;
  }
}

/* === EDD Checkout Page - Style épuré et moderne === */
.wp-block-edd-checkout {
  margin: 0 auto;
  max-width: var(--container-width);
  padding: 2rem 0 3rem 0;
}

#edd_checkout_form_wrap {
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

#edd_checkout_form_wrap > p {
  color: var(--gray-700);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
#edd_checkout_form_wrap > p a {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.2s;
}
#edd_checkout_form_wrap > p a:hover {
  color: var(--accent);
}

.edd-blocks-cart {
  background: none;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 2rem;
  width: 100%;
  font-size: 1rem;
}
.edd-blocks-cart__row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--primary-light);
  padding: 0.7rem 0.5rem;
  background: none;
  transition: background 0.2s;
}
.edd-blocks-cart__row-header {
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--primary-light);
  background: none;
  font-size: 1.05rem;
}
.edd-blocks-cart__row-item {
  font-weight: 500;
  color: var(--primary);
}
.edd-blocks-cart__row-item:hover {
  background: var(--primary-light);
}
.edd_cart_item_image img {
  width: 25px;
  height: 25px;
  border-radius: 6px;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.edd_checkout_cart_item_title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  color: var(--primary);
}
.edd-sl-renewal-details-cart {
  font-size: 0.92em;
  color: var(--gray-600);
  margin-top: 0.2em;
}
.eddr-cart-item-notice {
  color: var(--gray-600);
  font-size: 0.93em;
  margin: 0.2em 0 0 0;
}
.edd_cart_item_price {
  font-weight: 600;
  color: var(--primary);
  min-width: 110px;
  text-align: right;
}
.edd_cart_actions {
  display: inline-block;
  margin-left: 1rem;
}
.edd-blocks-cart__action-remove {
  color: var(--accent);
  font-size: 1.1em;
  text-decoration: none;
  margin-left: 0.5rem;
  transition: color 0.2s;
}
.edd-blocks-cart__action-remove:hover {
  color: var(--primary);
}

.edd-blocks-cart__row-footer {
  background: none;
  font-weight: 600;
  color: var(--primary);
  border-bottom: none;
  padding: 0.7rem 0.5rem;
  font-size: 1.05rem;
}
.edd_cart_subtotal,
.edd_cart_tax,
.edd_cart_total {
  text-align: right;
  width: 100%;
}
.edd_cart_total {
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 800;
}
.edd_cart_subtotal_amount,
.edd_cart_tax_amount,
.edd_cart_amount {
  font-weight: 700;
  color: var(--primary);
}

/* Formulaires de renouvellement et annulation */
#edd_sl_renewal_form,
#edd_sl_cancel_renewal_form {
  margin: 2rem 0 1.5rem 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
#edd_sl_renewal_form fieldset,
#edd_sl_cancel_renewal_form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
#edd_sl_renewal_form legend,
#edd_sl_cancel_renewal_form legend {
  display: none;
}
#edd_sl_renewal_form label,
#edd_sl_cancel_renewal_form label {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.97rem;
}
#edd_sl_renewal_form .edd-input {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--primary-light);
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  color: var(--primary);
  transition: border 0.2s;
}
#edd_sl_renewal_form .edd-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #f9f9fb;
}
.edd-sl-renewal-actions {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
#edd_sl_renewal_form .edd-submit,
#edd_sl_cancel_renewal_form .edd-submit {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
}
#edd_sl_renewal_form .edd-submit:hover,
#edd_sl_cancel_renewal_form .edd-submit:hover {
  background: var(--accent);
}
#edd-cancel-license-renewal {
  color: var(--gray-600);
  text-decoration: underline;
  font-size: 0.97rem;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: color 0.2s;
}
#edd-cancel-license-renewal:hover {
  color: var(--primary);
}
.edd-sl-multiple-keys-notice {
  color: var(--gray-600);
  font-size: 0.93em;
  margin-top: 0.7em;
}

/* Formulaire de paiement principal */
#edd_purchase_form {
  max-width: 600px;
  margin: 2rem auto 0 auto;
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
#edd_purchase_form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 2rem 0;
}
#edd_purchase_form legend {
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--primary-light);
  padding-bottom: 0.3rem;
}
#edd_purchase_form label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.97rem;
}
#edd_purchase_form .edd-input,
#edd_purchase_form .edd-select {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--primary-light);
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  color: var(--primary);
  transition: border 0.2s;
}
#edd_purchase_form .edd-input:focus,
#edd_purchase_form .edd-select:focus {
  outline: none;
  border-color: var(--primary);
  background: #f9f9fb;
}
#edd_purchase_form .edd-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.825L1.175 4 2.05 3.125 6 7.075 9.95 3.125 10.825 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
#edd_purchase_form .edd-submit,
#edd_purchase_form .button,
#edd_purchase_form input[type="submit"] {
  width: 100%;
  padding: 0.8rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 1.2rem;
}
#edd_purchase_form .edd-submit:hover,
#edd_purchase_form .button:hover,
#edd_purchase_form input[type="submit"]:hover {
  background: var(--accent);
}

#edd_secure_site_wrapper {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--gray-600);
  font-size: 0.97rem;
  margin-bottom: 1rem;
}
#edd_secure_site_wrapper .padlock {
  color: var(--accent);
  font-size: 1.2rem;
}

.edd-stripe-card-selector {
  margin-bottom: 1.2rem;
}
.edd-stripe-card-radio-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
  background: none;
  border-radius: 0;
  padding: 0.5rem 0;
}
.edd-stripe-card-radio-item.selected {
  background: var(--primary-light);
}
.edd-stripe-card-radio-item label {
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}
.card-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.card-brand {
  font-weight: 600;
  color: var(--primary);
}
.card-last-4 {
  color: var(--gray-600);
}
.card-expires-on {
  color: var(--gray-600);
  font-size: 0.93em;
}
.add-new-card {
  color: var(--primary);
  font-weight: 500;
}

.edd-stripe-new-card {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-top: 1rem;
}
.edd-stripe-new-card label {
  font-weight: 600;
  color: var(--primary);
}
.edd-stripe-new-card .edd-input {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--primary-light);
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  color: var(--primary);
  transition: border 0.2s;
}
.edd-stripe-new-card .edd-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #f9f9fb;
}

/* Adresses et champs de facturation */
#edd_cc_address .edd-blocks-form__group {
  margin-bottom: 1.2rem;
}
#edd_cc_address label {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.97rem;
}
#edd_cc_address .edd-input,
#edd_cc_address .edd-select {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--primary-light);
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  color: var(--primary);
  transition: border 0.2s;
}
#edd_cc_address .edd-input:focus,
#edd_cc_address .edd-select:focus {
  outline: none;
  border-color: var(--primary);
  background: #f9f9fb;
}

/* Alertes et messages */
.edd-alert,
.edd_error {
  background: #fff3e0;
  color: #f57c00;
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  font-size: 0.97rem;
  border: 1px solid #ffe0b2;
}
.edd-alert-warn {
  background: #fff3e0;
  color: #f57c00;
  border: 1px solid #ffe0b2;
}

/* Terms & Privacy */
#edd_terms_agreement,
#edd-privacy-policy-agreement {
  margin-bottom: 1.2rem;
}
.edd-terms-agreement,
.edd-privacy-policy-agreement {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.97rem;
  color: var(--gray-700);
}
.edd-terms-agreement input[type="checkbox"],
.edd-privacy-policy-agreement input[type="checkbox"] {
  accent-color: var(--primary);
  width: 1.1em;
  height: 1.1em;
}
.edd-terms a,
.edd_terms_links {
  color: var(--primary);
  text-decoration: underline;
  font-size: 0.97em;
  transition: color 0.2s;
}
.edd-terms a:hover,
.edd_terms_links:hover {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 900px) {
  .wp-block-edd-checkout {
    padding: 1rem 0 2rem 0;
  }
  #edd_purchase_form {
    max-width: 100%;
    padding: 0 1rem;
  }
}
@media (max-width: 600px) {
  .wp-block-edd-checkout {
    padding: 0.5rem 0 1.5rem 0;
  }
  .edd-blocks-cart__row,
  .edd-blocks-cart__row-header,
  .edd-blocks-cart__row-footer {
    font-size: 0.92rem;
    padding: 0.4rem 0.2rem;
  }
  #edd_purchase_form legend {
    font-size: 1rem;
  }
  #edd_purchase_form .edd-input,
  #edd_purchase_form .edd-select {
    font-size: 0.95rem;
    padding: 0.5rem 0.7rem;
  }
  .edd-terms-agreement,
  .edd-privacy-policy-agreement {
    font-size: 0.93rem;
  }
}

/* Styles pour la page de gestion de licence */
.edd-manage-license-back {
  display: inline-block;
  margin-bottom: 1.2rem;
  color: var(--primary);
  font-size: 0.97rem;
  text-decoration: none;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.edd-manage-license-back:hover {
  color: var(--accent);
  text-decoration: underline;
}

.edd-sl-manage-license-header {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  margin-top: 0;
}

.edd-sl-manage-license-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.97rem;
}

.edd-sl-manage-license-key,
.edd-sl-manage-license-product {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-700);
}

.edd-sl-manage-license-key code {
  font-family: "Fira Mono", "Consolas", monospace;
  font-size: 0.97em;
  background: var(--primary-light);
  border: 1px solid var(--primary-light);
  border-radius: 6px;
  padding: 0.3em 0.6em;
  color: var(--primary);
  transition: border 0.2s;
}

.edd-sl-manage-license-key code:hover {
  border: 1px solid var(--primary);
  background: #fff;
}

.edd-sl-manage-license-product span {
  font-weight: 600;
  color: var(--primary);
}

#edd_sl_license_sites {
  width: 100%;
  border-collapse: collapse;
  background: none;
  box-shadow: none;
  font-size: 0.97rem;
  margin: 0 0 2rem 0;
}

#edd_sl_license_sites thead th {
  background: none;
  color: var(--primary);
  font-weight: 700;
  text-align: left;
  padding: 0.6rem 0.5rem;
  font-size: 0.93rem;
  border-bottom: 2px solid var(--primary-light);
  text-transform: none;
  letter-spacing: 0;
}

#edd_sl_license_sites tbody tr {
  border-bottom: 1px solid var(--primary-light);
  background: none;
  transition: background 0.2s;
}

#edd_sl_license_sites tbody tr:hover {
  background: var(--primary-light);
}

#edd_sl_license_sites tbody td {
  padding: 0.6rem 0.5rem;
  border: none;
  vertical-align: middle;
  color: var(--gray-800);
}

#edd_sl_license_sites a {
  color: var(--primary);
  text-decoration: underline;
  font-size: 0.97em;
  transition: color 0.2s;
}

#edd_sl_license_sites a:hover {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 900px) {
  .edd-sl-manage-license-details {
    flex-direction: column;
    gap: 1rem;
  }

  #edd_sl_license_sites {
    font-size: 0.9rem;
  }

  #edd_sl_license_sites thead th,
  #edd_sl_license_sites tbody td {
    padding: 0.5rem 0.3rem;
  }
}

@media (max-width: 600px) {
  .edd-sl-manage-license-header {
    font-size: 1.1rem;
  }

  .edd-sl-manage-license-details {
    font-size: 0.92rem;
  }

  #edd_sl_license_sites {
    font-size: 0.85rem;
  }

  #edd_sl_license_sites thead th,
  #edd_sl_license_sites tbody td {
    padding: 0.3rem 0.2rem;
  }
}

/* Responsive pour account-main */
@media (max-width: 1024px) {
  .account-main {
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem 1rem;
  }

  .account-sidebar {
    flex: none;
    width: 100%;
    min-width: 100%;
  }

  .account-navigation {
    width: 100%;
  }

  .account-menu {
    display: flex;
    flex-direction: column;
  }

  .account-menu li {
    margin: 0;
    width: 100%;
  }

  .account-menu a {
    padding: 0.8rem 1rem;
    display: block;
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .account-main {
    padding: 1rem 0.5rem;
  }

  .account-menu a {
    font-size: 0.95rem;
    padding: 0.7rem 0.9rem;
  }
}

@media (max-width: 480px) {
  .account-main {
    padding: 0.5rem;
  }

  .account-menu a {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
  }
}

/* Gravity Forms */
.gform_wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem 0;
}

/* Reset des styles par défaut de Gravity Forms */
.gform_wrapper fieldset {
    border: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.gform_wrapper legend {
    border: none;
    padding: 0;
    margin: 0;
    width: auto;
    max-width: 100%;
}

.gform_wrapper .gfield_contains_required fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.gform_wrapper .gfield_contains_required legend {
    border: none;
    padding: 0;
    margin: 0;
}

.gform_heading {
    margin-bottom: 2rem;
}

.gform_required_legend {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.gfield_required_asterisk {
    color: var(--red-500);
}

.gform-body {
    margin-bottom: 2rem;
}

.gfield {
    margin-bottom: 1.5rem;
}

.gfield_label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.gfield_label_before_complex {
    margin-bottom: 1rem;
}

.ginput_container input[type="text"],
.ginput_container input[type="email"],
.ginput_container textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    background-color: var(--white);
    color: var(--gray-700);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ginput_container input[type="text"]:focus,
.ginput_container input[type="email"]:focus,
.ginput_container textarea:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(32, 76, 229, 0.1);
}

.ginput_container_textarea textarea {
    min-height: 120px;
    resize: vertical;
}

.gfield_description {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.gfield_checkbox {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gchoice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gfield-choice-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    transition: border-color 0.2s, background-color 0.2s;
}

.gfield-choice-input:checked {
    background-color: var(--blue-500);
    border-color: var(--blue-500);
}

.gform-field-label--type-inline {
    font-size: 0.875rem;
    color: var(--gray-700);
}

.gform-field-label--type-inline a {
    color: var(--blue-500);
    text-decoration: none;
    transition: color 0.2s;
}

.gform-field-label--type-inline a:hover {
    color: var(--blue-600);
    text-decoration: underline;
}

.gform_footer {
    margin-top: 2rem;
}

.gform_button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.gform_button:hover {
    background-color: var(--accent);
}

.ginput_recaptcha {
    margin: 1rem 0;
}

.cmplz-gf-recaptcha {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

@media (max-width: 768px) {
    .gform_wrapper {
        padding: 1.5rem 0;
    }

    .ginput_container input[type="text"],
    .ginput_container input[type="email"],
    .ginput_container textarea {
        padding: 0.625rem 0.875rem;
    }

    .gform_button {
        width: 100%;
        text-align: center;
    }
}

/* === Styles pour la page de recherche === */

/* Terme de recherche mis en évidence */
.search-term {
    color: var(--accent);
    font-weight: 600;
}

/* Compteur de résultats */
.search-results-count {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Grille des résultats de recherche */
.search-results-grid {
    display: grid;
    gap: 2rem;
    margin: 3rem 0;
}

/* Carte de résultat de recherche - réutilise le style des cartes existantes */
.search-result-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--card-radius);
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.search-result-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent);
}

/* Contenu de la carte de résultat */
.search-result-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
}

.search-result-image {
    flex-shrink: 0;
}

.search-thumbnail {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
}

.search-result-card:hover .search-thumbnail {
    transform: scale(1.05);
}

/* Titre du résultat */
.search-result-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.search-result-title a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.search-result-title a:hover {
    color: var(--accent);
}

/* Métadonnées du résultat */
.search-result-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.search-result-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.search-result-meta i {
    color: var(--accent);
}

/* Extrait du résultat */
.search-result-excerpt {
    margin-bottom: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Catégories du résultat - réutilise le style des badges existants */
.search-result-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-category-badge {
    background: var(--accent-light);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Lien vers le résultat - réutilise le style des boutons existants */
.search-result-link .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
}

/* Pagination des résultats */
.search-pagination-wrapper {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
}

.search-pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    text-decoration: none;
    color: var(--gray-600);
    transition: var(--transition);
}

.search-pagination .page-numbers:hover,
.search-pagination .page-numbers.current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Page "Aucun résultat" */
.no-search-results {
    text-align: center;
    padding: 4rem 0;
}

.no-results-content {
    max-width: 600px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 2rem;
}

.no-results-content h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.no-results-content p {
    color: var(--gray-600);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Suggestions pour améliorer la recherche */
.no-results-suggestions {
    text-align: left;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--gray-100);
    border-radius: var(--card-radius);
}

.no-results-suggestions h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.no-results-suggestions ul {
    list-style: none;
    padding: 0;
}

.no-results-suggestions li {
    padding: 0.5rem 0;
    color: var(--gray-600);
    position: relative;
    padding-left: 1.5rem;
}

.no-results-suggestions li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Actions pour la page "Aucun résultat" */
.no-results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.no-results-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive pour la page de recherche */
@media (max-width: 768px) {
    .search-result-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-result-image {
        text-align: center;
    }
    
    .search-thumbnail {
        width: 100%;
        max-width: 200px;
        height: auto;
    }
    
    .search-result-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .no-results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .no-results-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .search-result-card {
        padding: 1.5rem;
    }
    
    .search-result-title {
        font-size: 1.25rem;
    }
    
    .search-pagination {
        flex-wrap: wrap;
    }
}
