/* ==========================================================================
   Phlox 2.11.1 â€” couche de design appliquee au site Foodmax
   Source : phlox.2.11.1 (GT3themes) â€” css/theme-styles.css
   Tokens : Raleway / #1bb0ce / #3d3d3d / #eaeaea / radius 3px / transition 300ms
   Chargee apres css/style.css, elle prevails sur le design historique.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css?family=Raleway:300,400,500,600,700,800&display=swap");

:root {
  --phlox-primary: #4a7a18;
  --phlox-primary-dark: #2f5010;
  --phlox-primary-soft: #edf2e2;
  --phlox-accent: #a13a20;
  --phlox-text: #33382c;
  --phlox-heading: #22261c;
  --phlox-muted: #6b7263;
  --phlox-border: #e3e8da;
  --phlox-border-strong: #d2dac4;
  --phlox-bg: #ffffff;
  --phlox-bg-alt: #f4f6ef;
  --phlox-radius: 3px;
  --phlox-radius-lg: 5px;
  --phlox-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --phlox-tr: all 300ms var(--phlox-ease);
  --phlox-shadow: 0 1px 3px rgba(61, 61, 61, 0.08);
  --phlox-shadow-hover: 0 6px 24px rgba(61, 61, 61, 0.12);
  --phlox-font: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* --------------------------------------------------------------- base --- */

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--phlox-font);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--phlox-text);
  background-color: var(--phlox-bg);
  letter-spacing: 0.1px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--phlox-font);
  color: var(--phlox-heading);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.2px;
  transition: var(--phlox-tr);
}

h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 17px; }
h6 { font-size: 15px; }

p { color: var(--phlox-text); margin-bottom: 18px; }

a {
  color: var(--phlox-primary);
  text-decoration: none;
  transition: var(--phlox-tr);
}
a:hover { color: var(--phlox-primary-dark); }

hr {
  border: 0;
  border-top: 1px solid var(--phlox-border);
  margin: 32px 0;
}

img { max-width: 100%; height: auto; }

/* --------------------------------------------------------- en-tete --- */

header.header {
  position: relative;
  background-color: var(--phlox-bg);
  border-bottom: 1px solid var(--phlox-border);
  box-shadow: var(--phlox-shadow);
  z-index: 900;
}

.header-social { display: flex; gap: 8px; }

/* logo centre, taillePhlox */
.header-logo {
  display: flex !important;
  justify-content: center;
  align-items: center;
  margin: 0 !important;
  padding: 22px 0 14px;
}
.header-logo img {
  width: auto;
  max-height: 62px;
  height: auto;
  transition: var(--phlox-tr);
}
.header-logo a:hover img { opacity: 0.85; }

/* Anciens styles .menu / #menu-derouler / #searchtoggl / #searchbar /
   #searchform : remplaces par la barre .fm-nav (voir plus haut). */
/* ------------------------------------------------------- produits --- */

.posts {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 40px 0 60px;
}

body .post {
  flex: 0 1 280px;
  max-width: 280px;
  background: var(--phlox-bg);
  border: 1px solid var(--phlox-border);
  border-radius: var(--phlox-radius);
  overflow: hidden;
  transition: var(--phlox-tr);
}
body .post:hover {
  border-color: var(--phlox-border-strong);
  box-shadow: var(--phlox-shadow-hover);
  transform: translateY(-4px);
}

.post-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--phlox-bg-alt);
  aspect-ratio: 4 / 3;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--phlox-ease);
}
.post:hover .post-thumb img { transform: scale(1.06); }

.post-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 54px;
  height: 54px;
  line-height: 54px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--phlox-primary);
  font-size: 20px;
  opacity: 0;
  transition: var(--phlox-tr);
}
.post:hover .post-icon { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.post-content { padding: 20px 22px 24px; }
.post-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}
.post-title a { color: var(--phlox-heading); }
.post-title a:hover { color: var(--phlox-primary); }
.post-content p { margin: 0; font-size: 13.5px; color: var(--phlox-muted); }

/* -------------------------------------------------------- boutons --- */

.btn,
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
a.recalc,
a.checkout,
button.checkout {
  /* border-box : sans ca, un bouton passe a width:100% (barres d'action du
     hero en colonne sous 560 px) deborde de la largeur de son conteneur,
     pad + border s'ajoutant a la largeur declaree. */
  box-sizing: border-box;
  display: inline-block;
  padding: 11px 26px;
  font-family: var(--phlox-font);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #fff;
  background-color: var(--phlox-primary);
  border: 1px solid var(--phlox-primary);
  border-radius: var(--phlox-radius);
  cursor: pointer;
  transition: var(--phlox-tr);
}
.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
a.recalc:hover,
a.checkout:hover,
button.checkout:hover {
  color: #fff;
  background-color: var(--phlox-primary-dark);
  border-color: var(--phlox-primary-dark);
  box-shadow: 0 4px 14px rgba(74, 122, 24, 0.32);
}

/* variante contournee */
.btn-outline,
a.btn-secondary {
  color: var(--phlox-primary);
  background-color: transparent;
  border-color: var(--phlox-border-strong);
}
.btn-outline:hover,
a.btn-secondary:hover {
  color: #fff;
  background-color: var(--phlox-primary);
  border-color: var(--phlox-primary);
}

/* -------------------------------------------------------- tableaux --- */

body .table-sty {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-family: var(--phlox-font);
  font-size: 14px;
  color: var(--phlox-text);
  min-width: 400px;
  background: var(--phlox-bg);
  border: 1px solid var(--phlox-border);
  border-radius: var(--phlox-radius);
  overflow: hidden;
  box-shadow: var(--phlox-shadow);
}
body .table-sty thead tr { background-color: var(--phlox-bg-alt); color: var(--phlox-heading); }
body .table-sty thead th {
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  text-align: left;
  color: var(--phlox-heading);
  border-bottom: 1px solid var(--phlox-border);
}
body .table-sty th,
body .table-sty td { padding: 14px 16px; border-bottom: 1px solid var(--phlox-border); }
body .table-sty tbody tr { border-bottom: 1px solid var(--phlox-border); transition: var(--phlox-tr); }
body .table-sty tbody tr:hover { background-color: var(--phlox-primary-soft); }
body .table-sty tbody tr:nth-of-type(even) { background-color: transparent; }
body .table-sty tbody tr:last-of-type { border-bottom: 0; }

/* ------------------------------------------------------ formulaires --- */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea,
.form-control {
  width: 100%;
  max-width: 100%;
  padding: 12px 16px;
  font-family: var(--phlox-font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--phlox-text);
  background-color: var(--phlox-bg);
  border: 1px solid var(--phlox-border);
  border-radius: var(--phlox-radius);
  outline: none;
  box-shadow: none;
  transition: var(--phlox-tr);
}
input:focus,
select:focus,
textarea:focus,
.form-control:focus {
  border-color: var(--phlox-primary);
  box-shadow: 0 0 0 3px var(--phlox-primary-soft);
}
textarea { min-height: 150px; resize: vertical; }

