
@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&display=swap');

/* ========== GLOBAL ========== */
html, body {
  height: 100%; /* Important pour position: sticky */
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: white; /* Mode Jour par défaut */
  overflow-x: hidden;
  position: relative;
  transition: background 0.3s ease, color 0.3s ease; /* Transition douce pour le changement de thème */
}

/* ========== NOUVEAUX STYLES POUR LE MODE NUIT (INTACTS) ========== */
body.dark-mode {
  background: #1a1a1a; /* Couleur de fond sombre */
  color: #f0f0f0; /* Couleur de texte claire */
}

body.dark-mode .header-bar {
  background: #2a2a2a;
  border-bottom-color: #444;
}

body.dark-mode .logo-black {
  -webkit-text-stroke-color: #f0f0f0; /* Contour blanc pour le logo en mode nuit */
  text-stroke-color: #f0f0f0;
}

body.dark-mode .logo-friday {
  color: #f0f0f0; /* Texte blanc pour le logo en mode nuit */
}

body.dark-mode .input-field {
  background: #3a3a3a;
  color: #f0f0f0;
  border-color: #555;
}

body.dark-mode .btn-group button {
  background-color: #3a3a3a;
  color: #f0f0f0;
  border-color: #555;
}

body.dark-mode .btn-group button:hover {
  background-color: #4a4a4a;
  border-color: #666;
}

body.dark-mode .btn-group button.active {
  background-color: #007bff; /* Garde la couleur active pour la lisibilité */
  border-color: #007bff;
}

body.dark-mode .reset-icon .fas {
  color: #f0f0f0; /* Icône de réinitialisation claire */
}

body.dark-mode .theme-toggle {
  color: #f0f0f0; /* Icône du thème claire en mode nuit */
}

body.dark-mode .preview-box {
  background: #2a2a2a;
  border-color: #444;
}

body.dark-mode .ads-column {
    background: #222; /* Mode nuit pour les colonnes de pub */
    color: #f0f0f0;
}

body.dark-mode .footer-band {
  color: #bbb;
}

body.dark-mode .actions a {
  background: #555; /* Boutons d'action un peu plus clairs en mode nuit */
  color: #f0f0f0;
}

body.dark-mode .site-footer {
  color: #bbb;
}

body.dark-mode .slide-ad-container { /* Style pour la pub en mode nuit */
    background: #111;
}
/* ========== FIN DES STYLES POUR LE MODE NUIT ========== */

