/* =================================================================
   FONDATION DE FRANCE - FORMULAIRE MULTI-AFFECTATION 2025
   Reproduction exacte de la maquette Figma - Système accordéon
   ================================================================= */

/* Variables CSS avec couleurs exactes Figma */
:root {
  --fdf-orange: #a0c7da;
  --fdf-blue: #0066b2;
  --fdf-text-dark: #3c3c3c;
  --fdf-text-gray: #808080;
  --fdf-bg-gray: #f7f7f7;
  --fdf-white: #ffffff;
  --fdf-border: rgba(0, 0, 0, 0.25);
  --main-font: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --fontsize: 14px; /* Taille de police de base pour les calculs */
}

body {
  margin: 0;
  background-color:#F7F7F7;
}

/* ===== CORRECTIONS POUR LA PAGE 2025_MULTI ===== */
/* Forcer le background gris même sur la page 2025_multi avec spécificité maximale */
body#type-b.annexes_pages.arya {
  
}
#type-b.arya.annexes_pages #main_wrapinner {
  background-color: #F7F7F7 !important;
  margin: 0;  
  padding: 0;
  width: 100%;
}
/* S'assurer que le formulaire est toujours centré avec marge auto */
body#type-b.annexes_pages .fdf-multi-form {
  width: 625px;
    margin: 0 auto;
    font-family: var(--main-font);
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Forcer la largeur du conteneur parent pour correspondre à la page 1 */
body#type-b.annexes_pages .fdf-form-section {
  
}

/* S'assurer que le layout principal a la même largeur */
body#type-b.annexes_pages .fdf-main-layout {
  display: flex;
    width: 100%;
    margin: 0 auto;
    justify-content: space-between;
    min-height: 100vh;
    align-items: stretch;
}



/* Style spécifique pour la sidebar sur la page annexes */
body#type-b.annexes_pages .fdf-recap-sidebar {
  max-width: 605px !important;
}

/* ===== CORRECTIONS DES ESPACEMENTS POUR LA PAGE 2025_MULTI ===== */
/* Le thème annule tous les espacements - les restaurer avec !important */

/* Correction fdf-frequency-section */
body#type-b.annexes_pages .fdf-frequency-section {
  margin-bottom: 20px !important;
}

/* Correction fdf-amount-input-container */
body#type-b.annexes_pages .fdf-amount-input-container {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

/* Correction fdf-child-item */
body#type-b.annexes_pages .fdf-child-item {
  padding-left: 80px !important;
  padding-right: 20px !important;
}

/* Correction fdf-affectation-section */
body#type-b.annexes_pages .fdf-affectation-section {
  margin-bottom: 12px !important;
}

/* ===== CORRECTIONS SUPPLÉMENTAIRES DES TITRES DE SECTIONS ===== */
/* Correction de la taille de police des titres de sections pour matcher la page de référence */
body#type-b.annexes_pages .fdf-affectation-section .fdf-section-header > div:first-child,
body#type-b.annexes_pages .fdf-affectation-section .fdf-section-header .fdf-section-title,
body#type-b.annexes_pages .fdf-affectation-section .fdf-section-header span {
  font-size: calc(var(--fontsize) + 1px) !important;
  font-weight: 400 !important;
  color: rgb(37, 37, 37) !important;
}

/* ===== CORRECTIONS SUPPLÉMENTAIRES AVEC !IMPORTANT RENFORCÉ ===== */
/* Forcer tous les aspects du formulaire pour garantir l'identité avec la page de référence */

/* Titre de fréquence */
body#type-b.annexes_pages .fdf-frequency-section .fdf-frequency-title {
  font-size: calc(var(--fontsize)) !important;
  font-weight: 700 !important;
  color: rgb(0, 0, 0) !important;
  margin-bottom: 15px !important;
  padding-bottom: 0px !important;
}

/* Corrections complètes des espacements avec spécificité maximale */
body#type-b.annexes_pages.arya .fdf-frequency-section {
  margin-bottom: 20px !important;
  margin-top: 0px !important;
}

body#type-b.annexes_pages.arya .fdf-amount-input-container {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
  margin-left: 0px !important;
  margin-right: 0px !important;
}

body#type-b.annexes_pages.arya .fdf-child-item {
  padding-left: 80px !important;
  padding-right: 20px !important;
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

body#type-b.annexes_pages.arya .fdf-affectation-section {
  margin-bottom: 12px !important;
  margin-top: 0px !important;
}


