/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Poppins:wght@700;800&display=swap');

/* Variables */
:root {
  --font-title: 'Poppins', sans-serif;
  --font-text: 'Inter', sans-serif;
  --accent-color: #eaa341;
  --dark-color: #3f2e67;
  --light-color: #f3f0f9;
  --white-color: #fff;
}

/* Body style */
body {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  margin: 0;
  padding: 0;
}

/* Sections */
header {
  background-image: url('/img/png/hero.png');
  background-size: cover;
  background-position:bottom center;
  background-repeat: no-repeat;

  height: 100vh;
  max-height: 1400px;
  min-height: 650px;
  width: 100%;
  max-width: 3500px;
  margin: auto;
}

section {
  padding: 10px;
}

header > .column {
  min-height: 350px;
  height: min(750px, 50vh);
}

.column {
  display: flex;
  align-items: center;      /* centrage vertical */
  gap: 20px;
}

.column > article {
  display: flex;
  flex-direction: column;  /* empilement vertical */
  align-items: center;     /* centrage horizontal */
  justify-content: center;
}

article {
  max-width: 1200px;
  margin: auto;

  display: flex;
  justify-content: space-between; /* logo gauche / menu droite */
  align-items: start;          /* alignement en bas */
  gap: 10px;
}

.full-right {
  position: absolute;
  width: calc(50vw + 25%);
  top: 0;
  bottom: 0;
}

.full-right-content {
  position: absolute;
  width: 100%;
  top: 0px;
  bottom: 0px;
  padding: 10px 30px;
}

.box {
  background-color: var(--white-color);
  /*width: 100%;*/
  /*margin: 15px;*/
  padding: 10px;
  border-radius: 5px;
  box-shadow: 
    2px 2px 5px rgba(0, 0, 0, 0.5);
}

.cards-grid {
  display: grid; /* écrase le flex */
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

@media (max-width: 767px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.cards {
  display: grid;
  grid-template-rows:
    auto   /* icône */
    auto   /* titre */
    1fr    /* paragraphe */
    auto;  /* bouton */
}

.cta-group {
  margin: 0 auto;           /* centre le groupe */
  display: flex;
  gap: 10px;                /* espace entre boutons */
}

@media (max-width: 767px) {
  .cta-group {
    flex-direction: column;
    align-items: center;
  }
}

/* Title style */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--dark-color);

  display: inline-block;
}

h1 {
  font-size: 1.8rem;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.2rem;
}

/* Paragraphs */
p {
  margin: 0;
  margin-bottom: 1rem;
  width: 100%;
}

/* tools */

.no-line-height {
  line-height: 1!important;
}

.bottom-align { 
  vertical-align: bottom;
}

.inline-block {
  display: inline-block;
}

/** margins */

.no-margin { 
  margin : 0;
}

.margin-top-40 {
  margin-top: 40px;
}

.margin-top-20 {
  margin-top: 20px;
}

/** Text size */
.xsmall-text-size {
  font-size: 0.8rem;
}

.small-text-size {
  font-size: 1rem;
}

.medium-text-size {
  font-size: 1.2rem;
}

.large-text-size {
  font-size: 1.5rem;
}

.xlarge-text-size {
  font-size: 2rem;
}

/** Text color */

.text-accent-color {
  color: var(--accent-color);
}

.text-dark-color {
  color: var(--dark-color);
}

.text-light-color {
  color: var(--light-color);
}

.text-white-color {
  color: var(--white-color);
}

/* Actions */
.btn {
  display: inline-block;
  color: var(--white-color);
  text-decoration: none;
  border : 2px solid #00000000;
  transition: background-color 0.4s ease;
  cursor: pointer;
  text-align: center;
  /*padding: 10px 15px 10px 15px;*/
}

.btn:hover {
  color: var(--accent-color);
}

.btn.primary {
  background-color: var(--accent-color);
  color: var(--white-color);
  border-radius: 5px;
  padding: 10px 30px 10px 30px;
  /*margin: 0px 15px;*/
}

.btn.primary:hover {
  background-color: var(--white-color);
  color: var(--accent-color);
}

.btn.secondary {
  border-color: var(--accent-color);
  color: var(--accent-color);
  border-radius: 5px;
  padding: 10px 30px 10px 30px;
  /*margin: 0px 15px;*/
}

.btn.secondary:hover {
  border-color: var(--white-color);
  color: var(--white-color);
}

.dark-hover:hover {
  color: var(--dark-color);
}

.btn.secondary.dark-hover:hover{
  border-color: var(--dark-color);
  color: var(--dark-color);
}

.material-symbols-outlined {
  vertical-align: middle;
}

