.nav-link {
    text-decoration: none;
    margin-right: 10px;
    font-family: "Sora", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}


header {
    background-color: rgba(146, 141, 141, 0.2) transparent;
    border-radius: 50px;
    padding: 10px 20px;
    height: 70px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-left: 30px;
    margin-right: 30px;
    margin-top: 10px;

}


.site-footer {
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    font-family: "Sora", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    color: #e4e4e7;
}

#titre-page {
    color: white;
    font-family: "Sora", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    margin-top: -4px;
    transition: all 0.3s ease;
}

.main-nav {
    text-align: center;
    margin-bottom: 20px;
}

#spec-footer {
    text-align: center;
    padding: 10px;
    margin-top: 20px;
}

#base-footer {
    text-align: center;
    padding: 10px;
    margin-top: 20px;
}

.site-footercard {
    text-align: center;
    padding: 10px;
    margin-top: 20px;
}

.muted {
    text-align: center;
    font-style: italic;
    color: #e4e4e7;
}
.muted2 {
    text-align: center;
    font-style: normal;
    color: gray;
    font-size: smaller;
}

body {
    /* background-image: url(images/background.jpg); */
    background-size: cover;
    background-attachment: fixed;
    background-color: #181a1b;
}

.nav-link {
    background-color: #599bb3;
    border-radius: 42px;
    border: 1px solid #29668f;
    display: inline-flex;
    align-items: center;
    
    cursor: pointer;
    color: #ffffff;
    font-size: 17px;
    padding: 0 22px; 
    min-height: 40px; 
    text-decoration: none;
    text-shadow: 0px 1px 50px #3d768a;
    font-family: "Sora", sans-serif;
        font-optical-sizing: auto;
        font-weight: 600;
        font-style: normal;
}

.nav-link:hover {
    border: 1px solid #ffffff;
}

.nav-link:active {
    position: relative;
    top: 1px;
}

#mainbases {
    padding: 20px;
    border-radius: 30px;
    margin: 20px;
    background-color: #e4e4e7;
}

/* chess piece image helper */
.piece-img {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    object-fit: contain;
}

.piece-fallback {
    font-size: 1em;
}


.site-title,
#spec-title,
#base-title,
#bienvenue-index {
    color: #e4e4e7;
}

#mainbases {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

#mainouvertures{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    cursor: default;
    background-color: #DFDFF0;
}
#mainouvertures a {
    cursor: pointer;
    text-decoration: none;
    color: #599bb3;
}
#mainouvertures h2:active {
    color: #408c99;
    font-size: 29px;
    transition: 0.3s ease;
}
#mainouvertures h2{
    color: #408c99;
    transition: 0.3s ease;
}

#spec-footer,
#base-footer,
.site-footercard {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: #d6c0c0;
    font-size: small;
}
#ouvertures-title {
    font-family: "Bitcount Grid Single", system-ui;
    font-optical-sizing: auto;
    font-variation-settings:
            "slnt" 0,
            "CRSV" 0.5,
            "ELSH" 0,
            "ELXP" 0;
}
#mainouvertures{
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 20px;
    margin: 20px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    position: relative; 
}

.brand h1 {
    margin: 0;
    font-size: 1.4rem;
    padding-bottom: 14px;
}

