/* =========================================================
   PLUMENOVA — STYLE PRINCIPAL
   Jérôme Tarnok
   Version avec plume sous le texte + effet trompe-l'œil
   ========================================================= */

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

:root {
  --bg: #080a0f;
  --bg-soft: #0c1016;
  --card: #111720;
  --card-2: #151c26;

  --text: #f7f4ed;
  --muted: #a7adb8;

  --gold: #d4af37;
  --gold-dark: #a67816;
  --gold-light: #f4d879;
  --gold-soft: #ffd978;

  --border: rgba(212, 175, 55, 0.24);
  --white-border: rgba(255, 255, 255, 0.08);

  --radius: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 80% 10%,
      rgba(212, 175, 55, 0.08),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      #080a0f 0%,
      #0a0d13 100%
    );

  color: var(--text);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.wrap {
  width: min(
    1180px,
    calc(100% - 40px)
  );

  margin-inline: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  background:
    rgba(8, 10, 15, 0.92);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-bottom:
    1px solid var(--white-border);
}

.nav {
  min-height: 72px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;

  flex-wrap: wrap;
}

.spark {
  color: var(--gold-light);
  font-size: 24px;
}

.brand-main {
  color: #fff;

  font-weight: 900;
  letter-spacing: 0.14em;
}

.brand-sub {
  color: var(--muted);

  font-size: 12px;
}

#menu {
  display: flex;
  align-items: center;

  gap: 20px;
}

#menu a {
  color: #d9dce2;

  font-size: 14px;

  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

#menu a:hover {
  color: var(--gold-light);
}

.menu-btn {
  display: none;

  border:
    1px solid var(--border);

  background: var(--card);

  color: var(--gold-light);

  border-radius: 12px;

  padding: 9px 13px;

  cursor: pointer;
}


/* =========================================================
   BASE SECTIONS
   ========================================================= */

section {
  padding: 90px 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
}

h2 {
  font-size:
    clamp(30px, 5vw, 48px);

  margin-bottom: 18px;
}

p {
  color: var(--muted);
}

.eyebrow,
.kicker,
.section-title {
  display: inline-block;

  color: var(--gold-light);

  font-size: 12px;
  font-weight: 800;

  letter-spacing: 0.18em;
  text-transform: uppercase;

  margin-bottom: 18px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;

  min-height:
    calc(100vh - 72px);

  display: flex;
  align-items: center;

  overflow: hidden;

  isolation: isolate;
}


/* Fond principal du hero */

.hero::before {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 0;

  background:
    radial-gradient(
      circle at 68% 48%,
      rgba(212, 175, 55, 0.07),
      transparent 24%
    ),
    linear-gradient(
      90deg,
      rgba(8, 10, 15, 1) 0%,
      rgba(8, 10, 15, 0.98) 45%,
      rgba(8, 10, 15, 0.82) 72%,
      rgba(8, 10, 15, 0.62) 100%
    );
}


/* Plume placée SOUS le texte */

.hero::after {
  content: "";

  position: absolute;

  width:
    min(56vw, 760px);

  aspect-ratio: 1 / 1;

  left: 43%;
  top: 50%;

  transform:
    translate(-12%, -46%)
    rotate(-9deg);

  background:
    url("./assets/plume-doree.png")
    center / contain
    no-repeat;

  z-index: 1;

  opacity: 0.95;

  filter:
    drop-shadow(
      0 0 18px
      rgba(212, 175, 55, 0.34)
    )
    drop-shadow(
      0 0 46px
      rgba(212, 175, 55, 0.15)
    );

  pointer-events: none;
}


/* halo de lumière sous le texte */

.hero .wrap::before {
  content: "";

  position: absolute;

  width: 520px;
  height: 260px;

  left: 40%;
  top: 47%;

  transform:
    translate(-4%, -50%)
    rotate(-10deg);

  background:
    radial-gradient(
      ellipse at center,
      rgba(255, 222, 125, 0.22) 0%,
      rgba(212, 175, 55, 0.13) 28%,
      rgba(212, 175, 55, 0.05) 48%,
      transparent 72%
    );

  filter: blur(22px);

  z-index: 2;

  pointer-events: none;
}