body#type-b.annexes_pages.arya .fdf-form-section {
 
}

body#type-b.annexes_pages.arya .fdf-main-layout {
  
}

/* ===== CORRECTIONS ANTI-ARYA AVEC SPÉCIFICITÉ EXTRÊME ===== */
/* Spécificité maximale avec répétition des IDs pour contrer le thème Arya */

/* Background du body avec spécificité extrême */
html body#type-b#type-b.annexes_pages.annexes_pages.arya.arya.i18n.footer-detach.loaded.fdf-catalogue-thematic {
  background-color: #F7F7F7 !important;
}

/* ===== STYLES ANTI-ARYA POUR LE MAIN BLOCK ===== */
html body#type-b#type-b.annexes_pages.annexes_pages.arya.arya .fdf-main-block {
  
  padding: 0 20px 0 20px !important;
}

/* ===== SPÉCIFICITÉ EXTRÊME POUR CONTRER ARYA ===== */
/* Répétition des IDs et classes pour créer une spécificité imbattable */

/* Espacements avec spécificité extrême */
html body#type-b#type-b.annexes_pages.annexes_pages.arya.arya .fdf-frequency-section {
  margin-bottom: 20px !important;
  margin-top: 0px !important;
}

html body#type-b#type-b.annexes_pages.annexes_pages.arya.arya .fdf-amount-input-container {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
  margin-left: 0px !important;
  margin-right: 0px !important;
}

html body#type-b#type-b.annexes_pages.annexes_pages.arya.arya .fdf-child-item {
  padding-left: 80px !important;
  padding-right: 20px !important;
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

html body#type-b#type-b.annexes_pages.annexes_pages.arya.arya .fdf-affectation-section {
  margin-bottom: 12px !important;
  margin-top: 0px !important;
}

/* Titres avec spécificité extrême */
html body#type-b#type-b.annexes_pages.annexes_pages.arya.arya .fdf-affectation-section .fdf-section-header > div:first-child,
html body#type-b#type-b.annexes_pages.annexes_pages.arya.arya .fdf-affectation-section .fdf-section-header .fdf-section-title,
html body#type-b#type-b.annexes_pages.annexes_pages.arya.arya .fdf-affectation-section .fdf-section-header span {
  font-size: calc(var(--fontsize) + 1px) !important;
  font-weight: 400 !important;
  color: rgb(37, 37, 37) !important;
  line-height: normal !important;
}



html body#type-b#type-b.annexes_pages.annexes_pages.arya.arya .fdf-form-section {
 
}

html body#type-b#type-b.annexes_pages.annexes_pages.arya.arya .fdf-main-layout {
  
}

/* Reset */
.fdf-multi-form * {
  box-sizing: border-box;
}

/* Conteneur principal - 625px exactement */
#container .fdf-multi-form {
  width: 625px;
  margin: 0 auto 50px auto !important;
  font-family: var(--main-font);
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%; /* S'étend pour remplir fdf-form-section */
}

/* ===== TITRE PRINCIPAL ===== */
.fdf-main-title {
  margin: 0 0 30px 0;
  text-align: left;
}

/* ===== IMAGE DE BANNIÈRE DE CAMPAGNE (format img tag) ===== */
#campaign-banner-image {
  width: 100%;
  margin: 0 0 20px 0;
  padding: 0;
  order: -1;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-top: 40px;
}

#campaign-banner-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== BANNIÈRE DE CAMPAGNE (format background) ===== */
.banner {
  width: 625px;
  height: 200px;
  border-radius: 4px;
  margin-bottom: 20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}


/* ===== ÉTATS DU FORMULAIRE (IFRAME INTEGRATION) ===== */
.fdf-form-disabled {
  opacity: 1;
  pointer-events: none;
}

/* Cache l'iframe initialement jusqu'à ce qu'un montant soit envoyé */
.fdf-recap-sidebar iframe {
  display: none;
}

/* Affiche l'iframe quand elle a un montant */
.fdf-recap-sidebar.has-amount iframe {
  display: block;
}

/* Style pour le bouton submit disabled dans l'iframe (pour référence) */
/* Note: Ce CSS ne peut pas s'appliquer directement à cause des restrictions iframe cross-origin,
   mais il sert de référence pour le style qui sera appliqué via postMessage */

.fdf-form-disabled input,
.fdf-form-disabled select,
.fdf-form-disabled button {
  opacity: 0.5;
  cursor: not-allowed;
}