label {
  display: block;
  margin-bottom: 7px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--phlox-heading);
}

/* --------------------------------------------------------- footer --- */

body .footer {
  position: relative;
  top: 0 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0;
  padding: 46px 24px !important;
  margin-top: 60px;
  background: #2f2f2f;
  overflow: hidden;
}
/* neutralise la dalle blanche en skewX du design historique */
body .footer.background4,
body .footer.background4:before,
body .footer.background4:after { background: #2f2f2f !important; }
body .footer.background4 { background-image: none !important; }
body .footer.background4:before,
body .footer.background4:after { display: none !important; }

.footer-content {
  position: static;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 22px 0 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 0 !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-family: var(--phlox-font) !important;
  font-size: 13.5px !important;
  text-align: center;
  letter-spacing: 0.4px;
}
.footer-content a { color: var(--phlox-primary); }
.footer-content a:hover { color: #fff; }

/* ------------------------------------------------- divers / utiles --- */

.background4 { position: static !important; top: 0 !important; height: auto !important; }

.w3l_sign_in_register ul li a { display: block; }

/* modale de connexion */
.modal-content {
  border: 0;
  border-radius: var(--phlox-radius-lg);
  box-shadow: var(--phlox-shadow-hover);
  overflow: hidden;
  font-family: var(--phlox-font);
}
.modal-header,
.modal-footer { border-color: var(--phlox-border); }
.modal-title { font-weight: 700; color: var(--phlox-heading); }

/* fil d'ariane / pagination */
body .pagination,
body .pagination ul { display: flex; gap: 6px; justify-content: center; margin: 40px 0; padding: 0; list-style: none; }
body .pagination a,
body .pagination span {
  min-width: 38px;
  height: 38px;
  line-height: 38px;
  padding: 0 12px;
  text-align: center;
  border: 1px solid var(--phlox-border);
  border-radius: var(--phlox-radius);
  color: var(--phlox-text);
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--phlox-tr);
}
body .pagination a:hover,
body .pagination .active span,
body .pagination span.active {
  color: #fff;
  background: var(--phlox-primary);
  border-color: var(--phlox-primary);
}

/* titres de section avec accent Phlox */
.section-title,
.posts-title {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 26px;
  font-size: 26px;
  font-weight: 700;
  color: var(--phlox-heading);
  border-bottom: 1px solid var(--phlox-border);
}
.section-title:after,
.posts-title:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 60px;
  height: 2px;
  background: var(--phlox-primary);
}

/* ==========================================================================
   BARRE DE NAVIGATION SUPERIEURE
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fm-nav {
  position: relative;
  z-index: 900;
  background: var(--phlox-bg);
  border-bottom: 1px solid var(--phlox-border);
  box-shadow: var(--phlox-shadow);
}

.fm-nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1240px;
  min-height: 92px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------- logo --- */

.fm-nav-logo { display: flex; align-items: center; flex: 0 0 auto; }
.fm-nav-logo img {
  display: block;
  width: auto;
  /* logo 2170x725 (ratio 3:1) : on borne la hauteur ET la largeur pour qu'il
     ne pousse jamais le menu hors de l'ecran sur les petits ecrans. */
  max-height: 56px;
  max-width: 290px;
  height: auto;
  transition: var(--phlox-tr);
}
.fm-nav-logo:hover img { opacity: 0.85; }

/* --------------------------------------------------------- menu burger --- */

.fm-nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.fm-nav-burger span {
  display: block;
  height: 2px;
  margin: 5px 8px;
  background: var(--phlox-heading);
  border-radius: 2px;
  transition: var(--phlox-tr);
}
.fm-nav.is-open .fm-nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fm-nav.is-open .fm-nav-burger span:nth-child(2) { opacity: 0; }
.fm-nav.is-open .fm-nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------------- navigation --- */

.fm-nav-menu { margin-left: auto; }
.fm-nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fm-nav-list > li { position: relative; }

.fm-nav-list > li > a {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-family: var(--phlox-font);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--phlox-heading);
  white-space: nowrap;
}
.fm-nav-list > li > a:after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--phlox-primary);
  transform: scaleX(0);
  transition: transform 300ms var(--phlox-ease);
}
.fm-nav-list > li > a:hover,
.fm-nav-list > li.is-current > a { color: var(--phlox-primary); }
.fm-nav-list > li > a:hover:after,
.fm-nav-list > li.is-current > a:after { transform: scaleX(1); }

.fm-sub-toggle i { margin-left: 5px; font-size: 11px; transition: var(--phlox-tr); }
.fm-nav-list > li.has-sub.is-open > .fm-sub-toggle i { transform: rotate(180deg); }

/* sous-menu produits */
.fm-sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 224px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--phlox-bg);
  border: 1px solid var(--phlox-border);
  border-radius: var(--phlox-radius);
  box-shadow: var(--phlox-shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: var(--phlox-tr);
}
.fm-nav-list > li.has-sub:hover > .fm-sub,
.fm-nav-list > li.has-sub.is-open > .fm-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.fm-sub li a {
  display: block;
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--phlox-text);
  border-left: 2px solid transparent;
  transition: var(--phlox-tr);
}
.fm-sub li a:hover {
  color: var(--phlox-primary);
  background: var(--phlox-bg-alt);
  border-left-color: var(--phlox-primary);
  padding-left: 24px;
}
.fm-sub .fm-sub-all { margin-top: 6px; border-top: 1px solid var(--phlox-border); padding-top: 6px; }
.fm-sub .fm-sub-all a { font-weight: 700; color: var(--phlox-primary); }

/* --------------------------------------------------------- recherche --- */

.fm-nav-actions { display: flex; align-items: center; flex: 0 0 auto; }

.fm-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 15px;
  color: var(--phlox-heading);
  background: transparent;
  border: 0;
  border-radius: var(--phlox-radius);
  cursor: pointer;
  transition: var(--phlox-tr);
}
.fm-search-toggle:hover {
  color: #fff;
  background: var(--phlox-primary);
}

.fm-searchbar {
  display: none;
  border-top: 1px solid var(--phlox-border);
  background: var(--phlox-bg-alt);
}
.fm-searchbar.is-open { display: block; }
.fm-searchbar-inner { max-width: 1240px; margin: 0 auto; padding: 18px 24px; }

.fm-searchbar form {
  display: none;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
  padding: 5px 5px 5px 18px;
  background: var(--phlox-bg);
  border: 1px solid var(--phlox-border);
  border-radius: 100em;
  transition: var(--phlox-tr);
}

