/* Theme base styles */
:root {
    --color-primary: #36657A;
    --color-secondary: #C6A47D;
    --color-secondary-alpha:rgba(198, 164, 125, 0.25);
    --color-secondary-alpha-50:rgba(198, 164, 125, 0.5);
    --color-secondary-light: #ffd4a2;
    --color-primary-alpha:rgba(54, 101, 122, 0.25);
    --color-primary-alpha-50:rgba(54, 100, 122, 0.5);
    --color-bg-primary:rgb(245, 245, 245);
    --color-bg-primary-alpha:rgba(245, 245, 245, 0.5);
    --color-bg-primary-alpha-75:rgba(245, 245, 245, 0.75);
    --color-bg-secondary: #E1E1E1;
    --color-text: rgba(30, 30, 30, 0.75);
}

/* Tools
Any animations, or functions used throughout the project.
Note: _macros.css needs to be imported into each stylesheet where macros are used and not included here
*/

/* Generic
This is where reset, normalize & box-sizing styles go.
*/
*, *:before, *:after {
  box-sizing: border-box;
}
/*! 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 {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * Add the correct box sizing in Firefox.
 */

hr {
  box-sizing: content-box;
  height: 0;
}

/**
 * 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
   ========================================================================== */

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, 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;
}

/* 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 */
}

/**
 * Remove the inheritance of text transform in Edge and Firefox.
 * 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.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * 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;
}

/**
 * Remove the padding so developers are not caught out when they zero out `fieldset` elements in all browsers.
 */

