/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* =========================
   BODY
========================= */

body {
    font-family: 'Inter', Arial, sans-serif;
    background: #1b1b1b;
    color: #2f2f2f;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* =========================
   PAGE FRAME
========================= */

.site-container {
    width: 100%;
}

.site-header,
main,
.site-footer {
    max-width: 1120px;
    width: calc(100% - 48px);
    margin-left: auto;
    margin-right: auto;
    background: #ffffff;
}

.site-header {
    margin-top: 32px;
    border-radius: 14px 14px 0 0;
    border-bottom: 1px solid #eeeeee;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.site-footer {
    margin-bottom: 32px;
    border-top: 1px solid #eeeeee;
    border-radius: 0 0 14px 14px;
    background: #faf9f6;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

main {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* =========================
   HEADER
========================= */

.header-inner {
    max-width: 980px;
    margin: auto;
    padding: 24px 24px 18px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

/* =========================
   LOGO
========================= */

.logo-link {
    display: block;
    line-height: 0;
}

.site-logo {
    height: 145px;
    width: auto;
    display: block;
}

/* =========================
   MENU
========================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 36px;
}

.main-nav a {
    text-decoration: none;
    color: #263526;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        opacity 0.25s ease;
}

.main-nav a:hover,
.main-nav .active {
    color: #7da13d;
}

.admin-link {
    border: 1px solid #7da13d;
    padding: 10px 18px;
    border-radius: 40px;
}

.admin-link:hover {
    background: #7da13d;
    color: #ffffff !important;
}

/* =========================
   HOME TITLE
========================= */

.home-title {
    text-align: center;
    padding: 34px 20px 28px;
    border-top: 1px solid #eeeeee;
}

.home-title p {
    font-size: 11px;
    letter-spacing: 5px;
    color: #8a8a8a;
    text-transform: uppercase;
}

/* =========================
   CAROUSEL
========================= */

.carousel-wrapper {
    position: relative;
    max-width: 980px;
    margin: auto;
    padding: 0 64px 70px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 12px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: auto;
    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;

    cursor: grab;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track:active {
    cursor: grabbing;
}

/* =========================
   CARD
========================= */

.card {
    position: relative;

    flex: 0 0 calc((100% - 48px) / 5);
    height: 340px;

    overflow: hidden;
    border-radius: 12px;

    text-decoration: none;
    background: #f1f1f1;

    transform: translateZ(0);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    display: block;

    transition: transform 0.6s ease;
    will-change: transform;
}

.card:hover img {
    transform: scale(1.05);
}

.card::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78),
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0)
    );

    z-index: 1;
}

.card span {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;

    color: #ffffff;

    z-index: 2;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

/* =========================
   ARROWS
========================= */

.carousel-arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);

    width: 46px;
    height: 46px;

    border-radius: 50%;
    border: 1px solid #dce6d6;

    background: #ffffff;
    color: #263526;

    font-size: 30px;
    line-height: 42px;

    cursor: pointer;

    z-index: 10;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.carousel-arrow:hover {
    background: #7da13d;
    color: #ffffff;
    border-color: #7da13d;

    transform: translateY(-50%) scale(1.05);
}

.carousel-arrow-left {
    left: 8px;
}

.carousel-arrow-right {
    right: 8px;
}

/* =========================
   FOOTER
========================= */

.footer-inner {
    max-width: 980px;
    margin: auto;

    padding: 22px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-footer p {
    font-size: 10px;
    color: #777777;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    text-decoration: none;
    color: #777777;
    font-size: 10px;

    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: #7da13d;
}

/* =========================
   RESPONSIVE
========================= */

@media screen and (max-width: 900px) {

    .site-logo {
        height: 125px;
    }

    .card {
        flex: 0 0 calc((100% - 12px) / 2);
        height: 340px;
    }
}

@media screen and (max-width: 768px) {

    body {
        background: #ffffff;
        justify-content: flex-start;
    }

    .site-header,
    main,
    .site-footer {
        width: 100%;
        max-width: 100%;

        border-radius: 0;

        margin-top: 0;
        margin-bottom: 0;

        box-shadow: none;
    }

    .header-inner {
        flex-direction: column;
        align-items: center;
        gap: 12px;

        padding: 20px 20px 16px;
    }

    .site-logo {
        height: 110px;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;

        padding-top: 0;
    }

    .home-title {
        padding: 28px 20px 20px;
    }

    .home-title p {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .carousel-wrapper {
        padding: 0 24px 44px;
    }

    .card {
        flex: 0 0 86%;
        height: 400px;
    }

    .carousel-arrow {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
}/* =========================
   COLLECTION PAGE
========================= */

.collection-page {
    padding: 56px 64px 72px;
}

.collection-intro {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-label {
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #8a8a8a;
    margin-bottom: 16px;
}

.collection-intro h1 {
    font-size: 34px;
    font-weight: 500;
    color: #263526;
    margin-bottom: 16px;
}

.collection-intro p {
    font-size: 15px;
    line-height: 1.7;
    color: #666666;
}

.collection-grid {
    max-width: 980px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.collection-card {
    border-radius: 14px;
    overflow: hidden;
    background: #faf9f6;
    border: 1px solid #eeeeee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.collection-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.collection-card-image {
    height: 270px;
    overflow: hidden;
    background: #eeeeee;
}

.collection-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.collection-card:hover img {
    transform: scale(1.05);
}

.collection-card-content {
    padding: 18px 16px 20px;
}

.collection-card-content p {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8a8a8a;
    margin-bottom: 8px;
}

.collection-card-content h2 {
    font-size: 17px;
    font-weight: 600;
    color: #263526;
    margin-bottom: 10px;
}

.collection-card-content span {
    font-size: 12px;
    color: #777777;
}

/* =========================
   COLLECTION RESPONSIVE
========================= */

@media screen and (max-width: 900px) {
    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 768px) {
    .collection-page {
        padding: 42px 22px 56px;
    }

    .collection-intro h1 {
        font-size: 28px;
    }

    .collection-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .collection-card-image {
        height: 360px;
    }
}/* =========================
   COLLECTION PAGE
========================= */

.collection-page {
    padding: 54px 64px 70px;
}

/* =========================
   OBSERVATION DU MOIS
========================= */

.collection-observation {
    max-width: 980px;
    margin: auto auto 70px;
}

.observation-box {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 34px;
    align-items: center;
}

.observation-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 14px;
    background: #f3f3f3;
    border: 1px solid #eeeeee;
}

.observation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.observation-text h1 {
    font-size: 38px;
    font-weight: 500;
    color: #263526;
    margin-bottom: 18px;
}

.observation-text p {
    font-size: 15px;
    line-height: 1.8;
    color: #666666;
}

.section-label {
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #8a8a8a;
    margin-bottom: 18px;
}

/* =========================
   LISTE AGRUMES
========================= */

.collection-title {
    text-align: center;
    margin-bottom: 36px;
}

.collection-title h2 {
    font-size: 30px;
    font-weight: 500;
    color: #263526;
    margin-bottom: 12px;
}

.collection-title p {
    color: #666666;
    font-size: 14px;
}

.collection-mini-grid {
    max-width: 980px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.mini-agrume-card {
    position: relative;
    height: 210px;

    overflow: hidden;
    border-radius: 12px;

    text-decoration: none;

    background: #eeeeee;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.mini-agrume-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

.mini-agrume-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.mini-agrume-card:hover img {
    transform: scale(1.05);
}

.mini-agrume-card::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0.15),
        rgba(0,0,0,0)
    );
}

.mini-agrume-card span {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;

    z-index: 2;

    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* =========================
   RESPONSIVE
========================= */

@media screen and (max-width: 900px) {

    .observation-box {
        grid-template-columns: 1fr;
    }

    .observation-image {
        height: 340px;
    }

    .collection-mini-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {

    .collection-page {
        padding: 40px 22px 56px;
    }

    .observation-image {
        height: 280px;
    }

    .observation-text h1 {
        font-size: 28px;
    }

    .collection-mini-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .mini-agrume-card {
        height: 200px;
    }
}/* =========================
   FICHE AGRUME
========================= */

.agrume-page {
    padding: 54px 64px 70px;
}

.agrume-detail-header {
    max-width: 980px;
    margin: auto;

    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 64px;

    align-items: start;
}
.agrume-main-content {
    order: 1;
}

.agrume-main-photo {
    order: 2;
}

.agrume-main-photo .fiche-photo-box {
    height: 620px;
}

.agrume-main-photo .fiche-photo-card span {
    margin-top: 12px;
}
.agrume-info-grid,
.fiche-photo-grid {
    display: grid;
    gap: 16px;
}

.agrume-info-grid {
    grid-template-columns: repeat(3, 1fr);
    margin: 24px 0;
}

.agrume-info-grid div,
.agrume-description-box,
.evolution-window {
    background: #faf9f6;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    padding: 18px;
}

.agrume-info-grid strong,
.agrume-info-grid span {
    display: block;
}

.agrume-main-content h1 {
    font-size: 42px;
    color: #263526;
}

.agrume-main-content h2 {
    font-size: 20px;
    font-weight: 500;
    color: #7da13d;
    margin-top: 6px;
}

.agrume-photos-section,
.agrume-evolution-section {
    max-width: 980px;
    margin: 60px auto 0;
}

.fiche-photo-grid {
    grid-template-columns: repeat(5, 1fr);
}

.fiche-photo-box {
    height: 190px;
    background: #f3f3f3;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eeeeee;
}

.fiche-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fiche-photo-card span {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
}

.empty-photo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.evolution-window {
    min-height: 160px;
}

@media screen and (max-width: 900px) {
    .agrume-detail-header {
        grid-template-columns: 1fr;
    }

    .fiche-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .agrume-info-grid {
        grid-template-columns: 1fr;
    }
}/* =========================
   MENU AUTRES AGRUMES
========================= */

.agrume-nav {
    max-width: 980px;
    margin: 46px auto 0;
    padding-top: 28px;
    border-top: 1px solid #eeeeee;
}

.agrume-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.agrume-nav-list a {
    text-decoration: none;
    color: #263526;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;

    padding: 10px 14px;
    border-radius: 40px;
    border: 1px solid #dce6d6;
    background: #ffffff;

    transition: all 0.25s ease;
}

.agrume-nav-list a:hover,
.agrume-nav-list a.active {
    background: #7da13d;
    border-color: #7da13d;
    color: #ffffff;
}