.fdf-form-disabled .fdf-amount-input-container {
  background: #f5f5f5;
  color: #ccc;
  cursor: not-allowed;
}

/* ===== SECTION FRÉQUENCE ===== */
.fdf-frequency-section {
  padding-top: 20px;
  margin-bottom: 20px;
}

.fdf-frequency-title {
  font-family: var(--main-font);
  font-size: calc(var(--fontsize));
  font-weight: 700;
  line-height: 14px;
  color: #000000;
  margin: 0 0 15px 0;
}

.fdf-radio-group {
  display: flex;
  gap: 20px;
  align-items: center;
}

.fdf-radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.fdf-radio-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--fdf-border);
  background: var(--fdf-white);
  position: relative;
  flex-shrink: 0;
}

.fdf-radio-circle.selected {
  background: var(--fdf-blue);
  border-color: var(--fdf-blue);
}

.fdf-radio-circle.selected::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fdf-white);
}

.fdf-radio-text {
  font-family: var(--main-font);
  font-size: calc(var(--fontsize));
  font-weight: 400;
  line-height: 14px;
  color: #000000;
  user-select: none;
}

/* ===== BLOC PRINCIPAL ORANGE ===== */
.fdf-main-block {
  width: 625px;
  height: 50px;
  background: var(--fdf-white);
  border-radius: 4px;
  margin-bottom: 12px !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 20px;
}


.fdf-main-block-title {
  font-size: calc(var(--fontsize) + 1px) !important;
  font-weight: 400 !important;
  color: rgb(37, 37, 37) !important;
  line-height: normal !important;
}

/* ===== SECTIONS ACCORDÉON ===== */
.fdf-affectation-section {
  width: 625px;
  background: var(--fdf-white);
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: visible; /* Permet aux dropdowns de déborder */
  position: relative; /* Pour le z-index des dropdowns */
}

.fdf-section-header {
  height: 50px;
  background: var(--fdf-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px !important;
  cursor: pointer;
}

.fdf-section-header.simple {
  cursor: default;
}

/* S'assurer que l'icône ne s'affiche jamais pour les sections simples */
.fdf-section-header.simple .fdf-section-icon {
  display: none !important;
}

.fdf-section-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.fdf-section-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.fdf-section-icon svg {
  transition: opacity 0.3s ease;
}

.fdf-section-icon .plus-icon {
  width: 18px;
  height: 18px;
}

.fdf-section-icon .minus-icon {
  width: 18px;
  height: 4px;
  display: none;
}

.fdf-section-icon.open .plus-icon {
  display: none;
}

.fdf-section-icon.open .minus-icon {
  display: block;
}

.fdf-section-title {
  font-family: var(--main-font);
  font-size: calc(var(--fontsize));
  font-weight: 400;
  line-height: 14px;
  color: var(--fdf-text-dark);
}

/* ===== CHAMPS DE MONTANT ===== */
.fdf-amount-field {
  width: 200px;
  position: relative;
  flex-shrink: 0;
}

/* ===== CHAMP MONTANT AVEC DROPDOWN ===== */
.fdf-amount-input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 30px;
  border: 1px solid var(--fdf-border);
  border-radius: 4px;
  background: var(--fdf-white);
  margin: 10px 0;
}

.fdf-amount-input-container:focus-within {
  border-color: var(--fdf-blue);
}

.fdf-amount-input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--main-font);
  font-size: calc(var(--fontsize) - 2px);
  font-weight: 500;
  line-height: 12px;
  color: var(--fdf-blue);
  padding: 0 10px !important;
  width: 80px;
}

.fdf-amount-input::placeholder {
  color: var(--fdf-text-gray);
}

.fdf-currency-symbol {
  font-family: var(--main-font);
  font-size: calc(var(--fontsize) - 2px);
  font-weight: 500;
  line-height: 12px;
  color: var(--fdf-blue);
  padding: 0 5px;
  pointer-events: none;
}

.fdf-dropdown-btn {
  height: 100%;
  width: 25px;
  border: none;
  background: transparent;
  color: var(--fdf-text-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--fontsize) - 4px);
  padding: 0;
}

.fdf-dropdown-btn svg {
  width: 10px;
  height: 6px;
  flex-shrink: 0;
}

.fdf-dropdown-btn:hover {
  background: rgba(0, 102, 178, 0.1);
}

.fdf-amount-dropdown {
  position: absolute;
  top: 100%;
  margin-top: -10px !important;
  left: 0px;
  right: 0px;
  background: var(--fdf-white);
  border: 1px solid var(--fdf-border);
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  max-height: 150px;
  overflow-y: auto;
}

