@import url("https://fonts.googleapis.com/css2?family=Satisfy&display=swap");

/*
 * Bleu-vert & ivoire — mouvement organique et asymétrique.
 */
:root {
  --theme-bg: #f7f3eb;
  --theme-surface: #eee6d8;
  --theme-ink: #294f52;
  --theme-muted: #5b706d;
  --theme-accent: #4f8582;
  --theme-accent-dark: #3f7474;
  --theme-soft: #d5e4df;
  --theme-paper: #fffdf8;
  --theme-band: #cfe0d9;
  --theme-cloud-heading: #c3d8d1;
  --theme-border: #ded5c8;
  --theme-accent-2: #6d9292;
  --theme-accent-3: #a87967;
  --theme-shadow: 0 1.2rem 3rem rgba(54, 48, 45, 0.10);
}

html,
body {
  background: var(--theme-bg);
}

/* Pas d'écran de chargement sombre entre deux pages. */
body.landing:before,
body.landing:after { content: none !important; animation: none !important; }

body,
input,
select,
textarea {
  color: var(--theme-muted);
}

h1, h2, h3, h4, h5, h6,
strong,
b,
table th {
  color: var(--theme-ink);
}

header p,
.spotlight .content header p,
.wrapper.style2 header p {
  color: var(--theme-muted);
}

header.major:after {
  background: var(--theme-accent);
}

a,
a:hover,
#header nav ul li.active > a,
#header nav ul li.active > span,
.dropotron > li.active > a,
.dropotron > li.active > span {
  color: var(--theme-accent-dark);
}

/* Le template impose un rouge en :hover avec !important. */
a:hover,
a:focus-visible { color: var(--theme-accent-dark) !important; }
#navPanel .link:hover,
#navPanel .link:focus-visible { color: var(--theme-accent-dark) !important; }

hr,
blockquote,
.box,
ul.alt li,
table tbody tr,
table thead,
table tfoot,
table.alt tbody tr td {
  border-color: var(--theme-border);
}

code,
table tbody tr:nth-child(2n + 1) {
  background: var(--theme-surface);
}

input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
  background-color: rgba(255, 255, 255, 0.72);
  border-color: var(--theme-border);
  color: var(--theme-ink);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: var(--theme-accent);
  box-shadow: 0 0 0 1px var(--theme-accent);
}

input::placeholder,
textarea::placeholder {
  color: var(--theme-muted) !important;
  opacity: 0.72;
}

label,
input[type="checkbox"] + label,
input[type="radio"] + label {
  color: var(--theme-muted);
}

select option {
  background: var(--theme-paper);
  color: var(--theme-ink);
}

input[type="checkbox"] + label:before,
input[type="radio"] + label:before {
  background: var(--theme-paper);
  border-color: var(--theme-border);
  color: var(--theme-paper);
}

input[type="checkbox"]:checked + label:before,
input[type="radio"]:checked + label:before {
  background: var(--theme-accent);
}

.image:before,
.spotlight:before {
  background-image: linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06));
}

.icon.alt:before,
.icon.major.alt:before,
#footer .icons .icon.alt:before {
  color: var(--theme-accent-dark) !important;
  text-shadow: none;
}

.icon.major {
  background: var(--theme-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

input[type="submit"],
input[type="reset"],
input[type="button"],
.button {
  box-shadow: inset 0 0 0 1px var(--theme-accent-dark);
  color: var(--theme-accent-dark) !important;
}

input[type="submit"]:hover,
input[type="submit"]:active,
input[type="reset"]:hover,
input[type="reset"]:active,
input[type="button"]:hover,
input[type="button"]:active,
.button:hover,
.button:active,
.button:focus-visible {
  background-color: var(--theme-accent-dark);
  box-shadow: inset 0 0 0 1px var(--theme-accent-dark);
  color: #fff !important;
}

input[type="submit"].primary,
input[type="reset"].primary,
input[type="button"].primary,
.button.primary,
#titleBar .toggle:before {
  background-color: var(--theme-accent-dark);
  color: #fff !important;
}

input[type="submit"].primary:hover,
input[type="reset"].primary:hover,
input[type="button"].primary:hover,
.button.primary:hover,
input[type="submit"].primary:active,
input[type="reset"].primary:active,
input[type="button"].primary:active,
.button.primary:active {
  background-color: var(--theme-accent-dark);
  color: #fff !important;
}

#header,
.dropotron,
.dropotron.level-0:before,
#titleBar,
#navPanel {
  background: rgba(255, 255, 255, 0.97);
  color: var(--theme-ink);
}

#header,
.dropotron,
#titleBar {
  box-shadow: 0 0.4rem 1.8rem rgba(58, 48, 44, 0.09);
}

.dropotron > li,
#navPanel .link {
  border-color: var(--theme-border);
}

.dropotron > li a,
.dropotron > li span,
#navPanel .link,
#navPanel .link.depth-0,
#titleBar .title {
  color: var(--theme-muted);
}

