/* ═══════════════════════════════════════════════
   CHEMS ENERGIES — pages.css (pages intérieures)
═══════════════════════════════════════════════ */

/* ══ PAGE HERO ══ */
.page-hero {
  background: var(--white);
  padding: 60px 80px 50px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 800;
  color: var(--black);
  line-height: 1.05;
  margin-top: 8px;
}
.page-hero p {
  font-size: 16px;
  color: var(--gray);
  margin-top: 12px;
  max-width: 520px;
  line-height: 1.65;
}

/* ══ SERVICE BLOCKS ══ */
.service-block {
  padding: 90px 0;
  background: var(--white);
}
.service-block:nth-child(even) {
  background: var(--gray-light);
}

.service-block-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.service-block-inner.reverse {
  direction: rtl;
}
.service-block-inner.reverse > * {
  direction: ltr;
}

.service-block-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--border);
}
.service-block-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-block-img:hover img { transform: scale(1.04); }
.service-block-img.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 13px;
}
.service-block-img.img-placeholder::after {
  content: '📷 Photo à ajouter — images/service-*.jpg';
}

.service-block-content h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 16px;
  margin-top: 8px;
  line-height: 1.15;
}

.service-block-content p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 24px;
}

.service-list {
  margin-bottom: 32px;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--black);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.service-list li:last-child { border-bottom: none; }
.service-list li span {
  color: var(--gold-dark);
  font-weight: 700;
  flex-shrink: 0;
}

/* ══ SERVICE CTA ══ */
.service-cta-section {
  background: var(--gray-light);
  padding: 90px 80px;
  text-align: center;
}
.service-cta-section h2 {
  font-family: var(--font-head);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 12px;
}
.service-cta-section p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
}

/* ══ GALERIE ══ */
.gallery-page {
  padding: 70px 80px;
  background: var(--white);
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-page-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-light);
  cursor: pointer;
  position: relative;
}

.gallery-page-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-page-item:hover img { transform: scale(1.06); }

.gallery-page-item.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: #bbb;
  font-size: 12px;
}
.gallery-page-item.placeholder::before {
  content: '📷';
  font-size: 28px;
}

.gallery-cta {
  text-align: center;
  padding: 60px 80px;
  background: var(--gray-light);
  border-top: 1px solid var(--border);
}
.gallery-cta h2 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}
.gallery-cta p {
  color: var(--gray);
  margin-bottom: 28px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 8px;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ══ À PROPOS ══ */
.about-section {
  padding: 90px 80px;
  background: var(--white);
}
.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.about-photo-wrap {
  position: sticky;
  top: 90px;
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--gray-light);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: #bbb;
  font-size: 13px;
}
.about-photo.placeholder::before {
  content: '🧑‍🔧';
  font-size: 40px;
}

.about-badge {
  background: var(--gold);
  color: var(--black);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.about-badge-icon { font-size: 28px; }
.about-badge strong {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  display: block;
}
.about-badge span { font-size: 13px; opacity: 0.7; }

.about-content h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 20px;
  margin-top: 8px;
  line-height: 1.1;
}
.about-content p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 18px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 36px 0;
}
.stat-card {
  background: var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border);
}
.stat-number {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  color: var(--gold-dark);
  display: block;
}
.stat-label {
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
}

.about-skills {
  margin-top: 28px;
}
.about-skills h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.skill-tag {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold-dark);
  border: 1px solid rgba(221,173,18,0.3);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  margin: 4px 4px 4px 0;
}

/* ══ CONTACT ══ */
.contact-page {
  padding: 80px 80px;
  background: var(--white);
}
.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  margin-top: 8px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-of-type { border-bottom: none; }

.contact-icon {
  width: 42px;
  height: 42px;
  background: var(--gold-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-item-text strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 3px;
}
.contact-item-text span, .contact-item-text a {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}
.contact-item-text a:hover { color: var(--gold-dark); }

.availability-block {
  background: var(--gold-light);
  border: 1px solid rgba(221,173,18,0.3);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 24px;
}
.availability-block h3 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
}
.availability-block p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: white;
  padding: 14px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 24px;
  width: fit-content;
  transition: background 0.2s, transform 0.2s;
}
.whatsapp-btn:hover { background: #1db954; transform: translateY(-2px); }
.whatsapp-btn svg { width: 22px; height: 22px; fill: white; flex-shrink: 0; }

/* Contact Form */
.contact-form-wrap h2 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 28px;
  margin-top: 8px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(221,173,18,0.15);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  width: 100%;
  padding: 15px;
  background: var(--black);
  color: var(--gold);
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 8px;
  transition: background 0.2s, transform 0.15s;
}
.form-submit:hover { background: #222; transform: translateY(-2px); }

/* ══ RESPONSIVE PAGES ══ */
@media (max-width: 1024px) {
  .page-hero { padding: 50px 40px 40px; }
  .service-block-inner { padding: 0 40px; gap: 48px; }
  .about-section { padding: 72px 40px; }
  .gallery-page { padding: 56px 40px; }
  .gallery-cta { padding: 50px 40px; }
  .contact-page { padding: 64px 40px; }
  .service-cta-section { padding: 72px 40px; }
}

@media (max-width: 768px) {
  .page-hero { padding: 36px 20px 32px; }

  .service-block { padding: 56px 0; }
  .service-block-inner { grid-template-columns: 1fr; padding: 0 20px; gap: 32px; }
  .service-block-inner.reverse { direction: ltr; }

  .about-section { padding: 56px 20px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-photo-wrap { position: static; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }

  .gallery-page { padding: 48px 20px; }
  .gallery-page-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-cta { padding: 40px 20px; }

  .contact-page { padding: 48px 20px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  .service-cta-section { padding: 64px 20px; }
}

@media (max-width: 480px) {
  .gallery-page-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}