.fdf-amount-dropdown.show {
  display: block;
}

.fdf-dropdown-option {
  padding: 8px 10px !important;
  font-family: var(--main-font);
  font-size: calc(var(--fontsize) - 2px);
  font-weight: 500;
  line-height: 12px;
  color: var(--fdf-blue);
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.fdf-dropdown-option:last-child {
  border-bottom: none;
}

.fdf-dropdown-option:hover {
  background: rgba(0, 102, 178, 0.1);
}

/* ===== CONTENU ACCORDÉON (ENFANTS) ===== */
.fdf-section-content {
  background: var(--fdf-white);
  max-height: 0;
  overflow: hidden; /* Cache les enfants quand fermé */
  transition: max-height 0.3s ease;
}

.fdf-section-content.open {
  max-height: fit-content; /* Suffisant pour le contenu */
  overflow: visible; /* Permet aux dropdowns des enfants de déborder */
}

.fdf-child-item {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 80px; /* Indentation pour les enfants */
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.fdf-child-title {
  font-family: var(--main-font);
  font-size: calc(var(--fontsize));
  font-weight: 400;
  line-height: 14px;
  color: var(--fdf-text-dark);
  flex: 1;
}

/* ===== LAYOUT PRINCIPAL AVEC SIDEBAR ===== */
body#type-b.arya:before {
  display: none;
}

#type-b.arya.footer-detach #bottom {
  margin-top: 0;
  padding-top: 10px;
  
}

#type-b.arya.footer-detach #bottom .container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  width: 1230px;
  margin: 0 auto;
}
#bottom {
  order: 3;
  width: 100%;
  margin-top: 0 !important;
  z-index: 10;
  align-self: flex-end;
}

#footer {
  order: 4;
  flex: 0 0 100%;
  width: 100%;
  z-index: 10;
}

/* Step-info accordion */
#type-b.arya #container .step-info.step-info-1 {
  margin: 0 25px 0 0 !important;
}
#type-b.arya #container .step-info.step-info-2 {  
  margin: 0 25px !important;
}
#type-b.arya #container .step-info.step-info-3 {
  margin: 0 0 0 25px !important;
}
#type-b.arya #container #bottom .step-info {
  position: relative;
  margin-top: 30px !important;
  margin-bottom: 30px !important;
  padding: 0;
}

body#type-b.arya  #bottom .step-info::before,
body#type-b.arya  #bottom .step-info::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
}

body#type-b.arya  #bottom .step-info::before { top: 0; }
body#type-b.arya  #bottom .step-info::after { bottom: 0; }

body#type-b.arya  #bottom .step-info,
body#type-b.arya  #bottom .step-info.light-text {
    &::before,
    &::after {
        background-color: #000;
    }
    
    > h4::after {
        border-color: #000;
    }
}

body#type-b.arya  #bottom .step-info.dark-text {
    &::before,
    &::after {
        background-color: #000;
    }
    
    > h4::after {
        border-color: #000;
    }
}

body#type-b.arya  #bottom .step-info > h4 {
    position: relative;
    margin: 0 !important;
    padding: 0px 32px 0px 0;
    cursor: pointer;
    font-weight: 400;
    font-size: calc(var(--fontsize) + 4px);
    line-height: calc(var(--fontsize) + 4px);
    min-height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
}

body#type-b.arya  #bottom .step-info > h4::after {
        content: "";
        position: absolute;
        right: 10px;
        top: 50%;
        width: 8px;
        height: 8px;
        border: solid #000;
        border-width: 0 2px 2px 0;
        transform: translateY(-50%) rotate(45deg);
}

body#type-b.arya  #bottom .step-info.is-open > h4::after {
    transform: translateY(-50%) rotate(-135deg);
}

body#type-b.arya  #bottom .step-info .step-info-body {
      display: none;
      margin: 12px 0 16px 0;
}
/* ===== STEP-INFO ACCORDÉONS ===== */
.step-info > h4 {
  position: relative;
  margin: 0;
  padding: 20px 32px 20px 0;
  cursor: pointer;
  font-size: calc(var(--fontsize) + 4px);
  line-height: calc(var(--fontsize) + 4px);
}

