/* Resources Section */
.resources {
  background: white;
  padding: 80px 112px;
}

.resources-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Responsive pour grands écrans */
@media (min-width: 1401px) {
  .resources-container {
    max-width: 1600px;
    gap: 100px;
  }
}

@media (min-width: 1921px) {
  .resources-container {
    max-width: 1800px;
    gap: 120px;
  }
}

.resources-text {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
}

.resources-text:last-child {
  margin-bottom: 0;
}

.resources-image {
  display: flex;
  height: 100%;
}

.resources-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* Gouvernance Section */
.gouvernance {
  background: #F9F9F9;
  padding: 80px 112px;
}

.gouvernance-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Responsive pour grands écrans */
@media (min-width: 1401px) {
  .gouvernance-container {
    max-width: 1600px;
    gap: 100px;
  }
}

@media (min-width: 1921px) {
  .gouvernance-container {
    max-width: 1800px;
    gap: 120px;
  }
}

.gouvernance-text {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
}

.gouvernance-image {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 15px;
}

.gouv-imag-1 {
  grid-column: span 2 / span 2;
  grid-row: span 4 / span 4;
}

.gouv-imag-2 {
  grid-column: span 2 / span 2;
  grid-row: span 2 / span 2;
  grid-column-start: 3;
}

.gouv-imag-3 {
  grid-column: span 2 / span 2;
  grid-row: span 2 / span 2;
  grid-column-start: 3;
  grid-row-start: 3;
}

.gouv-imag-1 img,
.gouv-imag-2 img,
.gouv-imag-3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.highlight-green {
  color: var(--primary-green);
  font-weight: 700;
}

.btn-green {
  display: inline-block;
  background: var(--primary-green);
  color: white;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 12px;
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 106, 78, 0.3);
}

/* Vision Section */
.vision {
  background: #E8F5F1;
  padding: 80px 112px;
}

.vision-container {
  max-width: 1400px;
  margin: 0 auto;
}

.vision-header {
  margin-bottom: 50px;
  gap: 15px;
  display: flex;
  justify-content: space-between;
}

.vision-title {
  line-height: normal;
  margin-right: 50px;
  font-size: 36px;
  font-weight: 500;
  color: #000;
  max-width: 600px;
}

.vision-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.vision-item {
  text-align: left;
}

.vision-icon {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.vision-icon img {
  height: 30px;
}

.vision-item-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 8px;
}

.vision-item-description {
  font-size: 15px;
  color: #333;
  line-height: normal;
  font-weight: 500;
}

.vision-video {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/tourisme.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button {
  width: 80px;
  height: 80px;
  background: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.1);
}

.vertical-divider {
  width: 1px;
  height: 20px;
  background-color: rgb(255, 255, 255);
  margin: auto 15px;
  display: inline-block;
}

.play-button svg {
  color: black;
  margin-left: 4px;
}

/* Culture Section */
.culture {
  background: white;
  padding: 80px 112px;
}

