@font-face {
  font-family: 'icomoon';
  src: url("../fonts/icomoon/icomoon.woff?srf3rx") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Offset navbar fixe pour les ancres via hash URL (navigation inter-pages) */
html {
  scroll-padding-top: 80px;
}
/* =======================================================
*
* 	Template Style 
*	Edit this section
*
* ======================================================= */
body {
  font-family: "Source Sans Pro", Arial, sans-serif;
  font-weight:500;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: #542e2a;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* Évite les débordements horizontaux */
  word-wrap: break-word; /* Prévention des coupures de mots */
  overflow-wrap: break-word; /* Modernisation */
  background: linear-gradient(rgb(252, 236, 216), rgb(254, 246, 238));
}

body, html {
  width: 100vw;
  overflow-x: hidden;
}

a {
  color: #044f5b;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
}
a:hover, a:active, a:focus {
  color: #044f5b;
  outline: none;
}

p {
  margin-bottom: 1.5em;
}

h1, h2, h3, h4, h5, h6 {
  color: #542e2a;
  font-family: "Source Sans Pro", Arial, sans-serif;
  font-weight: 700;
}

/* Typo globale (hors hero qui a ses règles propres) */
h1 { font-size: var(--fs-h1); line-height: 1.2; }
h2 { font-size: var(--fs-h2); line-height: 1.25; }
h3 { font-size: var(--fs-h3); line-height: 1.3; }

/* Utilitaires */
.text-dense { font-size: var(--fs-dense); }
.text-lead { font-size: var(--fs-lead); }
.text-small { font-size: var(--fs-small); }

::-webkit-selection {
  color: #044f5b;
  background: white;
}

::-moz-selection {
  color: #044f5b;
  background: white;
}

::selection {
  color: #044f5b;
  background: white;
}

.edge--bottom {
  position: relative;
  z-index: 1;
}
.edge--bottom:after {
  background: inherit;
  content: '';
  display: block;
  height: 50%;
  left: 0;
  position: absolute;
  right: 0;
  z-index: -1;
  -webkit-backface-visibility: hidden;
}
.edge--bottom:after {
  bottom: 0;
  transform: skewY(-1.5deg);
  transform-origin: 100%;
}

.edge--bottom--reverse {
  position: relative;
  z-index: 1;
}
.edge--bottom--reverse:after {
  background: inherit;
  content: '';
  display: block;
  height: 50%;
  left: 0;
  position: absolute;
  right: 0;
  z-index: -1;
  -webkit-backface-visibility: hidden;
}
.edge--bottom--reverse:after {
  bottom: 0;
  transform: skewY(1.5deg);
  transform-origin: 0 100%;
}

.edge--top {
  position: relative;
  z-index: 1;
}
.edge--top:before {
  background: inherit;
  content: '';
  display: block;
  height: 50%;
  left: 0;
  position: absolute;
  right: 0;
  z-index: -1;
  -webkit-backface-visibility: hidden;
}
.edge--top:before {
  top: 0;
  transform: skewY(1.5deg);
  transform-origin: 100% 0;
}

.edge--top--reverse {
  position: relative;
  z-index: 1;
}
.edge--top--reverse:before {
  background: inherit;
  content: '';
  display: block;
  height: 50%;
  left: 0;
  position: absolute;
  right: 0;
  z-index: -1;
  -webkit-backface-visibility: hidden;
}
.edge--top--reverse:before {
  top: 0;
  transform: skewY(-1.5deg);
  transform-origin: 0 0;
}

.edge--both {
  position: relative;
  z-index: 1;
}
.edge--both:before, .edge--both:after {
  background: inherit;
  content: '';
  display: block;
  height: 50%;
  left: 0;
  position: absolute;
  right: 0;
  z-index: -1;
  -webkit-backface-visibility: hidden;
}
.edge--both:before {
  top: 0;
  transform: skewY(1.5deg);
  transform-origin: 100% 0;
}
.edge--both:after {
  bottom: 0;
  transform: skewY(-1.5deg);
  transform-origin: 100%;
}

.edge--both--reverse {
  position: relative;
  z-index: 1;
}
.edge--both--reverse:before, .edge--both--reverse:after {
  background: inherit;
  content: '';
  display: block;
  height: 50%;
  left: 0;
  position: absolute;
  right: 0;
  z-index: -1;
}
.edge--both--reverse:before {
  top: 0;
  transform: skewY(-1.5deg);
  transform-origin: 0 0;
}
.edge--both--reverse:after {
  bottom: 0;
  transform: skewY(1.5deg);
  transform-origin: 0 0;
}

/* Animation défilement fluide + base rem */
html {
  scroll-behavior: smooth;
  font-size: 62.5%; /* 1rem = 10px pour le système typo */
  min-height: 100vh;
}

/* Animations */
@keyframes fadeInSection {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

:root {
  --skribi-orange: #e75623;
  --skribi-orange-strong: #c9441d;
  --skribi-cream: #fff8f2;
  --skribi-text: #542e2a;
  --skribi-btn-radius: 0 2.5rem 0 2.5rem;
  --skribi-btn-shadow: none;
  --skribi-btn-shadow-soft: none;

  /* Système typo global */
  --fs-dense: 1.6rem;
  --fs-body: 1.8rem;
  --fs-lead: 2.2rem;
  --fs-h1: 3.6rem;
  --fs-h2: 2.8rem;
  --fs-h3: 2.2rem;
  --fs-small: 1.4rem;
  --fs-btn: 1.6rem;
}



/* Boutons unifiés (orange plein ou blanc plein) */
.btn,
button,
input[type=submit],
input[type=button],
.signup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 26px;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--skribi-btn-radius);
  border: 2px solid transparent;
  background: transparent;
  color: var(--skribi-text);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  box-shadow: none;
}

