/*
         * Guide des blocs réutilisables :
         * <div class="box-c p-5" style="--c:var(--c-accent-1);--bg:var(--c-zone-1)">
         *   <h3 class="box-c-title">Titre</h3><p>Texte du bloc</p>
         *   <p class="box-c-footer">Source ou pied de bloc</p>
         * </div>
         * Citation : ajouter .is-quote et écrire soi-même « les guillemets » ainsi que <em>l'italique</em>.
         * Titre : .section-title ; bouton : .button.btn-c avec style="--c:var(--c-primary)".
         * Icône : .icon-c avec un SVG inline (stroke="currentColor").
         */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-body);
  color: var(--c-text);
  background: rgb(252, 251, 254, 0.4);
  line-height: 1.75;

  /* Sticky footer */
  min-height: 100vh;
  min-height: 100dvh; /* meilleur support mobile (barre d'adresse) */
  display: flex;
  flex-direction: column;
  position: relative;
}


_body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/logo_transp_400.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Calque blanc pour éclaircir */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* 0.75 = 75% de blanc */
    z-index: -1;
}

main {
  flex: 1 0 auto; /* prend tout l'espace libre, ne rétrécit jamais */
}

.site-footer {
  flex-shrink: 0; /* le footer garde sa taille */
}

h1,
h2,
h3,
h4,
.title,
.brand-title {
  _font-family: var(--font-title);
  _font-family: Georgia, "Times New Roman", serif;
 font-family: sans-serif;
  color: var(--c-primary-darker);
}


.content h5, .content h6 {
  font-weight: 400;
  line-height: 1.7;
}

.content h5 { font-size: 1.3em;}
.content h6 { font-size: 1.2em;}

a {
  color: var(--c-primary);
  transition: color 0.2s ease;
}
a:hover {
  color: var(--c-primary-dark);
}

.content img {
  border-radius: 8px;
}

.content.has-text-centered ul, /*corrige bug li avec texte centré*/
.content .has-text-centered ul {
  list-style-position: inside;
  padding-left: 0;
}

/* ---------- Navbar sticky ---------- */
.navbar {
  background: rgba(253, 252, 254, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid var(--c-primary);
}

.navbar-brand .navbar-item {
  padding: 0.4rem 1rem;
}


.brand-logo {
  max-height: clamp(3rem, 8vw, 5rem) !important;
  width: auto;
  margin-right: clamp(0.4rem, 2vw, 0.75rem);
  object-fit: contain;
}


.brand-title {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--c-primary-darker);
  font-family: sans-serif;
}

.title {
  _font-family: sans-serif;
}

.brand-sub {
  font-size: clamp(0.9rem, 3vw, 1.5rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent-1);
  font-family: Georgia, "Times New Roman", serif;
}



.navbar-item,
.navbar-link {
  color: var(--c-primary);
  font-weight: 600;
}

.navbar-item:hover,
.navbar-item:focus,
.navbar .navbar-item.is-active {
  background: var(--c-primary-bg) !important;
  color: var(--c-primary-dark) !important;
}




.navbar-burger {
  color: var(--c-primary);
}

/* ---------- Hero ---------- */
.hero-home {
  _background: linear-gradient(160deg, var(--c-primary-bg), #fff 65%);
  _padding: 4rem 1.5rem;
  padding: 2rem 0;
}

.hero-home .hero-logo {
  _max-width: 220px;
  margin: 0 auto 1rem;
  display: block;
}

.hero-home h1 {
  font-size: clamp(1.6rem, 4vw, 3rem);
  margin-bottom: 2.25rem;
}

.hero-home .subtitle {
  color: var(--c-accent-1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 6vw, 4.5rem);
  _font-size: 4.5rem;
  font-weight: 800;
  font-family: Georgia, "Times New Roman", serif;
}



/* ---------- Sections ---------- */
.section-block {
  padding: 4rem 1.5rem;
}

.section-title {
  font-size: 2.1rem;
  text-align: center;
  margin-bottom: 0.5rem !important;
}

.section-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 3px;
  margin: 0.8rem auto 2.5rem;
  background: linear-gradient(
    90deg,
    var(--c-accent-1),
    var(--c-accent-2),
    var(--c-accent-3),
    var(--c-accent-4)
  );
  border-radius: 3px;
}

