/* ==========================================================================
   EDF 2025 Universal Registration Document — Full-Width Responsive Layout
   ========================================================================== */

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

:root {
  --edf-navy: #001A70;
  --edf-orange: #FF5716;
  --page-bg: #FFFFFF;
  --placeholder-bg: #E9EDF2;
}

html,
body {
  width: 100%;
  min-height: 100%;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--page-bg);
  color: var(--edf-navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Full-Width White Wrapper */
.page-wrapper {
  width: 100%;
  background-color: var(--page-bg);
  padding: 24px 120px 80px;
}

/* Row 1: Top Split Section (42% / 58%) */
.top-row {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  gap: 32px;
  align-items: start;
}

.top-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 90px;
}

.brand-logo {
  display: block;
  width: 165px;
  height: auto;
}

.title-block {
  margin-top: 64px;
}

.main-title {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--edf-navy);
  text-align: left;
  padding-top: 80px;
}

.subtitle {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.3;
  color: var(--edf-navy);
  text-align: left;
}

.top-right {
  position: relative;
  z-index: 2;
  width: 100%;
  background-color: var(--placeholder-bg);
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
}

/* Row 2: Bottom Section (62% / 38%) */
.bottom-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
  gap: 36px;
  margin-top: -250px;
  align-items: end;
  width: 87%;
  margin-left: 134px;
}

.bottom-left {
  position: relative;
  z-index: 1;
  width: 100%;

}

.worker-image {
  display: block;
  width: 100%;
  height: auto;
}

.bottom-right {
  position: relative;
  top: 115px;
  align-self: flex-end;
}

.raison-detre-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--edf-navy);
  margin-bottom: 8px;
}

.raison-detre-text {
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--edf-navy);
  max-width: 380px;
}

.raison-detre-text sub {
  font-size: 0.72em;
  line-height: 0;
  vertical-align: sub;
}

/* ==========================================================================
   Page 2: Sommaire (Table of Contents)
   ========================================================================== */
.sommaire-section {
  margin-top: 145px;
  padding-top: 20px;
}

.sommaire-heading {
  font-size: 30px;
  font-weight: 700;
  color: var(--edf-orange);
  line-height: 1.2;
  margin-bottom: 36px;
}

.sommaire-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
  align-items: start;
}

.chapter-block:not(:last-child) {
  margin-bottom: 28px;
}

.chapter-header {
  display: flex;
  align-items: flex-end;
  margin-bottom: 10px;
}

.chapter-num {
  flex: 0 0 38px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--edf-orange);
  align-self: flex-start;
}

.chapter-title {
  flex: 1;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--edf-navy);
  padding-right: 16px;
}

.chapter-page {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--edf-navy);
}

.rfa-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--edf-orange);
  margin-left: 4px;
  white-space: nowrap;
}

.sub-list {
  list-style: none;
  padding-left: 38px;
}

.sub-item {
  display: flex;
  align-items: flex-end;
}

.sub-item:not(:last-child) {
  margin-bottom: 8px;
}

.sub-num {
  flex: 0 0 34px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--edf-navy);
  align-self: flex-start;
}

.sub-title {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--edf-navy);
  padding-right: 16px;
}

.sub-page {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--edf-navy);
  align-self: flex-end;
}

.rfa-footnote {
  margin-top: 100px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--edf-navy);
  white-space: nowrap;
}

.rfa-badge {
  font-weight: 700;
  color: var(--edf-orange);
  margin-right: 4px;
}

/* ==========================================================================
   Page 3: Inner Title Section
   ========================================================================== */
.page-section-three {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 96px;
  padding-bottom: 64px;
}

.s3-logo {
  display: block;
  width: clamp(160px, 16vw, 230px);
  height: auto;
  margin-bottom: clamp(72px, 8.5vw, 125px);
}

.s3-title {
  font-size: 46px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--edf-navy);
  text-align: left;
}

.s3-year {
  color: var(--edf-orange);
}

.s3-subtitle {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.3;
  color: var(--edf-navy);
  text-align: left;
}

.s3-tagline {
  margin-top: clamp(72px, 8.5vw, 125px);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--edf-navy);
  text-align: left;
}

/* ==========================================================================
   Page 4: AMF Regulatory Notice
   ========================================================================== */
