body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-size: cover; /* Ajuste pour remplir tout l'écran */
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed; /* Pour que l'image reste fixe pendant le scroll */
}


#languageButtons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    background-color: black;
    padding: 8px 15px;
    box-sizing: border-box;
    margin: 0;
}

#logoScrollx {
    margin-right: auto; /* Pousse tout le reste vers la droite */
    font-family: Arial Black, sans-serif;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
}

#logoScroll {
    color: #ff2d55; /* Rouge/rose */
}

#logoX {
    color: #ffffff; /* Blanc */
}

#scrollxText {
    position: absolute;
    top: 15px;
   right: 1200px;
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    font-size: 25px;
    font-weight: bold;
    color: white;
    z-index: 9999; /* Pour qu'il soit toujours au premier plan */
}

#typewriterText {
  position: absolute;
  top: 70px;
 left: 50%;
    transform: translateX(-50%);
  text-align: center;
  color: black;
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 22px;
  line-height: 1.3;
  white-space: pre;
  z-index: 99999999;
  pointer-events: none;
}

.typewriter-cursor {
  display: inline-block;
  width: 8px;
  background-color: black;
  animation: blink 1s step-start infinite;
  margin-left: 3px;
  height: 1em;
  vertical-align: bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}


.circular-text {
    position: absolute; /* Utilisez absolute pour éviter le déplacement avec la page */
    top: 90px; /* Positionné à 50px du haut */
    left: 780px; /* Décalage de 800 pixels depuis la gauche */
    width: 80px; /* Diamètre du cercle */
    height: 100px; /* Ajustez en fonction de la taille */
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(0deg); /* Assurez-vous que le conteneur ne se déplace pas */
     z-index: 10; /* Positionne le cercle au-dessus des autres éléments */
}

.circular-text .char {
    position: absolute; /* Les caractères doivent être positionnés absolument pour rester en place */
    width: 100%; /* Assurez-vous que les caractères utilisent la largeur du conteneur */
    height: 100%; /* Assurez-vous que les caractères utilisent la hauteur du conteneur */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35 px;
  font-family: 'Arial Black', Arial, sans-serif; /* Utilise Arial Black */
    transform-origin: center; /* Le centre du cercle pour le pivotement */
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}




.circular-text {
    animation: rotate 10s linear infinite; /* Animation continue */
}

.char {
    transform: rotate(0deg) translateY(-80px); /* Positionner les caractères autour du centre */
}

.char:nth-child(1) { transform: rotate(0deg) translateY(-80px); }
.char:nth-child(2) { transform: rotate(15deg) translateY(-80px); }
.char:nth-child(3) { transform: rotate(30deg) translateY(-80px); }
.char:nth-child(4) { transform: rotate(45deg) translateY(-80px); }
.char:nth-child(5) { transform: rotate(60deg) translateY(-80px); }
.char:nth-child(6) { transform: rotate(75deg) translateY(-80px); }
.char:nth-child(7) { transform: rotate(90deg) translateY(-80px); }
.char:nth-child(8) { transform: rotate(105deg) translateY(-80px); }
.char:nth-child(9) { transform: rotate(120deg) translateY(-80px); }
.char:nth-child(10) { transform: rotate(135deg) translateY(-80px); }
.char:nth-child(11) { transform: rotate(150deg) translateY(-80px); }
.char:nth-child(12) { transform: rotate(165deg) translateY(-80px); }
.char:nth-child(13) { transform: rotate(180deg) translateY(-80px); }
.char:nth-child(14) { transform: rotate(195deg) translateY(-80px); }
.char:nth-child(15) { transform: rotate(210deg) translateY(-80px); }
.char:nth-child(16) { transform: rotate(225deg) translateY(-80px); }
.char:nth-child(17) { transform: rotate(240deg) translateY(-80px); }
.char:nth-child(18) { transform: rotate(255deg) translateY(-80px); }
.char:nth-child(19) { transform: rotate(270deg) translateY(-80px); }
.char:nth-child(20) { transform: rotate(285deg) translateY(-80px); }
.char:nth-child(21) { transform: rotate(300deg) translateY(-80px); }
.char:nth-child(22) { transform: rotate(315deg) translateY(-80px); }
.char:nth-child(23) { transform: rotate(330deg) translateY(-80px); }
.char:nth-child(24) { transform: rotate(345deg) translateY(-80px); }

label[for="font-color"] {
    color: black; /* Définir la couleur du texte du label en blanc */
}

.ulule-english-link {
    position: absolute;
    top: 40px;
    left :  100px;

}

