/* ============================================================
   UNICEM — Salon des Maires 2026
   Charte graphique reprise de unicem.fr :
   - Police : "Be Vietnam Pro"
   - Bleu UNICEM  : #115fab (logo) / #3464be (liens, UI)
   - Orange UNICEM: #f8ad4b
   - Vert UNICEM  : #74b85b
   - Gris texte   : #7e7e7e
   ============================================================ */

:root {
  --unicem-blue: #115fab;
  --unicem-blue-ui: #3464be;
  --unicem-orange: #f8ad4b;
  --unicem-green: #74b85b;
  --unicem-grey: #7e7e7e;
  --unicem-grey-dark: #3a3a3a;
  --unicem-ink: #1c1c1c;
  --unicem-bg: #ffffff;
  --unicem-bg-soft: #f5f7fa;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-card: 0 10px 30px rgba(17, 95, 171, 0.12);
  --shadow-card-hover: 0 18px 40px rgba(17, 95, 171, 0.2);
  --container-w: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--unicem-grey);
  background: var(--unicem-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Texture diagonale décorative, reprise du fond de unicem.fr */
.hatch-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(17, 95, 171, 0.06) 0px,
    rgba(17, 95, 171, 0.06) 1px,
    transparent 1px,
    transparent 14px
  );
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid #eef0f3;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__logo img {
  height: 42px;
  width: auto;
}

.site-header__divider {
  width: 1px;
  height: 32px;
  background: #e2e5ea;
  display: none;
}

.site-header__event {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--unicem-blue);
  line-height: 1.2;
  display: none;
}

.site-header__event small {
  display: block;
  font-weight: 400;
  color: var(--unicem-grey);
  font-size: 0.78rem;
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px solid var(--unicem-blue-ui);
  color: var(--unicem-blue-ui);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-header__cta:hover {
  background: var(--unicem-blue-ui);
  color: #fff;
}

@media (min-width: 640px) {
  .site-header__divider { display: block; }
  .site-header__event { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0e4d8c 0%, var(--unicem-blue) 55%, #1d76c9 100%);
  color: #fff;
  overflow: hidden;
}

.hero .hatch-bg {
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.07) 0px,
    rgba(255, 255, 255, 0.07) 1px,
    transparent 1px,
    transparent 14px
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 72px 24px 88px;
  text-align: center;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero__kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--unicem-orange);
}

.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.85rem);
  font-weight: 900;
  line-height: 1.18;
  max-width: 800px;
  margin: 0 auto 20px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 0 0 22px;
}

.hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.92rem;
}

.hero__meta-item svg { width: 18px; height: 18px; flex: none; }

.hero__intro {
  max-width: 680px;
  margin: 0 auto 30px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--unicem-orange);
  color: #1c1c1c;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.hero__cta:hover { transform: translateY(-2px); }

.hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
}

/* ---------- Sections communes ---------- */
.section { padding: 64px 0; position: relative; }
.section--soft { background: var(--unicem-bg-soft); }

.section__head {
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
}

.section__kicker {
  color: var(--unicem-blue-ui);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
  display: block;
}

.section__title {
  color: var(--unicem-ink);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900;
  margin: 0;
  line-height: 1.25;
}

/* ---------- Le mot du président ---------- */
.president {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.president__portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--unicem-blue) 0%, var(--unicem-blue-ui) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  flex: none;
}

.president__portrait svg { width: 54%; height: 54%; opacity: 0.9; }

.president__quote-mark {
  position: absolute;
  top: -10px;
  left: -6px;
  font-size: 4rem;
  color: var(--unicem-orange);
  font-family: Georgia, serif;
  opacity: 0.9;
  line-height: 1;
}

.president__text {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #4a4a4a;
}

.president__text p { margin: 0 0 14px; }

.president__name {
  margin-top: 18px;
  font-weight: 800;
  color: var(--unicem-ink);
  font-size: 1.05rem;
}

.president__role {
  color: var(--unicem-blue-ui);
  font-weight: 600;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .president {
    grid-template-columns: 1fr;
    padding: 28px;
    text-align: left;
  }
  .president__portrait { width: 96px; margin: 0 auto 8px; }
}

/* ---------- Cartes cliquables ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

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

@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
}

.card {
  --card-color: var(--unicem-blue);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: var(--radius-lg);
  padding: 28px 24px 26px;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  width: 100%;
  font-family: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--card-color);
}

.card:hover,
.card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: color-mix(in srgb, var(--card-color) 40%, #eef0f3);
  outline: none;
}

.card[data-color="blue"]   { --card-color: var(--unicem-blue); }
.card[data-color="orange"] { --card-color: var(--unicem-orange); }
.card[data-color="green"]  { --card-color: var(--unicem-green); }

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--card-color) 14%, white);
  color: var(--card-color);
}

.card__icon svg { width: 30px; height: 30px; }

.card__title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--unicem-ink);
  line-height: 1.35;
  margin: 0;
}

.card__teaser {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--unicem-grey);
  margin: 0;
  flex: 1;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.card__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--card-color);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--card-color);
  color: var(--card-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  flex: none;
}

.card__arrow svg { width: 16px; height: 16px; }

.card:hover .card__arrow {
  background: var(--card-color);
  color: #fff;
}

/* ---------- Modale carte ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 40, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 34px;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.22s ease;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.is-open .modal { transform: translateY(0); }

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--unicem-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: var(--unicem-grey-dark);
}

.modal__close svg { width: 16px; height: 16px; }

.modal__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--card-color, var(--unicem-blue)) 14%, white);
  color: var(--card-color, var(--unicem-blue));
  margin-bottom: 18px;
}

.modal__icon svg { width: 28px; height: 28px; }

.modal h3 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--unicem-ink);
  margin: 0 0 16px;
  line-height: 1.3;
}

.modal__body {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #4a4a4a;
}

.modal__body p { margin: 0 0 12px; }

/* ---------- Footer (identique à unicem.fr) ---------- */
.site-footer {
  background: #fff;
  border-top: 1px solid #eef0f3;
  padding: 32px 0 24px;
  margin-top: 24px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 36px;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid #eef0f3;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links a {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--unicem-grey-dark);
  transition: color 0.2s ease;
}

.site-footer__links a:hover { color: var(--unicem-blue-ui); }

.site-footer__social {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e2e5ea;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--unicem-grey-dark);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-footer__social a:hover {
  background: var(--unicem-blue-ui);
  border-color: var(--unicem-blue-ui);
  color: #fff;
}

.site-footer__social svg { width: 16px; height: 16px; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  font-size: 0.82rem;
  color: var(--unicem-grey);
}

.site-footer__bottom a:hover { color: var(--unicem-blue-ui); }

@media (max-width: 640px) {
  .site-footer__nav { flex-direction: column; align-items: flex-start; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Utilitaires ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .hero__inner { padding: 56px 20px 70px; }
  .president { padding: 22px; }
}
