/*
Theme Name: IWCA France
Theme URI: https://iwca-france.local/
Author: IWCA France
Description: Theme editorial chaleureux pour federer les femmes de la filiere cafe en France.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: iwca-france
*/

:root {
  --iwca-cream: #f7efe2;
  --iwca-paper: #fffaf0;
  --iwca-sand: #e8d8c3;
  --iwca-coffee: #4a170f;
  --iwca-espresso: #2b120c;
  --iwca-cacao: #6e2a1c;
  --iwca-terracotta: #bd6342;
  --iwca-moss: #617b37;
  --iwca-sage: #9fb36f;
  --iwca-ink: #1f1510;
  --iwca-muted: #6b5b4e;
  --iwca-white: #fffdf8;
  --iwca-shadow: 0 24px 70px rgba(48, 22, 12, 0.14);
  --iwca-soft-shadow: 0 16px 40px rgba(62, 30, 15, 0.11);
  --iwca-radius: 28px;
  --iwca-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(159, 179, 111, 0.2), transparent 28rem),
    linear-gradient(135deg, #f8f0e4 0%, #fffaf0 46%, #ead8c4 100%);
  color: var(--iwca-ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  z-index: -1;
  background-image:
    linear-gradient(90deg, rgba(74, 23, 15, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(74, 23, 15, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.iwca-site {
  overflow: hidden;
}

.iwca-wrap {
  width: min(calc(100% - 40px), var(--iwca-max));
  margin-inline: auto;
}

.iwca-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(74, 23, 15, 0.08);
  background: rgba(255, 250, 240, 0.88);
  backdrop-filter: blur(18px);
}

.iwca-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  gap: 28px;
}

.iwca-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  color: var(--iwca-coffee);
}

.iwca-brand__mark {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 5px solid var(--iwca-coffee);
  border-radius: 999px;
  background: var(--iwca-paper);
  box-shadow: 0 10px 26px rgba(74, 23, 15, 0.16);
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1;
}

.iwca-brand__logo {
  width: 66px;
  height: 66px;
  border: 5px solid var(--iwca-coffee);
  border-radius: 999px;
  object-fit: contain;
  background: var(--iwca-paper);
  box-shadow: 0 10px 26px rgba(74, 23, 15, 0.16);
}

.iwca-brand__text {
  display: grid;
  gap: 1px;
  letter-spacing: 0;
}

.iwca-brand__text span {
  color: var(--iwca-moss);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.iwca-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--iwca-coffee);
  font-size: 16px;
  font-weight: 750;
}

.iwca-nav a {
  position: relative;
  padding: 10px 2px;
}

.iwca-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 3px;
  border-radius: 99px;
  background: var(--iwca-sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.iwca-nav a:hover::after,
.iwca-nav a.is-active::after {
  transform: scaleX(1);
}

.iwca-button {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--iwca-coffee);
  color: var(--iwca-white);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(74, 23, 15, 0.2);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.iwca-button:hover {
  transform: translateY(-2px);
  background: var(--iwca-cacao);
  box-shadow: 0 18px 30px rgba(74, 23, 15, 0.26);
}

.iwca-button--light {
  background: var(--iwca-paper);
  color: var(--iwca-coffee);
}

.iwca-hero {
  position: relative;
  padding: 34px 0 88px;
}

.iwca-hero__media {
  position: relative;
  min-height: clamp(430px, 54vw, 640px);
  overflow: hidden;
  border-radius: 0 0 72px 0;
  box-shadow: var(--iwca-shadow);
  background: var(--iwca-sand);
}

.iwca-hero__media::before,
.iwca-hero__media::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.iwca-hero__media::before {
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(43, 18, 12, 0.24), rgba(43, 18, 12, 0.02) 48%),
    linear-gradient(0deg, rgba(43, 18, 12, 0.14), rgba(43, 18, 12, 0) 42%);
}

.iwca-hero__media::after {
  z-index: 1;
  right: -7vw;
  bottom: -9vw;
  width: 36vw;
  height: 36vw;
  border-radius: 50%;
  border: 30px solid rgba(232, 216, 195, 0.75);
  background: repeating-linear-gradient(45deg, rgba(74, 23, 15, 0.12) 0 2px, transparent 2px 9px);
}

.iwca-hero__media img {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center 34%;
}

.iwca-hero__panel {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 48px));
  margin: -116px auto 0;
  margin-left: max(24px, calc((100vw - var(--iwca-max)) / 2 + 24px));
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid rgba(74, 23, 15, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(255, 248, 235, 0.88)),
    radial-gradient(circle at 85% 10%, rgba(189, 99, 66, 0.18), transparent 18rem);
  box-shadow: var(--iwca-shadow);
}

