/* ===================================================
   Marine Demeure — Portfolio
   =================================================== */

:root {
  --cream:       #F7EEDA;
  --pill-bg:     #F1E5C6;
  --peach:       #FBDCCB;
  --olive-bg:    #E7E7B8;
  --dark-red:    #4a1f1c;
  --dark-red-2:  #5C2320;
  --olive:       #8A8F2A;
  --olive-light: #A3A832;
  --burnt:       #E8492B;
  --burnt-2:     #F74023;
  --body-text:   #4c453b;
  --dark-grad:   linear-gradient(150deg, #3A3620 0%, #2F2C18 55%, #24220F 100%);
  --hero-title:  #FAF3E4;
  --hero-tag:    #D9C7A8;
  --hero-tag-accent: #F2A488;
  --hero-kicker: #E8C77E;
  --hero-italic: #E3B34A;
  --contact-italic: #A3A832;
  --contact-desc: #CBC0AC;
  --clarifier-card-bg: #6B6B36;

  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-accent:  'Lora', serif;
  --font-body:    'Mulish', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--cream);
  color: #3A322B;
  font-family: var(--font-body);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--dark-red-2);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

.page {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* ---------- watermarks ---------- */
.watermark { position: absolute; pointer-events: none; z-index: 0; }
.watermark-top  { top: -60px; right: -80px; width: min(340px, 28vw); opacity: .08; transform: rotate(12deg); }
.watermark-mid  { top: 1500px; left: -90px; width: min(300px, 26vw); opacity: .06; transform: rotate(-18deg); }

/* ---------- shared bits ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--burnt);
  font-size: 18px;
  position: relative;
}
.eyebrow img { width: 23px; height: auto; }

/* Titre de section — même taille partout (Comprendre, Clarifier, Concevoir, Faire grandir) */
.section-title {
  margin: 0 0 clamp(14px, 1.8vw, 20px);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(26px, 3.8vw, 32px);
  line-height: 1.14;
  color: var(--dark-red);
}

.italic-accent        { font-family: var(--font-accent); font-style: italic; font-weight: 500; color: var(--hero-italic); }
.italic-accent-olive   { font-family: var(--font-accent); font-style: italic; font-weight: 500; color: var(--olive); }
.italic-accent-burnt   { font-family: var(--font-accent); font-style: italic; font-weight: 500; color: var(--burnt); }


.pill {
  background: var(--pill-bg);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dark-red-2);
  white-space: nowrap;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 30px;
  padding: 12px 22px;
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--olive);
  font-size: 15.5px;
  text-decoration: none;
}
.pill-link:hover { background: var(--pill-bg); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 40px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  transition: filter .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-burnt {
  background: var(--burnt-2);
  color: #fff;
  padding: 16px 30px;
  box-shadow: 0 14px 28px rgba(247, 64, 35, .3);
}
.btn-glass {
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, .28);
  color: var(--hero-title);
  padding: 14.5px 28px;
}

/* ---------- nav ---------- */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(16px, 3vw, 24px) clamp(20px, 6vw, 90px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 238, 218, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-logo img { height: clamp(26px, 3vw, 34px); width: auto; object-fit: contain; }
.nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--pill-bg);
  padding: 8px;
  border-radius: 40px;
  list-style: none;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}
.nav-pills a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 30px;
  color: var(--dark-red-2);
  text-decoration: none;
}
.nav-pills a:hover { background: rgba(92, 35, 32, .08); }

.nav-pill-contact a {
  background: var(--dark-red-2);
  color: var(--cream);
}
.nav-pill-contact a:hover { background: var(--dark-red); }

.nav-right { display: flex; align-items: center; gap: 14px; }