legend {
  padding: 0;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * 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"] {
  -webkit-appearance: textfield; /* 1 */
  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 and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Objects
Non-cosmetic design patterns including grid and layout classes)
*/
h2 {
    color: var(--color-primary);
    font-family: Poppins, sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0;
    text-transform: uppercase;
}
h2 span {
    background-image: linear-gradient(to right, var(--color-primary), var(--color-secondary-light), var(--color-primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
    animation: gradient-animation 8s ease-in-out infinite;
}
p {
    font-family: 'Poppins', sans-serif;
    color: var(--color-text);
    font-size: 1.25rem;
    line-height: normal;
    margin: 0;
    z-index: 10;
}
p.sub {
    color: var(--color-primary);
}
.logo-max {
    text-align: center !important;
}
.logo-max a {
  pointer-events: none;
  cursor: default;
  text-decoration: none;
  color: inherit;
}
.logo-max img {
    min-width: 450px !important;
    max-width: 600px !important;
    width: 100% !important;
    height: auto !important;
}
@media (max-width: 1024px) {
    /* header {
        display: none !important;
    } */
    article {        
        width: 100% !important;
        flex-direction: column-reverse;
        justify-content: center !important;
    }

    h2 {
        font-size: 1.5rem !important;
        text-align: center;
    }

    p {
        font-size: 1rem;
    }
    p.sub {
        font-size: 1rem;
    }
}
@media (max-width: 440px) {
    section:not(:nth-child(1)) {
        animation-timeline: none !important;
        height: auto !important;
    }
    section:not(:nth-child(1)) .wrapper-content {
        animation-timeline: none !important;
        -webkit-animation-name: none !important;
        z-index: 10;
    }
    .logo-max img {
        min-width: 250px !important;
        max-width: 250px !important;
    }
}

/* Elements
Base HMTL elements are styled in this section (<body>, <h1>, <a>, <p>, <button> etc.)
*/

/* Components
Specific pieces of UI that are stylized. Typically used for global partial styling
*/
header {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: calc(100% - 200px);
  max-width: 1240px;
  height: 75px;
  border-radius: 16px;
  padding: 0.5rem 1rem;

  background-color: hsl(0deg 0% 96% / 10%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

header .header_logo {
    width: 190px;
    height: 100%;
}
header .header_logo #hs_cos_wrapper_site_logo {
    height: 100%;
}
header .header_logo img {
    width: auto !important;
    height: 60px !important;
}

header nav * {
    transition: all 0.3s ease-in-out;
}

header nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul li a {
    font-family: "Roboto", sans-serif;
    color: rgba(0, 0, 0, 0.75);
    text-transform: uppercase;
    text-decoration: none;
}
header nav ul li a:hover {
    color: var(--color-secondary);
}

header nav ul li:last-child {
    padding: 0.5rem 1rem;
    border-radius: 24px;
    background-color: var(--color-primary);
    scale: 1;
    box-shadow: none;
}
header nav ul li:last-child a {
    color: rgb(255, 255, 255);
    border-width: 0px;
}
header nav ul li:last-child:hover {
    border-width: 0px;
    scale: 1.05;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
}

/* Styles du bouton Burger (masqué sur desktop) */
.burger-menu-toggle {
    display: none; /* Masqué par défaut sur desktop */
    background: none;
    box-shadow: none !important;
    border: none;
    min-width: unset;
    max-width: unset;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
}

.burger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Styles pour l'état ouvert du burger (quand la classe .menu-open est ajoutée au body) */
body.menu-open .burger-menu-toggle .burger-icon:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

body.menu-open .burger-menu-toggle .burger-icon:nth-child(2) {
    opacity: 0;
}

body.menu-open .burger-menu-toggle .burger-icon:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Media Queries pour le mobile */
@media (max-width: 768px) {
    header {
        top: 0;
        left: 0;
        transform: none;
        border: 0;
        border-radius: 0;
        width: 100%;
    }

    .burger-menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 4rem;
        right: -100%;
        width: 100%;
        height: 100%;
        transition: right 0.3s ease-in-out;
        padding-top: 80px;
        z-index: 1000;
        overflow-y: auto;
    }

    body.menu-open header {
        background-color: var(--color-bg-primary);
    }
    /* Quand le menu est ouvert */
    body.menu-open nav {
        display: flex;
        justify-content: center;
        right: 0;
        top: 4rem;
        padding: 1rem;
        height: calc(100dvh - 4rem);
        background-color: var(--color-bg-primary);
        z-index: 10000;
    }

    nav ul {
        flex-direction: column; /* Empile les éléments de menu verticalement */
        align-items: flex-start; /* Aligne les éléments à gauche */
        padding: 1rem 2rem;
    }

    nav li {
        
    }

    nav li a {
        display: block;
        font-size: 1.2rem;
    }

    /* Masquer le language switcher toggle pour le moment si pas stylisé pour le mobile */
    .header__language-switcher--toggle {
        display: none;
    }
}
/* Footer Section */
.site-footer {
  padding: 2rem 1rem;
  font-family: 'Roboto', sans-serif; 
  color: #FFFFFF;
  background-color: var(--color-primary);
}

.footer-top {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(245, 245, 245, 0.75);
  margin: 1rem auto;
  max-width: 1000px;
}

.footer-bottom {
  max-width: 1000px;
  width: calc(100% - 2rem);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  font-family: 'Abel', sans-serif;
}

#hs_cos_wrapper_footer_bottom_section_content_module {
  width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  /* .footer-columns-container {
    grid-template-columns: repeat(2, 1fr);
  } */

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* .footer-logo,
  .footer-info,
  .footer-social {
    width: 100%;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  } */
}

@media (max-width: 576px) {
  /* .footer-columns-container {
    grid-template-columns: 1fr;
  } */

  .site-footer {
    padding: 40px 15px 20px;
  }
}

/* Utilities
Helper classes with ability to override anything that comes before it
*/
#news .row {
  min-width: 750px;
  max-width: none;
}
#news {
  padding-top: 50px;
  cursor: pointer;
  text-align: center;
  background: linear-gradient(180deg,#fff,#f9dec0,#fff);
}
#news .cardNews {
  display: flex;
  flex-direction: column;
  margin: 20px;
  width: 300px;
  height: 370px;
  overflow: hidden;
  box-shadow: 0 .1rem 1rem rgba(0, 0, 0, 0.1);
  border-radius: 1em;
  background: rgba(255, 255, 255, 0.815);
  transition: .3s;
}

#news .cardNews img {
  width: 100%;
  height: 200px;
  display: block;
  object-fit: cover;
}

#news .card__body {
  padding: 10px 20px 0 20px;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}


#news .tag {
  color: #fff;
  letter-spacing: 1px;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 15px;
}

#news .tag-event {
  background: linear-gradient(to bottom, #36667a, #0088c3);
}

#news .tag-news {
  background: linear-gradient(to bottom, #c6a47e, #b16d1f);
}

#news .card__body h4 {
  width: 100%;
  margin: auto;
  height: 50px;
  text-align: center;
  vertical-align : middle;
  font-size: 25px;
}

#news .card__footer {
  display: flex;
  padding: 0 20px;
  margin-top: auto;
  justify-content: flex-end;
}

#news .card__footer h5 {
  font-family: 'AbelBold';
}


#news .columns > h1 {
  margin-top: 27px;
  line-height: normal;
}

#news #news-wrapper {
  display: flex;
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  margin-bottom: 50px;
  justify-content: center;
}

#news .card__footer h5 {
  font-size: 13.28px;
  font-weight: 700;
  margin: 1.67em 0;
  color: #000;
  line-height: normal;
}

