/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/


.wr-level-jump{margin:1rem 0;padding:1rem;border:2px solid var(--cc-yl,#ffde59);
  border-radius:12px;background:rgba(0,0,0,.02)}
.wr-level-jump .wr-label{display:block;font-weight:600;margin-bottom:.5rem}
.wr-level-jump .wr-row{display:flex;gap:.5rem;align-items:center}
.wr-level-jump .wr-input{flex:1;padding:.7rem 1rem;border:1px solid rgba(0,0,0,.15);
  border-radius:10px}
.wr-level-jump .wr-btn{padding:.7rem 1rem;font-weight:700;border:0;border-radius:10px;
  background:var(--cc-green,#19b84a);color:#fff;cursor:pointer}
.wr-chunks{display:flex;flex-wrap:wrap;gap:.5rem;margin:.75rem 0 1.25rem}
.wr-chunk{display:inline-block;padding:.4rem .7rem;border-radius:999px;border:1px solid rgba(0,0,0,.15);text-decoration:none;background:#fff}
.wr-chunk:hover{box-shadow:0 2px 10px rgba(0,0,0,.07)}

.site-branding h1 a {
	color:#2271b1 !important;
	font-family: 
}
.levans {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-left: 5px solid #4caf50;
  border-radius: 10px;
  padding: 20px 25px;
  margin: 30px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  font-family: 'Segoe UI', sans-serif;
}

.levans ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.levans li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 1.05rem;
  line-height: 1.6;
}

.levans li:last-child {
  border-bottom: none;
}
.mait-s {
  background-color: #f5fdf7; 
  border: 1px solid #cde7d8;
  border-left: 5px solid #4caf50;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
  font-family: 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.mait-s a {
  color: #2e7d32;
  font-weight: 600;
  text-decoration: none;
}

.word-bridge-tip a:hover {
  text-decoration: underline;
}
.soft-separator {
  border: none;
  height: 4px;
  background-color: #4caf50;
  margin: 40px auto;
  max-width: 800px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
  border-top-left-radius: 12;
  border-top-right-radius: 12;
}

.corner-frame {
  position: relative;
  padding: 24px;
  margin: 40px 0;
}

.corner-frame::before,
.corner-frame::after,
.corner-frame span::before,
.corner-frame span::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #4caf50;
}

.corner-frame::before {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}

.corner-frame::after {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
}

.corner-frame span::before {
  bottom: 0;
  left: 0;
  border-top: none;
  border-right: none;
}

.corner-frame span::after {
  bottom: 0;
  right: 0;
  border-top: none;
  border-left: none;
	
}

.level-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.level-buttons div {
  width: 100%;
  max-width: 300px;
}

.level-buttons a {
  display: block;
  width: 100%;
  padding: 10px 20px;
  border-radius: 10px;
  background-color: #f5fdf7;
  border: 2px solid #4caf50;
  color: #2e7d32;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
}

.level-buttons a:hover {
  background-color: #e0f3e5;
  color: #1b5e20;
}

.icon-separator {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 30px auto;
  max-width: 100%;
  line-height: 1;
}

.icon-separator img {
  width: 22px;
  height: 22px;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  display: inline-block;
}

.wr-level-jump{margin:1rem 0;padding:1rem;border:2px solid var(--cc-yl,#ffde59);
  border-radius:12px;background:rgba(0,0,0,.02)}
.wr-level-jump .wr-label{display:block;font-weight:600;margin-bottom:.5rem}
.wr-level-jump .wr-row{display:flex;gap:.5rem;align-items:center}
.wr-level-jump .wr-input{flex:1;padding:.7rem 1rem;border:1px solid rgba(0,0,0,.15);
  border-radius:10px}
.wr-level-jump .wr-btn{padding:.7rem 1rem;font-weight:700;border:0;border-radius:10px;
  background:var(--cc-green,#19b84a);color:#fff;cursor:pointer}
.wr-chunks{display:flex;flex-wrap:wrap;gap:.5rem;margin:.75rem 0 1.25rem}
.wr-chunk{display:inline-block;padding:.4rem .7rem;border-radius:999px;border:1px solid rgba(0,0,0,.15);text-decoration:none;background:#fff}
.wr-chunk:hover{box-shadow:0 2px 10px rgba(0,0,0,.07)}

/* =========================================
   TryThisAnswer — Comment Area (GeneratePress)
   Scope: comments only, safe on the rest
   ========================================= */

/* Small design tokens (inherit GP vars) */
:root{
  --tta-radius: 14px;
  --tta-shadow: 0 8px 24px rgba(0,0,0,.06);
  --tta-border: 1px solid var(--base);
  --tta-muted: var(--contrast-2);
}

/* Wrapper spacing */
body .comments-area{
  margin-top: 48px;
}

/* Card container for the form */
body .comments-area #respond{
  background: var(--base-3);
  border: var(--tta-border);
  border-radius: var(--tta-radius);
  box-shadow: var(--tta-shadow);
  overflow: hidden;
}

/* Thin accent bar on top */
body .comments-area #respond::before{
  content:"";
  display:block;
  height:4px;
  background: var(--accent);
}

/* Title row */
body .comments-area #respond .comment-reply-title{
  display:flex;
  align-items:center;
  gap:.5rem;
  margin:0;
  padding:18px 22px;
  font-size:1.2rem;
  line-height:1.2;
  border-bottom: 1px solid var(--base);
}

/* Cancel reply link */
body .comments-area #respond .comment-reply-title #cancel-comment-reply-link{
  margin-left:auto;
  font-size:.9rem;
  color: var(--accent);
  text-decoration: none;
}
body .comments-area #respond .comment-reply-title #cancel-comment-reply-link:hover{
  text-decoration: underline;
}

/* "Logged in as" strip */
body .comments-area #respond .logged-in-as{
  margin:0;
  padding:14px 22px;
  font-size:.92rem;
  color: var(--tta-muted);
  background: var(--base-2);
  border-bottom: 1px solid var(--base);
}
body .comments-area #respond .logged-in-as a{
  color: var(--accent);
  text-decoration: none;
}
body .comments-area #respond .logged-in-as a:hover{
  text-decoration: underline;
}