/* burger (hidden on desktop) */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(92, 35, 32, .22);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--dark-red-2);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lang-toggle {
  appearance: none; border: 1.5px solid rgba(92, 35, 32, .22); background: transparent;
  color: var(--dark-red-2); font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: .04em; border-radius: 30px; padding: 8px 14px; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.lang-toggle:hover { background: var(--dark-red-2); color: var(--cream); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark-grad);
  min-height: clamp(480px, 62vh, 680px);
  display: flex;
  align-items: center;
  padding: clamp(48px, 7vw, 80px) clamp(20px, 6vw, 90px);
}
.hero-glow { position: absolute; filter: blur(80px); pointer-events: none; }
.hero-glow-1 { top: -10%; right: -5%; width: 62%; height: 78%; background: radial-gradient(circle, rgba(211,214,140,.6), transparent 62%); animation: lightDrift1 16s ease-in-out infinite; }
.hero-glow-2 { bottom: -15%; right: 5%; width: 52%; height: 68%; background: radial-gradient(circle, rgba(163,168,50,.5), transparent 62%); filter: blur(85px); animation: lightDrift2 20s ease-in-out infinite; }
.hero-glow-3 { left: -12%; top: 20%; width: 44%; height: 58%; background: radial-gradient(circle, rgba(196,201,120,.35), transparent 65%); filter: blur(90px); animation: lightDrift3 18s ease-in-out infinite; }
.hero-grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .28; mix-blend-mode: overlay; pointer-events: none; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(24,22,12,.62) 0%, rgba(24,22,12,.34) 42%, transparent 62%); }

.hero-clover {
  position: absolute;
  right: clamp(0px, 3vw, 40px);
  top: clamp(150px, 17vw, 205px);
  transform-origin: 50% 90%;
  animation: heroCloverSway 7s ease-in-out infinite;
}
.hero-clover-shadow {
  position: absolute; top: 0; left: 0; height: 472px; width: 472px;
  filter: brightness(0) blur(16px); opacity: .4; transform: translate(22px, 30px) scale(1.05); z-index: 0;
}
.hero-clover-main {
  position: relative; display: block; height: 472px; width: 472px;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); z-index: 1;
}

.hero-content { position: relative; width: 100%; max-width: 640px; }
.hero-meta { display: flex; align-items: center; gap: 10px; margin-bottom: clamp(18px, 2.5vw, 26px); }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hero-tag-accent); display: inline-block; }
.hero-kicker { font-size: 13px; font-weight: 700; letter-spacing: .18em; color: var(--hero-kicker); }

.hero-title {
  margin: 0 0 clamp(22px, 3vw, 30px);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(40px, 6.2vw, 80px);
  line-height: 1.06;
  color: var(--hero-title);
}
.hero-tagline {
  margin: 0 0 clamp(28px, 4vw, 40px);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.7;
  color: var(--hero-tag);
  max-width: 520px;
  font-family: var(--font-accent);
  font-style: italic;
}
.hero-tagline strong { color: var(--hero-tag-accent); font-style: italic; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- shared intro text block ---------- */
/* ===================================================
   Introduction de la méthode
   =================================================== */

.intro-text {
  max-width: 920px;
  margin: 0 0 40px;
}

.intro-text p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--body-text);
}

.intro-text p:last-child {
  margin-bottom: 0;
}

/* Phrase de conviction — Comprendre, Concevoir, Faire grandir : alignée à gauche comme le reste du texte */
.comprendre-body p.intro-conviction,
.intro-text p.intro-conviction {
  font-family: var(--font-accent);
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.8;
  color: var(--dark-red);
  margin: 0 0 16px;
}

/* Phrase de conclusion — Clarifier */
.intro-text p.intro-conclusion {
  margin: 8px 0 0;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 17px;
  line-height: 1.6;
  color: var(--olive);
}

/* ---------- concevoir ---------- */
.section-concevoir { padding: clamp(56px, 9vw, 100px) clamp(20px, 6vw, 90px); position: relative; }

.projets-hint {
  margin: -16px 0 24px;
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--olive);
  font-size: 14.5px;
}

.projets-list { display: flex; flex-direction: column; gap: 24px; }
.projet-card {
  background: #fff;
  border-radius: 24px;
  padding: clamp(24px, 3vw, 36px) clamp(20px, 3vw, 40px);
  display: grid;
  grid-template-columns: 56px minmax(180px, 1fr) 220px 130px;
  align-items: center;
  column-gap: 24px;
  row-gap: 12px;
  box-shadow: 0 20px 44px rgba(92, 35, 32, .06);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease, transform .2s ease;
}
.projet-card:hover { box-shadow: 0 24px 52px rgba(92, 35, 32, .12); transform: translateY(-2px); }
.projet-card:hover .projet-name { color: var(--burnt); }
.projet-card-link { cursor: pointer; }
.projet-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.projet-icon img { width: 28px; }
.projet-icon-olive { background: var(--pill-bg); }
.projet-icon-peach { background: var(--peach); }
.projet-name { font-family: var(--font-heading); font-weight: 700; font-size: 24px; color: var(--dark-red); transition: color .2s ease; }
.projet-desc { font-family: var(--font-accent); font-style: italic; color: var(--olive); font-size: 15.5px; margin-top: 4px; }
.projet-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.projet-year { font-family: var(--font-accent); font-style: italic; color: var(--burnt); font-size: 16px; white-space: nowrap; text-align: right; }

