html{
  background:var(--ast-global-color-8)!important;
  z-index:-2;
  height: 100%;
  margin: 0;
  padding: 0;
  color:white!important;
  overflow-x: hidden;
}
.site .site-content #primary,main,#main {background:initial;}

body {
  background: unset!important;
  margin: 0;
  padding: 0;
  color:white!important;
}

*, *::before, *::after {
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

h1 {
  background-image: url("https://boutique-wp.fr/wp-content/uploads/2025/05/Redaction-web-IA-1.png");
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  aspect-ratio: 5 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  text-shadow: 0 0 10px black, 0 0 10px black;
  font-size: 2.5rem;
}

h1 a{
  color: white!important;
}

header,#ast-mobile-header,.ast-single-author-box,#comments,.rmp-widgets-container,#O2,footer,#popup-overlay,#popup,.ast-single-related-posts-container,#n8n-chat{
display:none;
visibility:hidden;}

.site .site-content #primary .ast-article-single, .ast-separate-container .site-content #secondary .widget {
   padding: 0!important;
}
h2{margin-top:0!important;}
h1,h2,h3,h4,h5,h6{color:white!important;}
h3{color:var(--ast-global-color-1)!important;}

h2::after {
    background: #fff!important;
}

.conteneurcol {
    margin-top: 4rem;
}

#content {
  min-height: 100vh;
  background-image: url("https://boutique-wp.fr/wp-content/uploads/2025/05/Grille.png");
  background-repeat: repeat;
  background-size: auto;
  background-attachment: fixed;
  background-position: top left;
  z-index: 0;
}


.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%; /* Formes arrondies */
    filter: blur(60px); /* Effet de flou, à ajuster */
    opacity: 0.7; /* Un peu de transparence pour mieux se mélanger */
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    animation-duration: 30s; 
}

.shape1 {
    width: 400px;
    height: 300px;
    background-color: #eca20e; /* Jaune/Orange */
    top: -10%;
    left: -25%;
    animation-name: moveShape1;
}

.shape2 {
    width: 450px;
    height: 250px;
    background-color: #a61c38; /* Rouge foncé */
    top: 30%;
    left: 80%;
    animation-name: moveShape2;
    animation-delay: -2.5s; 
}

.shape3 {
    width: 300px;
    height: 200px;
    background-color: #f32f4c; /* Rouge vif */
    top: 20%;
  left: auto;
  right: -50vw;
    animation-name: moveShape3;
    animation-delay: -5s;
}

.shape4 {
    width: 350px;
    height: 350px;
    background-color: #158bad; /* Bleu */
    top: 50%;
    left: -20%;
    animation-name: moveShape4;
    animation-delay: -7.5s;
}

@keyframes moveShape1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(10vw, 5vh) scale(1.2); }
    50% { transform: translate(-10vw, -5vh) scale(0.8); }
    75% { transform: translate(5vw, -20vh) scale(1.1); }
}

@keyframes moveShape2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-15vw, 10vh) scale(0.9); }
    50% { transform: translate(10vw, -10vh) scale(1.3); }
    75% { transform: translate(-5vw, -15vh) scale(1); }
}

@keyframes moveShape3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(10vw, -15vh) scale(1.1); }
    50% { transform: translate(-10vw, 10vh) scale(0.7); }
    75% { transform: translate(15vw, 5vh) scale(1.2); }
}

@keyframes moveShape4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-15vw, -10vh) scale(1.3); }
    50% { transform: translate(15vw, 15vh) scale(0.9); }
    75% { transform: translate(-10vw, 20vh) scale(1.1); }
}

div#content {
    padding-top: 0!important;
}

#redacIA-logo {
  margin-right: auto;
}


.hidden { display: none; }

.tab-container {
  display: flex;
  justify-content: center; 
  flex-wrap: wrap;
  margin-bottom: 2em;
}

.tab-button {
  background-color: #111;
  color: #eee;
  border: none;
  border-radius:0;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  text-transform: uppercase;
  font-size: 20px;
  border: 1px solid white;
}

