:root {
    --main-color: #f1f1f1;
    --main-hover: #F3DDF3;
    --nav-bg: #AD1AAC;
    --text-light: #fff;
    --text-dark: #111827;
    --text-link: #AD1AAC;
    --bg-light: #f6f6f6;
    --bg-dark: #004a3b;
    
    --red: #444;
    --green: #fff;
    --orange: #F59E0B;
    --bleu: #3B82F6;
    
    --red-hover: #B82020;
    --green-hover: #117c38;
    --orange-hover: #B1750D;
    --bleu-hover: #2d6bcd;

    --red-light: #FEE2E2;
    --green-light: #DCFCE7;
    --orange-light: #FEF3C7;
    --bleu-light: #E0F2FE;

    --black:#444;
    --gris:#ddd;

    --gris-transparent:#dddddd40;

    --log-bg:#0b1220;
    --log:#cbd5e1;

    --mute:#6b7280;

    --td:#ddd;
    --td-bottom:#f1f1f1;
    --tr-hover:#f9fafb;
    --modal:rgba(0,0,0,0.6);


    --button-hover:#7b0c7b;
    --btn-action:#AD1AAC;
    --btn-action-hover:#7b0c7b;
    --plan:#e5e7eb;
    --box-shadow:rgba(0,0,0,0.05);




}

/*
var(--main-color)
var(--text-light)
var(--text-dark)
var(--text-link)

var(--red)
var(--green)
var(--orange)


*/


body {
  font-family:  Roboto, Arial, sans-serif;
  line-height: 1.45;
  padding: 0px;
  width: 100%;
  margin: auto;
  background-color: var(--text-light);
  color: var(--text-dark);
}
a{
  text-decoration: none;
  color: var(--text-link); 
}
a:hover{
  text-decoration:solid;
}
  



/* HEADER FIXE EN HAUT */
header {
  position: fixed;
  top: 0;
  left: 240px;
  width: calc(100% - 240px);
  height:40px;
  margin-bottom:40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-bg);
  z-index: 1000;
}


.logo img {
  height: 30px;
  margin-left:0px;
  width: auto;
  display: block;
  margin-bottom:20px;
  margin-top:5px;
}