body.landing #header {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0));
}

#banner {
  background-color: var(--theme-surface);
  box-shadow: none;
}

#banner .content .image img { height: 100%; object-fit: cover; }

#banner:after {
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.62) 44%, rgba(255, 255, 255, 0.28) 100%), url("images/overlay.png");
}

#banner .content header p {
  color: var(--theme-muted);
}

#banner .content .image {
  border: 0.65rem solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--theme-shadow);
}

.goto-next:before {
  background-image: none;
  border-bottom: 2px solid var(--theme-accent-dark);
  border-right: 2px solid var(--theme-accent-dark);
  height: 1.15em;
  margin: -0.8em 0 0 -0.58em;
  transform: rotate(45deg);
  width: 1.15em;
}

.spotlight {
  box-shadow: 0 0.75rem 2rem rgba(58, 48, 44, 0.08);
}

.spotlight .content {
  background: rgba(255, 255, 255, 0.93);
  color: var(--theme-muted);
  box-shadow: var(--theme-shadow);
}

.spotlight.style1 .content { border-color: var(--theme-accent); }
.spotlight.style2 .content { border-color: var(--theme-accent-2); }
.spotlight.style3 .content { border-color: var(--theme-accent-3); }

.wrapper.style1 {
  background: var(--theme-bg);
}

.wrapper.style2 {
  background: var(--theme-band);
  color: var(--theme-ink);
}

.wrapper.style2 h1,
.wrapper.style2 h2,
.wrapper.style2 h3,
.wrapper.style2 h4,
.wrapper.style2 h5,
.wrapper.style2 h6 {
  color: var(--theme-ink);
}

.wrapper.style2 input[type="email"] {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.92);
}

.wrapper.style2 input[type="submit"].primary,
.wrapper.style2 input[type="reset"].primary,
.wrapper.style2 input[type="button"].primary,
.wrapper.style2 .button.primary {
  background: var(--theme-accent-dark);
  color: #fff !important;
}

.wrapper.style2 input[type="submit"]:hover,
.wrapper.style2 input[type="reset"]:hover,
.wrapper.style2 input[type="button"]:hover,
.wrapper.style2 .button:hover {
  background: var(--theme-ink) !important;
  box-shadow: inset 0 0 0 1px var(--theme-ink) !important;
  color: #fff !important;
}

/* Le template cible le bouton principal avec une règle plus spécifique. */
#five input[type="submit"].primary:hover,
#five input[type="submit"].primary:focus-visible,
#five input[type="submit"].primary:active {
  background-color: var(--theme-ink) !important;
  box-shadow: inset 0 0 0 1px var(--theme-ink) !important;
  color: #fff !important;
}

#footer {
  background: var(--theme-surface);
  color: var(--theme-muted);
}

#footer .copyright {
  color: var(--theme-muted);
}

#footer .copyright li {
  border-color: var(--theme-border);
}

@media screen and (max-width: 980px) {
  body.landing #header {
    background: transparent;
  }
}

/* Navigation compacte, fixe et lisible sur une seule ligne. */
#page-wrapper,
body.landing #page-wrapper { padding-top: 5.5rem; }
#header,
body.landing #header {
  align-items: center;
  background: rgba(255, 253, 248, .96);
  box-shadow: none;
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  height: 5.5rem;
  line-height: 1.25;
  padding: .65rem clamp(1rem, 2vw, 2rem);
  position: fixed;
}
#header h1 { flex: 0 0 auto; font-size: 1.05rem; height: auto; line-height: 1.25; margin: 0; position: static; white-space: nowrap; }
#header h1 a { border: 0; color: var(--theme-accent); font-family: "Satisfy", cursive; font-size: 1.55rem; font-weight: 400; transition: color .2s ease; }
#header h1 a:hover,
#header h1 a:focus-visible { color: var(--theme-ink) !important; }
#header nav { flex: 1 1 auto; min-width: 0; position: static; }
#header nav > ul { align-items: center; display: grid; gap: .3rem; grid-template-columns: .6fr 1.55fr 1.4fr .9fr 1.05fr 1.2fr; margin: 0; }
#header nav > ul > li { align-items: center; display: flex; margin: 0; min-width: 0; }
#header nav > ul > li > a {
  align-items: center;
  border-radius: .45rem;
  color: var(--theme-ink);
  display: flex;
  font-size: .94rem;
  font-weight: 550;
  height: auto;
  justify-content: center;
  line-height: 1.25;
  min-height: 3.2rem;
  min-width: 0;
  padding: .4rem .35rem;
  position: relative;
  text-align: center;
  white-space: normal;
  width: 100%;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}