#socialLinks {
    position: static;
    margin-left: 0;
    top: auto;
    display: flex;
    align-items: center;
}


#socialLinks img {
    width: 33px;
    margin-left: 0;
    top: auto;
}

#socialLinksa {
    position: static;
    margin-right: 0;
    top: auto;
    display: flex;
    align-items: center;
}


#socialLinksa img {
    width: 37px;
    margin-left: 0;
    position: static;
    top: auto;
}

#contactLink {
    position: static;
    width: auto;
    margin-left: 0;
    top: auto;
    color: white;
    font-size: 20px;
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    text-decoration: none;
    white-space: nowrap;
}

#countdownDisplay {
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
    width: auto; /* Permet au conteneur de s'adapter automatiquement à la taille du texte */
}


#highlightedBlock {
  position: absolute; /* Changer la position en absolute */
 top: 320px; /* Ajustez la position verticale selon vos besoins */
  left: 360px; /* Ajustez la position horizontale selon vos besoins */
  background-color:  #424242; /* Couleur de fond grise */
  padding: 20px; /* Ajouter un espacement intérieur pour séparer le contenu du bord */
  text-align: center; /* Centrer le contenu horizontalement */
  margin: 0 auto; /* Centrer le bloc horizontalement */
  width: 1400px; /* Définir une largeur maximale pour le bloc afin qu'il ne s'étende pas indéfiniment */
  height: 170px; /* Définir une hauteur minimale pour le bloc */
   border-radius: 15px; /* Ajouter des coins arrondis de 15px */
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5); /* Ajouter une ombre en relief */

}



#scrollingText {
    position: absolute; /* Changer la position en absolute */
    left: 20px; /* Ajustez la position horizontale selon vos besoins */
    top: -60px; /* Ajustez la position verticale selon vos besoins */
    font-family: 'Arial';
    font-size: 28px;
    color: black;
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
    background-color: #46ff33; /* Ajout de la couleur orange */
    z-index: 999; /* Assure que le texte reste au-dessus des autres contenus */
}

label[data-fr="Police de caractère :"],
label[data-en="Font Family:"],
label[data-fr="Taille de la police :"],
label[data-en="Font Size:"],
label[data-fr="Couleur du texte :"],
label[data-en="Text Color:"],
label[data-fr="Vitesse de défilement :"],
label[data-en="Scroll Speed:"], /* Ajouter une virgule ici */
label[data-fr="Couleur bandeau:"],
label[data-en="Banner Color:"],
label[data-fr="Position verticale texte:"],
label[data-en="Right text box:"],
label[data-fr="Position horizontale texte:"],
label[data-fr="Zone de texte droite :"],
label[data-en="Left text box :"],
label[data-fr="Zone de texte gauche :"],
label[data-en="Filters:"],
label[data-fr="Filtres :"]




{
    color: white; /* Définir la couleur du texte en blanc pour les labels spécifiés */
}



/* Style pour les boutons (optionnel) */
button {
    margin-top: 80px; /* Ajustez l'espacement vertical entre les boutons */
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}




#languageButtons a {
    position: static;
    margin-left: 0;
    margin-top: 0;
    font-size: 20px;
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    color: white;
    text-decoration: none;
    white-space: nowrap;
}


#languageButtons a:hover {
    color:#FF7F00; /* Couleur bleue au survol */
}



#videoLink {
    position: static;
    right: auto;
    top: auto;
    color: white;
    font-size: 20px;
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    text-decoration: none;
    white-space: nowrap;
}

#mentionLink:hover {
    color:#FF7F00; /* Couleur bleue au survol */
}

#mentionLink {
    position: static;
    right: auto;
    top: auto;
    color: white;
    font-size: 20px;
    font-family: Arial Black, sans-serif;
    text-decoration: none;
    white-space: nowrap;
}


#videoLink:hover {
    color:#FF7F00; /* Couleur bleue au survol */
}
#flagButtons {
    display: flex;
    gap: 3px;
    margin-left: -0px; /* Ajustez cette valeur pour déplacer les deux drapeaux vers la gauche */
}

#btnFrench,
#btnEnglish {
    background-color: #0000ff;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 7px 9px;
    font-size: 20px;
    color: white;
    margin: 0;
}

.settings-panel {
    position: absolute;
    left: 3%; /* Utilisation de pourcentage pour la position horizontale */
     top: 320px; /* Positionnement absolu en pixels */
     width: 30%; /* Utilisation de pourcentage pour la largeur */
    max-width: 250px; /* Largeur maximale pour s'adapter aux tailles d'écran plus petites */
    background-color:  #424242;
    padding: 10px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
  border-radius: 15px; /* Ajouter des coins arrondis de 15px */
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5); /* Ajouter une ombre en relief */

}