.main-nav {
    position: static;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
    margin-right: 64px; 
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(89, 155, 179, 0.15), rgba(64, 140, 153, 0.1));
    border-radius: 12px;
    border: 2px solid rgba(60, 177, 219, 0.3);
    padding: 8px;
    margin-left: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 3001;
}
.nav-toggle .bar {
    background: linear-gradient(90deg, #599bb3, #408c99);
    padding: 0;
    height: 3px;
    width: 28px;
    margin: 4px auto;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Animation pour le premier bar */
.main-nav.open .nav-toggle .bar:nth-child(1) {
    opacity: 0.5;
    transform: scaleX(0.7);
}

/* Animation pour le deuxième bar (celui du milieu) */
.main-nav.open .nav-toggle .bar:nth-child(2) {
    opacity: 0.3;
    transform: scaleX(0.5);
}

/* Animation pour le troisième bar */
.main-nav.open .nav-toggle .bar:nth-child(3) {
    opacity: 0.5;
    transform: scaleX(0.7);
}

.nav-toggle:focus-visible {
    outline: 3px solid rgba(90, 150, 200, 0.25);
}

.nav-toggle:hover {
    background: rgba(15, 68, 129, 0.24);
    transform: scale(1.02);
}


@media (max-width: 1170px) {
    .nav-links {
        position: absolute;
        right: 12px;
        top: 58px;
        background: rgba(0,0,0,0.6);
        padding: 10px;
        border-radius: 8px;
        flex-direction: column;
        align-items: flex-end;
        display: none;
        z-index: 2000;
    }

    .main-nav.open .nav-links {
        display: flex;
    }

    .nav-toggle { display: inline-flex; }

    .nav-link { padding: 8px 14px; }
}

@media (min-width: 801px) {
    .nav-links { display: flex !important; }
}

.frame-backdrop {
    display: none;
}

.side-frame {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    max-width: 85vw;
    background: rgba(10, 20, 30, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    transform: translateX(100%);
    transition: transform 260ms cubic-bezier(.22, .9, .3, 1);
    z-index: 3000;
    padding: 24px 18px;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.5);
    border-radius: 24px 0 0 24px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    font-family: 'sora', sans-serif;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    min-height: 56px;
}
.side-frame .frame-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-frame .nav-link {
    background: linear-gradient(135deg, rgba(89, 155, 179, 0.15), rgba(64, 140, 153, 0.1));
    border-radius: 10px;
    padding: 12px 16px;
    color: #fff;
    text-align: left;
    border: 1px solid rgba(89, 155, 179, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    font-family: "Sora", sans-serif;
}

.side-frame .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.side-frame .nav-link:hover::before {
    left: 100%;
}

.side-frame .nav-link:hover {
    background: linear-gradient(135deg, rgba(89, 155, 179, 0.3), rgba(64, 140, 153, 0.2));
    border-color: #599bb3;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(89, 155, 179, 0.2);
}

.side-frame .nav-link:active {
    transform: scale(1.05)
}

.side-frame.open {
    transform: translateX(0);
}

.frame-backdrop.open {
    display: block;
    position: fixed;
    inset: 0; 
    background: rgba(0,0,0,0.45);
    z-index: 2500;
}

@media (max-width: 800px) {
    .nav-links { display: none; }
}
#chessimagesindex {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
    background-size: 40px;
}
#aubinframe {
    color: blanchedalmond;
    font-size: small;
    text-align: center;
    margin-top: 80%;
}
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#side-frame .nav-link {
    font-family: 'sora', sans-serif;
}
#frame-link-base, #frame-link-specificite, #frame-link-home, #frame-link-ouvertures, #frame-link-videos, #frame-link-faq, #frame-link-glo, #frame-link-quiz, #frame-link-chessboard, #frame-link-profil, #frame-link-probleme {
    background-color: #29668f;
    border-radius: 42px;
    border: 1px solid #29668f;
    display: inline-flex;
    align-items: center;
    
    cursor: pointer;
    color: #ffffff;
    font-family: 'sora', sans-serif;
    font-size: 17px;
    padding: 0 22px; 
    min-height: 40px; 
    text-decoration: none;
    text-shadow: 0px 1px 50px #4495b3;

}
#frame-link-base:hover,
#frame-link-specificite:hover,
#frame-link-home:hover,
#frame-link-ouvertures:hover,
#frame-link-videos:hover,
#frame-link-faq:hover,
#frame-link-glo:hover,
#frame-link-quiz:hover,
#frame-link-chessboard:hover,
#frame-link-profil:hover,
#frame-link-probleme:hover {
    border: 1px solid #ffffff;
    transform: scale(1.05);
}

#frame-link-base:active,
#frame-link-specificite:active,
#frame-link-home:active,
#frame-link-ouvertures:active,
#frame-link-videos:active,
#frame-link-faq:active,
#frame-link-glo:active,
#frame-link-quiz:active,
#frame-link-chessboard:active,
#frame-link-profil:active,
#frame-link-probleme:active {
    position: relative;
    transform: scale(0.95);
}

#boutonframe {
    color: #5687d0;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95em;
    font-weight: 500;
    margin-top: 1px;
    margin-bottom: -10px;
}

