/*RESET*/
*, *::before, *::after {
    box-sizing: border-box;
  }
  
  ul
  {
  list-style: none;
  padding: 0;
  margin: 0;
  }
  
  html, body, div, span, applet, object, iframe,
  h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  a, abbr, acronym, address, big, cite, code,
  del, dfn, em, img, ins, kbd, q, s, samp,
  small, strike, strong, sub, sup, tt, var,
  b, u, i, center,
  dl, dt, dd, ol, ul, li,
  fieldset, form, label, legend,
  table, caption, tbody, tfoot, thead, tr, th, td,
  article, aside, canvas, details, embed, 
  figure, figcaption, footer, header, hgroup, 
  menu, nav, output, ruby, section, summary,
  time, mark, audio, video {
      margin: 0;
      padding: 0;
      border: 0;
      font-size: 100%;
      font: inherit;
      vertical-align: baseline;
  }
  
  
  /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
  
  /* Document
     ========================================================================== */
  
  /**
   * 1. Correct the line height in all browsers.
   * 2. Prevent adjustments of font size after orientation changes in iOS.
   */
  
  html {

    -webkit-text-size-adjust: 100%; /* 2 */
  }
  
  /* Sections
     ========================================================================== */
  
  /**
   * Remove the margin in all browsers.
   */
  
  body {
    margin: 0;
  }
  
  /**
   * Render the `main` element consistently in IE.
   */
  
  main {
    display: block;
  }
  
  /**
   * Correct the font size and margin on `h1` elements within `section` and
   * `article` contexts in Chrome, Firefox, and Safari.
   */
  
  
  /* Grouping content
     ========================================================================== */
  
  /**
   * 1. Add the correct box sizing in Firefox.
   * 2. Show the overflow in Edge and IE.
   */
  
  hr {
    box-sizing: content-box; /* 1 */
    height: 0; /* 1 */
    overflow: visible; /* 2 */
  }
  
  /**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */
  
  pre {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
  }
  
  /* Text-level semantics
     ========================================================================== */
  
  /**
   * Remove the gray background on active links in IE 10.
   */
  
  a {
    background-color: transparent;
      text-decoration: none;
      color: var(--color);
  }
  
  /**
   * 1. Remove the bottom border in Chrome 57-
   * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
   */
  
  abbr[title] {
    border-bottom: none; /* 1 */
    text-decoration: underline; /* 2 */
    text-decoration: underline dotted; /* 2 */
  }
  
  /**
   * Add the correct font weight in Chrome, Edge, and Safari.
   */
  
  b,
  strong {
    font-weight: bolder;
  }
  
  /**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */
  
  code,
  kbd,
  samp {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
  }
  
  /**
   * Add the correct font size in all browsers.
   */
  
  small {
    font-size: 80%;
  }
  
  /**
   * Prevent `sub` and `sup` elements from affecting the line height in
   * all browsers.
   */
  
  sub,
  sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  
  sub {
    bottom: -0.25em;
  }
  
  sup {
    top: -0.5em;
  }
  
  /* Embedded content
     ========================================================================== */
  
  /**
   * Remove the border on images inside links in IE 10.
   */
  
  img {
    border-style: none;
  }
  
  /* Forms
     ========================================================================== */
  
  /**
   * 1. Change the font styles in all browsers.
   * 2. Remove the margin in Firefox and Safari.
   */
  
  button,
  input,
  optgroup,
  select,
  textarea {
    font-family: inherit; /* 1 */
    font-size: 100%; /* 1 */
    line-height: 1.15; /* 1 */
    margin: 0; /* 2 */
  }
  
  button {
      background: transparent;
      border: none;
  }
  
  /**
   * Show the overflow in IE.
   * 1. Show the overflow in Edge.
   */
  
  button,
  input { /* 1 */
    overflow: visible;
  }
  
  /**
   * Remove the inheritance of text transform in Edge, Firefox, and IE.
   * 1. Remove the inheritance of text transform in Firefox.
   */
  
  button,
  select { /* 1 */
    text-transform: none;
  }
  
  /**
   * Correct the inability to style clickable types in iOS and Safari.
   */
  
  /**
   * Remove the inner border and padding in Firefox.
   */
  
  button::-moz-focus-inner,
  [type="button"]::-moz-focus-inner,
  [type="reset"]::-moz-focus-inner,
  [type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
  }
  
  /**
   * Restore the focus styles unset by the previous rule.
   */
  
  button:-moz-focusring,
  [type="button"]:-moz-focusring,
  [type="reset"]:-moz-focusring,
  [type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
  }
  
  /**
   * Correct the padding in Firefox.
   */
  
  fieldset {
    padding: 0.35em 0.75em 0.625em;
  }
  
  /**
   * 1. Correct the text wrapping in Edge and IE.
   * 2. Correct the color inheritance from `fieldset` elements in IE.
   * 3. Remove the padding so developers are not caught out when they zero out
   *    `fieldset` elements in all browsers.
   */
  
  legend {
    box-sizing: border-box; /* 1 */
    color: inherit; /* 2 */
    display: table; /* 1 */
    max-width: 100%; /* 1 */
    padding: 0; /* 3 */
    white-space: normal; /* 1 */
  }
  
  /**
   * Add the correct vertical alignment in Chrome, Firefox, and Opera.
   */
  
  progress {
    vertical-align: baseline;
  }
  
  /**
   * Remove the default vertical scrollbar in IE 10+.
   */
  
  textarea {
    overflow: auto;
  }
  
  /**
   * 1. Add the correct box sizing in IE 10.
   * 2. Remove the padding in IE 10.
   */
  
  [type="checkbox"],
  [type="radio"] {
    box-sizing: border-box; /* 1 */
    padding: 0; /* 2 */
  }
  
  /**
   * Correct the cursor style of increment and decrement buttons in Chrome.
   */
  
  [type="number"]::-webkit-inner-spin-button,
  [type="number"]::-webkit-outer-spin-button {
    height: auto;
  }
  
  /**
   * 1. Correct the odd appearance in Chrome and Safari.
   * 2. Correct the outline style in Safari.
   */
  
  [type="search"] {
    outline-offset: -2px; /* 2 */
  }
  
  /**
   * Remove the inner padding in Chrome and Safari on macOS.
   */
  
  [type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  
  /**
   * 1. Correct the inability to style clickable types in iOS and Safari.
   * 2. Change font properties to `inherit` in Safari.
   */
  
  ::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
  }
  
  /* Interactive
     ========================================================================== */
  
  /*
   * Add the correct display in Edge, IE 10+, and Firefox.
   */
  
  details {
    display: block;
  }
  
  /*
   * Add the correct display in all browsers.
   */
  
  summary {
    display: list-item;
  }
  
  /* Misc
     ========================================================================== */
  
  /**
   * Add the correct display in IE 10+.
   */
  
  template {
    display: none;
  }
  
  /**
   * Add the correct display in IE 10.
   */
  
  [hidden] {
    display: none;
  }

  /* FONTS */

  @font-face {
    font-family: "HR";
    src:
      local("HR"),
      url("../fonts/HankenGrotesk-VariableFont_wght.ttf") format("truetype");
    font-weight: 400; /* Range of weights supported by the variable font */
    font-style: normal; /* Include if the font has italic styles */
  }

    @font-face {
    font-family: "HI";
    src:
      local("HI"),
      url("../fonts/HankenGrotesk-Italic-VariableFont_wght.ttf") format("truetype");
    font-weight: 400; /* Range of weights supported by the variable font */
    font-style: normal; /* Include if the font has italic styles */
  }

    @font-face {
    font-family: "HB";
    src:
      local("HB"),
      url("../fonts/HankenGrotesk-VariableFont_wght.ttf") format("truetype");
    font-weight: 900; /* Range of weights supported by the variable font */
    font-style: normal; /* Include if the font has italic styles */
  }

      @font-face {
    font-family: "G";
    src:
      local("G"),
      url("../fonts/gliker-regular.ttf") format("truetype");
    font-weight: 900; /* Range of weights supported by the variable font */
    font-style: normal; /* Include if the font has italic styles */
  }

    /* ROOTS */

  html {
    min-height: 100%;
    background: var(--color-bg);
    scrollbar-gutter: stable;
    letter-spacing: -0.02em;
    line-height: 1.5;
    font-weight: 400;
    margin: 0 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

:root {
	font-size: 16px;
    --padding:1rem;
    --margin:1rem;
	--gap: 1rem;
	--color-basic: #ffffff;
    --color-bg:#ede3df;
    --color-bg--2:#e0c1b5;
	--color-font: #6f2711;
    --color-blue: #00e2ff;
    --color-pink:#ff97bf;
    --color-green:#cee2bd;
    --border-6px:16px;
  --Pbody:max(1.0rem,1.4286rem + 0.1786vw,1.75rem);
    --Pbodylh:clamp(16px, 20/var(--doc-width) * 100vw, 20px);
    --Ph1:clamp(1.375rem,1.3393rem + 0.1786vw,1.5rem);
    --Ph2: clamp(2.375rem,1.7679rem + 3.0357vw,4.5rem);
    --Ph1lh:clamp(20px, 28/var(--doc-width) * 100vw, 28px);
    --p: clamp(.8125rem, .7473rem + .3261vw, 1rem);
    --s:clamp(.75rem, .7065rem + .2174vw, .875rem);
    --h1: clamp(1.25rem, .9674rem + 1.413vw, 2.0625rem);
    --h2:clamp(1.25rem, .7283rem + 2.6087vw, 2.75rem);
    --h3:clamp(1.5rem, .7826rem + 3.587vw, 3.5625rem);
    --grid-columns:12;
    --grid-width: calc(var(--vw,100vw) - (2*var(--margin)));
    --grid-column-width: calc((var(--doc-width) - ((var(--grid-columns) - 1)*var(--gap)))/var(--grid-columns));
	--margin-fluid: clamp(3.5rem, 2.7609rem + 3.6957vw, 5.625rem);
    /* --color-link: rgba(255,255,255,0.6);
	--color-link-hover: #fff;
	--color-bg-1: #100d0d;
	--color-bg-2: #43392f;
	--color-bg-3: var(--color-bg-1);
	--color-bg-4: var(--color-bg-2);
	--color-bg-5: var(--color-bg-1);
	--color-bg-6: var(--color-bg-2); */
}


/* NAV MENU */

.menu-all {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.logoTitle {
  flex-direction: column!important;
}

.menu-all--links {
  display: flex;
  position: relative;
  align-items: center;
}

.nav-menu--socials {
  margin-right: 4.5em;
}

.navigation {
  z-index: 500;
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.navigation__dark-bg {
  transition: all 0.7s cubic-bezier(0.5, 0.5, 0, 1);
  opacity: 0;
  pointer-events: auto;
  visibility: hidden;
  background-color: #000;
  position: absolute;
  inset: 0;
}

[data-navigation-status="active"] .navigation__dark-bg {
  opacity: 0.33;
  visibility: visible;
}

.hamburger-nav {
  border-radius: 1.5em;
  position: absolute;
  top: -0.5em;
  right: 1em;
}

.hamburger-nav__bg {
 transition: all 0.7s cubic-bezier(0.5, 0.5, 0, 1);
  background-color:var(--color-font);
  border-radius: 1.75em;
  width: 3em;
  height: 3em;
  position: absolute;
  top: 0;
  right: 0;
}

[data-navigation-status="active"] .hamburger-nav__bg {
  width: 100%;
  height: 100%;
}

.hamburger-nav__group {
  transition: all 0.5s cubic-bezier(0.5, 0.5, 0, 1), transform 0.7s cubic-bezier(0.5, 0.5, 0, 1);
  grid-column-gap: 1em;
  grid-row-gap: 1em;
  pointer-events: auto;
  transform-origin: 100% 0;
  flex-flow: column;
  padding: 2.25em 2.5em 2em 2em;
  display: flex;
  position: relative;
  transform: scale(0.15) rotate(0.001deg);
  opacity: 0;
  visibility: hidden;
}

[data-navigation-status="active"] .hamburger-nav__group {
  transform: scale(1) rotate(0.001deg);
  opacity: 1;
  visibility: visible;
}

.hamburger-nav__menu-p {
  opacity: .5;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 0;
  font-family:"HB";
  font-size: var(--p);
  font-weight: 400;
}

.hamburger-nav__ul {
  grid-column-gap: .375em;
  grid-row-gap: .375em;
  flex-flow: column!important;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  display: flex;
  position: relative;
}

.hamburger-nav__ul .nav-menu--socials li a svg {
  fill: var(--color-bg--2)!important;
}

.hamburger-nav__ul .nav-menu li a{
    padding-left: 0!important;
}

.hamburger-nav__li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hamburger-nav__a {
  color: var(--color-bg--2);
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  display: flex;
  padding-left: 0!important;
}

/* .hamburger-nav__a[aria-current] .hamburger-nav__p {
  opacity: 0.33;
} */

.hamburger-nav__p {
  white-space: nowrap;
  font-size: var(--s);
  /* margin-top: 0;
  margin-bottom: 0;
  padding-right: 1.25em;
  font-size: 2em; */
}

.hamburger-nav__dot {
  transition: all 0.7s cubic-bezier(0.5, 0.5, 0, 1);
  background-color: currentColor;
  border-radius: 50%;
  flex-shrink: 0;
  width: .5em;
  height: .5em;
  transform: scale(0) rotate(0.001deg);
  opacity: 0.5;
}

.hamburger-nav__a[aria-current] .hamburger-nav__dot {
  transform: scale(1) rotate(0.001deg);
  opacity: 1;
}

.hamburger-nav:has(.hamburger-nav__a:hover) .hamburger-nav__dot {
  transform: scale(0) rotate(0.001deg);
}

.hamburger-nav .hamburger-nav__a:hover .hamburger-nav__dot {
  transform: scale(1) rotate(0.001deg);
  opacity: 0.25;
}

.hamburger-nav__toggle {
 transition: transform 0.7s cubic-bezier(0.5, 0.5, 0, 1);
  pointer-events: auto;
  cursor: pointer;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 3em;
  height: 3em;
  display: flex;
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(0em, 0em) rotate(0.001deg);
}

[data-navigation-status="active"] .hamburger-nav__toggle {
  transform: translate(-1em, 1em) rotate(0.001deg);
}

.hamburger-nav__toggle-bar {
  transition: transform 0.7s cubic-bezier(0.5, 0.5, 0, 1);
  background-color: var(--color-bg--2);
  width: 40%;
  height: .125em;
  position: absolute;
  transform: translateY(-0.15em) rotate(0.001deg);
}

.hamburger-nav__toggle:hover .hamburger-nav__toggle-bar {
  transform: translateY(0.15em) rotate(0.001deg);
}

[data-navigation-status="active"] .hamburger-nav__toggle .hamburger-nav__toggle-bar {
  transform: translateY(0em) rotate(45deg);
}

.hamburger-nav__toggle .hamburger-nav__toggle-bar:nth-child(2) {
  transition: transform 0.7s cubic-bezier(0.5, 0.5, 0, 1);
  transform: translateY(0.15em) rotate(0.001deg);
}

.hamburger-nav__toggle:hover .hamburger-nav__toggle-bar:nth-child(2) {
  transform: translateY(-0.15em) rotate(0.001deg);
}

[data-navigation-status="active"] .hamburger-nav__toggle .hamburger-nav__toggle-bar:nth-child(2) {
  transform: translateY(0em) rotate(-45deg);
}

/* HEADER */

.transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color:var(--color-basic); /* Couleur de votre choix */
  z-index: 99999;            /* Passe au-dessus de tout le monde */
  pointer-events: none;      /* N'empêche pas de cliquer quand il est masqué */
  transform: translateY(0%);
   /* Permet de centrer le texte du pourcentage */
  display: flex;
  flex-direction: column;
    justify-content: center;
    align-items: center;
}

.transition-loader {
  text-align: center;
  color: #ffffff;
  font-family: sans-serif;
  font-size: 24px;
  letter-spacing: 4px;
  /* MODIFICATION : Visible dès le départ au premier chargement */
  opacity: 1; 
}

.loader-percentage {
  position: absolute;
  bottom: var(--margin);
  right: var(--margin);
    font-size:var(--h1); /* Taille s'adaptant à l'écran */
    color: var(--color-font);
    font-family: "HR";
    user-select: none;
}

/* Style de votre texte d'attente */
.loader-text {
    font-size:var(--h1); /* Taille s'adaptant à l'écran */
    color: var(--color-font);
    font-family: "G";
    opacity: 0; /* Caché par défaut, géré par GSAP */
text-transform: uppercase;
  }

.loader-bar {
  width: 0%;
  height: 2px;
  background-color: #ffffff;
}

#branding {
  display: none;
}

header {
   position: relative;
   position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  color: var(--color-basic);
  padding-top: var(--padding);
  padding-left: var(--padding);
  padding-right: var(--padding); 
  color: var(--color-font); 
  pointer-events: none;
}

.nav-menu, .nav-menu ul {
   position: relative;
  display: flex;
  flex-direction: row;
  pointer-events: auto;
  /* z-index: 4;
  
  mix-blend-mode: difference; */
}

.nav-logo a{
   display: flex;
  flex-direction: row;
  align-items: center;
}

.logo, .loader-logo {
    width: 3rem;
    height: 4rem;
    background-image: url(../img/genotype_alimentaires_logo_png.png);
   background-position: bottom;
   background-size:contain;
   background-repeat: no-repeat;
}

.logoTitle{
    margin-left: var(--margin);
}

.nav-menu {
  justify-content: space-between;
}

.nav-menu {
 align-items: center;
}

nav a, .hero-text {
    color:var(--color-font);
}

.logoTitle h1 {
   font-family: "G";
  font-size: var(--p);
  line-height: 1;
    text-transform: uppercase;
}

.logoTitle p {
   font-family: "HI";
  font-size: var(--s);
  line-height: 1;
}

/* .nav-menu {
    flex: 0 0 50%;
} */

.nav-menu li a{
  font-family: "HB";
  font-size: var(--s);
  line-height: 1;
    padding: var(--padding);
    text-transform: uppercase;
}

.nav-menu--socials li{
  width: 2em;
  height: 2em;
}

.nav-menu--socials li:not(:last-child){
  margin-right: calc(var(--margin) / 2);
}

.nav-menu--socials li a{
  padding: 0!important;
}

.nav-menu--socials li a svg{
 fill: var(--color-font);
}

.hero-text h2 {
  font-family: "HB";
  font-size: var(--p);
  line-height: 1;
}

.hero-text svg{
width: 8em;
height: 3em;
fill: var(--color-font);
}

.hero-text p {
  font-family: "HR";
  font-size: var(--p);
  line-height: 1;
}

hero {
    display: flex;
    flex-direction: column;
width: 100%;
/* height: 100svh; */
}

ul.hero-text{
    display: flex;
width: 100%;
gap: var(--gap);
margin-top: calc(var(--margin)*8);
margin-bottom: calc(var(--margin)*4);
}

ul.hero-text li{
flex: 0 0 50%;
}

ul.hero-text li:first-child{
display: flex;
justify-content: flex-end;
}

ul.hero-text li:last-child p{
max-width: 22em;
}

.hero-img {
  position: relative;
  display: grid; 
   width: calc(100% - (var(--margin)*2));
    padding-left: var(--margin);
    padding-right: var(--margin);
    grid-template-columns: repeat(12,minmax(0,1fr));
    gap: 0 var(--gap);
    margin-left: auto;
    margin-right: auto;
    margin-top: calc(var(--margin)*12);
}

.c-gap--inter {
  position: relative;
  /* gap: calc(var(--gap)*12) var(--gap)!important; */
}

.c-img--left {
grid-column: span 6/span 6;
  display: block;
  z-index: 2;
}

.c-img {
  position: relative;
}

.c-img--ratio  {
   position: relative;
 overflow: hidden;
 display: flex;
}

.c-img--radius {
 border-radius: var(--border-6px);
}

.c-img--full {
     width: 100%;
   display: flex;
   overflow: hidden;
}

.aspectRatio-left {
aspect-ratio: 986/815;
}

.c-img--inner{
   width: 100%;
   height: 100%;
   display: flex;
}

.c-img--inner img{
   width: 100%;
   height: 100%;
   max-width: 100%;
   object-fit: cover;
   display: block;
}

.aspectRatio-post {
/* aspect-ratio: 200/300; */
aspect-ratio: 1.33;
}

.aspectRatio-recipe {
aspect-ratio: 200/200;
}

.c-img--large {
  position: absolute;
  top: calc(var(--margin)*2);
  left: 0;
  width: 100%;
  height: calc(100% - (var(--margin)*4));
  background: var(--color-green);
  border-radius: var(--border-6px);
 /* border: #6f2711 1px solid;
   margin-top:calc(var(--margin)*6); */
  z-index: 1;
}

/* .c-hero--book{
   background-image: url(../img/genotype_alimentaires_accueil_couverture_livre_3.svg);
   background-position: bottom right;
   background-size: contain;
   background-repeat: no-repeat;
} */

.c-buy--pos{
    width: 100%;
    height: 100%;
   background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.c-img--buy {
   width:calc((2*var(--grid-column-width)) + ((2 - 1)*var(--gap))) !important;
    position: absolute;
    bottom: 3rem;
    right: 1rem;
    background: var(--color-basic);
   overflow: hidden;
   z-index: 3;
}

/* .hero-img--buy:before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.2);
    z-index: 0;
} */

.c-img--buy a {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: calc(var(--gap) / 4);
    width: 100%;
    height: 100%;
    color: var(--color-font);
}

.buy, .buy-img {
    flex: 0 0 50%;
}

.buy p {
    font-family: "HR";
    font-size: var(--s);
    line-height: 1; 
}

.buy > p {
   text-transform: uppercase;
}

.buy h2 {
    font-family: "HI";
    font-size: calc(var(--p)*1.5);
    line-height: 1;
    text-transform: uppercase;
}

.buy svg {
  width: 1em;
  height: 1em;
  fill: var(--color-font);
}

.buy li:first-child {
    display: flex;
    flex-direction: column;
    /* width: 80%; */
    flex: 1;
}

.buy ul:first-child {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.buy ul:last-child {
    display: flex;
    justify-content: flex-end;
    width: 20%;
}

.buy ul:last-child {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.buy {
  justify-content: space-between;
  gap: calc(var(--gap)*4);
}

.buy-img {
  & .c-img--full {
aspect-ratio: 1.6;
  }
    flex: 0 0 50%;
    background: var(--color-bg);
     border-radius: var(--border-6px);
     
}



.buy {
    margin: calc(var(--margin)*0.5);
    display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* .c-buy--img{
   background-image: url(../img/genotype_alimentaires_livre_enligne.png);
} */

.c-img--title {
  position: absolute;
  top: calc(var(--margin) * 4);
  left: calc((var(--doc-width) / 2) - (var(--margin) / 2));
  font-family: "G";
  font-size: var(--h3);
  color: var(--color-font);
  line-height: 1;
  text-transform: uppercase;
  z-index: 3;
}


/* ABOUT */

.grid-container {
  display: grid;
  width: 100%;
    padding-inline: var(--padding);
    grid-template-columns: repeat(12,minmax(0,1fr));
    gap: 0 var(--gap);
    margin-left: auto;
    margin-right: auto;
    margin-block: calc(var(--margin)*8);
}

.recipes .grid-container {
  margin-bottom: 0!important;
}

.js-swiper-group[data-effect="fade"] .swiper-slide {
  opacity: 0 !important;
  transition: opacity 0.6s ease-in-out;
  background-color: #ffffff; /* Ajustez selon la couleur de votre fond de page */
}

/* Affiche uniquement la diapositive active */
.js-swiper-group[data-effect="fade"] .swiper-slide-active {
  opacity: 1 !important;
}

.js-swiper-group {
  width: 100%;
  grid-column: 1 / span 12;
}

.swiper-text-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.swiper-text-list li {
  font-size: 20px;
  padding: 10px 0;
  cursor: pointer;
  /* Une transition fluide est essentielle pour l'effet d'opacité */
  transition: opacity 0.35s ease, transform 0.35s ease; 
}

/* 2. L'ASTUCE : Dès que la souris ENTRE dans la liste (ul)... */
/* ... TOUS les éléments (li) passent à 0.3 d'opacité */
.swiper-text-list:hover li {
  opacity: 0.3;
}

/* 3. Sauf CELUI qui est précisément survolé, qui remonte à 1 (100% visible) */
.swiper-text-list li:hover {
  opacity: 1 !important;
  transform: translateX(10px); /* Optionnel : léger décalage vers la droite */
}

/* 4. Sécurité pour l'élément actif actuel (quand la souris ne survole rien) */
/* Si la souris n'est PAS sur la liste, l'élément actif garde son opacité maximale */
.swiper-text-list:not(:hover) li.is-active {
  opacity: 1;
}

.c-swiper.articles {
  display: grid;
  width: 100%;
    grid-template-columns: repeat(12,minmax(0,1fr));
    gap: 0 var(--gap);
    margin-left: auto;
    margin-right: auto;
    grid-column: 1 / span 12;
}

.about h3, .recipes h3{
  font-family: "HR";
  font-size: var(--h1);
  letter-spacing: -.03rem;
  line-height: 1;
 color: var(--color-font) !important;
}

.about p{
grid-column: 1/span 3;
font-family: "HB";
  font-size: var(--h1);
  letter-spacing: -.03rem;
  line-height: 1;
  color: var(--color-font) !important;
}

.about h3{
grid-column: 4/span 8;
 text-indent: calc(var(--margin)*6);
}

.about.about-apropos{
position: relative;
  width: 100%;
  border-top-left-radius: var(--border-6px);
  border-top-right-radius: var(--border-6px);
  background: var(--color-green);
  padding-bottom: calc(var(--padding)*4);
  padding-top: calc(var(--padding)*4);
  z-index: -100;
}

.about.about-apropos p:nth-child(1){
color: var(--color-font) !important;
}

.about.about-apropos h3{
color: var(--color-font) !important;
font-family: "HI" !important;
}

.about.about-apropos h3:nth-child(2){
margin-bottom: calc(var(--padding)*2);
}

.rdv {
  position: relative;
  width: 100%;
  border-top-left-radius: var(--border-6px);
  border-top-right-radius: var(--border-6px);
  background: var(--color-bg--2);
  
padding-bottom: calc(var(--padding)*8);
padding-top:  calc(var(--padding)*16);
 /* background-image: url(../img/genotype_alimentaires_bkg_recettes.png_2.png);
   background-position: bottom;
   background-size:contain;
   background-repeat: no-repeat; */
}

.rdv p{
grid-column: 4/span 2;
font-family: "HB";
  font-size: var(--h1);
  letter-spacing: -.03rem;
  line-height: 1;
  color: var(--color-font) !important;
}

.rdv .grid-container{
position: absolute;
top: 3em;
left: 0;
margin-block: 0!important;
}


.rdv .grid-container--rdv{
grid-column: 6/span 5;
}

.rdv .grid-container--rdv h3{
  font-family: "HR";
  font-size: var(--h1);
  letter-spacing: -.03rem;
  line-height: 1;
  color: var(--color-font) !important;
margin-bottom: var(--margin);
}

.rdv .grid-container--rdv .c-button--inner{
font-family: "HB";
  font-size: var(--p);
  letter-spacing: -.03rem;
  line-height: 1;
  color: var(--color-bg--2) !important;
  text-transform: uppercase;
}


.articles {

  width: 100%;
  height: 100%;
}

.c-swiper.articles .swiper {
   grid-column: 1 / span 12;
  width: 100%;
  height: 100%;
}

.c-swiper.articles .articles-nav {
 position: relative;
  grid-column: 1 / span 12;
}

.swiper-slide {
    background-size: cover;
    background-position: 50%;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /* width: calc((4*var(--grid-column-width)) + ((4 - 1)*var(--gap)))!important; */
}

.swiper-slide post .article-img {
border-radius: var(--border-6px);
  overflow: hidden;
}

.swiper-slide post .article-img .c-img--full {
min-width: 200px;
}


.article-txt, .article-tag, .article-excerpt {
margin-top: calc(var(--margin) / 2);
}

.article-txt p {
  font-family: "HR";
font-size: var(--s);
line-height: 1;
}

.article-img {
  position: relative;
}

.article-tag {
  display: flex;
}

.article-img .article-tag {
  display: flex;
  position: absolute;
  bottom: calc(var(--margin) / 2);
  left: calc(var(--margin) / 2);
}

.article-tag li:not(:last-child) {
  margin-right: calc(var(--margin) / 2);
}

.swiper-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-transition-property: -webkit-transform;
  transition-property: -webkit-transform;
  -o-transition-property: transform;
  transition-property: transform;
  transition-property: transform, -webkit-transform;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
}

.c-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding: calc(var(--padding) / 2);
  color: var(--color-font);
}

.c-button--bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-font);
  border-radius: var(--border-6px);
  display: block;
}

.c-button--inner {
  display: inline-flex;
  align-items: center;
  position: relative;
  font-family: "HR";
  font-size: var(--s);
  color: var(--color-bg--2);
  z-index: 2;
}

.articles-nav {
  width: 100%;
  grid-column: 1 / span 12;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  font-family: "HB";
  font-size: var(--p);
  color: var(--color-font) !important;
  text-transform: uppercase;
  line-height: 1;
}

.articles-nav li{
  display: flex;
  gap: var(--gap);
  align-items: center;
}

.articles-nav li a{
  opacity: 0.5;
}

.article-txt h2 {
  font-family: "G";
  font-size: var(--p);
  color: var(--color-font)!important;
}

.article-excerpt p {
  font-family: "HI";
  font-size: var(--s);
  color: var(--color-font)!important;
}

.articles-nav h2 {
  font-family: "HB";
  font-size: var(--p);
  color: var(--color-font) !important;
  text-transform: uppercase;
}

.articles-nav h2, .articles-nav .swiper-button-next, .articles-nav .swiper-button-prev {
  font-family: "HB";
  font-size: var(--p);
  color: var(--color-font) !important;
  text-transform: uppercase;
  line-height: 1;
}

.swiper-button-next, .swiper-button-prev {
position: relative!important;
  margin-top: 0!important;
  top: 0!important;
}

.swiper-button-next, .swiper-button-prev {
  & ::slotted(svg), & svg {
   display: none;
  }
}

/* CARDS */

.cards {
 grid-column: 6 / span 2;
  width: 100%;
  height: 60svh;
}

.recipes .swiper {
 width: 100%;
 height: 100%;
}

h2.recipes-discover {
 grid-column: 1 / span 12;
 font-family: "HB";
  font-size: var(--p);
  letter-spacing: -.03rem;
  line-height: 1;
  color: var(--color-font) !important;
 text-align: center; 
 text-transform: uppercase;
}

.friends h2.recipes-discover {
 margin-bottom: calc(var(--margin) * 4);
}


.recipes .swiper-slide {
  background: #a9cc73;
  /* width: 24em !important; */
  border: #6f2711 1px solid;
}

.recipes-bkg{
  position: relative;
  padding-inline: var(--padding);
  margin-bottom:calc(var(--margin)*8);
    grid-column: 1 / span 12;
}

.recipes-bkg .c-img--title {
  top: calc(var(--margin) * 6);
  left: calc(var(--margin) * 2);
  font-family: "G";
  font-size: var(--h3);
  color: var(--color-font);
  line-height: 1;
  text-transform: uppercase;
  z-index: 3;
  position: sticky;
  z-index: -1;
}

.recipes-bkg--container {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  border-radius: var(--border-6px);
  gap: var(--gap);
  padding: calc(var(--padding) / 4);
  background: red;

}

.recipes-text--container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.recipes-text--container ul{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.recipes-text--container ul li:last-child{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.aspectRatio-recipes {
  aspect-ratio: 1;
}

.swiper-nav--cards {
  width: 80%;
  bottom: 50%;
  left: 10%;
  position: absolute;
}

/* FOOTER */

.credits {
  font-family: "HR";
  font-size: var(--s);
  letter-spacing: -.03rem;
  line-height: 1;
  color: var(--color-bg) !important;
}

.site-footer {
  position: relative;
  margin-top: calc(var(--margin)* -1);
  z-index: 10;
}

.footer {
  width: 100%;
  height: 80svh;
  background: var(--color-font);
  overflow: hidden;
   border-top-left-radius: var(--border-6px);
  border-top-right-radius: var(--border-6px);
  color: var(--color-bg);
}

.footer svg {
  fill:var(--color-bg);
}

.footer-wrap {
  position: relative;
  overflow: hidden;
}

.footer-wrap__dark {
  opacity: 0;
  pointer-events: none;
  background-color: #201d1d;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.demo-footer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.footer-menu--links {
  display: grid;
  width: calc(100% - (calc(var(--padding)*2)));
    grid-template-columns: repeat(12,minmax(0,1fr));
    gap: 0 var(--gap);
    margin-left: auto;
    margin-right: auto;
    margin-top: calc(var(--margin)*4);

}

.footer-column  {
  grid-column: span 3;
}

.footer-column p{
margin-bottom: calc(var(--margin)*4);
}

.footer-column li{
margin-bottom: calc(var(--margin)*1);
}

.footer-column p, .credits p{
font-family: "HR";
  letter-spacing: -.03rem;
  line-height: 1;
  color: var(--color-bg) !important;
}

.footer-column p{
  font-size: var(--p);
}

.credits li{
  display: flex;
}

.credits p{
  font-size: var(--s);
}

.credits p:first-child{
  margin-right: var(--margin);
}

.footer-column a{
font-family: "HB";
  font-size: var(--s);
  letter-spacing: -.03rem;
  line-height: 1;
  color: var(--color-bg) !important;
  text-transform: uppercase;
}

.footer-wrap {
height: 100%;
}

.credits {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding-inline: var(--padding);
}

/* FORM */

.sidenav__menu {
  background: var(--color-bg);
}

.sidenav__header {
  z-index: -1;
  justify-content: flex-end;
  align-items: center;
  display: flex;
  position: fixed;
  top: 2em;
  left: 2em;
  right: 2em;
}


.sidenav-intro h1{
font-family: "G";
font-size: var(--h2);
line-height: 1;
margin-bottom:calc(var(--margin)*2);
}

.sidenav-intro {
  &
 h2, p{
font-size: var(--p);
line-height: 1;
}
}

.sidenav-intro li:not(:last-child){
margin-bottom:calc(var(--margin)*1);
}


.sidenav-intro 
 h2{
font-size: var(--h1);
line-height: 1;
}


.sidenav__button {
  z-index: 10;
  grid-column-gap: .625em;
  grid-row-gap: .625em;
  background-color: #0000;
  justify-content: flex-end;
  align-items: center;
  margin: -1em;
  padding: 1em;
  display: flex;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  position: fixed;
  top: 2em;
  left: 2em;
}

.sidenav__button-text {
  flex-flow: column;
  justify-content: flex-start;
  align-items: flex-end;
  height: 1.5em;
  display: flex;
  overflow: hidden;
}

.sidenav__button-icon {
  justify-content: center;
  align-items: center;
  width: 1em;
  height: 1em;
  transition: transform .4s cubic-bezier(.65, .05, 0, 1);
  display: flex;
}

.sidenav__button-icon-svg {
  width: 100%;
}

.sidenav__button-label {
  color: #131313;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.125em;
  line-height: 1.4;
}

.sidenav__nav {
  z-index: 9;
  width: 100%;
  height: 100vh;
  margin-left: auto;
  margin-right: auto;
  display: none;
  position: fixed;
  inset: 0%;
}

.sidenav__overlay {
  z-index: 0;
  cursor: pointer;
  background-color: #13131366;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0%;
}

.sidenav {
  position: relative;
  z-index: 100000
  ;
}

.sidenav__menu {
grid-column-gap: 5em;
  grid-row-gap: 5em;
  flex-flow: column;
  justify-content: space-between;
  align-items: flex-start;
  width: 50em;
  height: calc(100svh - 2em);
  margin-left: auto;
  padding-top: 1%;
  padding-bottom: 2em;
  position: relative;
  overflow: auto;
  border-top-left-radius: var(--border-6px);
  scrollbar-width: none;
  border-bottom-left-radius: var(--border-6px);
  position: absolute;
  right: 1em;
  top: 1em;
  border-radius: var(--border-6px);
}

.sidenav__menu:-webkit-scrollbar {
  display: none;
}

.sidenav__menu-bg {
  z-index: 0;
  position: absolute;
  inset: 0%;
}

.sidenav__menu-bg-panel {
  z-index: 0;
  border-top-left-radius: 1.25em;
  border-bottom-left-radius: 1.25em;
  position: absolute;
  inset: 0%;
  padding-top: calc(var(--padding)*8);
  padding-bottom: calc(var(--padding)*8);
  padding-right: calc(var(--padding)*8);
}

.sidenav__menu-inner {
  z-index: 1;
  grid-column-gap: 5em;
  grid-row-gap: 5em;
  flex-flow: column;
  justify-content: space-between;
  align-items: flex-start;
  height: 100%;
  display: flex;
  position: relative;
  overflow: auto;
}

.sidenav__menu-list {
  flex-flow: column;
  width: 100%;
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
}

.sidenav__menu-list-item {
  height: 6em;
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.sidenav__menu-link {
  grid-column-gap: .75em;
  grid-row-gap: .75em;
  color: #131313;
  width: 100%;
  padding-top: .75em;
  padding-bottom: .75em;
  padding-left: 2em;
  text-decoration: none;
  display: flex;
}

.sidenav__menu-link-heading {
  z-index: 1;
  font-family: PP Neue Corp Tight, Arial, sans-serif;
  font-size: 5.625em;
  font-weight: 700;
  line-height: .75;
  transition: transform .55s cubic-bezier(.65, .05, 0, 1);
  position: relative;
  margin: 0px;
  letter-spacing: -0.015em;
}

.sidenav__menu-link-eyebrow {
  z-index: 1;
  color: #e04645;
  text-transform: uppercase;
  font-family: RM Mono, Arial, sans-serif;
  font-weight: 400;
  position: relative;
  margin: 0px;
}

.sidenav__menu-details {
  grid-column-gap: 1.25em;
  grid-row-gap: 1.25em;
  flex-flow: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-left: 2em;
  display: flex;
}

.sidenav__menu-socials {
  grid-column-gap: 1.5em;
  grid-row-gap: 1.5em;
  flex-flow: row;
  display: flex;
}


.noscript {
  pointer-events: none;
  width: 0;
  height: 0;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

@media screen and (max-width: 767px) {
  .sidenav__menu-socials {
    grid-column-gap: 1em;
    grid-row-gap: 1em;
  }

  .sidenav__menu-bg-panel {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  .sidenav__menu {
    width: 100%;
  }

  .sidenav__menu-list-item {
    height: 4.5em;
  }

  .sidenav__menu-link-heading {
    font-size: 4em;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden; /* Géré proprement par GSAP via autoAlpha */
}

/* La boîte blanche à l'intérieur */
.modal-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 50%;
  max-height: 100svh; /* Hauteur max de la boîte (70% de l'écran) */
  overflow-y: auto;  /* Permet le défilement vertical à l'intérieur */
  position: relative;
  overscroll-behavior: contain; /* Évite que le scroll ne "bave" sur le site en arrière-plan */
}

.ninja-forms-form-wrap *, .ninja-forms-form-wrap ::after, .ninja-forms-form-wrap ::before {
font-family: "HR";
font-size: var(--p);
line-height: 1;
text-transform: uppercase;
}

.nf-field-element input, .nf-field-element select, .nf-field-element textarea {
  height: auto;
  margin: 0;
  vertical-align: inherit;
  width: auto;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  background: var(--color-basic);
  /* border-color: var(--color-font); */
  
}

.nf-field-label .nf-label-span, .nf-field-label label {
  font-weight: 700;
  margin: 0;
  padding: 0;
  width: 100%;
}

.nf-form-title h3 {
  font-family: "G";
  font-size: var(--h2);
  line-height: 1;
  margin-bottom: calc(var(--margin)*8);
}

.sidenav__button-label {
  font-family: "HB"!important;
  font-size: var(--s)!important;
  line-height: 1!important;
  color: var(--color-font)!important;
  text-transform: uppercase;
  cursor: pointer;
}

nf-fields-wrap {
  list-style: none;      
  padding: 0;
  margin: 0;
  counter-reset: my-counter;
}

nf-field {
  counter-increment: my-counter; /* Ajoute +1 au compteur à chaque nouvel élément */
  position: relative;
  padding-left: 45px;          /* Laisse de la place à gauche pour le numéro */
  margin-bottom: 15px;
  font-family: sans-serif;
  font-size: 18px;
  line-height: 30px; 
}

nf-field:before {
  content: counter(my-counter); /* Affiche la valeur actuelle du compteur (1, 2, 3...) */
  
  /* Positionnement du numéro */
  position: absolute;
  left: calc(var(--gap)*2);
  top: 0; 
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "HB";
  font-size: var(--s);
  color: var(--color-font);
}

#ninja_forms_required_items, .nf-field-container {
  margin-left: calc(var(--margin)*8);
}

/* SINGLES */

.post-title > .grid-container {
  margin-bottom: 0!important;
}

.post-columns > .grid-container {
  margin-top: 0!important;
   margin-bottom: calc(var(--margin)*1);
}

.post-title--container {
grid-column: 4 / span 5;
}

.post-infos{
grid-column: 11 / span 3;
}

.post-infos, .post-thumb, .post-text{
font-family: "HB";
  font-size: var(--p);
  color: var(--color-font);
  line-height: 1.2;
}

.post-infos li span:first-child{
font-family: "HR";
}

.post-infos li span:last-child{
font-family: "HB";
margin-left: var(--margin);
color: var(--color-font)!important;
}


.post-infos span{
margin-left: 0!important;
}

.post-text {
grid-column: 5 / span 5;
}

.post-thumb {
grid-column: 1 / span 3;
}

.post-thumbnail {
  width: 100%;
}

.post-thumbnail img{
  max-width: 100%;
  height: auto;
  border-radius: var(--border-6px);
}

.post-title--container li:first-child{
font-family: "G";
  font-size: var(--h3);
  color: var(--color-font);
  line-height: 1;
  margin-bottom: calc(var(--margin)*8);
}

.post-title--container li:last-child{
font-family: "HR";
  font-size: var(--p);
  color: var(--color-font);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: calc(var(--margin)*2);
}

.post-text--hat {
  font-family: "HB";
  font-size: var(--p);
  color: var(--color-font);
  line-height: 1.2;
 margin-bottom: calc(var(--margin)*2);
  display: block;
}

.post-text--corpse {
  font-family: "HR";
  font-size: var(--p);
  color: var(--color-font);
  line-height: 1.2;
 margin-bottom: calc(var(--margin)*2);
  display: block;
}

.wp-block-heading {
  margin-bottom: calc(var(--margin)*1);
}

h3.wp-block-heading {
  position: relative;
  font-family: "HR";
  font-size: calc(var(--p)*2);
  line-height: 1.2;
padding: var(--padding);
  background: var(--color-green);
  color: var(--color-font);
  border-radius: var(--border-6px);
  margin-top: calc(var(--margin)*2)!important;
  margin-bottom: calc(var(--margin)*2)!important;
}

h3.wp-block-heading:before {
content: "";
position: absolute;
top: 0;
left: -3em;
 width: 3em;
    height: 4em;
    background-image: url(../img/genotype_alimentaires_commentaires.svg);
   background-position: bottom;
   background-size:contain;
   background-repeat: no-repeat;

}

.wp-block-paragraph {
 margin-bottom: calc(var(--margin)*2);
}

/* ADVICE */

.hero-kesako--bkg {
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100svh;
  display: flex;
  position: relative;
}

.hero-kesako--img {
  position: absolute;
  display: grid;
  padding-inline: var(--padding);
  grid-template-columns: repeat(12,minmax(0,1fr));
  gap: 0 var(--gap);
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

.hero-kesako--img .c-img--full{
 width: 100%;
  display: flex;
  overflow: hidden;
  grid-column: 1 / span 12;
  height: 120%;
}

.hero-kesako--img .c-img--inner img{
  object-fit: contain;
}

ul.hero-kesako--top {
  width: 100%;
 height: calc(100% - calc(var(--margin)*8));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
   padding-inline: calc(var(--padding)*4);
   padding-bottom: calc(var(--padding)*2);
   margin-top: calc(var(--margin)*8);
}

ul.hero-kesako--top li{
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.apropos ul.hero-kesako--top li{
 flex-direction: column;
}

ul.hero-kesako--top h1{
 font-family: "G";
  font-size: var(--h2);
  line-height: 1.2;
  color: var(--color-font);
}

ul.hero-kesako--top p{
  position: relative;
 font-family: "HB";
  font-size: var(--p);
  line-height: 1.2;
  color: var(--color-font);
  text-transform: uppercase;
}

ul.hero-kesako--top p:before {
content: "";
position: absolute;
top: 0;
left: -3em;
 width: 3em;
    height: 4em;
    background-image: url(../img/genotype_alimentaires_commentaires.svg);
   background-position: bottom;
   background-size:contain;
   background-repeat: no-repeat;

}

.cards-stack {
  /* padding-top: 15dvh; */
  padding-bottom: 15dvh;
}

.container {
  max-width: 90em;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2em;
  padding-right: 2em;
}

.recipes .container {
  margin-right: 0;
}

.recipes_item .cards-stack-card__end {
  display: grid;
  /* padding-inline: var(--padding); */
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0 var(--gap);
  height: 100%
}

 .cards-advises .cards-stack-card__end {
 padding: calc(var(--padding)*1);
}

.recipes_item .cards-stack-card__end ul{
display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--padding);
}

.recipes_item .cards-stack-card__end ul.article-tag{
  padding: 0!important;
}

.recipes_item .cards-stack-card__end .article-img {
  position: relative;
  width: 100%;
  height: 100%;
}

.recipes_item .cards-stack-card__end .c-img--full {
  width: 100%;
  display: flex;
  overflow: hidden;
  height: 100%;
}

.recipes_item .cards-stack-card__end .c-img--inner img {
  border-radius: var(--border-6px);
}

.cards-stack__list {
  grid-column-gap: 5em;
  grid-row-gap: 5em;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  display: flex;
}

.cards-stack__item {
  flex: none;
  width: 100%;
  max-width: 32em;
  position: sticky;
  top: 5em;
  
}

.cards-stack__item.is--wide {
  max-width: 60em;
}

.cards-stack-card {
  aspect-ratio: 2 / 3;
  color:var(--color-font);
  
  border-radius: var(--border-6px);
  flex-flow: column;
  justify-content: space-around;
  width: 100%;
  padding: calc(var(--padding) / 4);
  display: flex;
}

.cards-stack__item:nth-child(2) .cards-stack-card{
  background-color:var(--color-blue);
}

.cards-stack__item:nth-child(3) .cards-stack-card{
  
  background-color:var(--color-green);
}

.cards-stack__item:nth-child(1) .cards-stack-card{
  
 background-color:var(--color-pink);
}

.cards-stack-card.is--wide {
  aspect-ratio: 5 / 2.5;
}

.cards-stack-card__number {
  font-size: 6.75em;
  font-weight: 500;
  line-height: .95;
  font-family: "G";
  color: var(--color-font);
  line-height: 1;
}

.cards-stack-card__h {
  letter-spacing: -.04em;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 3.375em;
  font-family: "G";
  color: var(--color-font);
  line-height: 1;
  margin-bottom: var(--margin);
}

.cards-stack-card__h.is--wide {
  font-size: 4.5em;
}

.cards-stack-card__services {
  flex-flow: column;
  justify-content: flex-end;
  min-height: 11em;
  display: flex;
  font-family: "HR";
  font-size: var(--p);
  color: var(--color-font);
  line-height: 1.2;
}

.cards-stack-card__services-p {
  letter-spacing: -.01em;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.125em;
  font-weight: 500;
  line-height: 1.4;
   margin-bottom: calc(var(--margin)*1);
}

.friends p {
  font-family: "HR";
  font-size: var(--s);
  letter-spacing: -.03rem;
  line-height: 1;
  color: var(--color-font) !important;
  margin-bottom: calc(var(--margin)*8);
  width: 16em;
}

.friends ul {
grid-column: span 12 / span 12;
  justify-content: center;
  display: flex;
  gap: calc(var(--gap)*8);
}

/* A PROPOS */

.hero-apropos--img {
  width: 16em;
  transform: rotate(6deg);
  z-index: -1;
}

/* MODAL */

/* Style du mot déclencheur dans le texte */
.word-modal-trigger {
    border-bottom: 2px dashed #0073aa;
    color: #0073aa;
    cursor: help;
    display: inline-block;
}

/* Style de base du modal (masqué par défaut) */
.word-modal-content {
    display: none; /* Masqué */
    position: absolute;
    z-index: 9999;
    width: max-content;
    max-width: 250px;
    padding: 8px 12px;
    background-color:var(--color-green); /* Fond sombre élégant */
    color: var(--color-font);
    font-size: 13px;
    line-height: 1.4;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    
    /* Centrage parfait JUSTE AU-DESSUS du mot grâce à l'Anchor Positioning */
    bottom: anchor(top);
    left: anchor(center);
    transform: translate(-50%, -8px); /* Décale vers le haut et centre horizontalement */
    
    /* Sécurité : Si l'écran est trop petit en haut, bascule automatiquement en dessous */
    position-try-fallbacks: flip-block;
}

/* Affichage du modal au survol du bloc complet */
.word-modal-wrapper:hover .word-modal-content {
    display: block;
}

/* Petit triangle (flèche) sous le modal pointant vers le mot */
.word-modal-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: var(--border-6px);
    border-style: solid;
    border-color: var(--color-green) transparent transparent transparent;
}

/* LOAD MORE */

.blog-wrapper {
  display: grid;
  padding-inline: var(--padding);
  grid-template-columns: repeat(12,minmax(0,1fr));
  gap: 0 var(--gap);
  margin-top: calc(var(--margin)*12);
   margin-bottom: calc(var(--margin)*8);
}

.posts-counter {
 grid-column: 1/span 3; 

}

.posts-counter h1{
font-family: "G";
  font-size: var(--h3);
  letter-spacing: -.03rem;
  line-height: 1;
  color: var(--color-font) !important;
  text-transform: uppercase;
}

#posts-container {
  display: grid;
  padding-inline: var(--padding);
  grid-template-columns: repeat(12,minmax(0,1fr));
  gap: 0 var(--gap);
  grid-column: 4/span 9; 
}

#posts-container .c-img--inner img {
  border-radius: var(--border-6px);
}

.load-more-wrapper {
  grid-column: span 12/span 12;
  margin-left: auto;
  margin-right: auto;
}

.load-more-wrapper button{
 
  margin-top: 4rem;
  margin-bottom: 8rem;
  font-family: "HB";
  font-size: var(--h1);
  letter-spacing: -.03rem;
  line-height: 1;
  color: var(--color-font) !important;
  text-transform: uppercase;
}

#posts-container article{
  grid-column: span 4;
   border-radius: var(--border-6px);
  padding: calc(var(--margin)/4);
  background: var(--color-green);
  margin-bottom: var(--gap);
}

#posts-container article .article-txt{
 
  padding: calc(var(--margin)*1);
 
}

@media screen and (max-width: 991px) {
  .cards-stack-card.is--wide {
    aspect-ratio: 5 / 4;
  }
}

@media screen and (max-width: 767px) {
  .cards-stack__item.is--wide {
    max-width: 25em;
  }

  .cards-stack-card {
    font-size: .8em;
  }

  .cards-stack-card.is--wide {
    aspect-ratio: 2 / 3;
  }

  .cards-stack-card__h.is--wide {
    font-size: 3.375em;
  }
}

@media screen and (min-width: 1200px) and (max-width: 1800px) and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-width: 1200px) and (max-width: 1800px) and (min-resolution: 192dpi) {
    
    /* Votre CSS spécifique aux MacBooks ici */
    .hero-title {
        font-size: 3.5rem;
    }
}








