/*
 * website.css
 * Styles pour les pages du site web
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  background-color: #fffcf8;
}

h2 {
  padding-left: 15px;
  position: relative;
}

h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 80%;
  background-color: #0e4858;
}

.btn-white {
  background-color: #fff;
  color: #0e4858;
  border: 1px solid #0e4858;
}

.btn-white:hover {
  background-color: #0e4858;
  color: #fff;
  border: 1px solid #fff;
}

header {
  width: 100%;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fffcf8;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: relative;
  z-index: 100;
}

@media (max-width: 600px) {
  .header-logo {
    width: 120px;
  }
  .header-nav {
    width: 100vw;
    max-width: 100vw;
    padding: 70px 15px 20px 15px;
  }
}

@media (max-width: 1024px) {
  .header-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background: #fffcf8;
    box-shadow: 0 -2px 8px rgba(14,72,88,0.08);
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0 18px 0;
    z-index: 120;
  }
  .header-nav.open ~ .header-actions {
    display: flex;
  }
}

header .header-logo {
  width: 180px;
  height: auto;
  position: relative;
  z-index: 999;
}

header .header-actions {
  display: flex;
  gap: 15px;
}

header .header-actions .btn{
  font-size: .9rem;
}

.header-nav a {
  padding: 3px 20px;
  text-decoration: none;
  color: #0e4858;
  font-weight: 500;
  position: relative;
  transition: background .2s, color .2s;
}

.header-nav a::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 80%;
  background-color: #bbbbbb;
  transform: translateY(-50%);
}

.header-nav a:last-child::after {
  content: none;
}

.header-nav a span {
  position: relative;
}

.header-nav a span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: #0e4858;
  transition: width .3s;
}

.header-nav a:hover span::after {
  width: 100%;
}

.header-nav a:hover {
  color: #0e4858;
}

.banner {
  width: 100%;
  height: 80vh;
  background-image: url('/images/banner.png');
  background-position: center;
  color: #fff;
  display: flex;
  justify-content: center;
  flex-direction: column;
  font-size: 2.5rem;
  letter-spacing: 2px;
  position: relative;
  padding: 0 4rem;
}

.banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80vh;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(14, 72, 88, 0.7) 100%);
  z-index: 2;
}

.banner h1 {
  position: relative;
  z-index: 3;
  font-size: 2.3rem;
  text-align: left;
}

.banner p {
  position: relative;
  z-index: 3;
  font-size: 1.2rem;
}

.banner-collection-type {
  width: 100%;
  height: 40vh;
  background-position: center;
  color: #fff;
  display: flex;
  justify-content: center;
  flex-direction: column;
  font-size: 2.5rem;
  letter-spacing: 2px;
  position: relative;
  padding: 0 4rem;
}

.banner-collection-type .banner-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40vh;
  object-fit: cover;
  z-index: 1;
}

.banner-collection-type::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40vh;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(14, 72, 88, 0.7) 100%);
  z-index: 2;
}

.banner-collection-type .banner-content {
  position: relative;
  z-index: 3;
}

.banner-collection-type .banner-content h1 {
  margin-left: 15px;
  position: relative;
}

.banner-collection-type .banner-content h1::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 80%;
  background-color: #0e4858;
}

.banner-collection-type .banner-content p {
  font-size: 1.2rem;
}

.section {
  background-image: url('/images/points-background.svg');
}

.section.padding-top-reduce .container{
  padding-top: 5rem;
}

.section .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 10rem 0;
  gap: 2rem;
}

.section.reverse {
  flex-direction: row-reverse;
}

.section-image {
  flex: 1 1 40%;
  min-width: 280px;
  max-width: 420px;
  height: 260px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.section-content {
  flex: 1 1 60%;
  color: #333;
  padding: 1rem 2rem;
}

/* FAQ Accordion */
.faq-accordion {
  margin-top: 2.5rem;
}

.faq-item + .faq-item {
  margin-top: 1.2rem;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: #0e4858;
  color: #fff;
  border: none;
  padding: 1rem 1.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  outline: none;
  position: relative;
}

.faq-question[aria-expanded="true"] {
  background: #145e74;
}

.faq-question::after {
  content: '\25BC';
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.2s;
}

.faq-question[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  background: #fff;
  color: #222;
  border-radius: 0 0 8px 8px;
  padding: 1.1rem 1.2rem 1.2rem 1.2rem;
  margin-top: 0;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(14,72,88,0.04);
}

.section.reverse {
  background-color: #0e4858;
  color: #fff;
  padding: 5rem 2rem;
}

.section.reverse p, .section.reverse h2 {
  color: #fff;
}

.section.reverse h2::before {
  background-color: #fff;
}

footer .footer-copyright {
  width: 100%;
  background: #0e4858;
  color: #fff;
  padding: 10px;
  text-align: center;
  margin-top: 4rem;
}

footer .footer-copyright p {
  margin: 0;
  font-size: .8rem;
}

@media (max-width: 900px) {
  .section {
    flex-direction: column;
    gap: 1.5rem;
  }
  .section.reverse {
    flex-direction: column;
  }
  .section-content {
    padding: 1rem 0.5rem;
  }
}

#presentation-section .section-image {
  max-height: 100%;
  height: auto;
}

#multi-type-section .section-content p {
  max-width: 665px;
  margin-top: 15px;
}

