/* ===========================
   MENTON INTEMPOREL - STYLES CSS
   =========================== */

/* Variables */
:root {
    --noir-profond: #0a0a0a;
    --blanc-casse: #fafaf8;
    --or-subtil: #c9a961;
    --gris-chaud: #8a8680;
    --beige-doux: #f5f2ed;
    --accent: #b8956a;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: var(--or-subtil);
    color: var(--blanc-casse);
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: var(--noir-profond);
    background: var(--blanc-casse);
    overflow-x: hidden;
    cursor: default;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 1px solid var(--or-subtil);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transition: all 0.1s ease;
    z-index: 10000;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--or-subtil);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10000;
    opacity: 0.5;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--blanc-casse);
    z-index: 20000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease, visibility 1s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.5rem;
    color: var(--noir-profond);
    margin-bottom: 40px;
}

.preloader-line {
    width: 200px;
    height: 1px;
    background: var(--gris-chaud);
    position: relative;
    overflow: hidden;
}

.preloader-line::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 100%;
    background: var(--or-subtil);
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% { left: -40%; }
    100% { left: 100%; }
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 60px;
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

header.scrolled {
    padding: 20px 60px;
    background: rgba(250, 250, 248, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.2rem;
    color: var(--noir-profond);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.7;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 50px;
}

nav a {
    font-size: 0.85rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    color: var(--noir-profond);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--or-subtil);
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

nav a:hover {
    color: var(--or-subtil);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(180deg, var(--blanc-casse) 0%, var(--beige-doux) 100%);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 1.5s ease forwards 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 0.9;
    margin-bottom: 30px;
    color: var(--noir-profond);
}

.hero .subtitle {
    font-size: 1.1rem;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    color: var(--gris-chaud);
    margin-bottom: 60px;
}

.hero-cta {
    display: inline-block;
    padding: 18px 50px;
    border: 1px solid var(--noir-profond);
    color: var(--noir-profond);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--noir-profond);
    transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.hero-cta:hover {
    color: var(--blanc-casse);
}

.hero-cta:hover::before {
    left: 0;
}

/* Sections */
section {
    padding: 150px 60px;
    max-width: 1600px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-number {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--or-subtil);
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 30px;
    color: var(--noir-profond);
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gris-chaud);
    max-width: 600px;
}

/* Les Vacances */
#vacances {
    background: var(--blanc-casse);
}

.vacances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 80px;
    margin-top: 80px;
}

.vacances-item {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.vacances-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.vacances-image {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #e3ddd4 0%, #d4c4b0 100%);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.vacances-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--noir-profond);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.vacances-image:hover::after {
    opacity: 0.1;
}

.vacances-year {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    color: var(--or-subtil);
    margin-bottom: 15px;
}

.vacances-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--noir-profond);
}

.vacances-text {
    color: var(--gris-chaud);
    line-height: 1.8;
}

/* La Fête des Citrons */
#citrons {
    background: var(--beige-doux);
}

.citrons-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    margin-top: 100px;
}

.citrons-visual {
    height: 600px;
    background: linear-gradient(135deg, #f4e4c1 0%, #e8d5a0 100%);
    position: relative;
    overflow: hidden;
}

.citrons-visual::before {
    content: 'MCMXXXIV';
    position: absolute;
    bottom: 30px;
    left: 30px;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    letter-spacing: 0.3rem;
    color: var(--or-subtil);
}

.citrons-info {
    padding: 40px;
}

.citrons-stat {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.citrons-stat:last-child {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    color: var(--gris-chaud);
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--noir-profond);
}

/* L'Art */
#art {
    background: var(--blanc-casse);
}

.art-gallery {
    margin-top: 100px;
}

.art-piece {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    margin-bottom: 150px;
    align-items: center;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.art-piece.visible {
    opacity: 1;
    transform: translateX(0);
}

.art-piece:nth-child(even) {
    direction: rtl;
}

.art-piece:nth-child(even) > * {
    direction: ltr;
}

.art-visual {
    height: 600px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.art-visual::after {
    content: 'EXPLORE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--blanc-casse);
    font-size: 0.8rem;
    letter-spacing: 0.3rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.art-visual:hover::after {
    opacity: 1;
}

.art-info {
    padding: 40px;
}

.art-artist {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--noir-profond);
}

.art-period {
    font-size: 0.9rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    color: var(--or-subtil);
    margin-bottom: 30px;
}

.art-description {
    color: var(--gris-chaud);
    line-height: 1.8;
    margin-bottom: 40px;
}

.art-link {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: var(--noir-profond);
    text-decoration: none;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--noir-profond);
    transition: all 0.3s ease;
}

.art-link:hover {
    color: var(--or-subtil);
    border-color: var(--or-subtil);
}

/* J'y suis passé */
#personnalites {
    background: var(--beige-doux);
}