.step-info .step-info-body {
  display: none;
  margin: 12px 0 16px 0;
  padding: 0 20px 20px;
  font-size: calc(var(--fontsize) - 2px);
  line-height: 25px;
  font-weight: 100;
  word-break: break-word;
}
.fdf-main-layout {
  display: flex;
  width: 100%;
  margin: 0 auto;
  justify-content: space-between;
  min-height: 100vh;
  align-items: stretch; /* Force les enfants à avoir la même hauteur */
}

.fdf-form-section {
  width: 60%;
  flex-shrink: 0;
  margin: 0 auto 50px auto !important;
  display: flex;
  flex-direction: column; /* Permet au contenu de s'étendre */
}

.fdf-recap-sidebar {
  width: 40%;
    max-width: 605px !important;
    background: var(--fdf-white);
    padding: 40px 60px !important;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    box-sizing: border-box !important;
    box-shadow: -10px 0 20px 0 rgba(191, 191, 191, 0.50);
}

/* ===== RÉCAPITULATIF SIDEBAR ===== */
.fdf-recap-container {
  /* Conteneur principal du récapitulatif */
  /* display: block par défaut, caché via JS à l'étape 2 */
  display: block;
  padding: 0 40px !important;
}

.fdf-recap-title {
  font-family: var(--main-font);
  font-size: calc(var(--fontsize) + 8px);
  font-weight: 700;
  line-height: 22px;
  color: var(--fdf-text-dark);
  margin: 0 0 40px 0 !important;
}

.fdf-recap-content {
  margin-bottom: 40px;
}

.fdf-recap-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px !important;
}

.fdf-recap-item.child {
  margin-left: 40px;
  margin-bottom: 15px;
}

.fdf-recap-item-label {
  font-family: var(--main-font);
  font-size: calc(var(--fontsize));
  font-weight: 700;
  line-height: 14px;
  color: #000000;
  flex: 1;
  padding-right: 10px;
}

.fdf-recap-item.child .fdf-recap-item-label {
  font-weight: 400;
  color: #000000;
}

.fdf-recap-item-amount {
  font-family: var(--main-font);
  font-size: calc(var(--fontsize));
  font-weight: 700;
  line-height: 14px;
  color: var(--fdf-blue);
  width: 60px;
  text-align: right;
}

.fdf-recap-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 !important;
  padding-top: 15px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.fdf-recap-total-label {
  font-family: var(--main-font);
  font-size: calc(var(--fontsize));
  font-weight: 700;
  line-height: 14px;
  color: var(--fdf-blue);
}

.fdf-recap-total-amount {
  font-family: var(--main-font);
  font-size: calc(var(--fontsize));
  font-weight: 700;
  line-height: 14px;
  color: var(--fdf-blue);
  width: 60px;
  text-align: right;
}

.fdf-fiscal-info {
  text-align: left;
  margin: 20px 0;
}

.fdf-fiscal-item {
  margin-bottom: 15px;
  line-height: 1.4;
}

.fdf-fiscal-item:last-child {
  margin-bottom: 0;
}
.fdf-fiscal-title {
  font-size: calc(var(--fontsize) + 1px);
  font-weight: 600;
  color: #c7421c;
  padding-bottom: 10px;
}
.fdf-fiscal-amount {
  font-family: var(--main-font);
  font-size: calc(var(--fontsize) + 1px);
  font-weight: 600;
  color: var(--fdf-orange);
}
.fdf-fiscal-amount-details {
  font-family: var(--main-font);
  font-size: calc(var(--fontsize) + 1px);
  font-weight: 600;
  color: #c7421c ;
}
.fdf-fiscal-detail {
  font-family: var(--main-font);
  font-size: calc(var(--fontsize));
  font-weight: 400;
  color: #000;
}

/* Styles spécifiques pour chaque type de réduction */
.fdf-fiscal-revenu .fdf-fiscal-amount {
  color: #c7421c ;
}

.fdf-fiscal-ifi .fdf-fiscal-amount {
  color: #c7421c ;
}

.fdf-fiscal-societe .fdf-fiscal-amount {
  color: #c7421c ;
}

/* ===== LIEN VERS LE FORMULAIRE ===== */
.fdf-form-link-container {
  margin-top: 30px;
  padding: 0;
}

.fdf-form-link {
  display: block;
  padding: 15px 30px;
  background-color: var(--fdf-blue);
  color: white !important;
  text-align: center;
  text-decoration: none !important;
  font-weight: bold;
  font-size: calc(var(--fontsize) + 2px);
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  height: 50px;
  line-height: 50px;
  border-radius: var(--border-radius);
  margin: 20px 0 !important;
}

