/* -------------------------------- */
/* -----------  GENERAL  ---------- */
/* -------------------------------- */

/* Scroll */
html {
  scroll-behavior: smooth;
}

/* Box-sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
  /* DEV ONLY */
  /* outline: 1px solid red; */
}
pre {
  background-color: var(--color-black);
  color: var(--color-yellow);
}

/* Body */
body {
  margin: 0;
  color: var(--color-black);
  font-family: "Catamaran", sans-serif;
  font-size: 1.25rem;
  letter-spacing: .05rem;
  line-height: 1.5;
}
@media (max-width: 1200px) {
  body {
    font-size: 1.125rem;
  }
}

/* Empêche le scroll sur la page lorsqu'une modale est ouverte */
.no-scroll {
  overflow: hidden;
}

/* Containers */
.container {
  max-width: min(1668px, 100%);
  margin: auto;
  padding: 0 1rem;
}

/* Images */
img,
picture {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* Éléments texte */

/* Selection */
::selection {
  background-color: var(--color-medium);
  color: white;
}

/* Titres */
h1,
h2,
h3,
h4 {
  margin: 0;
  color: inherit;
  font-size: 1.25rem;
  font-weight: normal;
}
@media (max-width: 1200px) {
  h1,
  h2,
  h3,
  h4 {
    font-size: 1.125rem;
  }
}

/* Paragraphes, textes inline, listes */
p,
span,
strong,
small,
em,
a,
b,
i,
u,
li,
button,
blockquote,
address,
figure,
figcaption,
label,
input,
select,
option,
textarea {
  color: inherit;
}
p,
ul,
ol {
  margin: 0;
  padding-bottom: .75rem;
}
:is(p, ul, ol):last-child {
  padding-bottom: 0;
}
em {
  font-style: normal;
}
strong,
em,
b {
  font-weight: bold;
}
small {
  font-size: .9rem;
}
:is(p, ul, ol):empty {
  display: none;
}

/* Liens */
a:hover {
  text-decoration: none;
}
/* Empéche le clic à la souris sur les liens sans href */
a:is([href="#"],[href=""]) {
  pointer-events: none;
}

/* Bouton */
button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
}

/* Liste */
ul {
  padding-left: 1.25rem;
}

/* Formulaire */
input,
select,
option,
textarea {
  font-family: inherit;
}

/* Adresse */
address {
  font-style: normal;
}

/* Citation */
blockquote {
  margin: 0 0 1rem 0;
  padding: 1rem;
  background-color: var(--color-light);
}

/* Pour les lecteurs d'écran (screen readers) */
.sr-only {
  border: 0;
  padding: 0;
  margin: 0;
  position: absolute !important;
  height: 1px; 
  width: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Style des titres */
.h1--hero {
  margin-bottom: 2rem;
  font-size: 4rem;
  line-height: 1.3;
  text-align: center;
}
.h1--hero strong {
  display: block;
  font-weight: 600;
}
.h1--hero + .btn {
  display: flex;
  margin: auto;
}
.h1--hero:has(+ .header__hero__lieu-projet) {
  margin-bottom: 1rem;
}
@media (max-width: 1200px) {
  .h1--hero {
    font-size: 2.25rem;
  }
}
.h2 {
  margin-bottom: 3rem;
  color: var(--color-medium);
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.3;
  text-align: center;
}
.h2::before {
  margin-right: 1.25rem;
  content: url('../images/icon-logo-blue.svg');
}
.h2--btn.btn {
  margin-bottom: 2rem;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  line-height: 1.3;
}
.h2--presentation {
  margin-bottom: 2rem;
  font-size: 1.75rem;
  line-height: 1.3;
}
.h2--presentation strong {
  display: block;
  font-size: 2.25rem;
}
.h2--presentation::before {
  display: none;
}
.h2--contact {
  text-align: left;
}
.h2--dirigeants {
  margin-bottom: 0;
  color: var(--color-white);
}
.h2--dirigeants::before {
  content: url('../images/icon-logo-white.svg');
}
.h3 {
  margin-bottom: .5rem;
  color: var(--color-medium);
  font-size: 1.75rem;
  font-weight: bold;
  line-height: 1.3;
}
.h3--dirigeant {
  margin-bottom: 0;
  color: var(--color-white);
}
.p--soustitre {
  max-width: 1200px;
  margin: 0 auto 5rem;
  text-align: center;
}
.text--light-blue {
  color: var(--color-light);
}
@media (max-width: 1200px) {
  .h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
  }
  .h2--btn.btn  {
    margin-bottom: 1rem;
  }
  .h2--presentation strong {
    font-size: 2.125rem;
  }
  .h3 {
    font-size: 1.5rem;
  }
  .h3--dirigeant {
    max-width: fit-content;
  }
  .p--soustitre {
    margin-bottom: 3rem;
  }
}

/* Call to action */
.btn {
  display: inline-flex;
  align-items: center;
  max-width: max-content;
  padding: 0 1.5rem 0 0;
  background-color: #6EADC4;
  border-radius: 5px;
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 300;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  transition: all .3s ease-out;
}
.btn::before {
  align-self: stretch;
  width: 50px;
  min-height: 50px;
  margin: 0 1rem 0 0;
  background-color: #fff2;
  background-image: url('../images/icon-logo-white.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px;
  content: "";
}
:is(a,button,input):not(:disabled).btn:is(:hover,:active,:focus) {
  background-color: var(--color-dark);
}
.btn--white {
  background-color: var(--color-white);
  color: var(--color-dark);
}
.btn--white::before {
  background-color: #0001;
  background-image: url('../images/icon-logo-darkblue.svg');
}
:is(a,button,input):not(:disabled).btn--white:is(:hover,:active,:focus) {
  background-color: #cce;
}
.btn--gray {
  background-color: #eeeef0;
  color: #6A6E81;
}
.btn--gray::before {
  background-color: var(--color-white);
  background-image: url('../images/icon-logo-gray.svg');
}
:is(a,button,input):not(:disabled).btn--gray:is(:hover,:active,:focus) {
  background-color: var(--color-light);
  color: var(--color-dark);
}

/* Sections */
.section-defaut {
  padding: 10vh 0;
}
.container-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.bloc-description {
  columns: 2;
  column-gap: 3rem;
}
.bloc-description > * {
  break-inside: avoid-column;
}
@media (max-width: 1200px) {
  .bloc-description {
    columns: initial;
    text-align: center;
  }
}

/* Page mentions légales */
body.privacy-policy .section-defaut .container {
  max-width: 900px;
}
.wp-block-heading {
  padding: 1rem 0 .5rem;
  color: var(--color-dark);
  font-size: 1.5rem;
  font-weight: bold;
}