#news .card__body h4 {
  font-weight: 700;
}

#news #news-wrapper:hover .cardNews:not(:hover) {
  -webkit-filter: grayscale(70%);
  filter: grayscale(70%);
  box-shadow: none;
  opacity: .75;
}




#news .modalBackground {
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0,0,0,0.5);
}

#news .modal-content {
  background-color: #fefefe;
  border-radius: 10px;
  width: 80%;
  height: 90%;
}

#news .modal-content .close {
  position: sticky !important;
  color: #36667a55;
  height: 50px;
  width: 50px;
  font-size: 50px !important;
  margin-left: calc(100% - 50px);
  z-index: 999;
}

#news .modal-content .close:hover {
  color: #36667a;
  cursor: pointer;
}

#news .modal-content .popupContent {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content:flex-start;
  align-items: center;
  margin-top: -50px;
  border-radius: 10px;
}

#news .cardNews::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(#000, 0);
  transition: .3s;
}

#news .modal-content .imageHandler {
  height: 50%;
  width: 100%;
  overflow: hidden;
}

#news .modal-content .imageHandler img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#news .popupTextContent {
  padding-left: 5%;
  padding-right: 5%;
  height: 50%;
  overflow-x: auto;
  text-align: center;
}

#news .popupTextContent h1 {
  margin-bottom: 0px;
}


#news .popupTextContent {
  padding-left: 5%;
  padding-right: 5%;
  height: 50%;
  overflow-x: auto;
  text-align: center;
}

#news .popupTextContent h1 {
  margin-top:0.83em;
}


#news .popupTextContent p {
  color: #000;
}


@media (max-width:767px) {
  section#news {
    padding: 30px 9%;
  }
  #news .row {
    min-width: 100%;
  }
  #news  #news-wrapper {
    margin-bottom: 0;
  }
  #news .cardNews {
    max-width: 300px;
    width: 100%;
    margin: 20px 0;
  }
  #news .columns>h1 {
    font-size: 30p;
  }
}

/* Sections
Styles by section */
section#hero-section {
    background-color: transparent;
    z-index: 1;
}
section#hero-section article {
    min-height: unset;
}
section#hero-section button {
    z-index: 5;
}
section#hero-section div#hs_cos_wrapper_image_bubble img {
    max-width: 400px !important;
    height: 400px;
    object-fit: cover;
    border-radius: 100%;
    opacity: 0.75;

    -webkit-animation-name: zoomInHero;
    animation-duration: 1s;
    animation-fill-mode: backwards;
}

@media (max-width: 1024px) {
    section#hero-section article {
        justify-content: center;
    }
    section#hero-section div#hs_cos_wrapper_image_bubble img {
        max-width: calc(100dvh / 4) !important;
        height: calc(100dvh / 4);
    }
}

@keyframes zoomInHero {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 0.75; transform: scale(1); }
}
section#philosophy-section {
}
section#philosophy-section h2 {
    animation-timeline: view();
    animation-range: entry 0 cover 60%;
    animation-fill-mode: both;
    -webkit-animation-name: fadeInTop;
}
section#philosophy-section button {
    z-index: 5;
}
div#hs_cos_wrapper_philo_image img {
    max-width: 400px !important;
    height: 400px;
    object-fit: contain;
}


@media (max-width: 440px) {
    section#philosophy-section h2 {
        animation-timeline: unset !important;
    }
    section#philosophy-section .wrapper-content {
        animation-timeline: unset !important;
    }
    div#hs_cos_wrapper_philo_image img {
        width: 100%;
    }
}
section#expertise-section {
}
section#expertise-section h2 {
    animation-timeline: view();
    animation-range: entry 0 cover 60%;
    animation-fill-mode: both;
    -webkit-animation-name: fadeInTop;
}
section#expertise-section h3 {
    text-align: left;
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-primary);
    margin: 0;
    text-transform: uppercase;
}
section#expertise-section h3 span {
    color: var(--color-secondary);
}
section#expertise-section button {
    z-index: 5;
}
section#ecosystem-section {
}
section#ecosystem-section h2 {
    animation-timeline: view();
    animation-range: entry 0 cover 60%;
    animation-fill-mode: both;
    -webkit-animation-name: fadeInTop;
}
section#ecosystem-section button {
    z-index: 5;
}

section#ecosystem-section .quadrant-container {
    animation-timeline: view();
    animation-range: entry 0 cover 50%;
    animation-duration: 1s;
    animation-fill-mode: backwards;
    -webkit-animation-name: zoomIn;
}

section#events-section {
    gap: 1.5rem;
}