/* i-Sms.Pro — modern layer on brand colors */
:root {
  --isms-green: #4dbb81;
  --isms-green-deep: #3dab71;
  --isms-green-hot: #5dcb91;
  --isms-forest: #246040;
  --isms-slate: #2f3d36;
  --isms-cyan: #52c3c9;
  --isms-cyan-hot: #6fd4d9;
  --isms-cyan-border: #3dab71;
  --isms-dark: #222222;
  --isms-muted: #5c6b7a;
  --isms-light: #eef8f2;
  --isms-mist: #d5ebe0;
  --isms-white: #ffffff;
  --isms-font: "Sora", "Segoe UI", sans-serif;
  --isms-display: "Orbitron", "Sora", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-family: var(--isms-font);
  color: var(--isms-slate);
  background: var(--isms-white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--isms-green);
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--isms-green-deep);
}

/* —— Nav —— */
.isms-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  background: transparent;
}

.isms-nav.is-scrolled,
.isms-nav.is-solid {
  background: rgba(34, 34, 34, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(36, 96, 64, 0.18);
}

.isms-brand {
  color: var(--isms-white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.isms-brand:hover {
  opacity: 0.92;
  text-decoration: none;
}

.isms-brand img {
  display: block;
}

.isms-nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
  padding: 0.35rem 0;
}

.isms-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--isms-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.isms-nav-link:hover,
.isms-nav-link:focus {
  color: var(--isms-white);
  text-decoration: none;
}

.isms-nav-link:hover::after,
.isms-nav-link:focus::after {
  transform: scaleX(1);
}

.isms-nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #7eebf0;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.isms-nav-phone:hover,
.isms-nav-phone:focus {
  color: #b7f7fa;
  text-decoration: none;
}

.isms-nav-phone .fa {
  color: #7eebf0;
  font-size: 1.1em;
}

.isms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--isms-font);
  font-weight: 600;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.isms-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.isms-btn-primary {
  background: var(--isms-green);
  color: var(--isms-white);
  border-color: var(--isms-green);
  padding: 0.95rem 1.75rem;
  box-shadow: 0 10px 28px rgba(77, 187, 129, 0.35);
}

.isms-btn-primary:hover,
.isms-btn-primary:focus {
  background: var(--isms-cyan);
  border-color: var(--isms-cyan);
  color: var(--isms-dark);
  box-shadow: 0 12px 30px rgba(82, 195, 201, 0.4);
}

.isms-btn-cyan {
  background: var(--isms-cyan);
  border-color: var(--isms-cyan-border);
  color: var(--isms-white);
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.isms-btn-cyan:hover,
.isms-btn-cyan:focus {
  background: var(--isms-cyan-hot);
  border-color: var(--isms-cyan-border);
  color: var(--isms-dark);
}

.isms-btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--isms-white);
  padding: 0.95rem 1.5rem;
}

.isms-btn-ghost:hover,
.isms-btn-ghost:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--isms-cyan);
  color: var(--isms-white);
}

/* —— Hero —— */
.isms-hero {
  position: relative;
  z-index: 2;
  min-height: clamp(22rem, 52vh, 34rem);
  display: flex;
  align-items: flex-start;
  color: var(--isms-white);
  background: #246040;
  overflow: visible;
}

.isms-hero::before,
.isms-hero::after {
  content: none;
}

.isms-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 6.5rem 1.25rem 0;
}

.isms-hero-title {
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  color: #52c3c9;
  margin: 0 0 0.85rem;
  max-width: 18ch;
  text-transform: uppercase;
  animation: isms-fade-up 0.8s ease both;
}

.isms-hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-style: italic;
  color: rgba(210, 235, 220, 0.95);
  margin: 0 0 1.5rem;
  max-width: 22ch;
  line-height: 1.35;
  animation: isms-fade-up 0.8s ease 0.1s both;
}

.isms-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: isms-fade-up 0.8s ease 0.2s both;
  margin-bottom: 2.5rem;
}

/* Montage straddles hero + Pourquoi, like the live site */
.isms-hero-visual {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
  margin-bottom: -5rem;
  pointer-events: none;
}

.isms-hero-visual img {
  width: auto;
  max-width: 100%;
  height: clamp(16rem, 48vw, 22rem);
  object-fit: contain;
  display: block;
  margin-inline: auto;
  position: relative;
  left: 10%;
}

