:root {
  --panel-width: 300px;
  --panel-transition: 300ms ease;
}

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

html{
    scroll-behavior: smooth;
}

.lang-switcher {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    padding: 0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    overflow: hidden;
}

.lang-flag-image {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.lang-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    min-width: 140px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.23);
}

.lang-switcher.is-open .lang-menu {
    display: flex;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 10px;
    padding: 8px 10px;
    background: transparent;
    color: #111;
    cursor: pointer;
    text-align: left;
    font-size: 0.95rem;
}

.lang-option:hover {
    background: rgba(0, 0, 0, 0.06);
}

.lang-option .lang-flag-image {
    width: 20px;
    height: 20px;
}

@media (max-width: 600px) {
    .lang-switcher {
        bottom: 12px;
        left: 12px;
    }
}

body{
    font-family:'Segoe UI', sans-serif;
    color: white;
    min-height: 100vh;
    margin: 0;
}

main{
    width: 90%;
    max-width: 1000px;
    margin: auto;
    text-align: center;
    padding: 80px 0;
}

h1{
    color: rgb(128, 128, 128);
    font-size: 60px;
    letter-spacing: 12px;
    margin: 30px;
    text-align: center;
}

.showcase{
    display: flex;
    justify-content: center;
    margin-top: 50px;
    padding: 0 20px;
}

