:root {
    --bleu-livre: #002D62;
    --orange-corail: #F37021;
    --violet-italique: #6B21A8; 
    --surligneur: #ffd8b1;
    --police-titre: 'Montserrat', sans-serif;
    --police-texte: 'Lora', serif;
    --police-icones: 'Segoe MDL2 Assets', sans-serif;
    --police-citation: 'Ink Free', cursive; 
    --police-manuscrite: 'Segoe Print', cursive;
    --bleu-fonce: #001229;
    --orange-fonce: #B34700;
}

body {
    font-family: var(--police-texte);
    color: #2d2d2d;
    text-align: left;
}

h1, h2, h3, h4, h5, h6, .font-title, .font-subtitle {
    font-family: var(--police-titre) !important;
    color: var(--bleu-livre) !important;
}

h1, h2, .font-title {
    font-weight: 800 !important;
}

h2.text-bookBlue {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
}

h2.text-bookBlue > span {
    display: inline;
}

h2.text-bookBlue > span::after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 9999px;
    height: 8px;
    background-color: #ffe500 !important;
    border-radius: 9999px;
    margin-left: 1.25rem;
    margin-right: -9999px;
}

h3, h4, h5, h6, .font-subtitle {
    font-weight: 700 !important;
}

nav a {
    font-family: var(--police-titre) !important;
    font-weight: 800 !important;
}