#header nav > ul > li:not(:nth-child(5)) > a:after {
  background: var(--theme-accent-dark);
  border-radius: 2px;
  bottom: .12rem;
  content: '';
  height: 2px;
  left: 20%;
  position: absolute;
  right: 20%;
  transform: scaleX(0);
  transition: transform .2s ease;
}
#header nav > ul > li > a:hover,
#header nav > ul > li > a:focus-visible {
  background: transparent;
  box-shadow: none;
  color: var(--theme-accent-dark);
  text-decoration: none;
}
#header nav > ul > li:not(:nth-child(5)) > a:hover:after,
#header nav > ul > li:not(:nth-child(5)) > a:focus-visible:after { transform: scaleX(1); }
#header nav > ul > li > a:focus-visible { outline: 2px solid var(--theme-accent-dark); outline-offset: 2px; }
#header nav > ul > li:nth-child(5) > a { background: var(--theme-accent-dark); border-radius: 999px; color: #fff !important; }
#header nav > ul > li:nth-child(5) > a:hover,
#header nav > ul > li:nth-child(5) > a:focus-visible { background: var(--theme-ink); box-shadow: none; color: #fff !important; text-decoration: none; transform: translateY(-2px); }
#navPanel .link {
  height: auto;
  line-height: 1.35;
  min-height: 3em;
  overflow-wrap: break-word;
  padding: .8em 0;
  white-space: normal;
}
#one, #two, #three, #four, #five { scroll-margin-top: 5.5rem; }

/* Une seule photographie, réservée à l'ouverture de la page. */
#banner {
  background-attachment: scroll;
  background-image: url("../../images/riviere-doree.webp");
  background-position: 38% center !important;
  min-height: calc(100vh - 5.5rem);
}
#banner:before { height: calc(100vh - 5.5rem); }
#banner:after { background-image: linear-gradient(115deg, rgba(247, 243, 235, .48), rgba(247, 243, 235, .28)); }
#banner .content {
  align-items: center;
  background: none;
  display: inline-flex;
  gap: 0;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: left;
}
#banner .content header {
  background: rgba(255, 253, 248, .9);
  border-radius: 4rem 1.25rem 4rem 1.25rem;
  box-shadow: var(--theme-shadow);
  max-width: calc(100vw - 2.5rem);
  padding: 5rem 7rem 5rem 4.5rem;
  position: relative;
  text-align: left;
  transform: translate(1.5rem, -1.5rem);
  width: 48rem;
  z-index: 1;
}
#banner .content header h2 {
  font-family: "Satisfy", cursive;
  font-size: clamp(3.15rem, 4.5vw, 4.6rem);
  font-weight: 400;
  line-height: 1.16;
  white-space: nowrap;
}
#banner .content header h2 .title-motion {
  color: var(--theme-accent);
  font-size: 1.08em;
  font-weight: 600;
}
#banner .content .image {
  animation: none;
  background: var(--theme-paper);
  border-radius: 50%;
  box-shadow: 1.1rem -1.1rem 0 rgba(63, 116, 116, .48), var(--theme-shadow);
  flex: 0 0 18rem;
  height: 18rem;
  margin-left: -2rem;
  position: relative;
  transform: translate(-1rem, 2rem);
  width: 18rem;
  z-index: 2;
}
#banner .content .image img { border-radius: inherit; height: 100%; object-fit: contain; padding: 0.55rem; }

#banner .content header .banner-subtitle {
  font-size: clamp(1.13rem, 1.55vw, 1.45rem);
  line-height: 1.5;
  margin-top: 1.5rem;
}
#banner .banner-subtitle span { display: block; }
#banner .banner-subtitle span:first-child { color: var(--theme-ink); font-weight: 600; }
#banner .banner-subtitle span + span { margin-top: .35rem; }