.personalities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
    margin-top: 100px;
}

.personality-card {
    background: var(--blanc-casse);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    opacity: 0;
    transform: scale(0.95);
}

.personality-card.visible {
    opacity: 1;
    transform: scale(1);
}

.personality-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--or-subtil);
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.personality-card:hover::before {
    transform: scaleX(1);
}

.personality-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.personality-portrait {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4c4b0 0%, #c9a961 100%);
    margin: 0 auto 30px;
}

.personality-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--noir-profond);
}

.personality-dates {
    font-size: 0.9rem;
    color: var(--or-subtil);
    margin-bottom: 20px;
}

.personality-description {
    color: var(--gris-chaud);
    line-height: 1.8;
}

/* L'Architecture (Section Index) */
#architecture {
    background: var(--beige-doux);
}

.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    margin-top: 80px;
}

.architecture-item {
    background: var(--blanc-casse);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.architecture-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.architecture-visual {
    height: 300px;
    background: linear-gradient(135deg, #8B7355 0%, #A0522D 100%);
    position: relative;
}

.architecture-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.architecture-item:hover .architecture-visual::after {
    opacity: 1;
}

.architecture-info {
    padding: 35px;
}

.architecture-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--noir-profond);
    margin-bottom: 10px;
}

.architecture-period {
    font-size: 0.9rem;
    color: var(--or-subtil);
    margin-bottom: 15px;
    display: block;
}

.architecture-desc {
    color: var(--gris-chaud);
    line-height: 1.6;
}

/* Updates for clickable sections */
.vacances-item,
.art-piece {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Footer updates */
footer {
    background: var(--noir-profond);
    color: var(--blanc-casse);
    padding: 100px 60px 40px;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--gris-chaud);
    line-height: 1.8;
    max-width: 400px;
}

.footer-column h4 {
    font-size: 0.85rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: var(--or-subtil);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 15px;
}

.footer-column a {
    color: var(--gris-chaud);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--blanc-casse);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: var(--gris-chaud);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: var(--gris-chaud);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--blanc-casse);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablette */
@media (max-width: 1024px) {
    .citrons-showcase,
    .art-piece {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .art-piece:nth-child(even) {
        direction: ltr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .vacances-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .personalities-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Navigation */
    header {
        padding: 20px 30px;
    }

    .nav-container {
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    /* Sections */
    section {
        padding: 80px 30px;
    }

    .section-header {
        margin-bottom: 60px;
    }

    /* Hero */
    .hero h1 {
        font-size: 3rem;
    }

    .hero .subtitle {
        font-size: 1rem;
        letter-spacing: 0.2rem;
    }

    .hero-cta {
        padding: 15px 40px;
    }

    /* Vacances */
    .vacances-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .vacances-image {
        height: 350px;
    }

    /* Citrons */
    .citrons-showcase {
        gap: 30px;
    }

    .citrons-visual {
        height: 400px;
    }

    .citrons-info {
        padding: 20px;
    }

    /* Art */
    .art-piece {
        gap: 30px;
        margin-bottom: 80px;
    }

    .art-visual {
        height: 400px;
    }

    .art-info {
        padding: 20px;
    }

    .art-artist {
        font-size: 2rem;
    }

    /* Personnalités */
    .personalities-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .personality-card {
        padding: 40px 30px;
    }

    /* Footer */
    footer {
        padding: 60px 30px 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 15px;
    }

    /* Curseur custom désactivé sur mobile */
    .cursor,
    .cursor-follower {
        display: none;
    }
}

/* Petits mobiles */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .vacances-grid,
    .personalities-grid {
        gap: 30px;
    }

    .personality-portrait {
        width: 100px;
        height: 100px;
    }

    .personality-name {
        font-size: 1.5rem;
    }
}

/* ===========================
   ANIMATIONS SUPPLÉMENTAIRES
   =========================== */

/* Animation de chargement des images */
@keyframes imageReveal {
    from {
        clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0% 100%);
    }
    to {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }
}

/* Animation de ligne */
@keyframes lineExpand {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Pulsation douce */
@keyframes softPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Rotation continue */
@keyframes continuousRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===========================
   UTILITAIRES
   =========================== */

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

.mt-50 {
    margin-top: 50px;
}

.mb-50 {
    margin-bottom: 50px;
}

.fade-in {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}