.donate {
  background-color: #000; /* noir au repos */
  color: #fff;            /* texte blanc */
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.donate:hover {
  background-color: #007BFF; /* bleu vif au survol */
  color: #fff;               /* texte blanc */
  transform: scale(1.05);    /* léger zoom pour le dynamisme */
}


.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none; /* ?? essentiel pour la masquer au départ */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  text-align: center;
  font-family: sans-serif;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.popup-content button {
  margin-top: 20px;
  padding: 10px 20px;
  background: #007BFF;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}








/* ========== HEADER ========== */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #fff; /* Assurez-vous qu'il y a un background solide */
  border-bottom: 1px solid #ccc;
  position: sticky; /* Rend le header sticky */
  top: 0;           /* Le fixe en haut de la fenêtre d'affichage */
  width: 100%;      /* S'assure qu'il prend toute la largeur */
  box-sizing: border-box; /* IMPORTANT : Inclut padding et border dans la largeur totale */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Ajoute une légère ombre pour le distinguer du contenu */
  z-index: 1000;    /* S'assure qu'il reste au-dessus du reste du contenu */
  min-height: 80px; /* Augmentez cette hauteur si le logo "font" est coupé ou ne déborde pas assez */
}

/* NOUVEAUX STYLES POUR LE LOGO TEXTE (MODIFIÉS) */
.logo-text {
  font-weight: bold;
  margin: 0 auto;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: fit-content;
}

.logo-line {
  display: inline-block;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.logo-black, .logo-friday {
  font-family: 'Arial Black', sans-serif;
  font-size: 40px;
  text-transform: uppercase;
  line-height: 1;
  display: inline-block;
  vertical-align: top;
}

.logo-black {
  color: white;
  -webkit-text-stroke: 2px black;
  text-stroke: 2px black;
  margin-right: 10px;
}

.logo-friday {
  color: black;
}

.logo-font {
  font-family: 'Alex Brush', cursive;
  font-size: 50px;
  transform: translateX(-50%) rotate(-15deg); /* ? nouvelle version */
  transform-origin: bottom left;
  display: inline-block;
  color: #0099fb;
  white-space: nowrap;
  position: absolute;
  left: 50%;
  top: 15px;
  z-index: 10;
}

/* FIN DES NOUVEAUX STYLES POUR LE LOGO TEXTE */


/* MODIFICATION ICI : POUR QUE LA ZONE DE SAISIE PRENNE PLUS DE PLACE */
.input-field {
  border: 1px solid #ccc;
  padding: 5px 10px;
  border-radius: 5px;
  background: #fff;
  flex-grow: 1; /* Permet au champ de prendre tout l'espace disponible */
  margin: 0 15px; /* Ajoute un peu d'espace à gauche et à droite pour le séparer des autres éléments */
  max-width: 400px; /* Limite sa largeur maximale pour ne pas qu'il soit trop grand sur de très larges écrans. Ajustez si besoin. */
}

/* STYLES MODIFIÉS POUR LES BOUTONS AA Aa aa */
.btn-group button {
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  color: #333;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  text-decoration: none;

  padding: 8px 15px;
  margin: 0 4px;
  border-radius: 6px;

  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: all 0.2s ease-in-out;
}

.btn-group button:hover {
  background-color: #eaeaea;
  border-color: #c0c0c0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.btn-group button.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
  box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
  pointer-events: none;
}
/* FIN DES STYLES MODIFIÉS POUR LES BOUTONS */


.sliders {
  display: flex;
  align-items: center;
  margin-left: 15px; /* Ajoute un peu d'espace à gauche des sliders si nécessaire */
}

.reset-icon {
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px; /* Ajoute un peu d'espace à gauche de l'icône de rafraîchissement */
}

.reset-icon .fas {
  font-size: 1.2em;
  color: #333;
}

/* NOUVEAUX STYLES POUR L'ICÔNE DU MODE JOUR/NUIT */
.theme-toggle {
  cursor: pointer;
  font-size: 1.5em; /* Taille de l'icône */
  color: #333; /* Couleur par défaut (mode clair) */
  margin-left: 20px; /* Espace à gauche pour séparer des autres éléments */
  transition: color 0.3s ease; /* Transition douce pour la couleur de l'icône */
}

.theme-toggle:hover {
  color: #007bff; /* Changement de couleur au survol */
}

/* FIN DES NOUVEAUX STYLES POUR L'ICÔNE DU MODE JOUR/NUIT */


/* ========== LAYOUT ========== */
.main-content {
  /* AUGMENTATION DE LA HAUTEUR DU PADDING-TOP POUR ACCOMMODER LE LOGO QUI DÉPASSE */
  /* La hauteur réelle du header avec le logo qui dépasse sera plus grande */
  padding-top: 20px; /* J'ai augmenté pour anticiper la nouvelle hauteur du logo. Ajustez si besoin. */
  margin: 0 260px;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
  z-index: 1;
}

.ads-column {
  position: fixed;
  top: 100px;
  bottom: 0;
  width: 140px; /* Réduction pour ajouter de l’espace */
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  z-index: 100;
  padding: 20px; /* Aération interne */
}

.ads-left {
  left: 40px; /* ? Petit retrait du bord gauche */
}

.ads-right {
  right: 40px; /* ? Petit retrait du bord droit */
}

/* ========== PREVIEWS ========== */
.preview-box {
  background: #f9f9f9;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.preview-text-display {
  font-size: 64px;
  text-align: center;
  margin-bottom: 10px;
  word-wrap: break-word; /* Pour les navigateurs plus anciens, gère le wrap de longs mots */
  word-break: break-all; /* Force la coupure des mots longs pour qu'ils ne débordent pas */
}

.footer-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.actions a {
  background: #000;
  color: white;
  padding: 6px 12px;
  margin-left: 10px;
  text-decoration: none;
  border-radius: 5px;
}

/* ========== FOOTER ========== */
.site-footer {
  background-color: #fff;
  color: #000;
  text-align: center;
  padding: 20px;
}

.contact-button {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.contact-button:hover {
  background-color: #f9f9f9;
}
.dark-mode .site-footer {
  background-color: #222;
  color: #ddd;
}

/* ========== SLIDE-IN AD (PUB) ========== */
.slide-ad-container {
  position: fixed;
  top: 0;
  right: -100%;
  width: 400px;
  height: 100vh;
  background: #000;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  transition: right 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-ad-container.show {
  right: 0;
}

.slide-ad-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}.logo-text {
  position: relative;
  text-align: center;
  width: fit-content;
  margin: 0 auto;
}
/* ========== RESPONSIVE ========== */
@media screen and (max-width: 1024px) {
  .main-content {
    margin: 0 20px;
  }
  
  .ads-column {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .header-bar {
    flex-direction: column;
    align-items: center;
    padding: 15px;
  }

  .logo-font {
    font-size: 36px;
    top: 10px;
    transform: translateX(-50%) rotate(-10deg);
  }

  .logo-text {
    margin-bottom: 10px;
  }

  .btn-group {
    margin-top: 10px;
  }
}

