/*
* file: style.css
* description: Stylesheet for the "Hôtels Célestes" website.
*/

/* ---------------------------------- */
/*          CSS Variables             */
/* ---------------------------------- */
:root {
    /* Color Scheme: Bright & Futuristic */
    --primary-color: #0d6efd; /* Vibrant Blue */
    --primary-color-dark: #0a58ca;
    --secondary-color: #ff00e5; /* Electric Magenta */
    --accent-color: #00f2ea; /* Bright Cyan */
    --text-color: #212529; /* Dark Grey for readability */
    --text-light: #f8f9fa; /* Off-White for dark backgrounds */
    --bg-color: #111118; /* Near Black */
    --bg-light: #ffffff; /* White */
    --card-bg: rgba(33, 37, 41, 0.7); /* Dark semi-transparent for cards */
    --border-color: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Source Sans Pro', sans-serif;

    /* UI Elements */
    --border-radius: 12px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --volumetric-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.08);
    --volumetric-shadow-hover:
        0 10px 15px rgba(0, 0, 0, 0.2),
        0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ---------------------------------- */
/*          Global Styles             */
/* ---------------------------------- */
html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-light);
}

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    font-weight: 400;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.section {
    padding: 6rem 1.5rem;
}

.section-title {
    color: var(--accent-color);
    margin-bottom: 3rem !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
}

a {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* ---------------------------------- */
/*        Reusable Components         */
/* ---------------------------------- */

/* Global Button Styles */
.button, button, input[type='submit'] {
    font-family: var(--font-secondary);
    font-weight: 600;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    border: none;
    transition: all 0.3s ease-in-out;
}

.volumetric-button, .button.is-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    box-shadow: var(--volumetric-shadow);
    transform: translateY(0);
}

.volumetric-button:hover, .button.is-primary:hover {
    transform: translateY(-5px);
    box-shadow: var(--volumetric-shadow-hover);
    color: var(--text-light);
}

/* Card Styles */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card .card-image {
    width: 100%;
}

.card .card-image img {
    width: 100%;
    height: 200px; /* Fixed height for image containers */
    object-fit: cover; /* Ensures images cover the area without distortion */
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.card .card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.card .card-content .button {
    margin-top: auto;
}

img.is-rounded {
    border-radius: 50% !important;
    border: 3px solid var(--accent-color);
    padding: 5px;
}

/* Form Styles */
.futuristic-input {
    background-color: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    border-radius: var(--border-radius);
    padding: 1.2rem 1rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.futuristic-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.futuristic-input:focus, .futuristic-input:active {
    background-color: rgba(0,0,0,0.2);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.3);
    outline: none;
}

.label {
    color: var(--text-light);
    font-weight: 600;
}

/* ---------------------------------- */
/*          Header & Nav              */
/* ---------------------------------- */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: transparent;
    transition: background-color 0.4s ease;
}

.header.is-scrolled {
    background-color: rgba(17, 17, 24, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.navbar {
    background-color: transparent;
}

.navbar-item.logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
}

.navbar-item {
    color: var(--text-light);
    font-weight: 600;
    position: relative;
    padding: 1rem 1.5rem;
}

.navbar-item::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 1.5rem;
    right: 1.5rem;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-item:hover::after, .navbar-item.is-active::after {
    transform: scaleX(1);
}

.navbar-burger {
    color: var(--text-light);
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: rgba(17, 17, 24, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }
}


/* ---------------------------------- */
/*          Section Styles            */
/* ---------------------------------- */

/* Hero Section */
#hero {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
}

#hero .hero-body {
    position: relative;
    z-index: 2;
}

#hero .hero-title {
    color: var(--text-light); /* IMPORTANT: Hero text is white */
    font-size: 4rem;
}

#hero .hero-subtitle {
    color: var(--text-light); /* IMPORTANT: Hero text is white */
}


/* History Section - Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) {
    left: 0;
}
.timeline-item:nth-child(even) {
    left: 50%;
}
.timeline-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 3px solid var(--accent-color);
    top: 20px;
    right: -10px;
    z-index: 1;
}
.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}
.timeline-content {
    padding: 20px 30px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    position: relative;
}
.timeline-content .heading {
    color: var(--accent-color);
}
.progress {
    height: 8px;
    background-color: rgba(255,255,255,0.2);
}
.progress::-webkit-progress-value {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}
.progress::-moz-progress-bar {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

@media screen and (max-width: 768px) {
    .timeline::after { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 0; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { left: 0; }
    .timeline-marker { left: 10px; }
}


/* Methodology Section - Accordion */
.accordion {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
}
.accordion-header {
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.accordion-header:hover {
    background: rgba(40, 45, 50, 0.8);
}
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 1.5rem;
    background-color: rgba(0,0,0,0.2);
}
.accordion-body p {
    padding: 1.5rem 0;
}
.accordion.active .accordion-body {
    max-height: 500px; /* Adjust as needed */
}

/* Resources Section */
#ressources ul {
    list-style: none;
    padding: 0;
}
#ressources li {
    margin-bottom: 1rem;
}
#ressources a {
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}
#ressources a:hover {
    border-bottom-color: var(--secondary-color);
}

/* Media Section */
#media img {
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, filter 0.3s ease;
}
#media img:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* Blog Section */
#blog .box {
    background-color: var(--card-bg);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    text-align: left;
}
#blog .box a {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* ---------------------------------- */
/*          Footer Styles             */
/* ---------------------------------- */
.footer {
    background-color: #0c0c10;
    color: var(--text-light);
    padding: 4rem 1.5rem;
    border-top: 2px solid var(--accent-color);
}
.footer .title {
    color: var(--text-light);
}
.footer a {
    color: var(--text-light);
    opacity: 0.8;
}
.footer a:hover {
    opacity: 1;
    color: var(--accent-color);
}
.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer li {
    margin-bottom: 0.75rem;
}

/* ---------------------------------- */
/*         Modal & Animations         */
/* ---------------------------------- */

/* Modal styling */
.modal-card {
    background-color: var(--bg-color);
    border: 1px solid var(--accent-color);
    border-radius: var(--border-radius);
    box-shadow: 0 0 40px rgba(13, 110, 253, 0.4);
}
.modal-card-head, .modal-card-foot {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}
.modal-card-title {
    color: var(--text-light);
}
.modal-card-body {
    color: var(--text-light);
}

/* ScrollReveal Initial State */
.reveal {
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ---------------------------------- */
/*      Specific Page Styles          */
/* ---------------------------------- */

/* Success Page */
.success-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}
.success-content {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}
.success-content h1 {
    color: var(--accent-color);
}

/* Legal Pages (Privacy & Terms) */
.legal-page-content {
    padding-top: 120px; /* Offset for fixed header */
    padding-bottom: 60px;
}
.legal-page-content h1 {
    margin-bottom: 2rem;
    color: var(--accent-color);
}
.legal-page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.legal-page-content .content {
    color: var(--text-light);
    max-width: 800px;
}
.legal-page-content p, .legal-page-content li {
    color: var(--text-light);
    opacity: 0.9;
}