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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
#menu {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
a{
	text-decoration: none;
	color: black;
}


/* -- TEXTE -- ---------------------------------------------- -- TEXTE -- */

:root {

  /* THEME SOMBRE */
  --theme-sombre-couleur-principal: rgb(51, 8, 71);
  --theme-sombre-couleur-secondaire: hsl(
    /* Prend la teinte et la saturation de la variable */
    from var(--theme-sombre-couleur-principal) 
    /* Ajoute une luminosité plus faible */
    calc(l - 10%)
  );
  --theme-sombre-couleur-accent: rgb(220, 240, 111);
  --theme-sombre-couleur-fond: rgb(20, 5, 32); /* conseillé de base par matérial rgb(18, 18, 18); */

  /* THEME CLAIR */
  --theme-clair-couleur-secondaire: #c55f5f;
  --theme-clair-couleur-principal: #c55f5f;
  --theme-clair-couleur-accent: #c55f5f;

    /* Polices , a peaufiner*/
  /* old --h1: clamp(2.25rem, 6vw, 5.1rem); */
  --h1: clamp(2.25rem, 4vw + 1rem, 5.1rem);
  --h2: clamp(2rem, 5vw, 4rem);
  --h3: clamp(1.6rem, 4vw, 3rem);
  --h4: clamp(1.25rem, 3vw, 1.5rem);
  --h5: clamp(1rem, 3vw, 1.25rem);
  --p-sous-titre: clamp(1.25rem, 4vw, 1.75rem);
  --p-standard: clamp(1rem, 4vw, 1.5rem);
  --p-petit: clamp(0.925rem, 3vw, 1.25rem);
  --p-condition: clamp(0.8rem, 3vw, 1rem);

  /* Animation polices p */
  --anim-duration: 0.6s;
  --stagger-step: 0.15s;
  --easing: cubic-bezier(.25,.1,.25,1);
}