/* L affichage du formulaire est porte par l etat .is-open, jamais par un
   display inline ecrit par JavaScript : sur telephone Android, un slideDown()
   suivi immediatement d un focus ouvrait le clavier virtuel pendant
   l animation de hauteur, et le navigateur scrollait vers une boite encore
   plate. Le resultat : la barre semblait ne pas s ouvrir.
   Cette regle doit rester APRES .fm-searchbar form pour rester lisible. */
.fm-searchbar.is-open form { display: flex; }

.fm-searchbar form:focus-within {
  border-color: var(--phlox-primary);
  box-shadow: 0 0 0 3px var(--phlox-primary-soft);
}
.fm-search-leading { color: var(--phlox-primary); font-size: 14px; }
.fm-searchbar input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  font-family: var(--phlox-font);
  font-size: 14.5px;
  color: var(--phlox-text);
  background: transparent;
  border: 0;
  outline: none;
}
.fm-searchbar input::placeholder { color: #acacac; }
.fm-searchbar button[type="submit"] {
  padding: 10px 24px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #fff;
  background: var(--phlox-primary);
  border: 0;
  border-radius: 100em;
  cursor: pointer;
  transition: var(--phlox-tr);
}
.fm-searchbar button[type="submit"]:hover { background: var(--phlox-primary-dark); }

/* --------------------------------------------------------- responsive --- */

@media (max-width: 991px) {
  .fm-nav-inner { min-height: 76px; flex-wrap: wrap; }
  .fm-nav-logo img { max-height: 44px; max-width: 230px; }
  .fm-nav-burger { display: block; }

  .fm-nav-menu {
    order: 3;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    transition: max-height 320ms var(--phlox-ease);
  }
  .fm-nav.is-open .fm-nav-menu { max-height: 70vh; overflow-y: auto; }

  .fm-nav-list { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 12px; }
  .fm-nav-list > li { border-bottom: 1px solid var(--phlox-border); }
  .fm-nav-list > li > a { padding: 14px 4px; font-size: 13.5px; }
  .fm-nav-list > li > a:after { display: none; }
  .fm-nav-list > li.is-current > a { color: var(--phlox-primary); }

  .fm-sub {
    position: static;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height 300ms var(--phlox-ease);
  }
  .fm-nav-list > li.has-sub.is-open > .fm-sub { max-height: 420px; }
  .fm-sub li a { padding: 11px 4px 11px 18px; border-left: 2px solid transparent; }
  .fm-sub li a:hover { padding-left: 22px; }
  .fm-sub .fm-sub-all { margin-top: 0; padding-top: 0; }
}

@media (max-width: 560px) {
  .fm-nav-inner { padding: 0 14px; }
  .fm-searchbar-inner { padding: 14px; }
  .fm-searchbar button[type="submit"] { padding: 10px 16px; }
}

/* ==========================================================================
   SLIDER "PRODUCTS WE EXPORT"
   ========================================================================== */

.fm-slider { position: relative; max-width: 1240px; margin: 0 auto; }

.fm-slider-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--phlox-radius-lg);
  box-shadow: var(--phlox-shadow-hover);
  background: var(--phlox-bg-alt);
}

.fm-slider-track {
  display: flex;
  /* largeur fixee a celle du cadre : chaque slide fait 100% du cadre et
     la piste deborde sur la droite. Un translateX(-index * 100%) correspond
     alors exactement a un changement de slide (independant du nombre de slides). */
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 620ms var(--phlox-ease);
}
.fm-slider-track.is-dragging { transition: none; }

/* une seule slide visible : chaque diapositive occupe 100% */
.fm-slide {
  flex: 0 0 100%;
  max-width: 100%;
  position: relative;
}
.fm-slide > a {
  position: relative;
  display: block;
  overflow: hidden;
  color: inherit;
}

/* ratio 16/9, respecte sur mobile via aspect-ratio */
.fm-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  transition: transform 900ms var(--phlox-ease);
}
.fm-slide.is-active > a:hover img { transform: scale(1.04); }

.fm-slide-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 46px 30px 30px;
  background: linear-gradient(to top, rgba(16, 22, 26, 0.92) 0%, rgba(16, 22, 26, 0.66) 48%, rgba(16, 22, 26, 0) 100%);
}
.fm-slide-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 13px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: #fff;
  background: var(--phlox-primary);
  border-radius: 100em;
}
.fm-slide-title {
  display: block;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
.fm-slide-meta {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.78);
}

/* ------------------------------------------------------------ fleches --- */

.fm-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  font-size: 18px;
  color: #fff;
  background: rgba(16, 22, 26, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: var(--phlox-tr);
}
.fm-slider:hover .fm-slider-btn,
.fm-slider-btn:focus { opacity: 1; background: var(--phlox-primary); border-color: var(--phlox-primary); }
.fm-slider-prev { left: 20px; }
.fm-slider-next { right: 20px; }

/* ----------------------------------------------------------- pastilles --- */

.fm-slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.fm-slider-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  background: #d4d4d4;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--phlox-tr);
}
.fm-slider-dots button:hover { background: #b0b0b0; }
.fm-slider-dots button.is-active {
  width: 30px;
  border-radius: 100em;
  background: var(--phlox-primary);
}

/* ---------------------------------------------------------- responsive --- */

@media (max-width: 991px) {
  .fm-slider-btn { opacity: 1; width: 40px; height: 40px; font-size: 15px; }
  .fm-slider-prev { left: 12px; }
  .fm-slider-next { right: 12px; }
  .fm-slide-body { padding: 34px 20px 20px; }
  .fm-slide-title { font-size: 22px; }
  .fm-slide-meta { font-size: 12.5px; }
}

@media (max-width: 560px) {
  .fm-slide-body { padding: 26px 16px 16px; }
  .fm-slide-title { font-size: 18px; }
  .fm-slide-tag { font-size: 10px; padding: 4px 10px; margin-bottom: 8px; }
  .fm-slider-dots { margin-top: 16px; }
}

/* ==========================================================================
   ACCUEIL â€” sections Phlox
   ========================================================================== */

.fm-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--phlox-primary-dark);
  background: var(--phlox-primary-soft);
  border-radius: 100em;
}
.on-dark .fm-eyebrow { color: #fff; background: rgba(0, 0, 0, 0.22); }

/* --------------------------------------------------------------- hero --- */

.fm-hero {
  position: relative;
  display: flex;
  align-items: center;
  /* border-box : sinon les 44 px de marge s'ajoutent a la hauteur et le
     hero depasse la fenetre, on apercevrait le debut de la section suivante. */
  box-sizing: border-box;
  /* Banniere plein ecran. 100svh se replie sur 100vh quand le navigateur
     ne connait pas svh : la hauteur reste celle de la fenetre. */
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(36px, 5vh, 64px) clamp(24px, 5vw, 88px);
  /* Aucun aplat vert derriere la photo : on ne voit que la banniere.
     Seuls size/position/repeat sont poses, pas la forme courte "background",
     qui reinitialiserait le background-image pose en ligne dans le HTML. */
  background-size: cover;
  /* ancre en haut : la rangee d'icones occupe le haut de la banniere,
     un centrage vertical la rognerait sur les grands ecrans */
  background-position: 100% top;
  background-repeat: no-repeat;
}
/* Voile uniquement a gauche : le texte blanc garde son contraste, la partie
   droite de la photo (ecriture et icones) reste totalement indemnee. */
.fm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(12, 24, 12, 0.86) 0%,
    rgba(12, 24, 12, 0.80) 38%,
    rgba(12, 24, 12, 0.52) 56%,
    rgba(12, 24, 12, 0.12) 80%,
    rgba(12, 24, 12, 0) 100%);
  pointer-events: none;
}
.fm-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  text-align: left;
}