/* Introduction sur le même fond sobre que la citation, puis deux récits en quinconce. */
.opening-sequence {
  background: var(--theme-bg);
  color: var(--theme-muted);
  padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 4vw, 4rem);
}
.opening-intro,
.opening-stories { margin-left: auto; margin-right: auto; max-width: 78rem; }
.opening-intro {
  background: var(--theme-surface);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.7rem, 5vw, 5rem);
}
.opening-intro p {
  font-size: clamp(1.15rem, 1.6vw, 1.42rem);
  line-height: 1.65;
  margin: 0 0 1.2rem;
  max-width: 65rem;
}
.opening-intro p:last-child { margin-bottom: 0; }
.opening-intro .opening-lead {
  color: var(--theme-ink);
  font-size: clamp(1.4rem, 2.45vw, 2.15rem);
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 1.5rem;
}
.opening-stories { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.opening-story {
  align-items: stretch;
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
}
.opening-story-reverse { grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr); }
.opening-story-image {
  border-radius: 1.5rem 4.5rem 1.5rem 4.5rem;
  box-shadow: var(--theme-shadow);
  margin: 0;
  min-height: 27rem;
  overflow: hidden;
  position: relative;
}
.opening-story-reverse .opening-story-image { border-radius: 4.5rem 1.5rem 4.5rem 1.5rem; }
.opening-story-image img { display: block; height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.opening-story:first-child .opening-story-image img { object-position: center 38%; }
.opening-story-reverse .opening-story-image img { object-position: center center; }
.opening-story-copy {
  align-self: center;
  background: var(--theme-paper);
  border-radius: 2.5rem 1rem 2.5rem 1rem;
  box-shadow: var(--theme-shadow);
  padding: clamp(2rem, 4vw, 3.5rem);
}
.opening-story-reverse .opening-story-copy { background: var(--theme-soft); border-radius: 1rem 2.5rem 1rem 2.5rem; }
.opening-story-copy h2 {
  color: var(--theme-ink);
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  line-height: 1.25;
  margin-bottom: 1.6rem;
}
.opening-story-copy p { font-size: 1.12rem; line-height: 1.6; margin-bottom: 1.15rem; }
.opening-story-copy p:last-child { margin-bottom: 0; }
.opening-story-closing { border-left: .2rem solid var(--theme-accent); color: var(--theme-ink); font-weight: 700; padding-left: 1rem; }
.opening-voices { display: grid; gap: .65rem; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.opening-voices li {
  align-items: center;
  background: var(--theme-paper);
  border-radius: 1rem;
  color: var(--theme-ink);
  display: flex;
  font-size: 1rem;
  line-height: 1.35;
  min-height: 3.45rem;
  padding: .7rem 1rem;
}
.opening-voices li::before { background: var(--theme-accent); border-radius: 50%; content: ""; flex: 0 0 .45rem; height: .45rem; margin-right: .8rem; }

@media screen and (max-width: 980px) {
  .opening-story, .opening-story-reverse { gap: 1.5rem; grid-template-columns: 1fr; }
  .opening-story-image, .opening-story-reverse .opening-story-image { min-height: 20rem; }
  .opening-story-reverse .opening-story-copy { order: 2; }
  .opening-story-reverse .opening-story-image { order: 1; }
}
@media screen and (max-width: 736px) {
  .opening-sequence { padding: 2rem 1rem; }
  .opening-intro { margin-bottom: 2rem; }
  .opening-story-copy { padding: 2rem 1.5rem; }
  .opening-story-image, .opening-story-reverse .opening-story-image { min-height: 16rem; }
  .opening-voices { grid-template-columns: 1fr; }
}

/* Panneaux asymétriques ajustés à leur contenu, sans espace perdu. */
#one, #two, #three {
  align-items: center;
  background: var(--theme-bg) !important;
  background-image: none !important;
  box-shadow: none;
  display: flex;
  height: auto;
  min-height: 0;
  padding-block: 2.25rem 5rem;
  padding-inline: max(clamp(1rem, 4vw, 4rem), calc((100% - 78rem) / 2));
}
#one, #three { justify-content: flex-start; }
#two { justify-content: flex-end; background: var(--theme-surface) !important; }
#one .image.main, #two .image.main, #three .image.main,
#one:before, #two:before, #three:before { display: none !important; }
#one .content, #two .content, #three .content {
  background: rgba(255, 253, 248, .94);
  border: 0 !important;
  border-left: .4rem solid var(--theme-accent-dark) !important;
  border-radius: 3.25rem 1.25rem 3.75rem 1.5rem;
  box-shadow: var(--theme-shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: auto;
  left: auto;
  margin: 0;
  min-height: 0;
  padding: 2.5rem 3.25rem;
  position: relative;
  right: auto;
  text-align: left;
  top: auto;
  width: min(100%, 54rem);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22, 1, .36, 1);
}
#one .content h2, #two .content h2, #three .content h2 { font-size: 2.35rem; line-height: 1.2; margin: 0 0 .65rem; }
#one .content header p, #two .content header p, #three .content header p { font-size: 1.25rem; margin: 0; }
#one .content p, #two .content > p, #three .content > p { line-height: 1.6; }
#one .content header, #two .content header, #three .content header { margin-bottom: 1.4rem; }
#one .content .key-points { list-style: none; margin: 0 0 1.2rem; padding: 0; }
#one .content .key-points li { font-size: 1.15rem; line-height: 1.5; margin: .25rem 0; padding: 0; }
#one .content .key-points strong { font-weight: 650; }
#one .content > p, #two .content > p, #three .content > p { font-size: 1.08rem; margin-bottom: 1.25rem; }
#two .content .key-words { color: var(--theme-ink); font-weight: 650; letter-spacing: .02em; }
#one .content .actions, #two .content .actions, #three .content .actions { margin: .5rem 0 0; }
#one .content .actions li:first-child, #two .content .actions li:first-child, #three .content .actions li:first-child { padding-left: 0; }
#one.inactive .content, #two.inactive .content, #three.inactive .content { transform: translateY(1.25rem); }
.wrapper.fade-up > .container { transition: opacity .5s ease, transform .5s cubic-bezier(.22, 1, .36, 1); }
.wrapper.fade-up.inactive > .container { transform: translateY(.75rem); }