.fdf-form-link:hover {
  background-color: #005a9e;
  color: white !important;
  text-decoration: none !important;
  transform: translateY(-2px);
}

.fdf-form-link:active {
  background-color: #004d85;
  transform: translateY(0);
}

.fdf-form-link:disabled,
.fdf-form-link[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #ccc;
}

/* ===== LIEN DE DON ===== */
.fdf-donate-link {
  display: inline-block;
  width: 100%;
  padding: 12px 24px !important;
  background: var(--fdf-blue);
  color: white !important;
  text-decoration: none;
  border-radius: 4px;
  font-family: var(--main-font);
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  margin-top: 20px !important;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  height: 40px;
}

.fdf-donate-link:hover:not(.disabled) {
  background: #005a9e;
  color: white;
  text-decoration: none;
}

.fdf-donate-link:active:not(.disabled) {
  background: #004d85;
  color: white;
  text-decoration: none;
}

.fdf-donate-link.disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.5;
}
/* ===== Custom header ===== */

#type-b.arya #header .container#header_wrapinner #lang {
  background-color: transparent !important;
}
#type-b.arya #header .container#header_wrapinner #lang {
  margin: 40px 140px 0 0 !important;
}
#type-b.arya #header .container#header_wrapinner #lang #accessibility_options,
#type-b.arya #header .container#header_wrapinner #lang p.duo a {
  background-color: transparent !important;
  border: none !important;
}

#type-b.arya.annexes_pages #header .container#header_wrapinner #logo {
  margin: 30px auto 0 !important;
    display: flex !important;
    justify-content: flex-start;
    align-items: flex-start;
    order: 1;
    max-width: 625px !important;
}
#type-b.arya #header .container#header_wrapinner #logo h1 {
  width: auto;
}
/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .fdf-main-layout {
    flex-direction: column;
    max-width: 625px;
    margin: 0 auto;
  }
  
  .fdf-form-section {
    width: 100%;
  }
  
  .fdf-recap-sidebar {
    width: 100%;
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid var(--fdf-border);
  }
}



@media (max-width: 480px) {
  .fdf-multi-form {
    padding: 0 10px;
  }
  
  .fdf-main-title {
    font-size: calc(var(--fontsize) + 6px);
    line-height: 22px;
  }
  
  .fdf-main-block {
    padding: 0 15px;
  }
  
  .fdf-section-header {
    padding: 0 15px;
  }
  
  .fdf-child-item {
    padding: 0 15px 0 35px;
  }
}

/* ===== ANIMATIONS ===== */
.fdf-section-header:hover .fdf-section-icon .plus-icon {
  transform: scale(1.1);
}

.fdf-section-header:hover .fdf-section-icon .minus-icon {
  transform: scale(1.1);
}

.fdf-section-header:not(.simple):hover {
  background: rgba(247, 166, 1, 0.05);
}

/* ===== ÉTATS ===== */
.fdf-amount-input[value]:not([value=""]) {
  color: var(--fdf-blue);
}

.fdf-amount-input:disabled {
  background: #f5f5f5;
  color: #ccc;
  cursor: not-allowed;
}


#type-b.arya.annexes_pages #container #bottom {
  display: block !important;
}
#type-b.arya #container .step-info .step-info-body {
  font-size: calc(var(--fontsize));
  line-height: 1.42857;
  font-weight: normal;
  padding: 0 15px 20px;
}



/* ===== PAGE DE REMERCIEMENT ===== */
#type-b.arya.thx-page .fdf-recap-container {
  display: none !important;
}
#type-b.arya:not(.thx-page) #header {
  margin-bottom: 40px;
  background-image: none !important;
  height: auto !important;
  overflow: visible !important;
  
}
#type-b.arya.thx-page #header {
  height: auto;
  background: none;
}
#type-b.arya.thx-page #lang {
  margin-top: 0px !important;
}
#type-b.arya.thx-page #logo {
  max-width: 1200px !important;
  width: 100%;
}
#type-b.arya.thx-page .fdf-form-section {
  margin-top: 0px !important;
}
#type-b.arya.thx-page #greetings-text .fdf-thx-banner-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
}
@media only screen and (max-width: 768px) {
  #type-b.arya.thx-page #greetings-text .fdf-thx-banner-img {
    height: 150px;
    margin-bottom: 15px;
  }
}
@media only screen and (max-width: 1250px)  {
  #type-b.arya.thx-page #header {
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* =================================================================
   CORRECTIONS HEADER POUR REPRODUCTION EXACTE DE __IRAISER__
   ================================================================= */

/* SPÉCIFICITÉ EXTRÊME POUR SURPASSER ARYA.CSS */

/* Correction des dimensions du header - SPÉCIFICITÉ MAXIMALE */
html html body body#type-b#type-b.arya.arya.annexes_pages.annexes_pages.i18n.i18n.footer-detach.footer-detach.loaded.loaded.fdf-catalogue-thematic.fdf-catalogue-thematic #header#header.line.line {
    width: 750.396px !important;
    max-width: 750.396px !important;
    height: 200px !important;
    margin: 0px 0px 40px !important;
    padding: 0px !important;
    min-width: 750.396px !important;
    min-height: 200px !important;
}

