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

:root {
  --blue: #1A5FA8;
  --blue-dark: #14477E;
  --yellow: #F5C400;
  --red: #CC2B1B;
  --green: #3A7A3A;
  --text: #141413;
  --text-light: #3D3D3A;
  --bg: #FFFFFF;
  --bg-alt: #F5F5F3;
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Header === */
.header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 3px solid var(--blue);
  z-index: 100;
}

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

.logo {
  height: 45px;
  width: auto;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--blue);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-logo {
  height: 140px;
  width: auto;
  flex-shrink: 0;
}

.hero-text {
  text-align: left;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.2;
}

.hero-location {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 16px;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.1rem;
  opacity: 0.8;
  font-style: italic;
}

/* === Sections === */
.section {
  padding: 32px 0;
}

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

.section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 32px;
  position: relative;
  padding-bottom: 12px;
}

.section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
}

.about-logo {
  margin: 16px auto 0;
  max-width: 500px;
  display: block;
}

/* === Grid === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.grid-societes {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* === Cards — Comité === */
.card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-role {
  padding: 24px;
  border: 1px solid #e0e0dc;
  text-align: center;
}

.card-role .role {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 6px;
}

.card-role .name {
  font-size: 1.05rem;
  font-weight: 500;
}

/* === Cards — Sociétés === */
.card-societe {
  border: 1px solid #e0e0dc;
  transition: box-shadow 0.2s;
}

.card-societe:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.card-img {
  height: 180px;
  overflow: hidden;
  background: var(--bg-alt);
}

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

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

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

/* === Contact === */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.contact-block h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  margin-bottom: 8px;
}

.contact-block p {
  color: var(--text-light);
  line-height: 1.7;
}

/* === Footer === */
.footer {
  background: var(--text);
  color: #ccc;
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
}

/* === Responsive === */
@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 3px solid var(--blue);
  }

  .nav.open {
    display: flex;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-divider {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-logo {
    height: 100px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 48px 0;
  }

  .section {
    padding: 40px 0;
  }

  .section h2 {
    font-size: 1.4rem;
  }
}
