/* Reset et variables */
:root {
    --primary-color: #bf871f;
    --secondary-color: #424859;
    --highlight-color: #ecfccb;
    --text-primary: #1f2937;
    --text-secondary: #424859;
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --progress-bar-color: #424859;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: #f9fafb;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

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

.result-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Titres */
h1 {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align:center;
}

q{
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--primary-color) !important;
  
}

h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

/* Progress bar */
.progress-container {
    margin: 2rem 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--progress-bar-color);
    transition: width 0.3s ease;
}

/* Cards */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.card {
    position: relative;
    cursor: pointer;
}

.card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.card-content {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.card:hover .card-content {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.card input[type="radio"]:checked + .card-content {
    border-color: var(--primary-color);
    background: white;
    box-shadow: var(--shadow);
}

.card .icon {
    margin-bottom: 1rem;
    font-size: 2.5em;
}

/*.icon {*/
/*     width: 32px;*/
/*    height: 32px;*/
/*    position: center;*/
/*}*/

.card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.card p {
    margin: 0.5rem 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.card .price {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--highlight-color);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.ph {
    font-size: 2em;
    vertical-align: middle;
}

.icon .ph {
    font-size: 2.5em;
    margin-bottom: 0.5rem;
}

.btn-container .ph {
    font-size: 1.2em;
}

.trust-points .ph,
.notes .ph {
    font-size: 1.2em;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Input surface amélioré */
.input-group {
    position: relative;
    max-width: 200px;
    margin: 2rem auto;
    border: 2.5px solid #424859;
    border-radius: var(--border-radius);
}

.input-group input[type="number"] {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid #424859;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    appearance: textfield;
    -moz-appearance: textfield;
    text-align: center;
}

.input-group input[type="number"]::-webkit-outer-spin-button,
.input-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/*.input-group input[type="number"]:focus {*/
/*    outline: none;*/
/*    border-color: var(--primary-color);*/
/*    box-shadow: 0 0 0 3px rgba(191, 135, 31, 0.2);*/
/*}*/

.input-group .unit {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
    pointer-events: none;
}

/* Boutons */
.btn-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.btn-next,
.btn-calculate {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    text-align : center;
}

/* Conteneur du bouton (assurez-vous qu'il occupe toute la largeur de son parent) */
.btn-primary {
  display: block;                  /* Pour que le bouton soit un élément block et occupe toute la largeur */
  width: 100%;                     /* Le bouton occupe toute la largeur du conteneur */
  padding: 15px 30px;              /* Pour augmenter la taille du bouton (plus de padding) */
  font-size: 1.2em;                /* Agrandit le texte du bouton */
  background: linear-gradient(135deg, #424859, #bf871f); /* Dégradé de couleur pour le fond */
  color: white;                    /* Texte blanc */
  border: none;                    /* Retire la bordure par défaut */
  border-radius: 8px;              /* Bordures arrondies pour un effet plus moderne */
  text-align: center;              /* Texte centré */
  cursor: pointer;                /* Changer le curseur pour indiquer que c'est cliquable */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Ombre légère pour faire ressortir le bouton */
  transition: background 0.3s, transform 0.3s; /* Transition fluide au survol */
}

/* Effet au survol */
.btn-primary:hover {
  background: linear-gradient(150deg, #bf871f, #424859); /* Inverse le dégradé au survol */
  transform: scale(1.05);              /* Agrandit légèrement le bouton au survol */
}

/* Effet lorsque le bouton est cliqué (pression) */
.btn-primary:active {
  transform: scale(0.98);  /* Réduit légèrement la taille du bouton quand il est cliqué */
}


.btn-next:hover,
.btn-calculate:hover,
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    transition: all 0.2s;
    background: white;
    cursor: pointer;
    gap: 0.5rem;
}

.btn-back:hover {
    background: #f9fafb;
}

/* Résultats */
.white-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.estimates {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.estimate {
    flex: 1;
    padding: 1.5rem;
    text-align: center;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.estimate.highlight {
    background: var(--highlight-color);
    transform: scale(1.05);
}

.estimate-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.estimate-value {
    display: block;
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Notes et infos */
.notes {
    margin: 2rem 0;
}

.note-title {
    font-weight: 500;
    margin-bottom: 1rem;
}

.notes ul {
    list-style: none;
    padding: 0;
}

.notes li {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-alert {
    background: #f0f9ff;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1.5rem;
}

/* Contact et confiance */
.contact-prompt {
    margin: 1.5rem 0;
    font-size: 1.1rem;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.contact-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: var(--border-radius);
}

.contact-option h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-option p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.trust-points {
    margin-top: 2rem;
}

.trust-points h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.trust-points ul {
    list-style: none;
    padding: 0;
}

.trust-points li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

/* Icônes Lucide */
[data-lucide] {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
    vertical-align: middle;
}

.icon [data-lucide] {
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem;
}

.btn-container [data-lucide] {
    width: 20px;
    height: 20px;
}

.trust-points [data-lucide],
.notes [data-lucide] {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    color: var(--primary-color);
}



/* Media queries */
@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }

    .estimates {
        flex-direction: column;
    }

    .estimate.highlight {
        transform: none;
    }

    .white-card {
        padding: 1.5rem;
    }

    .btn-container {
        flex-direction: column;
    }

    .btn-container button {
        width: 100%;
    }
}