/* ============================================
   IMPORTS
============================================ */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');


/* ============================================
   RESET & BASE
============================================ */
* {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  text-align: left;
  background: #ffffff;
  color: #1a1a1a;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  font-size: 16px;
}

main {
  padding-top: 70px;
}


/* ============================================
   TYPOGRAPHY
============================================ */
h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.3;
  color: #0a0a0a;
  letter-spacing: -0.005em;
}

h1 {
  font-size: 1.9rem;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.35rem;
  margin-bottom: 18px;
}

h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

p {
  font-size: 0.98rem;
  color: #333;
  margin-bottom: 14px;
}

strong {
  font-weight: 600;
  color: #0a0a0a;
}

.strongly {
  color: #0066ff;
}

a {
  color: #0066ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #0050cc;
}


/* ============================================
   LAYOUT : sections + containers
============================================ */
section {
  width: 100%;
  padding: 80px 24px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.7s ease;
}

section.revealed {
  opacity: 1;
  transform: translateY(0);
}

.inner,
.hero-inner,
.inner-narrow {
  max-width: 640px;
  margin: 0 auto;
}

.sec2 {
  background-color: #fafafc;
}


/* ============================================
   HEADER
============================================ */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  border-bottom: 1px solid #eaeaea;
  z-index: 999;
}

.header-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.logo-martinez {
  font-weight: 200;
  color: #1a1a1a;
  font-size: 1.5rem;
}

.logo-clarity {
  font-weight: 500;
  color: #0066ff;
  font-size: 1.5rem;
}

.header-right {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-right a {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 400;
  font-size: 0.95rem;
  transition: color 0.2s;
  white-space: nowrap;
}

.header-right a:hover {
  color: #edf3fd;
}


/* ============================================
   HERO
============================================ */
.hero {
  padding: 120px 24px 80px;
}

.hero-sub {
  font-size: 1rem;
  color: #555;
  margin-bottom: 28px;
}

.hero-scarcity {
  margin-top: 24px;
  font-size: 0.85rem;
  color: #888;
}


/* ============================================
   BUTTONS
============================================ */
.bimportant,
.bsecondaire,
.call-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.bimportant {
  background-color: #0066ff;
  color: white;
  border: none;
}

.bimportant:hover {
  background-color: #0050cc;
  color: white;
}

.bsecondaire {
  border: solid 1px #0066ff;
  background: transparent;
  color: #0066ff;
}

.bsecondaire:hover {
  background-color: #0066ff10;
  color: #0066ff;
}

.call-btn {
  padding: 8px 16px;
  background: #0066ff;
  color: white;
  font-size: 0.9rem;
}

.call-btn:hover {
  background: #0050cc;
  color: white;
}

.header-right .call-btn {
  color: white;
}

button {
  width: fit-content;
  background-color: #0066ff;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 12px;
  font-family: inherit;
}

button:hover {
  background-color: #0050cc;
}


/* ============================================
   FLEX HELPERS
============================================ */
.divflex {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.secflex {
  display: flex;
  flex-direction: row;
  gap: 40px;
  flex-wrap: wrap;
}


/* ============================================
   LISTS : numbered (axes, steps) + plain
============================================ */
.axes-list,
.steps-list {
  list-style: none;
  counter-reset: item;
  margin-top: 32px;
  padding-left: 0;
}

.axes-list li,
.steps-list li {
  counter-increment: item;
  position: relative;
  padding-left: 48px;
  margin-bottom: 28px;
  font-size: 0.98rem;
  color: #333;
}

.axes-list li::before,
.steps-list li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: #0066ff;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

.axes-list li strong,
.steps-list li strong {
  display: block;
  color: #0a0a0a;
  margin-bottom: 4px;
}

.fit-label {
  font-weight: 500;
  color: #0a0a0a;
  margin-top: 28px;
  margin-bottom: 12px;
}

.fit-label:first-of-type {
  margin-top: 24px;
}

.plain-list {
  list-style: none;
  padding-left: 0;
}

.plain-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: #444;
  font-size: 0.95rem;
}

.plain-list li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: #999;
  font-weight: 700;
}


/* ============================================
   RTA SECTION : cube bleu décalé (gardé tel quel)
============================================ */
#rta {
  margin: 100px 0px;
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: transparent;
  padding: 80px 24px;
}

#rta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1300px;
  height: 100%;
  background: #0066ff;
  border-radius: 0 40px 40px 0;
  z-index: 1;
}

.inner-rta {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  padding: 40px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  background-color: white;
  box-shadow: 8px 8px 18px -2px rgba(0,0,0,0.2);
  border-radius: 24px;
}