u {
    text-decoration-color: var(--orange-corail);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

p{
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
 

.scrapbook-box, .dashed-box-faq, .citation-violette {
    transform: rotate(var(--rand-rotation, 0deg));
}
.scrapbook-box {
    position: relative;
    background-color: transparent !important;
    border: none !important;
    display: block;
}

.scrapbook-box::before {
    content: "";
    position: absolute;
    top: var(--box-bg-top, -4px);
    left: var(--box-bg-left, 6px);
    right: var(--box-bg-right, -6px);
    bottom: var(--box-bg-bottom, 4px);
    background-color: var(--box-bg);
    border-radius: var(--box-bg-radius, 10px 20px 25px 15px);
    z-index: -1;
    transform: rotate(var(--box-rotate, 0deg));
}

.scrapbook-box::after {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px dashed var(--box-color) !important;
    border-radius: var(--box-border-radius, 255px 15px 225px 15px / 15px 225px 15px 255px) !important;
    pointer-events: none;
    z-index: 10;
}

.scrapbook-box :is(p, li) {
    font-family: var(--police-texte) !important;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--box-color) !important;
}

.scrapbook-box :is(h2, h3) {
    font-family: var(--police-titre) !important;
    color: var(--box-color) !important;
}

.scrapbook-box .icon-mdl2 {
    color: var(--box-color) !important;
}

.dashed-box-blue {
    --box-color: var(--bleu-livre);
    --box-bg: rgba(240, 247, 255, 0.75);
    --box-rotate: -0.5deg;
    --box-bg-top: 6px;
    --box-bg-left: -4px;
    --box-bg-right: 4px;
    --box-bg-bottom: -6px;
    --box-bg-radius: 20px 10px 15px 25px;
}

.dashed-box-blue p > strong:first-child {
    font-family: var(--police-titre) !important;
    font-weight: 800 !important;
    color: var(--bleu-livre) !important;
    display: inline-flex !important;
    align-items: center !important;
}

.dashed-box-orange {
    --box-color: var(--orange-fonce);
    --box-bg: rgba(255, 245, 242, 0.85);
    --box-rotate: 0.5deg;
}

.dashed-box-conseil {
    --box-color: var(--bleu-livre);
    --box-bg: rgba(224, 242, 254, 0.75);
    --box-rotate: 0.8deg;
}

.dashed-box-yellow {
    --box-color: #ffe500;
    --box-bg: rgba(255, 229, 0, 0.08);
    --box-rotate: -0.5deg;
    --box-bg-top: 6px;
    --box-bg-left: -4px;
    --box-bg-right: 4px;
    --box-bg-bottom: -6px;
    --box-bg-radius: 20px 10px 15px 25px;
}

.dashed-box-yellow p > strong:first-child,
.dashed-box-yellow strong:first-child {
    font-family: var(--police-titre) !important;
    font-weight: 800 !important;
    color: var(--bleu-livre) !important;
    display: inline-flex !important;
    align-items: center !important;
}

.dashed-box-yellow :is(p, li, span, a, div, strong) {
    color: var(--bleu-livre) !important;
}

.dashed-box-yellow a:hover,
.dashed-box-yellow a:hover span,
.dashed-box-yellow a:hover strong {
    color: var(--orange-corail) !important;
}

:is(.dashed-box-blue, .dashed-box-orange, .dashed-box-conseil, .dashed-box-yellow) {
    padding: 2rem !important;
    margin: 2.5rem 0 !important;
}

.dashed-box-conseil input {
    font-family: var(--police-texte) !important;
    color: #2d2d2d !important;
}

.icon-mdl2 {
    font-family: var(--police-icones) !important;
    font-style: normal !important;
    font-weight: normal !important;
    display: inline-block;
}

.highlight, mark {
    background: linear-gradient(180deg, transparent 20%, var(--surligneur) 20%, var(--surligneur) 80%, transparent 80%) !important;
    padding: 0 4px !important;
    border-radius: 3px !important;
    display: inline;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    font-family: inherit !important;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.citation-violette {
    font-family: var(--police-citation) !important;
    color: var(--violet-italique) !important;
    text-transform: uppercase !important;
    text-align: center !important;
    font-size: 1.3rem !important;
    line-height: 1.6 !important;
    margin: 3rem auto !important;
    display: block;
    max-width: 85%;
}

.italic-purple {
    color: var(--violet-italique) !important;
    font-style: italic !important;
    display: block;
}

.btn-action, .btn-action-secondary {
    font-family: var(--police-titre) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    padding: 1rem 2.25rem !important;
    
    
    border: 2px solid #1A1A1A !important;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px !important;
    
    display: inline-block;
    cursor: pointer;
    
    transition: all 0.15s ease-in-out !important;
    text-align: center;
}

.btn-action {
    background-color: #1A1A1A !important; 
    color: #ffe500 !important; 
    box-shadow: 4px 4px 0px 0px var(--violet-italique) !important;
}

.btn-action:hover, .btn-action.simulated-hover {
    background-color: #ffe500 !important; 
    color: #1A1A1A !important; 
    box-shadow: 2px 2px 0px 0px var(--violet-italique) !important;
}

.btn-action-secondary {
    background-color: var(--violet-italique) !important; 
    color: #ffe500 !important; 
    box-shadow: 4px 4px 0px 0px #1A1A1A !important; 
}

.btn-action-secondary:hover, .btn-action-secondary.simulated-hover {
    background-color: #ffe500 !important; 
    color: var(--violet-italique) !important; 
    box-shadow: 2px 2px 0px 0px #1A1A1A !important; 
}

:is(.btn-action, .btn-action-secondary):hover,
:is(.btn-action, .btn-action-secondary).simulated-hover {
    
    transform: translate(2px, 2px) !important;
}

.btn-action:active {
    transform: translate(4px, 4px) !important;
    box-shadow: 0px 0px 0px 0px var(--violet-italique) !important;
}

.btn-action-secondary:active {
    transform: translate(4px, 4px) !important;
    box-shadow: 0px 0px 0px 0px #1A1A1A !important;
}

.btn-nav-highlight {
    background-color: var(--surligneur) !important;
    color: #000000 !important;
}

.btn-nav-highlight:hover {
    background-color: var(--orange-corail) !important;
    color: #ffffff !important;
}

.dashed-grid {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 2.5rem 0 !important;
    table-layout: fixed;
}

.dashed-grid th, .dashed-grid td {
    border: 1.5px dashed var(--bleu-livre) !important;
    padding: 1.25rem !important;
    text-align: left;
    vertical-align: top;
}

.dashed-grid th {
    background-color: transparent !important;
    color: var(--bleu-livre) !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
}

.dashed-grid tr:first-child th {
    border-top: none !important;
}
.dashed-grid tr:last-child td {
    border-bottom: none !important;
}
.dashed-grid th:first-child, .dashed-grid td:first-child {
    border-left: none !important;
}
.dashed-grid th:last-child, .dashed-grid td:last-child {
    border-right: none !important;
}

.cite-hidden { display: none !important; }

.prompt-block, blockquote {
    background-color: #EEECE1;
    border-left: 4px solid #984806;
    padding: 0.8rem 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    color: #984806;
    white-space: pre-wrap; 
    word-wrap: break-word;
    position: relative;
    border-radius: 0 8px 8px 0;
    padding-right: 7rem; 
}

.prompt-block code, blockquote {
    font-family: inherit;
}

.markdown-body blockquote p{
    margin-bottom: 0 !important;
}

.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #e9ecef;
    color: #495057;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--police-titre);
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    background-color: #ced4da;
}

.copy-btn.copied {
    background-color: #28a745;
    color: white;
}

@keyframes targetPulse {
    0% { box-shadow: 0 0 0 0 rgba(243, 112, 33, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(243, 112, 33, 0); }
    100% { box-shadow: 0 0 0 0 rgba(243, 112, 33, 0); }
}

.highlight-target {
    animation: targetPulse 2s ease-out 2;
    border: 2px solid var(--orange-corail) !important;
    position: relative;
    z-index: 20;
    border-radius: 12px;
}

.modal-open {
    overflow: hidden !important;
}

@keyframes unlockBounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.3) translateY(-10px); }
    70% { transform: scale(0.9) translateY(2px); }
    100% { transform: scale(1) translateY(0); }
}
.animate-unlock {
    animation: unlockBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.cta-scrapbook {
    --box-color: var(--orange-fonce);
    --box-bg: rgba(255, 245, 242, 0.85); 
    --box-rotate: 0.8deg;
    --box-bg-top: 6px;
    --box-bg-left: -4px;
    --box-bg-right: 4px;
    --box-bg-bottom: -6px;
    --box-bg-radius: 15px 25px 20px 30px;
    
    padding: 1.25rem 1.5rem !important;
    max-width: 52rem; 
    margin: 3.5rem auto !important;
}

@media (min-width: 768px) {
    .cta-scrapbook {
        padding: 1.5rem 2.5rem !important;
    }
}

.cta-scrapbook h3 {
    color: var(--orange-fonce) !important;
}

.cta-scrapbook p {
    color: var(--orange-fonce) !important;
}

.cta-scrapbook .cta-subtext {
    color: var(--orange-fonce) !important;
    opacity: 0.75;
    font-size: 10px !important;
}

.dashed-box-faq {
    position: relative;
    background-color: rgba(107, 33, 168, 0.06) !important; 
    border: none !important;
    margin-bottom: 1.5rem !important;
    border-radius: 12px 16px 14px 18px;
    box-shadow: 3px 3px 0px 0px rgba(107, 33, 168, 0.15) !important; 
    transition: all 0.2s ease-in-out;
}

.dashed-box-faq::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px dashed var(--violet-italique) !important; 
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px !important;
    pointer-events: none;
    z-index: 5;
}

