/* United Colors of Paradise — feuille de style du site */

:root {
  --cream: #FAF6EE;
  --white: #FFFFFF;
  --border: #E6DCCD;
  --brown: #3B2723;
  --brown-soft: #6B5A52;
  --terracotta: #A94A22;
  --terracotta-hover: #7E3517;
  --tan: #D9CBBE;
  --tan-line: #CDBFAC;
  --peach: #E8B98F;
  --green: #A8CB55;
  --blue: #3F9EC2;
  --yellow: #F8DE52;
  --orange: #EE702F;
  --purple: #C084B8;
  --pink: #C6267C;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: 'Karla', sans-serif;
}

a { color: var(--terracotta); }
a:hover { color: var(--terracotta-hover); }
input, textarea { font-family: 'Karla', sans-serif; }
input:focus, textarea:focus { outline: 2px solid var(--terracotta); outline-offset: 1px; }

img { max-width: 100%; }

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  margin: 0;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--terracotta);
}

.swatches { display: flex; gap: 5px; }
.swatch { width: 12px; height: 12px; flex-shrink: 0; }
.swatch--green { background: var(--green); }
.swatch--blue { background: var(--blue); }
.swatch--yellow { background: var(--yellow); }
.swatch--orange { background: var(--orange); }
.swatch--purple { background: var(--purple); }
.swatch--pink { background: var(--pink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn--dark { background: var(--brown); color: var(--cream); }
.btn--dark:hover { background: #2b1c17; color: var(--cream); }
.btn--outline-dark { border-color: var(--brown); color: var(--brown); background: transparent; }
.btn--outline-dark:hover { background: rgba(59, 39, 35, 0.06); color: var(--brown); }
.btn--sm { height: 46px; padding: 0 22px; font-size: 15px; }

/* ---------- Header ---------- */

.header {
  box-sizing: border-box;
  padding: 16px 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.header__logo { height: 56px; width: 56px; object-fit: contain; flex-shrink: 0; }
.nav { display: flex; gap: 32px; font-size: 15px; font-weight: 500; flex-wrap: wrap; }
.nav a { color: var(--brown); text-decoration: none; }
.mobile-nav { display: none; }

/* ---------- Sections ---------- */

.section {
  box-sizing: border-box;
  padding: 88px 64px;
}
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }

.section__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 44px;
}
.section__head p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--brown-soft); }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; }
.hero__img { display: block; width: 100%; height: 640px; object-fit: cover; }
.hero__card {
  position: absolute;
  left: 64px;
  bottom: 56px;
  max-width: 640px;
  box-sizing: border-box;
  padding: 44px 48px;
  background: var(--cream);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero__card h1 { font-size: 60px; line-height: 1.02; color: var(--brown); }
.hero__tagline { margin: 0; font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: 28px; line-height: 1.25; color: var(--brown); }
.hero__lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--brown-soft); }
.hero__actions { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.hero__disclaimer {
  position: absolute;
  right: 64px;
  bottom: 56px;
  padding: 7px 14px;
  background: var(--cream);
  border-radius: 999px;
  font-size: 13px;
  color: var(--brown-soft);
}

/* ---------- Chiffres clés ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 44px;
}
.stat { border-top: 2px solid var(--brown); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.stat--accent { border-top-color: var(--terracotta); }
.stat__value { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 44px; line-height: 1; }
.stat--accent .stat__value { color: var(--terracotta); }
.stat__label { font-size: 16px; color: var(--brown-soft); }

.progress { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.progress-row { display: flex; justify-content: space-between; font-size: 16px; font-weight: 600; flex-wrap: wrap; gap: 8px; }
.progressbar { height: 14px; background: var(--border); border-radius: 999px; overflow: hidden; }
.progressbar__fill { height: 100%; background: var(--terracotta); border-radius: 999px; }
.progress-note { font-size: 15px; color: var(--brown-soft); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 22px 28px;
  background: var(--white);
  border-radius: 14px;
}
.info-grid > div { display: flex; flex-direction: column; gap: 4px; }
.info-grid span:first-child { font-size: 14px; color: var(--brown-soft); }
.info-grid span:last-child { font-size: 18px; font-weight: 600; }

/* ---------- Le concept ---------- */

.split { display: flex; align-items: center; gap: 72px; }
.split__text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 22px; }
.split__text p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--brown-soft); }
.split__img { flex: 1 1 420px; min-width: 0; height: 540px; object-fit: cover; border-radius: 18px; }