.fm-hero h1 {
  margin: 0 0 20px;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  letter-spacing: -1px;
}
.fm-hero p {
  margin: 0 0 34px;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}
.fm-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.fm-btn-ghost { color: #fff !important; border-color: rgba(255, 255, 255, 0.55) !important; }
.fm-btn-ghost:hover { color: #fff !important; background: #fff !important; border-color: #fff !important; }

/* ------------------------------------------------------------ sections --- */

.fm-section { padding: 78px 24px; }
.fm-section-alt { background: var(--phlox-bg-alt); }

.fm-section-head {
  max-width: 660px;
  margin: 0 auto 46px;
  text-align: center;
}
.fm-section-head h2 { margin: 0 0 14px; font-size: 34px; }
.fm-section-head p { margin: 0; font-size: 16px; color: var(--phlox-muted); }

/* --------------------------------------------------------------- about --- */

.fm-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px 78px;
}
.fm-about-media img {
  display: block;
  width: 100%;
  border-radius: var(--phlox-radius-lg);
  box-shadow: var(--phlox-shadow-hover);
}
.fm-about-body h2 { margin: 0 0 18px; font-size: 34px; }
.fm-about-body p { font-size: 16px; color: var(--phlox-muted); }

.fm-checks { list-style: none; margin: 26px 0 32px; padding: 0; }
.fm-checks li {
  position: relative;
  padding: 7px 0 7px 32px;
  font-size: 14.5px;
  color: var(--phlox-text);
}
.fm-checks li:before {
  content: "\f00c";
  position: absolute;
  left: 0;
  top: 7px;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-family: FontAwesome;
  font-size: 11px;
  color: #fff;
  background: var(--phlox-primary);
  border-radius: 50%;
}

/* ---------------------------------------------------------- qualities --- */

.fm-quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
  max-width: 1240px;
  margin: 0 auto;
}
.fm-quality {
  padding: 38px 28px;
  text-align: center;
  background: var(--phlox-bg);
  border: 1px solid var(--phlox-border);
  border-radius: var(--phlox-radius);
  transition: var(--phlox-tr);
}
.fm-quality:hover {
  border-color: var(--phlox-primary);
  transform: translateY(-5px);
  box-shadow: var(--phlox-shadow-hover);
}
.fm-quality-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 20px;
  font-size: 25px;
  color: var(--phlox-primary);
  background: var(--phlox-primary-soft);
  border-radius: 50%;
  transition: var(--phlox-tr);
}
.fm-quality:hover .fm-quality-icon { color: #fff; background: var(--phlox-primary); }
.fm-quality h3 { margin: 0 0 10px; font-size: 19px; }
.fm-quality p { margin: 0; font-size: 14px; color: var(--phlox-muted); }

/* ----------------------------------------------------------------- CTA --- */

.fm-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  background-color: #1c2226;
  background-size: cover;
  background-position: center;
  text-align: center;
}
.fm-cta-inner { max-width: 660px; }
.fm-cta h2 { margin: 0 0 14px; font-size: 34px; color: #fff; }
.fm-cta p { margin: 0 0 30px; font-size: 16.5px; color: rgba(255, 255, 255, 0.82); }

/* ------------------------------------------------------------- contact --- */

.fm-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}
.fm-contact-card {
  padding: 34px 26px;
  text-align: center;
  background: var(--phlox-bg);
  border: 1px solid var(--phlox-border);
  border-radius: var(--phlox-radius);
  transition: var(--phlox-tr);
}
.fm-contact-card:hover {
  border-color: var(--phlox-primary);
  box-shadow: var(--phlox-shadow-hover);
}
.fm-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 18px;
  font-size: 21px;
  color: var(--phlox-primary);
  background: var(--phlox-primary-soft);
  border-radius: 50%;
}
.fm-contact-card h3 { margin: 0 0 8px; font-size: 17px; }
.fm-contact-card p { margin: 0; font-size: 14px; color: var(--phlox-muted); }
.fm-contact-card a { color: var(--phlox-primary); font-weight: 600; }

/* ---------------------------------------------------------- responsive --- */

@media (max-width: 991px) {
  /* La banniere reste en fond a toutes les largeurs : il n'y a plus qu'un
     seul mecanisme, donc plus de second bandeau <img> qui en dupliquait
     l'image sous le texte. */
  .fm-hero { padding: clamp(30px, 6vh, 52px) 20px; }
  /* Le texte occupe toute la largeur : le voile passe en degrade vertical.
     Un voile lateral laisserait le milieu trop clair la ou sont les mots. */
  .fm-hero::before {
    background: linear-gradient(180deg,
      rgba(12, 24, 12, 0.76) 0%,
      rgba(12, 24, 12, 0.64) 45%,
      rgba(12, 24, 12, 0.80) 100%);
  }
  .fm-hero h1 { font-size: 36px; }
  .fm-hero p { font-size: 15.5px; margin-bottom: 28px; }
  .fm-hero-actions { justify-content: flex-start; }
  .fm-section { padding: 56px 20px; }
  .fm-section-head h2,
  .fm-about-body h2,
  .fm-cta h2 { font-size: 27px; }
  .fm-about { grid-template-columns: 1fr; gap: 34px; padding: 0 20px 56px; }
}

@media (max-width: 560px) {
  .fm-hero h1 { font-size: 29px; }
  .fm-hero-actions { flex-direction: column; }
  .fm-hero-actions .btn { width: 100%; }
}

/* -------------------------------------------------------------- gallery ---
   Mur photographique : les photos gardent leur ratio d'origine et se
   repartissent en colonnes, ce qui evite les carres vides de la grille
   uniforme. Aucune mesure JS n'est necessaire. */

.fm-gallery {
  column-count: 3;
  column-gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fm-gallery-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 20px;
}
.fm-gallery-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--phlox-radius-lg);
  background: var(--phlox-bg-alt);
  box-shadow: var(--phlox-shadow);
  transition: var(--phlox-tr);
}
.fm-gallery-link:hover,
.fm-gallery-link:focus-visible {
  box-shadow: var(--phlox-shadow-hover);
  transform: translateY(-3px);
}
.fm-gallery-link:focus-visible {
  outline: 3px solid var(--phlox-accent);
  outline-offset: 3px;
}
.fm-gallery-link img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .45s ease;
}
.fm-gallery-link:hover img { transform: scale(1.06); }

