/* ============================================
   POLYMAR — Site vitrine
   Palette : extraite du logo SVG
   ============================================ */

:root {
  --blue-dark: #002f6b;
  --blue-mid: #004a99;
  --blue-accent: #009ee0;
  --blue-light: #e8f4fc;
  --gray-dark: #3e3d40;
  --gray-mid: #646567;
  --gray-light: #9c9e9f;
  --gray-bg: #f5f5f7;
  --white: #ffffff;
  --red-accent: #e63946;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.section-subtitle {
  color: var(--gray-mid);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue-accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-mid);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 47, 107, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--blue-dark);
}

/* ============================================
   HEADER / NAV
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo img {
  height: 45px;
  width: auto;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-dark);
  transition: color 0.2s;
  position: relative;
}

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

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

.nav-lang {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--gray-light);
}

.nav-lang a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-light);
  text-transform: uppercase;
}

.nav-lang a.active {
  color: var(--blue-accent);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gray-dark);
  transition: all 0.3s;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 0.5rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-description {
  font-size: 1.15rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

/* ============================================
   SECTIONS COMMON
   ============================================ */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--blue-accent);
  margin: 1rem auto 0;
}

/* ============================================
   SAVOIR-FAIRE (Activites)
   ============================================ */
.activites {
  background: var(--white);
}

.poles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pole-card {
  background: var(--gray-bg);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pole-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 47, 107, 0.1);
}

.pole-icon {
  width: 56px;
  height: 56px;
  background: var(--blue-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--white);
  font-size: 1.5rem;
}

.pole-card h3 {
  margin-bottom: 1rem;
}

.pole-card ul {
  list-style: none;
  padding: 0;
}

.pole-card li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  color: var(--gray-mid);
}

.pole-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--blue-accent);
  border-radius: 50%;
}

.pole-subtitle {
  font-weight: 600;
  color: var(--blue-dark);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* ============================================
   POINTS FORTS
   ============================================ */
.points-forts {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  color: var(--white);
}

.points-forts .section-header h2 {
  color: var(--white);
}

.points-forts .section-header h2::after {
  background: var(--blue-accent);
}

.points-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.point-item {
  padding: 2rem 1rem;
}

.point-icon {
  width: 64px;
  height: 64px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.point-item h3 {
  color: var(--white);
  font-size: 1.1rem;
}

/* ============================================
   POURQUOI NOUS
   ============================================ */
.pourquoi {
  background: var(--gray-bg);
}

.pourquoi-list {
  max-width: 800px;
  margin: 0 auto;
}

.pourquoi-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pourquoi-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--blue-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.85rem;
  margin-top: 2px;
}

.pourquoi-item p {
  font-size: 1.05rem;
  color: var(--gray-dark);
}

/* ============================================
   REALISATIONS
   ============================================ */
.realisations {
  background: var(--white);
}

.real-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.real-filter-btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--gray-light);
  border-radius: 100px;
  background: transparent;
  color: var(--gray-mid);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.real-filter-btn:hover,
.real-filter-btn.active {
  background: var(--blue-accent);
  color: var(--white);
  border-color: var(--blue-accent);
}

.real-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1.25rem;
}

.real-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
}

.real-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.real-item:hover img {
  transform: scale(1.05);
}

.real-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 47, 107, 0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.real-item:hover .real-item-overlay {
  opacity: 1;
}

.real-item-overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ============================================
   A PROPOS
   ============================================ */
.a-propos {
  background: var(--gray-bg);
}

.apropos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.apropos-image {
  border-radius: 8px;
  overflow: hidden;
}

.apropos-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apropos-text p {
  margin-bottom: 1rem;
  color: var(--gray-mid);
  font-size: 0.98rem;
}

.apropos-text p:first-of-type {
  font-size: 1.1rem;
  color: var(--gray-dark);
  font-weight: 500;
}

.apropos-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-accent);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-light);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(0, 158, 224, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--gray-mid);
}

.form-consent input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--blue-accent);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  font-size: 0.9rem;
  color: var(--gray-mid);
}

.contact-info-item a {
  color: var(--blue-accent);
}

.contact-info-item a:hover {
  text-decoration: underline;
}

.contact-map {
  margin-top: 1rem;
  border-radius: 8px;
  overflow: hidden;
  height: 200px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
}

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

.footer-logo img {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--blue-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.footer-legal a {
  margin-left: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--blue-accent);
}

/* ============================================
   ANIMATIONS (fade-in on scroll)
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .poles-grid { grid-template-columns: 1fr; }
  .apropos-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    gap: 1rem;
  }
  .nav-lang {
    border-left: none;
    margin-left: 0;
    padding-left: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-bg);
  }
  .nav-toggle { display: flex; }
  .points-grid { grid-template-columns: repeat(2, 1fr); }
  .apropos-stats { grid-template-columns: repeat(3, 1fr); }
  .real-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { padding: 0 1rem; }
  section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .points-grid { grid-template-columns: 1fr; }
  .real-grid { grid-template-columns: 1fr; }
  .apropos-stats { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { flex-direction: column; }
}