#boutonframe:hover {
    color: #238ad4;
    background: rgba(53, 94, 207, 0.1);
    transform: translateX(4px);
}

#lienlog {
    color: #599bb3;
    text-decoration: none;
}
#lichesslink {
    color: #4495b3;
    text-decoration: none;
}
#ligneouvertures1{
    margin-top: 10px;
}
#imageouverturespng {
    max-width: 100%;
    height: auto;
    background-size: 40px;
    border-radius: 20px;
}
#imageouverturespng :hover {
    transform: scale(1.05);
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    /* Ratio 16:9 */
    background: linear-gradient(135deg, #599bb3, #408c99);
    overflow: hidden;
}

.video-thumbnail iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-content {
    padding: 20px;
}

.video-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
}

.video-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95em;
    margin: 0 0 12px 0;
}

.video-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.video-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(89, 155, 179, 0.1);
    color: #599bb3;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

.section-header {
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #599bb3;
}

.section-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.8em;
}

.intro-section {
    background: linear-gradient(135deg, rgba(89, 155, 179, 0.1), rgba(64, 140, 153, 0.1));
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 32px;
    border-left: 4px solid #599bb3;
}

.playlist-info {
    background: rgba(255, 255, 255, 0.6);
    padding: 16px;
    border-radius: 12px;
    margin-top: 16px;
    font-size: 0.9em;
    color: #555;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

.hero-section {
    text-align: center;
    padding: 50px 20px;
    border-radius: 20px;
    margin: 20px;
}

.hero-title {
    font-size: 3em;
    margin: 0 0 20px 0;
    color: #b9b0b0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-cta {
    display: inline-block;
    background: linear-gradient(135deg, #599bb3, #408c99);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(89, 155, 179, 0.4);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 30px;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.8s ease, height 0.8s ease;
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(89, 155, 179, 0.6);
    background: linear-gradient(135deg, #408c99, #29668f);
}

.hero-cta:active {
    transform: translateY(1px) scale(0.92);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 10px rgba(89, 155, 179, 0.3);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
    gap: 20px;
}

@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background: white;
    border-radius: 36px;
    padding: 8px 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    font-family: "Sora", sans-serif;
        font-optical-sizing: auto;
        font-weight: 400;
        font-style: normal;
}

.feature-card:hover {
    background-color: #93c9ec;
    transition: all 0.3s ease;
}

.feature-card:active {
    transform: translateY(2px);
    transition: all 0.3s ease;
}

.card-icon {
    font-size: 4em;
    margin-bottom: 16px;
    display: block;
}

.card-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    margin: 0 0 12px 0;
}

.card-description {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 20px;
    text-align: center;
}

.stat-box {
    background: linear-gradient(135deg, rgba(89, 155, 179, 0.1), rgba(64, 140, 153, 0.1));
    padding: 24px;
    border-radius: 16px;
    border-left: 4px solid #599bb3;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #599bb3;
    margin: 0;
}

.stat-label {
    font-size: 1em;
    color: #666;
    margin: 8px 0 0 0;
}

.why-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin: 40px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.why-section h2 {
    text-align: center;
    color: #333;
    font-size: 2em;
    margin-top: 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.benefit-icon {
    font-size: 1.8em;
    flex-shrink: 0;
}

.benefit-text h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.1em;
}

.benefit-text p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.cta-section {
    background: linear-gradient(135deg, #599bb3, #408c99);
    color: white;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    margin: 40px 20px;
    box-shadow: 0 8px 24px rgba(89, 155, 179, 0.4);
}

.cta-section h2 {
    margin: 0 0 20px 0;
    font-size: 2em;
}

.cta-section p {
    font-size: 1.2em;
    margin: 0 0 30px 0;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #599bb3;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2em;
    }

    .hero-subtitle {
        font-size: 1.1em;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .why-section {
        padding: 24px;
    }
}

#index-footer {
    margin-top: 0px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: #e4e4e7;
    font-size: small;
}


/* Styles spécifiques pour la page FAQ */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-intro {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(89, 155, 179, 0.1), rgba(64, 140, 153, 0.1));
    border-radius: 16px;
    border-left: 4px solid #599bb3;
}