.logo.login {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.logo.login img {
  height: 50px;
  width: auto;
  display: block;
}


.espace {
  height:40px;
}


aside.nav{
  display: flex;
  height:40px;
  padding-left: 25px;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  color: var(--main-color);
   text-transform: uppercase;
}


nav {
  display: flex;
  height:40px;
  padding-right: 25px;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}

header [data-lucide]{
  width: 16px;
  height: 16px;
  vertical-align: middle;
  padding-bottom: 0px;
  margin-right:5px;
}

svg[data-lucide].toggle-off {
  width: 30px;
  height: 30px;
  stroke: var(--red);         /* couleur du trait Lucide */
  fill: none;
  vertical-align: middle;
  padding-top: 1px;
  cursor: pointer; 
}
.off {
  color: var(--red);         /* couleur du trait Lucide */
}


svg[data-lucide].toggle-on {
  width: 30px;
  height: 30px;
  stroke: var(--green);         /* couleur du trait Lucide */
  fill: none;
  vertical-align: middle;
  padding-top: 1px;
  cursor: pointer; 
}



.on {
  color: var(--green);         /* couleur du trait Lucide */
}

nav a {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1em;
  text-decoration: none;
  color: var(--main-color);
  transition: color 0.2s ease;
}

header nav a:hover {
  color: var(--main-color); /
}

/* CONTAINER GLOBAL (SOUS LE HEADER) */
.container {
  margin-top: 0px; 
  

  
}

/* LAYOUT PRINCIPAL */
.dashboard-layout {
  display: flex;
  width: 100%;

}

/* CONTENU PRINCIPAL */
.dashboard-content {
  flex: 1;
  display: flex;
  flex-direction: column;

}


/* MESSAGE */
.contenu {
  padding: 25px 50px;
}

/* SIDEBAR FIXE À GAUCHE */
.sidebar {
  top: 0px;
  left: 0px;
  width: 240px;
  min-height: calc(100vh - 10px);
  background-color: var(--tr-hover);
  background-color: var(--main-color);
  border-right: 1px solid var(--gris);
  padding: 0px;
  padding-top: 0px;

  z-index: 999;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin: 0px;
  
}

.sidebar a {
  display: block;
  color: var(--text-link);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
  
}

.search [data-lucide],
.sidebar [data-lucide],
.plan [data-lucide],
.btn_action [data-lucide],
.ai-banner [data-lucide],
.accordion  [data-lucide]
{
  width: 14px;
  height: 14px;
  vertical-align: middle;
  padding-bottom: 3px;
}


.order [data-lucide]
{
  width: 18px;
  height: 18px;
  vertical-align: middle;
  padding-bottom: 3px;
}

.accueil  [data-lucide]
{
  width: 20px;
  height: 20px;
  vertical-align: middle;
  padding-bottom: 3px;
}


/* menu */
.sidebar li.menu a {
  text-transform: uppercase;
  margin-top:0px;
  margin-bottom:0px;
  padding-top:12px;
  padding-bottom:7px;
  font-size: 15px;
  border-top: 1px solid var(--text-link)34;
}

.sidebardesactive ul li:last-child {
  border-bottom: 1px solid var(--text-link)34;
}

.sidebar .submenu a {
  line-height: 1.1; 
}

.sidebar li.submenu a {
  font-size: 14px;
  color: var(--black);
  padding-top:5px;
  padding-bottom:5px;
  padding-left:28px;
}


.sidebar li.stats {
  font-size: 14px;
  color: var(--black);
  padding-top:1px;
  padding-bottom:1px;
  padding-left:28px;
}


.sidebar li.menu a:hover {
  background: var(--main-hover);
  color: var(--text-link);
}
.sidebar li.submenu a:hover {
  background-color: var(--main-hover);
  color: var(--black);
}

/* lien actif dans le menu */
.sidebar a.active,
.sidebar li.submenu a.active {
  background: #ecedee;
}


/* pour le scraper */

.grilledeux{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px
}

.desactiver {
  opacity: 0.5;              /* effet visuel "grisé" */
  pointer-events: none;      /* bloque tous les clics / interactions */
  user-select: none;         /* empêche la sélection de texte */
  filter: grayscale(100%);   /* optionnel : rend tout gris */
}



/* MESSAGE */
.message {
  width: 100%;
  display:flex;
  flex-direction: column;
}


.info {
  display: grid;
  grid-template-columns: 40px 1fr 1fr; 
  padding: 0 25px;
  margin-bottom: 0;
  min-height: 40px;
  align-items: center; /*  centre verticalement le contenu */
}
.info i[data-lucide]{
  width: 20px;
  height: 20px;
  vertical-align: middle;

}


.info p {
  margin: 0;                   
  font-size: 15px;
  padding:5px;
}

.info button{
  margin-top:5px!important;
  margin-bottom:4px!important;
  border:none; 
  padding:6px 10px; 
  border-radius:2px; 
  cursor:pointer;
  transition: background 0.2s;

}


.info2col {
  display: grid;
  grid-template-columns: 40px 1fr; 
  padding: 0 25px;
  margin-bottom: 0;
  min-height: 40px;
  align-items: center; 
}

.btn_modifier img{
  height:15px;
  width:auto;

}

img.icone{
  height:12px;
  width:auto;

}

.erreur{
  background-color: var(--red-light);
  color: var(--red);
  border-bottom: 1px solid var(--red);
}
.erreur button{
  background-color: var(--red);
  border-bottom: 1px solid var(--red-light);
}
.erreur button:hover {
  background-color: var(--red-hover);;
}

.attention{
  background-color: var(--orange-light);
  color: var(--orange);
  border-bottom: 1px solid var(--orange);
}
.attention button{
  background-color: var(--orange);
  border-bottom: 1px solid var(--orange-light);
}
.attention button:hover {
  background-color: var(--orange-hover);;
}

.ok{
  background: var(--bleu-light);
  color: var(--bleu);
  border-bottom: 1px solid var(--bleu);
}
.ok button{
  background-color: var(--bleu);
  border-bottom: 1px solid var(--bleu-light);
}
.ok button:hover {
  background-color: var(--bleu-hover);
}


.run{
  background: var(--vert-light);
  color: var(--green);
  border-bottom: 1px solid var(--green);
}
.run button{
  background-color: var(--green);
  border-bottom: 1px solid var(--vert-light);
}
.run button:hover {
  background-color:var(--vert-hover);
}

form.search{
  display: grid; 
  grid-template-columns:  1fr auto 100px; 
  gap: 10px; 
  align-items: center;
}

.search button{
  padding:11px;
  margin-top:-1px;
  margin-left:-53px;
}


.caption{
  font-size:12px;
}
.caption img{
  height:12px;
  width:auto;
}

.card_dashboard {
  border: 1px solid var(--gris);
  border-radius: 2px;
  padding: 16px;
  margin-bottom: 35px;
  background-color: var(--gris-transparent);

 
}
.card_site {
  max-width:1100px;
  margin : 24px auto;
  padding: 16px;
  margin-bottom: 16px;
  background-color: var(--text-light);

}

.card_login {
  border: 1px solid var(--gris);
  max-width:400px;
  margin : 20px auto;
  padding: 16px;
  margin-bottom: 16px;
  background-color: var(--text-light);
  

}


h1{ 
  color:var(--text-link); 
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.3em;
  text-align: left;
}

label{
  display:block;
  margin:6px 0 4px;
  font-weight:500;
}

span.label{
    font-size:12px!important;
}

button:disabled{
  opacity:.5;
  cursor:not-allowed;
}
.progress{
  height:10px;
  background:var(--gris);
  border-radius:999px;
  overflow:hidden;
  width:100%;
}
.bar{
  height:100%;
  background:var(--text-link);
  width:0%;
  transition:width .2s ease;
}

.logs{
  background:var(--log-bg);
  color:var(--log);
  padding:12px;
  border-radius:2px;
  height:160px;
  font-size:10px;
  overflow:auto;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas;
  white-space:pre-wrap;
}

.muted{
  color:var(--mute)}



.masque{	
  display:none;
}

table{
  width:100%;
  border-collapse:collapse;
  margin-top:12px;
}

  th
  {
  border-bottom:1px solid var(--gris);
  padding:10px;
  text-align:left;
  font-size:14px;
}

  td{
  border-bottom:1px solid var(--gris);
  padding:10px;
  text-align:left;
  font-size:14px;
}

  tr:hover{
  background:var(--tr-hover);
}

.subtable2{
  margin-left:3px;
  border-left:2px solid var(--gris);
  padding-left:5px;
}

.alert{
  background:var(--bleu-light);
  color:var(--text-link);
  padding:8px 12px;
  border-radius:2px;
  margin-bottom:12px;
}

.modal{
  position:fixed;
  top:0;left:0;
  width:100%;
  height:100%;
  background:var(--modal);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:1000;
}

.modal.active{
  display:flex;
}

.modal-content{
  background:var(--text-light);
  padding:20px;
  border-radius:10px;
  width:360px;
  max-width:90%;
  position:relative;
}

.close-btn{
  position:absolute;
  top:10px;
  right:12px;
  cursor:pointer;
  font-size:20px;
  color:var(--black);
}

select {
  width: 95%;
  padding: 10px;
  border: 1px solid var(--gris);
  border-radius: 2px;
  background-color: var(--text-light);
  font-size: 14px;
  color: var(--text-dark);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%),
                    linear-gradient(135deg, var(--mute) 50%, transparent 50%);
  background-position: calc(100% - 15px) calc(50% - 3px),
                       calc(100% - 10px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="url"]{
  width: 95%;
  padding: 10px;
  border: 1px solid var(--gris);
  border-radius: 2px;
  background-color: var(--text-light);
  font-size: 14px;
  color: var(--text-dark);
    transition: border-color 0.2s ease;
}

textarea {
  min-height: 270px;
  height:auto;
  line-height: 1.5;
  font-size: 14px;
  border: 1px solid var(--gris);
  border-radius: 2px;
  width:95%;
  padding:10px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--text-link);
  outline: none;
}

