/* --- DESIGN SYSTEM & CSS --- */
:root {
    --text-color: #2c3e30;
    --accent-color: #8b5a2b;
    --highlight-color: #d4a373;
    --card-bg: rgba(255, 255, 255, 0.92);
    --font-main: 'Georgia', 'Times New Roman', serif;
    --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-image: url('https://images.unsplash.com/photo-1542273917363-3b1817f69a2d?q=80&w=2074&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(20, 30, 20, 0.4);
    z-index: -1;
}

h1, h2, h3 {
    font-weight: normal;
    margin-bottom: 0.5em;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

h1 {
    font-size: 3rem;
    text-align: center;
    margin-top: 1rem;
    letter-spacing: 3px;
    color: #fff;
}

h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--highlight-color);
    display: inline-block;
    padding-bottom: 5px;
    margin-top: 0;
    color: var(--accent-color);
    text-shadow: none;
}

p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 0 20px;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.logo-img {
    width: 200px;
    height: auto;
    max-width: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.02);
}

.hero-text {
    font-style: italic;
    font-size: 1.4rem;
    color: #f0f0f0;
    text-align: center;
    margin-top: 10px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    font-weight: bold;
}

.section {
    background: var(--card-bg);
    padding: 35px;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-left: 6px solid var(--accent-color);
    backdrop-filter: blur(5px);
}

.intro-text {
    font-size: 1.25rem;
    line-height: 1.8;
}

.highlight {
    color: var(--accent-color);
    font-weight: bold;
}

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

.card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card.clickable {
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.card.clickable:hover {
    border-color: var(--highlight-color);
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(139, 90, 43, 0.2);
}

.card.clickable::after {
    content: "🔍 Cliquez pour en savoir plus";
    display: block;
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-top: 10px;
    font-family: var(--font-sans);
    opacity: 0.7;
}

.card h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-top: 10px;
}

.cta-button {
    display: inline-block;
    background-color: #0088cc;
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-button:hover {
    background-color: #006699;
    transform: scale(1.05);
}

footer {
    text-align: center;
    padding: 40px 0;
    font-size: 0.95rem;
    color: #ddd;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    margin-top: 50px;
}

.photo-credit {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    z-index: 10;
}
.photo-credit a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dotted #fff;
}
.photo-credit a:hover {
    color: #d4a373;
    border-bottom: 1px solid #d4a373;
}

/* --- STYLES DES MODALES --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-left: 6px solid var(--accent-color);
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--accent-color);
}

.modal-title {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.modal-body p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
    max-width: 100%;
}

.modal-body strong {
    color: var(--accent-color);
}

/* Spécifique pour la modale Valorisation */
#valuationModal .modal-content {
border-left-color: var(--highlight-color);
}
#valuationModal .modal-title {
color: var(--highlight-color);
}

/* --- STYLES SPÉCIFIQUES MODALE DEVISE --- */
#currencyModal .modal-content {
border-left-color: #2c5e2e; /* Vert forêt pour la devise/nature */
}
#currencyModal .modal-title {
color: #2c5e2e;
}
#currencyModal .modal-body strong {
color: #2c5e2e;
}

/* Responsive */
@media (max-width: 600px) {
    h1 { font-size: 2.2rem; }
    .section { padding: 25px; }
    .hero-text { font-size: 1.2rem; }
    .logo-img { width: 150px; }
    .photo-credit { position: relative; bottom: 0; right: 0; margin-top: 20px; display: block; }
    .modal-content { padding: 25px; }
}