.tab-button:hover {
  background-color: #eee;
  color: #111;
}

.tab-button.active {
  background-color: #eee;
  color: #111;
}
.onglet {
  display: none;
}
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #eee;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  margin-right: 8px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

input{margin-bottom:1rem}

.user-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  font-size: 0.95rem;
  gap: 1rem;
}

.user-controls > * {
  display: inline-block;
  margin: 0 0.5rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.credit-box {
  display: flex;
  background: #eee;
  color: #333;
  padding: 0.3em 0.7em;
  border-radius: 1em;
  font-weight: bold;
  align-items: center;
  gap: 0.3rem;
}

.redacIA-btn-solid {
  display: none;
  background-color: #b0164a;
  color: white;
  border: none;
  padding: 0.4em 1em;
  border-radius: 0.4em;
  cursor: pointer;
}

.redacIA-btn-outline {
  display: none;
  background-color: transparent;
  border: 1px solid #b0164a;
  color: #b0164a;
  padding: 0.4em 1em;
  border-radius: 0.4em;
  cursor: pointer;
}

.coldemi {
  padding: 0 !important;
}

.coldemi:nth-of-type(1) {
  padding-right: 1rem !important;
}
.coldemi:nth-of-type(2) {
  padding-left: 1rem !important;
}

.woocommerce-js input[type=number]{
  max-width: unset;
  min-height: unset;
}

input[type=number]{padding:.5rem;}

.buy-link {
  margin-left: 0.5em;
  font-size: 0.9em;
  text-decoration: underline;
  color: var(--ast-global-color-2);
  opacity: 0.8;
}
.buy-link:hover {
  opacity: 1;
}

#resultatSugg,#resultatSponso,#resultatN1,#resultatPremium{
    background:white;
    color:#111!important;
    font-size:0.9rem;
    padding:1rem;
}
#resultatSugg h1,#resultatSponso h1,#resultatN1 h1,#resultatPremium h1{
    background:unset;
    color:#111!important;
    font-size:2rem;
    text-shadow:none;
}
#resultatSugg h2,#resultatSponso h2,#resultatN1 h2,#resultatPremium h2{
    color:#111!important;
    font-size:1.5rem;
}
#resultatSugg h3,#resultatSponso h3,#resultatN1 h3,#resultatPremium h3{
    color:#111!important;
    font-size:1.3rem;
}


/* Boîte de la modale (le conteneur blanc) */
.modal-exemple-boite {
    background-color: #ffffff;
    color: #333333;
    padding: 0; /* Le padding sera géré par les enfants directs */
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    width: 80%;
    max-width: 700px;
    height: 85vh; /* Hauteur définie pour la boîte */
    max-height: 700px; /* Limite de hauteur absolue */
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden; 
}

/* Bouton de fermeture */
.modal-exemple-close-btn {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 26px;
    font-weight: bold;
    color: #777;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    z-index: 10; /* S'assurer qu'il est au-dessus du titre/contenu */
}
.modal-exemple-close-btn:hover {
    color: #000;
}

.btn-voir-exemple {
    padding: 8px 15px;
    background-color: var(--ast-global-color-1);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    display: inline-block;
    text-align: center;
}
.btn-voir-exemple:hover {
    background-color: #0056b3;
}

/* Overlay (fond semi-transparent) */
.modal-exemple-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Couleur initiale de l'overlay masqué */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease-in-out, visibility 0.25s ease-in-out, background-color 0.25s ease-in-out;
    padding: 20px;
    box-sizing: border-box;
}

.modal-exemple-overlay.modal-visible { /* Ou la classe que vous utilisez pour afficher */
    opacity: 1;
    visibility: visible;
    background-color: #111; /* Fond de l'overlay quand visible */
}

/* Titre de la modale */
#modalExempleTitre {
    font-size: 1.8em;
    font-weight: 600;
    color: #222;
    margin:0; /* Pas de marge externe */
    padding: 20px 30px; /* Padding interne */
    text-align: center;
    border-bottom: 1px solid #eee;
    flex-shrink: 0; /* Ne pas rétrécir. Il prend sa hauteur naturelle. */
    box-sizing: border-box;
    position: relative; /* Contexte de positionnement pour le bouton de fermeture si besoin */
}