/* Correction du container du header - SPÉCIFICITÉ MAXIMALE */  
html html body body#type-b#type-b.arya.arya.annexes_pages.annexes_pages.i18n.i18n.footer-detach.footer-detach.loaded.loaded.fdf-catalogue-thematic.fdf-catalogue-thematic #header#header.line.line .container.container#header_wrapinner#header_wrapinner {
    width: 100% !important;
    max-width: 750.396px !important;
    min-width: 750.396px !important;
}

/* Correction des dimensions du logo - SPÉCIFICITÉ MAXIMALE */
html html body body#type-b#type-b.arya.arya.annexes_pages.annexes_pages.i18n.i18n.footer-detach.footer-detach.loaded.loaded.fdf-catalogue-thematic.fdf-catalogue-thematic #header#header.line.line #logo#logo.unit.unit.size3of4.size3of4 {
    width: 625px !important;
    height: 140px !important;
    margin: 30px 62.6979px 0px !important;
    padding: 0px !important;
    min-width: 625px !important;
    min-height: 140px !important;
    max-width: 625px !important;
    max-height: 140px !important;
}

/* Correction des dimensions de la section langue - SPÉCIFICITÉ MAXIMALE */
html html body body#type-b#type-b.arya.arya.annexes_pages.annexes_pages.i18n.i18n.footer-detach.footer-detach.loaded.loaded.fdf-catalogue-thematic.fdf-catalogue-thematic #header#header.line.line #lang#lang.unit.unit.size1of4.size1of4.lastUnit.lastUnit.light-text.light-text {
    width: 750.396px !important;
    height: 30px !important;
    margin: 0px !important;
    padding: 0px !important;
    max-width: 750.396px !important;
    min-height: 30px !important;
    max-height: 30px !important;
}

/* Centrage du header dans la page - SPÉCIFICITÉ MAXIMALE */
html html body body#type-b#type-b.arya.arya.annexes_pages.annexes_pages.i18n.i18n.footer-detach.footer-detach.loaded.loaded.fdf-catalogue-thematic.fdf-catalogue-thematic .fdf-form-section.fdf-form-section #header#header.line.line {
    margin-left: auto !important;
    margin-right: auto !important;
}

#type-b.arya iframe {
  width: 100% !important;
  max-width: 100% !important;
}
body#type-b.annexes_pages.arya.thx-page {}
body#type-b.annexes_pages.arya.thx-page .fdf-main-layout {
  width: 100%;
    display: flex;
    flex-direction: column;
}
body#type-b.annexes_pages.arya.thx-page .fdf-form-section,
body#type-b.annexes_pages.arya.thx-page .fdf-recap-sidebar {
  width: 100% !important;
  max-width: 100% !important;
  box-shadow: none !important;
}
body#type-b.annexes_pages.arya.thx-page .fdf-multi-form{
  display: none !important;
}

/* ===== STYLES POUR CHAMPS DÉSACTIVÉS ===== */
/* Styles appliqués quand l'iframe IRaiser n'est pas encore chargée */
/* Utilise la même logique visuelle que les étapes 2-3 */

/* Container global désactivé - même style que step2/step3 */
.fdf-form-disabled {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

/* Indicateur de chargement pour l'iframe */
.fdf-form-disabled[data-disabled-reason="iframe-loading"]::before {
  content: "⏳ Chargement du formulaire de paiement...";
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--fdf-blue);
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: calc(var(--fontsize) - 2px);
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0, 102, 178, 0.3);
  z-index: 10000;
  animation: pulse-loading 2s infinite;
}