/* Voile + loupe : n'apparait qu'au survol ou au focus clavier. */
.fm-gallery-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(180deg,
    rgba(34, 38, 28, 0) 40%,
    rgba(34, 38, 28, 0.55) 100%);
  opacity: 0;
  transition: var(--phlox-tr);
}
.fm-gallery-zoom i {
  font-size: 20px;
  width: 52px;
  height: 52px;
  line-height: 52px;
  text-align: center;
  border-radius: 50%;
  background: var(--phlox-primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  transform: scale(.7);
  transition: transform .3s ease;
}
.fm-gallery-link:hover .fm-gallery-zoom,
.fm-gallery-link:focus-visible .fm-gallery-zoom { opacity: 1; }
.fm-gallery-link:hover .fm-gallery-zoom i,
.fm-gallery-link:focus-visible .fm-gallery-zoom i { transform: scale(1); }

/* Compteurs de la section */
.fm-gallery-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.fm-gallery-stats li {
  padding: 6px 14px;
  font-size: 13px;
  color: var(--phlox-muted);
  background: var(--phlox-primary-soft);
  border: 1px solid var(--phlox-border);
  border-radius: 999px;
}
.fm-gallery-stats strong {
  color: var(--phlox-primary-dark);
  font-weight: 700;
}

@media (max-width: 900px) {
  .fm-gallery { column-count: 2; column-gap: 16px; }
  .fm-gallery-item { margin-bottom: 16px; }
}
@media (max-width: 560px) {
  .fm-gallery { column-count: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .fm-gallery-link,
  .fm-gallery-link img,
  .fm-gallery-zoom,
  .fm-gallery-zoom i { transition: none; }
  .fm-gallery-link:hover { transform: none; }
  .fm-gallery-link:hover img { transform: none; }
}

/* ------------------------------------------------------ responsive --- */

@media (max-width: 991px) {
  .header-logo { padding: 18px 0 10px; }
  .header-logo img { max-height: 50px; }
  .posts { gap: 20px; }
  .post { flex: 0 1 240px; max-width: 240px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
}

@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .post { flex: 0 1 100%; max-width: 100%; }
  .footer { padding: 34px 16px !important; }
}

/* ==========================================================================
   CATALOGUE PRODUITS  ï¿½  products/products.php
   Grille, filtres lateraux, pagination et etat vide, alignes sur les
   tokens Phlox deja utilises par l'accueil.
   ========================================================================== */

/* ------------------------------------------------------- entete de page --- */
.fm-pagehead {
  background: var(--phlox-primary);
  background-image: linear-gradient(120deg, var(--phlox-primary-dark), var(--phlox-primary));
  padding: 58px 0 44px;
}
.fm-pagehead-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}
.fm-pagehead h1 {
  color: #fff;
  margin: 6px 0 10px;
}
.fm-pagehead p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 640px;
  margin-bottom: 18px;
}
.fm-pagehead .fm-eyebrow { color: #fff; background: rgba(0, 0, 0, 0.22); }

.fm-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}
.fm-crumbs li { color: rgba(255, 255, 255, 0.72); }
.fm-crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.5;
}
.fm-crumbs a { color: #fff; }
.fm-crumbs a:hover { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------------- catalogue --- */
.fm-catalog { padding: 52px 0 68px; }
.fm-catalog-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: flex-start;
  gap: 36px;
}

/* --------------------------------------------------------------- filtres --- */
.fm-catalog-side {
  flex: 0 0 250px;
  width: 250px;
  position: sticky;
  top: 90px;
}
.fm-side-title {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--phlox-muted);
  margin-bottom: 14px;
}
.fm-catside-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  border: 1px solid var(--phlox-border);
  border-radius: var(--phlox-radius);
  overflow: hidden;
  background: #fff;
}
.fm-catside-list li + li { border-top: 1px solid var(--phlox-border); }
.fm-catside-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  font-size: 14px;
  color: var(--phlox-text);
  background: #fff;
}
.fm-catside-list a:hover {
  background: var(--phlox-primary-soft);
  color: var(--phlox-primary-dark);
  padding-left: 20px;
}
.fm-catside-list a.is-active {
  background: var(--phlox-primary);
  color: #fff;
  font-weight: 600;
}
.fm-catside-list a.is-active .fm-side-count { background: rgba(255, 255, 255, 0.25); color: #fff; }
.fm-side-count {
  margin-left: auto;
  font-size: 11px;
  background: var(--phlox-bg-alt);
  color: var(--phlox-muted);
  border-radius: 10px;
  padding: 1px 8px;
}
.fm-catside-list .fa-star { color: #f5a623; }
.fm-catside-list a.is-active .fa-star { color: #ffd479; }

.fm-side-cta {
  background: var(--phlox-bg-alt);
  border-radius: var(--phlox-radius);
  padding: 20px;
}
.fm-side-cta h3 { font-size: 17px; margin-bottom: 8px; }
.fm-side-cta p { font-size: 13.5px; margin-bottom: 14px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* --------------------------------------------------------------- grille --- */
.fm-catalog-main { flex: 1 1 auto; min-width: 0; }

.fm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--phlox-border);
}
.fm-toolbar-count { margin: 0; font-size: 14px; color: var(--phlox-muted); }
.fm-toolbar-count strong { color: var(--phlox-heading); }
.fm-toolbar-reset { font-size: 13.5px; color: var(--phlox-accent); }
.fm-toolbar-reset:hover { color: #c0392b; }

.fm-pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 26px;
}

.fm-pcard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--phlox-border);
  border-radius: var(--phlox-radius);
  overflow: hidden;
  box-shadow: var(--phlox-shadow);
  transition: var(--phlox-tr);
}
.fm-pcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--phlox-shadow-hover);
  border-color: var(--phlox-primary);
}

.fm-pcard-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--phlox-bg-alt);
  overflow: hidden;
}
.fm-pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms var(--phlox-ease);
}
.fm-pcard:hover .fm-pcard-media img { transform: scale(1.06); }
.fm-pcard-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(41, 41, 41, 0.82);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 2px;
}

