/* 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;
}

@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;
  flex-wrap: wrap;
  position: relative;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.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;
}



.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: #00838F;
  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: #00838F; }

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

.btn-ocr-header:hover {
  background: #B2DFDB;
  border-color: #80CBC4;
}

/* 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: #E0F7F5; /* bleu canard clair */
  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;
}

/* --- 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: #E0F7F5; /* bleu canard clair */
  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;
}

.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;
}

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

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

.btn-reset:hover {
  background: #B2DFDB;
  border-color: #80CBC4;
}

.btn-colorize {
  background: #00838F; /* Bleu canard */
  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(0, 131, 143, 0.25);
}

.btn-colorize:hover {
  background: #006F78; /* Variation de couleur au survol */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 131, 143, 0.35);
}

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

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

.btn-export {
  padding: 8px 16px;
  background: #E0F7F5; /* bleu canard clair */
  border: 1px solid #B2DFDB;
  border-radius: 8px;
  font-family: 'Fredoka', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  color: #333;
}

.btn-export:hover {
  background: #B2DFDB;
  border-color: #80CBC4;
}

/* Output */
.output-area {
  min-height: 0;
  padding: 20px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1.8;
  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;
  }

  .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;
    padding-right: 64px;
  }

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

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

  

  .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: #00838F; /* Bleu canard */
    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: #00838F; /* Bleu canard */
    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: #00838F; /* 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; }
}


/* Bulle explicative pour les options Premium (Freemium) */
.premium-tooltip {
  position: absolute;
  z-index: 9999;
  max-width: 260px;
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 152, 0, 0.35);
  font-family: 'Fredoka', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.premium-tooltip.visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.premium-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  border-width: 8px 8px 0 8px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

.premium-tooltip-title {
  font-weight: 700;
  color: #ff9800;
  margin-bottom: 4px;
  font-size: 13px;
}

.premium-tooltip-text {
  color: #333333;
}

/* Badge version Freemium dans le titre */
.badge-freemium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFECB3, #FFE082);
  color: #8D6E63;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  vertical-align: middle;
  border: 1px solid rgba(255, 193, 7, 0.6);
}

@media (max-width: 768px) {
  .badge-freemium {
    margin-left: 0;
    margin-top: 6px;
    display: inline-flex;
  }
}


.premium-header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffca28, #ffb300);
  color: #ffffff;
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  z-index: 5;
}

.premium-header-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0.95;
}





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

/* In the actions row, don't add extra top margin */
.header-actions .premium-header-link {
  margin-top: 0;
}

@media (max-width: 768px) {
  .header-actions {
    top: 10px;
    right: 10px;
    gap: 8px;
    max-width: calc(100% - 20px);
  }
  .header-actions .premium-header-link {
    width: auto;
    font-size: 12px;
    padding: 8px 10px;
    line-height: 1.15;
    /* Leave room for the Instagram "DÉMO" pill button */
    max-width: calc(100vw - 160px);
    white-space: normal;
    text-align: center;
  }
}
 .instagram-header-link {
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
  z-index: 5;
}

.instagram-header-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  opacity: 0.96;
}

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

.instagram-label {
  display: none;
}

@media (max-width: 768px) {
  .instagram-header-link {
    width: 40px;
    height: 40px;
  }
  .instagram-header-link svg {
    width: 20px;
    height: 20px;
  }
}
.premium-header-subtitle {
  margin-top: 4px;
  font-family: 'Fredoka', sans-serif;
  font-size: 13px;
  color: #555;
  /* Keep this text on ONE line (requested).
     If it doesn't fit (e.g., mobile), allow horizontal scroll instead of wrapping. */
  max-width: 100%;
  line-height: 1.3;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar (WebKit) */
.premium-header-subtitle::-webkit-scrollbar {
  display: none;
}

@media (max-width: 768px) {
  .premium-header-link {
    width: 100%;
    justify-content: center;
  }
}


/* =========================================
   SUPPORT POPOVER (VERSION GRATUITE) — SOBRE PASTEL
   Placé en haut, à côté du bouton Premium
========================================= */
.ct-support-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Fusion du bouton Premium + coeur (même bouton visuel) */
.premium-header-link.ct-premium-merged{
  gap: 10px;
  padding-right: 8px; /* laisse de la place au coeur */
}

.ct-premium-text{
  display: inline-block;
}

.ct-premium-heart{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,180,210,0.95), rgba(180,195,255,0.95));
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}
.ct-premium-heart:hover{
  opacity: 0.95;
}



.ct-support-popover{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, calc(100vw - 24px));
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.14);
  padding: 14px 14px 12px;
  z-index: 9999;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.ct-support-popover.is-open{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ct-support-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.92);
  font-size: 20px;
  line-height: 30px;
  cursor: pointer;
}

.ct-support-title{
  margin: 2px 34px 10px 0;
  font-family: 'Fredoka', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: rgba(0,0,0,0.88);
}

.ct-support-text{
  margin: 0 0 10px 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(0,0,0,0.78);
}

