/* =========================================================
   COMITE ROUTE PABLO PICASSO — STYLES PARTAGES
   ========================================================= */

:root {
  --cream: #F7EBD0;
  --cream-light: #FCF6E8;
  --purple: #2E1F52;
  --purple-soft: #4A3877;
  --yellow: #F2D44A;
  --text: #1F1635;
  --text-soft: #574B7A;
  --border: rgba(46, 31, 82, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream-light);
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: var(--purple);
  letter-spacing: -0.01em;
}

a { color: var(--purple); }

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

/* =========================================================
   NAV
   ========================================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(252, 246, 232, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--purple);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--yellow);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--purple);
  margin: 5px 0;
  transition: 0.3s;
}

/* =========================================================
   HERO (Page-level header)
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  padding: 140px 40px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(242, 212, 74, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(74, 56, 119, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  max-width: 1100px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-emblem {
  width: 140px;
  height: 140px;
  margin: 0 auto 36px;
  border-radius: 50%;
  background: var(--cream-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(46, 31, 82, 0.1);
}
.hero-emblem svg { width: 80px; height: 80px; }

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--purple-soft);
  margin-bottom: 24px;
  font-weight: 500;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1.05;
  margin-bottom: 28px;
}
.hero h1 em { font-style: italic; color: var(--purple-soft); }

.hero-lede {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--text-soft);
  max-width: 720px;
  margin: 0 auto 48px;
  line-height: 1.5;
  font-style: italic;
}
.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   HERO PHOTO
   ========================================================= */
.hero-photo {
  position: relative;
  background: var(--purple);
}
.hero-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(46,31,82,0.5) 0%, rgba(46,31,82,0.7) 100%);
}
.hero-photo .hero-content {
  position: relative;
  z-index: 1;
}
.hero-photo h1,
.hero-photo .hero-lede,
.hero-photo .hero-eyebrow {
  color: var(--cream);
}
.hero-photo .hero-eyebrow { color: var(--yellow); }
.hero-photo h1 em { color: var(--yellow); }
.hero-photo .btn-secondary {
  border-color: var(--cream);
  color: var(--cream);
}
.hero-photo .btn-secondary:hover {
  background: var(--cream);
  color: var(--purple);
}

/* =========================================================
   PAGE HEADER (internal pages, smaller hero)
   ========================================================= */
.page-header {
  background: var(--cream);
  padding: 160px 40px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-header::before {
  content: '';
  position: absolute;
  top: 30%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(242, 212, 74, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-header-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-header .eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--purple-soft);
  margin-bottom: 24px;
  font-weight: 500;
}
.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 24px;
}
.page-header h1 em { font-style: italic; color: var(--purple-soft); }

.page-header .lede {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--text-soft);
  font-style: italic;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
}

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 40px 0;
  font-size: 13px;
  color: var(--text-soft);
}
.breadcrumb a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--purple); }
.breadcrumb .sep { margin: 0 10px; color: var(--border); }
.breadcrumb .current { color: var(--purple); font-weight: 500; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 2px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--purple);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--purple-soft);
  transform: translateY(-2px);
  color: var(--cream);
}
.btn-secondary {
  background: transparent;
  color: var(--purple);
  border: 1px solid var(--purple);
}
.btn-secondary:hover {
  background: var(--purple);
  color: var(--cream);
}

/* =========================================================
   SECTIONS
   ========================================================= */
section {
  padding: 100px 40px;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-inner-narrow {
  max-width: 900px;
  margin: 0 auto;
}
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--purple-soft);
  margin-bottom: 20px;
  font-weight: 500;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 40px;
}
.section-title em { font-style: italic; color: var(--purple-soft); }

.section-cream { background: var(--cream); }
.section-dark { background: var(--purple); color: var(--cream); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark .section-eyebrow { color: var(--yellow); }
.section-dark .section-title em { color: var(--yellow); }

/* =========================================================
   PROSE
   ========================================================= */
.prose {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  line-height: 1.65;
  color: var(--text);
}
.prose p { margin-bottom: 28px; }
.prose p strong { color: var(--purple); font-weight: 600; }
.prose .lead-letter::first-letter {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--purple);
}
.pullquote {
  border-left: 3px solid var(--yellow);
  padding: 4px 0 4px 32px;
  margin: 48px 0;
  font-style: italic;
  color: var(--purple);
  font-size: 1.1em;
}

/* =========================================================
   GRID CARDS (Projet)
   ========================================================= */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 50px;
}
.card {
  padding: 40px 32px;
  background: var(--cream);
  border-radius: 4px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.section-cream .card {
  background: var(--cream-light);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(46, 31, 82, 0.08);
}
.card-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 20px;
  font-weight: 600;
}
.card h3 {
  font-size: 24px;
  margin-bottom: 16px;
}
.card p {
  color: var(--text-soft);
  font-size: 15px;
}

/* =========================================================
   COMITE / TEAM CARDS
   ========================================================= */
.copres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}
.copres-card {
  padding: 40px;
  background: rgba(247, 235, 208, 0.05);
  border: 1px solid rgba(247, 235, 208, 0.12);
  border-radius: 4px;
}
.section-cream .copres-card {
  background: var(--cream-light);
  border-color: var(--border);
}
.copres-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  margin-bottom: 6px;
  color: var(--cream);
}
.section-cream .copres-name { color: var(--purple); }
.copres-role {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
  font-weight: 500;
}
.copres-card p {
  color: rgba(247, 235, 208, 0.75);
  font-size: 15px;
}
.section-cream .copres-card p {
  color: var(--text-soft);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-email {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--purple);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 2px solid var(--yellow);
  transition: color 0.2s;
  margin: 20px 0;
}
.contact-email:hover { color: var(--purple-soft); }

.contact-form {
  display: grid;
  gap: 20px;
  margin-top: 40px;
  text-align: left;
}
.contact-form label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-soft);
  margin-bottom: 8px;
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--purple);
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
.contact-info {
  margin-top: 48px;
  color: var(--text-soft);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* =========================================================
   CTA BLOCK (used between sections / pages)
   ========================================================= */
.cta-block {
  background: var(--purple);
  color: var(--cream);
  padding: 80px 40px;
  text-align: center;
}
.cta-block h2 {
  color: var(--cream);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 20px;
}
.cta-block h2 em { color: var(--yellow); font-style: italic; }
.cta-block p {
  color: rgba(247, 235, 208, 0.8);
  max-width: 600px;
  margin: 0 auto 32px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
}
.cta-block .btn-primary {
  background: var(--yellow);
  color: var(--purple);
}
.cta-block .btn-primary:hover {
  background: var(--cream);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--purple);
  color: rgba(247, 235, 208, 0.7);
  padding: 60px 40px 30px;
  border-top: 1px solid rgba(247, 235, 208, 0.1);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--cream);
  margin-bottom: 12px;
  font-weight: 600;
}
.footer-tagline {
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: rgba(247, 235, 208, 0.6);
  max-width: 320px;
}
.footer-col h4 {
  color: var(--yellow);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(247, 235, 208, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--yellow); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(247, 235, 208, 0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(247, 235, 208, 0.5);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream-light);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-inner { padding: 0 24px; }
  section { padding: 70px 24px; }
  .hero { padding: 120px 24px 60px; }
  .page-header { padding: 130px 24px 60px; }
  .breadcrumb { padding: 24px 24px 0; }
  .hero-emblem { width: 100px; height: 100px; }
  .hero-emblem svg { width: 60px; height: 60px; }
  .pullquote { padding-left: 20px; }
  .copres-card { padding: 28px; }
  .cta-block { padding: 60px 24px; }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