.page-section-four {
  margin-top: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.s4-logo {
  display: block;
  width: 118px;
  height: auto;
  margin-bottom: 24px;
}

.s4-text-block {
  max-width: fit-content;
}

.s4-paragraph {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--edf-navy);
  text-align: left;
  max-width: fit-content;
}

.s4-paragraph:not(:last-child) {
  margin-bottom: 14px;
}

.s4-link {
  color: inherit;
  text-decoration: none;
}

.s4-link:hover {
  text-decoration: underline;
}

.desktop-br {
  display: inline;
}

@media (max-width: 1023px) {
  .desktop-br {
    display: none;
  }
}

/* ==========================================================================
   Bottom-Right Document Page Reference
   ========================================================================== */
.doc-page-ref {
  margin-top: 100px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 40px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--edf-navy);
}

.ref-brand {
  font-weight: 700;
  color: var(--edf-navy);
}

.ref-divider {
  margin: 0 10px;
  font-weight: 400;
  color: var(--edf-orange);
}

.ref-title {
  font-weight: 400;
  color: var(--edf-navy);
}

.ref-page-num {
  margin-left: 48px;
  font-weight: 700;
  color: var(--edf-navy);
}

/* ==========================================================================
   Full-Width Image Banner
   ========================================================================== */
.full-width-banner {
  width: 100%;
  margin-top: 200px;
}

.full-width-banner-img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Page 5: Chapter 1 Overview
   ========================================================================== */
.chapter-one-section {
  margin-top: 110px;
  padding-top: 0;
  padding-bottom: 80px;
}

.ch1-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 56px;
}

.ch1-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--edf-navy);
}

.ch1-chevron {
  flex-shrink: 0;
  display: block;
}

.ch1-bar {
  margin-top: 22px;
  width: 340px;
  max-width: 75%;
  height: 4px;
  background-color: var(--edf-orange);
}

.ch1-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 72px;
  align-items: start;
}

.ch1-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  column-gap: 10px;
  align-items: start;
  color: var(--edf-navy);
}

.ch1-row--main {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.ch1-row--sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.42;
  margin-bottom: 6px;
}

.ch1-row--spaced-top {
  margin-top: 22px;
}

.ch1-page {
  text-align: right;
}

.ch1-row--bottom-page .ch1-page {
  align-self: end;
}

/* ==========================================================================
   Page 6: Section 1.1 Header
   ========================================================================== */
.page-section-six {
  margin-top: 60px;
}

.s6-chapter-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.s6-chapter-num {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--edf-orange);
}

.s6-chapter-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--edf-navy);
}

.s6-chapter-subtitle {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--edf-navy);
}

.s6-section-heading {
  margin-top: 48px;
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding-left: 8px;
  padding-bottom: 40px;
}

.s6-sec-num {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--edf-navy);
}

.s6-sec-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--edf-navy);
}

/* ==========================================================================
   Page 7: La trajectoire carbone d'EDF & Chiffres clés 2025
   ========================================================================== */
.page-section-seven {
  margin-top: 28px;
  padding-bottom: 64px;
  width: 100%;
}

.s7-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  align-items: stretch;
  width: 100%;
}

/* Continuous Left Ice-Blue Panel (ready for upcoming blocks below) */
.s7-left-column {
  background-color: #E9F2FA;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
}

/* Continuous Right White Panel (ready for upcoming blocks below) */
.s7-right-column {
  background-color: #FFFFFF;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
}

.s7-left-title {
  font-weight: 700;
  color: #001A70;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.2;
  margin-bottom: 18px;
}

.s7-right-title {
  font-weight: 700;
  color: #0066B3;
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  line-height: 1.2;
  margin-bottom: 18px;
}

.s7-sub-title {
  font-weight: 700;
  color: #0066B3;
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 6px;
}

.s7-sup {
  font-size: 0.7rem;
  font-weight: 700;
}

.s7-thin-line {
  width: 100%;
  height: 1px;
  background-color: #004B87;
  margin-bottom: 6px;
}

