﻿:root {
  --primary-color: #1c6dd0;
  --secondary-color: #0f3d75;
  --accent-color: #20bf55;
  --bg-color: #f4f8fb;
  --text-color: #1f2933;
  --muted-text: #52616b;
  --card-bg: #ffffff;
  --border-radius: 14px;
  --shadow-sm: 0 10px 30px rgba(15, 61, 117, 0.08);
  --shadow-lg: 0 25px 60px rgba(15, 61, 117, 0.15);
  --transition: all 0.3s ease;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

header {
  background: linear-gradient(135deg, rgba(28, 109, 208, 0.92), rgba(32, 191, 85, 0.8)), url('https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=1920&q=80') center/cover;
  color: #fff;
  padding: 1.5rem 0 4.5rem;
  position: relative;
}

header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 109, 208, 0.85), rgba(15, 61, 117, 0.75));
  z-index: 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4%;
  position: relative;
  z-index: 1;
}

.logo {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.language-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.language-switcher button {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  transition: var(--transition);
}

.language-switcher button.active,
.language-switcher button:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
  padding: 3rem 4%;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  margin: 0;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 15px 30px rgba(32, 191, 85, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(32, 191, 85, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.3);
}

main {
  margin-top: -2.5rem;
}

.section {
  padding: 4rem 4%;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 0.8rem;
}

.section-title p {
  color: var(--muted-text);
  max-width: 640px;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  margin-top: 0;
  color: var(--secondary-color);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(32, 191, 85, 0.15);
  color: var(--accent-color);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--muted-text);
}

.features-list li::before {
  content: '\2022';
  color: var(--accent-color);
  font-size: 1.3rem;
}

.highlight {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.highlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28, 109, 208, 0.12), rgba(32, 191, 85, 0.12));
  border-radius: var(--border-radius);
  z-index: -1;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.contact-info {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  font-size: 1.1rem;
}

.contact-info h3 {
  margin-top: 0;
  color: var(--secondary-color);
  font-size: 1.5rem;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.contact-info li {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--muted-text);
}

.contact-form {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 61, 117, 0.15);
  background: #f9fbfd;
  font-size: 1rem;
  transition: var(--transition);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(28, 109, 208, 0.1);
}

footer {
  background: #0b2239;
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 4%;
  text-align: center;
}

footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

/* Contact page: brand logo under coordinates */
.contact-wrapper .brand-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(15, 61, 117, 0.08);
  grid-column: 1;
  justify-self: stretch;
}

.contact-wrapper .brand-logo img {
  height: 110px;
  width: auto;
  opacity: 0.95;
  filter: drop-shadow(0 6px 16px rgba(15, 61, 117, 0.15));
  transition: transform 0.2s ease;
}

/* Coverage note on contact page */
.coverage-note {
  margin-top: 1rem;
  color: var(--muted-text);
}

.contact-wrapper .brand-logo img:hover {
  transform: scale(1.03);
}

/* Desktop alignment: place contact card left, logo right */
@media (min-width: 768px) {
  .contact-wrapper { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .contact-info { grid-column: 1; grid-row: 1; }
  .contact-wrapper .brand-logo {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
    border-top: none;
    align-self: stretch;
  }
}

/* Pack symbols (design badges above each pack) */
.packs .pack .pack-symbol {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin: 0 auto 0.85rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}

.packs .pack .pack-symbol.symbol-h {
  background: linear-gradient(135deg, #1c6dd0, #00b7ff);
}
.packs .pack .pack-symbol.symbol-c {
  background: linear-gradient(135deg, #111827, #374151);
}
.packs .pack .pack-symbol.symbol-si {
  background: linear-gradient(135deg, #ffbf01, #f3e670);
}
.packs .pack .pack-symbol.symbol-li {
  background: linear-gradient(135deg, #f02424, #fa8e5c);
}
.packs .pack .pack-symbol.symbol-ti {
  background: linear-gradient(135deg, #7d7c7e, #b8b8bb);
}
.packs .pack .pack-symbol.symbol-b {
  background: linear-gradient(135deg, #09cc5a, #5cf1e5);
}

/* Hide price lines inside packs */
.packs .pack p > strong { display: none; }
/* Progressive enhancement: remove the empty <p> if :has is supported */
.packs .pack p:has(> strong) { display: none; }

.packs .pack h3 {
  margin-top: 0.4rem;
  text-align: center;
}

.packs .pack ul {
  padding-left: 1.1rem;
}

@media (max-width: 768px) {
  .packs .pack .pack-symbol { width: 64px; height: 64px; }
}

.language-visible {
  display: block;
}

.language-hidden {
  display: none !important;
}

/* Page-specific tweaks for Pourquoi Nous */
body.page-why .about .grid-2 {
  align-items: center;
  justify-items: center;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Show only the about section on this page */
body.page-why main > .section { display: none; }
body.page-why main > .section.about { display: block; }

/* About section photo smaller (â‰ˆ half) and without shadow */
body.page-why .about-photo img {
  width: 100%;
  max-width: 340px;
  height: auto;
  box-shadow: none;
}

/* Align photo and text; add background behind text */
body.page-why .about-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

body.page-why .about-content {
  background: rgba(255, 255, 255, 0.92);
  padding: 1.5rem 2rem;
  border-radius: var(--border-radius);
  max-width: 720px;
  border: 1px solid rgba(15, 61, 117, 0.08);
}
body.page-why .about-content h2 {
  margin-top: 0;
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    text-align: center;
  }

  .cta-group {
    justify-content: center;
  }

  body.page-why .about .grid-2 {
    gap: 1.5rem;
  }
body.page-why .about-photo img {
    max-width: 260px;
  }
}

/* Partners section (bottom of contact page) */
.partners {
  padding-top: 0;
}

.partners-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.partners-logos .partner-link {
  text-decoration: none;
  display: grid;
  place-items: center;
}

.partners-logos .partner-logo {
  max-height: 168px; /* +40% */
  width: auto;
  border-radius: 0; /* keep brand shapes intact */
  box-shadow: none;
  background: transparent;
  filter: drop-shadow(0 6px 16px rgba(15, 61, 117, 0.08));
}

.partners-logos .partner-link:hover .partner-logo {
  transform: scale(1.03);
}

@media (max-width: 480px) {
  .partners-logos .partner-logo { max-height: 126px; /* +40% */ }
}

/* Professionnels page */
.catalog-grid .card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.catalog-grid .card ul {
  padding-left: 1.1rem;
  color: var(--muted-text);
}

.catalog-grid .card li { margin-bottom: 0.5rem; }

.mini-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(28, 109, 208, 0.12);
  color: var(--secondary-color);
  padding: 0.3rem 0.65rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
}

.process-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.process-step .step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.process-step h3 { margin: 0; }
.process-step p { margin: 0.35rem 0 0; color: var(--muted-text); }

.section.catalog-grid { padding-top: 0.8rem; }


