/*
Theme Name: SmartDecida
Description: Styles du site SmartDecida.
Author: SmartDecida
Template: decida-corporate
Version: 0.6.0
Text Domain: decida-child
*/

:root {
  --decida-brand-blue: #0d6efd;
  --decida-brand-navy: #071326;
}

.main-nav {
  margin-left: auto;
}

.nav-menu-item--has-children {
  position: relative;
}

.nav-submenu summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--decida-slate);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}

.nav-submenu summary::-webkit-details-marker {
  display: none;
}

.nav-submenu summary::after {
  content: "\25BE";
  font-size: 10px;
  transition: transform 0.2s ease;
}

.nav-submenu[open] summary,
.nav-submenu summary:hover {
  color: var(--decida-blue);
  background: rgba(11, 45, 98, 0.08);
}

.nav-submenu[open] summary::after {
  transform: rotate(180deg);
}

.nav-submenu ul {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 45;
  min-width: 270px;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(7, 23, 47, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(7, 23, 47, 0.2);
  list-style: none;
}

.nav-submenu--right ul {
  right: 0;
  left: auto;
}

.page-content [id] {
  scroll-margin-top: 110px;
}

.page-content > ul > li[id] {
  margin-bottom: 14px;
  padding: 20px 22px;
  border: 1px solid rgba(7, 23, 47, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px rgba(7, 23, 47, 0.06);
}

.decida-product-page {
  display: grid;
  gap: 34px;
}

.decida-service-page {
  display: grid;
  gap: 28px;
}

.decida-service-intro,
.decida-service-cta {
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid rgba(13, 110, 253, 0.16);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(255, 255, 255, 0.96));
}

.decida-service-cta h2 {
  margin: 0 0 14px;
}

.decida-service-intro__lead {
  max-width: 880px;
  margin: 0;
  color: var(--decida-brand-navy);
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  font-weight: 750;
  line-height: 1.3;
}

.decida-service-intro > p:last-child,
.decida-service-cta p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--decida-slate);
  font-size: 1.08rem;
  line-height: 1.75;
}

.decida-service-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.decida-service-toc a {
  padding: 9px 14px;
  border: 1px solid rgba(13, 110, 253, 0.22);
  border-radius: 999px;
  background: #fff;
  color: var(--decida-brand-navy);
  font-weight: 700;
  text-decoration: none;
}

.decida-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.decida-service-card {
  min-height: 190px;
  padding: 28px;
  scroll-margin-top: 110px;
  border: 1px solid rgba(7, 19, 38, 0.1);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(7, 19, 38, 0.07);
}

.decida-service-card h3 {
  margin-top: 0;
}

.decida-service-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 760px) {
  .decida-service-grid {
    grid-template-columns: 1fr;
  }

  .decida-service-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

.decida-product-section {
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid rgba(7, 23, 47, 0.1);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 22px 65px rgba(7, 23, 47, 0.09);
}

.decida-product-section--hero {
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(50, 214, 255, 0.28), transparent 30%),
    linear-gradient(135deg, #06142b, #0b2d62);
}

.decida-product-section__eyebrow {
  margin: 0 0 10px;
  color: var(--decida-brand-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.decida-product-section--hero .decida-product-section__eyebrow {
  color: var(--decida-cyan);
}

.decida-product-section--hero h2 {
  color: #fff;
}

.decida-product-section h2 {
  margin-top: 0;
  font-size: clamp(28px, 4vw, 46px);
}

.decida-product-section--hero p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.82);
}

.decida-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.decida-product-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 19px;
  border: 1px solid rgba(13, 110, 253, 0.25);
  border-radius: 999px;
  color: var(--decida-brand-blue);
  background: #fff;
  font-weight: 800;
}

.decida-product-actions a:first-child {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--decida-blue), #0a5fca);
}

.decida-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.decida-product-card {
  padding: 22px;
  border: 1px solid rgba(7, 23, 47, 0.1);
  border-radius: 16px;
  background: #f7faff;
}

.decida-product-card h3 {
  margin: 0 0 10px;
  color: var(--decida-brand-navy);
}

.decida-product-card p,
.decida-product-card li {
  color: #516172;
  line-height: 1.65;
}

.decida-product-card ul {
  margin: 0;
  padding-left: 20px;
}

.decida-product-status {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #075b3a;
  background: #e4f8ef;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.decida-product-status--planned {
  color: #815600;
  background: #fff4d5;
}

.main-nav__list .nav-submenu ul a {
  width: 100%;
  border-radius: 10px;
  color: var(--decida-slate);
  background: transparent;
  box-shadow: none;
  white-space: nowrap;
}

.main-nav__list .nav-submenu ul a:hover {
  color: var(--decida-blue);
  background: rgba(11, 45, 98, 0.08);
}