@keyframes pulse-loading {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Masquer l'indicateur quand l'iframe est chargée */
.fdf-recap-sidebar.iframe-loaded + .fdf-form-section .fdf-form-disabled[data-disabled-reason="iframe-loading"]::before {
  display: none;
}

/* Styles pour tous les champs désactivés - cohérent avec step2/step3 */
.fdf-form-disabled input,
.fdf-form-disabled select,
.fdf-form-disabled button {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #f5f5f5;
  color: #999;
}

/* Styles spécifiques pour les inputs de montant */
.fdf-form-disabled .fdf-amount-input {
  background-color: #f8f8f8;
  border-color: #ddd;
}

/* Styles pour les radio buttons */
.fdf-form-disabled .fdf-frequency-option input[type="radio"] + label {
  opacity: 0.6;
  cursor: not-allowed;
  color: #999;
}

/* Styles pour le bouton DONNER */
.fdf-form-disabled .fdf-donate-button {
  background-color: #ccc;
  border-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.fdf-form-disabled .fdf-donate-button:hover {
  background-color: #ccc;
  transform: none;
  box-shadow: none;
}

/* Styles pour les dropdowns */
.fdf-form-disabled .fdf-amount-dropdown,
.fdf-form-disabled .fdf-amount-dropdown select {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #f5f5f5;
}

/* Animation de transition lors de l'activation */
.fdf-multi-form {
  transition: opacity 0.3s ease-in-out;
}

/* ===== RESPONSIVE 770px ET MOINS ===== */
#campaign-banner-image {
  margin-top: 20px;
}

.banner {
  width: 100%;
  height: 150px;
}
@media (max-width: 770px) {
  .fdf-multi-form {
    padding: 0 15px;
  }
  
  .fdf-main-title {
    font-size: calc(var(--fontsize) + 8px);
    line-height: 24px;
  }
  
  .fdf-radio-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .fdf-section-header,
  .fdf-child-item {
    flex-direction: column;
    height: auto;
    padding: 15px 20px;
    gap: 15px;
    align-items: flex-start;
  }
  
  .fdf-section-left {
    width: 100%;
  }
  
  .fdf-amount-field {
    width: 100%;
    max-width: 145px;
  }
  
  .fdf-child-item {
    padding-left: 40px;
  }
  
  /* Step-info responsive - mobile */
  .step-info > h4 {
    padding: 15px 25px 15px 0;
  }
  
  .step-info .step-info-body {
    margin: 8px 0 12px 0;
    padding: 0 15px 15px;
    line-height: 22px;
  }
  /* Layout principal en colonne pour écrans moyens */
  body#type-b.annexes_pages #container .fdf-multi-form {
    margin: 0 !important;
  }
  body#type-b.annexes_pages .fdf-form-section {
    margin: 0 !important;
  }
  body#type-b.annexes_pages .fdf-main-layout {
    width: calc(100% - 40px);
    margin: 0 20px;
  }
  body#type-b.annexes_pages .fdf-multi-form {
    width: 100%;
  }
  html body#type-b#type-b.annexes_pages.annexes_pages.arya.arya .fdf-main-block {
    flex-direction: column;
    width: 100%;
    height: fit-content;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    align-items: flex-end;
  }
  body#type-b.annexes_pages .fdf-affectation-section {
    width: 100%;
    padding: 10px !important;
  }
  body#type-b.annexes_pages .fdf-section-header, .fdf-child-item {
    padding: 0px !important;
    flex-direction: row;
    align-items: center;
  }
  .fdf-amount-field {
      max-width: 145px;
  }
  html body#type-b#type-b.annexes_pages.annexes_pages.arya.arya .fdf-child-item,
  body.annexes_pages.arya .fdf-child-item {
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
  body#type-b.annexes_pages .fdf-recap-sidebar {
    max-width: 605px !important;
    padding: 20px 0 !important;
  }
}





#type-b.arya #step-1 p[name^=reserved_],
#type-b.arya #step-1 .tabs_menu,
#type-b.arya #step-1 .amount,
#type-b.arya #step-1 .free-amount {
  display: none !important;
}

#type-b.arya.footer-detach #container #step-1 .step-content {
  padding: 0 20px 0 
}
#type-b.arya.footer-detach #footer {
background-color: #17428b !important;
}
#type-b.arya #container #form-steps {
  margin-bottom: 20px !important;
}


#type-b.arya .fdf-edit-donation-link {
  padding-bottom: 10px !important;
}


body.thanks-page #container .thx_basket tr td:last-child {
  width: 100px;
  text-align: right;
}