input { border: none; border-bottom: 2px solid #0a1a44; outline: none; padding-top: 2px; padding-bottom: 2px; }

.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 600px;
    border-radius: 5px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-button {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    display: block;
    text-align: right; /* Align text to the right */
}

.dropdown-button:hover {
    background-color: #ddd;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: -130px;
    margin-top: 10px;
    right: 0; /* Align the dropdown to the right */
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    width: 280px;
    padding: 10px 0;
}

.dropdown-content a {
    color: black;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    text-align: left; /* Align links to the right */
}

.dropdown-content a:hover {
    background-color: #edecd2;
}

.dropdown.active .dropdown-content {
    display: block;
}

:root{
    --fb-bg: #fff;
    --fb-text:#111;
    --fb-muted:#6b7280;
    --fb-primary:#0095F6; /* bleu Instagram-ish */
    --fb-border:#e5e7eb;
    --fb-shadow: 0 8px 30px rgba(0,0,0,.12);
    --fb-radius:16px;
  }
  @media (prefers-color-scheme: dark){
    :root{
      --fb-bg:#0f172a;
      --fb-text:#e5e7eb;
      --fb-muted:#9ca3af;
      --fb-primary:#60a5fa;
      --fb-border:#1f2937;
      --fb-shadow: 0 12px 34px rgba(0,0,0,.5);
    }
  }

  /* Backdrop + centering */
  #flixbee-login-backdrop[hidden]{ display:none !important; }
  .fb-backdrop{
    position: fixed; inset: 0; background: rgba(0,0,0,.38); backdrop-filter: blur(2px);
  }
  .fb-modal{
    position: fixed; inset: 0;
    margin: auto; width: 100%;
    max-width: 420px;
    max-height: calc(100dvh - 6rem);
    height: fit-content;
    background: var(--fb-bg);
    color: var(--fb-text);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    box-shadow: var(--fb-shadow);
    overflow: auto;
  }
  .fb-close{
    position: absolute; top: 10px; right: 10px;
    background: transparent; border: 0; font-size: 28px; line-height: 1;
    color: var(--fb-muted); cursor: pointer;
  }
  .fb-close:hover{ color: var(--fb-text); }

  .fb-header{
    padding: 20px 24px 0;
    text-align: center;
  }
  .fb-brand{ display: inline-flex; align-items: center; gap: .5ch; font-weight: 600; }
  .fb-logo{
    font-family: ui-rounded, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
    letter-spacing: .2px;
  }
  .fb-pipe{ opacity: .5; }
  .fb-sub{ color: var(--fb-muted); font-weight: 500; }

  .fb-body{ padding: 16px 24px 24px; }
  .fb-intro{ margin: 0 0 16px; color: var(--fb-muted); font-size: 14px; line-height: 1.45; }

  .fb-label{ display:block; margin: 14px 0 6px; font-size: 13px; color: var(--fb-muted); }
  .fb-input{
    width: 100%; padding: 12px 14px; border-radius: 12px;
    border: 1px solid var(--fb-border); background: transparent; color: var(--fb-text);
    outline: none; transition: border-color .15s ease;
  }
  .fb-input:focus{ border-color: var(--fb-primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--fb-primary) 25%, transparent); }

  .fb-passwrap{ position: relative; }
  .fb-pass-toggle{
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    border: 0; background: transparent; cursor: pointer; font-size: 16px;
    color: var(--fb-muted); padding: 6px;
  }
  .fb-pass-toggle:hover{ color: var(--fb-text); }

  .fb-row{ display:flex; justify-content: flex-end; margin: 8px 0 0; }
  .fb-link{ color: var(--fb-primary); text-decoration: none; font-size: 13px; }
  .fb-link:hover{ text-decoration: underline; }

  .fb-btn{
    width: 100%; margin-top: 14px; padding: 12px 16px; border: 0;
    background: var(--fb-primary); color: #fff; border-radius: 12px;
    font-weight: 600; cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .fb-btn:hover{ filter: brightness(1.05); }
  .fb-btn:disabled{ opacity: .6; cursor: not-allowed; }

  .fb-reassure{
    margin: 12px 0 0; font-size: 12px; color: var(--fb-muted); line-height: 1.45;
  }
  .fb-reassure .fb-lock{ margin-right: .35rem; }

  .fb-footnote{
    margin: 18px 0 0; font-size: 11px; color: var(--fb-muted);
  }

.fb-spinner {
    display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.fb-spinner-black {
    display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(33,33,33,0.4);
  border-top-color: #212121;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.fb-spinner-blue {
    display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(146,209,254,0.4);
  border-top-color: #92d1fe;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.fb-spinner-yellow {
    display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,193,7,0.4);
  border-top-color: #FFC107;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#wrap { max-width: 980px; margin: 0 auto; }
canvas { max-height: 420px; }