@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

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

:root {
    --primary-color: #c49b65;
    --primary-hover: #a77f4c;

    --secondary-color: #55766d;

    --accent-color: #f0ddbd;

    --third-color: #f5b2bd;
    
    --text-color: #333;
    --background-color: #fff;

    --font-base: 'Nunito', serif;
    --font-secondary: 'Oswald', sans-serif;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-xxl: 2.5rem;

    --padding-sm: 10px;
    --padding-md: 20px;
    --padding-lg: 40px;
}

body {
    font-family: var(--font-base);
    font-size: var(--font-size-md);
    background-color: var(--background-color);
    color: var(--text-color);
}

/* ----- HEADER ----- */
header {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    background-color: var(--secondary-color);
}

header #top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 10%;
    border-bottom: 2px solid var(--primary-color);
}

header #top-header img#logo {
    width: 100%;
    max-width: 300px;
}

header #top-header #socials {
    display: flex;
    gap: 15px;
}

header #top-header #socials .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

header #top-header #socials .social-icon:hover {
    background-color: var(--primary-hover);
    transform: scale(1.1);
}

header nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

header nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: center;
    padding: var(--padding-md) 0;
    border-right: 1px solid #e4e4e4;
}

header nav ul li a {
    color: white;
    font-family: var(--font-secondary);
    font-size: var(--font-size-lg);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 400;
    padding: var(--padding-md);
    transition: .3s ease;
    position: relative;
}

header nav ul li a:hover {
    color: var(--primary-color);
}

header nav ul li a::after {
    content: "";
    display: block;
    height: 3px;
    width: 0;
    background: var(--primary-color);
    position: absolute;
    left: 50%;
    bottom: 0px;
    transition: width 0.3s ease, left 0.3s ease;
}

header nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-color);
    cursor: pointer;
    transition: .4s;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

.switch .slider::before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 4px;
    top: 4px;
    background-color: #fff;
    transition: .4s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: var(--secondary-color);
}

.switch input:checked + .slider::before {
    transform: translateX(30px);
}

.switch-icon {
    font-size: 0.9rem;
    color: #fff;
    pointer-events: none;
}

.switch-icon.winter {
    margin-right: auto;
}

.switch-icon.summer {
    margin-left: auto;
}

/**
Generic Main
 */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

main section {
    display: flex;
    flex-direction: column;
    width: 100%;
}

main section:not(#home, #find-us) {
    padding: 50px 10%;
}

main section h2 {
    font-size: var(--font-size-xxl);
    text-align: center;
    margin-bottom: var(--padding-lg);
    font-weight: 400;
    color: var(--primary-color);
}


/* START HOME */
main #home #slider-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

main #home #slider-container .slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

main #home #slider-container .slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex: 0 0 100%;
}

main #home #slider-container .prev,
main #home #slider-container .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 2rem;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: .3s ease;
}

main #home #slider-container .prev {
    left: 20px;
}

main #home #slider-container .next {
    right: 20px;
}

main #home #slider-container .prev:hover,
main #home #slider-container .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* END HOME */

/* START CONTENT WRAPPER (PRESENTATION + NEWS) */
main .content-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 auto;
    gap: var(--padding-lg);
}

main .content-wrapper #presentation {
    flex: 2;
}

main .content-wrapper #presentation h2 {
    text-align: left;
    margin-bottom: 0;
    font-weight: 600;
}

main .content-wrapper #presentation h3 {
    font-size: var(--font-size-xl);
    margin-top: var(--padding-md);
}

main .content-wrapper #presentation p {
    font-size: var(--font-size-md);
    line-height: 1.6;
    text-align: justify;
    margin-bottom: var(--padding-sm);
}

/* START NEWS */
main .content-wrapper aside {
    width: 100%;
    max-width: 400px;
}

main .content-wrapper aside article#book {
    width: 100%;
}

main .content-wrapper aside article#book img {
    border: 2px solid var(--third-color);
    width: 100%;
    border-radius: 10px;
}

main .content-wrapper aside article#news {
    position: relative;
    overflow: hidden;
    background-color: var(--secondary-color);
    padding: var(--padding-md);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-weight: 300;
    color: white;
}

main .content-wrapper aside article#news h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--padding-md);
    text-align: center;
    color: white;
}

main .content-wrapper aside article#news #news-slider {
    display: flex;
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
}

main .content-wrapper aside article#news #news-slider .news-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

main .content-wrapper aside article#news #news-slider .news-item.active {
    opacity: 1;
}