@media (min-width: 768px) {
  .isms-hero-inner {
    padding-top: 7.5rem;
  }

  .isms-hero-visual {
    margin-top: 1.5rem;
    margin-bottom: -11rem;
    justify-content: flex-end;
  }

  .isms-hero-visual img {
    height: min(42rem, 62vh);
    max-width: none;
  }
}

@media (min-width: 1024px) {
  .isms-hero {
    min-height: 30rem;
  }

  .isms-hero-inner {
    padding-top: 8.5rem;
    padding-bottom: 0;
  }

  .isms-hero-visual {
    margin-top: 2.5rem;
    margin-bottom: -14rem;
    margin-right: -1rem;
  }

  .isms-hero-visual img {
    height: 44rem;
  }
}

.isms-page-hero {
  position: relative;
  padding: 8rem 1.25rem 3.5rem;
  color: var(--isms-white);
  background: linear-gradient(115deg, var(--isms-forest) 0%, #2f7a55 100%);
  overflow: hidden;
}

.isms-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 0%, rgba(82, 195, 201, 0.25), transparent 55%);
  pointer-events: none;
}

.isms-page-hero > * {
  position: relative;
  z-index: 1;
}

/* —— Sections —— */
.isms-section {
  padding: 4rem 0;
}

#pourquoi.isms-section {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
}

@media (min-width: 768px) {
  #pourquoi.isms-section {
    padding-top: 6.5rem;
  }

  #pourquoi .isms-heading,
  #pourquoi .isms-kicker {
    position: relative;
    z-index: 2;
  }
}

.isms-section-muted {
  background: var(--isms-light);
}

.isms-section-mist {
  background:
    linear-gradient(180deg, rgba(213, 235, 224, 0.55), rgba(238, 248, 242, 0.9)),
    var(--isms-mist);
}

.isms-section-trial {
  background: linear-gradient(160deg, var(--isms-green) 0%, var(--isms-green-deep) 55%, #2f7a55 100%);
  color: var(--isms-white);
}

.isms-section-trial .isms-heading {
  color: var(--isms-white);
}

.isms-section-trial .isms-kicker {
  color: rgba(255, 255, 255, 0.85);
}

.isms-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--isms-green);
  margin-bottom: 0.75rem;
}

.isms-heading {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 700;
  color: var(--isms-slate);
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  text-transform: none;
}

.isms-subheading {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--isms-muted);
  max-width: 46rem;
  margin: 0 auto 2.5rem;
}

.isms-feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--isms-green), var(--isms-green-deep));
  color: var(--isms-white);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  box-shadow: 0 12px 24px rgba(77, 187, 129, 0.28);
}

.isms-feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--isms-slate);
  margin: 0 0 0.5rem;
  text-transform: none;
}

.isms-feature-text {
  color: var(--isms-muted);
  line-height: 1.7;
  margin: 0;
  font-size: 0.98rem;
}

/* Contact */
.isms-contact {
  position: relative;
  background: linear-gradient(160deg, var(--isms-slate) 0%, #24352d 45%, #1a2520 100%);
  color: var(--isms-white);
}

.isms-contact .isms-heading {
  color: var(--isms-white);
}

.isms-contact .isms-subheading {
  color: rgba(255, 255, 255, 0.78);
}

.isms-contact .isms-kicker {
  color: var(--isms-cyan);
}

.isms-form-control {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--isms-white);
  border-radius: 0.65rem;
  padding: 0.95rem 1.05rem;
  font-size: 1rem;
  font-family: var(--isms-font);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.isms-form-control::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.isms-form-control:focus {
  outline: none;
  border-color: var(--isms-green);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(77, 187, 129, 0.25);
}

textarea.isms-form-control {
  min-height: 11.5rem;
  resize: vertical;
}

.isms-form-control-light {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.95);
  color: var(--isms-slate);
}

.isms-form-control-light::placeholder {
  color: rgba(47, 61, 54, 0.5);
}

.isms-form-control-light:focus {
  border-color: var(--isms-cyan);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(82, 195, 201, 0.3);
}

/* Footer */
.isms-footer {
  background: var(--isms-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 1.75rem;
}

.isms-footer-title {
  display: block;
  font-weight: 700;
  color: var(--isms-white);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.isms-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.isms-footer li + li {
  margin-top: 0.45rem;
}

.isms-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.95rem;
}

.isms-footer a:hover {
  color: var(--isms-cyan);
}

.isms-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
}