@media screen and (max-width: 980px) {
  #page-wrapper, body.landing #page-wrapper { padding-top: 44px; }
  #banner { align-items: center; display: flex; justify-content: center; min-height: calc(100vh - 44px); }
  #banner:before { display: none; }
  #banner .content { display: flex; flex-direction: column; gap: 0; margin: 0; max-width: none; padding: 4rem 1.25rem 6rem; text-align: center; width: 100%; }
  #banner .content header { margin: 0 auto; max-width: calc(100% - 2.5rem); padding: 2.5rem 1.75rem 4.5rem; text-align: center; transform: none; }
  #banner .content header h2 { font-size: clamp(2.6rem, 9vw, 4rem); white-space: normal; }
  #banner .content .image { align-self: center; flex-basis: auto; height: 13rem; margin: -2.5rem auto 0; transform: none; width: 13rem; }
  #one, #two, #three { min-height: 0; padding: 1.5rem 1rem 4rem; scroll-margin-top: 44px; }
  #one .content, #two .content, #three .content { height: auto; min-height: 0; padding: 2.5rem 1.5rem !important; width: 100%; }
}
@media screen and (min-width: 737px) and (max-width: 980px) {
  #page-wrapper, body.landing #page-wrapper { padding-top: 5.5rem; }
  #header, body.landing #header { display: flex !important; gap: 0; }
  #header h1 { display: none; }
  #header nav > ul > li > a { font-size: .88rem; }
  #banner { min-height: calc(100vh - 5.5rem); }
  #banner:before { height: calc(100vh - 5.5rem); }
  #one, #two, #three, #four, #five { scroll-margin-top: 5.5rem; }
}
@media screen and (max-width: 736px) {
  #header { display: none !important; }
  #banner {
    background-image: url("../../images/riviere-doree-mobile.webp");
    background-position: center center !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  #header nav > ul > li > a, #header nav > ul > li > a:after,
  #one .content, #two .content, #three .content,
  .wrapper.fade-up > .container { transition: none !important; }
  #one.inactive .content, #two.inactive .content, #three.inactive .content { transform: none; opacity: 1; }
  .wrapper.fade-up.inactive > .container { transform: none; opacity: 1; }
}
/* Périodes de transition : deux repères, une citation, puis un portrait éditorial. */
.transition-section {
  padding-block: clamp(4rem, 7vw, 7rem);
}
.transition-section > .container {
  max-width: 78rem;
  width: calc(100% - clamp(2rem, 8vw, 8rem));
}
.transition-heading { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.transition-heading h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
  max-width: 58rem;
}
.transition-topics {
  align-items: stretch;
  display: grid;
  gap: clamp(1rem, 2vw, 2rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.transition-topic {
  background: var(--theme-soft);
  border-top: .25rem solid var(--theme-accent);
  border-radius: .8rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.transition-topic:nth-child(2) { background: var(--theme-paper); }
.transition-topic-copy {
  flex: 1 1 auto;
  padding: clamp(1.5rem, 2.5vw, 2.4rem) clamp(1.7rem, 3vw, 3rem);
}
.transition-topic-image {
  aspect-ratio: 16 / 9;
  display: block;
  flex: 0 0 auto;
  height: auto;
  object-fit: cover;
  object-position: center;
  width: 100%;
}
.transition-topic-head {
  align-items: center;
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.transition-topic-number {
  align-items: center;
  background: var(--theme-accent-dark);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: .8rem;
  font-weight: 700;
  height: 2.5rem;
  justify-content: center;
  letter-spacing: .04em;
  flex: 0 0 2.5rem;
  width: 2.5rem;
}
.transition-topic h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}
.transition-topic p {
  font-size: 1.08rem;
  line-height: 1.6;
  margin: 0 0 .85rem;
}
.transition-topic p:last-child { margin-bottom: 0; }
.transition-quote {
  background: var(--theme-surface);
  border: 0;
  margin: clamp(3rem, 6vw, 5.5rem) 0;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.7rem, 5vw, 5rem);
}
.transition-quote blockquote {
  border: 0;
  color: var(--theme-ink);
  font-size: clamp(1.4rem, 2.45vw, 2.15rem);
  font-weight: 400;
  line-height: 1.45;
  margin: 0 0 1.1rem;
  padding: 0;
}
.transition-quote figcaption {
  color: var(--theme-muted);
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.transition-reflection {
  margin: 0 auto clamp(4rem, 7vw, 7rem);
  max-width: 61rem;
}
.transition-reflection p {
  font-size: clamp(1.12rem, 1.7vw, 1.35rem);
  line-height: 1.7;
  margin-bottom: 1.35rem;
}
.transition-reflection p:last-child { margin-bottom: 0; }
.transition-reflection strong { font-weight: 650; }
.amandine-intro {
  align-items: center;
  border-top: 1px solid var(--theme-border);
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  padding-top: clamp(3rem, 6vw, 5rem);
}
.amandine-portrait-pending {
  align-items: center;
  background: var(--theme-soft);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 23rem;
  overflow: hidden;
  position: relative;
}
.amandine-portrait-pending::before {
  border: 1px solid var(--theme-accent);
  border-radius: 50%;
  content: "";
  height: 15rem;
  opacity: .55;
  position: absolute;
  width: 15rem;
}
.amandine-portrait-initials {
  color: var(--theme-accent-dark);
  font-family: Satisfy, cursive;
  font-size: 5.5rem;
  line-height: 1;
  position: relative;
}
.amandine-portrait-caption {
  color: var(--theme-ink);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .08em;
  margin-top: 1.5rem;
  position: relative;
  text-transform: uppercase;
}
.amandine-intro-copy h3 {
  font-size: clamp(1.8rem, 2.7vw, 2.65rem);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 1.75rem;
}
.amandine-intro-copy p {
  font-size: 1.12rem;
  line-height: 1.7;
  margin-bottom: 1.9rem;
}
.amandine-intro-copy .button { max-width: 100%; }
@media screen and (max-width: 736px) {
  .transition-section > .container { width: calc(100% - 2rem); }
  .transition-topics, .amandine-intro { grid-template-columns: 1fr; }
  .transition-topics { grid-auto-rows: 1fr; }
  .amandine-portrait-pending { min-height: 17rem; }
  .amandine-intro { gap: 2rem; }
  .amandine-intro-copy .button {
    height: auto;
    line-height: 1.4;
    padding: .8rem 1.2rem;
    white-space: normal;
  }
}

/* Aperçus locaux : deux compositions possibles pour les phrases. */
#phrases {
  overflow: hidden;
  padding: 0;
  scroll-margin-top: 7rem;
}
#phrases h2 {
  background: var(--theme-cloud-heading);
  margin: 0;
  padding: clamp(2rem, 4vw, 3.5rem);
}
#phrases .opening-voices--cloud {
  padding: clamp(2rem, 3vw, 2.8rem) clamp(2rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3.5rem);
}
#phrases .preview-label {
  background: var(--theme-cloud-heading);
  margin: 0;
  padding: 1.25rem clamp(2rem, 4vw, 3.5rem) 0;
}
#phrases .preview-label + h2 { padding-top: 1rem; }
.opening-story-copy .preview-label {
  color: var(--theme-accent-dark);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}