/* ---------- clarifier ---------- */
.section-clarifier {
  padding: clamp(56px, 9vw, 100px) clamp(20px, 6vw, 90px);
  background: var(--pill-bg);
  border-radius: clamp(28px, 5vw, 64px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(40px, 6vw, 72px);
}

.clarifier-body { flex: 1 1 0; min-width: 300px; max-width: 520px; }

.clarifier-card {
  flex: 1 1 0;
  min-width: 280px;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  background: var(--clarifier-card-bg);
  border-radius: 32px;
  padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 38px) clamp(32px, 4.5vw, 44px);
  box-shadow: 0 40px 70px -30px rgba(45, 42, 10, .5);
  transform: rotate(-1.4deg);
}

.clarifier-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: clamp(18px, 3vw, 26px);
}
.clarifier-card-name {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--pill-bg);
  font-size: 15px;
}
.clarifier-card-tag {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pill-bg);
  font-size: 11px;
  opacity: .85;
}

.clarifier-card-icon {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(18px, 3vw, 26px);
}
.clarifier-card-icon img {
  width: min(220px, 52vw);
  height: auto;
  filter: brightness(0) invert(1);
  opacity: .92;
}

.clarifier-card-list { display: flex; flex-direction: column; }
.clarifier-card-item {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid rgba(241, 229, 198, .22);
}
.clarifier-card-num {
  flex: 0 0 20px;
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--pill-bg);
  font-size: 13px;
  opacity: .7;
}
.clarifier-card-title {
  margin-bottom: 3px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(15px, 2vw, 18px);
  color: #fff;
}
.clarifier-card-item p {
  margin: 0;
  font-size: clamp(11.5px, 1.4vw, 13px);
  line-height: 1.5;
  font-weight: 500;
  color: var(--pill-bg);
  opacity: .92;
}

/* ---------- faire grandir ---------- */
.section-grandir {
  padding: clamp(56px, 9vw, 100px) clamp(20px, 6vw, 90px);
  background: var(--pill-bg);
  border-radius: clamp(28px, 5vw, 64px);
  position: relative;
}
.parcours-entries { display: flex; flex-direction: column; gap: 14px; }
.parcours-entry {
  background: #fff; border-radius: 18px;
  padding: clamp(16px, 2.2vw, 22px) clamp(18px, 2.6vw, 26px);
  box-shadow: 0 12px 24px rgba(92, 35, 32, .05);
}
.entry-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.entry-now { background: var(--peach); color: var(--burnt); border-radius: 20px; padding: 4px 12px; font-size: 11px; font-weight: 800; }
.entry-period { font-family: var(--font-accent); font-style: italic; color: #8b8071; font-size: 13px; }
.entry-company { font-family: var(--font-heading); font-weight: 700; font-size: 19px; color: var(--dark-red); }
.entry-role { font-family: var(--font-accent); font-style: italic; color: var(--olive); font-size: 14px; margin: 3px 0 8px; }
.entry-desc { margin: 0 0 10px; font-size: 14.5px; line-height: 1.55; color: var(--body-text); }
.entry-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.entry-pills .pill { padding: 5px 12px; font-size: 11.5px; }

/* ---------- comprendre ---------- */

.section-comprendre {
  padding: clamp(56px, 9vw, 100px) clamp(20px, 6vw, 90px);
  background: var(--cream);

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(40px, 6vw, 60px);
}

.comprendre-plate {
  flex: 1 1 340px;
  max-width: 440px;
  height: clamp(300px, 34vw, 440px);

  position: relative;
  border-radius: 28px;
  overflow: hidden;

  background:
    radial-gradient(
      100% 90% at 30% 20%,
      rgba(92, 35, 32, .16),
      transparent 55%
    ),
    radial-gradient(
      90% 80% at 80% 85%,
      rgba(140, 143, 42, .2),
      transparent 60%
    ),
    linear-gradient(160deg, #EFE2C4, #E2CE9E);
}

.comprendre-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  display: block;
}

.comprendre-body {
  flex: 2 1 420px;
  max-width: 720px;
}

.comprendre-body .section-title {
  max-width: 720px;
}

.comprendre-body p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--body-text);
}

