/* styles.css – PGT IT Brokers landing page */

/* ------------------ */
/* Variables & base   */
/* ------------------ */

:root {
  --color-primary: #0ea5e9;
  --color-primary-dark: #0284c7;
  --color-accent: #22c55e;
  --color-bg: #f3f4f6;
  --color-bg-muted: #e5e7eb;
  --color-surface: #ffffff;
  --color-border: #e5e7eb;
  --color-text: #0f172a;
  --color-text-muted: #6b7280;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --max-width: 1200px;
}

html,
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background-color: #ffffff;
}

/* ------------------ */
/* Layout helpers     */
/* ------------------ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-muted {
  background-color: var(--color-bg);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 2.3vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

/* ------------------ */
/* Buttons            */
/* ------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: all 0.18s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.5);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  background-color: transparent;
}

.btn-outline:hover {
  background-color: rgba(15, 23, 42, 0.12);
}

.btn-ghost {
  border-color: rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
  background-color: rgba(15, 23, 42, 0.35);
}

.btn-ghost:hover {
  background-color: rgba(15, 23, 42, 0.55);
}

.btn-small {
  padding-block: 0.45rem;
  padding-inline: 1rem;
  font-size: 0.85rem;
}

/* ------------------ */
/* Hero               */
/* ------------------ */

.hero {
  position: relative;
  color: #fff;
  min-height: 80vh;
  background-image:
    linear-gradient(120deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4)),
    url("eco-tech-OzPYcGoa.jpg");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.3), transparent 50%),
              radial-gradient(circle at 90% 100%, rgba(74, 222, 128, 0.35), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 4.5rem;
  display: flex;
  flex-direction: column;
  min-height: 80vh;
}

/* Navbar */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.navbar-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
}

.navbar-logo img {
  height: 32px;
  width: auto;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.navbar-links a {
  color: #e5e7eb;
  position: relative;
}

.navbar-links a:hover::after {
  width: 100%;
}

/* Burger */

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 0.22rem;
  padding: 0.3rem;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.4);
}

.navbar-toggle span {
  width: 18px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
}

/* Hero content */

.hero-content {
  max-width: 650px;
  margin-top: auto;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.hero-subtitle {
  color: #a5f3fc;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.hero-text {
  font-size: 0.98rem;
  color: #e5e7eb;
  max-width: 480px;
  margin-bottom: 1.35rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.3rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-badges span {
  font-size: 0.75rem;
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.8rem;
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: #e5e7eb;
}

/* ------------------ */
/* Cards              */
/* ------------------ */

.cards-grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-soft {
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.03);
}

.card-image img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.card-body {
  padding: 1.4rem 1.4rem 1.3rem;
}

.card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.card-body p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.card-list {
  padding-left: 1rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.card-list li {
  list-style: disc;
  margin-bottom: 0.25rem;
}

/* Engagements */

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 18px;
  background-color: rgba(14, 165, 233, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  font-size: 1.25rem;
}

.card.card-soft {
  padding: 1.3rem 1.25rem;
}

.card.card-soft h3,
.card.card-soft h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.card.card-soft p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* Certifications */

.certifications {
  margin-top: 2.5rem;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-lg);
  background-color: rgba(15, 23, 42, 0.02);
  border: 1px dashed rgba(148, 163, 184, 0.6);
  text-align: center;
}

.certifications-label {
  font-weight: 600;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.certifications-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.certifications-badges span {
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.75rem;
  background-color: #fff;
}

/* ------------------ */
/* About              */
/* ------------------ */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.8rem;
  margin-bottom: 2.5rem;
}

.about-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.6rem 1.4rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.about-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
}

/* Values */

.values-block h3 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.values-grid .card {
  box-shadow: none;
  border-radius: var(--radius-md);
}

/* ------------------ */
/* Testimonials       */
/* ------------------ */

.testimonial-card {
  padding: 1.6rem 1.5rem 1.4rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  position: relative;
}

.testimonial-text::before {
  content: "“";
  font-size: 2.4rem;
  line-height: 0;
  color: var(--color-primary);
  position: absolute;
  left: -0.3rem;
  top: -0.3rem;
  opacity: 0.3;
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-meta {
  font-size: 0.84rem;
  color: var(--color-text-muted);
}

/* ------------------ */
/* FAQ                */
/* ------------------ */

.faq {
  max-width: 780px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.9rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-question span:first-child {
  font-size: 0.95rem;
  font-weight: 500;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out, padding 0.2s ease-out;
  padding: 0 1.3rem;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding-bottom: 0.9rem;
}

/* Open state */

.faq-item.open .faq-answer {
  padding-top: 0.1rem;
  max-height: 200px;
}

.faq-item.open .faq-icon {
  background-color: var(--color-primary);
  color: #fff;
}

/* ------------------ */
/* Contact            */
/* ------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
}

.contact-form-wrapper,
.contact-info {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem 1.4rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.contact-form-wrapper h3,
.contact-info h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  border-radius: 10px;
  border: 1px solid var(--color-border);
  padding: 0.55rem 0.65rem;
  font-size: 0.9rem;
  background-color: #f9fafb;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out, background-color 0.15s ease-out;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.45);
  background-color: #fff;
}

.form-submit {
  margin-top: 0.3rem;
}

.form-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.4rem;
}

.form-status {
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

/* Contact info */

.info-block + .info-block {
  margin-top: 0.7rem;
}

.info-block h4 {
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.info-block p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.info-block a {
  color: var(--color-primary-dark);
}

/* ------------------ */
/* Footer             */
/* ------------------ */

.footer {
  background-color: #020617;
  color: #e5e7eb;
  padding-top: 2.8rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  padding-bottom: 2.2rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.footer-logo img {
  height: 26px;
  width: auto;
}

.footer-text {
  font-size: 0.85rem;
  color: #9ca3af;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-col ul li {
  margin-bottom: 0.25rem;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: #9ca3af;
}

.footer-col ul li a:hover {
  color: #e5e7eb;
}

.footer-socials {
  display: flex;
  gap: 0.4rem;
}

.footer-socials a {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding: 0.8rem 0 1.2rem;
  font-size: 0.78rem;
  color: #9ca3af;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 0.8rem;
}

.footer-bottom-links a {
  color: #9ca3af;
}

.footer-bottom-links a:hover {
  color: #e5e7eb;
}

/* ------------------ */
/* Responsive         */
/* ------------------ */

@media (max-width: 1024px) {
  .cards-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .about-grid,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    padding-inline: 1.1rem;
  }

  .navbar-toggle {
    display: inline-flex;
  }

  .navbar-links {
    position: absolute;
    top: 64px;
    right: 1.1rem;
    left: 1.1rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem 0.9rem;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    transform-origin: top;
    transform: scaleY(0.8);
    opacity: 0;
    pointer-events: none;
    gap: 0.5rem;
    transition: opacity 0.16s ease-out, transform 0.16s ease-out;
    z-index: 10;
  }

  .navbar-links.show {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .navbar-links li:last-child {
    align-self: stretch;
  }

  .navbar-links li:last-child .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-content {
    margin-top: 2.4rem;
  }

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

  .faq {
    border-radius: 16px;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero {
    min-height: 90vh;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .footer-bottom-inner {
    font-size: 0.75rem;
  }
}


/* --- Spacing pour les pages légales (Mentions, Politique, CGV) --- */

.legal-page h1 {
  margin-bottom: 2rem;
}

.legal-page h2 {
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}

.legal-page p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.legal-page ul {
  margin: 0.5rem 0 1.5rem 1.2rem;
}

.legal-page ul li {
  margin-bottom: 0.4rem;
}
