/* Notarisation Page Styles */

:root {
  --navy: #1a2a5e;
  --purple: #5b4fcf;
  --purple-hover: #7165d6;
  --amber: #c46c1a;
  --amber-hover: #d97b25;
  --white: #ffffff;
  --off-white: #f4f5fb;
  --gray-border: #dde1ef;
  --gray-text: #6b7280;
  --dark: #111827;
}

/* Hero Section */
.hero-notarisation {
  position: relative;
  height: 430px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-notarisation .hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?w=1400&q=80') center/cover no-repeat;
}

.hero-notarisation .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(26, 42, 94, 0.85) 0%,
    rgba(26, 42, 94, 0.4) 50%,
    transparent 100%);
}

.hero-notarisation .hero-content {
  position: relative;
  z-index: 2;
  padding: 0 3rem 3rem;
}

.hero-notarisation h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.hero-notarisation h1 span {
  display: block;
  color: #a8b8ff;
}

/* Intro Section */
.intro-section {
  padding: 2.5rem 2rem 3rem;
  background: var(--off-white);
}

.intro-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem 2.4rem;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 4px 22px rgba(26, 42, 94, 0.09);
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
}

.intro-icon {
  font-size: 2.6rem;
  flex-shrink: 0;
  line-height: 1;
}

.intro-body h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.intro-body p {
  font-size: 0.92rem;
  color: var(--gray-text);
  line-height: 1.75;
}

/* Section Heading */
.section-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  text-align: center;
  padding: 1rem 2rem;
  border-radius: 10px;
  max-width: 680px;
  margin: 0 auto 2rem;
}

/* Accordion Section */
.accordion-section {
  padding: 3.5rem 2rem;
  background: var(--white);
}

.accordion-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.acc-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26, 42, 94, 0.08);
}

.acc-header {
  background: var(--purple);
  color: var(--white);
  padding: 0.95rem 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
  gap: 1rem;
}

.acc-header:hover {
  background: var(--purple-hover);
}

.acc-header-text h3 {
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.3;
}

.acc-header-text .acc-sub {
  font-size: 0.8rem;
  opacity: 0.78;
  margin-top: 0.18rem;
}

.acc-toggle {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.32s;
}

.acc-toggle svg {
  width: 15px;
  height: 15px;
}

.acc-item.open .acc-toggle {
  transform: rotate(180deg);
}

.acc-body {
  background: var(--white);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease, padding 0.25s;
}

.acc-item.open .acc-body {
  max-height: 500px;
  padding: 1.2rem 1.4rem;
}

.acc-body .acc-strong {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.acc-body .examples-label {
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 0.8rem;
}

.acc-body ul {
  margin: 0.35rem 0 0 1.3rem;
}

.acc-body ul li {
  font-size: 0.88rem;
  color: var(--gray-text);
  margin-bottom: 0.2rem;
}

/* Steps Section */
.steps-section {
  background: var(--white);
  padding: 4rem 2rem;
}

.steps-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.steps-label {
  flex-shrink: 0;
  width: 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  padding-top: 0.5rem;
}

.steps-label svg {
  width: 68px;
  height: 68px;
}

.steps-label h2 {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.25;
}

.steps-flow {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto auto auto auto auto auto;
  gap: 1.5rem;
  align-items: start;
}

/* Positionnement des étapes en Z */
.sf-s1 { grid-column: 1; grid-row: 1; }
.sf-ah1 { grid-column: 2; grid-row: 1; align-self: center; }
.sf-s2 { grid-column: 3; grid-row: 1; }
.sf-av2 { grid-column: 3; grid-row: 2; justify-self: center; }
.sf-s3 { grid-column: 3; grid-row: 3; }
.sf-av3 { grid-column: 3; grid-row: 4; justify-self: center; }
.sf-s4 { grid-column: 3; grid-row: 5; }

.arrow-h, .arrow-v {
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-h svg {
  width: 100px;
  height: 20px;
}

.arrow-v svg {
  width: 20px;
  height: 60px;
}

.step-card {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 10px;
  overflow: hidden;
}

.step-card-header {
  background: var(--navy);
  color: var(--white);
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.step-card-body {
  padding: 0.9rem 1rem;
}

.step-card-body p {
  font-size: 0.84rem;
  color: var(--gray-text);
  line-height: 1.6;
  margin-bottom: 0.3rem;
}

.step-card-body ul {
  margin-left: 1.1rem;
}

.step-card-body ul li {
  font-size: 0.84rem;
  color: var(--gray-text);
  margin-bottom: 0.18rem;
}

.step-icons {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

/* Documents Section */
.docs-section {
  background: var(--off-white);
  padding: 3.5rem 2rem;
}

.docs-section .section-heading {
  max-width: 900px;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

.doc-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(26, 42, 94, 0.09);
  display: flex;
  flex-direction: column;
}

.doc-card-header {
  background: var(--purple);
  color: var(--white);
  padding: 0.85rem 1.1rem;
  font-size: 1rem;
  font-weight: 600;
}

.doc-card-body {
  padding: 0.9rem 1.1rem 1.1rem;
  background: rgb(255, 255, 255);
  flex: 1;
  flex-direction: column;
}

.doc-card-body p {
  font-size: 0.88rem;
  color: var(--gray-text);
  line-height: 1.65;
  flex: 1;
}

.doc-card-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
  transition: color 0.18s;
  align-self: flex-end;
}

.doc-card-link:hover {
  color: var(--navy);
  text-decoration: underline;
}

.cta-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.cta-btn {
  display: block;
  width: 100%;
  background: var(--amber);
  color: var(--white);
  text-align: center;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1.15rem 2rem;
  border-radius: 10px;
  transition: background 0.2s, transform 0.15s;
}

.cta-btn:hover {
  background: var(--amber-hover);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 820px) {
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .steps-container {
    flex-direction: column;
  }

  .steps-label {
    width: 100%;
    flex-direction: row;
    align-items: center;
  }

  .steps-flow {
    grid-template-columns: 1fr;
    grid-template-rows: unset;
  }

  .sf-s1, .sf-ah1, .sf-s2, .sf-av2, .sf-s3, .sf-av3, .sf-s4 {
    grid-column: 1;
    grid-row: unset;
  }

  .arrow-h, .arrow-v {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-notarisation .hero-content {
    padding: 0 1.5rem 2rem;
  }

  .intro-card {
    flex-direction: column;
  }
}