.faq-intro h2 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 2em;
}

.faq-intro p {
    margin: 0;
    color: #666;
    font-size: 1.1em;
}

.faq-categories {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #599bb3;
    border-radius: 25px;
    color: #599bb3;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: #599bb3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(89, 155, 179, 0.3);

}

.category-btn.active {
    background: #599bb3;
    color: white;
}

.faq-section {
    margin-bottom: 40px;
}

.faq-section-title {
    font-size: 1.5em;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #599bb3;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(89, 155, 179, 0.2);
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: white;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background: rgba(89, 155, 179, 0.05);
}

.faq-question-text {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #599bb3, #408c99);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px 24px;
}

.faq-answer-content {
    color: #555;
    line-height: 1.8;
    font-size: 1em;
}

.faq-answer-content strong {
    color: #333;
}

.faq-answer-content ul {
    margin: 12px 0;
    padding-left: 24px;
}

.faq-answer-content li {
    margin: 8px 0;
}

.search-box {
    margin-bottom: 30px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 2px solid rgba(89, 155, 179, 0.3);
    border-radius: 50px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #599bb3;
    box-shadow: 0 0 0 3px rgba(89, 155, 179, 0.1);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3em;
    color: #599bb3;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1em;
    display: none;
}

.no-results.show {
    display: block;
}

@media (max-width: 768px) {
    .faq-question-text {
        font-size: 1em;
    }

    .faq-intro h2 {
        font-size: 1.5em;
    }

    .category-btn {
        font-size: 0.85em;
        padding: 8px 16px;
    }
}
.glossary-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(89, 155, 179, 0.1), rgba(64, 140, 153, 0.1));
    border-radius: 20px;
    margin: 20px;
    border-left: 4px solid #599bb3;
}

.glossary-header h2 {
    margin: 0 0 12px 0;
    font-size: 2.2em;
    color: #333;
}

.glossary-header p {
    margin: 0;
    color: #666;
    font-size: 1.1em;
}

.search-container {
    margin: 30px 20px;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 18px 24px 18px 56px;
    font-size: 1.1em;
    border: 3px solid rgba(89, 155, 179, 0.3);
    border-radius: 50px;
    background: white;
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: #599bb3;
    box-shadow: 0 0 0 4px rgba(89, 155, 179, 0.1);
}

.search-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4em;
    color: #599bb3;
}

.alphabet-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 20px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.letter-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #599bb3;
    background: white;
    color: #599bb3;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.letter-btn:hover {
    background: #599bb3;
    color: white;
    transform: scale(1.1);
}

.letter-btn.active {
    background: #599bb3;
    color: white;
}

.letter-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #ccc;
    color: #ccc;
}

.letter-btn.disabled:hover {
    background: white;
    color: #ccc;
    transform: none;
}

.glossary-section {
    margin: 40px 20px;
}

.letter-title {
    font-size: 3em;
    font-weight: bold;
    color: #599bb3;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 4px solid #599bb3;
    display: inline-block;
}

.term-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.term-card:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(89, 155, 179, 0.2);
    border-left-color: #599bb3;
}

.term-name {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.term-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(89, 155, 179, 0.1);
    color: #599bb3;
    border-radius: 20px;
    font-size: 0.5em;
    font-weight: 600;
}

.term-definition {
    color: #555;
    line-height: 1.8;
    font-size: 1.05em;
    margin: 0;
}

.term-definition strong {
    color: #333;
}

.term-example {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(89, 155, 179, 0.05);
    border-left: 3px solid #599bb3;
    border-radius: 8px;
    font-style: italic;
    color: #666;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.2em;
    display: none;
}

.no-results.show {
    display: block;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #599bb3;
    margin: 0;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
    margin: 4px 0 0 0;
}

@media (max-width: 768px) {
    .alphabet-nav {
        gap: 6px;
        padding: 16px;
    }

    .letter-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9em;
    }

    .term-name {
        font-size: 1.3em;
    }

    .stats-bar {
        flex-direction: column;
        gap: 16px;
    }
}
/* Styles pour la page d'accueil des ouvertures */
.quiz-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
}

.quiz-header {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(89, 155, 179, 0.15), rgba(64, 140, 153, 0.15));
    border-radius: 20px;
    margin-bottom: 30px;
    border-left: 4px solid #599bb3;
}