/* couche de lumière fine pour donner l'illusion
   que la plume passe derrière le texte */

.hero .wrap::after {
  content: "";

  position: absolute;

  width: 300px;
  height: 500px;

  left: 55%;
  top: 48%;

  transform:
    translate(-50%, -50%)
    rotate(-9deg);

  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 225, 140, 0.05) 20%,
      rgba(255, 225, 140, 0.18) 50%,
      rgba(255, 225, 140, 0.05) 80%,
      transparent 100%
    );

  filter: blur(18px);

  z-index: 3;

  pointer-events: none;
}


/* contenu hero au-dessus de la plume */

.hero .wrap {
  position: relative;

  z-index: 4;
}

.hero-content {
  position: relative;

  max-width: 780px;

  z-index: 5;
}

.hero h1 {
  position: relative;

  max-width: 880px;

  font-size:
    clamp(44px, 7vw, 80px);

  letter-spacing:
    -0.045em;

  margin-bottom: 24px;

  color: var(--text);

  text-wrap: balance;
}


/* changement subtil de couleur localisé sur le titre */

.hero h1::after {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 2;

  background:
    linear-gradient(
      103deg,
      transparent 0%,
      transparent 37%,
      rgba(255, 224, 133, 0.05) 43%,
      rgba(255, 230, 155, 0.22) 50%,
      rgba(255, 208, 93, 0.18) 57%,
      transparent 66%,
      transparent 100%
    );

  mix-blend-mode: screen;

  pointer-events: none;
}


/* texte reste visible au-dessus de l'effet */

.hero h1 > * {
  position: relative;
  z-index: 3;
}

.hero h1 em {
  color: var(--gold-light);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-weight: 400;

  text-shadow:
    0 0 18px
    rgba(212, 175, 55, 0.12);
}


.hero p {
  position: relative;

  max-width: 690px;

  font-size:
    clamp(17px, 2vw, 21px);

  z-index: 6;

  text-shadow:
    0 2px 12px
    rgba(0, 0, 0, 0.72);
}


/* boutons */

.hero-actions {
  position: relative;

  display: flex;
  flex-wrap: wrap;

  gap: 12px;

  margin-top: 30px;

  z-index: 6;
}

.btn,
.cta,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;

  padding:
    12px 21px;

  border-radius: 12px;

  border:
    1px solid var(--gold);

  background:
    linear-gradient(
      135deg,
      #f6dc79,
      #c89b26
    );

  color: #080a0f;

  font-weight: 800;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.btn:hover,
.cta:hover,
button[type="submit"]:hover {
  transform:
    translateY(-2px);

  box-shadow:
    0 10px 30px
    rgba(212, 175, 55, 0.20);

  filter:
    brightness(1.04);
}

.btn.secondary,
.btn-ghost {
  background:
    rgba(255, 255, 255, 0.03);

  color: var(--text);

  border-color:
    var(--white-border);
}


/* =========================================================
   BADGES / ARGUMENTS
   ========================================================= */

.hero-badges,
.hero-points,
.trust,
.benefits {
  position: relative;

  z-index: 6;

  display: flex;
  flex-wrap: wrap;

  gap: 10px;

  margin-top: 18px;
}

.hero-badges > *,
.hero-points > *,
.trust > *,
.benefits > * {
  border:
    1px solid
    rgba(255, 255, 255, 0.10);

  background:
    rgba(8, 10, 15, 0.62);

  border-radius: 999px;

  padding:
    7px 12px;

  color:
    #d8dbe1;

  backdrop-filter:
    blur(6px);
}


/* =========================================================
   GRILLES / CARTES
   ========================================================= */

