/* Reset */

@font-face {
    font-family: 'Cursive Maternelle';
    src: url('../fonts/2 - Cursive Dumont maternelle(8).otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===============================
   Modal interne (liens sidebar)
   =============================== */

.ct-side-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100000; /* au-dessus du header sticky et de la toolbar */
}

.ct-side-modal.is-open {
  display: block;
}

.ct-side-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.ct-side-modal__panel {
  position: relative;
  width: min(960px, calc(100vw - 24px));
  height: min(80vh, 720px);
  margin: 12vh auto 0;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ct-side-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #f7fbff;
}

.ct-side-modal__title {
  font-family: FredokaOne, sans-serif;
  font-size: 18px;
}

.ct-side-modal__newtab {
  font-family: FredokaOne, sans-serif;
  font-size: 12px;
  text-decoration: none;
  background: #ffe9a6;
  color: #5b3b00;
  padding: 10px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.ct-side-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}

.ct-side-modal__body {
  padding: 0;
  flex: 1;
  overflow: hidden;
}

.ct-side-modal__iframe,
.ct-side-modal__video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.ct-side-modal__hint {
  padding: 14px 16px;
  font-family: FredokaOne, sans-serif;
  font-size: 13px;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .ct-side-modal__panel {
    width: calc(100vw - 16px);
    height: calc(100vh - 24px);
    margin: 12px auto;
    border-radius: 16px;
  }
}


@font-face {
    font-family: 'Belle Allure CM';
    src: url('../fonts/BelleAllureCM-Gros.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Belle Allure Script';
    src: url('../fonts/BelleAllureScript2i-Gros.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Script École';
    src: url('../fonts/scriptcole.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Écriture A';
    src: url('../fonts/EcritureA-Romain.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OpenDyslexic Alta';
    src: url('../fonts/OpenDyslexicAlta-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fredoka One';
    src: url('../fonts/FredokaOne-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Fredoka', sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

/* Header */
.top-header {
  background: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  /* Ancre la position du bouton Instagram pour éviter les chevauchements */
  position: relative;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.title-container {
  display: flex;
  flex-direction: column;
  gap: 5px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Ligne du titre + badge Premium (petit, style bouton Premium) */
.title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.badge-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffca28, #ffb300);
  color: #ffffff;
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}



.logo-small {
  /* Increased logo size by ~30% */
  width: 220px; /* Augmenté de 20% (120 * 1.2 = 144) */
  height: auto;
}

.main-title {
  font-size: 72px;
  font-weight: 700;
  color: #5E7BD9;
  letter-spacing: 1px;
  margin: 0;
}

/* Wordmark COLORITEXT : voyelles rouges, consonnes bleues (clin d'œil à la colorisation) */
.main-title .ct-wordmark { display: inline-block; }
.main-title .ct-letter { display: inline-block; }
.main-title .ct-letter + .ct-letter { margin-left: 1px; }
.main-title .ct-vowel { color: #d74a3a; }
.main-title .ct-consonant { color: #4a79e0; }

.btn-ocr-header {
  padding: 8px 16px;
  background: #E3F2FF;
  border: 1px solid #B2EBF2;
  border-radius: 8px;
  font-family: 'Fredoka', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  color: #333;
  flex-shrink: 0; /* Empêche le bouton de se réduire */
}

.btn-ocr-header:hover {
  background: #B2EBF2;
  border-color: #80DEEA;
}

/* Container */
.app-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 20px;
}

/* Sidebar */
.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sidebar-section {
  background: #E3F2FF;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.sidebar-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}


/* Icône (miniature) dans un titre de bloc */
.sidebar-title-left{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sidebar-icon{
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.10);
}

/* --- Collapsibles (Guide / Modes / Ressources) : rendre la zone clairement cliquable --- */
.ct-collapsible > summary.sidebar-title{
  cursor: pointer;
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0;
  transition: transform 0.18s ease;
}
.ct-collapsible[open] > summary.sidebar-title{
  margin-bottom: 15px;
}
.ct-collapsible > summary.sidebar-title::-webkit-details-marker{
  display: none;
}
@media (hover:hover) and (pointer:fine){
  .ct-collapsible > summary.sidebar-title::after{
    content: "👆";
    font-size: 16px;
    opacity: 0.75;
  }
  .ct-collapsible > summary.sidebar-title:hover{
    transform: translateY(-1px);
  }
}

.guide-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.guide-box {
  padding: 15px;
  background: #E3F2FF;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.guide-box h4 {
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 600;
}

.guide-box p {
  margin-bottom: 8px;
}

.guide-box p:last-child {
  margin-bottom: 0;
}

.guide-slogan {
  color: #00838f !important;
  font-weight: 600 !important;
  text-align: center;
}

.guide-astuce {
  background: #fffde7;
  border-left: 3px solid #fbc02d;
}

/* Mettre en valeur l'astuce (texte en gras) */
.guide-astuce p {
  font-weight: 700;
}

.color-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.color-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
}

.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.color-dot.red { background: #e53935; }
.color-dot.blue { background: #1e88e5; }
.color-dot.green { background: #43a047; }
.color-dot.gray { background: #9e9e9e; }

.letter-examples {
  color: #777;
  font-size: 12px;
  margin-top: 2px;
}

.modes-list {
  list-style: none;
  font-size: 13px;
  line-height: 1.8;
  color: #555;
}


.modes-intro {
  margin: 0 0 6px 0;
  font-size: 13px;
  line-height: 1.4;
  color: #555;
}
/* Main content */
.app-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* Paramètres */
.params-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}

.param-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.param-item label {
  font-size: 14px;
  font-weight: 500;
  color: #555;
}

/* --- Bouton "EXEMPLE" (aligné sur Découverte) --- */
.param-label-row{
  display:flex;
  align-items:center;
  gap:10px;
}

.mode-example-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 10px;
  font-size:12px;
  font-weight:600;
  letter-spacing:0.3px;
  border-radius:14px;
  background:#E8F1FB;
  border:1px solid #CFE2F6;
  color:#2F6FAD;
  text-decoration:none !important;
  line-height:1;
  white-space:nowrap;
  cursor:pointer;
  appearance:none;
}

.mode-example-btn:hover{
  background:#D9E9FB;
  border-color:#C0DAF6;
  text-decoration:none !important;
}

.select-input {
	  padding: 10px 12px;
	  border: 1px solid #ddd;
	  border-radius: 8px;
	  font-family: 'Fredoka', sans-serif;
	  font-size: 14px;
	  background: #FFF8E1; /* Orange très pâle */
  cursor: pointer;
  transition: border-color 0.2s;
}

.select-input:focus {
  outline: none;
  border-color: #FF8C00;
}

.range-input {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #ddd;
  outline: none;
  -webkit-appearance: none;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FF8C00;
  cursor: pointer;
}

.range-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FF8C00;
  cursor: pointer;
  border: none;
}

.checkbox-row {
  display: flex;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Inputs */
.input-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.help-text {
  font-size: 13px;
  color: #777;
  margin-bottom: 0; /* Retirer la marge du paragraphe */
}

.input-group {
  margin-bottom: 15px;
}

.input-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #555;
}

.text-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s;
}

.text-input:focus {
  outline: none;
  border-color: #FF8C00;
}

.textarea-input {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 15px;
  transition: border-color 0.2s;
  /* UX: zone toujours accessible au clic même si un élément flottant
     (tooltip, modal, etc.) se trouve dans le flux.
     On force le plan au-dessus et les interactions. */
  position: relative;
  z-index: 2;
  pointer-events: auto;
  -webkit-user-select: text;
  user-select: text;
  touch-action: manipulation;
}

.textarea-input:focus {
  outline: none;
  border-color: #FF8C00;
}

/* Buttons */
.btn-reset {
  padding: 8px 16px;
  background: #E3F2FF;
  border: 1px solid #B2EBF2;
  border-radius: 8px;
  font-family: 'Fredoka', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  color: #333;
}

.btn-reset:hover {
  background: #B2EBF2;
  border-color: #80DEEA;
}

.btn-colorize {
  /* Bleu plus doux (2 tons plus clairs) */
  background: #7E97EA;
  width: 100%;
  padding: 15px;
  
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(126, 151, 234, 0.25);
}

.btn-colorize:hover {
  background: #6F89E5; /* Variation au survol (reste douce) */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(126, 151, 234, 0.35);
}

.btn-colorize:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.export-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Anti-capture (best effort) : masque furtif lors d'une tentative PrintScreen */
.ct-capture-shield {
  filter: blur(10px);
  opacity: 0.15;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.btn-export {
  padding: 8px 16px;
  background: #E3F2FF;
  border: 1px solid #B2EBF2;
  border-radius: 8px;
  font-family: 'Fredoka', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  color: #333;
}

.btn-export:hover {
  background: #B2EBF2;
  border-color: #80DEEA;
}

/* Export buttons (disabled state used in Découverte) */
.btn-export.is-disabled,
.btn-export[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.2);
}
.btn-export.is-disabled:hover,
.btn-export[aria-disabled="true"]:hover {
  background: #E0F7F5;
  border-color: #B2DFDB;
}


/* Output */
.output-area {
  min-height: 0;
  padding: 20px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1.8;
  /* Premium : sélection libre (utile pour copier / corriger). */
  user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  cursor: text;
}

/* Légende */
.bottom-legend {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #555;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.legend-dot.green { background: #43a047; }
.legend-dot.gray { background: #9e9e9e; }
.legend-dot.red { background: #e53935; }
.legend-dot.blue { background: #1e88e5; }

/* Footer */
.app-footer {
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 12px;
}


.app-footer a,
.app-footer a:visited {
  color: inherit;
}
/* Classes de colorisation */
.voyelle, .c-rouge { color: #e53935; }
.consonne, .c-bleu { color: #1e88e5; }
.digramme, .c-vert { color: #43a047; }
.muet, .c-gris { color: #9e9e9e; }
.noir, .c-noir { color: #000000; }
.vert-sapin, .c-vert-sapin { color: #1b5e20; }

/* Bulles */
.mot-bulle {
  display: inline-block;
  padding: 4px 10px;
  margin: 2px 4px;
  border: 2px solid #757575;
  border-radius: 12px;
  background: transparent;
}


.ligne-bulle {
  display: inline-block;
  padding: 6px 12px;
  margin: 6px 0;
  border: 2px solid #757575;
  border-radius: 12px;
  background: transparent;
}
/* Barre flottante */
.floating-toolbar {
  position: absolute;
  display: none;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  padding: 8px;
  gap: 6px;
  z-index: 1000;
}

.floating-toolbar.visible {
  display: flex;
}

.color-btn {
  width: 32px;
  height: 32px;
  border: 2px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 0;
}

.color-btn:hover {
  transform: scale(1.1);
  border-color: #333;
}

.color-btn.gris { background: #9e9e9e; }
.color-btn.noir { background: #000000; }
.color-btn.vert { background: #43a047; }
.color-btn.bleu { background: #1e88e5; }
.color-btn.rouge { background: #e53935; }
.color-btn.vert-sapin { background: #1b5e20; }

/* Loader */
.loader {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1024px) {
  .top-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  /* Réserve une zone à droite pour le bouton Instagram (positionné en absolu) */
  .title-container{
    width: 100%;
    box-sizing: border-box;
    padding-right: 160px;
  }

  .main-title {
    font-size: 50px;
  }

  

  .app-container {
    grid-template-columns: 1fr;
    padding: 0 10px;
    margin: 10px auto;
  }

  .app-sidebar {
    padding: 0 10px;
  }

  .sidebar-section {
    border-radius: 0;
  }

  .card {
    border-radius: 0;
  }

  .params-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-header {
    padding: 10px;
  }

  /*
    IMPORTANT (mobile) : le bouton Instagram est en position absolue en haut à droite.
    On réserve donc une zone à droite du titre pour éviter le chevauchement avec le badge "Premium".
  */
  .title-container{
    width: 100%;
    box-sizing: border-box;
    padding-right: 140px;
  }

  .header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .main-title {
    font-size: clamp(44px, 12vw, 54px);
  }

  .title-row {
    flex-wrap: wrap;
  }

  .badge-premium {
    margin-top: 6px;
    font-size: 12px;
    padding: 5px 10px;
  }

  

  .btn-ocr-header {
    width: 100%;
    text-align: center;
  }

  .params-row {
    grid-template-columns: 1fr;
  }

  .input-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .help-text {
    margin-bottom: 0;
  }
  /* La légende reste en ligne par défaut, flex-wrap: wrap est suffisant */
}*/
@font-face {
  font-family: 'Cursive Maternelle';
  src: url('../fonts/2 - Cursive Dumont maternelle(8).otf') format('opentype');
  font-feature-settings: "liga" 1, "clig" 1, "calt" 1;
  -moz-font-feature-settings: "liga" 1, "clig" 1, "calt" 1;
  -webkit-font-feature-settings: "liga" 1, "clig" 1, "calt" 1;
  font-variant-ligatures: common-ligatures contextual;
}

@font-face {
  font-family: 'Belle Allure CM';
  src: url('../fonts/BelleAllureCM-Gros.otf') format('opentype');
  font-feature-settings: "liga" 1, "clig" 1, "calt" 1;
  -moz-font-feature-settings: "liga" 1, "clig" 1, "calt" 1;
  -webkit-font-feature-settings: "liga" 1, "clig" 1, "calt" 1;
  font-variant-ligatures: common-ligatures contextual;
}

@font-face {
  font-family: 'Belle Allure Script';
  src: url('../fonts/BelleAllureScript2i-Gros.otf') format('opentype');
  font-feature-settings: "liga" 1, "clig" 1, "calt" 1;
  -moz-font-feature-settings: "liga" 1, "clig" 1, "calt" 1;
  -webkit-font-feature-settings: "liga" 1, "clig" 1, "calt" 1;
  font-variant-ligatures: common-ligatures contextual;
}

@font-face {
  font-family: 'Écriture A';
  src: url('../fonts/EcritureA-Romain.otf') format('opentype');
  font-feature-settings: "liga" 1, "clig" 1, "calt" 1;
  -moz-font-feature-settings: "liga" 1, "clig" 1, "calt" 1;
  -webkit-font-feature-settings: "liga" 1, "clig" 1, "calt" 1;
  font-variant-ligatures: common-ligatures contextual;
}

@font-face {
  font-family: 'Fredoka One';
  src: url('../fonts/FredokaOne-Regular.otf') format('opentype');
}

@font-face {
  font-family: 'OpenDyslexic Alta';
  src: url('../fonts/OpenDyslexicAlta-Regular.otf') format('opentype');
}

@font-face {
  font-family: 'Script École';
  src: url('../fonts/scriptcole.ttf') format('truetype');
  font-feature-settings: "liga" 1, "clig" 1, "calt" 1;
  -moz-font-feature-settings: "liga" 1, "clig" 1, "calt" 1;
  -webkit-font-feature-settings: "liga" 1, "clig" 1, "calt" 1;
  font-variant-ligatures: common-ligatures contextual;
}



/* Section Contact */
.contact-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.logo-contact {
    width: 32px; /* Taille du logo plus petite */
    height: auto;
    flex-shrink: 0;
}

.contact-mail {
    font-size: 13px;
    color: #5E7BD9; /* Couleur du logo Facilire */
    text-decoration: none;
    font-weight: 500;
    word-break: break-all; /* Assure que l'email ne déborde pas */
}

.contact-mail:hover {
    text-decoration: underline;
}



.text-bleu-canard {
    color: #5E7BD9; /* Bleu franc */
    font-weight: 700;
    line-height: 1.2;
}

.guide-box .title-separator {
    margin-bottom: 15px; /* Ajoute un espace après le titre */
    display: block;
}


/* --- Discreet top notice (user request) --- */
.top-notice {
  text-align: center;
  font-family: 'Fredoka', sans-serif;
  font-style: normal;
  font-weight: 700;
  color: #5E7BD9; /* même bleu que le slogan */
  font-size: 0.95rem;
  padding: 6px 10px;
}


/* === FACILIRE hotfix: remove grey background from colorized preview === */
#output, #preview, #result, #colorized, #colorizedText,
.output, .preview, .result, .colorized-output, .bottom-pane,
.pane.bottom, .preview-area, .colorized {
    background: transparent !important;
    background-color: transparent !important;
}
body, html {
    background: #ffffff !important;
    background-color: #ffffff !important;
}
/* If Bootstrap utility classes were used, neutralize them here */
.bg-light, .bg-secondary, .bg-body-tertiary, .bg-gray-100 {
    background: transparent !important;
    background-color: transparent !important;
}



/* === FACILIRE hotfix v2: remove grey background in colorized preview === */
#colorized-output,
.card .output-area,
.output-area {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

/* neutralize nested elements background just in case */
#colorized-output * {
  background: transparent !important;
  background-color: transparent !important;
}

/* keep page background white */
html, body {
  background: #ffffff !important;
  background-color: #ffffff !important;
}


.sub-slogan {
  font-size: 20px;
  font-weight: 400;
  color: #FF9800;
  margin: 4px 0 0 0;

  

  
}


/* === Responsive tweaks (added by ChatGPT, 2025-11-11) === */

/* Prevent horizontal scroll on small screens */
html, body { max-width: 100%; overflow-x: hidden; }

img, svg, canvas, video { max-width: 100%; height: auto; }

/* Stack sidebar and main on narrow screens */
@media (max-width: 960px) {
  .app-container {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 12px;
    margin: 12px auto;
  }
  .app-sidebar {
    order: 2;
  }
  .app-main {
    order: 1;
  }
  .input-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .logo-small {
    width: min(220px, 60vw);
  }
  .main-title {
    font-size: clamp(18px, 4vw, 28px);
    text-align: center;
  }
  .btn-colorize, .btn-export {
    width: 100%;
  }
  .guide-box { padding: 12px; }
  .bottom-legend {
    gap: 12px;
    padding: 12px;
  }
}

/* Extra-small phones */
@media (max-width: 480px) {
  body { font-size: 15px; }
  .app-container { padding: 0 10px; }
  textarea, .output, .preview-box {
    font-size: 16px;
    line-height: 1.4;
  }
  .legend-item { font-size: 12px; }
  .legend-dot { width: 12px; height: 12px; }
}

/* Section Plus de ressources */
.ressources-section {
  margin-top: 10px;
}

.ressources-card {
  background: #F1FBF7;
  border-radius: 16px;
  padding: 18px 16px 20px;
  border: 2px dashed #FFB74D;
  text-align: center;
}

.ressources-card p {
  font-size: 13px;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 18px;
}

.ressources-btn {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFA726, #FFB74D);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16);
}

.ressources-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.22);
}

/* Contact (harmonisé) */
.contact-section .contact-box{
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  padding: 14px 14px;
  border-radius: 16px;
  background: #F1FBF7;
  border: 2px dashed #FFB74D;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}

.contact-section .logo-contact{
  width: 34px;
  height: auto;
  flex-shrink: 0;
}

.contact-section .contact-mail{
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #5E7BD9;
  overflow-wrap: anywhere;
}

.contact-section .contact-mail:hover{
  text-decoration: underline;
}

@media (max-width: 480px){
  .contact-section .contact-box{ padding: 12px; gap: 8px; }
  .contact-section .logo-contact{ width: 28px; }
  .contact-section .contact-mail{ font-size: 13px; }
}
/* --- Coloritext: boutons principaux en vert pistache (override sans régression) --- */
.ct-btn-primary{
  background: #9AD85B !important; /* vert pistache, plus voyant */
  border-color: rgba(0,0,0,0.08) !important;
  color: #FFFFFF !important;
}
.ct-btn-primary:hover{
  background: #8FD34E !important;
}
.ct-btn-primary:active{
  background: #82C742 !important;
}
.ct-btn-primary:focus{
  outline: 3px solid rgba(154,216,91,0.35);
  outline-offset: 2px;
}

/* --- Ressources + contact (compact) : identique gratuit & premium --- */
.resources-compact-card{
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,
    rgba(255, 170, 205, 0.18) 0%,
    rgba(170, 220, 255, 0.18) 45%,
    rgba(255, 215, 140, 0.16) 100%
  );
  border-radius: 16px;
  padding: 12px 12px;
  border: 2px dashed rgba(255, 160, 200, 0.70);
  box-shadow: 0 6px 16px rgba(0,0,0,0.07);
}

.resources-compact-card::before{
  content: "";
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,0.55), transparent 38%),
    radial-gradient(circle at 78% 28%, rgba(255,255,255,0.45), transparent 40%),
    radial-gradient(circle at 30% 85%, rgba(255,255,255,0.42), transparent 42%);
  pointer-events: none;
}

.resources-compact-top,
.resources-compact-divider,
.resources-compact-contact{
  position: relative;
  z-index: 1;
}

.resources-compact-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.resources-compact-text{
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(0,0,0,0.78);
  font-weight: 600;
  text-align: left;
  flex: 1 1 auto;
}

.resources-compact-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF6FB1, #FFB74D);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(255, 111, 177, 0.26);
  flex: 0 0 auto;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.resources-compact-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(255, 152, 0, 0.32);
}

.resources-compact-divider{
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 111, 177, 0.0), rgba(255, 111, 177, 0.35), rgba(255, 183, 77, 0.35), rgba(255, 183, 77, 0.0));
  margin: 10px 0;
}

.resources-compact-contact{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.resources-compact-logo{
  width: 28px;
  height: auto;
  flex-shrink: 0;
}

.resources-compact-mail{
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: #5E7BD9;
  overflow-wrap: anywhere;
}

.resources-compact-mail:hover{
  text-decoration: underline;
}

/* --- Plus de ressources : liste + encart contact --- */
.resources-compact-links{
  margin-top: 2px;
}

.resources-compact-subtitle{
  font-weight: 800;
  font-size: 13.5px;
  color: rgba(0,0,0,0.80);
  margin: 2px 0 8px;
  text-align: left;
}

.resources-compact-list{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resources-compact-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.70);
  text-decoration: none;
  color: rgba(0,0,0,0.82);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.resources-compact-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.10);
}

.resources-compact-item-icon{
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
}

.resources-compact-item-text{
  font-weight: 750;
  font-size: 13.5px;
  line-height: 1.15;
}

.resources-compact-item-arrow{
  margin-left: auto;
  font-size: 16px;
  opacity: 0.55;
}

.resources-contact-card{
  background: rgba(255,255,255,0.78);
  border-radius: 16px;
  padding: 12px 12px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

.resources-contact-head{
  display: flex;
  align-items: center;
  gap: 8px;
}

.resources-contact-title{
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.resources-contact-mail{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(94, 123, 217, 0.10);
  color: #5E7BD9;
  font-weight: 900;
  text-decoration: none;  font-size: 15px;
  overflow-wrap: normal;
  word-break: normal;
  text-align: center;
  line-height: 1.15;
}

.resources-contact-mail:hover{
  text-decoration: underline;
}

.resources-contact-note{
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.35;
  color: rgba(0,0,0,0.70);
  font-weight: 600;
}

/* --- Sidebar : Plus de ressources + Contact (version sobre, séparée) --- */
.resources-split-card,
.contact-split-card{
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.resources-split-text{
  margin: 0;
  font-size: 13.5px;
  line-height: 1.35;
  color: rgba(0,0,0,0.75);
  font-weight: 700;
  text-align: center;
}

.resources-split-btn{
  justify-content: center;
}



/* Icone trousse : bouton Ressources */
.resources-split-btn--icon{
  padding: 10px 12px;
  min-height: 54px;
}

.resources-trousse-icon{
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.resources-split-btn--icon:hover{
  text-decoration: none;
  filter: brightness(0.98);
}
.contact-split-card .resources-contact-mail{
  margin-top: 0;
}

.contact-split-card .resources-contact-note{
  margin: 0;
}

@media (max-width: 768px){
  .resources-split-btn{ width: 100%; }
}

@media (max-width: 768px){
  .resources-compact-top{
    flex-direction: column;
    align-items: stretch;
  }
  .resources-compact-text{
    text-align: center;
  }
  .resources-compact-btn{
    width: 100%;
  }

  .resources-compact-subtitle{ text-align: center; }
}

@media (max-width: 480px){
  .resources-compact-card{ padding: 11px; }
  .resources-compact-text{ font-size: 13px; }
  .resources-compact-btn{ padding: 10px 16px; }
  .resources-compact-logo{ width: 26px; }
  .resources-compact-mail{ font-size: 12.5px; }
}


/* ===============================
   Bouton Instagram (Premium App)
   - Positionné en haut à droite du header
   - Même style que la version gratuite (pilule)
   =============================== */

.header-actions{
  position: absolute;
  top: 14px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 6;
  max-width: calc(100% - 36px);
}

.instagram-header-link{
  width: auto;
  min-width: 108px;
  height: 46px;
  padding: 10px 14px 10px 10px;
  gap: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(214,41,118,0.20) 0%, rgba(79,91,213,0.18) 100%);
  border: 1px solid rgba(214,41,118,0.22);
  box-shadow: 0 8px 18px rgba(0,0,0,0.10);
  backdrop-filter: blur(2px);
  font-family: 'Fredoka', sans-serif;
  font-weight: 800;
  text-decoration: none;
  color: rgba(30, 24, 52, 0.92);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.instagram-header-link:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.14);
  opacity: 0.98;
}

.instagram-header-link svg{
  display: block;
  width: 22px;
  height: 22px;
}

.instagram-label{
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

@media (max-width: 768px){
  .header-actions{
    top: 10px;
    right: 10px;
    gap: 8px;
    max-width: calc(100% - 20px);
  }
  .instagram-header-link{
    min-width: 98px;
    height: 44px;
    padding: 9px 12px 9px 10px;
  }
  .instagram-header-link svg{
    width: 20px;
    height: 20px;
  }
  .instagram-label{ font-size: 12.5px; }
}

@media (max-width: 360px){
  .instagram-header-link{ min-width: 92px; }
  .instagram-label{ font-size: 12px; }
  .title-container{ padding-right: 120px; }
}

/* Section Ils parlent de COLORITEXT */
.press-section{
  margin-top: 10px;
}
.press-links{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.press-link{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.65);
  text-decoration: none;
  color: rgba(0,0,0,0.80);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.press-link:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.10);
}
.press-icon{
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
}
.press-text{
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 2px;
}

/* ------------------------------------------------------------
   FIX PREMIUM: styles manquants (menu "Qui suis-je ?" + lien guide)
   (ne change pas la palette Premium, seulement l'affichage)
------------------------------------------------------------ */

.about-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

.about-link,
.about-link:visited{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,0.65);
  text-decoration:none;
  color: rgba(0,0,0,0.80);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.about-link:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.10);
  text-decoration:none;
}

.trousse-icon{
  width:22px;
  height:22px;
  border-radius:6px;
  object-fit:cover;
}

.guide-link,
.guide-link:visited{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,0.65);
  text-decoration:none;
  color: rgba(0,0,0,0.80);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
  font-weight: 800;
  margin: 8px 0 6px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.guide-link:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.10);
}
.press-name{
  font-weight: 800;
  font-size: 14px;
}
.press-desc{
  font-weight: 600;
  font-size: 12.5px;
  opacity: 0.85;
}
.press-arrow{
  margin-left: auto;
  font-size: 16px;
  opacity: 0.55;
}
@media (max-width: 480px){
  .press-name{ font-size: 13.5px; }
  .press-desc{ font-size: 12px; }
}


/* FAQ (sidebar) */
.faq-card{
  background: rgba(255,255,255,0.78);
  border-radius: 18px;
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

.faq-item{
  background: rgba(255,255,255,0.70);
  border-radius: 14px;
  margin: 8px 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

.faq-item summary{
  cursor: pointer;
  list-style: none;
  padding: 12px 12px;
  font-weight: 900;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.faq-item summary::-webkit-details-marker{ display:none; }

.faq-item summary::after{
  content: '+';
  font-weight: 900;
  opacity: 0.55;
}

.faq-item[open] summary::after{ content: '–'; }

.faq-answer{
  padding: 0 12px 12px;
  color: rgba(0,0,0,0.75);
  font-weight: 600;
  font-size: 12.8px;
  line-height: 1.35;
}

.faq-answer p{ margin: 8px 0 10px; }

.faq-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0, 131, 143, 0.10);
  color: #00838F;
  font-weight: 900;
  text-decoration: none;
}

.faq-cta:hover{ text-decoration: underline; }

.faq-inline-link{
  color: #00838F;
  font-weight: 900;
  text-decoration: underline;
}


/* --- Plus de ressources : lien "ici" sans changement de couleur --- */
.resources-split-text .resources-text-link{
  color: inherit;
  text-decoration: underline;
  font-weight: inherit;
}
.resources-split-text .resources-text-link:hover{
  color: inherit;
}



/* --- Liens rapides (FAQ) : mêmes boutons que la version publique --- */
.resources-links{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Variante compacte : 2 colonnes sur desktop (menu plus léger) */
.resources-links-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 820px){
  .resources-links-grid{ grid-template-columns: 1fr; }
}

.resource-link,
.resource-link:visited{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.70);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
  color: #00838F;
  font-weight: 900;
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.2;
}
.resource-link:hover{
  text-decoration: underline;
  filter: brightness(0.99);
}




/* MODALS */
.ct-modal{
  position:fixed;
  inset:0;
  z-index:10000;
  display:none;
  /* Centre le modal de façon stable (notamment sur mobile) */
  align-items:center;
  justify-content:center;
  padding:16px;
}

/* Affichage (meme convention que la version decouverte) */
.ct-modal.is-open{ display:flex; }

/* Structure complete du modal (comme la version decouverte) */
.ct-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.45);
}

.ct-modal__content{
  position:relative;
  max-width:min(920px, calc(100vw - 32px));
  margin:0;
  background:#fff;
  border-radius:16px;
  box-shadow:0 10px 40px rgba(0,0,0,0.22);
  padding:18px;
  max-height: calc(100dvh - 32px);
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}

.ct-modal__close{
  position:absolute;
  top:10px;
  right:10px;
  width:38px;
  height:38px;
  border-radius:999px;
  border:1px solid #E6E6E6;
  background:#fff;
  font-family:'Fredoka', sans-serif;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}

.ct-modal__close:hover{ background:#FAFAFA; }

.ct-modal__image{
  display:block;
  width:100%;
  height:auto;
  border-radius:12px;
}

.ct-modal__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 44px 12px 0; /* espace pour la croix */
}

.ct-modal__title{
  font-family:'Fredoka', sans-serif;
  font-weight:700;
  font-size:18px;
  margin:0;
  color:#222;
}

.ct-modal__toolbar{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.ct-modal__newtab{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid #DDE6F4;
  background:#F3F8FF;
  color:#0B4A6B;
  font-weight:600;
  font-family:'Fredoka', sans-serif;
  text-decoration:none;
  cursor:pointer;
}

.ct-modal__newtab:hover{ background:#EAF3FF; }

.ct-modal__frame{
  width:100%;
  height:min(72vh, 720px);
  border:1px solid #EEF1F6;
  border-radius:12px;
  background:#fff;
}

.ct-modal__hint{
  margin:10px 0 0;
  font-size:13px;
  color:#666;
  font-style:italic;
}

@media (max-width: 520px){
  .ct-modal__header{ padding-right:0; }
  .ct-modal__title{ font-size:16px; }
  .ct-modal__frame{ height:78vh; }
}

/* Mobile : eviter que la croix ne masque le debut */
@media (max-width: 520px){
  .ct-modal__content{ padding-top:60px; }
  .ct-modal__close{
    top:12px;
    right:12px;
    width:40px;
    height:40px;
    font-size:24px;
    box-shadow:0 6px 18px rgba(0,0,0,0.12);
  }
}


/* PICTOS modal (nouveau) */
.ct-modal__body{padding:16px 18px 18px 18px; font-size:16px; line-height:1.5;}
.ct-modal__body ul{margin:10px 0 0 18px;}
.ct-modal__body li{margin:6px 0;}
.ct-modal__body code{background:rgba(0,0,0,.05); padding:2px 6px; border-radius:8px;}


/* Emoji images (custom) : rendu coherent multi-appareils */
.ct-emoji-img{height:1.25em;width:auto;vertical-align:middle;}


/* CT-Picto-Click-Fix */
.picto-marker, .picto-marker * { pointer-events: auto; }


/* === ColoriText : Astuce export (Canva / PowerPoint / DOCX) — design plus ludique === */
.export-hints details{
  border: 1px solid rgba(0,0,0,.08);
  background: linear-gradient(135deg, rgba(255, 240, 210, .75), rgba(225, 245, 255, .75));
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,.06);
  overflow: hidden;
}

.export-hints summary{
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-family: 'Fredoka', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.55);
}

.export-hints summary::-webkit-details-marker{ display:none; }

.export-hints summary::after{
  content: "✨";
  margin-left: auto;
  transform: translateY(-1px);
}

.export-hints details[open] summary{
  background: rgba(255,255,255,.75);
}

.export-hints__content{
  margin-top: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.65);
}

.export-hints__content p{
  margin: 8px 0;
}

.export-hints__content strong{
  font-weight: 800;
}



/* === Mobile: export header wrap === */
@media (max-width: 640px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .section-title {
    width: 100%;
  }
  .export-buttons {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .export-buttons .btn-export {
    flex: 1 1 calc(50% - 10px);
    min-width: 140px;
  }
  .export-hints {
    width: 100%;
  }
}


/* === Mobile export toolbar fix === */
@media (max-width: 620px) {
  .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .section-title {
    width: 100%;
  }
  .export-buttons {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .export-buttons .btn-export {
    flex: 1 1 calc(50% - 10px);
    min-width: 140px;
  }
  .export-hints {
    width: 100%;
  }
}


/* === Marelle fonts === */
@font-face {
  font-family: 'Marelle';
  src: url('../fonts/Marelle.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Marelle Baton';
  src: url('../fonts/MarelleBaton.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Marelle Simple';
  src: url('../fonts/MarelleSimple.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