/* Form body */
body .comments-area #respond .comment-form{
  padding: 20px 22px 22px;
}

/* Textarea (visible one becomes id="comment" via your script) */
body .comments-area #respond textarea#comment{
  width:100%;
  min-height:180px;
  background: var(--base-2);
  border:1px solid var(--base);
  border-radius:12px;
  padding:14px 16px;
  color: var(--contrast);
  font: inherit;
  line-height:1.6;
  resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
body .comments-area #respond textarea#comment::placeholder{
  color: var(--contrast-3);
}
body .comments-area #respond textarea#comment:focus{
  outline:none;
  background:#fff;
  border-color: var(--accent);
  /* Focus ring (fallback + modern) */
  box-shadow:
    0 0 0 3px rgba(30,115,190,.15),
    0 2px 10px rgba(0,0,0,.04);
}

/* Submit button */
body .comments-area #respond .form-submit{
  margin-top:14px;
}
body .comments-area #respond .form-submit .submit{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:12px;
  border:1px solid transparent;
  background: var(--accent);
  color:#fff;
  font-weight:600;
  cursor:pointer;
  box-shadow: 0 10px 20px rgba(30,115,190,.18);
  transition: transform .05s ease, box-shadow .2s ease, filter .2s ease;
}
body .comments-area #respond .form-submit .submit:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(30,115,190,.22);
  filter: brightness(1.03);
}
body .comments-area #respond .form-submit .submit:active{
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(30,115,190,.20);
}
body .comments-area #respond .form-submit .submit:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Required star + helper text */
body .comments-area #respond .required-field-message{
  display:block;
  margin-top:6px;
  font-size:.85rem;
  color: var(--contrast-3);
}
body .comments-area #respond .required{
  color: var(--accent);
}

/* -------------------------------------------------
   Existing comments list (when there are comments)
   ------------------------------------------------- */

body .comments-area .comment-list{
  list-style:none;
  margin: 0 0 40px;
  padding:0;
}
body .comments-area .comment-list > li{
  margin-bottom:16px;
}
body .comments-area .comment-list .comment-body{
  background: var(--base-3);
  border: var(--tta-border);
  border-radius: 12px;
  box-shadow: var(--tta-shadow);
  padding:16px 18px;
}
body .comments-area .comment-list .comment-author{
  display:flex;
  align-items:center;
  gap:.55rem;
  font-weight:600;
  color: var(--contrast);
}
body .comments-area .comment-list .comment-author .avatar{
  width:42px; height:42px;
  border-radius:999px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
body .comments-area .comment-list .comment-metadata{
  margin-top:2px;
  font-size:.85rem;
  color: var(--contrast-3);
}
body .comments-area .comment-list .comment-content{
  margin-top:10px;
  color: var(--contrast);
  line-height:1.7;
}
body .comments-area .reply a{
  display:inline-block;
  margin-top:8px;
  padding:6px 10px;
  font-weight:600;
  text-decoration:none;
  border-radius:8px;
  background: var(--base-2);
  color: var(--accent);
  border:1px solid var(--base);
}
body .comments-area .reply a:hover{
  background:#fff;
  border-color: var(--accent);
}

/* Nested replies guide */
body .comments-area .children{
  list-style:none;
  margin:10px 0 0 24px;
  padding-left:16px;
  border-left:2px solid var(--base);
}
@media (max-width: 700px){
  body .comments-area .children{ margin-left:12px; padding-left:12px; }
}

/* GP “separate containers” compat (keep outer paddings clean) */
.separate-containers .comments-area{
  background: transparent;
  padding:0;
}

/* ===== TryThisAnswer — Comments: thème vert (scope local) ===== */
.comments-area{
  /* Vert principal (change si besoin) */
  --accent: #2e7d32; /* green-800 */
}

/* Ombres/anneau de focus pilotés par la couleur d'accent */
body .comments-area #respond .form-submit .submit{
  /* Fallback neutre */
  box-shadow: 0 10px 20px rgba(0,0,0,.10);
  /* Accent si support color-mix */
  box-shadow: 0 10px 20px color-mix(in srgb, var(--accent) 25%, transparent);
}
body .comments-area #respond .form-submit .submit:hover{
  box-shadow: 0 14px 28px rgba(0,0,0,.12);
  box-shadow: 0 14px 28px color-mix(in srgb, var(--accent) 30%, transparent);
}
body .comments-area #respond textarea#comment:focus{
  /* Fallback + anneau d’accent en mix */
  box-shadow:
    0 0 0 3px rgba(0,0,0,.05),
    0 2px 10px rgba(0,0,0,.04);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent),
    0 2px 10px rgba(0,0,0,.04);
}