.section-subtitle {
  color: var(--c-text-soft);
}

/* ---------- Boites ---------- */
.box-c {
  --c: var(--c-primary);
  --bg: #fff;

  height: auto;
  background: var(--bg);
  border-left: 5px solid var(--c);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.045);
}

.box-c-title {
  color: var(--c);
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-title);
  margin-bottom: 0.6rem;
}

.box-c-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.09);
  color: var(--c-text-soft);
  font-size: 0.8rem;
}

.box-c.is-quote {
  border-left-width: 4px;
}

.box-c.is-quote p {
  line-height: 1.7;
}

.btn-c {
  --c: var(--c-primary);
  background: var(--c);
  border-color: var(--c);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.btn-c:hover,
.btn-c:focus {
  color: #fff;
  filter: brightness(0.9);
  transform: translateY(-2px);
}

.icon-c {
  --c: var(--c-primary);

  width: 5.75rem;
  height: 5.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--c);
  background: #fff;
  border: 3px solid var(--c);
  border-radius: 50%;
  padding: 1.1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  transition: transform 0.25s ease;
}

.icon-c svg {
  display: block;
  width: 100%;
  height: 100%;
}



/* --- Bouton call to action --- */
.cta-panel {
  background: linear-gradient(135deg, var(--c-primary-bg), #fff);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-footer-bg);
  color: var(--c-footer-text);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.site-footer a {
  color: var(--c-footer-text);
  margin: 0 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer small {
  display: block;
  margin-top: 1rem;
  opacity: 0.8;
}

.site-footer small a {
  margin: 0;
}

#back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.3s,
    visibility 0.3s,
    transform 0.3s,
    background 0.2s;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

#back-to-top:hover {
  background: var(--c-primary-dark);
}


@media (max-width: 599px) {
  .section-block {
    padding: 3rem 1rem;
  }
  .hero-home {
    padding: 3rem 1rem;
  }

  .icon-c {
    width: 4.75rem;
    height: 4.75rem;
    padding: 0.9rem;
  }

  .site-footer a {
    display: inline-block;
    margin: 0.25rem 0.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}


.language-switch {
  gap: 0.5rem;
  border-left: 1px solid rgba(0, 0, 0, 0.2);
  margin-left: 0.5rem;
  padding-left: 1rem;
}

.language-switch a {
  color: inherit;
  text-decoration: none;
}

.language-switch a:hover,
.language-switch a:focus-visible {
  text-decoration: underline;
}

.language-separator {
  opacity: 0.5;
}

/* Sur mobile, le menu est empilé : remplace la bordure verticale */
@media screen and (max-width: 1023px) {
  .language-switch {
    border-left: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    margin-left: 0;
    padding: 0.75rem 1rem 0;
  }
}

.language-switch .is-current {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}


/* Menu mobile ouvert - bug color bg + color gras et h2 sur Android...! */
/* Titres : couleur définie explicitement */
h1,
h2,
h3,
h4,
.title,
.brand-title {
  color: var(--c-primary-darker) !important;
}


@media screen and (max-width: 1023px) {
  .navbar-menu.is-active {
    background-color: #fdfcfe;
  }

  .navbar-menu.is-active .navbar-item {
    color: var(--c-primary);
  }

  .navbar-menu.is-active .navbar-item:hover,
  .navbar-menu.is-active .navbar-item:focus,
  .navbar-menu.is-active .navbar-item.is-active {
    background-color: var(--c-primary-bg);
    color: var(--c-primary-dark);
  }
}