.opening-voices--cloud {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
  justify-content: center;
}
.opening-voices--cloud li {
  background: none;
  border-radius: 0;
  display: block;
  font-size: clamp(1.08rem, 1.35vw, 1.22rem);
  font-weight: 400;
  line-height: 1.28;
  max-width: 100%;
  min-height: 0;
  padding: .1rem 0;
  text-align: center;
  white-space: nowrap;
}
.opening-voices--cloud li:nth-child(4n+1) { transform: translateY(-.25rem) rotate(-1deg); }
.opening-voices--cloud li:nth-child(4n+2) { transform: translateY(.3rem) rotate(1deg); }
.opening-voices--cloud li:nth-child(4n+3) { transform: translateY(.15rem) rotate(.6deg); }
.opening-voices--cloud li:nth-child(4n) { transform: translateY(-.2rem) rotate(-.6deg); }
.opening-voices--cloud li::before,
.opening-voices--editorial li::before { display: none; }
.opening-voices--cloud li.voice-xl {
  color: var(--theme-accent-dark);
  font-size: clamp(1.65rem, 2.1vw, 1.95rem);
  font-weight: 600;
}
.opening-voices--cloud li.voice-focus {
  flex-basis: 100%;
  font-size: clamp(2rem, 2.65vw, 2.4rem);
}
.opening-voices--cloud li.voice-lg {
  font-size: clamp(1.25rem, 1.65vw, 1.48rem);
  font-weight: 500;
}
.opening-voices--cloud li.voice-sm { font-size: 1rem; }

.opening-voices--editorial {
  column-gap: clamp(1.5rem, 3vw, 3rem);
  row-gap: .25rem;
}
.opening-voices--editorial li {
  align-items: start;
  background: none;
  border-top: 1px solid rgba(63, 116, 116, .4);
  border-radius: 0;
  display: block;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 400;
  line-height: 1.35;
  min-height: 0;
  padding: 1.05rem 0 1.2rem;
}
.opening-voices--editorial li:nth-child(3n+1) {
  color: var(--theme-accent-dark);
  font-weight: 600;
}
@media screen and (max-width: 736px) {
  #phrases h2 { padding: 2rem 1.5rem 1.5rem; }
  #phrases .opening-voices--cloud { padding: 1.5rem 1.5rem 2rem; }
  #phrases .preview-label { padding: 1.25rem 1.5rem 0; }
  .opening-voices--cloud { gap: .85rem 1rem; justify-content: flex-start; }
  .opening-voices--cloud li:nth-child(n) { transform: none; }
  .opening-voices--cloud li,
  .opening-voices--cloud li:nth-child(n) { font-size: 1.05rem; max-width: 100%; text-align: left; white-space: normal; }
  .opening-voices--cloud li:nth-child(3n+2) { margin-left: auto; text-align: right; }
  .opening-voices--cloud li:nth-child(4n) { margin-left: 1rem; }
  .opening-voices--cloud li.voice-xl:nth-child(n) { font-size: 1.55rem; }
  .opening-voices--cloud li.voice-focus:nth-child(n) { flex-basis: auto; font-size: 1.7rem; }
  .opening-voices--cloud li.voice-lg:nth-child(n) { font-size: 1.25rem; }
  .opening-voices--cloud li.voice-lg:nth-child(8) { font-size: 1.05rem; }
  .opening-voices--cloud li.voice-sm:nth-child(n) { font-size: 1rem; }
  .opening-voices--editorial { grid-template-columns: 1fr; }
}

