/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue-main: #C4E7FB;
  --blue-secondary: #A2DAFA;
  --grey-title: #535353;
  --grey-body: #343434;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --max-width: 1280px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--grey-body);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Baloo 2', cursive;
  font-weight: 400;
  color: var(--grey-title);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER / NAVBAR ===== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header__logo img {
  height: 56px;
  width: auto;
}

.header__logo-white {
  display: block;
}

.header__logo-dark {
  display: none;
}


.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header .container {
  opacity: 1;
}

.header__nav a {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: width 0.3s;
}

.header__nav a:hover::after {
  width: 100%;
}

.header__nav a:hover {
  color: var(--blue-secondary);
}

.btn-commander {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 15px;
  background: var(--blue-main);
  color: var(--grey-title);
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, transform 0.15s;
}

.btn-commander:hover {
  background: var(--blue-secondary);
  transform: translateY(-1px);
}

/* Hamburger */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.header__burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-image: url('../assets/images/hero/hero_home.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  /* aspect ratio matching the image proportions */
  aspect-ratio: 1024 / 410;
  max-height: 580px;
}

/* ===== CATEGORIES GRID ===== */
.categories {
  padding: 40px 0 28px;
  position: relative;
}

.categories .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.categories__arrow {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--grey-title);
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
  flex-shrink: 0;
}

.categories__arrow:hover {
  color: var(--blue-secondary);
}

.categories__track {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  overflow: hidden;
  width: 100%;
}

.category-item {
  position: relative;
  flex: 1;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}

.category-item:hover {
  transform: translateY(-4px);
}

.category-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.category-item--center {
  background: var(--blue-main);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-item--center .category-item__img {
  width: 60%;
  height: auto;
  object-fit: contain;
}

.category-item__label {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-family: 'Baloo 2', cursive;
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  line-height: 1.2;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--grey-title);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--grey-body);
  margin-bottom: 32px;
  max-width: 600px;
}

/* ===== TABLEAU DES DEPARTS ===== */
.tableau {
  padding: 48px 0 56px;
  border-bottom: 1px solid #e8e8e8;
}

.tableau__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}

.tableau__header-left {
  max-width: 600px;
}

.btn-voir {
  display: inline-block;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 15px;
  background: var(--blue-main);
  color: var(--grey-title);
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s;
  white-space: nowrap;
  margin-top: 8px;
}

.btn-voir:hover {
  background: var(--blue-secondary);
  transform: translateY(-1px);
}

.tableau__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.tableau__main-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.tableau__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tableau__cards .product-card {
  box-shadow: none;
  border-radius: 0;
}

.tableau__cards .product-card:hover {
  box-shadow: none;
}

.tableau__cards .product-card__img {
  border-radius: var(--radius);
  box-shadow: none;
}

.tableau__cards .product-card__body {
  padding: 14px 0 18px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.product-card__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.product-card__body {
  padding: 12px 14px;
}

.product-card__tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--blue-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-card__title {
  font-family: 'Baloo 2', cursive;
  font-size: 16px;
  color: var(--grey-title);
  margin-bottom: 4px;
  line-height: 1.3;
}

.product-card__desc {
  font-size: 13px;
  color: #888;
  line-height: 1.4;
}

.product-card__price {
  font-family: 'Baloo 2', cursive;
  font-size: 18px;
  color: var(--grey-title);
  margin-top: 6px;
}

/* ===== VOS COUPS DE COEUR ===== */
.coups-de-coeur {
  padding: 48px 0;
  background: var(--white);
}

.coups-de-coeur__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.coups-de-coeur__header .section-title {
  margin-bottom: 0;
}

.coups-de-coeur__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.coups-de-coeur .product-card {
  box-shadow: none;
  border-radius: 0;
}

.coups-de-coeur .product-card:hover {
  box-shadow: none;
}

.coups-de-coeur .product-card__img {
  height: 220px;
  border-radius: var(--radius);
  box-shadow: none;
}

.coups-de-coeur .product-card__body {
  padding: 14px 0 18px;
}

.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-secondary);
  text-decoration: none;
  transition: color 0.25s;
}

.product-card__cta i {
  font-size: 13px;
  color: var(--blue-secondary);
}

.product-card__cta:hover {
  color: #5ab0e0;
}

.product-card__icons {
  display: flex;
  gap: 10px;
}

.product-card__icons i {
  font-size: 14px;
  cursor: pointer;
  transition: color 0.25s;
}

.product-card__icons .icon--red {
  color: #e85d3a;
}

.product-card__icons .icon--orange {
  color: #e8a43a;
}

.product-card__icons .icon--blue {
  color: var(--blue-secondary);
}

/* ===== QUAI DES PROS ===== */
.quai-pros {
  background: var(--blue-main);
  padding: 56px 0;
}

.quai-pros .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.quai-pros__text h2 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 20px;
}

.quai-pros__text p {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.7;
}

.quai-pros__img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* ===== BANDE DECORATIVE ===== */
.bande-decorative {
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.bande-decorative img {
  width: 100%;
  height: auto;
}

.bande-decorative--flipped {
  transform: rotate(180deg);
}

/* ===== NOS ACTUALITES ===== */
.actualites {
  padding: 56px 0;
}

.actualites__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.actualites__header .section-title {
  margin-bottom: 0;
}

.actualites__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.article-card {
  cursor: pointer;
  transition: transform 0.25s;
}

.article-card:hover {
  transform: translateY(-4px);
}

.article-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.article-card__title {
  font-family: 'Baloo 2', cursive;
  font-size: 18px;
  color: var(--grey-title);
  margin-bottom: 6px;
}

.article-card__excerpt {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}

.article-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-title);
  text-decoration: none;
  transition: color 0.25s, gap 0.25s;
}