.grid,
.cards {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 18px;

  margin-top: 34px;
}

.card {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.015)
    );

  border:
    1px solid
    var(--white-border);

  border-radius:
    var(--radius);

  padding: 26px;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.card:hover {
  transform:
    translateY(-5px);

  border-color:
    var(--border);

  box-shadow:
    0 18px 50px
    rgba(0, 0, 0, 0.20);
}

.card h3 {
  color: #fff;

  margin-bottom: 12px;

  font-size: 21px;
}

.card p {
  font-size: 15px;
}


/* =========================================================
   PRICING
   ========================================================= */

.price,
.pricing {
  color:
    var(--gold-light);

  font-size: 38px;

  font-weight: 900;

  margin:
    16px 0;
}

.featured,
.popular {
  border-color:
    rgba(212, 175, 55, 0.55);

  box-shadow:
    0 20px 60px
    rgba(212, 175, 55, 0.08);
}


/* =========================================================
   FORMULAIRES
   ========================================================= */

form {
  max-width: 760px;

  margin-top: 30px;
}

input,
select,
textarea {
  width: 100%;

  color: #fff;

  background:
    #0c1118;

  border:
    1px solid
    var(--white-border);

  border-radius: 12px;

  padding:
    14px 15px;

  outline: none;

  margin-bottom: 12px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

textarea {
  min-height: 150px;

  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color:
    var(--gold);

  box-shadow:
    0 0 0 3px
    rgba(212, 175, 55, 0.08);
}


/* =========================================================
   NOVA IA
   ========================================================= */

#agent {
  position: relative;
}

#agent .card,
.agent-box,
.chat-box {
  border-color:
    var(--border);
}

.nova-messages {
  display: flex;
  flex-direction: column;

  gap: 12px;

  margin-top: 20px;
  margin-bottom: 18px;

  max-height: 430px;

  overflow-y: auto;
}

.nova-message {
  max-width:
    min(90%, 720px);

  padding:
    13px 16px;

  border-radius: 16px;

  line-height: 1.55;
}

.nova-message.bot {
  align-self: flex-start;

  background:
    rgba(255, 255, 255, 0.04);

  border:
    1px solid
    var(--white-border);

  color:
    var(--text);
}

.nova-message.user {
  align-self: flex-end;

  background:
    linear-gradient(
      135deg,
      rgba(244, 216, 121, 0.92),
      rgba(198, 149, 33, 0.92)
    );

  color:
    #080a0f;

  font-weight: 700;
}

.nova-form {
  display: grid;

  grid-template-columns:
    1fr auto;

  gap: 12px;

  align-items: center;

  margin-top: 18px;
}

.nova-form input {
  margin-bottom: 0;
}


/* =========================================================
   FAQ
   ========================================================= */

.faq article {
  border-bottom:
    1px solid
    var(--white-border);
}

.faq button {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding:
    18px 0;

  border: 0;

  background: transparent;

  color: var(--text);

  text-align: left;

  cursor: pointer;
}

.faq article > div,
.faq article > p {
  display: none;

  padding-bottom: 18px;
}

.faq article.open > div,
.faq article.open > p {
  display: block;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  border-top:
    1px solid
    var(--white-border);

  padding:
    28px 0;

  color:
    var(--muted);

  font-size: 13px;
}

.footer {
  display: grid;

  grid-template-columns:
    1fr auto;

  align-items: center;

  gap: 20px;
}


/* =========================================================
   RESPONSIVE TABLETTE
   ========================================================= */

