main {
    background: linear-gradient(to bottom, var(--c-lightBackground), white);
}



/* HERO */
section.pageHero {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10rem 1.25rem 0 1.25rem;
    text-align: center;
}

section.pageHero h1 {
    font-family: "DM Serif Text", serif;
    font-size: clamp(2.2rem, 1.7rem + 1.5vw, 3.25rem);
    color: var(--c-black);
    font-weight: 500;
    line-height: 1.05;
}

section.pageHero h1 span {
    color: var(--c-secondary);
}

section.pageHero p {
    width: 100%;
    max-width: 760px;
    margin-top: 2rem;
    text-align: center;
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
    line-height: 1.7;
    font-family: "Montserrat", sans-serif;
}

section.pageHero p strong {
    font-weight: 600;
}



/* CALENDAR SECTION */
section.calendarSection {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 5rem 1.25rem 6rem 1.25rem;
    font-family: "Montserrat", sans-serif;
}

.calendar-card {
    width: 100%;
    max-width: 980px;
    min-height: 650px;
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 22px rgba(61, 21, 30, 0.15);
    border-radius: 2.5rem;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.calendar-header h2 {
    font-family: "DM Serif Text", serif;
    font-weight: 500;
    color: var(--c-black);
    font-size: clamp(1.8rem, 1.45rem + 0.9vw, 2.2rem);
    margin: 0;
    text-align: center;
    line-height: 1.1;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--c-tertiary);
    cursor: pointer;
    padding: 0.65rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-btn:hover {
    background: rgba(116, 197, 185, 0.15);
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.75rem;
    flex-grow: 1;
    grid-auto-rows: minmax(78px, 1fr);
}

.day {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 1rem;
    font-size: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    border: solid 4px transparent;
    min-width: 0;
    background: rgba(255, 255, 255, 0.35);
}

.day:hover:not(.empty) {
    background: rgba(116, 197, 185, 0.08);
}

.day.empty {
    cursor: default;
    background: transparent;
}

.day.selected {
    border: solid 4px var(--c-tertiary);
    box-shadow: 0 10px 20px rgba(44, 122, 123, 0.18);
    color: var(--c-black);
    font-weight: 600;
    background: white;
}

.day.has-event {
    color: var(--c-black);
    font-weight: 500;
}

.day .dot {
    width: 6px;
    height: 6px;
    background-color: var(--c-tertiary);
    border-radius: 50%;
    position: absolute;
    bottom: 14%;
    opacity: 0;
}

.day.has-event:not(.selected) .dot {
    opacity: 1;
}



/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(158, 152, 153, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.25rem;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: white;
    width: min(920px, 100%);
    border-radius: 2rem;
    padding: clamp(1.25rem, 1rem + 1vw, 2rem);
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: clamp(1.25rem, 1rem + 1vw, 2.5rem);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: calc(100vh - 2.5rem);
    overflow: auto;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-image-placeholder {
    width: 100%;
    min-height: 320px;
    background-color: #ede9e8;
    border-radius: 1.25rem;
}

.modal-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.modal-info h3 {
    font-family: "DM Serif Text", serif;
    font-weight: 500;
    color: var(--c-black);
    font-size: clamp(1.7rem, 1.35rem + 0.9vw, 2rem);
    margin: 0 0 1rem 0;
    line-height: 1.1;
}

.modal-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #88b3b4;
    font-size: 0.85rem;
    line-height: 1.3;
}

.modal-author {
    color: #88b3b4;
    font-size: 0.85rem;
    margin: 0 0 1.75rem 0;
    line-height: 1.4;
}

.btn-subscribe {
    background-color: var(--c-tertiary);
    color: white;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 0.8rem;
    font-size: 1rem;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-subscribe:hover {
    background-color: var(--c-secondary);
}

.modal-real-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 20px;
}

.modal-comment {
    color: #666;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 25px 0;
    font-family: "Montserrat", sans-serif;
}

.atelierRegisterForm {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.atelierRegisterForm label {
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--c-black);
}

.atelierRegisterForm input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(61, 21, 30, 0.12);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    font-size: 1rem;
    color: var(--c-black);
    background: white;
    outline: none;
}

.atelierFormActions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-subscribe-secondary {
    background-color: white;
    color: var(--c-black);
    border: 1px solid rgba(61, 21, 30, 0.12);
}



/* TABLETTE */
@media screen and (max-width: 1100px) {
    section.pageHero {
        padding-top: 9rem;
    }

    section.calendarSection {
        padding-top: 4rem;
        padding-bottom: 5rem;
    }

    .calendar-card {
        min-height: 600px;
    }

    .days-grid {
        grid-auto-rows: minmax(70px, 1fr);
    }

    .modal-card {
        grid-template-columns: 260px 1fr;
    }

    .modal-image-placeholder {
        min-height: 280px;
    }
}



/* PETITE TABLETTE */
@media screen and (max-width: 850px) {
    .calendar-card {
        min-height: auto;
    }

    .calendar-header {
        margin-bottom: 1.5rem;
    }

    .weekdays {
        font-size: 0.8rem;
        gap: 0.35rem;
    }

    .days-grid {
        gap: 0.5rem;
        grid-auto-rows: minmax(62px, 1fr);
    }

    .day {
        border-radius: 0.85rem;
        font-size: 0.95rem;
        border-width: 3px;
    }

    .modal-card {
        grid-template-columns: 1fr;
    }

    .modal-image-placeholder {
        min-height: 240px;
    }
}



/* MOBILE */
@media screen and (max-width: 700px) {
    section.pageHero {
        padding: 8rem 1rem 0 1rem;
    }

    section.pageHero p {
        margin-top: 1.25rem;
    }

    section.calendarSection {
        padding: 3rem 1rem 4rem 1rem;
    }

    .calendar-card {
        padding: 1rem;
        border-radius: 1.75rem;
    }

    .calendar-header {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .calendar-header h2 {
        font-size: 1.35rem;
    }

    .nav-btn {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
        padding: 0.5rem;
    }

    .weekdays {
        font-size: 0.72rem;
        margin-bottom: 0.75rem;
        gap: 0.25rem;
    }

    .days-grid {
        gap: 0.35rem;
        grid-auto-rows: minmax(48px, 1fr);
    }

    .day {
        border-radius: 0.7rem;
        font-size: 0.88rem;
        border-width: 2px;
    }

    .day .dot {
        width: 5px;
        height: 5px;
        bottom: 12%;
    }

    .modal-overlay {
        padding: 0.75rem;
        align-items: flex-end;
    }

    .modal-card {
        width: 100%;
        border-radius: 1.5rem;
        padding: 1rem;
        gap: 1rem;
        max-height: min(75vh, 900px);
    }

    .modal-image-placeholder {
        min-height: 180px;
        border-radius: 1rem;
    }

    .modal-info h3 {
        margin-bottom: 0.75rem;
    }

    .modal-desc {
        margin-bottom: 1rem;
    }

    .modal-meta {
        margin-bottom: 0.75rem;
    }

    .modal-author {
        margin-bottom: 1.25rem;
    }

    .btn-subscribe {
        width: 100%;
        text-align: center;
    }
}