/* ------------------------- */
/* --- RESET & VARIABLES --- */
/* ------------------------- */
:root {
    --color-primary: #1a1a1a; /* Noir profond */
    --color-secondary: #f4f4f4; /* Blanc cassé */
    --color-accent: #d4af37; /* Or antique */
    --font-title: 'Cormorant Garamond', serif;
    --font-body: 'Poppins', sans-serif;
    --container-width: 1100px;
    --header-height: 70px;
}

/* ------------------- */
/* --- KEYFRAMES --- */
/* ------------------- */
@keyframes hero-zoom-in {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

/* ------------------- */
/* --- GLOBAL STYLES --- */
/* ------------------- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    font-family: var(--font-body);
    line-height: 1.7;
}

h1, h2, h3 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.2;
}

/* ------------------- */
/* --- HEADER --- */
/* ------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    transition: background-color 0.4s ease-out, box-shadow 0.4s ease-out;
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-header .logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.main-header nav a {
    position: relative;
    padding: 5px 0;
    color: var(--color-primary);
    font-weight: 400;
}

.main-header nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.main-header nav a:hover::after {
    width: 100%;
}

/* ------------------- */
/* --- HERO SECTION --- */
/* ------------------- */
.hero-section {
    height: 100vh;
    min-height: 700px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    transform: scale(1.05);
    animation: hero-zoom-in 8s ease-out forwards;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

#hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 2px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

#hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    max-width: 600px;
    margin: 1rem auto 0;
    text-shadow: 0 1px 15px rgba(0,0,0,0.6);
}

/* ------------------- */
/* --- CONTENT SECTIONS --- */
/* ------------------- */
.content-section {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
}

/* ------------------- */
/* --- ABOUT SECTION --- */
/* ------------------- */
#about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 300;
}

/* ------------------- */
/* --- NEWS & EVENTS --- */
/* ------------------- */
#news-events-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.news-event-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.news-event-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-event-card h3 {
    font-size: 1.5rem;
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--color-primary);
}

.news-event-card p {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
    color: #555;
    font-weight: 300;
}

.news-event-card .date {
    display: block;
    padding: 0 1.5rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    text-align: right;
}

/* ------------------- */
/* --- PHOTOS SECTION --- */
/* ------------------- */
#photos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.photo-item {
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ------------------- */
/* --- CONTACT FORM --- */
/* ------------------- */
.contact-form {
    max-width: 700px;
    margin: 2rem auto 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.contact-form button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form button:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* ------------------- */
/* --- FOOTER --- */
/* ------------------- */
.main-footer {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

/* ------------------- */
/* --- UTILITY CLASSES --- */
/* ------------------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.text-gray-600 {
    color: #6b7280;
}

.bg-white {
    background-color: #ffffff;
}

.hidden {
    display: none;
}

.md\:flex {
    display: flex;
}

.md\:space-x-8 > * + * {
    margin-left: 2rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gap-4 {
    gap: 1rem;
}

.p-2 {
    padding: 0.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.m-auto {
    margin: auto;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.object-cover {
    object-fit: cover;
}

.object-fit-contain {
    object-fit: contain;
}

.cursor-pointer {
    cursor: pointer;
}

.transition {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-400 {
    transition-duration: 400ms;
}

.ease-out {
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.ease-in {
    transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

.ease-in-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.scale-105 {
    transform: scale(1.05);
}

.scale-1 {
    transform: scale(1);
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:translate-y-\[-5px\]:hover {
    transform: translateY(-5px);
}

.hover\:translate-y-\[-2px\]:hover {
    transform: translateY(-2px);
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

.hover\:bg-gray-200:hover {
    background-color: #e5e7eb;
}

.hover\:bg-gray-300:hover {
    background-color: #d1d5db;
}

.hover\:bg-gray-400:hover {
    background-color: #9ca3af;
}

.hover\:bg-gray-500:hover {
    background-color: #6b7280;
}

.hover\:bg-gray-600:hover {
    background-color: #4b5563;
}

.hover\:bg-gray-700:hover {
    background-color: #374151;
}

.hover\:bg-gray-800:hover {
    background-color: #1f2937;
}

.hover\:bg-gray-900:hover {
    background-color: #111827;
}

.hover\:bg-white:hover {
    background-color: #ffffff;
}

.hover\:bg-black:hover {
    background-color: #000000;
}