.iwca-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--iwca-moss);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.iwca-eyebrow::before {
  content: "";
  width: 42px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.iwca-hero h1,
.iwca-page-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--iwca-coffee);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: 0;
}

.iwca-hero__lead {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--iwca-muted);
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.18;
}

.iwca-hero__body {
  max-width: 680px;
  margin: 20px 0 0;
}

.iwca-hero__actions,
.iwca-join__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.iwca-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(760px, calc(100% - 40px));
  margin: 26px auto 0;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.72);
  box-shadow: var(--iwca-soft-shadow);
}

.iwca-stat {
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.68);
  text-align: center;
}

.iwca-stat strong {
  display: block;
  color: var(--iwca-coffee);
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1;
}

.iwca-stat span {
  color: var(--iwca-muted);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.iwca-section {
  padding: 86px 0;
}

.iwca-section--tight {
  padding-top: 42px;
}

.iwca-section__head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.45fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 38px;
}

.iwca-kicker {
  color: var(--iwca-terracotta);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.iwca-title {
  margin: 8px 0 0;
  color: var(--iwca-coffee);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

.iwca-section__head p {
  margin: 0;
  color: var(--iwca-muted);
}

.iwca-manifest {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: center;
}

.iwca-manifest__quote {
  position: relative;
  padding: clamp(34px, 5vw, 68px);
  border-radius: 52px 18px 52px 18px;
  background: var(--iwca-coffee);
  color: var(--iwca-white);
  box-shadow: var(--iwca-shadow);
}

.iwca-manifest__quote::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: inherit;
}

.iwca-manifest__quote p {
  position: relative;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.08;
}

.iwca-manifest__note {
  display: grid;
  gap: 16px;
}

.iwca-note {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--iwca-soft-shadow);
}

.iwca-note:nth-child(2) {
  margin-left: -42px;
  background: #eef0d8;
}

.iwca-note h3 {
  margin: 0 0 8px;
  color: var(--iwca-coffee);
  font-family: Georgia, serif;
  font-size: 25px;
}

.iwca-note p {
  margin: 0;
  color: var(--iwca-muted);
}

.iwca-mission-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.iwca-mission-grid--five {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.iwca-mission-grid--five .iwca-mission-card {
  grid-column: span 2;
}

.iwca-mission-grid--five .iwca-mission-card:nth-last-child(2),
.iwca-mission-grid--five .iwca-mission-card:last-child {
  grid-column: span 3;
}

.iwca-mission-card {
  position: relative;
  min-height: 330px;
  padding: 30px;
  overflow: hidden;
  border-radius: var(--iwca-radius);
  background: var(--iwca-paper);
  box-shadow: var(--iwca-soft-shadow);
}

.iwca-mission-card::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -44px;
  width: 140px;
  height: 140px;
  border-radius: 48% 52% 61% 39%;
  background: rgba(159, 179, 111, 0.34);
}

.iwca-mission-card:nth-child(2) {
  margin-top: 44px;
  background: #f2decf;
}

.iwca-mission-card:nth-child(3) {
  margin-top: -24px;
  background: #eef0d8;
}

.iwca-mission-card:nth-child(4) {
  background: #f6eadb;
}

.iwca-mission-card:nth-child(5) {
  background: #e7ebd0;
}