/* Trois cartouches en quinconce compact, sur un fond continu. */
.opening-sequence { padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.feature-cards {
  background: var(--theme-surface);
  padding: clamp(1.75rem, 3vw, 2.5rem) 1rem clamp(2.5rem, 4vw, 3.5rem);
}
.feature-cards > .spotlight {
  background: transparent !important;
  box-shadow: none;
  display: flex;
  height: auto;
  margin: 0 auto;
  max-width: 68rem;
  min-height: 0;
  overflow: visible;
  padding: 0 !important;
  width: 100%;
}
.feature-cards > .spotlight + .spotlight { margin-top: 1.25rem; }
.feature-cards #one,
.feature-cards #two,
.feature-cards #three { background: transparent !important; }
.feature-cards #one, .feature-cards #three { justify-content: flex-start; }
.feature-cards #two { justify-content: flex-end; }
.feature-cards #one .content,
.feature-cards #two .content,
.feature-cards #three .content {
  padding: 1.75rem 2.5rem;
  transition: opacity .35s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
  width: min(100%, 58rem);
}
.feature-cards #one .content h2,
.feature-cards #two .content h2,
.feature-cards #three .content h2 { font-size: clamp(1.7rem, 2.4vw, 2.1rem); }
.feature-cards #one.inactive .content,
.feature-cards #two.inactive .content,
.feature-cards #three.inactive .content {
  opacity: 1 !important;
  transform: none;
}
@media screen and (max-width: 736px) {
  .feature-cards { padding: 1.5rem 1rem 2.5rem; }
  .feature-cards #one .content,
  .feature-cards #two .content,
  .feature-cards #three .content { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-cards #one .content,
  .feature-cards #two .content,
  .feature-cards #three .content { transition: none; }
}

/* Trois cartouches sur une rangée. */
@media screen and (min-width: 1101px) {
  .feature-cards {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 auto;
    padding: 2.25rem max(1.5rem, calc((100% - 88rem) / 2)) 3.75rem;
  }
  .feature-cards > .spotlight {
    align-self: stretch;
    display: flex;
    margin: 0;
    max-width: none;
    min-width: 0;
    width: auto;
  }
  .feature-cards #one,
  .feature-cards #two,
  .feature-cards #three { align-items: center; }
  .feature-cards > .spotlight + .spotlight { margin-top: 0; }
  .feature-cards #one .content,
  .feature-cards #two .content,
  .feature-cards #three .content {
    height: auto;
    justify-content: flex-start;
    padding: 2rem 1.8rem;
    width: 100%;
  }
  .feature-cards #one .content h2,
  .feature-cards #two .content h2,
  .feature-cards #three .content h2 {
    font-size: clamp(1.45rem, 1.8vw, 1.85rem);
    line-height: 1.2;
  }
  .feature-cards #one .content header p,
  .feature-cards #two .content header p,
  .feature-cards #three .content header p { font-size: 1.03rem; }
  .feature-cards #one .content .key-points li,
  .feature-cards #one .content > p,
  .feature-cards #two .content > p,
  .feature-cards #three .content > p { font-size: 1rem; }
  .feature-cards #one .content .actions,
  .feature-cards #two .content .actions,
  .feature-cards #three .content .actions { margin-top: auto; padding-top: 1.25rem; }
}