.dashed-box-faq:hover {
    transform: rotate(var(--rand-rotation, 0deg)) translate(-1px, -1px);
    box-shadow: 5px 5px 0px 0px rgba(107, 33, 168, 0.25) !important;
}

.dashed-box-faq summary {
    font-family: var(--police-titre) !important;
    font-weight: 700 !important;
    color: var(--bleu-livre) !important;
    padding: 1.25rem 1.5rem !important;
    outline: none;
    cursor: pointer;
}

.dashed-box-faq[open] summary {
    color: var(--violet-italique) !important; 
    border-bottom: 1.5px dashed rgba(107, 33, 168, 0.2) !important;
}

.dashed-box-faq .faq-content {
    padding: 1.25rem 1.5rem !important;
    font-family: var(--police-texte) !important;
    color: #2D2D2A !important;
    overflow: hidden;
    transition: height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.font-style-serif {
    font-family: var(--police-texte) !important;
}
.font-style-sans {
    font-family: var(--police-titre) !important;
    font-weight: 500 !important;
}
.font-style-handwritten {
    font-family: var(--police-manuscrite) !important;
    font-weight: 600 !important;
}

.dashed-box-testimonial {
    --box-color: #4A4944;
    --box-bg: rgba(238, 236, 225, var(--bg-opacity, 1));
    --box-bg-radius: 12px 18px 20px 14px;
    
    padding: 1.75rem !important;
    display: flex;
    flex-direction: column;
}

.dashed-box-testimonial div,
.dashed-box-testimonial h4 {
    color: #2D2D2A !important; 
}
