.apropos-section {
    position: relative;
    width: 100%;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Dark overlay + background image */
.apropos-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), /* dark overlay */
        url('/Origami/static/images/apropos.jpeg');       /* background image */
    background-size: cover;
    background-position: center;
    z-index: 0; /* behind the text */
}

/* Keep the content above the overlay */
.apropos-content {
    position: relative;
    z-index: 1;
}

.apropos-content h1 {
    color: white;
    font-size: 4rem;
    font-weight: bold;
    text-align: left;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    width: max-content;
}



/* ================================
   HISTOIRE SECTION
   ================================ */
.histoire-section {
    padding: 80px 0;
}

.histoire-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.histoire-title {
    font-size: 42px;
    font-weight: 600;
    margin: 0;
}

.histoire-subtitle {
    color: #d70000;
    margin-top: 5px;
    font-size: 18px;
}

.histoire-logo-container {
    display: flex;
    align-items: center;
}

.histoire-logo {
    width: 90px;
    height: 90px;
}

/* ================================
   Cards
   ================================ */
.histoire-cards {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
}

.histoire-card {
    display: flex;
    align-items: center;
    gap: 32px;
}
.histoire-card p {
    padding: 24px;
}

/* Alternate the direction for even cards */
.histoire-card:nth-child(even) {
    flex-direction: row-reverse;
}

/* Card image */
.histoire-card-img {
    width: 40%;
    height: 29rem;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Card text */
.histoire-card h3 {
    margin-top: 0;
    font-size: 28px;
    font-weight: 500;
}

.histoire-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}


/* Text container inside card */
.histoire-card > h3,
.histoire-card > p,
.histoire-card > .voir-plus {
    width: 50%;
}

/* ================================
   Bottom A propos button
   ================================ */
.histoire-apropos-wrapper {
    width: 100%;
    text-align: center;
    margin-top: 40px;
}

.histoire-apropos-btn {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 10px 30px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0;
    transition: 0.3s ease;
}

.histoire-apropos-btn:hover {
    background: #333;
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 992px) {
    .histoire-card {
        flex-direction: column !important;
        text-align: center;
    }
.histoire-section {
    padding-top: 50px 0;
    padding-bottom: 0px;
}
.o_origami_restaurants {
  padding-bottom: 60px;
}
    .histoire-card > h3,
    .histoire-card > p,
    .histoire-card > .voir-plus,
    .histoire-card-img {
        width: 100%;
    }

    .histoire-card-img {
        height: auto;
    }
}




/* RESTAURANTS SECTION */
.o_origami_restaurants {
  padding: 60px 0;
}

.restaurants-title {
  text-align: center;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 1px;
  color: #333;
  margin-bottom: 40px;
}

.pickup-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
}

.restaurants-list,
.pickup-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.restaurant-card {
  display: block;
  padding: 28px 30px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(80, 48, 24, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(48, 24, 8, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.restaurant-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(48, 24, 8, 0.12);
}

.restaurant-card.selected {
  background: #ed1f24;
  border-color: #ed1f24;
}

.restaurant-info {
  flex: 1;
}

.restaurant-info h4 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: #19130f;
}

.restaurant-info p {
  margin: 10px 0 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #5f5145;
}

.restaurant-card.selected .restaurant-info h4,
.restaurant-card.selected .restaurant-info p {
  color: #fff;
}

.pickup-map-wrap {
  min-width: 0;
}

.restaurants-map {
  width: 100%;
  min-height: 430px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(80, 48, 24, 0.12);
  box-shadow: 0 22px 44px rgba(48, 24, 8, 0.12);
  background: #f4ede4;
}

/* Responsive Design - ensure proper column layout on tablets and mobile */
@media (max-width: 768px) {
  .restaurants-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .pickup-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .restaurants-map {
    min-height: 350px;
  }

  .restaurant-card {
    padding: 22px 20px;
  }

  .restaurant-info h4 {
    font-size: 16px;
  }

  .restaurant-info p {
    font-size: 13px;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .restaurants-title {
    font-size: 24px;
  }

  .restaurants-map {
    min-height: 300px;
  }
}


/* FRANCHISE SECTION */
.franchise-section {
  width: 100%;
  padding: 0;
}

.franchise-container {
  display: flex;
  align-items: stretch;
  height: 400px;
  padding-bottom: 50px;
}

.franchise-content {
  flex: 1;
  background-color: #E41E26;
  color: white;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.franchise-content h2 {
  font-size: 36px;
  font-weight: 300;
  margin: 0 0 30px 0;
  letter-spacing: 0.5px;
}

.franchise-content p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 30px 0;
  max-width: 500px;
}

.franchise-btn {
  display: inline-block;
  background-color: #1a1a1a;
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s ease;
  width: fit-content;
  border: none;
  cursor: pointer;
}

.franchise-btn:hover {
  background-color: #333;
}

.franchise-btn span {
  margin-left: 8px;
}

.franchise-image {
  flex: 1;
  overflow: hidden;
}

.franchise-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .franchise-container {
    flex-direction: column;
    min-height: auto;
  }

  .franchise-content {
    padding: 40px 30px;
  }

  .franchise-content h2 {
    font-size: 28px;
  }

  .franchise-content p {
    font-size: 14px;
  }

  .franchise-image {
    min-height: 300px;
  }
}

/* ===============================
   APROPOS SECTION – FIX MOBILE VH
================================= */


/* Tablet & mobile */
@media (max-width: 768px) {
    .apropos-section {
        min-height: 70svh;  /* stable viewport height */
    }
}

/* Small phones */
@media (max-width: 480px) {
    .apropos-section {
        min-height: 80svh;
    }
}

/* ===============================
   APROPOS – RESPONSIVE TEXT
================================= */

/* Tablet */
@media (max-width: 992px) {
    .apropos-content h1 {
        font-size: 3.2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .apropos-content h1 {
        font-size: 2.4rem;
        text-align: center;
        width: 100%;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .apropos-content h1 {
        font-size: 2rem;
    }
}
