@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
 --bg-color: #E0E5EC;
 --text-color: #555;
 --heading-color: #333;
 --primary-color: #6D5DFC;
 --primary-light: #A59DFF;
 --shadow-light: rgba(255, 255, 255, 0.7);
 --shadow-dark: rgba(163, 177, 198, 0.6);
 --radius: 20px;
 --transition: all 0.3s ease-in-out;
 --font-main: 'Poppins', sans-serif;
}

/* --- Base & Typography --- */
*, *::before, *::after {
 box-sizing: border-box;
 margin: 0;
 padding: 0;
}

html {
 scroll-behavior: smooth;
}

body {
 font-family: var(--font-main);
 font-size: 16px;
 line-height: 1.7;
 color: var(--text-color);
 background-color: var(--bg-color);
 -webkit-font-smoothing: antialiased;
 overflow-x: hidden;
}

.container {
 max-width: 1200px;
 margin-left: auto;
 margin-right: auto;
 padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
 font-weight: 600;
 line-height: 1.3;
 color: var(--heading-color);
 margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

a {
 color: var(--primary-color);
 text-decoration: none;
 transition: var(--transition);
}

a:hover {
 color: var(--primary-light);
}

img {
 max-width: 100%;
 height: auto;
 display: block;
}

.section {
 padding: clamp(60px, 10vw, 100px) 0;
}

.section-header {
 text-align: center;
 max-width: 700px;
 margin: 0 auto 60px;
}

.section-title {
 margin-bottom: 16px;
}

.section-subtitle {
 font-size: clamp(1rem, 2vw, 1.1rem);
 line-height: 1.6;
}

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

/* --- Neomorphism cards --- */
.card-raised {
 background: var(--bg-color);
 border-radius: var(--radius);
 box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
 transition: var(--transition);
}

.card-raised:hover {
 transform: translateY(-5px);
 box-shadow: 15px 15px 30px var(--shadow-dark), -15px -15px 30px var(--shadow-light);
}

.card-inset {
 background: var(--bg-color);
 border-radius: var(--radius);
 box-shadow: inset 8px 8px 16px var(--shadow-dark), inset -8px -8px 16px var(--shadow-light);
 transition: var(--transition);
}

.badge {
 display: inline-block;
 background: var(--primary-color);
 color: white;
 padding: 6px 16px;
 border-radius: 30px;
 font-size: 0.85rem;
 font-weight: 600;
 margin-bottom: 16px;
 box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
}

/* --- Buttons --- */
.btn {
 display: inline-block;
 padding: 14px 28px;
 font-size: 1rem;
 font-weight: 500;
 border-radius: var(--radius);
 cursor: pointer;
 transition: var(--transition);
 border: none;
 text-align: center;
}

.btn-primary {
 background: var(--primary-color);
 color: white;
 box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}
.btn-primary:hover {
 background: var(--primary-light);
}
.btn-primary:active {
 box-shadow: inset 4px 4px 8px #5a4de3, inset -4px -4px 8px #8072ff;
}

.btn-secondary {
 background: transparent;
 color: var(--text-color);
 box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}
.btn-secondary:hover {
 color: var(--primary-color);
}
.btn-secondary:active {
 box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
}
.btn-full { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }

/* --- Header & Nav --- */
.header {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 z-index: 1000;
 transition: var(--transition);
 background: var(--bg-color);
 box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}
.nav {
 height: 80px;
 display: flex;
 justify-content: space-between;
 align-items: center;
}
.nav-logo {
 font-size: 1.5rem;
 font-weight: 700;
 color: var(--heading-color);
}
.nav-list {
 display: flex;
 list-style: none;
 gap: 32px;
}
.nav-link {
 font-weight: 500;
 padding: 8px 16px;
 border-radius: var(--radius);
 transition: var(--transition);
 color: var(--text-color);
}
.nav-link:hover, .nav-link.active {
 color: var(--primary-color);
 box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
}
.nav-toggle {
 display: none;
 background: none;
 border: none;
 width: 40px;
 height: 40px;
 cursor: pointer;
 box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
 border-radius: 50%;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 gap: 5px;
}
.nav-toggle span {
 display: block;
 width: 20px;
 height: 2px;
 background-color: var(--heading-color);
 border-radius: 2px;
 transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
 position: relative;
 min-height: 80vh;
 background-size: cover;
 background-position: center;
 display: flex;
 align-items: center;
 justify-content: center;
 padding: 100px 0;
}
.hero::before {
 content: '';
 position: absolute;
 inset: 0;
 background: rgba(0,0,0,0.3);
}
.hero-content {
 position: relative;
 z-index: 1;
 text-align: center;
}
.hero-card {
 padding: clamp(30px, 5vw, 50px);
 background: rgba(224, 229, 236, 0.85);
 backdrop-filter: blur(10px);
 border-radius: var(--radius);
 box-shadow: 12px 12px 24px rgba(163, 177, 198, 0.4), -12px -12px 24px rgba(255, 255, 255, 0.4);
 max-width: 700px;
 margin: 0 auto;
}
.hero-title {
 color: var(--heading-color);
}
.hero-subtitle {
 color: var(--text-color);
 margin-bottom: 30px;
}
.hero-actions {
 display: flex;
 gap: 16px;
 justify-content: center;
 flex-wrap: wrap;
}

/* --- Card Grids --- */
.grid-3 {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 40px;
}
.card {
 padding: 24px;
 overflow: hidden;
}
.card-img {
 width: 100%;
 height: 220px;
 object-fit: cover;
 border-radius: var(--radius);
 margin-bottom: 20px;
 box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
}
.card-title {
 margin-bottom: 10px;
}
.card-text {
 font-size: 0.95rem;
 margin-bottom: 20px;
}
.card-link {
 font-weight: 600;
}

/* --- About Artist --- */
.about-artist-section {
 background: linear-gradient(145deg, #cad0d6, #f8fcff);
}
.grid-2-about {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 50px;
 align-items: center;
}
.about-artist-img-container {
 padding: 12px;
 border-radius: var(--radius);
 box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
}
.about-artist-img {
 border-radius: var(--radius);
}
.about-artist-content p {
 margin-bottom: 1.5em;
}

/* --- Expositions Section --- */
.expo-card {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: 30px;
 margin-bottom: 24px;
}
.expo-card.past {
 opacity: 0.7;
}
.expo-title { margin-bottom: 4px; }
.expo-location { font-weight: 500; font-size: 0.9rem; color: var(--primary-color); margin-bottom: 8px;}
.expo-date {
 text-align: center;
 padding-left: 30px;
 border-left: 1px solid rgba(0,0,0,0.1);
 min-width: 120px;
}
.date-text { display: block; font-size: 1.5rem; font-weight: 600; color: var(--heading-color); }
.year-text { font-size: 1rem; color: var(--text-color); }
.section-footer { text-align: center; margin-top: 40px; }

/* --- Footer --- */
.footer {
 padding: 80px 0 30px;
 margin-top: 80px;
 font-size: 0.95rem;
 background: var(--bg-color);
 box-shadow: inset 8px 8px 16px var(--shadow-dark), inset -8px -8px 16px var(--shadow-light);
}
.footer-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 40px;
 padding-bottom: 40px;
 border-bottom: 1px solid var(--shadow-dark);
}
.footer-logo { font-size: 1.5rem; font-weight: 700; color: var(--heading-color); display: block; margin-bottom: 16px; }
.footer-heading { font-size: 1.1rem; font-weight: 600; color: var(--heading-color); margin-bottom: 20px;}
.footer-links { list-style: none;}
.footer-links li { margin-bottom: 12px; }
.footer-links a, .footer-contact-item a { color: var(--text-color); }
.footer-links a:hover, .footer-contact-item a:hover { color: var(--primary-color); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.footer-contact-item svg { flex-shrink: 0; margin-top: 3px; width: 18px; color: var(--primary-color); }
.footer-social { display: flex; gap: 16px; margin-top: 20px;}
.footer-social a {
 width: 44px;
 height: 44px;
 display: flex;
 align-items: center;
 justify-content: center;
 border-radius: 50%;
 color: var(--text-color);
 box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}
.footer-social a:hover {
 color: var(--primary-color);
 box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
}
.footer-disclaimer { font-size: 0.85rem; font-style: italic; margin-top: 10px; }
.footer-bottom {
 display: flex;
 justify-content: space-between;
 align-items: center;
 flex-wrap: wrap;
 padding-top: 30px;
 font-size: 0.9rem;
}
.footer-legal-links { display: flex; gap: 24px; list-style: none; }

/* --- Forms --- */
.form-group {
 margin-bottom: 20px;
}
.form-group label {
 display: block;
 margin-bottom: 8px;
 font-weight: 500;
}
input[type="text"], input[type="email"], input[type="tel"], textarea {
 width: 100%;
 padding: 16px;
 border: none;
 border-radius: var(--radius);
 background: var(--bg-color);
 box-shadow: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
 color: var(--text-color);
 font-family: var(--font-main);
 font-size: 1rem;
 transition: var(--transition);
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, textarea:focus {
 outline: none;
 box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light), 1px 1px 2px var(--primary-light);
}
textarea { resize: vertical; min-height: 120px; }
.checkbox-group { display: flex; align-items: center; gap: 10px; }
.checkbox-group label { margin: 0; }
input[type="checkbox"] {
 -webkit-appearance: none;
 appearance: none;
 width: 24px;
 height: 24px;
 border-radius: 8px;
 background: var(--bg-color);
 box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
 cursor: pointer;
 position: relative;
}
input[type="checkbox"]:checked {
 box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}
input[type="checkbox"]:checked::after {
 content: '';
 color: var(--primary-color);
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 font-weight: bold;
}
/* Form Validation Styles */
.input-error {
 box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light), 0 0 0 2px #dc2626 !important;
}
.field-error {
 color: #c52d2d;
 font-size: 0.85rem;
 margin-top: 6px;
 font-weight: 500;
}
.spinner {
 display: inline-block;
 width: 16px;
 height: 16px;
 border: 2px solid rgba(255,255,255,0.3);
 border-radius: 50%;
 border-top-color: #fff;
 animation: spin 0.8s linear infinite;
 margin-right: 8px;
 vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
button[disabled] { opacity: 0.7; cursor: not-allowed; }

/* --- Cookie Banner --- */
.cookie-banner {
 position: fixed;
 bottom: 20px;
 left: 20px;
 right: 20px;
 max-width: 500px;
 z-index: 1001;
 display: none;
 align-items: center;
 justify-content: space-between;
 gap: 16px;
 padding: 20px;
}
.cookie-banner p { margin: 0; font-size: 0.9rem;}
.cookie-banner a { font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* --- Page Specific --- */
.page-header-section { margin-top: 80px; text-align: center; }

/* Galerie */
.gallery-filters {
 display: flex;
 justify-content: center;
 gap: 16px;
 margin-bottom: 40px;
 flex-wrap: wrap;
}
.btn-filter {
 background: var(--bg-color);
 color: var(--text-color);
 border: none;
 padding: 10px 20px;
 border-radius: var(--radius);
 cursor: pointer;
 font-weight: 500;
 box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
 transition: var(--transition);
}
.btn-filter.active, .btn-filter:hover {
 color: var(--primary-color);
 box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
}

/* Démarche */
.grid-2-demarche { display: grid; grid-template-columns: 1.2fr 1fr; gap:50px; align-items:center; }
.demarche-text p { margin-bottom: 1.5rem; }
.video-section { background: linear-gradient(145deg, #e5eaf0, #d9dfe6); }
.video-container { padding: 12px; }
.video-wrapper { position: relative; cursor: pointer; }
.video-wrapper video { width: 100%; border-radius: var(--radius); }
.video-play-btn {
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 background: rgba(224, 229, 236, 0.7);
 border: none;
 border-radius: 50%;
 width: 80px;
 height: 80px;
 display: flex;
 align-items: center;
 justify-content: center;
 cursor: pointer;
 box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
 color: var(--primary-color);
}
.video-wrapper.playing .video-play-btn { display: none; }
.process-timeline { display: grid; gap: 24px; }
.step-card { display: flex; align-items: center; gap: 24px; padding: 24px; }
.step-number {
 flex-shrink: 0;
 width: 60px;
 height: 60px;
 border-radius: 50%;
 display: grid;
 place-items: center;
 font-size: 1.5rem;
 font-weight: 700;
 color: var(--primary-color);
 box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}

/* FAQ */
.faq-container { max-width: 800px; margin: auto; }
.faq-item { margin-bottom: 20px; }
.faq-question {
 width: 100%;
 background: none;
 border: none;
 text-align: left;
 padding: 20px;
 font: inherit;
 font-size: 1.1rem;
 font-weight: 600;
 color: var(--heading-color);
 cursor: pointer;
 display: flex;
 justify-content: space-between;
 align-items: center;
}
.faq-icon { transition: transform 0.3s; }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer {
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
 padding: 0 20px;
}
.faq-answer p { margin-bottom: 1em; }
.faq-item.active .faq-answer {
 max-height: 300px;
 padding: 0 20px 20px;
}

/* Contact */
.contact-grid {
 display: grid;
 grid-template-columns: 1.2fr 1fr;
 gap: 40px;
}
.contact-form-container { padding: 40px; }
.form-title { text-align: center; margin-bottom: 30px; }
.contact-info-card { padding: 30px; margin-bottom: 30px; }
.map-container {
 height: 300px;
 border-radius: var(--radius);
 padding: 10px;
}
.map-container iframe {
 width: 100%;
 height: 100%;
 border-radius: calc(var(--radius) - 10px);
}

/* Legal & Thank You Page */
.legal-page main, .thank-you-section { margin-top: 80px; }
.legal-content, .thank-you-card { padding: clamp(20px, 5vw, 50px); max-width: 800px; margin: auto;}
.legal-content h2 { margin-top: 2em; margin-bottom: 1em; }
.legal-content ul { padding-left: 20px; margin-bottom: 1em; }
.cookie-table {
 width: 100%;
 border-collapse: collapse;
 margin: 30px 0;
 box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
}
.cookie-table th, .cookie-table td {
 border: 1px solid var(--shadow-dark);
 padding: 12px;
 text-align: left;
}
.cookie-table th { font-weight: 600; }
.thank-you-section { display: grid; place-items: center; min-height: 60vh; }
.thank-you-icon {
 width: 80px; height: 80px; border-radius: 50%;
 display: grid; place-items: center; margin: 0 auto 20px;
 box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
 color: var(--primary-color);
}

/* --- Responsive --- */
@media (max-width: 992px) {
 .grid-2-about, .grid-2-demarche, .contact-grid {
 grid-template-columns: 1fr;
 }
 .about-artist-img-container { order: -1; }
 .footer-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));}
}
@media (max-width: 768px) {
 .nav-toggle { display: flex; }
 .nav-menu {
 position: fixed;
 top: 80px; right: -100%;
 width: 100%;
 height: calc(100vh - 80px);
 background: var(--bg-color);
 transition: var(--transition);
 padding: 40px;
 box-shadow: inset 8px 8px 16px var(--shadow-dark);
 }
 .nav-menu.active { right: 0; }
 .nav-list { flex-direction: column; align-items: center; gap: 24px; }
 .nav-link { font-size: 1.2rem; }
 .expo-card { flex-direction: column; align-items: flex-start; text-align: left; gap: 20px; }
 .expo-date { border-left: none; padding-left: 0; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 20px; width: 100%; text-align: left; display: flex; gap: 10px; align-items: baseline; }
}
@media (max-width: 480px) {
 .cookie-banner {
 flex-direction: column;
 text-align: center;
 bottom: 10px; left: 10px; right: 10px;
 }
 .footer-bottom { 
 flex-direction: column;
 gap: 20px;
 }
}