.fm-pcard-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 16px 16px 14px;
}
.fm-pcard-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
  min-height: 1px;
}
.fm-flag {
  font-size: 10.5px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
  font-weight: 600;
}
.fm-flag-star  { background: #fff4e0; color: #b9791f; }
.fm-flag-promo  { background: #fdecea; color: #c0392b; }
.fm-flag-stock  { background: #eef3e4; color: #3a6111; }

.fm-pcard-title { font-size: 17px; margin-bottom: 8px; line-height: 1.35; }
.fm-pcard-title a { color: var(--phlox-heading); }
.fm-pcard-title a:hover { color: var(--phlox-primary); }

.fm-pcard-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--phlox-muted);
  margin-bottom: 14px;
  flex: 1 1 auto;
}

.fm-pcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--phlox-border);
}
.fm-pcard-ref {
  font-size: 12px;
  color: var(--phlox-muted);
  font-family: "Courier New", monospace;
}
.fm-pcard-link { font-size: 13px; font-weight: 600; }

/* ----------------------------------------------------------- etat vide --- */
.fm-empty {
  text-align: center;
  padding: 64px 24px;
  background: var(--phlox-bg-alt);
  border-radius: var(--phlox-radius);
}
.fm-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  color: var(--phlox-primary);
  font-size: 28px;
  margin-bottom: 18px;
}
.fm-empty h2 { font-size: 24px; margin-bottom: 10px; }
.fm-empty p { max-width: 460px; margin: 0 auto 22px; }

.fm-suggest { margin-top: 28px; text-align: center; }
.fm-suggest h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--phlox-muted);
  margin-bottom: 12px;
}
.fm-suggest ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.fm-suggest a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--phlox-border-strong);
  border-radius: 20px;
  font-size: 13px;
  color: var(--phlox-text);
}
.fm-suggest a:hover {
  border-color: var(--phlox-primary);
  color: var(--phlox-primary);
  background: var(--phlox-primary-soft);
}

/* ---------------------------------------------------------- pagination --- */
.fm-pager { margin-top: 42px; }
.fm-pager-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fm-pager-item {
  display: inline-block;
  min-width: 40px;
  padding: 9px 14px;
  text-align: center;
  font-size: 14px;
  border: 1px solid var(--phlox-border);
  border-radius: var(--phlox-radius);
  color: var(--phlox-text);
  background: #fff;
}
a.fm-pager-item:hover {
  border-color: var(--phlox-primary);
  color: var(--phlox-primary);
  background: var(--phlox-primary-soft);
}
.fm-pager-item.is-active {
  background: var(--phlox-primary);
  border-color: var(--phlox-primary);
  color: #fff;
  font-weight: 600;
}
.fm-pager-item.is-disabled {
  color: #c3c3c3;
  background: var(--phlox-bg-alt);
  cursor: default;
}

/* --------------------------------------------------------- adaptations --- */
@media (max-width: 991px) {
  .fm-catalog-inner { flex-direction: column; gap: 28px; }
  .fm-catalog-side {
    flex: 0 0 auto;
    width: 100%;
    position: static;
  }
  .fm-catside-list {
    display: flex;
    flex-wrap: wrap;
    border: 0;
    background: transparent;
    gap: 8px;
  }
  .fm-catside-list li { border: 0; }
  .fm-catside-list li + li { border-top: 0; }
  .fm-catside-list a {
    border: 1px solid var(--phlox-border);
    border-radius: 20px;
    padding: 7px 14px;
    background: #fff;
  }
  .fm-side-cta { display: none; }
}

@media (max-width: 560px) {
  .fm-pagehead { padding: 40px 0 32px; }
  .fm-pgrid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
  .fm-pcard-body { padding: 13px 13px 12px; }
  .fm-pcard-title { font-size: 15.5px; }
  .fm-toolbar { margin-bottom: 18px; }
}

/* ==========================================================================
   PAGE CONTACT  ï¿½  contact.php
   Formulaire, coordonnees et messages de retour AJAX, alignes sur les
   tokens Phlox deja utilises par l'accueil et le catalogue.
   ========================================================================== */

/* ------------------------------------------------------------- structure --- */
.fm-contactwrap { padding: 52px 0 68px; }
.fm-contactwrap-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: flex-start;
  gap: 38px;
}
.fm-contact-form-col { flex: 1 1 62%; min-width: 0; }
.fm-contact-info-col { flex: 0 0 340px; width: 340px; }

/* ----------------------------------------------------------------- cartes --- */
.fm-card {
  background: #fff;
  border: 1px solid var(--phlox-border);
  border-radius: var(--phlox-radius);
  box-shadow: var(--phlox-shadow);
  padding: 34px 34px 36px;
}
.fm-card h2 { font-size: 28px; margin: 4px 0 10px; }
.fm-card-lead {
  font-size: 14px;
  color: var(--phlox-muted);
  margin-bottom: 26px;
  max-width: 460px;
}

/* -------------------------------------------------------------- formulaire --- */
.fm-form .fm-field { margin-bottom: 18px; }
.fm-field-row {
  display: flex;
  gap: 18px;
}
.fm-field-row .fm-field { flex: 1 1 0; min-width: 0; }

.fm-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--phlox-heading);
  margin-bottom: 7px;
}
.fm-form label span { color: var(--phlox-accent); }

.fm-form .form-input,
.fm-form .form-textarea {
  width: 100%;
  display: block;
  font-family: var(--phlox-font);
  font-size: 14.5px;
  color: var(--phlox-text);
  background: var(--phlox-bg-alt);
  border: 1px solid var(--phlox-border-strong);
  border-radius: var(--phlox-radius);
  padding: 11px 14px;
  transition: var(--phlox-tr);
}
.fm-form .form-input:focus,
.fm-form .form-textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--phlox-primary);
  box-shadow: 0 0 0 3px var(--phlox-primary-soft);
}
.fm-form .form-input::placeholder,
.fm-form .form-textarea::placeholder { color: #a8a8a8; }
.fm-form .form-textarea { resize: vertical; min-height: 130px; }

.fm-field-hint { font-size: 12.5px; color: var(--phlox-muted); margin: 7px 0 0; }

.fm-btn-send {
  padding: 13px 30px;
  font-size: 15px;
  border: 0;
  cursor: pointer;
}
.fm-btn-send .fa { margin-right: 8px; }
.fm-btn-send[disabled] {
  opacity: 0.65;
  cursor: default;
}

/* -------------------------------------------------------- messages retour --- */
.fm-form-alert {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 42px 13px 16px;
  border-radius: var(--phlox-radius);
  font-size: 14px;
  margin-bottom: 22px;
  border: 1px solid transparent;
}
.fm-form-alert > .fa { font-size: 16px; margin-top: 2px; }
.fm-form-alert a#hide-message {
  position: absolute;
  top: 8px;
  right: 10px;
  color: inherit;
  opacity: 0.55;
  line-height: 1;
  font-size: 15px;
}
.fm-form-alert a#hide-message:hover { opacity: 1; }

.fm-form-alert-ok {
  background: #eef3e4;
  border-color: #cbdbaf;
  color: #3a6111;
}
.fm-form-alert-warn {
  background: #fff8e6;
  border-color: #f2e0b4;
  color: #96700f;
}
.fm-form-alert-error {
  background: #fdecea;
  border-color: #f5c6c1;
  color: #c0392b;
}

