/* =========================================================
   Nexovia — Feuille de styles principale
   Site vitrine ESN : Accueil, Prestations, Solutions, Contact
   HTML + CSS uniquement — aucune dépendance externe
   ========================================================= */

/* -------- Reset léger & base typographique -------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2a37;
  background: linear-gradient(135deg, #EAF3FD 0%, #F1E5E3 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

a {
  color: #1a6b8f;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: #134962;
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-weight: 600;
  color: #0f3a4f;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

/* Conteneur central */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Accessibilité : lien d'évitement */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #134962;
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* -------- En-tête & navigation -------- */
.site-header {
  background: linear-gradient(90deg, #134962 0%, #217DA4 100%);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(19, 73, 98, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; color: #ffffff; }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.main-nav a {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  color: #ffffff;
  font-weight: 500;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  background-color: rgba(255, 255, 255, 0.15);
  text-decoration: none;
  color: #ffffff;
}

.main-nav a.active {
  background-color: rgba(255, 255, 255, 0.22);
}

.nav-cta {
  background-color: #ffffff !important;
  color: #134962 !important;
  font-weight: 600;
}
.nav-cta:hover,
.nav-cta:focus {
  background-color: #EAF3FD !important;
  color: #134962 !important;
}

/* -------- Hero -------- */
.hero {
  padding: 4rem 0 3rem;
}

.hero-inner {
  background: #ffffff;
  border-radius: 16px;
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: 0 12px 40px rgba(19, 73, 98, 0.08);
  border: 1px solid rgba(33, 125, 164, 0.08);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #134962;
  background: #AED6F2;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero p.lead {
  font-size: 1.15rem;
  color: #3b4a57;
  max-width: 720px;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* -------- Boutons -------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(90deg, #134962 0%, #217DA4 100%);
  color: #ffffff;
}
.btn-primary:hover,
.btn-primary:focus {
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(33, 125, 164, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: #134962;
  border-color: #217DA4;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #EAF3FD;
  text-decoration: none;
}

/* -------- Sections génériques -------- */
section {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title h2 {
  margin-bottom: 0.6rem;
}
.section-title p {
  color: #4b5a68;
  max-width: 720px;
  margin: 0 auto;
}

/* Cartes blanches */
.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 6px 20px rgba(19, 73, 98, 0.06);
  border: 1px solid rgba(33, 125, 164, 0.08);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(19, 73, 98, 0.1);
}

.card h3 {
  margin-top: 0.4rem;
  color: #0f3a4f;
}

/* Grilles */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Pastilles / badges colorés (pastel) */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-weight: 700;
  color: #134962;
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}
.badge-green  { background: #A7DDB7; }
.badge-orange { background: #FFDFB8; }
.badge-pink   { background: #F7D6F5; }
.badge-mint   { background: #D8FFD2; }
.badge-blue   { background: #AED6F2; }
.badge-violet { background: #E5E0FF; }
.badge-yellow { background: #F5EFB8; }

/* Pastilles textuelles */
.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #EAF3FD;
  color: #134962;
  margin: 0.15rem 0.25rem 0.15rem 0;
}

/* -------- Section "enjeux" (accueil) -------- */
.challenges .card p {
  color: #4b5a68;
  margin-bottom: 0;
}

/* -------- Section CTA finale -------- */
.cta-banner {
  background: linear-gradient(90deg, #134962 0%, #217DA4 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  box-shadow: 0 12px 30px rgba(19, 73, 98, 0.18);
}
.cta-banner h2 { color: #ffffff; }
.cta-banner p  { color: #EAF3FD; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-secondary { margin-top: 1rem; }

/* -------- Listes de bénéfices -------- */
.benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.benefits-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
  color: #3b4a57;
}
.benefits-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 10px;
  height: 10px;
  background: #217DA4;
  border-radius: 50%;
}

/* -------- Pages Prestations & Solutions : structure --------- */
.page-intro {
  background: #ffffff;
  border-radius: 16px;
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: 0 12px 40px rgba(19, 73, 98, 0.08);
  border: 1px solid rgba(33, 125, 164, 0.08);
  margin-top: 3rem;
}
.page-intro p.lead {
  font-size: 1.1rem;
  color: #3b4a57;
  max-width: 760px;
}

/* Carte solution plus riche */
.solution-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.solution-card .tagline {
  font-style: italic;
  color: #5a6875;
  margin-bottom: 0.5rem;
}
.solution-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: #3b4a57;
}
.solution-card ul li { margin-bottom: 0.3rem; }

/* -------- Page contact -------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.contact-form {
  background: #ffffff;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(19, 73, 98, 0.06);
  border: 1px solid rgba(33, 125, 164, 0.08);
}

.contact-form .field {
  margin-bottom: 1.1rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  color: #0f3a4f;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: #1f2a37;
  background: #F7FAFD;
  border: 1px solid #d6e2ec;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #217DA4;
  box-shadow: 0 0 0 3px rgba(33, 125, 164, 0.18);
  background: #ffffff;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: #4b5a68;
}
.contact-form .consent input {
  width: auto;
  margin-top: 0.25rem;
}

.contact-info {
  background: #ffffff;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(19, 73, 98, 0.06);
  border: 1px solid rgba(33, 125, 164, 0.08);
}
.contact-info h3 { margin-top: 1.4rem; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info p, .contact-info address {
  font-style: normal;
  color: #3b4a57;
  margin: 0 0 0.4rem;
}

/* -------- Pied de page -------- */
.site-footer {
  margin-top: 4rem;
  background: #0f3a4f;
  color: #d8e6ef;
  padding: 3rem 0 1.5rem;
}

.site-footer a {
  color: #AED6F2;
}
.site-footer a:hover { color: #ffffff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-grid h4 {
  color: #ffffff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-grid li { margin-bottom: 0.45rem; }

.footer-brand p {
  color: #b8cad6;
  max-width: 320px;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #b8cad6;
}

/* -------- Responsive -------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav ul { width: 100%; }
  .main-nav a { padding: 0.5rem 0.7rem; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0 1.5rem; }
  section { padding: 2rem 0; }
}

/* -------- Préférences utilisateur : moins d'animation -------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .card:hover { transform: none; }
  .btn-primary:hover { transform: none; }
}