.check-list { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.5; }
.check-list .swatch { margin-top: 6px; }

/* ---------- Qui sommes-nous ---------- */

.who { display: flex; flex-direction: column; gap: 64px; }
.who__top { display: flex; gap: 72px; align-items: center; }
.who__text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 20px; }
.who__text p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--brown-soft); }
.who__photo { flex: 0 0 360px; width: 360px; height: 360px; object-fit: cover; border-radius: 18px; display: block; }

.timeline-title { font-size: 16px; font-weight: 700; }
.timeline-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.timeline-card {
  background: var(--white);
  border-top: 4px solid var(--brown);
  border-radius: 4px 4px 12px 12px;
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timeline-card__year { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 34px; line-height: 1; color: var(--terracotta); }
.timeline-card__name { font-size: 16px; font-weight: 700; line-height: 1.3; }
.timeline-card__desc { font-size: 14px; line-height: 1.5; color: var(--brown-soft); }

/* ---------- Les pôles ---------- */

.poles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.pole-card { background: var(--cream); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.pole-card img { width: 100%; height: 240px; object-fit: cover; display: block; }
.pole-card__body { padding: 24px 28px 30px; display: flex; flex-direction: column; gap: 8px; }
.pole-card__body h3 { font-size: 28px; }
.pole-card__body p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--brown-soft); }

/* ---------- Architecture ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 270px;
  gap: 16px;
  margin-bottom: 44px;
}
.gallery__item { margin: 0; position: relative; border-radius: 16px; overflow: hidden; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--big { grid-column: span 2; grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__item figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 7px 14px;
  background: var(--cream);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.gallery-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.gallery-foot span { font-size: 15px; color: var(--brown-soft); }

/* ---------- Calendrier ---------- */

.calendar { position: relative; }
.calendar-line { position: absolute; top: 9px; left: 10%; right: 10%; height: 2px; background: var(--border); }
.calendar-list {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}
.calendar-item { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.calendar-dot { width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%; background: var(--white); border: 3px solid var(--brown); }
.calendar-dot--active { background: var(--terracotta); border-color: var(--terracotta); }
.calendar-item__title { font-size: 18px; font-weight: 700; }
.calendar-item--active .calendar-item__title { color: var(--terracotta); }
.calendar-item__date { font-size: 15px; color: var(--brown-soft); }

/* ---------- Contact ---------- */

.section--dark { background: var(--brown); color: var(--cream); }
.contact { display: flex; align-items: center; gap: 80px; }
.contact__info { flex: 1 1 420px; display: flex; flex-direction: column; gap: 22px; }
.contact__info .eyebrow { color: var(--peach); }
.contact__info h2 { font-size: 54px; line-height: 1.05; color: var(--cream); }
.contact__info > p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--tan); }
.contact__reach { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; }
.contact__reach span { color: var(--tan); }
.contact__reach a { color: var(--cream); font-weight: 600; text-decoration: none; }

.contact__form {
  flex: 0 0 480px;
  width: 480px;
  box-sizing: border-box;
  padding: 40px;
  background: var(--cream);
  border-radius: 20px;
  color: var(--brown);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact__form-title { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 30px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  box-sizing: border-box;
  padding: 0 14px;
  border: 1px solid var(--tan-line);
  border-radius: 10px;
  background: var(--white);
  font-size: 16px;
  color: var(--brown);
}
.field input { height: 48px; }
.field textarea { height: 120px; padding: 12px 14px; resize: none; font-family: inherit; }
.contact__form .btn { height: 54px; border: none; font-size: 17px; font-weight: 700; width: 100%; }
.contact__note { font-size: 13px; line-height: 1.5; color: var(--brown-soft); }
.contact__error { margin: 0; font-size: 14px; line-height: 1.5; color: var(--terracotta); }
.hp-field { position: absolute; left: -9999px; top: -9999px; margin: 0; }

/* ---------- Pied de page ---------- */

.footer { box-sizing: border-box; padding: 56px 64px; background: var(--white); }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 18px; }
.footer__brand img { height: 84px; width: 84px; object-fit: contain; }
.footer__brand-text { display: flex; flex-direction: column; gap: 4px; }
.footer__brand-text span:first-child { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 22px; }
.footer__brand-text span:last-child { font-size: 15px; color: var(--brown-soft); }
.footer__col { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.footer__col span { color: var(--brown-soft); }
.footer__col a { font-weight: 600; }
.footer__bottom {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--brown-soft);
  flex-wrap: wrap;
}
.footer__bottom span:last-child { flex-shrink: 0; }

