@font-face {
    font-family: "CinzelRegular";
    src: url("../fonts/Cinzel_Decorative/CinzelDecorative-Regular.ttf");
}

@font-face {
    font-family: "CinzelBlack";
    src: url("../fonts/Cinzel_Decorative/CinzelDecorative-Black.ttf");
}

@font-face {
    font-family: "TrajanProBold";
    src: url("../fonts/trajan-pro/TrajanPro-Bold.otf");
}

@font-face {
    font-family: "LatoLight";
    src: url("../fonts/Lato/Lato/Lato-Light.ttf");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

.container {
    position: relative;
    min-height: 100vh;
    display: flex;
}

.side-image {
    width: 50%;
    height: 100vh;
    object-fit: cover;
    position: fixed;
}

.side-image.left {
    left: 0;
    top: 0;
}

.side-image.right {
    right: 0;
    top: 0;
}

.main-content {
    margin: 0 auto;
    width: 70%;
    min-height: 100vh;
    background: linear-gradient(to bottom, #f5e6d3 0%, #e8d4bb 100%);
    position: relative;
    padding: 20px 80px 120px;
    clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 10% 100%);
    z-index: 1;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    padding: 20px 0;
}

.nav-left,
.nav-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-button {
    background: linear-gradient(135deg, #d4a574 0%, #c89456 100%);
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    color: #2c1810;
    font-family: "CinzelBlack";
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: inline-block;
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #e0b585 0%, #d4a574 100%);
}

.icon-button {
    background: linear-gradient(135deg, #d4a574 0%, #c89456 100%);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 10px;
    overflow: hidden;
    text-decoration: none;
}

.icon-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.icon-button img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: brightness(0) saturate(100%);
}

.title {
    text-align: center;
    margin-bottom: 30px;
}

.title h1 {
    font-family: "CinzelRegular";
    font-size: 72px;
    color: #2c1810;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 26px;
    font-family: "TrajanProBold";
    color: #4a6fa5;
    font-weight: 400;
    letter-spacing: 2px;
}

.cards-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 50px;
}

.card {
    background: linear-gradient(to bottom, #3d2817 0%, #2a1810 100%);
    border-radius: 20px;
    width: 320px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    display: block;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 30px 25px;
    text-align: center;
}

.card-title {
    font-family: "CinzelBlack";
    font-size: 32px;
    color: #d4a574;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card-description {
    font-family: "LatoLight";
    color: #e8d4bb;
    font-size: 15px;
    line-height: 1.8;
}

/* Tablettes et écrans moyens */
@media (max-width: 1024px) {
    .side-image {
        width: 15%;
    }

    .main-content {
        width: 70%;
    }

    .title h1 {
        font-size: 56px;
    }

    .subtitle {
        font-size: 22px;
    }

    .cards-container {
        gap: 30px;
    }

    .card {
        width: 280px;
    }
}

/* Téléphones et petites tablettes en mode portrait */
@media (max-width: 768px) and (orientation: portrait) {
    body {
        background: url('../img/carte.png') center center / cover no-repeat fixed;
    }

    .side-image {
        display: none;
    }

    .container {
        display: block;
        background: transparent;
    }

    .main-content {
        margin: 0 auto;
        width: 90%;
        max-width: 500px;
        min-height: 100vh;
        background: linear-gradient(to bottom, rgba(245, 230, 211, 0.95) 0%, rgba(232, 212, 187, 0.95) 100%);
        padding: 20px 30px 40px;
        clip-path: none;
        border-radius: 0;
    }

    .header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
        padding: 15px 0;
    }

    .nav-left,
    .nav-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-left {
        order: 1;
    }

    .nav-right {
        order: 2;
        gap: 10px;
    }

    .icon-button {
        width: 50px;
        height: 50px;
    }

    .nav-button {
        font-size: 12px;
        padding: 10px 20px;
    }

    .title {
        margin-bottom: 30px;
    }

    .title h1 {
        font-size: 48px;
        margin-bottom: 10px;
        line-height: 1.1;
    }

    .subtitle {
        font-size: 16px;
        padding: 0 10px;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        margin-top: 30px;
    }

    .card {
        width: 100%;
        max-width: 350px;
    }

    .card-image {
        height: 180px;
    }

    .card-content {
        padding: 25px 20px;
    }

    .card-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .card-description {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Téléphones en mode paysage */
@media (max-width: 768px) and (orientation: landscape) {
    .side-image {
        display: none;
    }

    .main-content {
        margin: 0;
        width: 100%;
        padding: 15px 40px 60px;
    }

    .header {
        margin-bottom: 30px;
        padding: 10px 0;
    }

    .title h1 {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .subtitle {
        font-size: 18px;
    }

    .cards-container {
        flex-direction: row;
        gap: 20px;
        margin-top: 25px;
    }

    .card {
        width: 45%;
    }

    .card-image {
        height: 150px;
    }

    .card-content {
        padding: 20px 15px;
    }

    .card-title {
        font-size: 24px;
    }

    .card-description {
        font-size: 13px;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .main-content {
        width: 95%;
        padding: 15px 20px 30px;
    }

    .title h1 {
        font-size: 36px;
    }

    .subtitle {
        font-size: 14px;
    }

    .nav-button {
        font-size: 11px;
        padding: 8px 16px;
    }

    .icon-button {
        width: 40px;
        height: 40px;
    }
}