.showcase-frame{
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.video{
    position: relative;
    z-index: 2;
}

iframe{
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.funding-box{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.funding-box h3{
    color: #0b3d2e;
    font-size: 22px;
    letter-spacing: 1px;
}

.funding-box p{
    color: #1f4d3a;
    font-family: 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.funding-box .fund-btn{
    text-decoration: none;
    background: #b7f53d;
    color: #07281c;
    font-weight: 600;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    transition: .3s;
}

.funding-box .fund-btn:hover{
    background: #0b3d2e;
    color: #b7f53d;
    transform: translateY(-4px);
}

.more-btn{
    text-decoration: none;
    background: #2e2e2e;
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    transition: .3s;
}

.more-btn:hover{
    background: #dfdfdf;
    color: #2e2e2e;
    transform: translateY(-4px);
}

.gofundme-logo{
    height: 26px;
    width: auto;
}

/* on wide screens, tuck the funding box behind the video so it peeks out to the right; keep the video at its original size */
@media (min-width: 1300px){
    .showcase-frame{
        position: relative;
        /* shift the whole video+box group so it stays centered within the page */
        transform: translateX(-150px);
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-width: 900px;
        margin: 0 auto;
    }

    .showcase-frame.reverse {
        transform: translateX(150px);
    }

    .video{
        position: relative;
        z-index: 2; /* sit above the funding box */
    }

    iframe{
        width: 100%;
        aspect-ratio: 16/9; /* preserves original size behavior */
        border-radius: 15px;
    }

    /* position the text box (funding or news) behind the video so it peeks out to the side */
    .funding-box, .news-box {
        position: absolute;
        top: 0; /* will be adjusted dynamically to match the video's visible box */
        right: -300px;
        width: 360px;
        z-index: 1; /* behind the video */
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 30px 30px 30px 90px;
        background: #ffffff;
        border-radius: 15px;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
        box-sizing: border-box;
        overflow: hidden;
    }

    .showcase-frame.reverse .funding-box,
    .showcase-frame.reverse .news-box {
        right: auto;
        left: -300px;
        padding: 30px 90px 30px 30px;
    }
}

.carousel {
    width: 90%;
    max-width: 1120px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    color: #111;
    position: relative; /* needed for arrow placement */
}

@media (min-width: 1200px) {
    .carousel {
        max-width: 1200px;
    }
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    z-index: 20;
}

.carousel-arrow:hover {
    background: rgba(0,0,0,0.8);
}

.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }

.carousel h2 {
    margin: 0 0 18px;
    color: #0b3d2e;
}

.carousel-inner {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 100%;
    transition: transform .35s ease;
}

.carousel input {
    display: none;
}

.carousel-slide {
    min-width: 100%;
    padding: 10px;
}

.carousel-card {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 20px;
    background: linear-gradient(135deg, #d9d9d9, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

.carousel-indicators label {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #b0b0b0;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.carousel-indicators label:hover {
    transform: scale(1.1);
}

#slide1:checked ~ .carousel-inner .carousel-track { transform: translateX(0); }
#slide2:checked ~ .carousel-inner .carousel-track { transform: translateX(-100%); }
#slide3:checked ~ .carousel-inner .carousel-track { transform: translateX(-200%); }
#slide4:checked ~ .carousel-inner .carousel-track { transform: translateX(-300%); }

#slide1:checked ~ .carousel-indicators label[for="slide1"],
#slide2:checked ~ .carousel-indicators label[for="slide2"],
#slide3:checked ~ .carousel-indicators label[for="slide3"],
#slide4:checked ~ .carousel-indicators label[for="slide4"] {
    background: black;
}

.journal {
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    color: #111;
}

.journal h2 {
    margin-bottom: 22px;
    color: black;
}

.journal-entry {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
    padding: 18px 0;
}

/* Image à gauche sur ordinateur */
.journal-entry img {
    order: 1;

    width: 160px;
    height: 110px;

    object-fit: cover;
    border-radius: 18px;
    background: #e4e4e4;

    flex: 0 0 160px;
}

/* Texte à droite sur ordinateur */
.journal-entry-content {
    order: 2;
    flex: 1;
    min-width: 0;
}

.journal-entry-date {
    color: #5f5f5f;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.journal-entry-title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    color: #111;
}

.journal-entry p {
    margin: 0;
    line-height: 1.6;
    color: #333;
}

.journal-divider {
    width: 90%;
    height: 1px;
    margin: 0 auto;
    background: #ccc;
}

.project-info{
    /* occupy most of the viewport width so cards appear larger */
    width: 95vw;
    max-width: 95vw;
    margin: 40px auto 0;
    /* use viewport-relative horizontal padding to preserve the 95% feel */
    padding: 0 2.5vw;
    display: grid;
    /* show four equally-sized cards on wide screens */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* medium screens: two columns */
@media (max-width: 1100px) {
    .project-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.info-card{
    background: rgba(255, 255, 255, 0.95);
    color: #1b1b1b;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.info-card h3{
    color: black;
    margin-bottom: 14px;
    font-size: 20px;
    letter-spacing: 0.5px;
}

.info-card p{
    color: black;
    font-family: 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.links{
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .project-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 950px), (orientation: portrait) {

    .showcase-frame,
    .showcase-frame.reverse{
        display:flex;
        flex-direction:column;
        gap:0;
        width:100%;
    }

    .showcase-frame.reverse{
        flex-direction:column-reverse;
    }

    .showcase-frame .video,
    .showcase-frame .funding-box,
    .showcase-frame .news-box{
        position:static !important;
        width:100%;
        max-width:100%;
        left:auto !important;
        right:auto !important;
        top:auto !important;
        transform:none !important;
    }

    .showcase-frame .video{
        z-index:2;
    }

    .showcase-frame iframe{
        display:block;
        width:100%;
        aspect-ratio:16/9;
    }

    .showcase-frame .video iframe{
        border-radius:15px 15px 0 0;
    }

    .showcase-frame.reverse .video iframe{
        border-radius:0 0 15px 15px;
    }

    .showcase-frame .funding-box,
    .showcase-frame .news-box{

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

        gap:18px;

        padding:24px;

        border-radius:0 0 15px 15px;

        overflow:visible;

        height:auto;
        min-height:0;

        box-sizing:border-box;
    }

    .showcase-frame.reverse .news-box{
        border-radius:15px 15px 0 0;
    }

    .showcase-frame .funding-box h3,
    .showcase-frame .news-box h3{

        font-size:1.5rem;
        line-height:1.25;

        overflow-wrap:anywhere;
        word-break:break-word;
    }

    .showcase-frame .funding-box p,
    .showcase-frame .news-box p{

        font-size:1rem;
        line-height:1.6;

        overflow-wrap:anywhere;
    }

    .showcase-frame .funding-box a,
    .showcase-frame .news-box a{

        display:flex;
        justify-content:center;
        align-items:center;

        width:100%;

        min-height:52px;

        padding:14px 18px;

        white-space:normal;
        text-align:center;

        box-sizing:border-box;
    }

    .journal-entry {
        flex-direction: column;
        gap: 16px;
    }

    /* Image au-dessus sur mobile */
    .journal-entry img {
        order: 1;

        width: 100%;
        height: auto;
        max-height: 320px;

        aspect-ratio: 16 / 9;
        object-fit: cover;

        flex-basis: auto;
    }

    /* Texte en dessous */
    .journal-entry-content {
        order: 2;
        width: 100%;
    }
}

@media (max-width: 760px) {
    .bio-text .contact {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        align-items: center;
    }

    .bio-text .contact strong {
        flex-basis: 100%;
    }

    .bio-text .contact-line {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
        width: 100%;
    }

    .bio-text .contact .yt-btn3 {
        display: inline-flex;
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .showcase-frame .funding-box,
    .showcase-frame .news-box{
        padding:20px 16px;
        gap:16px;
}

    .showcase-frame .funding-box h3,
    .showcase-frame .news-box h3 {
        font-size: 1.4rem;
    }

    .showcase-frame .funding-box p,
    .showcase-frame .news-box p {
        font-size: 0.92rem;
    }

    .showcase-frame .funding-box .fund-btn,
    .showcase-frame .news-box .yt-btn,
    .showcase-frame .more-btn{
        min-height:50px;
        padding:12px 16px;
        font-size:.95rem;
}
}

@media (max-width: 520px) {
    .showcase-frame .funding-box,
    .showcase-frame .news-box{
        padding:18px 14px;
        gap:14px;
}

    .showcase-frame .funding-box h3,
    .showcase-frame .news-box h3{
        font-size:1.3rem;
        line-height:1.2;
}

    .showcase-frame .funding-box p,
    .showcase-frame .news-box p {
        font-size: 0.88rem;
    }

    .showcase-frame .funding-box .fund-btn,
    .showcase-frame .news-box .yt-btn,
    .showcase-frame .more-btn{
        min-height:48px;
        padding:12px;
        font-size:.9rem;
}
}

.news-box{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.news-box h3{
    color: #0b3d2e;
    font-size: 22px;
    letter-spacing: 1px;
}

.news-box p{
    color: #1f4d3a;
    font-family: 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.newsletter-section {
    display: flex;
    justify-content: center;
    padding: 50px 20px 30px;
    animation: floatIn 0.75s cubic-bezier(.2,.8,.2,1) both;
}

.newsletter-card {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: rgba(255,255,255,0.95);
    border-radius: 28px;
    box-shadow: 0 26px 70px rgba(0,0,0,0.18);
    overflow: visible;
    color: #111;
}

.newsletter-form {
    padding: 32px;
}

.newsletter-inner {
    max-width: 540px !important;
    margin: 0 auto;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.newsletter-card .sib-form-message-panel {
    margin: 0 auto 16px;
    width: calc(100% - 32px);
    max-width: 540px;
    border-radius: 18px;
}

.newsletter-card .sib-form-message-panel__text {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    padding: 18px 16px;
}

.newsletter-card .sib-form-message-panel__inner-text {
    font-weight: 600;
}

.newsletter-card input.input,
.newsletter-card select.input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.15);
    padding: 14px 16px;
    margin-top: 8px;
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
    background: #f7f8fb;
    color: #111;
}

.newsletter-card input.input:focus,
.newsletter-card select.input:focus {
    border-color: #3b4452;
    box-shadow: 0 0 0 4px rgba(55, 84, 107, 0.08);
}

.newsletter-card .entry__label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #243046;
}

.newsletter-card .entry__specification {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 0.9rem;
}

.newsletter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    border-radius: 50px;
    border: none;
    background: #2e2e2e;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}

.newsletter-btn:hover {
    background: #333333;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(0,0,0,0.18);
}

.newsletter-btn:focus-visible {
    outline: 3px solid rgba(51,51,51,0.35);
    outline-offset: 3px;
}

.newsletter-open-btn {
    position: fixed;
    right: 24px;
    top: 50px;
    transform: translateY(-50%);
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    max-width: 220px;
    padding: 16px 22px;
    border-radius: 999px;
    border: none;
    background: #2e2e2e;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 16px 40px rgba(0,0,0,0.24);
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.newsletter-open-btn:hover {
    background: #111;
    transform: translateY(-50%) translateY(-2px);
}

.newsletter-open-btn:focus-visible {
    outline: 3px solid rgba(255,255,255,0.4);
    outline-offset: 3px;
}

/* Texte visible sur ordinateur */
.newsletter-open-text {
    display: inline;
}

/* Icône masquée sur ordinateur */
.newsletter-open-icon {
    display: none;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
}

.newsletter-popup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(9, 17, 28, 0.65);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}

.newsletter-popup-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.newsletter-popup {
    position: relative;
    width: min(100%, 760px);
    max-height: 92vh;
    overflow: auto;
    border-radius: 32px;
    background: transparent;
    transform: translateY(24px) scale(0.97);
    opacity: 0;
    transition: transform .35s cubic-bezier(.22,.8,.32,1), opacity .35s ease;
}

.newsletter-popup-backdrop.open .newsletter-popup {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.newsletter-popup-close {
    position: absolute;

    top: 14px;
    right: 14px;

    width: 42px;
    height: 42px;

    padding: 0;
    border: none;
    border-radius: 50%;

    background: #2e2e2e;
    color: #ffffff;

    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 30;

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.newsletter-popup-close:hover {
    background: #111111;
    transform: scale(1.06);
}

.newsletter-popup-close:focus-visible {
    outline: 3px solid rgba(46, 46, 46, 0.35);
    outline-offset: 3px;
}

@media (max-width: 600px) {

    .newsletter-popup-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.55rem;
    }

    .newsletter-card .newsletter-form {
        padding-top: 58px;
    }
}

body.newsletter-open,
body.panel-open,
body.terminal-open {
    overflow: hidden;
}

@media (max-width: 900px) {

    .newsletter-open-btn {
        position: fixed;

        top: auto;
        right: 16px;
        bottom: 16px;
        left: auto;

        width: 54px;
        min-width: 54px;
        max-width: 54px;

        height: 54px;
        min-height: 54px;

        padding: 0;

        border-radius: 50%;

        transform: none;

        display: flex;
        align-items: center;
        justify-content: center;

        z-index: 1200;
    }

    .newsletter-open-btn:hover {
        transform: translateY(-2px);
    }

    /* Le texte disparaît sur téléphone */
    .newsletter-open-text {
        display: none;
    }

    /* L’icône apparaît */
    .newsletter-open-icon {
        display: block;
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 420px) {

    .newsletter-open-btn {
        right: 12px;
        top: 12px;

        width: 50px;
        min-width: 50px;
        max-width: 50px;

        height: 50px;
        min-height: 50px;
    }

    .newsletter-open-icon {
        width: 23px;
        height: 23px;
    }
}

.newsletter-card .sib-sms-tooltip__box {
    max-width: 100%;
}

.sib-sms-select__title,
.sib-sms-select__title__phone-number,
.sib-sms-select__title .sib-sms-select__label-text,
.sib-sms-select__list,
.sib-sms-select__list li,
.sib-sms-select__list li * {
    color: #111 !important;
}

.newsletter-card .sib-sms-input-wrapper,
.newsletter-card .sib-sms-input-wrapper .entry__field,
.newsletter-card .sib-sms-input-wrapper select.input,
.newsletter-card .sib-sms-input-wrapper input.input,
.newsletter-card .sib-sms-input-wrapper .input,
.newsletter-card .sib-sms-select,
.newsletter-card .sib-sms-select__title,
.newsletter-card .sib-sms-select__list,
.newsletter-card .sib-sms-select__list li,
.newsletter-card .sib-sms-select__title .sib-sms-select__label-text,
.newsletter-card .sib-sms-select__title__phone-number {
    color: #111 !important;
    background: #f7f8fb !important;
}

.newsletter-card .sib-sms-input-wrapper select.input {
    border: 1px solid rgba(0,0,0,0.15) !important;
    border-radius: 14px !important;
}

.newsletter-card .sib-sms-input-wrapper select.input option,
.newsletter-card .sib-sms-select__list li {
    color: #111 !important;
    background: #ffffff !important;
}

.sib-sms-select__list, .sib-sms-select__list.sib-is-open {
    z-index: 1400 !important;
}

.newsletter-card .sib-sms-input-wrapper input.input::placeholder {
    color: #667088;
}

.newsletter-card .sib-sms-select__title {
    background: #f7f8fb !important;
}

.newsletter-card .sib-sms-select__list {
    background: #ffffff !important;
}

.newsletter-card .sib-sms-select__list li:hover,
.newsletter-card .sib-sms-select__list li.sib-is-selected {
    background-color: #d8e8ff !important;
}

.newsletter-card .sib-sms-input-wrapper input.input {
    width: 100%;
}


.newsletter-card .sib-form-block {
    padding-top: 10px;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.patreon-btn {
    text-decoration: none;
    background: transparent;
    color: #000000;
    font-weight: 600;
    border: #000000 2px solid;
    padding: 15px 35px;
    border-radius: 50px;
    transition: .3s;
}

.patreon-btn:hover {
    background: #4d4d4d;
    color: #ffffff;
    border: #4d4d4d 2px solid;
    transform: translateY(-4px);
}

.yt-btn {
    text-decoration: none;
    background: transparent;
    color: #000000;
    font-weight: 600;
    border: #000000 2px solid;
    padding: 15px 35px;
    border-radius: 50px;
    transition: .3s;
}

.yt-btn2 {
    text-decoration: none;
    background: transparent;
    color: white;
    font-weight: 600;
    border: white 2px solid;
    padding: 15px 35px;
    border-radius: 50px;
    transition: .3s;
}

.yt-btn3 {
    text-decoration: none;
    background: black;
    color: white;
    font-weight: 600;
    border: transparent 2px solid;
    padding: 5px 35px;
    border-radius: 8px;
    transition: .3s;
}

.yt-btn:hover, .yt-btn2:hover, .yt-btn3:hover {
    background: #ff3838;
    color: #ffffff;
    border: #ff3838 2px solid;
    transform: translateY(-4px);
}

.secret{
    margin-top: 75px;
}

.secret h4{
    margin-left: 5px;
}

.clues{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px;
}

.clues span{
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    transition: .3s;
    cursor: pointer;
}

.clues span:hover{
    background: white;
    color: black;
    transform: scale(1.15);
}

.clues span.secret-active {
    background: rgba(255, 255, 255, 0.95);
    color: black;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.terminal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.terminal-overlay.open {
    display: flex;
}

body.terminal-open {
    overflow: hidden;
}

.terminal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(3px);
}

.terminal-window {
    position: relative;
    width: 90vw;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    background: #040404;
    border: 1px solid rgba(87, 215, 108, 0.4);
    border-radius: 18px;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: linear-gradient(90deg, rgba(12, 55, 15, 0.95), rgba(0, 0, 0, 0.9));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #9bf59b;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
}

.terminal-close {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #f7f7f7;
    font-size: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.terminal-close:hover,
.terminal-close:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    outline: none;
}

.terminal-body {
    flex: 1;
    padding: 24px;
    overflow: auto;
    background: #030303;
    font-family: 'Courier New', Courier, monospace;
    color: #c8f6c8;
    font-size: 0.98rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

.terminal-line {
    margin: 0 0 0.8em;
}

.terminal-caption {
    color: #98d98f;
    font-size: 0.9rem;
}

.terminal-input-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #020202;
}

.terminal-input-label {
    color: #9bf59b;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    line-height: 1.5;
    padding-top: 8px;
}

.terminal-input {
    flex: 1;
    min-height: 54px;
    max-height: 150px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(155, 245, 155, 0.3);
    background: #050505;
    color: #c8f6c8;
    caret-color: #c8f6c8;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    border-radius: 12px;
    outline: none;
}

.terminal-input::placeholder {
    color: rgba(200, 246, 200, 0.7);
}

.terminal-input::selection {
    background: rgba(200, 246, 200, 0.35);
    color: #020202;
}

.terminal-input:focus {
    border-color: rgba(155, 245, 155, 0.8);
    box-shadow: 0 0 0 3px rgba(155, 245, 155, 0.12);
}

.panel-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1002;
  background: white;
  color: black;
  border: none;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: opacity 200ms ease, transform 200ms ease;
}
.panel-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1002;
  background: white;
  color: black;
  border: none;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: opacity 200ms ease, transform 200ms ease;
}

/* hide toggle smoothly when panel is open */
.panel-open .panel-toggle {
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
}

/* top-left site logo */
/* logo dropdown (top-left) */
.logo-dropdown { position: fixed; left: 16px; top: 12px; z-index: 1003; display: inline-block; }
.logo-btn { background: transparent; border: none; padding: 0; margin: 0; cursor: pointer; display: inline-block; }
.site-logo { display:block; width:44px; height:44px; object-fit:cover; border-radius:6px; box-shadow:0 2px 8px rgba(0,0,0,0.15); }

/* dropdown menu (animated) */
.logo-menu {
  position: absolute;
  left: 0;
  top: 54px; /* below the logo */
  min-width: 180px;
  background: rgba(255,255,255,0.98);
  color: #111;
  border-radius: 8px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.20);
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;

  /* animate appearance */
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 180ms cubic-bezier(.2,.9,.2,1), transform 180ms cubic-bezier(.2,.9,.2,1);
  pointer-events: none;
  visibility: hidden;
}

.logo-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}

/* Also reveal the menu when hovering or focusing the logo container (no JS click required) */
.logo-dropdown:hover > .logo-menu,
.logo-dropdown:focus-within > .logo-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}

.logo-menu a {
  text-decoration: none;
  color: #111;
  padding: 10px 14px;
  display: block;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  white-space: nowrap;
}

.logo-menu a:hover {
  background: rgba(0,0,0,0.06);
}

/* submenu (flyout) - moved closer and enlarged hit area */
.menu-item { position: relative; }
.submenu {
  position: absolute;
  top: 2px;
  /* overlap a bit so there is no dead zone between parent and submenu */
  left: calc(100% - 14px);
  min-width: 200px;
  background: rgba(255,255,255,0.98);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.20);
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 0;

  opacity: 0;
  transform: translateY(-4px) scale(0.99);
  transition: opacity 180ms cubic-bezier(.2,.9,.2,1), transform 180ms cubic-bezier(.2,.9,.2,1);
  pointer-events: none;
  visibility: hidden;
}

/* reveal submenu on hover or focus-within */
.submenu-parent:hover > .submenu,
.submenu-parent:focus-within > .submenu,
.submenu-parent.submenu-open > .submenu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}

/* slightly larger clickable area for submenu links */
.submenu a { padding: 12px 16px; color: #111; text-decoration: none; display: block; }
.submenu a:hover { background: rgba(0,0,0,0.06); }

/* on small screens, stack submenu below the parent link */
@media (max-width: 640px) {
  .submenu { left: 0; top: calc(100% + 6px); min-width: 160px; }
  .logo-menu { left: 8px; top: 58px; min-width: 140px; }
}

/* ensure submenu doesn't overflow the viewport on very small widths */
@media (max-width: 420px) {
  .logo-menu { left: 8px; top: 58px; min-width: 140px; }
  .submenu { left: 0; top: calc(100% + 6px); }
}

/* backdrop (optional) */
.panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--panel-transition);
  z-index: 1000;
}

.panel-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* sliding panel */
.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: var(--panel-width);
  transform: translateX(100%); /* hidden */
  transition: transform var(--panel-transition);
  z-index: 1001;
  background: #fff;
  box-shadow: -8px 0 24px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  overflow: auto;
}

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

.side-panel header {
  padding: 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.side-panel .content {
  padding: 16px;
  flex: 1;
}

/* track list: rows with number, title, and length aligned */
.panel-body {
  padding: 12px 16px 16px 16px;
}

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

.track-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.track-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.track-num {
    width: 28px;
    text-align: right;
    color: black;
    flex: 0 0 28px;
    font-family: 'Courier New', Courier, monospace;
}

.track-title {
  color: black;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-length {
  width: 56px;
  text-align: right;
  color: black;
  flex: 0 0 56px;
}

.panel-body p, .track-title, .track-length {
    margin: 2px 0;
    font-family: 'Courier New', Courier, monospace;
}

/* header title and close button */
.panel-title {
  margin: 0;
  color: black;
  font-size: 1rem;
  font-weight: 700;
}

.panel-close {
  background: none;
  border: none;
  cursor: pointer;
  color: black;
  font-size: 1.1rem;
  line-height: 1;
  padding: 6px;
}

/* small responsive tweak */
@media (max-width: 420px) {
  :root { --panel-width: 100vw; }
}

p{
    color: black;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
}

.terminal-body p,
.terminal-body .terminal-line,
.terminal-body .terminal-caption {
    color: #98d98f;
}

.terminal-body .terminal-caption {
    color: #98d98f;
}

.align {
    margin-left: 9px;
}

footer p {
  color: rgb(197, 197, 197);
  text-align: center;
  margin: 50px 0 20px 0;
}

.bio-text p {
  margin: 10px 0 20px 0;
}

.projects-grid {
  display:grid;
  width:90vw;
  grid-template-columns:repeat(3,minmax(260px,1fr));
  justify-content:center;
  gap:24px;
  padding:40px 5vw;
  margin:0 auto;
}

.projects-page main {
  width:100%;
  max-width:none;
}

.card {
  background:#ffffff;
  border-radius:12px;
  padding:16px;
  color:#111;
  display:flex;
  flex-direction:column;
  gap:12px;
  box-shadow:0 6px 22px rgba(0,0,0,0.12)
}

.thumb {
  height:160px;
  background:linear-gradient(135deg,#ddd,#bbb);
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#444;
  font-weight:700
}

.card h3 {
  color:black;
  margin:0
}

.card p {
  color:black;
  font-family:'Segoe UI',sans-serif
}

.card a.project-link {
  margin-top:auto;
  text-decoration:none;
  color:white;
  background:black;
  padding:10px 14px;
  border-radius:40px;
  display:inline-block;
  width:fit-content;
  transition: .3s;
}

.card a.project-link:hover {
  background: rgb(66, 66, 66);
  color: white;
  transform: translateY(-4px);
}

.about-wrap {
  width:min(95vw,1100px);
  max-width:1100px;
  margin:60px auto;
  padding:30px;
}

.bio-card {
  background:#ffffff;
  padding:36px;
  border-radius:16px;
  box-shadow:0 8px 28px rgba(0,0,0,0.14);
  display:flex;
  gap:24px;
  align-items:flex-start;
  flex-wrap:nowrap;
  justify-content:flex-start;
}

.bio-photo {
  width:250px;
  border-radius:16px;
  background:linear-gradient(135deg,#ddd,#bbb);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#444;
  font-weight:700;
  flex-shrink:0;
  margin-right:20px;
}

.bio-text {
  color:#111;
  max-width:calc(100% - 320px);
}

.bio-text h2 {
  color:black;
  font-size:2.8rem;
  margin-bottom:0.4em;
}

.bio-text p {
  margin:14px 0 24px 0;
  font-size:1.1rem;
  line-height:1.75;
}

.bio-text .contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.bio-text .contact strong {
  flex-basis: 100%;
}

.bio-text .contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

@media (max-width: 920px) {
  .bio-card {
    flex-direction:column;
    align-items:center;
    text-align:center;
  }

  .bio-text {
    max-width:100%;
  }
}

@media (max-width: 980px) {
  .projects-grid {
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  }
}

.contact {
  margin-top:14px
}

.contact a.mail{
  display:inline-block;
  margin-right:12px;
  padding:8px 12px;
  border-radius:8px;
  background: black;
  color: white;
  text-decoration:none;
  transition: .3s;
}

.contact a.mail:hover{
  background: #b6b6b6;
  color: black;
  transform: translateY(-4px);
}

@font-face {
    font-display: block;
    font-family: Roboto;
    src: url(https://assets.brevo.com/font/Roboto/Latin/normal/normal/7529907e9eaf8ebb5220c5f9850e3811.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/normal/normal/25c678feafdc175a70922a116c9be3e7.woff) format("woff")
  }

  @font-face {
    font-display: fallback;
    font-family: Roboto;
    font-weight: 600;
    src: url(https://assets.brevo.com/font/Roboto/Latin/medium/normal/6e9caeeafb1f3491be3e32744bc30440.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/medium/normal/71501f0d8d5aa95960f6475d5487d4c2.woff) format("woff")
  }

  @font-face {
    font-display: fallback;
    font-family: Roboto;
    font-weight: 700;
    src: url(https://assets.brevo.com/font/Roboto/Latin/bold/normal/3ef7cf158f310cf752d5ad08cd0e7e60.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/bold/normal/ece3a1d82f18b60bcce0211725c476aa.woff) format("woff")
  }

  :where(.sib-form-message-panel) {
    display: none;
  }

  :where(.sib-form-message-panel .sib-notification__icon) {
    width: 20px;
    height: 20px;
  }


  #sib-container input:-ms-input-placeholder {
    font-family: Helvetica, sans-serif;
    text-align: left;
    color: #c0ccda;
  }

  #sib-container input::placeholder {
    font-family: Helvetica, sans-serif;
    text-align: left;
    color: #c0ccda;
  }

  #sib-container textarea::placeholder {
    font-family: Helvetica, sans-serif;
    text-align: left;
    color: #c0ccda;
  }


  #sib-container a {
    text-decoration: underline;
    color: #2BB2FC;
  }

.funding-box,
.news-box{

    overflow-wrap:anywhere;
    word-break:break-word;
}

.funding-box a,
.news-box a{

    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-align:center;

    white-space:normal;
    overflow-wrap:anywhere;

    transition:.3s;
}

.funding-box *,
.news-box *{

    max-width:100%;
}

/* =========================================================
   SHOWCASES RESPONSIVES — CHEVAUCHEMENT SUR ORDINATEUR
   Ce bloc doit rester à la toute fin de style.css
   ========================================================= */


/* ---------------------------------------------------------
   RÈGLES COMMUNES
   --------------------------------------------------------- */

.showcase {
    width: 100%;
    padding-inline: 20px;
    box-sizing: border-box;
    overflow: visible;
}

.showcase-frame,
.showcase-frame.reverse {
    position: relative;

    width: 100%;
    max-width: 900px;
    margin-inline: auto;

    display: flex;
    flex-direction: column;
    gap: 30px;

    transform: none !important;
}

.showcase-frame > .video {
    position: relative;
    z-index: 2;

    width: 100%;
    min-width: 0;
}

.showcase-frame > .video iframe {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 16 / 9;

    border: none;
    border-radius: 15px;
}


/*
   Par défaut, les boîtes sont dans le flux normal.
   C'est notamment le fonctionnement utilisé sur téléphone
   et sur les écrans qui ne sont pas assez larges.
*/
.showcase-frame > .funding-box,
.showcase-frame > .news-box {
    position: static !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    width: 100% !important;
    max-width: 100%;

    height: auto !important;
    min-height: 0;

    padding: 30px !important;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start !important;

    gap: 20px;

    box-sizing: border-box;

    overflow: visible !important;

    transform: none !important;
}


/* Empêche un enfant d'élargir la boîte */
.showcase-frame > .funding-box > *,
.showcase-frame > .news-box > * {
    min-width: 0;
    max-width: 100%;
}


/* Gestion des textes longs */
.showcase-frame .funding-box h3,
.showcase-frame .news-box h3,
.showcase-frame .funding-box p,
.showcase-frame .news-box p {
    width: 100%;
    max-width: 100%;

    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}


/* Boutons */
.showcase-frame .fund-btn,
.showcase-frame .yt-btn,
.showcase-frame .more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    max-width: 100%;
    min-height: 48px;

    padding: 12px 22px;

    box-sizing: border-box;

    text-align: center;
    line-height: 1.25;

    white-space: normal;
    overflow-wrap: anywhere;

    touch-action: manipulation;
}


/* =========================================================
   GRAND ÉCRAN : BOÎTE DERRIÈRE LA VIDÉO
   ========================================================= */

@media (min-width: 1300px) {

    /*
       La vidéo reste dans le flux normal.
       Elle détermine donc la hauteur de showcase-frame.
    */
    .showcase-frame,
    .showcase-frame.reverse {
        display: block;

        width: 100%;
        max-width: 900px;

        gap: 0;
    }


    /*
       On décale l'ensemble afin que :
       vidéo + partie visible de la boîte
       restent centrées dans la page.
    */
    .showcase-frame:not(.reverse) {
        transform: translateX(-150px) !important;
    }

    .showcase-frame.reverse {
        transform: translateX(150px) !important;
    }


    /*
       La vidéo passe devant la boîte.
    */
    .showcase-frame > .video {
        position: relative;
        z-index: 2;
    }

    .showcase-frame > .video iframe {
        border-radius: 15px;
    }


    /*
       La boîte est positionnée derrière la vidéo.

       top: 0 + bottom: 0 lui donnent exactement
       la même hauteur que showcase-frame, donc que la vidéo.
    */
    .showcase-frame > .funding-box,
    .showcase-frame > .news-box {
        position: absolute !important;

        top: 0 !important;
        bottom: 0 !important;

        width: 360px !important;
        max-width: none;

        height: auto !important;
        min-height: 0;

        z-index: 1;

        justify-content: center !important;

        gap: clamp(10px, 1.2vw, 18px);

        border-radius: 15px !important;

        overflow: hidden !important;
    }


    /*
       Première section :
       la boîte sort à droite de la vidéo.

       Largeur de la boîte : 360 px
       Décalage : 300 px
       Chevauchement derrière la vidéo : 60 px
    */
    .showcase-frame:not(.reverse) > .funding-box,
    .showcase-frame:not(.reverse) > .news-box {
        right: -300px !important;
        left: auto !important;

        padding:
            clamp(22px, 2vw, 30px)
            clamp(20px, 2vw, 30px)
            clamp(22px, 2vw, 30px)
            90px !important;
    }


    /*
       Deuxième section :
       la boîte sort à gauche de la vidéo.
    */
    .showcase-frame.reverse > .funding-box,
    .showcase-frame.reverse > .news-box {
        right: auto !important;
        left: -300px !important;

        padding:
            clamp(22px, 2vw, 30px)
            90px
            clamp(22px, 2vw, 30px)
            clamp(20px, 2vw, 30px) !important;
    }

    .showcase-frame.reverse > .news-box {
        bottom: 1px !important;
    }


    /*
       Taille légèrement contrôlée sur ordinateur
       afin que tout le contenu tienne dans la hauteur 16/9.
    */
    .showcase-frame .funding-box h3,
    .showcase-frame .news-box h3 {
        font-size: clamp(1.15rem, 1.5vw, 1.38rem);
        line-height: 1.2;
    }

    .showcase-frame .funding-box p,
    .showcase-frame .news-box p {
        font-size: clamp(0.82rem, 1vw, 0.94rem);
        line-height: 1.45;
    }

    .showcase-frame .fund-btn,
    .showcase-frame .yt-btn,
    .showcase-frame .more-btn {
        width: auto;
        max-width: 100%;

        min-height: 50px;
        padding: 15px 35px;

        font-size: 1rem;
        line-height: 1.25;

        white-space: normal;
        text-align: center;
    }
}


/* =========================================================
   TABLETTE ET TÉLÉPHONE : ÉLÉMENTS COLLÉS VERTICALEMENT
   ========================================================= */

@media (max-width: 950px), (orientation: portrait) {

    .showcase {
        margin-top: 34px;
        padding-inline: 14px;
    }

    .showcase-frame,
    .showcase-frame.reverse {
        display: flex;
        flex-direction: column;

        width: 100%;
        max-width: 900px;

        gap: 0;

        transform: none !important;
    }


    /*
       Annule complètement le positionnement desktop.
       La hauteur redevient naturelle.
    */
    .showcase-frame > .funding-box,
    .showcase-frame > .news-box {
        position: static !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        width: 100% !important;
        max-width: 100%;

        height: auto !important;
        min-height: 0;

        padding: 22px !important;

        justify-content: flex-start !important;

        overflow: visible !important;
    }


    /*
       Première section :
       vidéo au-dessus, boîte en dessous.
    */
    .showcase-frame:not(.reverse) > .video iframe {
        border-radius: 15px 15px 0 0;
    }

    .showcase-frame:not(.reverse) > .funding-box,
    .showcase-frame:not(.reverse) > .news-box {
        border-radius: 0 0 15px 15px !important;
    }


    /*
       Deuxième section :
       l'ordre du HTML est déjà :
       boîte puis vidéo.
    */
    .showcase-frame.reverse > .funding-box,
    .showcase-frame.reverse > .news-box {
        border-radius: 15px 15px 0 0 !important;
    }

    .showcase-frame.reverse > .video iframe {
        border-radius: 0 0 15px 15px;
    }


    /*
       Boutons larges et faciles à toucher.
    */
    .showcase-frame .fund-btn,
    .showcase-frame .yt-btn,
    .showcase-frame .more-btn {
        width: 100%;
        max-width: 100%;

        min-height: 50px;

        padding: 13px 18px;
    }
}


/* =========================================================
   PETITS TÉLÉPHONES
   ========================================================= */

@media (max-width: 600px) {

    .showcase {
        padding-inline: 10px;
    }

    .showcase-frame > .funding-box,
    .showcase-frame > .news-box {
        gap: 15px;

        padding: 18px 15px !important;
    }

    .showcase-frame .funding-box h3,
    .showcase-frame .news-box h3 {
        font-size: clamp(1.2rem, 6vw, 1.45rem);
        line-height: 1.25;
    }

    .showcase-frame .funding-box p,
    .showcase-frame .news-box p {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .showcase-frame .fund-btn,
    .showcase-frame .yt-btn,
    .showcase-frame .more-btn {
        min-height: 48px;

        padding: 12px 14px;

        font-size: 0.92rem;
    }
}


/* Écrans très étroits */
@media (max-width: 360px) {

    .showcase {
        padding-inline: 8px;
    }

    .showcase-frame > .funding-box,
    .showcase-frame > .news-box {
        padding: 16px 12px !important;
    }

    .showcase-frame .fund-btn,
    .showcase-frame .yt-btn,
    .showcase-frame .more-btn {
        padding-inline: 10px;

        font-size: 0.88rem;
    }
}

/* Ligne contenant le titre Newsletter et le bouton de fermeture */
.newsletter-title-wrapper {
    padding: 8px 0;
}

.newsletter-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    width: 100%;

    padding: 0 !important;
    margin: 0;

    background: transparent !important;
    color: #3c4858;

    font-family: Helvetica, sans-serif;
    text-align: left;
}

/* Titre */
.newsletter-title-row #newsletterPopupTitle {
    margin: 0;
    padding: 0;

    font-family: Helvetica, sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 42px;

    color: #3c4858;

    flex: 1;
    min-width: 0;
}

/* Croix de fermeture */
.newsletter-title-row .newsletter-popup-close {
    position: static;

    width: 42px;
    height: 42px;

    min-width: 42px;
    flex: 0 0 42px;

    padding: 0;
    margin: 0;

    border: none;
    border-radius: 50%;

    background: #2e2e2e;
    color: #ffffff;

    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.newsletter-title-row .newsletter-popup-close:hover {
    background: #111111;
    transform: scale(1.06);
}

.newsletter-title-row .newsletter-popup-close:focus-visible {
    outline: 3px solid rgba(46, 46, 46, 0.35);
    outline-offset: 3px;
}

@media (max-width: 600px) {

    .newsletter-title-row {
        gap: 12px;
    }

    .newsletter-title-row #newsletterPopupTitle {
        font-size: 26px;
        line-height: 40px;
    }

    .newsletter-title-row .newsletter-popup-close {
        width: 40px;
        height: 40px;

        min-width: 40px;
        flex-basis: 40px;

        font-size: 1.55rem;
    }
}

.about-wrap,
.about-wrap * {
    box-sizing: border-box;
}


/* =========================================================
   TABLETTE ET MOBILE
   ========================================================= */

@media (max-width: 920px) {

    .about-wrap {
        width: calc(100% - 28px);
        max-width: 700px;

        margin: 70px auto 30px;
        padding: 0;
    }

    .about-wrap > h1 {
        max-width: 100%;
        margin: 24px 0 30px;

        font-size: clamp(2rem, 11vw, 3.5rem);
        letter-spacing: clamp(0.15rem, 2vw, 0.55rem);

        overflow-wrap: anywhere;
    }

    .bio-card {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        width: 100%;

        gap: 0;
        padding: 0;

        overflow: visible;

        text-align: left;
    }

    /*
       La photo conserve ses proportions naturelles.
       Elle occupe le haut de la carte sans être écrasée.
    */
    .bio-card > .bio-photo {
        display: block;
        order: 1;

        width: min(72%, 300px);
        max-width: 300px;
        height: auto;

        margin: 24px auto 0;

        border-radius: 16px;

        object-fit: contain;
        object-position: center;

        background: #dddddd;

        flex: none;
        align-self: center;
    }

    .bio-card > .bio-text {
        order: 2;

        width: 100%;
        max-width: 100%;
        min-width: 0;

        padding: 26px 24px 30px;

        text-align: left;
    }

    .bio-text h2 {
        margin: 0 0 18px;

        font-size: clamp(1.8rem, 8vw, 2.5rem);
        line-height: 1.15;

        overflow-wrap: anywhere;
    }

    .bio-text p {
        max-width: 100%;

        margin: 0 0 22px;

        font-size: 1rem;
        line-height: 1.65;

        overflow-wrap: anywhere;
        word-break: normal;
    }


    /* =====================================================
       CONTACT ET BOUTONS
       ===================================================== */

    .bio-text .contact {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        width: 100%;
        max-width: 100%;

        gap: 14px;

        margin: 24px 0;

        text-align: left;
    }

    .bio-text .contact strong {
        display: block;

        width: 100%;
        flex-basis: auto;
    }

    .bio-text .contact-line {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        width: 100%;
        max-width: 100%;

        gap: 8px;

        overflow-wrap: anywhere;
    }

    /*
       Les deux liens restent entièrement dans la carte.
    */
    .bio-text .contact a.mail,
    .bio-text .contact a.yt-btn3 {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 50px;

        margin: 0;
        padding: 12px 16px;

        box-sizing: border-box;

        text-align: center;
        line-height: 1.3;
        text-decoration: none;

        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}


/* =========================================================
   PETITS TÉLÉPHONES
   ========================================================= */

@media (max-width: 520px) {

    .about-wrap {
        width: calc(100% - 20px);
        margin-top: 64px;
    }

    .bio-card > .bio-text {
        padding: 22px 16px 26px;
    }

    .bio-text h2 {
        font-size: 1.8rem;
    }

    .bio-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .bio-text .contact a.mail,
    .bio-text .contact a.yt-btn3 {
        min-height: 48px;

        padding: 11px 12px;

        font-size: 0.9rem;
    }

    .bio-card > .bio-photo {
        width: min(78%, 250px);
        max-width: 250px;
        margin-top: 18px;
    }
}


/* Écrans extrêmement étroits */
@media (max-width: 360px) {

    .about-wrap {
        width: calc(100% - 14px);
    }

    .bio-card > .bio-text {
        padding-inline: 12px;
    }

    .bio-text .contact a.mail,
    .bio-text .contact a.yt-btn3 {
        padding-inline: 8px;
        font-size: 0.85rem;
    }
}