/* ------------------------------------------------------------ coordonnees --- */
.fm-info-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid var(--phlox-border);
  border-radius: var(--phlox-radius);
  box-shadow: var(--phlox-shadow);
  transition: var(--phlox-tr);
}
.fm-info-card:hover {
  border-color: var(--phlox-primary);
  box-shadow: var(--phlox-shadow-hover);
}
.fm-info-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--phlox-primary-soft);
  color: var(--phlox-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.fm-info-card h3 { font-size: 15px; margin-bottom: 6px; }
.fm-info-line {
  font-size: 13.5px;
  color: var(--phlox-muted);
  margin-bottom: 3px;
  line-height: 1.55;
}
.fm-info-line:last-child { margin-bottom: 0; }
.fm-info-line a { font-weight: 600; }

.fm-info-note {
  background: var(--phlox-bg-alt);
  border-radius: var(--phlox-radius);
  padding: 22px;
  margin-top: 20px;
}
.fm-info-note h3 { font-size: 17px; margin-bottom: 8px; }
.fm-info-note p { font-size: 13.5px; margin-bottom: 14px; }

/* --------------------------------------------------------- adaptations --- */
@media (max-width: 991px) {
  .fm-contactwrap-inner { flex-direction: column; gap: 28px; }
  .fm-contact-info-col { flex: 0 0 auto; width: 100%; }
}

@media (max-width: 560px) {
  .fm-card { padding: 26px 20px 28px; }
  .fm-field-row { flex-direction: column; gap: 0; }
  .fm-btn-send { width: 100%; }
}

/* ==========================================================================
   PAGE A PROPOS  ï¿½  about-us.php
   Bloc recit, mission et grille de strategie.
   ========================================================================== */

.fm-about-page {
  padding: 56px 0 24px;
}

/* --------------------------------------------------------------- mission --- */
.fm-mission {
  display: flex;
  align-items: flex-start;
  gap: 44px;
}
.fm-mission-body { flex: 1 1 56%; min-width: 0; }
.fm-mission-body h2 { margin: 6px 0 14px; }
.fm-mission-list {
  flex: 0 0 340px;
  width: 340px;
  /* meme raison que le champ newsletter : width + padding doivent tenir
     dans la largeur du parent, sinon la carte deborde sur petit ecran. */
  box-sizing: border-box;
  background: var(--phlox-bg-alt);
  border-radius: var(--phlox-radius);
  padding: 26px;
}
.fm-mission-list h3 {
  font-size: 16px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--phlox-border-strong);
}
.fm-mission-list .fm-checks { margin-bottom: 0; }
.fm-mission-list .fm-checks li { font-size: 13.5px; }

/* -------------------------------------------------------------- strategie --- */
.fm-strategy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}
.fm-strategy-item {
  background: #fff;
  border: 1px solid var(--phlox-border);
  border-radius: var(--phlox-radius);
  padding: 30px 26px;
  box-shadow: var(--phlox-shadow);
  transition: var(--phlox-tr);
}
.fm-strategy-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--phlox-shadow-hover);
  border-color: var(--phlox-primary);
}
.fm-strategy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--phlox-primary-soft);
  color: var(--phlox-primary);
  font-size: 22px;
  margin-bottom: 16px;
}
.fm-strategy-item h3 { font-size: 19px; margin-bottom: 9px; }
.fm-strategy-item p { font-size: 14px; color: var(--phlox-muted); margin-bottom: 0; }

/* --------------------------------------------------------- adaptations --- */
@media (max-width: 991px) {
  .fm-mission { flex-direction: column; gap: 26px; }
  .fm-mission-list { flex: 0 0 auto; width: 100%; }
}

@media (max-width: 560px) {
  .fm-strategy { grid-template-columns: 1fr; gap: 16px; }
  .fm-strategy-item { padding: 24px 20px; }
}

/* ==========================================================================
   FICHE PRODUIT  ï¿½  products/products_detail.php
   Galerie, informations, nutrition, panneau lateral et produits lies.
   ========================================================================== */

/* ---------------------------------------------------------------- galerie --- */
.fm-pdetail { padding: 48px 0 24px; }
.fm-pdetail-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: flex-start;
  gap: 42px;
}
.fm-pdetail-media { flex: 0 0 520px; width: 520px; }

.fm-pdetail-main {
  background: var(--phlox-bg-alt);
  border: 1px solid var(--phlox-border);
  border-radius: var(--phlox-radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.fm-pdetail-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.fm-pdetail-nophoto {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--phlox-muted);
  text-align: center;
}
.fm-pdetail-nophoto .fa { margin-right: 6px; color: var(--phlox-primary); }

.fm-pdetail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.fm-thumb {
  padding: 0;
  border: 2px solid var(--phlox-border);
  border-radius: var(--phlox-radius);
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  transition: var(--phlox-tr);
}
.fm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-thumb:hover { border-color: var(--phlox-primary); }
.fm-thumb.is-active { border-color: var(--phlox-primary); }

/* --------------------------------------------------------------- infos --- */
.fm-pdetail-body { flex: 1 1 auto; min-width: 0; }
.fm-pdetail-title { font-size: 32px; margin-bottom: 10px; }
.fm-pdetail-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.fm-pdetail-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--phlox-text);
  margin-bottom: 22px;
}

.fm-pdetail-tags {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.fm-pdetail-tagslabel {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--phlox-muted);
}
.fm-pdetail-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fm-pdetail-tags a {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--phlox-border-strong);
  border-radius: 20px;
  font-size: 12.5px;
  color: var(--phlox-text);
}
.fm-pdetail-tags a:hover {
  border-color: var(--phlox-primary);
  color: var(--phlox-primary);
  background: var(--phlox-primary-soft);
}

/* ------------------------------------------------------------ nutrition --- */
.fm-pdetail-nutri { margin-bottom: 24px; }
.fm-pdetail-nutri h3 {
  font-size: 15px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--phlox-border);
}
.fm-pdetail-nutri table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.fm-pdetail-nutri th,
.fm-pdetail-nutri td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid var(--phlox-border);
  font-weight: 400;
  color: var(--phlox-muted);
}
.fm-pdetail-nutri th { color: var(--phlox-text); }
.fm-pdetail-nutri td {
  text-align: right;
  font-weight: 600;
  color: var(--phlox-primary);
  white-space: nowrap;
}
.fm-pdetail-nutri tr:last-child th,
.fm-pdetail-nutri tr:last-child td { border-bottom: 0; }

.fm-pdetail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--phlox-muted);
  padding: 14px 0;
  border-top: 1px solid var(--phlox-border);
  border-bottom: 1px solid var(--phlox-border);
  margin-bottom: 24px;
}
.fm-pdetail-meta .fa { margin-right: 7px; color: var(--phlox-primary); }