#textInput {
  margin-top: 40px; /* Déplacer l'élément de 300px depuis le haut */
}



.settings-panel button,
.settings-panel label,
.settings-panel select,
.settings-panel input {
    margin: 5px 0;
}

#copyrightText {
    position: absolute;
    font-family: Arial black, sans-serif;
    font-size: 15px;
     color: black;
    left:96px;
    top: 290px; /* Vous pouvez ajuster cette valeur selon votre besoin */
  z-index: 2;
}


#otherDisplayedImage {
    position: absolute;
    top: 65px;
    left: 18%;
    transform: translateX(-50%);
    max-width: 30%;
    height: auto; /* Pour conserver les proportions de l'image */

}

#additionalText {
    width: 99% !important;
    margin-top: 300x;
    margin-left: 4px;
    margin-right: 4px;
}

.text-instructions-left {
    margin-bottom: 20px;
}

.container {
    text-align: center;
    margin-top: 30px;
  display: flex;
    justify-content: center;
  position: relative; /* Ajout de la position relative */

}

.text-input-container {
    position: relative; /* Position relative pour positionner l'image container */
}

.image-container {
    position: absolute;
    top: 540px;
    display: block;
    left: 360px;
    overflow: hidden;
    width: 50%; /* Utiliser la largeur maximale disponible */
    max-height: 1900px; /* Limiter la hauteur si nécessaire */


}

  
.image-container,
#videoPreview {
    position: absolute;
    top: 540px;
    right: 23px;
    max-width: 39%; /* Utiliser la largeur maximale disponible */
    height: auto; /* Pour conserver les proportions de la vidéo ou de l'image */
    display: inline-block; /* Ajout de cette propriété pour aligner les deux blocs horizontalement */
    vertical-align: middle;
}


textarea {
    width: 73%;
    height: 90px;
    resize: none;
    margin-bottom: 0px;
}

#displayedImage {
    max-width: 100%;
    max-height: 1900px;
    display: none;
    margin: 0 auto;
    vertical-align: middle;
}

button {
    background-color: #d35400;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 7px 9px;
    font-size: 13px;
    margin: 20px;
    color: white;
}


button:hover {
    background-color: #0000ff; /* Changement de couleur en bleu au survol */
}


.controls {
    margin-top: 100px;
}

label {
    margin-right: 100px;
}

.scroll-speed {
    width: 100px;
}


@keyframes scroll {
  from {
    left: var(--startPosition, 100%);
  }
  to {
    left: var(--endPosition, -100%);
  }
}

.text-block {
    margin-top: 390px;
    text-align: left;
    margin-left: 140px;
    margin-right: 540px;
}



.custom-button a {
    position: absolute;
    text-decoration: none;
    top: 335px; /* Reprend la même valeur que .text-block a */
    left:790px; /* Ajoute 20px à la valeur de left de .text-block a */
    background-color: #FF7F00;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 9999; /* Valeur élevée pour placer le lien en premier plan */

}


.custom-button a:hover {
    background-color: #0066cc; /* Couleur de survol différente */
}

.text-block a {
    position: absolute;
    top: 335px;
   left:370px; /* Ajustez la distance à droite en ajoutant la marge du bloc .text-block */
    text-decoration: none;
    background-color: #FF7F00;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
  z-index: 9999; /* Valeur élevée pour placer le lien en premier plan */
}


.text-block a:hover {
    background-color: #0066cc; /* Couleur de survol différente */
}

.text-instructions {
    text-align: center;
}

.text-instructions p {
    display: inline-block;
}

.text-instructions-left {
    text-align: left;
}

.text-instructions-left p {
    display: inline-block;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    top: 600px;
    left: 400px;
    width: 35%;
    height: 100px; /* Ajustez la hauteur selon vos besoins */
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
  z-index: 2;
}


.cookie-buttons button {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    margin-right: 10px;
}

.cookie-buttons a {
    color: #fff;
    text-decoration: underline;
    cursor: pointer;
}
        /* Ajoutez le style pour la boîte modale ici */
        #modal {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color:#333;
            padding: 20px;
            border: 1px solid #000;
            z-index: 9999;
        }

        #modalClose {
            position: absolute;
            top: 10px;
            right: 10px;
            cursor: pointer;
        }

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.text-container {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.text {
    color: black;
}


#backgroundWoman {
    position: absolute;
    top: -260px;
    left: 950px;
    width: auto;
    max-width: 150px;
    height: auto;
    z-index: 1;
    pointer-events: none;
}