/* ------- Confirmation  ------- */
.confirm-box {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--mute);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.2s ease;
}

.confirm-content {
  background: var(--text-light);
  border-radius: 8px;
  padding: 25px 30px;
  box-shadow: 0 4px 20px var(--gris);
  text-align: center;
  max-width: 300px;
  width: 80%;
  animation: slideUp 0.25s ease;
}

.confirm-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.confirm-buttons button {
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

#confirmYes {
  background: var(--text-link);
  color: var(--text-light);
}
#confirmYes:hover {
  background: var(--text-link);
}

#confirmNo {
  background: var(--plan);
  color: var(--text-dark);
}
#confirmNo:hover {
  background: #d1d5db;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}



/* === Boutons === */
button {
  padding: 10px 14px;
  border: 0;
  border-radius: 2px;
  background: var(--text-link);
  color: var(--text-light);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  margin-top:15px;
  text-transform: uppercase;
  font-weight: 600;
}
button:hover{background: var(--button-hover);}

button.accordion-btn{background:none;text-transform:none;}
button.btn_action{background:var(--btn-action);}
button.btn_action:hover{background: var(--btn-action-hover);}

#loader span{color:var(--btn-action);}


button.btn_modifier{
    background:none!important;
    color:var(--text-dark);
    padding:0px;
    margin-right:10px;
  }