/* Entrée légère, de gauche à droite, au premier passage. */
.feature-cards.cascade-ready #one .content,
.feature-cards.cascade-ready #two .content,
.feature-cards.cascade-ready #three .content {
  opacity: 0 !important;
  transform: translateY(1.7rem) !important;
  transition: opacity .8s ease, transform .9s cubic-bezier(.22, 1, .36, 1) !important;
}
.feature-cards.cascade-ready #two .content {
  transform: translateY(-1.7rem) !important;
}
.feature-cards.cascade-ready #one.is-revealed .content,
.feature-cards.cascade-ready #two.is-revealed .content,
.feature-cards.cascade-ready #three.is-revealed .content {
  opacity: 1 !important;
  transform: none !important;
}
.feature-cards.cascade-ready #two.is-revealed .content { transition-delay: .3s !important; }
.feature-cards.cascade-ready #three.is-revealed .content { transition-delay: .6s !important; }
@media screen and (max-width: 1100px) {
  .feature-cards.cascade-ready #two.is-revealed .content,
  .feature-cards.cascade-ready #three.is-revealed .content { transition-delay: 0s !important; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-cards.cascade-ready #one .content,
  .feature-cards.cascade-ready #two .content,
  .feature-cards.cascade-ready #three .content {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Les quatre panneaux se rejoignent depuis les coins de leur composition. */
.opening-sequence.motion-ready .opening-intro,
.opening-sequence.motion-ready .opening-story-image,
.opening-sequence.motion-ready .opening-story-copy {
  opacity: 0;
  transition: opacity .8s ease, transform 1s cubic-bezier(.22, 1, .36, 1);
}
.opening-sequence.motion-ready .opening-intro { transform: translateY(1.1rem); }
.opening-sequence.motion-ready .opening-story:first-child > .opening-story-image:not(.is-revealed) { transform: translate(-1.5rem, -1.3rem); }
.opening-sequence.motion-ready .opening-story:first-child > .opening-story-copy:not(.is-revealed) { transform: translate(1.5rem, -1.3rem); }
.opening-sequence.motion-ready .opening-story-reverse > .opening-story-copy:not(.is-revealed) { transform: translate(-1.5rem, 1.3rem); }
.opening-sequence.motion-ready .opening-story-reverse > .opening-story-image:not(.is-revealed) { transform: translate(1.5rem, 1.3rem); }
.opening-sequence.motion-ready .opening-intro.is-revealed,
.opening-sequence.motion-ready .opening-story-image.is-revealed,
.opening-sequence.motion-ready .opening-story-copy.is-revealed {
  opacity: 1;
  transform: none;
}
.opening-sequence.motion-ready .opening-story:first-child > .opening-story-copy.is-revealed,
.opening-sequence.motion-ready .opening-story-reverse > .opening-story-image.is-revealed {
  transition-delay: .12s;
}
@media screen and (max-width: 980px) {
  .opening-sequence.motion-ready .opening-story:first-child > .opening-story-image:not(.is-revealed),
  .opening-sequence.motion-ready .opening-story:first-child > .opening-story-copy:not(.is-revealed),
  .opening-sequence.motion-ready .opening-story-reverse > .opening-story-image:not(.is-revealed),
  .opening-sequence.motion-ready .opening-story-reverse > .opening-story-copy:not(.is-revealed) { transform: translateY(1rem); }
  .opening-sequence.motion-ready .opening-story:first-child > .opening-story-copy.is-revealed,
  .opening-sequence.motion-ready .opening-story-reverse > .opening-story-image.is-revealed { transition-delay: 0s; }
}
@media (prefers-reduced-motion: reduce) {
  .opening-sequence.motion-ready .opening-intro,
  .opening-sequence.motion-ready .opening-story-image,
  .opening-sequence.motion-ready .opening-story-copy {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Les éléments de la section transition se révèlent une seule fois au scroll. */
.transition-section.motion-ready .transition-heading,
.transition-section.motion-ready .transition-topic,
.transition-section.motion-ready .transition-quote,
.transition-section.motion-ready .transition-reflection,
.transition-section.motion-ready .amandine-portrait-pending,
.transition-section.motion-ready .amandine-intro-copy {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity .72s ease, transform .85s cubic-bezier(.22, 1, .36, 1);
}
.transition-section.motion-ready .amandine-portrait-pending { transform: translateX(-1rem); }
.transition-section.motion-ready .amandine-intro-copy { transform: translateX(1rem); }
.transition-section.motion-ready .transition-heading.is-revealed,
.transition-section.motion-ready .transition-topic.is-revealed,
.transition-section.motion-ready .transition-quote.is-revealed,
.transition-section.motion-ready .transition-reflection.is-revealed,
.transition-section.motion-ready .amandine-intro.is-revealed > .amandine-portrait-pending,
.transition-section.motion-ready .amandine-intro.is-revealed > .amandine-intro-copy {
  opacity: 1;
  transform: none;
}
.transition-section.motion-ready .transition-topic:nth-child(2).is-revealed,
.transition-section.motion-ready .amandine-intro.is-revealed > .amandine-intro-copy {
  transition-delay: .16s;
}
@media screen and (max-width: 736px) {
  .transition-section.motion-ready .transition-topic:nth-child(2).is-revealed {
    transition-delay: 0s;
  }
  .transition-section.motion-ready .amandine-portrait-pending,
  .transition-section.motion-ready .amandine-intro-copy {
    transform: translateY(1rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .transition-section.motion-ready .transition-heading,
  .transition-section.motion-ready .transition-topic,
  .transition-section.motion-ready .transition-quote,
  .transition-section.motion-ready .transition-reflection,
  .transition-section.motion-ready .amandine-portrait-pending,
  .transition-section.motion-ready .amandine-intro-copy {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