html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: 'Synonym-Light';
  src: url('../fonts/Synonym-Light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Synonym-Regular';
  src: url('../fonts/Synonym-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Synonym-Bold';
  src: url('../fonts/Synonym-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Amulya-Bold';
  src: url('../fonts/Amulya-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Amulya-BoldItalic';
  src: url('../fonts/Amulya-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  font-style: italic;
}

p, ul>li:not(#menu li), a:not(a.bouton, #logo-menu, .effet-texte-souslignage, #menu a) { 
  font-family: 'Synonym-Regular', Arial, Helvetica, sans-serif;
  font-size: var(--p-standard);
  line-height: calc(var(--p-standard) *1.5);
    margin-bottom: 1.5rem;
    /* alignement des puces a-propos a améliorer
  list-style-position: inside;
   */
}

input, select, option, select:focus, textarea, label, #menu a { 
  font-family: 'Synonym-Regular', Arial, Helvetica, sans-serif;
  font-size: var(--p-petit);
  line-height: calc(var(--p-petit) *1.5);
}

select::part(icon) {
  width: 300px;
}

a.bouton:not(header .hero-text a) {
  max-width: fit-content;
}

h1,h2:not(.sous-titre),h3, h4, h5, #menu>a {
  font-family: 'Amulya-Bold', Georgia, serif;
}

p.sous-titre {
    font-size: var(--p-sous-titre);
    line-height: calc(var(--p-sous-titre) *1.5);
}

p.petit {
  font-size: var(--p-petit);
  line-height: calc(var(--p-petit) * 1.5);
}

p.condition {
  font-size: var(--p-condition);
  line-height: calc(var(--p-condition) * 1.5);
  color: #ddd;
}

h1 {
  font-size: var(--h1);
  line-height: calc(var(--h1) * 1.08);
  letter-spacing: 0.125rem;
}
h2:not(.sous-titre) {
  font-size: var(--h2);
  line-height: calc(var(--h2) * 1.15);
  margin-bottom: 5vw;
}
h3 {
  font-size: var(--h3);
  line-height: calc(var(--h3) * 1.15);
  margin-bottom: 6vw;
  margin-top: 5vw;
}
h4 {
  font-size: var(--h4);
  line-height: calc(var(--h4) * 1.15);
  margin-bottom: 1vw;
}
h5, button .button {
  font-size: var(--h5);
  line-height: calc(var(--h5) * 1.15);
  margin-top: 1.5vw;
  margin-bottom: 1vw;
  letter-spacing: 0.1rem;
  cursor: pointer;
}

span.italic {
    font-family: 'Amulya-BoldItalic';
}

.balance {
  text-wrap: balance;
}

a.bouton:not(.style-bouton-menu), button:not(#burger) {
    font-family: 'Synonym-Bold';
    font-size: var(--h5);
	  line-height: calc(var(--h5) *1.5);
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.style-bouton-menu {
  font-family: 'Synonym-Bold';
  font-size: var(--h5);
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}


section.clair a, section.clair button, header a.bouton {
  background-color: #171717;
  color: #fdfdfd;
}

/* a mettre pour les boutons de la home

box-shadow: 1px 2px 8px 2px #ffffff3b;
  border: 2px solid white;

  */

section.sombre a, section.sombre button, footer button.bouton {
  color: #212121;
}


/* -- Mise en page général MOBILE FIRST -- ------------------------------ -- Mise en page général MOBILE FIRST -- */

.grid-col-12 {
  display: grid;
  height: 100%;
  /* grid-template-columns: 1fr;  old qui faisait tout bug*/
  grid-template-columns: minmax(100px, auto); /* ici modifier */
  padding-left: 28px;
  padding-right: 28px;
  gap: 1.25rem;
}

.bouton {
  text-align: center;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

section, footer {
  padding-top: 8vw;
  padding-bottom: 6vw;
}

.gap-24 {
  column-gap: 1.5rem;
}

.gap-65 {
  column-gap: 1rem;
  padding-left: 20px;
  padding-right: 20px;
}

.rows-11 {
  grid-template-rows: 1fr;
  row-gap: 0rem;
}

.grid-row-1-auto {
  grid-template-rows: auto 1fr;
}

.reveal-section .slide {
  animation: none;
  transition: none;
  transform: none;
  opacity: 1;
}



/* -- Mise en page FORMULAIRES -- ----------------------------------- -- Mise en page FORMULAIRES -- */

form {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

label {
  display: block;
}

input {
  width: 100%;
  box-sizing: border-box;
  height: 4rem;
  font-size: var(--p-petit);
  padding: 0.2rem 0.75rem;
  border: none;
  border-radius: .5rem;
}

textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 400px;
  font-size: var(--p-petit);
  padding: 1.75rem 0.75rem;
  border: none;
  border-radius: .5rem;
  max-width: 100%;
}

input:focus, textarea:focus {
  outline: none;
  border: 3px solid #3E1E68; 
}

select {
  width: 100%;
  height: 4rem;
  box-sizing: border-box;
  font-size: var(--p-petit);
  padding: 0.2rem 0.75rem;
  border: none;
  border-radius: 0.5rem;
}

.input-50-p100 {
  width: calc(50% - 0.75rem); /* Rendre la valeur gap dynamique selon le gap de la section / site ? */
}

.input-100-p100 {
  width: 100%; /* Rendre la valeur gap dynamique selon le gap de la section / site ? */
}

.label-et-input, .label-et-textarea {
  position: relative;
  & label {
    color: rgb(89, 89, 89);
    position: absolute;
    top: 1.25rem;
    left: 0.75rem;
    transition:
      top 0.2s ease-in-out,
      font-size 0.2s ease-in-out,
      color 0.2s ease-in-out,
      padding 0.2s ease-in-out;
  }
}

.label-et-input-remplis {
  & label {
    font-size: 0.875rem;
    top: -0.1rem;
    left: 0.75rem;
  }
}

.label-et-select {
  & label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    }
}

.label-et-textarea-remplis {
  & label {
    font-size: 0.875rem;
    top: 0.3rem;
    left: 0.75rem;
  }
}



  /* -- HEADER -- --------------------------------------------------------------------------------------- HEADER -- */

header {

  background: white;

  /* a garder tjr ? */
  & nav {
    isolation: isolate;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    height: 80px;
    width: 100%;
    padding: 20px 20px 10px 20px;
    position: fixed;
    justify-content: space-between;
    z-index: 100;
    backdrop-filter: blur(7px);
    background-color: rgba(255, 255, 255, 0.69);
    box-sizing: border-box;
    box-shadow: #0000001c 0px 2px 10px 1px;
  }

  & nav.hide {
    transform: translateY(-100%);
  }

  & #logo-menu {
    display: flex;
    & img {
      width: clamp(55px, 10vw, 65px);
      height: auto;
    }
  }

  & #burger {
        position: absolute;
    right: 30px;
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1337;
  }

  & #burger span {
    height: 3px;
    width: 100%;
    background: #000;
    border-radius: 2px;
    transition: 0.3s;
    opacity: 1;
  }

  & #burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  & #burger.active span:nth-child(2) {
    opacity: 0;
  }
  & #burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  & #menu {

    display: flex;
    align-items: center;

    inset: 0;
    background: white;

    flex-direction: column;
    align-items: center;
    justify-content: start;
    gap: 2rem;
    transform: translateX(200%);
    transition: transform 0.4s ease;

  }

  /* Quand le menu est s'ouvre */
  & #menu.active {
    position: absolute;
    height: 100vh;
    transform: translateX(0);
    background-color: white;
    padding: 90px 16px 20px 16px;
    box-shadow: 0px 2px 10px 2px #0000003b;
    font-weight: bold;
    & a {
      padding: 1rem;
    }
  }

  & #menuOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 90;
  }

  & #menuOverlay.active {
    opacity: 1;
    pointer-events: all;
  }

  & body.menu-open {
    overflow: hidden;
  }

  & body.menu-open main,
  body.menu-open footer,
  body.menu-open section {
    pointer-events: none;
    user-select: none;
  }

    /* FIN menu mobile ---------------------------------------- FIN menu mobile */


  & h1 {
    margin-top: 30vw;
    margin-bottom: 1rem;
    height: fit-content;
  }
  
  & h2.sous-titre {
    font-size: calc(var(--h4));
    line-height: calc(var(--h4) * 1.4);
    font-family: 'Synonym-Regular', Arial, Helvetica, sans-serif;
  }

  & .hero-text {
    grid-row: 1;
    grid-column: 1 / -1;
    z-index: 2;
    position: relative;
  }

  & .hero-image {
    grid-row: 2;
    grid-column: 1 / -1;
    height: fit-content;
    margin: 2rem 0rem;
    z-index: 2;
    & .scene {
      min-height: 150px;
    }
  }

  & #boutons-sections-header {
    display: none;
    position: absolute;
    bottom: -2rem;
    gap: 3rem;

    & a {
      padding: 1.5rem 3rem;
    }
  }
}

  


  /* -- SERVICES -- ---------------------------------------------- -- SERVICES -- */

  #services {

    & h2 {
      color: white;
      grid-column: 1 / -1;
      text-align: center;
    }

    & .carte {
      grid-column: 1 / -1;
      background-color: rgba(255, 253, 250, 0.87);
      border-radius: 30px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-direction: column;
      padding: 2vw;
      backdrop-filter: contrast(80%);

      
      & h3 {
        text-align: center;
      }
        
      & li {
        list-style: none;
      }
    }
  }