button.btn_modifier:hover{
    background: var(--text-light);
}

button.accordion-btn:hover{
    background: var(--tr-hover);
  }

/* === Conseils IA (GPT) === */
.advice-box {
  background: var(--bleu-light);
  color: var(--text-link);
  border-radius: 2px;
  padding: 16px 18px;
  margin-top: 16px;
  line-height: 1.6;
  font-size: 16px;
}

.advice-box h4 {
  margin-top: 0;
  color: var(--text-link);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.advice-box ul {
  margin: 10px 0 0 20px;
  padding: 0;
}

.advice-box li {
  margin-bottom: 6px;
}


.loader {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--gris);
  border-top: 2px solid var(--btn-action);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}


/* step  */

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.step {
    padding: 10px;
    border-radius: 2px;
    background: #eee;
    text-align: center;
    flex: 1;
    margin: 0 5px;
    text-transform: uppercase;
}
.step .number{
  font-size:35px;
  font-family:  Tahoma, sans-serif;
}

.step.active {
    background-color: var(--main-color);
    color: var(--text-link);
}


/* pour la génération des email  */

.ai-result {
  display: grid;
  gap: 24px;
  margin-top: 30px;
}
.email-card {
  background: var(--tr-hover);
  border: 0px solid var(--gris);
  border-radius: 2px;
  padding: 20px;

  animation: fadeIn 0.4s ease;
}
.email-card h3 {
  margin-top: 0;
  color: var(--text-link);
  display: flex;
  align-items: center;
  gap: 6px;
}
.email-section {
  margin-top: 10px;
}
.ai-banner {
  background: var(--bleu-light);
  color: var(--text-link);
  padding: 10px 14px;
  border-radius: 2px;
  margin-bottom: 16px;
  font-weight: 500;
}
.signature-block {
  border-top: 1px solid var(--gris);
  margin-top: 12px;
  padding-top: 8px;
  font-size: 14px;
  color: var(--black);
  line-height: 1.5;
}
#bottom-actions {
  text-align: right;
  margin-top: 20px;
}



footer{
  padding:40px 20px;
  margin-top:20px;
  background: var(--tr-hover);
  border: 1px solid var(--gris);
  border-bottom: none;
  border-radius: 2px;  
  height: fit-content;
  

}


@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes fadeIn {
  from {opacity:0; transform: translateY(10px);}
  to {opacity:1; transform: translateY(0);}
}

/* --------- credits ----------- */
.pricing {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.plan {
  background: var(--text-light);
  border: 1px solid var(--planr);
  border-radius: 2px;
  padding: 30px;
  width: 250px;
  text-align: center;

  transition: transform 0.2s ease;
}

.plan:hover {
  transform: translateY(-5px);
}

.plan h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
}
.plan .price {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 10px;
}



.plan button {
  background: var(--text-link);
  color: var(--text-light);
  
}

.plan button:hover {
  background: var(--text-link);
}

/*config   */
.config{
  margin-top:0px;
  background-color:var(--text-link)!important;
  color:var(--text-light);

}
.config a,
.config li.submenu a{
  color:var(--text-light);
}

.config a:hover,
.config li.submenu a:hover{
  color:var(--main-color);
}




/* === BOUTON BURGER === */
input.menu-toggle {
  display: none!important;
}

/* Style du bouton burger */
.burger {
  display: none; /* caché sur desktop */
  cursor: pointer;
  width: 28px;
  height: 22px;
  position: absolute;
  right: 15px;
  top: 9px;
  z-index: 2500;
}