.culture-header {
  max-width: 1400px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.culture-title {
  font-size: 42px;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
  margin: 0;
}

.culture-description {
  font-size: 16px;
  text-align: right;
  line-height: 1.7;
  color: #666;
  margin-bottom: 24px;
}

.culture-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.btn-yellow {
  display: inline-block;
  background: var(--primary-yellow);
  color: #000;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-yellow:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 206, 21, 0.4);
}

.culture-gallery {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 8px;
}

.gallery-small-1 {
  grid-column: span 2 / span 2;
  grid-row: span 3 / span 3;
}

.gallery-small-2 {
  grid-column: span 2 / span 2;
  grid-row: span 3 / span 3;
  grid-column-start: 1;
  grid-row-start: 4;
}

.gallery-small-3 {
  grid-column: span 2 / span 2;
  grid-row: span 6 / span 6;
  grid-column-start: 3;
  grid-row-start: 1;
}

.gallery-small-4 {
  grid-column: span 2 / span 2;
  grid-row: span 3 / span 3;
  grid-column-start: 5;
  grid-row-start: 1;
}

.gallery-small-5 {
  grid-column: span 2 / span 2;
  grid-row: span 3 / span 3;
  grid-column-start: 5;
  grid-row-start: 4;
}

.gallery-small-1 img,
.gallery-small-2 img,
.gallery-small-3 img,
.gallery-small-4 img,
.gallery-small-5 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Responsive for Sections */
@media (max-width: 1200px) {

  .resources-container,
  .gouvernance-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .vision-items {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .culture-header {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .culture-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-main {
    grid-row: auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .vision-title {
    font-size: 28px;
  }

  .vision-video {
    height: 300px;
  }

  .culture-title {
    font-size: 32px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .documents-title {
    font-size: 36px;
  }

  .blog-title {
    font-size: 32px;
  }
}

/* Mobile Responsive for Sections (768px and below) */
@media (max-width: 768px) {

  .resources,
  .gouvernance,
  .vision,
  .culture,
  .documents,
  .blog {
    padding: 40px 15px !important;
  }

  .resources-container,
  .gouvernance-container {
    gap: 30px;
  }

  .resources-text,
  .gouvernance-text {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Gouvernance image grid fix */
  .gouvernance-image {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 10px;
  }

  .gouv-imag-1,
  .gouv-imag-2,
  .gouv-imag-3 {
    grid-column: span 1;
    grid-row: span 1;
    grid-column-start: auto;
    grid-row-start: auto;
    height: 200px;
  }

  /* Vision section fixes */
  .vision-header {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
  }

  .vision-title {
    font-size: 24px;
    margin-right: 0;
    text-align: center;
  }

  .vision-item {
    text-align: center;
  }

  .documents::before {
    background: url('../images/background.png') !important;
    background-size: contain !important;
    background-color: var(--primary-green) !important;
  }

  .vision-icon {
    gap: 10px;
  }

  .vision-item-title {
    font-size: 18px;
  }

  .vision-item-description {
    font-size: 14px;
  }

  .vision-video {
    height: 250px;
  }

  .play-button {
    width: 60px;
    height: 60px;
  }

  /* Culture section fixes */
  .culture-header {
    gap: 20px;
  }

  .culture-title {
    font-size: 24px;
  }

  .culture-description {
    font-size: 14px;
    text-align: left;
  }

  .culture-right {
    align-items: flex-start;
  }

  .btn-yellow {
    font-size: 14px;
    padding: 10px 20px;
    min-height: 44px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 200px);
    gap: 10px;
  }

  .gallery-small-1,
  .gallery-small-2,
  .gallery-small-3,
  .gallery-small-4,
  .gallery-small-5 {
    grid-column: span 1;
    grid-row: span 1;
    grid-column-start: auto;
    grid-row-start: auto;
  }

  /* Documents section fixes */
  .documents-title {
    font-size: 28px;
  }

  .documents-description {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .btn-documents {
    font-size: 14px;
    padding: 12px 24px;
    min-height: 44px;
  }

  /* Blog section fixes */
  .blog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
  }

  .blog-title {
    font-size: 24px;
  }

  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .blog-image {
    height: 180px;
  }

  .blog-content {
    padding: 16px;
  }

  .blog-card-title {
    font-size: 16px;
    min-height: auto;
  }

  /* Contact section fixes */
  .contact {
    padding: 40px 15px !important;
  }

  .contact-container {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    max-width: 100% !important;
  }

  .contact-form-wrapper {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    right: auto !important;
    top: auto !important;
    margin-top: 20px !important;
    padding: 30px 20px !important;
  }

  .form-title {
    font-size: 24px;
  }

  .contact-item {
    gap: 10px;
    padding: 16px 0;
  }

  .contact-label {
    font-size: 16px;
  }

  .contact-value {
    font-size: 14px;
  }

  .btn-green {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Tablet Responsive for Sections (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {

  .resources,
  .gouvernance,
  .vision,
  .culture,
  .documents,
  .blog {
    padding: 60px 40px;
  }

  /* Gallery adjustments for tablet */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 250px);
  }

  .gallery-small-1,
  .gallery-small-2 {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-small-3 {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-small-4,
  .gallery-small-5 {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Blog grid for tablet */
  .blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px !important;
  }

  /* Contact form positioning for tablet */
  .contact-form-wrapper {
    right: 5%;
    width: 400px;
  }

  .form-title {
    font-size: 28px;
  }
}

/* Small Tablet for Sections (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {

  .resources,
  .gouvernance,
  .vision,
  .culture,
  .documents,
  .blog {
    padding: 50px 25px;
  }

  .vision-header {
    flex-direction: row;
    align-items: flex-start;
  }

  .vision-title {
    font-size: 28px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 220px);
  }

  .contact-form-wrapper {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    margin-top: 20px !important;
    padding: 25px 15px !important;
  }

  .contact-info {
    padding: 20px 0 !important;
  }
}

/* Documents Section */
.documents {
  background: linear-gradient(135deg, #3A8B7A 0%, #2C6B5E 100%);
  padding: 80px 112px;
  position: relative;
  overflow: hidden;
}

.documents::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url('../images/background.png') no-repeat right center;
  background-color: var(--primary-green);
  background-blend-mode: overlay;
}

.documents-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.documents-title {
  font-size: 48px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

.documents-description {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  max-width: 800px;
}

.btn-documents {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-yellow);
  color: #000;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-documents svg {
  stroke: currentColor;
}

.btn-documents:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 206, 21, 0.4);
}

/* Blog Section */
.blog {
  background: white;
  padding: 80px 80px;
}

.blog-header {
  max-width: 1400px;
  margin: 0 auto 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-title {
  font-size: 40px;
  font-weight: 700;
  color: #000;
  margin: 0;
}

.btn-green-outline {
  display: inline-block;
  background: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-green-outline:hover {
  background: var(--primary-green);
  color: white;
}

.blog-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-card a {
  text-decoration: none;
}

.blog-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 24px;
}

.blog-date {
  display: block;
  font-size: 14px;
  color: #999;
  margin-bottom: 12px;
}

.blog-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin-bottom: 16px;
  line-height: 1.4;
  min-height: 56px;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: gap 0.2s ease;
}

.blog-link:hover {
  gap: 12px;
}

.blog-link svg {
  stroke: currentColor;
}

/* Contact Section */
.contact {
  position: relative;
  background: var(--background-gray);
  padding: 0px 20px;
}

.contact-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info {
  padding: 40px;
  border-radius: 12px;
}

.contact-item {
  display: flex;
  gap: 20px;
  padding: 24px 0 !important;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  stroke: var(--primary-green);
}

.contact-label {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin-bottom: 8px;
}

.contact-value {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  text-decoration: none;
}

.contact-value.c {
  color: #1879C2 !important;
  text-decoration: none;
}

.contact-value:hover {
  color: var(--primary-green);
}

.contact-divider {
  height: 1px;
  background: #E0E0E0;
}

.contact-map {
  margin-top: 30px;
  border-radius: 12px;
  overflow: hidden;
}

.contact-form-wrapper {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 10;
  width: 550px;
}

.form-title {
  font-size: 32px;
  font-weight: 700;
  color: #000;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.required {
  color: var(--primary-red);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-green);
}

.btn-submit {
  width: 100%;
  background: var(--primary-yellow);
  color: #000;
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 206, 21, 0.4);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 300px;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('../images/Heros-1-1.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 112px;
}

.hero-overlay {
  text-align: center;
  color: white;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

/* Mayor Section */
.mayor-section {
  background: white;
  padding: 80px 120px;
}

.mayor-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: start;
}

.mayor-image {
  position: sticky;
  top: 100px;
  height: 500px;
}

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

.mayor-content {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #000;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--primary-green);
  border-radius: 2px;
}

.mayor-text {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
}

.mayor-text strong {
  color: var(--primary-green);
  font-weight: 700;
}

.mayor-signature {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.signature-logo {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.signature-text {
  flex: 1;
}

.signature-name {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin: 0 0 4px 0;
}

.signature-title {
  font-size: 16px;
  color: var(--primary-green);
  font-weight: 600;
  margin: 0;
}

/* Responsive for Mayor Page */
@media (max-width: 1200px) {
  .mayor-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mayor-image {
    position: relative;
    top: 0;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 200px;
    padding: 60px 20px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 6px 18px;
  }

  .mayor-section {
    padding: 60px 20px;
  }

  .section-title {
    font-size: 24px;
  }

  .mayor-text {
    font-size: 15px;
  }

  .mayor-signature {
    flex-direction: column;
    text-align: center;
  }

  .signature-logo {
    width: 50px;
    height: 50px;
  }

  .signature-name {
    font-size: 18px;
  }

  .signature-title {
    font-size: 14px;
  }
}