.btn-primary,
.signup-btn {
  background: var(--skribi-orange);
  color: #fff;
  border-color: var(--skribi-orange);
  box-shadow: none;
}

.btn-primary:hover,
.signup-btn:hover {
  background: var(--skribi-orange-strong);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary,
.signup-btn.secondary {
  background: #fff;
  color: var(--skribi-orange);
  border-color: var(--skribi-orange);
  box-shadow: none;
}

.btn-secondary:hover,
.signup-btn.secondary:hover {
  background: var(--skribi-orange);
  color: #fff;
  transform: translateY(-1px);
}

.btn:focus-visible,
button:focus-visible,
input[type=submit]:focus-visible,
input[type=button]:focus-visible,
.signup-btn:focus-visible {
  outline: 3px solid rgba(231, 86, 35, 0.35);
  outline-offset: 2px;
}

.btn:disabled,
button:disabled,
input[type=submit]:disabled,
input[type=button]:disabled,
.signup-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Styles pour la page fonctionnement.html */

/* Animation fluide */
@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Title and Subtitle */
.title-subtitle {
  grid-column: span 4;
  text-align: center;
  margin-bottom: 40px;
  scroll-margin-top: 90px;
}

.title-subtitle .title {
  font-size: 3em;
  color: #542e2a;
  font-weight: bold;
}

.title-subtitle .subtitle {
  font-size: 1.5em;
  color: #542e2a;
  margin-top: 10px;
}

/* Add equal height handling for flex containers */
.row {
  display: flex;
  flex-wrap: wrap;
}

.col-md-4 {
  display: flex;
  flex-direction: column;
}

/* Cacher l'élément */
.hidden {
  display: none;
}

@media (max-width: 1200px) {
  #fh5co-home .text-container h1, 
  #fh5co-home .text-container h1 .highlight,
  #fh5co-intro .main-title,
  .title-subtitle .title,
  #fh5co-contact .title,
  .h1 .title,
  .article-title {
  font-size: 5rem;
  text-align: center;
  color: #542e2a;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

  .p,
  .description,
  #fh5co-intro .text-area,
  .pricing-tile ul,
  .parrainage h3,
  .parrainage-text,
  .title-subtitle .subtitle {
    font-size: 2.5rem;
  }
}

@media (max-width: 840px) {
  #fh5co-home .text-container h1, 
  #fh5co-home .text-container h1 .highlight,
  #fh5co-intro .main-title,
  .title-subtitle .title,
  #fh5co-contact .title,
  .h1 .title,
  .article-title {
  font-size: 5rem;
  text-align: center;
  color: #542e2a;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

  .p,
  .description,
  #fh5co-intro .text-area,
  .pricing-tile ul,
  .parrainage h3,
  .parrainage-text,
  .title-subtitle .subtitle {
    font-size: 2.5rem;
  }
}

@media (max-width: 631px) {
  #fh5co-home .text-container h1, 
  #fh5co-home .text-container h1 .highlight,
  #fh5co-intro .main-title,
  .title-subtitle .title,
  #fh5co-contact .title,
  .article-title,
  h1 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  margin-top: 25px;
  color: #542e2a;
}

  .p,
  .description,
  #fh5co-home .p,
  #fh5co-home .hero-text p,
  #fh5co-intro .text-area,
  #fh5co-intro .p,
  .pricing-tile ul,
  .parrainage h3,
  .parrainage-text,
  #fh5co-home .hero-text,
  .title-subtitle .subtitle,
  #fh5co-home .signup-btn,
  .text-content,
  .availability-text,
  #fh5co-intro .text-content {
    font-size: 2rem;
  }

  .title-subtitle .title,
  .section-heading h2,
  #fh5co-supporters .section-title,
  #fh5co-pricing .title,
  #fh5co-faq .title,
  #fh5co-contact .title,
  #fh5co-intro .title {
    font-size: 2.1em !important;
  }
  .title-subtitle .subtitle,
  .section-heading .subtitle,
  #fh5co-supporters .section-subtitle,
  #fh5co-pricing .subtitle,
  #fh5co-faq .subtitle,
  #fh5co-contact .subtitle,
  #fh5co-intro .subtitle {
    font-size: 1.1em !important;
  }
}