.s7-sub-unit {
  font-weight: 400;
  color: #001A70;
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.s7-callout {
  font-weight: 500;
  color: #001A70;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 20px;
}

.s7-chart-box {
  width: 100%;
  margin-bottom: 20px;
}

.s7-chart-box-right {
  margin-top: 14px;
  margin-bottom: 16px;
}

.s7-chart-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.s7-footnotes p {
  font-style: italic;
  font-weight: 400;
  color: #000;
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 4px;
}

.s7-footnotes p:last-child {
  margin-bottom: 0;
}

/* 100px Gap Below the First Left-Column Block inside the Continuous #E9F2FA Panel */
.s7-left-block-two {
  margin-top: 240px;
  width: 100%;
}

.s7-line-spaced {
  margin-bottom: 24px;
}

.s7-chart-box-renewable {
  width: 100%;
  margin-bottom: 20px;
}

/* 40px Gap Below the First Right-Column Chart Block */
.s7-right-block-production {
  margin-top: 40px;
  width: 100%;
}

.s7-line-production {
  margin-bottom: 20px;
}

.s7-chart-box-production {
  width: 100%;
  margin-bottom: 16px;
}

/* 40px Gap Below the Production Chart Block in Right Column */
.s7-right-block-investissements {
  margin-top: 40px;
  width: 100%;
}

.s7-line-investissements {
  margin-bottom: 20px;
}

.s7-chart-box-investissements {
  width: 100%;
  margin-bottom: 16px;
}

/* ==========================================================================
   Bottom Document Page 6 Reference
   ========================================================================== */
.doc-page-ref-six {
  margin-top: 40px;
  padding-bottom: 40px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.ref-six-left {
  display: flex;
  align-items: center;
}

.ref-six-num {
  font-weight: 700;
  color: #001A70;
  margin-right: 48px;
}

.ref-six-brand {
  font-weight: 700;
  color: #001A70;
  text-transform: uppercase;
}

.ref-six-divider {
  font-weight: 500;
  color: #FF5716;
  font-size: 1rem;
  margin: 0 10px;
}

.ref-six-title {
  font-weight: 400;
  color: #001A70;
}

.ref-six-url {
  font-weight: 700;
  color: #001A70;
}

/* Tablet & Mobile Responsive Layout */
@media (max-width: 768px) {
  .page-wrapper {
    padding: 16px 20px;
  }

  .top-row,
  .bottom-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .top-left {
    padding-top: 0;
  }

  .brand-logo {
    width: 140px;
  }

  .title-block {
    margin-top: 32px;
  }

  .bottom-row {
    margin-top: 28px;
    width: 100%;
    margin-left: 0;
  }

  .bottom-right {
    top: 0;
    align-self: stretch;
  }

  .raison-detre-text {
    max-width: none;
  }

  .sommaire-section {
    margin-top: 56px;
    padding-top: 0;
  }

  .sommaire-heading {
    margin-bottom: 24px;
  }

  .sommaire-grid {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .chapter-num {
    flex: 0 0 30px;
  }

  .sub-list {
    padding-left: 30px;
  }

  .rfa-footnote {
    margin-top: 28px;
    white-space: normal;
  }

  .page-section-three {
    margin-top: 56px;
    padding-bottom: 40px;
  }

  .page-section-four {
    margin-top: 72px;
  }

  .doc-page-ref {
    margin-top: 48px;
    padding-bottom: 24px;
    flex-wrap: wrap;
  }

  .ref-page-num {
    margin-left: 24px;
  }

  .full-width-banner {
    margin-top: 72px;
  }

  .chapter-one-section {
    margin-top: 56px;
    padding-bottom: 48px;
  }

  .ch1-header {
    margin-bottom: 36px;
  }

  .ch1-title {
    font-size: 26px;
    gap: 10px;
  }

  .ch1-grid {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .page-section-six {
    margin-top: 40px;
  }

  .s6-section-heading {
    margin-top: 32px;
    gap: 16px;
    padding-left: 4px;
    padding-bottom: 24px;
  }

  .s6-sec-num {
    font-size: 20px;
  }

  .s6-sec-title {
    font-size: 22px;
  }

  .s7-grid {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .s7-left-column {
    padding: 24px 20px;
  }

  .s7-right-column {
    padding-top: 0;
  }

  .s7-left-block-two {
    margin-top: 56px;
  }

  .s7-right-block-production {
    margin-top: 36px;
  }

  .s7-right-block-investissements {
    margin-top: 36px;
  }

  .doc-page-ref-six {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ref-six-num {
    margin-right: 24px;
  }
}