.decida-contact-form {
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(7, 23, 47, 0.1);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(7, 23, 47, 0.09);
}

.decida-contact-form__field,
.decida-contact-form__actions,
.decida-contact-form__consent {
  display: grid;
  gap: 8px;
}

.decida-contact-form__field--wide,
.decida-contact-form__actions,
.decida-contact-form__consent,
.decida-contact-form__honeypot {
  grid-column: 1 / -1;
}

.decida-contact-form label {
  color: var(--decida-brand-navy);
  font-weight: 750;
}

.decida-contact-form input,
.decida-contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(7, 23, 47, 0.22);
  border-radius: 10px;
  color: var(--decida-brand-navy);
  background: #fff;
  font: inherit;
}

.decida-contact-form input:focus,
.decida-contact-form textarea:focus {
  outline: 3px solid rgba(13, 110, 253, 0.16);
  border-color: var(--decida-brand-blue);
}

.decida-contact-form__consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  color: #516172;
  font-size: 14px;
  line-height: 1.55;
}

.decida-contact-form__consent input {
  width: auto;
  margin-top: 4px;
}

.decida-contact-form__actions {
  justify-items: start;
}

.decida-contact-form__submit {
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--decida-blue), #0a5fca);
  box-shadow: 0 12px 28px rgba(11, 45, 98, 0.24);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.decida-contact-form__notice {
  max-width: 760px;
  margin: 28px 0 0;
  padding: 16px 18px;
  border-radius: 12px;
  font-weight: 700;
}

.decida-contact-form__notice--success {
  color: #075b3a;
  background: #e4f8ef;
}

.decida-contact-form__notice--error {
  color: #8a1c26;
  background: #fdecef;
}

.decida-contact-form__honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.language-switcher {
  position: relative;
  flex: 0 0 auto;
}

.language-switcher summary {
  min-width: 64px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(7, 23, 47, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--decida-brand-navy);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher summary::after {
  content: "▾";
  font-size: 10px;
  transition: transform 0.2s ease;
}

.language-switcher[open] summary::after {
  transform: rotate(180deg);
}

.language-switcher__flag {
  font-size: 19px;
  line-height: 1;
}

.language-switcher__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  min-width: 180px;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(7, 23, 47, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(7, 23, 47, 0.2);
  list-style: none;
}

.language-switcher__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--decida-slate);
  font-size: 14px;
  font-weight: 700;
}

.language-switcher__menu a:hover,
.language-switcher__menu a[aria-current="true"] {
  color: var(--decida-blue);
  background: rgba(11, 45, 98, 0.09);
}

.hero__project-thumbnail {
  display: block;
  position: relative;
  z-index: 1;
  width: min(82%, 460px);
  height: auto;
  margin-top: -54px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  box-shadow: 0 35px 110px rgba(0, 0, 0, 0.35);
  opacity: 0.94;
  transform: rotateX(8deg) rotateY(-12deg) translateX(34px);
  transform-origin: center center;
}

.hero__grid {
  min-height: 760px;
  grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
}

.hero__content h1 {
  font-size: clamp(42px, 5.3vw, 70px);
}

.hero__visual--ai {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  isolation: isolate;
}

.hero__ai-benefits {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hero__ai-benefits li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.45;
}

.hero__ai-benefits li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--decida-cyan);
}

.hero-ai-demo {
  position: relative;
  z-index: 2;
  width: min(100%, 570px);
  margin-left: auto;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(125, 223, 255, 0.34);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0, rgba(50, 214, 255, 0.2), transparent 35%),
    linear-gradient(145deg, rgba(5, 19, 40, 0.98), rgba(8, 38, 78, 0.94));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: rotateY(-4deg);
  backdrop-filter: blur(20px);
}

.hero-ai-demo::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -110px;
  bottom: -130px;
  border-radius: 50%;
  background: rgba(94, 240, 199, 0.2);
  filter: blur(30px);
  pointer-events: none;
}

.hero-ai-demo__header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-ai-demo__mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 15px;
  color: #041225;
  background: linear-gradient(135deg, var(--decida-cyan), var(--decida-mint));
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 10px 26px rgba(50, 214, 255, 0.26);
}

.hero-ai-demo__header div > strong,
.hero-ai-demo__header div > span {
  display: block;
}

.hero-ai-demo__header strong {
  color: #fff;
  font-size: 17px;
}

.hero-ai-demo__header div > span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.hero-ai-demo__header i {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--decida-mint);
  box-shadow: 0 0 12px var(--decida-mint);
}