.isms-back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--isms-green);
  color: var(--isms-white);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  box-shadow: 0 10px 24px rgba(77, 187, 129, 0.35);
}

.isms-back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.isms-back-top:hover {
  background: var(--isms-cyan);
  color: var(--isms-dark);
}

/* Content pages */
.isms-prose {
  max-width: 48rem;
}

.isms-prose .h1,
.isms-prose .h3,
.isms-prose h1,
.isms-prose h2,
.isms-prose h3 {
  font-family: var(--isms-font);
  text-transform: none;
  color: var(--isms-slate);
  font-weight: 700;
}

.isms-prose .text-primary,
.isms-prose .section-heading.text-primary {
  color: var(--isms-green) !important;
}

.isms-prose p,
.isms-prose li {
  color: var(--isms-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.isms-prose .h3,
.isms-prose h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  color: var(--isms-green);
}

.isms-offer {
  border: 1px solid rgba(77, 187, 129, 0.25);
  background: linear-gradient(180deg, #fff, var(--isms-light));
  border-radius: 1rem;
  padding: 1.75rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.isms-offer:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(36, 96, 64, 0.12);
}

.isms-compare {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(47, 61, 54, 0.1);
  background: #fff;
}

.isms-compare .border.flexbox {
  display: flex;
  align-items: center;
  padding: 0.85rem 0.5rem;
  border: none !important;
  border-bottom: 1px solid rgba(47, 61, 54, 0.08) !important;
}

.isms-compare .lc,
.isms-compare .pr {
  font-weight: 700;
  color: var(--isms-slate);
}

.isms-support-os {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.isms-support-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: var(--isms-light);
  border: 1px solid rgba(77, 187, 129, 0.2);
}

/* Phone preview (essai SMS) */
.phone {
  border-radius: 20px;
  border-color: #333;
  border-width: 30px 8px;
  border-style: solid;
  background: #eee;
  min-height: 400px;
  width: 230px;
  margin-left: auto;
  margin-right: auto;
}

.phone-title {
  height: 46px;
  background: var(--isms-green);
  color: #fff;
  width: 100%;
  padding: 5px;
  font-size: 22px;
  text-align: center;
  font-weight: 600;
}

.phone-text {
  border-radius: 30px;
  border: 1px solid #222;
  margin: 25px;
  padding: 10px;
  background: #bbcdff;
  font-size: 18px;
  color: var(--isms-slate);
  text-align: left;
}

.phone .text-line {
  font-size: 0.75rem;
  color: #777;
  padding: 0.5rem 1rem 0;
}

/* Animations */
@keyframes isms-fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes isms-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes isms-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.isms-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.isms-reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .isms-hero-title,
  .isms-hero-lead,
  .isms-hero-actions,
  .isms-hero-visual,
  .isms-reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Compat with existing form validation bits */
#contactForm .help-block,
#testForm .help-block {
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

#contactForm .form-group,
#testForm .form-group {
  margin-bottom: 1rem;
}

.text-danger,
#contactForm .help-block.text-danger,
#testForm .help-block.text-danger {
  color: #e74c3c;
}

#contactForm .has-error .isms-form-control,
#contactForm .has-error .form-control,
#testForm .has-error .isms-form-control,
#testForm .has-error .form-control {
  border-color: #e74c3c;
}

#success .alert,
#success2 .alert {
  border-radius: 0.65rem;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

#success .alert-success,
#success2 .alert-success {
  background: rgba(0, 150, 136, 0.2);
  border: 1px solid rgba(0, 150, 136, 0.45);
  color: #b8fff5;
}

#success .alert-danger,
#success2 .alert-danger {
  background: rgba(231, 76, 60, 0.18);
  border: 1px solid rgba(231, 76, 60, 0.4);
  color: #ffc9c3;
}

#register-popup-background {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#register-popup-content {
  position: relative;
  max-width: 32rem;
  width: 100%;
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  color: var(--isms-slate);
}

#register-popup-close {
  position: absolute;
  right: 1rem;
  top: 0.75rem;
  cursor: pointer;
  font-size: 1.25rem;
}

/* Mobile nav panel */
.isms-mobile-panel {
  display: none;
}

.isms-mobile-panel.is-open {
  display: block;
}

@media (min-width: 992px) {
  .isms-mobile-panel {
    display: none !important;
  }
}