.fm-pdetail-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fm-pdetail-actions .fa { margin-right: 8px; }

/* ---------------------------------------------------------------- lateral --- */
.fm-plateral { padding: 26px 0 62px; }
.fm-plateral-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: flex-start;
  gap: 38px;
}
.fm-plateral-col { flex: 0 0 280px; width: 280px; }
.fm-plateral-main { flex: 1 1 auto; min-width: 0; }

.fm-side-box {
  background: #fff;
  border: 1px solid var(--phlox-border);
  border-radius: var(--phlox-radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--phlox-shadow);
}
.fm-side-box h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--phlox-muted);
  margin-bottom: 14px;
}

.fm-side-search { position: relative; display: flex; }
.fm-side-search input {
  width: 100%;
  font-family: var(--phlox-font);
  font-size: 14px;
  color: var(--phlox-text);
  background: var(--phlox-bg-alt);
  border: 1px solid var(--phlox-border-strong);
  border-radius: var(--phlox-radius);
  padding: 10px 42px 10px 14px;
  transition: var(--phlox-tr);
}
.fm-side-search input:focus {
  outline: none;
  background: #fff;
  border-color: var(--phlox-primary);
  box-shadow: 0 0 0 3px var(--phlox-primary-soft);
}
.fm-side-search button {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 42px;
  border: 0;
  background: transparent;
  color: var(--phlox-primary);
  cursor: pointer;
  font-size: 14px;
}

.fm-side-cats { list-style: none; margin: 0; padding: 0; }
.fm-side-cats li + li { border-top: 1px solid var(--phlox-border); }
.fm-side-cats a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--phlox-text);
}
.fm-side-cats a:hover { color: var(--phlox-primary); padding-left: 6px; }
.fm-side-cats a.is-active { color: var(--phlox-primary); font-weight: 600; }

.fm-side-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fm-side-tags a {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 20px;
  background: var(--phlox-bg-alt);
  font-size: 12.5px;
  color: var(--phlox-muted);
}
.fm-side-tags a:hover {
  background: var(--phlox-primary);
  color: #fff;
}

.fm-section-head-left { text-align: left; }
.fm-section-head-left h2 { margin-bottom: 0; }

/* --------------------------------------------------------- adaptations --- */
@media (max-width: 991px) {
  .fm-pdetail-inner { flex-direction: column; gap: 28px; }
  .fm-pdetail-media { flex: 0 0 auto; width: 100%; }
  .fm-plateral-inner { flex-direction: column; gap: 24px; }
  .fm-plateral-col { flex: 0 0 auto; width: 100%; }
}

@media (max-width: 560px) {
  .fm-pdetail-title { font-size: 26px; }
  .fm-pdetail-actions .btn { width: 100%; }
}

/* ==========================================================================
   PIED DE PAGE  ï¿½  includes/footer.php
   Logo, description, navigation, coordonnees et formulaire newsletter.
   ========================================================================== */

.fm-footer {
  background: #22262b;
  color: #b9c0c7;
  margin-top: 0;
}
.fm-footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 52px 24px 40px;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.1fr 1.2fr;
  gap: 40px;
}
.fm-footer-col { min-width: 0; }

.fm-footer-logo {
  display: inline-block;
  margin-bottom: 18px;
}
.fm-footer-logo img {
  max-height: 68px;
  max-width: 350px;
  width: auto;
  display: block;
}

.fm-footer-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: #98a1a9;
  margin-bottom: 18px;
}

.fm-footer-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 16px;
}

.fm-footer-links { list-style: none; margin: 0; padding: 0; }
.fm-footer-links li + li { margin-top: 9px; }
.fm-footer-links a {
  font-size: 13.5px;
  color: #b9c0c7;
}
.fm-footer-links a:hover { color: #fff; }

.fm-footer-info { list-style: none; margin: 0; padding: 0; }
.fm-footer-info li {
  display: flex;
  gap: 11px;
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.fm-footer-info .fa {
  color: var(--phlox-primary);
  margin-top: 4px;
  width: 14px;
  text-align: center;
  flex: 0 0 14px;
}
.fm-footer-info a { color: #b9c0c7; }
.fm-footer-info a:hover { color: #fff; }

/* ------------------------------------------------------------- social --- */
.fm-footer-social {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fm-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: #cfd5da;
  font-size: 14px;
  transition: var(--phlox-tr);
}
.fm-footer-social a:hover {
  background: var(--phlox-primary);
  color: #fff;
}

/* --------------------------------------------------------- newsletter --- */
.fm-footer-form { margin-top: 16px; }
.fm-footer-form input {
  width: 100%;
  /* sans border-box, la largeur 100 % s'ajoute aux 28 px de marge interne
     et aux 2 px de bordure : l'input sort du pied de page sur mobile. */
  box-sizing: border-box;
  font-family: var(--phlox-font);
  font-size: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--phlox-radius);
  padding: 11px 14px;
  transition: var(--phlox-tr);
}
.fm-footer-form input::placeholder { color: #7d858d; }
.fm-footer-form input:focus {
  outline: none;
  border-color: var(--phlox-primary);
  background: rgba(255, 255, 255, 0.1);
}
.fm-footer-form button {
  margin-top: 10px;
  width: 100%;
  font-family: var(--phlox-font);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--phlox-primary);
  border: 0;
  border-radius: var(--phlox-radius);
  padding: 11px 18px;
  cursor: pointer;
  transition: var(--phlox-tr);
}
.fm-footer-form button:hover {
  background: var(--phlox-primary-dark);
}
.fm-footer-form button[disabled] { opacity: 0.65; cursor: default; }
.fm-footer-form button .fa { margin-left: 8px; }

/* Les messages de retour sont poses sur fond clair : on les luit mal sur le
   footer sombre, on les remonte au-dessus du formulaire avec un fond blanc. */
#fmNewsletterResult .fm-form-alert {
  color: var(--phlox-text);
  margin-bottom: 14px;
}
#fmNewsletterResult .fm-form-alert-ok     { background: #eef3e4; border-color: #cbdbaf; color: #3a6111; }
#fmNewsletterResult .fm-form-alert-warn   { background: #fff8e6; border-color: #f2e0b4; color: #96700f; }
#fmNewsletterResult .fm-form-alert-error  { background: #fdecea; border-color: #f5c6c1; color: #c0392b; }

/* ------------------------------------------------------------- bottom --- */
.fm-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: #1b1f23;
}
.fm-footer-bottom-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.fm-footer-bottom p {
  margin: 0;
  font-size: 12.5px;
  color: #7d858d;
}

/* --------------------------------------------------------- adaptations --- */
@media (max-width: 991px) {
  .fm-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .fm-footer-inner { grid-template-columns: 1fr; padding: 40px 20px 32px; }
  .fm-footer-bottom-inner { padding: 16px 20px; text-align: center; justify-content: center; }
}