/* Lien "Cancel reply" et liens utilitaires en vert */
body .comments-area #respond .comment-reply-title #cancel-comment-reply-link,
body .comments-area #respond .logged-in-as a,
body .comments-area .reply a{
  color: var(--accent);
}
body .comments-area .reply a:hover{
  border-color: var(--accent);
  background: #fff;
}

/* === Single posts : miniature à côté du titre === */
.single .featured-image.page-header-image-single{
  float: left;                 /* place l'image à gauche du titre */
  width: 88px;                 /* taille de la vignette */
  margin: 0 14px 8px 0;        /* espace avec le h1 */
  padding: 0;
}
.single .featured-image.page-header-image-single img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;         /* arrondi doux */
  /* option thème vert :
  outline: 2px solid #2e7d32;
  */
}

/* Assure que le titre colle bien en haut à droite de la vignette */
.single .entry-header .entry-title{
  margin-top: 0;
  line-height: 1.25;
}

/* Le contenu passe sous le bloc titre+image, sans remonter autour du float */
.single .entry-content{
  clear: both;
}

/* Mobile : un poil plus petit */
@media (max-width: 640px){
  .single .featured-image.page-header-image-single{
    width: 68px;
    margin: 0 10px 6px 0;
  }
}

/* === Bouton flottant "UP" (style GeneratePress) === */
.tta-up-btn{
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 9999;
  padding: 10px 14px;
  font: 600 14px/1 Poppins, system-ui, sans-serif;
  color: #fff;
  background: var(--accent);          /* reprend la couleur d’accent du thème */
  border: 0;
  border-radius: 9999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  cursor: pointer;

  opacity: 0;                         /* caché par défaut */
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, box-shadow .2s ease;
}
.tta-up-btn.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.tta-up-btn:hover,
.tta-up-btn:focus{
  outline: none;
  filter: brightness(0.92);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

/* Mobile : un peu plus compact */
@media (max-width: 640px){
  .tta-up-btn{ padding: 9px 12px; right: 14px; bottom: 18px; font-size: 13px; }
}

.tta-up-btn{ background:#2e7d32; }

/* === Bouton flottant "UP" en forme de flèche === */
.tta-up-btn{
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 9999;

  width: 48px; height: 48px;           /* bouton rond */
  display: inline-flex;
  align-items: center; justify-content: center;

  color: #fff;                          /* la flèche suit currentColor */
  background: var(--accent);            /* tu as mis le vert : garde ta règle .tta-up-btn{background:#2e7d32;} */
  border: 0; border-radius: 9999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  cursor: pointer;

  opacity: 0; transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, box-shadow .2s ease, filter .2s ease;
}
.tta-up-btn .tta-up-ic{
  width: 22px; height: 22px;
  fill: currentColor;                   /* flèche blanche */
}
.tta-up-btn.is-visible{ opacity: 1; transform: translateY(0); pointer-events: auto; }
.tta-up-btn:hover,
.tta-up-btn:focus{ filter: brightness(0.92); box-shadow: 0 10px 24px rgba(0,0,0,.22); outline: none; }

@media (max-width: 640px){
  .tta-up-btn{ width:44px;height:44px; right:14px; bottom:18px; }
  .tta-up-btn .tta-up-ic{ width:20px;height:20px; }
}

.tta-up-btn{ background:#2e7d32; }

/* === Flèches "Jump ±10 niveaux" (milieu du bord droit) — thème === */
.tta-j10{
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.tta-j10.is-visible{ opacity: 1; pointer-events: auto; }

.tta-j10-btn{
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 9999px;
  background: var(--accent);   /* vert de ton thème si --accent=vert */
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  cursor: pointer;
  transition: filter .2s ease, box-shadow .2s ease, transform .06s ease;
}
.tta-j10-btn svg{ width: 22px; height: 22px; fill: currentColor; }
.tta-j10-btn:hover,
.tta-j10-btn:focus{ filter: brightness(0.92); box-shadow: 0 10px 24px rgba(0,0,0,.22); outline: none; }
.tta-j10-btn:active{ transform: scale(.98); }

@media (max-width: 640px){
  .tta-j10{ right: 12px; gap: 8px; }
  .tta-j10-btn{ width: 44px; height: 44px; }
  .tta-j10-btn svg{ width: 20px; height: 20px; }
}

/* Pour forcer un vert précis (optionnel) */
/* .tta-j10-btn{ background:#2e7d32; } */