.quiz-header h2 {
    margin: 0 0 12px 0;
    font-size: 2.5em;
    color: #333;
}

.quiz-header p {
    margin: 0;
    color: #666;
    font-size: 1.1em;
}

.difficulty-selector {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.difficulty-btn {
    padding: 14px 28px;
    background: white;
    border: 3px solid #599bb3;
    border-radius: 30px;
    color: #599bb3;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.difficulty-btn:hover {
    background: #599bb3;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(89, 155, 179, 0.3);
}

.difficulty-btn.active {
    background: #599bb3;
    color: white;
}

.progress-bar {
    background: rgba(0, 0, 0, 0.1);
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #599bb3, #408c99);
    transition: width 0.5s ease;
    border-radius: 10px;
}

.question-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-number {
    color: #599bb3;
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 16px;
}

.question-text {
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

.answers-grid {
    display: grid;
    gap: 12px;
}

.answer-btn {
    padding: 20px 24px;
    background: white;
    border: 3px solid rgba(89, 155, 179, 0.3);
    border-radius: 16px;
    text-align: left;
    font-size: 1.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    font-weight: 500;
}

.answer-btn:hover:not(.correct):not(.incorrect) {
    border-color: #599bb3;
    background: rgba(89, 155, 179, 0.05);
    transform: translateX(8px);
}

.answer-btn.correct {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border-color: #22c55e;
    color: white;
    animation: correctPulse 0.6s ease;
}

.answer-btn.incorrect {
    background: linear-gradient(135deg, #f87171, #ef4444);
    border-color: #ef4444;
    color: white;
    animation: shake 0.5s ease;
}

@keyframes correctPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.answer-btn.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.feedback {
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
    display: none;
    animation: slideIn 0.4s ease;
}

.feedback.show {
    display: block;
}

.feedback.correct {
    background: rgba(74, 222, 128, 0.1);
    border-left: 4px solid #22c55e;
    color: #166534;
}

.feedback.incorrect {
    background: rgba(248, 113, 113, 0.1);
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.feedback-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.next-btn {
    margin-top: 24px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #599bb3, #408c99);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
}

.next-btn.show {
    display: inline-block;
}

.next-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(89, 155, 179, 0.4);
}

.score-card {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.5s ease;
}

.score-emoji {
    font-size: 5em;
    margin-bottom: 20px;
}

.score-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
    margin: 0 0 16px 0;
}

.score-value {
    font-size: 4em;
    font-weight: bold;
    color: #599bb3;
    margin: 20px 0;
}

.score-message {
    font-size: 1.2em;
    color: #666;
    margin: 20px 0;
}

.score-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.score-stat {
    padding: 20px;
    background: rgba(89, 155, 179, 0.1);
    border-radius: 12px;
}

.score-stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #599bb3;
    margin-bottom: 8px;
}

.score-stat-label {
    color: #666;
    font-size: 0.9em;
}

.restart-btn {
    padding: 16px 40px;
    background: linear-gradient(135deg, #599bb3, #408c99);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.restart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(89, 155, 179, 0.4);
}

.start-screen {
    display: block;
}

.quiz-screen {
    display: none;
}

.results-screen {
    display: none;
}

@media (max-width: 768px) {
    .quiz-header h2 {
        font-size: 2em;
    }

    .question-card {
        padding: 24px;
    }

    .question-text {
        font-size: 1.2em;
    }

    .score-value {
        font-size: 3em;
    }
}
.board-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.board-header {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(89, 155, 179, 0.15), rgba(64, 140, 153, 0.15));
    border-radius: 20px;
    margin-bottom: 30px;
    border-left: 4px solid #599bb3;
}

.board-header h2 {
    margin: 0 0 12px 0;
    font-size: 2.5em;
    color: #333;
}

.board-header p {
    margin: 0;
    color: #666;
    font-size: 1.1em;
}

.board-layout {
    display: grid;
    grid-template-columns: 1fr 600px;
    gap: 30px;
    margin-top: 30px;
}

.controls-panel {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.controls-panel h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.4em;
}

.piece-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.piece-btn {
    padding: 20px;
    background: white;
    border: 3px solid rgba(89, 155, 179, 0.3);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.piece-btn img {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
}

.piece-btn:hover {
    border-color: #599bb3;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(89, 155, 179, 0.3);
}

.piece-btn.active {
    border-color: #599bb3;
    background: rgba(89, 155, 179, 0.1);
}

.piece-label {
    display: block;
    font-size: 0.9em;
    color: #666;
    font-weight: 600;
}

.info-box {
    padding: 20px;
    background: rgba(89, 155, 179, 0.1);
    border-radius: 12px;
    border-left: 4px solid #599bb3;
    margin-bottom: 20px;
}

.info-box h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.1em;
}

.info-box p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.action-buttons {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.action-btn {
    padding: 16px;
    background: linear-gradient(135deg, #599bb3, #408c99);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(89, 155, 179, 0.4);
}

.action-btn.secondary {
    background: white;
    color: #599bb3;
    border: 2px solid #599bb3;
}

.action-btn.secondary:hover {
    background: rgba(89, 155, 179, 0.1);
}

.board-wrapper {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chessboard {
    display: grid;
    grid-template-columns: repeat(8, 60px);
    grid-template-rows: repeat(8, 60px);
    border: 4px solid #333;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.square {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.piece-image {
    width: 80%;
    height: 80%;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.square.white {
    background-color: #f0d9b5;
}

.square.black {
    background-color: #b58863;
}

.square:hover {
    filter: brightness(0.9);
}

.square.highlight {
    background-color: rgba(255, 255, 0, 0.4) !important;
    animation: pulse 1s infinite;
}

.square.possible-move {
    background-color: rgba(0, 118, 252, 0.4) !important;
}

.square.possible-move::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(21, 145, 167, 0.5);
    border-radius: 50%;
}

.square.selected {
    box-shadow: inset 0 0 0 4px #599bb3;
    background-color: rgba(89, 155, 179, 0.3) !important;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.coordinates {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 496px;
    color: #666;
    font-weight: bold;
    font-size: 0.9em;
    margin-top: 8px;
}

.coordinates span {
    width: 60px;
    text-align: center;
}

.legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

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

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid #333;
}

@media (max-width: 1024px) {
    .board-layout {
        grid-template-columns: 1fr;
    }

    .chessboard {
        grid-template-columns: repeat(8, 50px);
        grid-template-rows: repeat(8, 50px);
    }

    .square {
        width: 50px;
        height: 50px;
        font-size: 2em;
    }

    .coordinates span {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .chessboard {
        grid-template-columns: repeat(8, 40px);
        grid-template-rows: repeat(8, 40px);
    }

    .square {
        width: 40px;
        height: 40px;
        font-size: 1.6em;
    }

    .coordinates span {
        width: 40px;
    }

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


.cavalier-noel{
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.cavalier-noel:hover {
    transform: scale(1.1);
}
.cavalier-noel img {
    width: 100%;
    height: 100%;
}
.pion-noel{
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 90px;
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s ease;
} 
.pion-noel:hover {
    transform: scale(1.1);
}
.pion-noel img {
    width: 100%;
    height: 100%;
} 
#noelpara{
    text-align: center;
}

@media (max-width: 600px) {
    .cavalier-noel, .pion-noel {
        width: 60px;
        height: 70px;
    }
}
/* ========== BARRE DE PROGRESSION DE LECTURE ========== */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: #599bb3;
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 2px 8px rgba(89, 155, 179, 0.5);
    border-radius: 20px;
}

body.dark-mode .reading-progress {
    background:#408c99;
    border-radius: 50px;
}

/* Indicateur de progression circulaire */
.progress-circle {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(#599bb3 0%, #599bb3 var(--progress), #e5e7eb var(--progress), #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    font-weight: bold;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
p.progress-circle {
    font-family: "Sora", sans-serif;
}

.progress-circle.show {
    opacity: 1;
    visibility: visible;
}

.progress-circle::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    z-index: -1;
}

body.dark-mode .progress-circle {
    color: #e0e0e0;
}

body.dark-mode .progress-circle::before {
    background: #2d2d2d;
}

@media (max-width: 768px) {
    .progress-circle {
        bottom: 80px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 0.8em;
    }

    .progress-circle::before {
        width: 40px;
        height: 40px;
    }

}
/* Améliorer la fermeture du menu mobile */
.side-frame .nav-link {
    width: 100%;
    text-align: left;
}

/* Badge de notification optionnel */
.nav-link-profile {
    position: relative;
}

.profile-notification {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: #ef4444;
    border-radius: 50%;
    color: white;
    font-size: 0.7em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
}
.profile-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
}

.profile-header {
    background: linear-gradient(135deg, rgba(89, 155, 179, 0.15), rgba(64, 140, 153, 0.15));
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    border-left: 4px solid #599bb3;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #599bb3, #408c99);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: white;
    box-shadow: 0 4px 20px rgba(89, 155, 179, 0.3);
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
    min-width: 250px;
}

.profile-name {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
}

.profile-username {
    color: #599bb3;
    font-size: 1.1em;
    margin: 0 0 15px 0;
}

.profile-stats-quick {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-quick {
    text-align: center;
}

.stat-quick-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #599bb3;
    display: block;
}

.stat-quick-label {
    font-size: 0.9em;
    color: #666;
    display: block;
    margin-top: 4px;
}

.profile-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #599bb3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: rgba(89, 155, 179, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border-left: 4px solid #599bb3;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #599bb3;
    margin-bottom: 8px;
}

.stat-label {
    color: #666;
    font-size: 0.95em;
}

.progress-container {
    margin: 20px 0;
}

.progress-item {
    margin-bottom: 20px;
}

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

.progress-name {
    font-weight: 600;
    color: #333;
}

.progress-value {
    font-weight: bold;
    color: #599bb3;
}

.progress-bar {
    background: rgba(0, 0, 0, 0.1);
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #599bb3, #408c99);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.achievement-card {
    background: white;
    border: 2px solid rgba(89, 155, 179, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.achievement-card:hover {
    transform: translateY(-5px);
    border-color: #599bb3;
    box-shadow: 0 4px 16px rgba(89, 155, 179, 0.3);
}

.achievement-card.locked {
    opacity: 0.4;
    filter: grayscale(100%);
}

.achievement-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.achievement-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.achievement-desc {
    font-size: 0.8em;
    color: #666;
}

.recent-activity {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    padding: 15px;
    border-left: 3px solid #599bb3;
    background: rgba(89, 155, 179, 0.05);
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.activity-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: #333;
    font-weight: 500;
    margin: 0 0 4px 0;
}

.activity-time {
    color: #999;
    font-size: 0.85em;
}

.edit-profile-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #599bb3, #408c99);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 70px;
}

.edit-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(89, 155, 179, 0.4);
}

.badges-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(89, 155, 179, 0.1);
    color: #599bb3;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.learning-path {
    display: grid;
    gap: 15px;
}

.path-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(89, 155, 179, 0.05);
    border-radius: 12px;
    border-left: 4px solid #599bb3;
}

.path-check {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #599bb3;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    flex-shrink: 0;
}

.path-check.incomplete {
    background: rgba(89, 155, 179, 0.2);
    color: #999;
}

.path-content {
    flex: 1;
}

.path-title {
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.path-desc {
    color: #666;
    font-size: 0.9em;
    margin: 0;
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats-quick {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .achievement-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}
#progress-percent {
    font-weight: bold;
    color: #599bb3;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2em;

}
#hdeuxmajtext{
    font-weight: bold;
    color: #408c99;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5em;
    text-align: center;
    font-size: 15px;
}
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(89, 155, 179, 0.15), rgba(64, 140, 153, 0.1));
    border-radius: 12px;
    border: 2px solid rgba(60, 177, 219, 0.3);
    padding: 8px;
    margin-left: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

/* Liens du menu latéral */
.side-frame .frame-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-frame .nav-link {
    background: linear-gradient(135deg, rgba(89, 155, 179, 0.15), rgba(64, 140, 153, 0.1));
    border-radius: 10px;
    padding: 12px 16px;
    color: #fff;
    text-align: left;
    border: 1px solid rgba(89, 155, 179, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.side-frame .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.side-frame .nav-link:hover::before {
    left: 100%;
}

.side-frame .nav-link:hover {
    background: linear-gradient(135deg, rgba(89, 155, 179, 0.3), rgba(64, 140, 153, 0.2));
    border-color: #599bb3;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(89, 155, 179, 0.2);
}

.side-frame .nav-link:active {
    transform: translateX(6px);
}

#boutonframe {
    color: #599bb3;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95em;
    font-weight: 500;
    margin-top: 5px;
}

#boutonframe:hover {
    color: #23c9d4;
    background: rgba(89, 155, 179, 0.1);
    transform: translateX(4px);
}

/* Backdrop - Fond sombre */
.frame-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2500;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: fadeInBackdrop 0.3s ease;
}

