/* ============================================================
   ROTARY CLUB — pages.css
   Styles spécifiques à chaque page
   ============================================================ */

/* ============================================================
   PAGE ACCUEIL (index.html)
   ============================================================ */

/* Section À propos */
.about-section {
  background: var(--color-white);
}

.about-section__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-section__image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-section__image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* Cadre décoratif */
.about-section__image::before {
  content: '';
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 60%;
  height: 60%;
  border: 3px solid var(--rotary-gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-section__image::after {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  width: 40%;
  height: 40%;
  background: var(--rotary-blue);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.15;
}

.about-section__text p:last-child {
  margin-bottom: 0;
}

.about-section__quote {
  margin: var(--space-6) 0;
  padding: var(--space-5) var(--space-6);
  border-left: 4px solid var(--rotary-gold);
  background: var(--color-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--rotary-blue);
}

@media (max-width: 768px) {
  .about-section__content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .about-section__image {
    order: -1;
  }

  .about-section__image img {
    height: 300px;
  }
}

/* Section Valeurs */
.values-section {
  background: var(--color-surface);
}

.value-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--rotary-blue) 0%, var(--rotary-blue-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}

.value-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-white);
}

.value-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-3);
}

.value-card__desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* Section CTA Rejoindre */
.cta-section {
  background: linear-gradient(135deg, var(--rotary-blue-dark) 0%, var(--rotary-blue) 60%, var(--rotary-blue-light) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(247, 168, 27, 0.04) 0,
    rgba(247, 168, 27, 0.04) 1px,
    transparent 0,
    transparent 50%
  );
  background-size: 32px 32px;
}

.cta-section__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
}

.cta-section__title {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta-section__desc {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-lg);
  margin: 0 auto var(--space-8);
  max-width: 52ch;
}

.cta-section__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Section Stats */
.stats-section {
  background: var(--color-white);
}

/* Section Articles récents */
.recent-articles {
  background: var(--color-bg);
}

/* ============================================================
   PAGE COMITÉ (comite.html)
   ============================================================ */

/* Bandeau du bureau directeur */
.bureau-header {
  background: linear-gradient(135deg, var(--rotary-blue) 0%, var(--rotary-blue-dark) 100%);
  padding: var(--space-12) 0;
  text-align: center;
  color: var(--color-white);
}

/* Card président (mise en avant) */
.president-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-8);
  align-items: center;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-12);
}

.president-card__photo {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  border: 4px solid var(--rotary-gold);
  box-shadow: 0 0 0 6px rgba(247,168,27,0.15);
}

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

.president-card__photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--rotary-blue) 0%, var(--rotary-blue-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: var(--color-white);
  font-weight: 700;
}

.president-card__role {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rotary-gold-dark);
  margin-bottom: var(--space-2);
}

.president-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.president-card__mandate {
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.president-card__bio {
  color: var(--color-text);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

@media (max-width: 640px) {
  .president-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .president-card__photo {
    margin: 0 auto;
  }
}

/* Section historique */
.history-section {
  background: var(--color-surface);
}

.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--rotary-blue) 0%, var(--rotary-gold) 100%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-8);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) + 6px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--rotary-gold);
  border: 2px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--rotary-gold);
}

.timeline-item__year {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rotary-gold-dark);
  margin-bottom: var(--space-1);
}

.timeline-item__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.timeline-item__text {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ============================================================
   PAGES ARTICLES (actions, projets, blog)
   ============================================================ */

.articles-page {
  background: var(--color-bg);
  min-height: 50vh;
}

.articles-grid-wrapper {
  padding-bottom: var(--space-20);
}

/* Loading state */
.articles-loading {
  text-align: center;
  padding: var(--space-16) 0;
  color: var(--color-muted);
}

.articles-loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--rotary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto var(--space-4);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   PAGE CONTACT (contact.html)
   ============================================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-12);
  align-items: start;
}

.contact-info {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-8));
}

.contact-info__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.contact-info__desc {
  color: var(--color-muted);
  margin-bottom: var(--space-8);
}

.contact-info-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
}

.contact-info-card__title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rotary-blue);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.contact-info-card__title svg {
  width: 16px;
  height: 16px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.contact-detail:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-detail__icon {
  width: 18px;
  height: 18px;
  color: var(--rotary-gold-dark);
  flex-shrink: 0;
  margin-top: 1px;
}

.contact-detail__label {
  font-weight: 600;
  color: var(--color-dark);
  display: block;
  margin-bottom: 2px;
}

.contact-detail__value {
  color: var(--color-muted);
}

.contact-detail a {
  color: var(--rotary-blue);
}

.contact-detail a:hover {
  color: var(--rotary-gold-dark);
}

.contact-form-wrapper {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.contact-form-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.contact-map {
  margin-top: var(--space-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 200px;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-info {
    position: static;
  }
}

/* ============================================================
   PAGE 404 (utilisée si nécessaire)
   ============================================================ */
.page-404 {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-20) var(--space-6);
}

.page-404__number {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 700;
  color: var(--rotary-blue);
  opacity: 0.1;
  line-height: 1;
  margin-bottom: var(--space-4);
}

.page-404__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.page-404__desc {
  color: var(--color-muted);
  margin-bottom: var(--space-8);
}