/* Conteneur du contenu de l'exemple - C'EST LUI QUI DOIT SCROLLER */
#modalExempleConteneurContenu {
    flex-grow: 1; /* Doit prendre tout l'espace vertical restant */
    overflow-y: auto; /* Active la barre de scroll vertical SI son contenu est plus grand que sa propre hauteur */
    padding: 20px 30px; /* Padding interne pour le contenu */
    box-sizing: border-box;
    font-size: 1rem;
    line-height: 1.6;
    min-height: 0; /* Essentiel pour les enfants flex avec overflow dans une colonne */
    /* Pas de 'height' explicite ici, flex-grow s'en charge */
}

/* Styles de base pour le contenu d'un article dans l'exemple */
#modalExempleConteneurContenu h1,
#modalExempleConteneurContenu h2,
#modalExempleConteneurContenu h3 {
    color: #111!important;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
    line-height: 1.3;
}
#modalExempleConteneurContenu h1 {
    font-size: 1.7em;
    background:unset;
    color:#111!important;
    text-shadow:none;
 }
#modalExempleConteneurContenu h2 { font-size: 1.4em; }
#modalExempleConteneurContenu h3 { font-size: 1.2em; }

#modalExempleConteneurContenu p {
    margin-bottom: 1em;
}
#modalExempleConteneurContenu img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1em 0;
    display: block;
}
#modalExempleConteneurContenu ul,
#modalExempleConteneurContenu ol {
    margin-left: 20px;
    margin-bottom: 1em;
    padding-left: 15px;
}
#modalExempleConteneurContenu li {
    margin-bottom: 0.5em;
}
#modalExempleConteneurContenu a {
    color: #007bff;
    text-decoration: underline;
}
#modalExempleConteneurContenu a:hover {
    text-decoration: none;
}
#modalExempleConteneurContenu strong,
#modalExempleConteneurContenu b {
    font-weight: 600;
}


/* Responsive pour la boîte de modale */
@media (max-width: 768px) {
    .modal-exemple-boite {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    max-height: none; /* Laisser vh déterminer sur écrans plus petits */
    }
   .modal-exemple-overlay {
    overflow-x: hidden;
}
    #modalExempleTitre {
        font-size: 1.6em;
        padding: 15px 25px;
    }
    #modalExempleConteneurContenu {
        font-size: 0.95rem;
        padding: 15px 25px;
    }
}

@media screen and (max-width: 480px) {
    #modalExempleConteneurContenu * {
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}
    .modal-exemple-overlay {
        padding: 0; /* L'overlay va jusqu'aux bords */
    }
    .modal-exemple-boite {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0; /* Pas de coins arrondis en plein écran */
        box-shadow: none;  /* Pas d'ombre en plein écran */
    }
    #modalExempleTitre {
        font-size: 1.3em;
        padding: 15px;
        padding-top: 20px;
    }
    #modalExempleConteneurContenu {
        font-size: 0.9rem;
        padding: 1rem;
    }
     .modal-exemple-close-btn {
        top: 8px;
        right: 10px;
    }
    #modalExempleConteneurContenu h1 { font-size: 1.4em; }
    #modalExempleConteneurContenu h2 { font-size: 1.2em; }
    #modalExempleConteneurContenu h3 { font-size: 1.05em; }
    
  .tab-button {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    white-space: normal;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  .tab-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
}


@media (max-width: 1280px) {
    #primary, #secondary {
        padding: 0px;
    }
}

@media screen and (max-width: 768px) {
h1{line-height: 1.1rem;
  background-image: unset;
  background-size: unset;
  background-repeat: unset;
  background-position: unset;
  width: 100%;
  aspect-ratio: unset;
}

.conteneurcol {
    margin-top: 2rem;
}


.coldemi:nth-of-type(1),.coldemi:nth-of-type(2) {
    padding-right: unset;
}
.coldemi {
    padding: 1rem!important;
}
}