/* =========================================================================
   La Tournée des Producteurs — site vitrine statique
   Design porté depuis l'ancien projet Angular/Ionic (variables.scss + global.scss)
   ========================================================================= */

/* ---- Design tokens (ex variables.scss :root) ---- */
:root {
  --ion-color-primary: #003c3a;
  --ion-color-primary-transparent: rgba(0, 60, 58, 0.8);
  --ion-color-primary-contrast: rgb(249, 246, 240);
  --ion-color-primary-contrast-transparent: rgba(249, 246, 240, 0.8);
  --ion-color-primary-shade: #585757;

  --ion-color-secondary: #ee940d;
  --ion-color-secondary-transparent: rgba(238, 148, 13, 0.8);
  --ion-color-secondary-contrast: #ffffff;
  --ion-color-secondary-contrast-transparent: rgba(255, 255, 255, 0.8);

  --ion-color-tertiary: #062f5c;
  --ion-color-tertiary-transparent: rgba(6, 47, 92, 0.8);

  --ion-color-success: #339933;
  --ion-color-warning: #ee940d;
  --ion-color-danger: #660033;
  --ion-color-medium: #585757;
  --ion-color-light: #f4f5f8;

  --header-height: 64px;
}

/* ---- Reset / base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  font-family: "Fira Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background-color: var(--ion-color-primary-contrast);
  color: var(--ion-color-primary-shade);
  min-height: 100vh;
}
img {
  max-width: 100%;
}
a {
  text-decoration: none;
}

/* ---- Typographie (ex global.scss) ---- */
h1 {
  text-align: left;
  font-weight: 800;
  color: var(--ion-color-primary);
}
h2 {
  text-align: center;
  font-weight: 600;
  color: var(--ion-color-primary);
}
h3 {
  margin: 2px 0;
  padding: 2px 10px;
  color: var(--ion-color-secondary);
}
p {
  color: var(--ion-color-primary-shade);
  line-height: 150%;
}
li {
  line-height: 150%;
}

/* ---- Logo ---- */
.logo {
  width: 250px;
}

/* =========================================================================
   Header (ex info-header / ion-toolbar) + menu latéral (ex ion-menu)
   ========================================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--header-height);
  background: var(--ion-color-primary-contrast);
  text-align: center;
}
.topbar .menu-toggle {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ion-color-primary);
}
.topbar .menu-toggle svg {
  width: 26px;
  height: 26px;
}
.topbar .logo-small {
  width: 150px;
}
@media (min-width: 641px) {
  .topbar .logo-small {
    width: 180px;
  }
}

/* Menu drawer */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--ion-color-primary-contrast);
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.drawer-header {
  text-align: center;
  padding: 16px 0;
}
.drawer-header img {
  width: 160px;
}
.drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.drawer li a,
.drawer li .menu-social {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  color: var(--ion-color-primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  cursor: pointer;
}
.drawer li a:hover {
  background: rgba(0, 0, 0, 0.04);
}
.drawer li a img,
.drawer li a svg,
.menu-social img {
  width: 22px;
  height: 22px;
}
.menu-social {
  gap: 18px;
}
.menu-social img {
  cursor: pointer;
}
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
/* Toggle via checkbox caché (#menu-switch) */
#menu-switch {
  display: none;
}
#menu-switch:checked ~ .drawer {
  transform: translateX(0);
}
#menu-switch:checked ~ .backdrop {
  opacity: 1;
  visibility: visible;
}

/* =========================================================================
   Conteneurs de mise en page (ex global.scss)
   ========================================================================= */