.rta-col {
  flex: 1;
}

.rta-col h2 {
  margin-bottom: 16px;
}


/* ============================================
   FORM
============================================ */
#form {
  background: #fafafc;
}

.inner-form {
  max-width: 500px;
  margin: 0 auto;
}

#form h2 {
  margin-bottom: 8px;
}

.form-sub {
  color: #666;
  font-size: 0.92rem;
  margin-bottom: 28px;
}

form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  gap: 4px;
}

label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 14px;
  margin-bottom: 4px;
  color: #333;
}

input,
select,
textarea {
  padding: 12px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
  background: white;
  color: #1a1a1a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

::placeholder {
  font-size: 0.88rem;
  color: #aaa;
}

.form-legal {
  font-size: 0.8rem;
  color: #888;
  margin-top: 16px;
}


/* ============================================
   FAQ
============================================ */
.faq-section {
  background-color: white;
  padding: 80px 24px;
  border-radius: 32px;
  margin: 40px 20px;
}

.faq-section h2 {
  margin-bottom: 40px;
  text-align: center;
}

.faq-container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #0066ff;
}

.faq-icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  color: #888;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.93rem;
  color: #555;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 240px;
  margin-bottom: 20px;
}

.faq-answer p {
  margin: 0;
  padding-bottom: 8px;
}


/* ============================================
   ABOUT
============================================ */
.about {
  background: #fafafc;
}

.inner-about {
  max-width: 760px;
  margin: 0 auto;
}

.about-header {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 56px;
}

.about-text-intro p {
  margin-bottom: 16px;
}

.about-portrait img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
}

.about-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: #0a0a0a;
  margin-bottom: 36px;
  padding-top: 16px;
  border-top: 1px solid #e6e6e6;
}

.about-block {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}

.about-block.reverse {
  grid-template-columns: 1.6fr 1fr;
}

.about-block.reverse .about-block-img {
  order: 2;
}

.about-block.reverse .about-block-text {
  order: 1;
}

.about-block-img img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.img-caption {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #999;
  font-style: italic;
}

.about-block-text h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.about-close {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e6e6e6;
  font-size: 0.95rem;
  color: #444;
}

.about-sign {
  margin-top: 8px;
  font-weight: 500;
  color: #0a0a0a;
}


/* ============================================
   FOOTER
============================================ */
footer {
  background: #f5f5f5;
  padding: 56px 24px 24px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}

.footer-left p {
  margin-bottom: 4px;
  color: #666;
  font-size: 0.9rem;
}

.footer-right {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col h4 {
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-col a:hover {
  text-decoration: underline;
  color: #0066ff;
}

.divitalic {
  max-width: 1100px;
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
  font-style: italic;
  font-size: 0.78rem;
  color: #888;
  line-height: 1.6;
}


/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1300px) {
  #rta::before {
    width: 100%;
    border-radius: 0 40px 40px 0;
  }
}

@media (max-width: 900px) {
  .about-header {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-portrait {
    max-width: 320px;
  }
  .about-block,
  .about-block.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-block.reverse .about-block-img,
  .about-block.reverse .about-block-text {
    order: initial;
  }
  .about-block-img {
    max-width: 480px;
    margin: 0 auto;
  }
  .footer-container {
    flex-direction: column;
    gap: 32px;
  }
  .footer-right {
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .main-header {
    padding: 0 16px;
  }
  .logo-martinez {
    display: none;
  }
  .logo-clarity {
    font-size: 0;
  }
  .logo-clarity::before {
    content: "C";
    font-size: 28px;
    font-weight: 600;
    color: #0066ff;
  }
  .header-right {
    gap: 12px;
  }
  .header-right a:not(.call-btn) {
    font-size: 0.9rem;
  }
  .call-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  .divflex {
    gap: 12px;
    flex-direction: column;
    width: 100%;
  }
  .bimportant,
  .bsecondaire {
    width: 100%;
    text-align: center;
  }
  section {
    padding: 56px 16px;
  }
  .hero {
    padding: 100px 16px 50px;
  }
  .inner-rta {
    flex-direction: column;
    padding: 24px;
    gap: 24px;
  }
  .footer-right {
    flex-direction: column;
    gap: 24px;
  }
  form {
    max-width: 100%;
  }
  .axes-list li,
  .steps-list li {
    padding-left: 40px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  .header-right {
    gap: 8px;
  }
  .call-btn {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
  .inner-rta {
    padding: 20px;
  }
  .footer-col h4 {
    font-size: 0.95rem;
  }
}

@media (max-width: 900px) {
  .inner-rta {
    flex-direction: column;
  }
}