.burger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--main-color);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* === BOUTON BURGER === */
input.menu-toggle {
  display: none !important;
}

/* Bouton burger */
.burger {
  display: none;
  cursor: pointer;
  width: 28px;
  height: 22px;
  position: fixed;       
  right: 15px;
  top: 1px;             
  z-index: 2501;      
}

.burger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--main-color);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}


/* === Responsive === */
  @media screen and (max-width: 768px) {

    html, body {
      overflow-x: hidden !important;
      width: 100% !important;
      max-width: 100% !important;
    }

    /* Le header reste visible */
    header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100% !important;
      z-index: 1500;
    }

    nav{
      margin-right:40px;
    } 

    nav [data-lucide]
    {
      width: 20px;
      height: 20px;
      padding-bottom: 0px;
      margin-right:0px;
    }

    aside.nav [data-lucide]
    {
      width: 35px;
      height: 35px;
      padding-bottom: 0px;
      margin-right:0px;
    }

    /* Sidebar mobile */
    .sidebar {
      position: fixed;
      top: 0;
      left: -95%;          
      width: 95%;
      background-color: var(--main-color);
      transition: left 0.3s ease;
      z-index: 1200;
      overflow-y: auto;    
      max-height: calc(100vh - 10px); 
      padding-top: 40px;
      padding-bottom: 60px; 
      box-sizing: border-box;
    }


    
  /* menu */
  .sidebar li.menu a {
      padding-top:12px;
      padding-bottom:7px;
      font-size: 24px;
      line-height: 40px;
    }
    .sidebar li.submenu a {
      padding-top:5px;
      padding-bottom:5px;
      padding-left:30px;
      font-size: 22px;
    }
    .sidebar li.stats{
      text-transform: uppercase;
      color: var(--text-link);
      padding-left:22px;
    }
 

    .smartphone, .logo{
        display: none;
    }

    /* contenu du site   */
    .contenu{
      padding: 25px 15px;
    }
    h3{
      font-size:18px;
    }


    /* Quand le menu est coché, affiche la sidebar */
    .menu-toggle:checked ~ .dashboard-layout .sidebar {
      left: 0;
    }

    /* Animation du burger */
    .menu-toggle:checked + .burger span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle:checked + .burger span:nth-child(2) {
      opacity: 0;
    }
    .menu-toggle:checked + .burger span:nth-child(3) {
      transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Empêche le scroll quand menu ouvert */
    .menu-toggle:checked ~ body {
      overflow: hidden;
    }

    /* Le burger visible sur mobile */
    .burger {
      display: block;
    }

    /* Dashboard content plein écran */
    .dashboard-content {
      width: 100% !important;
      flex: none !important;
      display: block !important;
    }
    .step .libelle{
      display: none;
    }

 

}




@media screen and (max-width: 1000px) {


  /* contenu du site   */
    .contenu{
      padding: 25px 15px;
    }
  /* force les colonnes du formulaire à s'empiler */
  .grilledeux {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  /* idem pour les sous-grilles (checkbox + bouton) */
  .grid2 {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 15px !important;
  }

  /* boutons pleine largeur */
  .grid2 button,
  .grid2 input[type="submit"] {
    width: 100% !important;
  }

   /* ========================= */
/* TABLEAU RESPONSIVE MOBILE */
/* ========================= */

      table {
    border: 0;
    }

    /* Cache l'en-tête du tableau */
    table thead {
      display: none;
    }

    /* Chaque ligne devient un bloc séparé */
    table tr {
      display: block;
      margin-bottom: 1rem;
      border: 1px solid var(--gris);
      border-radius: 10px;
      padding: 10px;
      background: var(--text-light);
      box-shadow: 0 2px 5px var(--box-shadow);
    }

    /* Chaque cellule occupe toute la largeur */
    table td {
      display: block;
      text-align: left;
      padding: 2px 10px;
      font-size: 15px;
      border: none;
      border-bottom: 0px solid var(--td-bottom);
    }

    /* Supprime la bordure sur la dernière cellule */
    table td:last-child {
      border-bottom: none;
    }

    /* Si tu veux afficher le nom de la colonne devant chaque donnée : */
    table td::before {
      content: attr(data-label);
      font-weight: 600;
      display: block;
      color: var(--text-link);
      margin-bottom: 2px;
    }

}



