/* Accommodation pages : pages using the "Hébergement en blocs" template (templates/hebergement-blocs.php)
   Reference : mockup « Le collège anglais LEC » v13.10
   Loaded after layout.css, blocks.css, product.css, country.css and themes.css (shared components), without lec.css. Scripts : assets/js/product.js */
/* Variables of layout.less and blocks.less (lecsl.less keeps its own, in inc/main.less) */
/* Top of the page ------------------------------------------------------------ */
.lec-ftop {
  width: 1280px;
  max-width: 90%;
  margin: 0 auto;
  padding: 8px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lec-ftop h1 {
  margin: 0;
  max-width: 22em;
  color: #094679;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  text-wrap: balance;
}
@media only screen and (max-width: 640px) {
  .lec-ftop h1 {
    font-size: 24px;
  }
}
.lec-ftop__lead {
  margin: 0;
  max-width: 80ch;
  font-size: 17px;
  line-height: 1.6;
}
.lec-ftop__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}
@media only screen and (max-width: 640px) {
  .lec-ftop__facts {
    grid-template-columns: 1fr;
  }
}
.lec-ftop__facts li {
  list-style: none;
  padding: 10px 14px;
  border-left: 4px solid #e10000;
  border-radius: 0 6px 6px 0;
  background: #f2f7fc;
  color: #094679;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
}
.lec-ftop__facts sup {
  font-size: 0.7em;
}
.lec-ftop .lec-phone {
  margin: 0;
  font-size: 14px;
  color: #094679;
}
.lec-fcar {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #094679;
}
.lec-fcar__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.lec-fcar__track::-webkit-scrollbar {
  display: none;
}
.lec-fcar__slide.lec-figure {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
  aspect-ratio: 16 / 7;
}
@media only screen and (max-width: 640px) {
  .lec-fcar__slide.lec-figure {
    aspect-ratio: 4 / 3;
  }
}
.lec-fcar__slide.lec-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lec-fcar__slide.lec-figure figcaption {
  display: block;
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 130px);
  margin: 0;
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(9, 40, 70, 0.78);
  color: #FFFFFF;
  font-size: 13px;
  line-height: 1.3;
  font-style: normal;
  text-align: left;
}
.lec-fcar__arrow {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #094679;
  font-size: 22px;
  line-height: 32px;
  cursor: pointer;
}
.lec-fcar__arrow:hover,
.lec-fcar__arrow:focus {
  background: #FFFFFF;
}
.lec-fcar__arrow.is-prev {
  left: 10px;
}
.lec-fcar__arrow.is-next {
  right: 10px;
}
@media only screen and (max-width: 640px) {
  .lec-fcar__arrow {
    display: none;
  }
}
.lec-fcar__dots {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 5px;
}
.lec-fcar__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.lec-fcar__dot:hover,
.lec-fcar__dot:focus {
  background: rgba(255, 255, 255, 0.8);
}
.lec-fcar__dot[aria-current="true"] {
  background: #FFFFFF;
}
/* Text parts ------------------------------------------------------------------ */
.lec-formule-page .lec-psec .lec-box-title {
  margin: 0 !important;
  padding: 10px 16px 2px;
  border: 1px solid #dbe3ec;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  color: #27a6cf;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lec-formule-page .lec-psec .lec-box-title + ul {
  margin-top: 0 !important;
  padding: 2px 16px 10px 32px;
  border: 1px solid #dbe3ec;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  font-size: 15px;
}
.lec-formule-page .lec-psec .wp-block-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media only screen and (max-width: 640px) {
  .lec-formule-page .lec-psec .wp-block-columns {
    grid-template-columns: 1fr;
  }
}
.lec-formule-page .lec-psec .wp-block-table {
  margin: 14px 0;
  overflow-x: auto;
}
.lec-formule-page .lec-psec .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.lec-formule-page .lec-psec .wp-block-table th,
.lec-formule-page .lec-psec .wp-block-table td {
  padding: 7px 9px;
  border: 1px solid #dbe3ec;
  border-radius: 0;
  text-align: left;
  vertical-align: top;
}
.lec-formule-page .lec-psec .wp-block-table thead th {
  background: #f2f7fc;
  color: #094679;
}
.lec-formule-page .lec-psec .wp-block-table figcaption {
  margin: 0 0 6px;
  caption-side: top;
  font-size: 13px;
  color: #5b6b78;
}
.lec-formule-page .lec-psec .lec-links {
  font-size: 15px;
}
.lec-formule-page .lec-psec--week,
.lec-formule-page .lec-psec--formula-photos {
  border-top: 0;
}
.lec-formule-page .lec-psec--week .lec-psec__inner,
.lec-formule-page .lec-psec--formula-photos .lec-psec__inner {
  padding-top: 0;
}
.lec-formule-page .lec-psec--week h2 {
  font-size: 16px;
}
.lec-fphotos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media only screen and (max-width: 640px) {
  .lec-fphotos {
    grid-template-columns: 1fr;
  }
}
.lec-fphotos .lec-figure {
  margin: 0;
}
.lec-fphotos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}
.lec-fphotos figcaption {
  margin-top: 4px;
  font-size: 13px;
  color: #5b6b78;
  text-align: left;
}
/* Cards of the sejours : grid on desktop, scroll by group on mobile --------------- */
.lec-fgroup[hidden] {
  display: none;
}
.lec-fgroup__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 8px !important;
  font-size: 14px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #27a6cf !important;
}
.lec-fcards {
  list-style: none;
  margin: 0;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px !important;
}
@media only screen and (max-width: 640px) {
  .lec-fcards {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    margin: 0 -16px;
    padding: 0 16px 6px !important;
  }
}
.lec-fcard {
  list-style: none !important;
}
.lec-fcard[hidden] {
  display: none;
}
@media only screen and (max-width: 640px) {
  .lec-fcard {
    flex: 0 0 76%;
    scroll-snap-align: center;
  }
}
.lec-fcard a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 8px 10px 12px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #FFFFFF;
  color: #1d2b36 !important;
  font-size: 13px;
  font-weight: 400 !important;
  line-height: 1.45;
  text-decoration: none;
}
.lec-fcard a:hover {
  border-color: #094679;
}
.lec-fcard__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  margin-bottom: 4px;
  object-fit: cover;
  border-radius: 6px;
}
.lec-fcard__image.is-empty {
  background: #f2f7fc;
}
.lec-fcard__title {
  color: #094679;
  font-size: 15px;
  line-height: 1.25;
}
.lec-fcard__periods,
.lec-fcard__where,
.lec-fcard__text {
  color: #5b6b78;
}
.lec-fcard__dates {
  color: #094679;
}
@media only screen and (min-width: 641px) {
  .lec-fcard__dates {
    display: none;
  }
}
@media only screen and (max-width: 640px) {
  .lec-fcard__periods {
    display: none;
  }
}
.lec-fcard__price {
  margin-top: auto;
  padding-top: 2px;
}
.lec-fcard__go {
  color: #e10000;
  font-weight: 700;
}
/* Table themes × periods : computer only, it stays in the code --------------------- */
.lec-ftable {
  margin-top: 18px;
}
@media only screen and (max-width: 640px) {
  .lec-ftable .lec-tp-wrap {
    display: none;
  }
  .lec-ftable h3 {
    display: none;
  }
}
.lec-ftable h3 {
  margin: 0 0 6px;
  color: #094679;
  font-size: 16px;
}
.lec-ftable td {
  font-size: 13px;
  text-align: center;
}
.lec-ftable td small {
  white-space: nowrap;
  color: #5b6b78;
}
.lec-ftable tbody th {
  font-weight: 500;
}
.lec-ftable tbody th a {
  color: #094679 !important;
  font-weight: 500 !important;
}
.lec-ftable tr[hidden] {
  display: none;
}
.lec-ftable__group th {
  background: #f2f7fc;
  color: #094679;
  font-weight: 700;
  text-align: left;
}
.lec-ftable__icon {
  display: inline-block;
  width: 38px;
  margin-right: 6px;
  color: #f90;
  font-family: lec-icons;
  font-style: normal;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
}
.lec-ftable__note {
  margin: 8px 0 0;
  font-size: 13px;
  color: #5b6b78;
}
.lec-formule-page .lec-flag {
  display: inline-block;
  width: 24px;
  height: auto;
  margin-right: 8px;
  vertical-align: -2px;
}
.lec-formule-page .lec-fgroup__title .lec-flag {
  margin-right: 0;
}
@media only screen and (max-width: 640px) {
  .lec-formule-page .lec-table-wide table {
    min-width: 620px;
  }
}
/* Places ---------------------------------------------------------------------------- */
.lec-fplaces {
  list-style: none;
  margin: 14px 0 0;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px !important;
}
@media only screen and (max-width: 900px) {
  .lec-fplaces {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media only screen and (max-width: 640px) {
  .lec-fplaces {
    grid-template-columns: 1fr;
  }
}
.lec-fplace {
  list-style: none !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px 12px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #FFFFFF;
  font-size: 13.5px;
  line-height: 1.45;
}
.lec-fplace__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-bottom: 6px;
  object-fit: cover;
  border-radius: 6px;
}
.lec-fplace__county {
  color: #5b6b78;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lec-fplace__name {
  color: #094679;
  font-size: 16px;
}
.lec-fplace__themes a {
  color: #094679 !important;
  font-weight: 400 !important;
  text-decoration: underline;
}
.lec-fplace__periods {
  color: #5b6b78;
  font-size: 13px;
}
/* Prices ---------------------------------------------------------------------------- */
.lec-fprices tbody th {
  font-weight: 500;
  color: #094679;
}
.lec-fprices__price {
  white-space: nowrap;
  font-weight: 700;
  color: #094679;
}
/* Parts with a photo : the photo is in the content (core/image aligned right), the text wraps around it ---- */
.lec-formule-page .lec-psec__text:has(> .wp-block-image) {
  display: block;
}
.lec-formule-page .lec-psec__text:has(> .wp-block-image)::after {
  content: "";
  display: block;
  clear: both;
}
.lec-formule-page .lec-psec__text:has(> .wp-block-image) > * {
  margin-top: 0;
  margin-bottom: 10px;
}
.lec-formule-page .lec-psec__text:has(> .wp-block-image) > .wp-block-image {
  float: right;
  width: 42%;
  margin: 2px 0 12px 24px;
}
@media only screen and (max-width: 640px) {
  .lec-formule-page .lec-psec__text:has(> .wp-block-image) > .wp-block-image {
    float: none;
    width: 100%;
    margin: 0 0 12px;
  }
}
.lec-formule-page .lec-psec__text:has(> .wp-block-image) > .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
}
.lec-formule-page .lec-psec__text:has(> .wp-block-image) > .wp-block-columns,
.lec-formule-page .lec-psec__text:has(> .wp-block-image) > .wp-block-table,
.lec-formule-page .lec-psec__text:has(> .wp-block-image) > .lec-enbref {
  clear: both;
}
.lec-formule-page .lec-note {
  font-size: 14px;
  color: #5b6b78;
}
.lec-formule-page .lec-quote:not(:has(img)) {
  display: block;
  padding: 4px 0 4px 14px;
  border-left: 4px solid #e10000;
  border-radius: 0;
  background: none;
}
.lec-formule-page .lec-quote:not(:has(img)) blockquote {
  font-size: 15px;
}
.lec-formule-page .lec-quote:not(:has(img)) figcaption {
  margin-top: 4px;
}