.hero-ai-demo__label {
  margin: 22px 0 9px;
  color: var(--decida-cyan);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-ai-demo blockquote {
  margin: 0;
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px 16px 4px 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.45;
}

.hero-ai-demo__answer {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  margin-top: 14px;
  padding: 16px 17px;
  border: 1px solid rgba(50, 214, 255, 0.18);
  border-radius: 4px 16px 16px 16px;
  background: rgba(5, 16, 34, 0.58);
}

.hero-ai-demo__answer > span {
  color: var(--decida-mint);
  font-size: 19px;
}

.hero-ai-demo__answer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.55;
}

.hero-ai-demo__sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-ai-demo__sources span {
  padding: 6px 10px;
  border: 1px solid rgba(50, 214, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(50, 214, 255, 0.07);
  font-size: 11px;
  font-weight: 750;
}

.legal-language-notice {
  margin-bottom: 34px;
  padding: 22px 24px;
  border: 1px solid rgba(11, 45, 98, 0.18);
  border-left: 5px solid var(--decida-brand-blue);
  border-radius: 14px;
  background: #eef6ff;
}

.legal-language-notice strong {
  display: block;
  margin-bottom: 6px;
  color: var(--decida-brand-navy);
}

.legal-language-notice p {
  margin: 0;
}

.intro-services > p {
  margin-top: 0;
}

.intro-services__list {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.intro-services__list li {
  position: relative;
  padding: 17px 18px 17px 22px;
  border-left: 4px solid var(--decida-brand-blue);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 30px rgba(7, 23, 47, 0.06);
}

.intro-services__list strong,
.intro-services__list span {
  display: block;
}

.intro-services__list strong {
  margin-bottom: 5px;
  color: var(--decida-brand-navy);
  font-size: 17px;
}

.intro-services__list span {
  color: #516172;
  line-height: 1.6;
}

.cards--ai-services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card--ai {
  min-height: 0;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 64px minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: auto 1fr;
  gap: 8px 24px;
  border-color: rgba(13, 110, 253, 0.22);
  background:
    radial-gradient(circle at 100% 0, rgba(50, 214, 255, 0.14), transparent 30%),
    linear-gradient(135deg, #07172f, #0b2d62);
  box-shadow: 0 24px 70px rgba(7, 23, 47, 0.18);
}

.feature-card--ai .feature-card__icon {
  grid-row: 1 / 3;
  width: 58px;
  height: 58px;
  margin: 0;
  color: #041225;
  background: linear-gradient(135deg, var(--decida-cyan), var(--decida-mint));
}

.feature-card--ai h3 {
  align-self: end;
  color: #fff;
  font-size: 25px;
}

.feature-card--ai > p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.feature-card__proof {
  display: grid;
  grid-row: 1 / 3;
  grid-column: 3;
  align-content: center;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-card__proof li {
  position: relative;
  padding: 11px 14px 11px 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 750;
}

.feature-card__proof li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  color: var(--decida-mint);
  font-weight: 950;
}

.metric-panel div:first-child {
  border-color: rgba(50, 214, 255, 0.42);
  background: linear-gradient(145deg, rgba(50, 214, 255, 0.2), rgba(94, 240, 199, 0.1));
  box-shadow: 0 18px 48px rgba(50, 214, 255, 0.12);
}

@media (max-width: 1100px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__project-thumbnail {
    width: min(78%, 480px);
    transform: rotateX(4deg) rotateY(-6deg) translateX(20px);
  }

  .hero-ai-demo {
    width: min(100%, 680px);
    margin-inline: auto;
    transform: none;
  }

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

  .feature-card--ai {
    grid-template-columns: 56px 1fr;
  }

  .feature-card--ai .feature-card__icon {
    grid-row: 1 / 2;
  }

  .feature-card__proof {
    grid-row: 3;
    grid-column: 1 / -1;
    margin-top: 12px;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    margin-left: auto;
  }

  .main-nav {
    margin-left: 0;
  }

  .nav-submenu summary {
    width: 100%;
    justify-content: space-between;
  }

  .nav-submenu ul {
    position: static;
    min-width: 0;
    margin-top: 4px;
    padding: 4px 0 4px 16px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .decida-product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
	.decida-contact-form {
		grid-template-columns: 1fr;
	}
  .hero__content h1 {
    font-size: clamp(39px, 12vw, 54px);
  }

  .hero-ai-demo {
    padding: 18px;
    border-radius: 21px;
  }

  .hero-ai-demo blockquote {
    font-size: 15px;
  }

  .hero__project-thumbnail {
    width: 92%;
    margin-top: -28px;
    transform: rotateX(3deg) rotateY(-3deg);
  }

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

  .feature-card--ai {
    display: block;
  }

  .feature-card--ai .feature-card__icon {
    margin-bottom: 20px;
  }

  .feature-card__proof {
    margin-top: 20px;
  }

  .site-header__inner {
    gap: 10px;
  }

  .language-switcher summary {
    min-width: 52px;
    padding-inline: 8px;
  }

  .language-switcher__code {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