/* -- COLLABORATION -- ---------------------------------------------- -- COLLABORATION -- */

#collaboration {

  background-color: white;

  & h2 {
    grid-column: 1 / -1;
  }
  & .illustration {
      grid-column: 1 / -1;
      display: flex;
      justify-content: center;
      align-items: center;
      & #lottie-animation {
        /* mettre un clamp */
        width:600px;
        height: auto;
        max-width: 100%;
      }
  }
  & .contenu-texte {
      display: flex;
      flex-direction: column;
      justify-content: center;
      grid-column: 1 / -1;
  }
}



  /* -- ON SAPPELLE -- ---------------------------------------------- -- ON SAPPELLE -- */

#on-sappelle {

  backdrop-filter: hue-rotate(300deg);
  color: white;
  justify-content: center;

  h2 {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 2vw;
  }
  & a {
    grid-column: 1 / -1;
    justify-self: center;
    align-self: center;
    font-size: var(--h2);
    font-weight: 400;
    padding: 1.5rem 1.25rem;

    & span {
      filter: brightness(0) invert(1);
    }
  }
  & p {
    margin-top: 5vw;
    grid-column: 1 / -1;
    width: clamp(70vw, 50%, 50vw);
    text-wrap: balance;
    text-align: center;
    justify-self: center;
    font-size: var(--p-petit);
  }
}



/* -- A PROPOS -- ---------------------------------------------- -- A PROPOS -- */

#a-propos {

  background-color: rgb(240, 240, 240);

  & h2 {
    grid-column: 1 / -1;
    margin-bottom: 0vw;
  }

  & .contenu-texte {
    order: 3;
    grid-column: 1 / -1;

    & h3 {
      margin-top: 2vw;
    }

    & p {
      text-wrap: balance;
    }
  }
  
  & .illustration {
    order: 2;
    display: grid;
    grid-column: 1 / -1;

    & > div {
      border-radius: 0.5rem;
      overflow: hidden;
    }
  }

  & .description-texte {
    display: none;
  }
}



/* -- BLOG -- ---------------------------------------------- -- BLOG -- */




/* -- FOOTER -- ---------------------------------------------- -- FOOTER -- */


footer {

  background-color: #212121c9;
  min-height: 70vh;
  padding-bottom: 4vw;
  backdrop-filter: grayscale(80%);

  & label {
    color: black;
  }

  & *:not(input, button, textarea, select, option, label) {
    color: white;
  }

  & h2 {
    grid-column: 1 / -1;
  }

  & #formulaire-home {
    grid-column: 1 / -1
  }
  
  & .contact-adresse {
    grid-column: 1 / -1;
  }
}