@media (max-width: 900px) {

  .grid,
  .cards {
    grid-template-columns:
      repeat(2, 1fr);
  }


  .menu-btn {
    display: block;
  }


  #menu {
    position: absolute;

    top: 72px;
    left: 20px;
    right: 20px;

    display: none;

    flex-direction: column;
    align-items: stretch;

    gap: 0;

    padding: 10px;

    background:
      #0d1219;

    border:
      1px solid
      var(--white-border);

    border-radius: 16px;
  }


  #menu.open {
    display: flex;
  }


  #menu a {
    padding: 12px;
  }


  /* repositionnement plume tablette */

  .hero::after {
    width: 680px;

    left: 38%;
    top: 56%;

    transform:
      translate(-12%, -44%)
      rotate(-8deg);

    opacity: 0.88;
  }


  .hero .wrap::before {
    left: 35%;
    top: 54%;
  }


  .hero .wrap::after {
    left: 53%;
    top: 52%;
  }

}


/* =========================================================
   RESPONSIVE MOBILE
   ========================================================= */

@media (max-width: 650px) {

  .wrap {
    width:
      min(
        100% - 28px,
        1180px
      );
  }


  section {
    padding:
      68px 0;
  }


  .brand-sub {
    display: none;
  }


  .grid,
  .cards {
    grid-template-columns:
      1fr;
  }


  .hero {
    min-height:
      900px;

    align-items:
      flex-start;

    padding-top:
      64px;
  }


  /* plume directement sous le titre sur mobile */

  .hero::after {
    width:
      500px;

    left:
      18%;

    top:
      50%;

    transform:
      translate(-4%, -34%)
      rotate(-11deg);

    opacity:
      0.90;

    filter:
      drop-shadow(
        0 0 14px
        rgba(212, 175, 55, 0.26)
      )
      drop-shadow(
        0 0 34px
        rgba(212, 175, 55, 0.12)
      );
  }


  /* halo doré sous les mots */

  .hero .wrap::before {
    width:
      390px;

    height:
      210px;

    left:
      20%;

    top:
      47%;

    transform:
      translate(0, -10%)
      rotate(-12deg);

    filter:
      blur(17px);
  }


  /* faisceau local de lumière */

  .hero .wrap::after {
    width:
      180px;

    height:
      390px;

    left:
      53%;

    top:
      45%;

    transform:
      translate(-50%, -22%)
      rotate(-11deg);

    filter:
      blur(14px);
  }


  .hero-content {
    max-width: 100%;
  }


  .hero h1 {
    font-size:
      clamp(
        40px,
        12vw,
        58px
      );

    max-width:
      100%;

    text-shadow:
      0 2px 16px
      rgba(0, 0, 0, 0.65);
  }


  .hero h1::after {
    background:
      linear-gradient(
        108deg,
        transparent 0%,
        transparent 28%,
        rgba(255, 224, 135, 0.08) 38%,
        rgba(255, 231, 155, 0.26) 48%,
        rgba(255, 207, 96, 0.18) 57%,
        transparent 68%,
        transparent 100%
      );
  }


  .hero p {
    font-size:
      17px;

    text-shadow:
      0 2px 14px
      rgba(0, 0, 0, 0.82);
  }


  .hero-actions {
    flex-direction:
      column;
  }


  .hero-actions a,
  .hero-actions button {
    width: 100%;
  }


  .hero-badges,
  .hero-points,
  .trust,
  .benefits {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 8px;
  }


  .hero-badges > *,
  .hero-points > *,
  .trust > *,
  .benefits > * {
    text-align: center;

    padding:
      8px 10px;
  }


  .nova-form {
    grid-template-columns:
      1fr;
  }


  .nova-form button {
    width: 100%;
  }


  .footer {
    grid-template-columns:
      1fr;

    gap: 4px;
  }

}


/* =========================================================
   PETITS MOBILES
   ========================================================= */

@media (max-width: 420px) {

  .hero {
    min-height:
      940px;
  }


  .hero::after {
    width:
      430px;

    left:
      10%;

    top:
      50%;
  }


  .hero h1 {
    font-size:
      clamp(
        38px,
        11.5vw,
        52px
      );
  }


  .hero-badges,
  .hero-points,
  .trust,
  .benefits {
    grid-template-columns:
      1fr;
  }

}