.container.text-input-container {
    position: relative; /* Gardez la position relative pour positionner l'image container */
    right:24%; /* Ajustez cette valeur selon vos besoins */
}


/* =========================================================
   Scrollx – style-pro.css
   À charger APRÈS style.css :
   <link rel="stylesheet" href="style.css">
   <link rel="stylesheet" href="style-pro.css">

   Ne touche PAS au bandeau du haut (#languageButtons et ses
   enfants : logo, liens, drapeaux, connexion, CGU, abonnements).
   Les positions (absolute, top, left…) sont conservées.
   ========================================================= */

:root {
  --sx-panel-top: #1d2c57;
  --sx-panel-bottom: #121d3d;
  --sx-border: rgba(255, 255, 255, 0.12);
  --sx-text: #eef2ff;
  --sx-text-soft: #b9c7ee;
  --sx-accent: #ff7a1a;
  --sx-violet: #7b2ff7;
  --sx-cyan: #00aaff;
  --sx-radius: 10px;
  --sx-font: 'Figtree', 'Outfit', 'Segoe UI', Arial, sans-serif;
}

/* ---------- Panneaux (réglages + zone de saisie) ---------- */
.settings-panel,
#highlightedBlock {
  background: linear-gradient(180deg, var(--sx-panel-top) 0%, var(--sx-panel-bottom) 100%);
  border: 1px solid var(--sx-border);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(8, 16, 40, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-family: var(--sx-font);
  color: var(--sx-text);
}

.settings-panel {
  padding: 16px;
}

/* ---------- Labels ---------- */
.settings-panel label,
.settings-panel label[for="font-color"] {
  display: block;
  margin: 10px 0 2px;
  color: var(--sx-text-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

#leftTextValue,
#rightTextValue {
  color: var(--sx-text);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

/* ---------- Champs : nombre, liste déroulante ---------- */
.settings-panel input[type="number"],
.settings-panel select {
  width: 100%;
  box-sizing: border-box;
  margin: 2px 0 4px;
  padding: 9px 12px;
  background-color: rgba(255, 255, 255, 0.07);
  color: var(--sx-text);
  border: 1px solid var(--sx-border);
  border-radius: 8px;
  font-family: var(--sx-font);
  font-size: 14px;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.settings-panel select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b9c7ee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.settings-panel select option {
  background: #16224a;
  color: #fff;
}

.settings-panel input[type="number"]:hover,
.settings-panel select:hover {
  background-color: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.28);
}

/* ---------- Sélecteurs de couleur ---------- */
.settings-panel input[type="color"] {
  width: 100%;
  height: 36px;
  box-sizing: border-box;
  padding: 3px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--sx-border);
  border-radius: 8px;
  cursor: pointer;
}
.settings-panel input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.settings-panel input[type="color"]::-webkit-color-swatch { border: none; border-radius: 5px; }
.settings-panel input[type="color"]::-moz-color-swatch { border: none; border-radius: 5px; }

/* ---------- Choix de fichier (image) ---------- */
.settings-panel input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  margin: 8px 0;
  padding: 6px;
  color: var(--sx-text-soft);
  font-family: var(--sx-font);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
}
.settings-panel input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 7px 12px;
  color: #fff;
  font-family: var(--sx-font);
  font-weight: 700;
  font-size: 12px;
  background: linear-gradient(135deg, var(--sx-violet), var(--sx-cyan));
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* ---------- Curseurs (sliders) ---------- */
.settings-panel input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 10px 0;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
.settings-panel input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--sx-violet), var(--sx-cyan));
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  cursor: grab;
  transition: transform 0.12s ease;
}
.settings-panel input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.settings-panel input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; }
.settings-panel input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, var(--sx-violet), var(--sx-cyan));
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: grab;
}

/* ---------- Boutons du panneau de réglages ---------- */
.settings-panel button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 5px 0;
  padding: 10px 14px;
  font-family: var(--sx-font);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--sx-border);
  border-radius: 10px;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.settings-panel button:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}
.settings-panel button:active {
  transform: translateY(0);
}

/* Réinitialiser : discret */
.settings-panel #resetSettingsButton {
  background: transparent;
  color: var(--sx-text-soft);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.settings-panel #resetSettingsButton:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Actions principales : création / enregistrement */