/* TABLETTE  ------------------------------------------------------- TABLETTE */
@media (min-width: 768px) {

  .gap-65 {
  column-gap: 2rem;
  padding-left: 40px;
  padding-right: 40px;
  }

  .rows-11 {
    grid-template-rows: repeat(11, minmax(0, 1fr));
    row-gap: 2rem;
  }

  .grid-col-12 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding-left: 28px;
    padding-right: 28px;
    gap: 1.5rem;
  }

  h3 {
    margin-bottom: 6vw;
    margin-top: 5vw;
  }

  header {

  height: 85vh;

    & nav {
      padding: 20px 40px;

      & > li {
      margin: 0rem 0.5rem;
      }
      
      & #burger {
        display: none;
      }

      & #menu {
        position: static;
        transform: none;
        flex-direction: row;
        background: transparent;
        height: auto;
        justify-content: center;
      }

    }

    & h1 {
      margin-top: 19vw;
    }

    & h2.sous-titre {
    font-size: calc(var(--h4) * 1.10);
    }

    & .hero-text {
      grid-row: 1 / -1;
      grid-column: 1 / span 8;
    }

    & .hero-image {
      height: inherit;
      margin: 0rem 0rem;
      grid-row: 1 / -1;
      grid-column: 7 / span 6;
      & .scene {
      min-height: none;
      }
    }

    & .bouton {
      text-align: left;
    }

   & #boutons-sections-header {
      display: flex;
    }
  }

  #services {
  & .carte {
    grid-column: 2 / span 4;
    }
  }

  #on-sappelle {
    & a {
      padding: 1.5rem 2.5rem;
    }
  }
}

/*  MEDIA QUERIES PETIT LAPTOP 1200px ---------------------------------------------------- MEDIA QUERIES 1200px PETIT LAPTOP */
@media (min-width: 1200px) {

  .texte-mobile {
    display: none;
  }

  .gap-65 {
    column-gap: 4rem;
    padding-left: 80px;
    padding-right: 80px;
  }

  .grid-col-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    padding-left: 32px;
    padding-right: 32px;
    column-gap: 2rem;
  }

  h3 {
    margin-bottom: 2vw;
    margin-top: 2vw;
  }

  header {
    & #menu {
      & li {
        margin: 0rem 1rem;
      }
    }
    & h1 {
      margin-top: 14vh;
    }
  }

  #services {
    & .carte {
      grid-column: span 4;
    }
  }

  #collaboration {
    & h2 {
      grid-column: 1 / -1;
      grid-row: 1;
    }
    & .illustration {
      grid-column: span 4;
      grid-row: 2;
    }
    & .contenu-texte {
      grid-column: 6 / span 6;
      grid-row: 2;
    }
  }

  #on-sappelle {
    & a {
      padding: 1.5rem 2.5rem;
      padding: 3rem 5rem;
    }
  }

  #a-propos {

    & h2 {
      grid-column: 1 / span 4;
    }

    & .contenu-texte {
      order: none;
      grid-column: 1 / span 4;
    }

    & .illustration {
      order: none;
      grid-column: 6 / span 5;
      grid-row: 1 / -1;

      /* Image 3 colonnes à gauche, toute la hauteur */
      & > div:nth-of-type(1) {
        grid-column: 1 / span 3;
        grid-row: 1 / span 2;
      }

      /* Image 3 colonnes à droite, en haut */
      & > div:nth-of-type(2) {
        grid-column: 4 / span 3;
        grid-row: 1;
      }

      /* Image 3 colonnes à droite, en bas */
      & > div:nth-of-type(3) {
        grid-column: 4 / span 3;
        grid-row: 2;
      }
    }
  }

  footer {
    & h2 {
    grid-column: 1 / -1;
    }
    & #formulaire-home {
      grid-column: 1 /span 6;

      & .label-et-input {
        & label {
          top: 1rem;
        }
      }
      .label-et-input-remplis {
        & label {
          top: -0.1rem;
        }
      }
    }
    & .contact-adresse {
      grid-column: 8 / -1;
    }
  }
}



/*  MEDIA QUERIES 1400px --------------------------------------------------------------- MEDIA QUERIES 1400px */
@media (min-width: 1400px) {

  .grid-col-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    padding-left: 40px;
    padding-right: 40px;
    column-gap: 3rem;
  }

  header {
    & h1 {
      margin-top: 20vh;
    }
  }

  footer {
    & #formulaire-home {
      grid-column: 2 /span 5;
    }
    & h2 {
      grid-column: 2 / -1;
    }
  }
}


/* MEDIA QUERIES 1500px --------------------------------------------------------------- MEDIA QUERIES 1900px */
@media (min-width: 1500px) {

  header {
    & h1 {
      margin-top: 13vh;
    }
  }
}


/* MEDIA QUERIES 1800px --------------------------------------------------------------- MEDIA QUERIES 1900px */
@media (min-width: 1600px) {

  header {
    & h1 {
      margin-top: 17vh;
    }
  }
}