#multi-type-section .section-content .btn {
  display: inline-block;
  margin: 0 auto;
}

#multi-type-section .section-content .actions {
  width: 100%;
  text-align: center;
  margin-top: 60px;
}

#collection-types-section .section-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  flex: 1 1 40%;
  max-width: 100%;
}

#collection-types-section .section-content {
  flex: 1 1 40%;
}

#collection-types-section .section-cards .collection-type-link {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(14,72,88,0.08);
  padding: 2rem 1rem;
  text-align: center;
  text-decoration: none;
  color: #0e4858;
  transition: all .2s;
}

#collection-types-section .section-cards .collection-type-link p {
  font-weight: 600; 
  font-size: 1.1rem;
  margin: 0
}

#collection-types-section .section-cards .collection-type-link:hover {
  background: #0e4858;
  color: #fff;
  transform: rotate(2deg);
}


#collection-types-section .section-cards .collection-type-link:nth-child(even):hover {
  transform: rotate(-2deg);
}


#export-section {
  padding: 0;
}

#export-section .section-image {
  flex: 1 1 60%;
  max-width: 500px;
}

#export-section .section-content {
  flex: 1 1 40%;
}

#export-section .section-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

#offline-section .container {
  padding: 5rem 0;
}

.swiperCollectionItems {
  margin-top: 6rem;
}

.swiperCollectionItems .swiper-slide {
  padding: 20px 0;
}

.swiperCollectionItems .swiper-slide:nth-child(even) {
  transform: rotate(-3deg);
}

.swiperCollectionItems .swiper-slide:nth-child(odd) {
  transform: rotate(3deg);
}

/* Specific styles for Stamp page */
#page-stamp #faq-section .container {
  padding: 4rem 0;
}

#page-stamp #cta-section .container {
  padding: 4rem 0;
}

#page-stamp .section.reverse {
  padding: 0
}

#page-stamp #custom-stamp-section .section-image img {
  max-width: 230px;
}

#page-stamp .section.reverse .section-image{
  height: fit-content;
  object-fit: contain;
}

/* Specific styles for Writing Pen page */
#page-writing-pen #faq-section .container {
  padding: 4rem 0;
}

#page-writing-pen #cta-section .container {
  padding: 4rem 0;
}

#page-writing-pen .section.reverse {
  padding: 0
}

#page-writing-pen #custom-writing-pen-section .section-image img {
  max-width: 230px;
}

#page-writing-pen .section.reverse .section-image{
  height: fit-content;
  object-fit: contain;
}

/* Specific styles for Bean page */
#page-bean #coming-soon-section .container {
  padding: 5rem 0 0 0;
}

/* Specific styles for Souvenir Medal page */
#page-souvenir-medal #faq-section .container {
  padding: 4rem 0;
}

#page-souvenir-medal #cta-section .container {
  padding: 4rem 0;
}

#page-souvenir-medal .section.reverse {
  padding: 0
}

#page-souvenir-medal #custom-souvenir-medal-section .section-image img {
  max-width: 200px;
}

#page-souvenir-medal .section.reverse .section-image{
  height: fit-content;
  object-fit: contain;
}

/* Specific styles for Collection Types page */
#page-collection-types .section.reverse {
  padding: 0;
}

/* Specific styles for Registration Coming Soon page */
#page-register-comming-soon #registration-banner {
  background-color: #0e4858;
  padding: 2.5rem 0;
}

#page-register-comming-soon #registration-banner .container {
  padding: 0;
}

#page-register-comming-soon #registration-banner h1 {
  margin: 0;
  font-size: 2rem;
  color: #fff;
  margin-left: 15px;
  position: relative;
}

#page-register-comming-soon #registration-banner h1::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 80%;
  background-color: #fff;
}

#page-register-comming-soon #registration-message .container {
  padding: 5rem 0;
  text-align: center;
}

#page-register-comming-soon #registration-message h2 {
  padding-left: 0;
}

#page-register-comming-soon #registration-message h2::before {
  content: none;
}

#page-register-comming-soon #registration-message p {
  max-width: 600px;
  margin: 15px auto 0 auto;
}

#page-register-comming-soon .swiperCollectionItems {
  margin-top: 0;
}

/* Burger button */
.header-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 120;
}
.header-burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #0e4858;
  margin: 4px 0;
  border-radius: 2px;
  transition: all .3s;
}

@media (max-width: 1024px) {
  body {
    padding-bottom: 60px;
  }
  .header-burger {
    display: flex;
  }
  .header-nav {
    position: fixed;
    top: 0;
    left: 100vw;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    background: #fffcf8;
    box-shadow: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0 0 0;
    gap: 0;
    transition: left .3s cubic-bezier(.4,0,.2,1);
    z-index: 110;
  }
  .header-nav.open {
    left: 0;
  }
  .header-nav a {
    font-size: 1rem;
    padding: 20px 0;
    width: 100vw;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    display: block;
  }
  .header-nav a::after {
    content: none;
  }
  .header-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-shadow: none;
  }
  body.nav-open {
    overflow: hidden;
  }
  .banner {
    height: 60vh;
    padding: 0 1.5rem;
  }
  .banner::after {
    height: 60vh;
  }
  .section .container {
    padding: 5rem 1.5rem !important;
  }
  #offline-section .section-image img{
    max-width: 100px;
    max-height: 100px;
  }
  #offline-section .section-image{
    max-height: 100px;
  }
}