.frame-backdrop.open {
    display: block;
}

@keyframes fadeInBackdrop {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 800px) {
    .nav-toggle {
        width: 45px;
        height: 45px;
        margin-left: 8px;
    }

    .nav-toggle .bar {
        height: 2.5px;
        width: 24px;
        margin: 3px 0;
    }

    .side-frame {
        width: 260px;
    }

    .side-frame .nav-link {
        padding: 10px 14px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .nav-toggle {
        width: 40px;
        height: 40px;
    }

    .nav-toggle .bar {
        height: 2px;
        width: 20px;
        margin: 2.5px 0;
    }

    .side-frame {
        width: 75vw;
        max-width: 260px;
    }
}
/* Backdrop - Fond sombre */
.frame-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2500;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: fadeInBackdrop 0.3s ease;
}

.frame-backdrop.open {
    display: block;
}
.hero-page {
    display: inline-block;
    background: linear-gradient(135deg, #599bb3, #408c99);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(89, 155, 179, 0.4);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 400px;
    margin-right: 400px;

}

#hero-page-retour{
    background: linear-gradient(135deg, #ffffff, #ffffff);
    box-shadow: 0 4px 15px rgba(253, 253, 253, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #408c99;
}

.hero-page::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.8s ease, height 0.8s ease;
}

.hero-page:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(89, 155, 179, 0.6);
    background: linear-gradient(135deg, #408c99, #29668f);
}

.hero-page:active {
    transform: translateY(1px) scale(0.92);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 10px rgba(89, 155, 179, 0.3);
}

.burger-container {
    position: relative;
    display: flex;
    align-items: center;
}

.burger-btn {
    background: linear-gradient(180deg, #ffffff, #f3f6f8);
    border: 3px transparent solid;
    padding: 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    margin-top: -2px;
    width: 48px;
    height: 48px;
    border: #5999c4 solid 3px;
    transform: scale(0.95);
}

.burger-btn:hover {
    transform: scale(1.05);
    border: #5fabd1 solid 3px;
    box-shadow: 0 4px 12px rgba(89, 155, 179, 0.3);
}

.burger-btn svg {
    display: block
}
#site-title {
    color: white;
    font-family: "Sora", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
}

.nav-link {
    font-family: "Sora", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

.muted {
    font-family: "Sora", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

#bienvenue-index {
    font-family: "Sora", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

.hero-cta {
    font-family: "Sora", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

@keyframes fadeInBackdrop {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 800px) {

    .side-frame {
        width: 260px;
    }

    .side-frame .nav-link {
        padding: 10px 14px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {

    .side-frame {
        width: 75vw;
        max-width: 260px;
    }
}
#Citations {
    font-family: "Sora", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: italic;
    text-align: center;
}
#mainbases {
    font-family: "Sora", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 20px;
    cursor: default;
}

#mainbases h2 {
    font-family: "Sora", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    color: #408c99;
    margin-top: 30px;
    margin-bottom: 10px;
}
.next-btn {
    padding: 16px 40px;
    background: linear-gradient(135deg, #599bb3, #408c99);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;

    display: inline-block;
    text-align: center; 
    text-decoration: none;
}
.next-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(89, 155, 179, 0.4);
}
.results-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 20px;
    border-left: 6px solid #599bb3;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.brand{
    text-decoration: none;
}
#titre-page:hover {
    color: #408c99;
    transition: color 0.3s ease;
}
#titre-page:active {
    color: #408c99;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

#bienvenue-index-2 {
    font-family: "Syne", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    text-align: center;
}

.page-actions{
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    font-family: "Sora", sans-serif;
}