/* ---------- Pages légales ---------- */

.legal { max-width: 760px; margin: 0 auto; padding: 64px 32px 96px; display: flex; flex-direction: column; gap: 28px; }
.legal__back { align-self: flex-start; font-size: 15px; font-weight: 600; text-decoration: none; }
.legal h1 { font-size: 40px; line-height: 1.1; }
.legal h2 { font-size: 24px; margin-top: 12px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--brown-soft); }
.legal .placeholder { color: var(--terracotta); font-weight: 600; }

/* ================================================================
   Tablette (<= 1023px)
   ================================================================ */

@media (max-width: 1023px) {
  .header { padding: 14px 32px; }
  .nav { display: none; }
  .mobile-nav { display: block; margin-left: auto; }
  .mobile-nav summary {
    list-style: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 18px;
    border: 1.5px solid var(--brown);
    border-radius: 999px;
  }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav[open] summary { background: var(--brown); color: var(--cream); }
  .mobile-nav__panel {
    position: absolute;
    right: 32px;
    top: 78px;
    z-index: 20;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 12px 28px rgba(59, 39, 35, 0.12);
  }
  .mobile-nav__panel a {
    color: var(--brown);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 8px;
  }
  .mobile-nav__panel a:hover { background: var(--cream); }

  .section { padding: 64px 32px; }
  .hero__img { height: 420px; }
  .hero__card { position: static; margin: -56px 32px 0; max-width: none; padding: 32px; }
  .hero__card h1 { font-size: 44px; }
  .hero__tagline { font-size: 22px; }
  .hero__disclaimer { right: 32px; top: 24px; bottom: auto; left: auto; }

  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .info-grid { grid-template-columns: 1fr; gap: 16px; }

  .split { flex-direction: column; gap: 40px; }
  .split__img { width: 100%; height: 360px; }

  .who__top { flex-direction: column-reverse; gap: 32px; }
  .who__photo { width: 260px; height: 260px; flex: none; }
  .timeline-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .poles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
  .gallery__item--big { grid-column: span 2; grid-row: span 1; }
  .gallery__item--wide { grid-column: span 2; }

  .calendar-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .calendar-line { display: none; }

  .contact { flex-direction: column; gap: 40px; }
  .contact__form { width: 100%; flex: none; }

  .footer__top { justify-content: flex-start; }
}

/* ================================================================
   Mobile (<= 640px)
   ================================================================ */

@media (max-width: 640px) {
  .header { padding: 12px 20px; }
  .header__logo { height: 44px; width: 44px; }
  .btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }

  .section { padding: 48px 20px; }
  .section__head { margin-bottom: 28px; }
  .section__head h2 { font-size: 32px; }

  .hero__img { height: 300px; }
  .hero__card { margin: -40px 16px 0; padding: 24px; gap: 14px; }
  .hero__card h1 { font-size: 32px; line-height: 1.1; }
  .hero__tagline { font-size: 18px; }
  .hero__lead { font-size: 15px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__disclaimer { font-size: 11px; padding: 5px 10px; top: 16px; right: 16px; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat__value { font-size: 32px; }
  .progress-row { font-size: 14px; }

  .split__img { height: 260px; }

  .who__photo { width: 100%; height: 260px; }
  .timeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .poles-grid { grid-template-columns: 1fr; }

  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery__item--big, .gallery__item--wide { grid-column: span 1; grid-row: span 1; }

  .calendar-list { grid-template-columns: 1fr; gap: 20px; }
  .calendar-item { flex-direction: row; text-align: left; gap: 14px; }

  .contact__info h2 { font-size: 36px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact__form { padding: 28px 24px; }

  .footer__top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer__bottom { flex-direction: column; }
}