.comprendre-body p:last-of-type {
  margin-bottom: 24px;
}

/* ---------- contact ---------- */
.section-contact {
  position: relative;
  overflow: hidden;
  background: var(--dark-grad);
  padding: clamp(56px, 9vw, 110px) clamp(20px, 6vw, 90px);
  border-radius: clamp(28px, 5vw, 64px) clamp(28px, 5vw, 64px) 0 0;
}

.contact-glow {
  position: absolute;
  filter: blur(85px);
  pointer-events: none;
}

.contact-glow-1 {
  top: -12%;
  left: -8%;
  width: 56%;
  height: 75%;
  background: radial-gradient(circle, rgba(211,214,140,.5), transparent 62%);
  animation: lightDrift1 16s ease-in-out infinite;
}

.contact-glow-2 {
  bottom: -18%;
  right: -6%;
  width: 50%;
  height: 65%;
  background: radial-gradient(circle, rgba(163,168,50,.45), transparent 62%);
  animation: lightDrift2 20s ease-in-out infinite;
}

.contact-watermark {
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: min(360px, 42vw);
  opacity: .1;
}

/* Colonnes */
.contact-inner {
  position: relative;
}

.contact-title {
  margin: 0 0 32px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(26px, 3.8vw, 32px);
  line-height: 1.14;
  color: var(--hero-title);
}

.contact-desc {
  margin: 0 0 16px;
  max-width: 900px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--contact-desc);
}

.contact-desc:last-of-type {
  margin-bottom: 40px;
}

/* "Discutons ensemble" + icônes E-mail / LinkedIn, à la suite du texte */
.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.contact-cta-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(26px, 3.8vw, 32px);
  line-height: 1.14;
  color: var(--hero-title);
}

.contact-rows {
  display: flex;
  gap: 14px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  color: var(--contact-italic);
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.contact-row:hover {
  background: var(--contact-italic);
  color: var(--burnt-2);
  transform: translateY(-2px);
}

.contact-row svg { width: 24px; height: 24px; }

/* ---------- keyframes ---------- */
@keyframes heroCloverSway {
  0%, 100% { transform: rotate(-4deg); }
  50%      { transform: rotate(4deg); }
}
@keyframes lightDrift1 {
  0%   { transform: translate(-6%,-4%) scale(1); opacity: .85; }
  50%  { transform: translate(8%,6%) scale(1.15); opacity: 1; }
  100% { transform: translate(-6%,-4%) scale(1); opacity: .85; }
}
@keyframes lightDrift2 {
  0%   { transform: translate(5%,-6%) scale(1); opacity: .7; }
  50%  { transform: translate(-8%,4%) scale(1.1); opacity: .95; }
  100% { transform: translate(5%,-6%) scale(1); opacity: .7; }
}
@keyframes lightDrift3 {
  0%   { transform: translate(-4%,5%) scale(1); opacity: .6; }
  50%  { transform: translate(6%,-7%) scale(1.12); opacity: .9; }
  100% { transform: translate(-4%,5%) scale(1); opacity: .6; }
}

/* ---------- responsive ---------- */
@media (max-width: 780px) {
  .clarifier-body,
  .clarifier-card {
    flex: 1 1 100%;
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .comprendre-plate {
    flex-basis: 100%;
  }
}

@media (max-width: 640px) {
  .hero-clover {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .nav-pills {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
  }

  .nav-pills.is-open {
    display: flex;
  }

  .nav-pills a {
    width: 100%;
    justify-content: center;
  }

  .projet-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .projet-pills {
    justify-content: center;
  }

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

@media (max-width: 420px) {
  .hero-title {
    font-size: clamp(34px, 11vw, 40px);
  }

  .nav-pills {
    gap: 6px;
    padding: 6px;
  }

  .nav-pills a {
    padding: 8px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-clover,
  .hero-glow-1,
  .hero-glow-2,
  .hero-glow-3,
  .contact-glow-1,
  .contact-glow-2 {
    animation: none;
  }
}