main .content-wrapper aside article#news #news-slider .news-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    filter: brightness(0.8);
}

main .content-wrapper aside article#news #news-slider .news-item .news-text {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 90%;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 5px;
    font-family: var(--font-secondary);
}

main .content-wrapper aside article#news #news-slider .news-item .news-text h3 {
    font-size: var(--font-size-lg);
    font-weight: bold;
    margin-bottom: 5px;
}

main .content-wrapper aside article#news #news-slider .news-item .news-text p {
    font-size: var(--font-size-md);
    margin: 0;
}

main .content-wrapper aside article#news #news-dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

main .content-wrapper aside article#news #news-dots .dot {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: white;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

main .content-wrapper aside article#news #news-dots .dot.active {
    background: var(--primary-hover);
    transform: scale(1.2);
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    padding: var(--padding-lg) 0;
}

.cards .card {
    flex: 1 1 300px;
    max-width: 400px;
    background: var(--background-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Accent border au hover */
.cards .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

/* Bandeau accent décoratif en haut */
.cards .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 16px 16px 0 0;
    opacity: 0.9;
}

.cards .card h3 {
    font-size: var(--font-size-lg);
    color: var(--secondary-color);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    position: relative;
}

.cards .card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 18px;
    transition: transform 0.4s ease;
}

.cards .card:hover img {
    transform: scale(1.05);
}

.cards .card p {
    font-size: var(--font-size-md);
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 18px;
}

.cards .card .btn {
    display: inline-block;
    padding: 10px 18px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
}

.cards .card .btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* END NEWS */
/* END CONTENT WRAPPER (PRESENTATION + NEWS) */


/* START GALLERY */
main #gallery {
    background-color: var(--secondary-color);
}

main section#gallery h2 {
    color: white;
}

main #gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 245px);
    gap: 10px;
    margin: 0 auto;
}

main #gallery .gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: .3s ease;
}

main #gallery .gallery-grid img:hover {
    transform: scale(1.05);
}

main #gallery .gallery-grid img:nth-child(1) {
    grid-column: span 2;
}

main #gallery .gallery-grid img:nth-child(2) {
    grid-row: span 2;
}
/* END GALLERY */

/* START REVIEWS */
main section#reviews {
    background-color: var(--accent-color);
    color: var(--text-color);
}

main section#reviews #review-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

main section#reviews #review-container {
    display: flex;
    overflow: hidden;
    width: 100%;
}

main section#reviews #review-container .review {
    flex: 0 0 25%;
    box-sizing: border-box;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

main section#reviews #review-container .review p {
    font-size: var(--font-size-md);
    margin-bottom: 10px;
}

main section#reviews #review-container .review .stars {
    font-size: var(--font-size-lg);
    color: gold;
}
/* END REVIEWS */

/* START COMPOSITION */
main #composition {
    background-color: var(--accent-color);
}

main #composition .composition-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

main #composition .composition-list .composition-item {
    text-align: center;
    max-width: 250px;
    font-family: var(--font-secondary);
    text-transform: uppercase;
}

main #composition .composition-list .composition-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 30px;
}
/* END COMPOSITION */



/* ----- CONTACT ----- */
main #contact {
    text-align: center;
    background-color: var(--secondary-color);
    color: white;
    width: 100%;
    padding: var(--padding-lg);
}

main #contact h2 {
    color: white;
}

main #contact article p {
    margin-bottom: 20px;
}


/* START FIND US */
main section#find-us {
    background: var(--accent-color);
}

main section#find-us #content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 400px;
}

main section#find-us #content #address {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 40px 80px;
}

main section#find-us #content #address p {
    font-size: var(--font-size-lg);
    margin: 15px 0;
    font-family: var(--font-secondary);
    font-weight: 300;
}

main section#find-us #content #address i {
    color: var(--primary-color);
    margin-right: 10px;
}

main section#find-us #content #map {
    width: 100%;
    height: 100%;
}

main section#find-us #content #map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* END FIND US */

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    font-size: var(--font-size-lg);
    font-weight: bold;
    border-radius: 5px;
    transition: .3s ease;
}

.btn i {
    font-size: var(--font-size-md);
}

.btn:hover {
    opacity: .8;
    color: white;
}

.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    font-size: var(--font-size-lg);
    font-weight: bold;
    border-radius: 5px;
    transition: .3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.text-green {
    color: var(--secondary-color);
}


/* START FOOTER */
footer {
    text-align: center;
    padding: var(--padding-md);
    background-color: black;
    color: white;
}
/* END FOOTER */