/* --- UNIFORMISATION GLOBALE SKRIBI --- */

/* Police et couleurs de base */
body {
  font-family: "Source Sans Pro", Arial, sans-serif;
  color: #542e2a;
  background: linear-gradient(rgb(252, 236, 216), rgb(254, 246, 238));
}

/* Titres et sous-titres */
.title-subtitle {
  text-align: center;
  margin-bottom: 40px;
}
.title-subtitle .title {
  font-size: var(--fs-h1);
  color: #542e2a;
  font-weight: bold;
}
.title-subtitle .subtitle {
  font-size: var(--fs-body);
  color: #542e2a;
  margin-top: 10px;
}

/* Espaces entre sections */
section, .section {
  padding: 80px 0;
}

.article-title {
  font-size: var(--fs-h1);
  color: var(--skribi-text);
  margin-bottom: 20px;
  text-align: center;
}

/* Boutons */
.btn-primary, .btn-secondary {
  font-size: var(--fs-btn);
  padding: 14px 26px;
  border-radius: var(--skribi-btn-radius);
  font-weight: 700;
}

/* Images */
img {
  border-radius: 1.5rem;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Container principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Responsive */
@media (max-width: 900px) {
  .title-subtitle .title { font-size: 2.2em; }
  .title-subtitle .subtitle { font-size: 1.2em; }
  section, .section { padding: 40px 0; }
  .btn-primary, .btn-secondary { font-size: 1.4rem; padding: 12px 22px; }
}

@media (max-width: 600px) {
  .title-subtitle .title { font-size: 1.3em; }
  .title-subtitle .subtitle { font-size: 0.95em; }
  .btn-primary, .btn-secondary { font-size: 1.2rem; padding: 10px 18px; }
}

/* Pour éviter que les titres/sections soient coupés par la navbar sticky */
.title-subtitle,
.section-heading,
#fh5co-intro,
#fh5co-contact,
#fh5co-pricing,
#fh5co-faq,
#fh5co-blog,
#fh5co-offrir-skribi {
  scroll-margin-top: 90px;
}

/* Harmonisation radius boutons (style Skribi) */

.offres-tiles-wrapper {
  display: flex;
  gap: 4rem;
  justify-content: center;
  margin: 4rem 0;
  flex-wrap: nowrap;
}

.offre-tile {
  background: #fff8f3;
  border-radius: 2.5rem;
  box-shadow: 0 12px 48px rgba(84, 46, 42, 0.15);
  padding: 4.5rem 3.5rem;
  flex: 1 1 600px;
  min-width: 400px;
  max-width: 650px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
}

.offre-tile:hover {
  transform: translateY(-14px) scale(1.05);
  box-shadow: 0 24px 64px rgba(84, 46, 42, 0.22);
}

.offre-tile h3 {
  color: #e75623;
  font-size: 2.8rem;
  margin-bottom: 2.2rem;
}

.offre-tile ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.offre-tile li {
  font-size: 2rem;
  margin-bottom: 1.6rem;
  color: #542e2a;
  line-height: 1.7;
}

@media (max-width: 1200px) {
  .offres-tiles-wrapper {
    gap: 2rem;
  }
  .offre-tile {
    padding: 3rem 1.5rem;
    min-width: 320px;
    max-width: 480px;
    min-height: 400px;
  }
  .offre-tile h3 {
    font-size: 2rem;
  }
  .offre-tile li {
    font-size: 1.3rem;
  }
}

@media (max-width: 700px) {
  .offres-tiles-wrapper {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  .offre-tile {
    max-width: 100%;
    width: 100%;
    min-width: unset;
    min-height: 320px;
    padding: 1.2rem 0.7rem;
  }
  .offre-tile h3 {
    font-size: 1.3rem;
  }
  .offre-tile li {
    font-size: 1.05rem;
  }
}

/* Flèche d'invitation à descendre (hero) */
.scroll-down-arrow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--skribi-orange);
  text-decoration: none;
  cursor: pointer;
  z-index: 10;
  animation: bounce 2s infinite;
  transition: color 0.3s ease, transform 0.3s ease;
}

.scroll-down-arrow:hover {
  color: var(--skribi-orange-strong);
  transform: translateX(-50%) translateY(5px);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Agrandir la flèche sur grands écrans */
@media (min-width: 1200px) {
  .scroll-down-arrow svg {
    width: 50px;
    height: 50px;
  }
}