.iwca-mission-card__number {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 52px;
  border-radius: 50%;
  background: var(--iwca-coffee);
  color: var(--iwca-white);
  font-weight: 850;
}

.iwca-mission-card h3 {
  margin: 0 0 12px;
  color: var(--iwca-coffee);
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.iwca-mission-card p {
  margin: 0;
  color: var(--iwca-muted);
}

.iwca-events {
  position: relative;
  padding: 42px;
  border-radius: 44px;
  background:
    linear-gradient(135deg, rgba(238, 240, 216, 0.92), rgba(255, 250, 240, 0.92)),
    repeating-linear-gradient(45deg, rgba(74, 23, 15, 0.06) 0 1px, transparent 1px 10px);
  box-shadow: var(--iwca-soft-shadow);
}

.iwca-events__grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 34px;
}

.iwca-event-list {
  display: grid;
  gap: 14px;
}

.iwca-event {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.82);
}

.iwca-event time {
  display: grid;
  place-items: center;
  min-height: 84px;
  border-radius: 20px;
  background: var(--iwca-terracotta);
  color: var(--iwca-white);
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.iwca-event time span {
  display: block;
  font-family: inherit;
  font-size: 13px;
  text-transform: uppercase;
}

.iwca-event--global time {
  background: var(--iwca-moss);
  font-size: 22px;
}

.iwca-event h3 {
  margin: 0 0 4px;
  color: var(--iwca-coffee);
  font-size: 21px;
}

.iwca-event p {
  margin: 0;
  color: var(--iwca-muted);
  font-size: 15px;
}

.iwca-join {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 36px;
  align-items: center;
  padding: clamp(34px, 5vw, 66px);
  overflow: hidden;
  border-radius: 54px 54px 18px 54px;
  background: var(--iwca-espresso);
  color: var(--iwca-white);
  box-shadow: var(--iwca-shadow);
}

.iwca-join::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -110px;
  width: 320px;
  height: 320px;
  border-radius: 48% 52% 43% 57%;
  background: rgba(189, 99, 66, 0.28);
}

.iwca-join h2 {
  margin: 0;
  color: var(--iwca-white);
}

.iwca-join p {
  max-width: 680px;
  color: rgba(255, 250, 240, 0.82);
}

.iwca-join__list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.iwca-join__list div {
  padding: 18px 20px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 20px;
  background: rgba(255, 250, 240, 0.08);
  font-weight: 800;
}

.iwca-global-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(320px, 0.8fr);
  gap: 34px;
  align-items: center;
  padding: clamp(30px, 5vw, 58px);
  border-radius: 46px 18px 46px 18px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.9), rgba(238, 240, 216, 0.9)),
    repeating-linear-gradient(-35deg, rgba(97, 123, 55, 0.1) 0 1px, transparent 1px 12px);
  box-shadow: var(--iwca-soft-shadow);
}

.iwca-global-strip p {
  margin: 0;
  color: var(--iwca-muted);
  font-size: 20px;
}

.iwca-values {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.iwca-values span {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(74, 23, 15, 0.08);
  border-radius: 999px 999px 26px 26px;
  background: var(--iwca-paper);
  color: var(--iwca-coffee);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--iwca-soft-shadow);
}

.iwca-values span:nth-child(even) {
  transform: translateY(22px);
  background: #eef0d8;
}

.iwca-values span:nth-child(3n) {
  background: #f2decf;
}

.iwca-global-card {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 34px;
  align-items: center;
  padding: clamp(34px, 5vw, 68px);
  border-radius: 22px 58px 58px 58px;
  background: var(--iwca-paper);
  box-shadow: var(--iwca-shadow);
}

.iwca-global-card p {
  margin: 0 0 24px;
  color: var(--iwca-muted);
}

.iwca-footer {
  margin-top: 70px;
  padding: 46px 0;
  background: var(--iwca-coffee);
  color: var(--iwca-white);
}

.iwca-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
}

.iwca-footer p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 250, 240, 0.78);
}

.iwca-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-weight: 750;
}