.ct-support-highlight{
  margin: 0;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(255, 205, 230, 0.22);
  border: 1px dashed rgba(255, 160, 200, 0.65);
  font-size: 13px;
  line-height: 1.4;
}


@media (max-width: 768px){
  .ct-premium-heart{ width: 34px; height: 34px; font-size: 16px; }
  .ct-support-popover{ right: -6px; } /* petite marge pour éviter bord écran */
}

@media (max-width: 420px){
  .ct-premium-heart{ width: 32px; height: 32px; font-size: 15px; }
  .ct-support-popover{ width: calc(100vw - 18px); right: -8px; }
  .ct-support-title{ font-size: 15px; }
}
/* (Instagram) styles defined above */

/* Instagram "DÉMO" : bouton plus grand + texte lisible */
.instagram-header-link{
  width: auto;
  min-width: 108px;
  height: 46px;
  padding: 10px 14px 10px 10px;
  gap: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(214,41,118,0.20) 0%, rgba(79,91,213,0.18) 100%) !important;
  border: 1px solid rgba(214,41,118,0.22);
  box-shadow: 0 8px 18px rgba(0,0,0,0.10) !important;
  backdrop-filter: blur(2px);
}

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

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

.instagram-label{
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: rgba(30, 24, 52, 0.92);
}

@media (max-width: 768px){
  .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; }
}
/* --- 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: #00838F;
  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(0, 131, 143, 0.10);
  color: #00838F;
  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;
}

@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; }
}
/* (Instagram) styles defined above */

/* 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;
}
.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;
}


/* =========================================================
   FIX (version gratuite) : "Plus de ressources"
   -> même morphologie que Premium (sans changer les couleurs)
========================================================= */
.resources-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;
}

/* Icône trousse (taille fixe, centrée) */
.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);
}

/* =========================================================
   Sidebar (version gratuite) : liens "Ressources" + "Qui suis-je ?"
   - évite le violet des liens visités
   - reste léger et cohérent visuellement
========================================================= */
.app-sidebar a.resources-text-link,
.app-sidebar a.resources-text-link:visited{
  color: #00838F;
  font-weight: 900;
  text-decoration: underline;
}

.about-card{ padding: 12px; }
.about-row{
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.about-avatar{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(0, 131, 143, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex: 0 0 40px;
}
.about-text{
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.35;
  color: rgba(0,0,0,0.75);
  font-weight: 700;
}
.about-link,
.about-link:visited{
  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;
}
.about-link:hover{ text-decoration: underline; }

.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);
}



/* --- Découverte (version gratuite) --- */
.title-container .title-row{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.title-container .title-row > a{
  display: inline-flex;
}

/* Bouton "Découverte" : même esprit que Premium, en bleu canard */
.discovery-header-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #55c6c2, #2aa7a4);
  color: #ffffff;
  font-family: 'Fredoka One', 'Fredoka', sans-serif;
  font-size: 14px;
  font-weight: 400;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, filter 0.15s ease;  cursor: default;
  pointer-events: none;
}

.discovery-header-link:hover{
  transform: none;
  filter: none;
}


.discovery-header-link:active{
  transform: none;
}


@media (max-width: 768px){
  .title-container .title-row{
    gap: 10px;
  }
  .discovery-header-link{
    margin-top: 6px;
  }
}
@media (max-width: 600px){
  .header-actions .discovery-header-link{
    width: auto;
    font-size: 12px;
    padding: 8px 10px;
    line-height: 1.15;
    max-width: calc(100vw - 160px);
    white-space: normal;
    text-align: center;
  }
}

.discovery-desc{
  margin: 6px 0 0;
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  line-height: 1.25;
  color: rgba(0,0,0,0.74);
  font-weight: 600;
  max-width: 620px;
}

@media (max-width: 600px){
  .discovery-desc{
    font-size: 13px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

.premium-teaser-sidebar{
  margin-top: 12px;
  padding: 12px;
}

.premium-teaser-text{
  margin: 0 0 10px;
  font-family: 'Fredoka', sans-serif;
  font-size: 13.5px;
  line-height: 1.25;
  color: rgba(0,0,0,0.76);
  font-weight: 700;
}

.premium-sidebar-link{
  width: 100%;
  justify-content: center;
  padding: 10px 14px;
  font-size: 14px;
}



/* --- ABOUT: lien trousse + mise en page --- */
.about-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}
.about-link.trousse-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.trousse-icon{
  width:22px;
  height:22px;
  border-radius:6px;
  object-fit:cover;
}

/* --- GUIDE: liste des modes --- */
.guide-list{
  margin:10px 0 12px 18px;
  padding:0;
}
.guide-list li{
  margin:6px 0;
}
.guide-link{
  display:inline-flex;
  margin:8px 0 6px;
  text-decoration:none;
  font-weight:700;
}


/* tiny heart next to COLORITEXT (sidebar) */
.tiny-heart{
  margin-left: 6px;
  font-size: 0.95em;
  vertical-align: middle;
}