.settings-panel #startPreview,
.settings-panel #saveVideo {
  padding: 12px 14px;
  font-size: 14px;
  background: linear-gradient(135deg, var(--sx-violet), var(--sx-cyan));
  border: none;
  box-shadow: 0 6px 16px rgba(0, 120, 255, 0.35);
}
.settings-panel #startPreview:hover,
.settings-panel #saveVideo:hover {
  background: linear-gradient(135deg, #8d47ff, #22b6ff);
  box-shadow: 0 8px 22px rgba(0, 150, 255, 0.5);
}

/* ---------- Bandeau défilant d'annonce ---------- */
#scrollingText {
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(70, 255, 51, 0.35);
  font-family: var(--sx-font);
}

/* ---------- Zone de saisie du texte ---------- */
#textInput {
  box-sizing: border-box;
  padding: 12px 14px;
  background: #f5f8ff;
  color: #14204a;
  caret-color: var(--sx-accent);
  border: 2px solid transparent;
  border-radius: 12px;
  font-family: var(--sx-font);
  font-size: 15px;
  line-height: 1.4;
  box-shadow: inset 0 2px 6px rgba(15, 30, 80, 0.18);
  cursor: text;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#textInput::placeholder {
  color: #7a88b3;
}
#textInput:focus {
  outline: none;
  border-color: var(--sx-accent);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.25), inset 0 2px 6px rgba(15, 30, 80, 0.12);
}

/* ---------- Liens d'action dans le bloc de saisie ---------- */
.text-block a,
.custom-button a {
  padding: 8px 14px;
  background: linear-gradient(135deg, #ff8a1f, #ff6a00);
  color: #fff;
  font-family: var(--sx-font);
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.35);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.text-block a:hover,
.custom-button a:hover {
  background: linear-gradient(135deg, #ff9a3d, #ff7a1a);
  box-shadow: 0 6px 16px rgba(255, 106, 0, 0.5);
  transform: translateY(-1px);
}

/* ---------- Bandeau cookies ---------- */
.cookie-banner {
  background: rgba(18, 29, 61, 0.97);
  border: 1px solid var(--sx-border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(8, 16, 40, 0.5);
  font-family: var(--sx-font);
}
.cookie-banner .cookie-buttons button {
  padding: 9px 16px;
  font-family: var(--sx-font);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.cookie-banner #acceptCookiesBtn {
  background: linear-gradient(135deg, var(--sx-violet), var(--sx-cyan));
}
.cookie-banner #refuseCookiesBtn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.cookie-banner .cookie-buttons button:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
}
.cookie-banner .cookie-buttons a {
  color: var(--sx-text-soft);
  font-size: 13px;
  cursor: pointer;
}
.cookie-banner .cookie-buttons a:hover {
  color: #fff;
}

/* ---------- Fenêtre modale ---------- */
#modal {
  border: 1px solid var(--sx-border);
  border-radius: 14px;
}

/* ---------- Accessibilité : focus clavier visible ---------- */
.settings-panel button:focus-visible,
.settings-panel select:focus-visible,
.settings-panel input:focus-visible,
.text-block a:focus-visible,
.custom-button a:focus-visible,
.cookie-banner a:focus-visible,
.cookie-banner button:focus-visible {
  outline: 3px solid rgba(255, 122, 26, 0.7);
  outline-offset: 2px;
}

/* ---------- Respect des préférences de mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
  .settings-panel *,
  .text-block a,
  .custom-button a,
  .cookie-banner * {
    transition: none !important;
  }
}


/* =========================================================
   CORRECTIF – Fenêtre « En savoir plus » (cookies)
   Hauteur limitée à l'écran, défilement interne,
   bouton de fermeture toujours visible.
   ========================================================= */
#modal {
  box-sizing: border-box;
  width: min(92vw, 700px);
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
  background: #1a1a2e;
  color: #fff;
  border: 1px solid var(--sx-border);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  font-family: var(--sx-font);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  z-index: 100000;
}

#modal::-webkit-scrollbar { width: 8px; }
#modal::-webkit-scrollbar-track { background: #2a2a4e; border-radius: 4px; }
#modal::-webkit-scrollbar-thumb { background: var(--sx-violet); border-radius: 4px; }

/* Bouton × : collé en haut pendant le défilement, sans les marges globales des boutons */
#modal button#modalClose {
  position: sticky;
  top: 0;
  float: right;
  margin: 0 0 8px 8px !important;
  padding: 2px 12px !important;
  width: auto;
  background: #fff;
  color: #14204a;
  border: none;
  border-radius: 8px !important;
  font-size: 24px;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  z-index: 10;
}
#modal button#modalClose:hover {
  background: var(--sx-accent);
  color: #fff;
}

@media (max-width: 600px) {
  #modal { max-height: 85vh; padding: 14px; }
}