.iwca-page-hero {
  padding: 84px 0 42px;
}

.iwca-page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.45fr);
  gap: 40px;
  align-items: end;
}

.iwca-page-hero p {
  margin: 0;
  color: var(--iwca-muted);
  font-size: 21px;
  font-weight: 650;
}

.iwca-editorial {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 32px;
  padding: 44px;
  border-radius: 42px;
  background: rgba(255, 250, 240, 0.72);
  box-shadow: var(--iwca-soft-shadow);
}

.iwca-editorial__aside {
  padding: 28px;
  border-radius: 28px;
  background: var(--iwca-coffee);
  color: var(--iwca-white);
}

.iwca-editorial__aside .iwca-button {
  margin-top: 22px;
}

.iwca-editorial__aside strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 48px;
  line-height: 1;
}

.iwca-editorial__main {
  display: grid;
  gap: 20px;
}

.iwca-feature-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.iwca-feature-list li {
  padding: 22px;
  border-radius: 24px;
  background: var(--iwca-white);
}

.iwca-feature-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--iwca-coffee);
  font-family: Georgia, serif;
  font-size: 24px;
}

.iwca-contact-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 44px;
  background: var(--iwca-paper);
  box-shadow: var(--iwca-shadow);
}

.iwca-contact-card form {
  display: grid;
  gap: 14px;
}

.iwca-field {
  display: grid;
  gap: 6px;
  color: var(--iwca-coffee);
  font-size: 14px;
  font-weight: 800;
}

.iwca-field input,
.iwca-field textarea {
  width: 100%;
  border: 1px solid rgba(74, 23, 15, 0.16);
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--iwca-white);
  color: var(--iwca-ink);
  font: inherit;
}

.iwca-field textarea {
  min-height: 142px;
  resize: vertical;
}

@media (max-width: 920px) {
  .iwca-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .iwca-nav {
    justify-content: flex-start;
  }

  .iwca-section__head,
  .iwca-manifest,
  .iwca-events__grid,
  .iwca-join,
  .iwca-global-strip,
  .iwca-global-card,
  .iwca-page-hero__inner,
  .iwca-editorial,
  .iwca-contact-card {
    grid-template-columns: 1fr;
  }

  .iwca-mission-grid,
  .iwca-mission-grid--five {
    grid-template-columns: 1fr;
  }

  .iwca-mission-grid--five .iwca-mission-card,
  .iwca-mission-grid--five .iwca-mission-card:nth-last-child(2),
  .iwca-mission-grid--five .iwca-mission-card:last-child {
    grid-column: auto;
  }

  .iwca-mission-card:nth-child(2),
  .iwca-mission-card:nth-child(3),
  .iwca-note:nth-child(2) {
    margin: 0;
  }

  .iwca-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .iwca-values span:nth-child(even) {
    transform: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .iwca-wrap {
    width: min(calc(100% - 28px), var(--iwca-max));
  }

  .iwca-brand__mark {
    width: 58px;
    height: 58px;
    font-size: 16px;
  }

  .iwca-brand__logo {
    width: 58px;
    height: 58px;
  }

  .iwca-nav {
    gap: 4px 13px;
    font-size: 14px;
  }

  .iwca-hero {
    padding-top: 18px;
  }

  .iwca-hero__media {
    min-height: 390px;
    border-radius: 0 0 42px 0;
  }

  .iwca-hero__media img {
    object-position: 50% 28%;
  }

  .iwca-hero__panel {
    width: calc(100% - 28px);
    margin: -74px auto 0;
    padding: 26px;
  }

  .iwca-stats {
    grid-template-columns: 1fr;
  }

  .iwca-section {
    padding: 58px 0;
  }

  .iwca-events,
  .iwca-editorial,
  .iwca-global-strip,
  .iwca-global-card {
    padding: 24px;
    border-radius: 30px;
  }

  .iwca-values {
    grid-template-columns: 1fr;
  }

  .iwca-event {
    grid-template-columns: 1fr;
  }
}