.content {
  display: block;
  width: 100%;
}
.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1000px;
}
.top-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 40px;
}
.center .producer,
.center .consumer {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: center;
  align-items: center;
  padding: 40px 10px;
}
.center .consumer {
  background-color: var(--ion-color-secondary-contrast);
}
.center .producer .info {
  justify-content: space-evenly;
}
.center .producer img {
  height: 200px;
}
.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 16px;
}
.small-section {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* ---- Lignes d'info (2 colonnes responsives) ---- */
.info {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  flex-wrap: wrap;
}
.info ul {
  list-style-image: url("/assets/icons/icon-small.png");
  padding-inline-start: 30px;
}
.info li {
  font-size: 16px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  color: var(--ion-color-primary-shade);
}
.info .box {
  margin: 30px;
  padding: 30px;
  flex-direction: column;
  align-items: center;
  display: flex;
  border-radius: 10px;
  color: var(--ion-color-primary);
}
.info .box .icon,
.info .box img.icon {
  width: 40px;
  height: 40px;
  flex: none;
}
.info .box h1 {
  margin-bottom: 0;
  margin-top: 16px;
}
.info .pictos {
  margin-top: 16px;
  flex-direction: row;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
.info .pictos .btn,
.info .pictos .picto {
  color: var(--ion-color-secondary);
  background: transparent;
  border: 1px solid rgba(238, 148, 13, 0.4);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 16px;
}
.info .pictos .btn img,
.info .pictos .picto img {
  width: 18px;
  height: 18px;
}
.info .small-box {
  height: 280px;
  width: 250px;
  color: var(--ion-color-secondary-contrast);
}
.info .small-box h1 {
  color: var(--ion-color-secondary-contrast);
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 20px;
}
.info .small-box p {
  text-align: justify;
  hyphens: auto;
}
.info .small-box p {
  margin: 0;
  text-align: center;
  color: var(--ion-color-secondary-contrast);
}
.info .long-box {
  height: 450px;
  width: 300px;
  text-align: center;
}
.info .long-box:hover {
  border: 1px solid var(--ion-color-secondary-contrast);
}
.info .producer-box {
  background-color: var(--ion-color-primary-transparent);
  color: var(--ion-color-secondary-contrast);
}
.info .consumer-box {
  background-color: var(--ion-color-secondary-transparent);
  color: var(--ion-color-secondary-contrast);
}
.info .standard-box {
  background-color: var(--ion-color-primary-contrast-transparent);
  border: 1px solid var(--ion-color-primary-contrast);
}
.info .standard-box h1 {
  color: var(--ion-color-tertiary);
}
.info .white-background {
  background-color: var(--ion-color-secondary-contrast-transparent);
}

/* ---- Bandeaux de message colorés ---- */
.message {
  width: 100%;
  padding: 10px;
}
.message h2 {
  color: var(--ion-color-secondary-contrast);
  font-size: 1rem;
  margin: 0;
  padding: 0;
  text-align: center;
}
.message h3 {
  color: var(--ion-color-secondary-contrast);
  font-size: 0.6rem;
  text-align: center;
  margin-bottom: 0;
  padding: 0;
}
.primary {
  background-color: var(--ion-color-primary-transparent);
  color: var(--ion-color-secondary-contrast);
}
.primary h1 {
  color: var(--ion-color-secondary-contrast);
}
.secondary {
  background-color: var(--ion-color-secondary-transparent);
  color: var(--ion-color-secondary-contrast);
}
.secondary h1 {
  color: var(--ion-color-secondary-contrast);
}
.tertiary {
  background-color: var(--ion-color-tertiary-transparent);
  color: var(--ion-color-secondary-contrast);
}
.tertiary h1 {
  color: var(--ion-color-secondary-contrast);
}

/* ---- Screenshots ---- */
.screenshots {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  padding: 0;
  margin-bottom: 30px;
}
.screenshots img {
  flex: 0 1 auto;
  width: 200px;
  height: 376px;
  margin-right: 15px;
  margin-bottom: 15px;
  filter: drop-shadow(2px 2px 1px var(--ion-color-primary-contrast));
}

/* =========================================================================
   Boutons (ex ion-button)
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  box-shadow: none;
  border: 2px solid transparent;
  padding: 11px 18px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-transform: none;
  line-height: 1;
}
.btn img,
.btn svg {
  width: 18px;
  height: 18px;
}
.btn-secondary {
  background: var(--ion-color-secondary);
  color: var(--ion-color-secondary-contrast);
}
.btn-secondary-outline {
  background: transparent;
  color: var(--ion-color-secondary);
  border-color: var(--ion-color-secondary);
}
.btn-outline {
  background: transparent;
  color: var(--ion-color-primary);
  border-color: var(--ion-color-primary);
}
.btn-clear {
  background: transparent;
  border: none;
  padding: 8px;
  color: var(--ion-color-primary);
}
.bigbutton {
  padding: 14px 22px;
  border-radius: 20px;
  margin: 6px;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

/* =========================================================================
   Bannières (ex banner / banner-large)
   ========================================================================= */
.banner {
  height: 100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: url("/assets/photos/banner.png") no-repeat center center / cover
    var(--ion-color-primary-contrast);
}
.banner h1 {
  font-size: 20px;
}
.banner h1,
.banner h2 {
  color: var(--ion-color-tertiary);
}
.banner .header-slogan {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 20px;
}
@media (min-width: 641px) {
  .banner {
    height: 200px;
    background: url("/assets/photos/banner.png") no-repeat center center
      var(--ion-color-primary-contrast);
  }
  .banner h1 {
    font-size: inherit;
  }
}

.banner-large {
  height: 364px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: url("/assets/photos/header.png") no-repeat center center
    var(--ion-color-primary-contrast);
}
.banner-large h1,
.banner-large h2 {
  color: var(--ion-color-tertiary);
}
.banner-large .info {
  justify-content: flex-start;
  padding: 10px 40px;
}
.banner-large .header-img {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.banner-large .header-img img {
  max-height: 250px;
  max-width: 150px;
}
.banner-large .header-slogan {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.banner-large .header-slogan h1 {
  text-align: left;
}
@media (min-width: 641px) {
  .banner-large .header-slogan {
    padding: 20px;
    width: 60%;
  }
}
@media (min-width: 1001px) {
  .banner-large .header-slogan {
    padding: 20px;
    width: 40%;
  }
}

/* =========================================================================
   Footer (ex info-bottom)
   ========================================================================= */
.footer {
  background-color: var(--ion-color-primary);
  width: 100%;
  padding: 40px 20px;
  color: var(--ion-color-primary-contrast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.footer h1 {
  text-align: center;
  color: var(--ion-color-primary-contrast);
}
.footer .info {
  margin-bottom: 30px;
}
.footer .link {
  text-align: center;
  color: var(--ion-color-primary-contrast);
  cursor: pointer;
}
.footer .horizontal {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 210px;
  height: 120px;
  padding: 10px;
  border-radius: 5px;
  color: var(--ion-color-primary-contrast);
  cursor: pointer;
}
.footer .horizontal img,
.footer .horizontal svg {
  width: 28px;
  height: 28px;
  margin-right: 10px;
  flex: none;
}
.footer .horizontal:hover {
  color: var(--ion-color-secondary);
}
.footer .store-badges {
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.footer .store-badges img {
  width: 80px;
  margin: 0 10px;
  cursor: pointer;
}

/* ---- Utilitaires ---- */
.pointer {
  cursor: pointer;
}
.wrap {
  white-space: pre-wrap;
}
.horizontal {
  display: flex;
  flex-direction: row;
}

/* ---- flex-item (banner-large / sections) ---- */
.flex-item-image {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.flex-item-image img {
  margin-top: 20px;
  align-self: center;
}
.flex-item-text ul {
  margin-top: 0;
}
@media (max-width: 640px) {
  .flex-item-image {
    order: 1;
    width: 100%;
    margin-top: 40px;
    margin-bottom: 20px;
  }
  .flex-item-text {
    order: 2;
    width: 100%;
  }
  .large-screen {
    display: none;
  }
}
@media (min-width: 641px) {
  .flex-item-image {
    align-self: stretch;
    width: 40%;
  }
  .flex-item-text {
    padding: 20px 0;
    width: 60%;
  }
  .flex-item-text:last-child {
    padding-left: 20px;
  }
  .flex-item-text:first-child {
    padding-right: 20px;
  }
  .info h2 {
    text-align: left;
  }
  .small-screen {
    display: none;
  }
}