.article-card__link i {
  font-size: 12px;
  transition: transform 0.25s;
}

.article-card__link:hover {
  color: #5ab0e0;
}

.article-card__link:hover i {
  transform: translateX(4px);
}

/* ===== INSTAGRAM ===== */
.instagram {
  padding: 56px 0;
  background: var(--white);
}

.instagram__row {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.instagram__left {
  flex: 0 0 280px;
}

.instagram__left .section-title {
  margin-bottom: 16px;
  font-size: 22px;
  line-height: 1.3;
}

.instagram__left p {
  font-size: 14px;
  color: var(--grey-body);
  line-height: 1.6;
  margin-bottom: 20px;
}

.instagram__photos {
  flex: 1;
  display: flex;
  gap: 14px;
}

.instagram__item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  flex: 1;
  aspect-ratio: 1;
  cursor: pointer;
}

.instagram__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.instagram__item:hover img {
  transform: scale(1.08);
}

.instagram__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(162, 218, 250, 0);
  transition: background 0.3s;
}

.instagram__item:hover::after {
  background: rgba(162, 218, 250, 0.2);
}

.instagram__socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.instagram__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--grey-title);
  font-size: 16px;
  color: var(--grey-title);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.instagram__socials a:hover {
  color: var(--blue-secondary);
  border-color: var(--blue-secondary);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--blue-main);
  padding: 48px 24px;
}

.footer__card {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1.4fr;
  gap: 32px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  padding: 40px 48px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.footer__logo img {
  height: 56px;
  margin-bottom: 16px;
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__socials a {
  font-size: 20px;
  color: var(--grey-title);
  transition: color 0.2s;
}

.footer__socials a:hover {
  color: var(--blue-secondary);
}

.footer__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.footer__map iframe {
  width: 100%;
  height: 200px;
  border: none;
}

.footer__links h4 {
  font-family: 'Baloo 2', cursive;
  font-size: 18px;
  color: var(--grey-title);
  margin-bottom: 16px;
}

.footer__links ul li {
  margin-bottom: 8px;
}

.footer__links ul li a {
  font-size: 14px;
  color: var(--grey-body);
  transition: color 0.2s;
}

.footer__links ul li a:hover {
  color: var(--blue-secondary);
}

.footer__bottom {
  display: none;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 13px;
  color: #aaa;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */

/* --- Tablette --- */
@media (max-width: 1024px) {
  .hero {
    aspect-ratio: auto;
    height: 50vh;
    min-height: 320px;
  }

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

  .categories__track {
    flex-wrap: wrap;
    gap: 16px;
  }

  .category-item {
    flex: 1 1 calc(50% - 16px);
    aspect-ratio: 16/9;
  }

  .category-item__label {
    font-size: 18px;
  }

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

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

  .tableau__header {
    flex-direction: column;
    gap: 12px;
  }

  .coups-de-coeur__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .actualites__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

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

  .footer__card {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 32px 28px;
  }

  .footer__map {
    grid-column: 1 / -1;
  }
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .header__nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .header__nav a {
    color: var(--grey-title) !important;
  }

  .header__nav .btn-commander {
    color: var(--grey-title) !important;
  }

  .header__nav.open {
    display: flex;
  }

  .header__burger {
    display: flex;
  }

  .hero {
    aspect-ratio: auto;
    height: 40vh;
    min-height: 250px;
  }

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

  .categories__track {
    gap: 12px;
  }

  .category-item__label {
    font-size: 16px;
  }

  .coups-de-coeur__grid {
    grid-template-columns: 1fr 1fr;
  }

  .quai-pros .container {
    grid-template-columns: 1fr;
  }

  .quai-pros__text h2 {
    font-size: 26px;
  }

  .instagram__row {
    flex-direction: column;
  }

  .instagram__left {
    flex: none;
    width: 100%;
  }

  .footer__card {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }
}

/* --- Petit mobile --- */
@media (max-width: 480px) {
  .hero {
    aspect-ratio: auto;
    height: 35vh;
    min-height: 200px;
  }

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

  .categories__track {
    gap: 8px;
  }

  .category-item__label {
    font-size: 13px;
    bottom: 8px;
    left: 8px;
  }

  .coups-de-coeur__grid {
    grid-template-columns: 1fr;
  }

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

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

  .product-card__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .instagram__photos {
    flex-direction: column;
  }

  .instagram__item {
    width: 100%;
  }
}

/* ===== POPUP CHOIX LIVRAISON / CLICK & COLLECT (toutes les pages) ===== */
.popup-choix {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.popup-choix.is-open {
  opacity: 1;
  visibility: visible;
}

.popup-choix__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.popup-choix__box {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.popup-choix.is-open .popup-choix__box {
  transform: scale(1);
}

.popup-choix__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--grey-title);
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
}

.popup-choix__close:hover {
  background: #f0f0f0;
  color: var(--grey-body);
}

.popup-choix__content {
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.popup-choix__option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: background 0.2s;
}

.popup-choix__option:hover {
  background: rgba(0, 0, 0, 0.04);
}

.popup-choix__icon {
  font-size: 2rem;
  color: var(--grey-title);
}

.popup-choix__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--grey-title);
  letter-spacing: 0.02em;
}

.popup-choix__desc {
  font-size: 0.9rem;
  font-weight: 400;
  color: #888;
}

.popup-choix__separator {
  display: block;
  height: 1px;
  background: #e0e0e0;
  margin: 0 8px;
}
