/* style-commun.css - Style commun site public + backoffice */
:root {
    --primary-color: #33603C;
    --primary-hover: #25462c;
    --text-dark: #333;
    --text-light: #f8f9fa;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --border-radius: 5px;
    --transition: all 0.3s ease;
}

body {
    background-color: var(--text-light);
    color: var(--text-dark);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
}

/* Logo centré */
.logo {
    height: 100px;
    display: block;
    margin: 20px auto 10px auto;
}

/* Bandeau vert avec titre blanc */
.header-banner {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    text-align: center;
    margin-bottom: 30px;
}


.header-banner h2 {
    margin: 0;
    font-weight: bold;
    font-size: 1.5em;
}

/* Cartes */
.card {
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
}

.card-header {
    background-color: var(--primary-color);
    border-bottom: 1px solid #e0e0e0;
}

.card-title {
    color: text-white;
    background-color: var(--primary-color);
}

/* Boutons radios */
.form-check-input:checked[type="radio"] {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}


/* Bouton soumettre */
.btn-submit {
    display: block;
    margin: 40px auto;
    padding: 10px 30px;
    font-size: 1.1em;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-submit:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Info âge */
.info-age {
    color: gray;
    font-size: 0.85em;
    display: block;
}

/* Formulaires */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(51, 96, 60, 0.25);
}

/* Boutons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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


/* complément CSS pour page formulaire */
/* Espacement des sections */
.form-section {
    margin-bottom: 25px;
}

/* Ombre douce sur les cartes */
.card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Amélioration des titres */
.card-header h5.card-title {
    font-weight: 600;
    letter-spacing: 0.5px;
    color: text-white;
}

/* Style des labels pour plus de lisibilité */
label {
    font-weight: 500;
    margin-bottom: 4px;
}

/* Boutons plus fluides */
.btn {
    border-radius: 8px;
    transition: var(--transition);
}

/* Effet au focus sur bouton */
.btn:focus {
    transform: scale(1.02);
}

/* Fond alterné pour les zones importantes */
.section-highlight {
    background: #f4f8f5;
    padding: 15px;
    border-radius: var(--border-radius);
}

/* Bordure douce sur les inputs */
.form-control {
    border-radius: 8px;
}

/* signature */
.signature-container {
    margin: 20px auto;
    padding: 15px;
    border: 2px solid #33603C;
    border-radius: 10px;
    max-width: 500px;
}

.canvas-wrapper {
    position: relative;
    width: 100%;
    height: 150px;
    border: 1px dashed #ccc;
    background: #f9f9f9;
    border-radius: 5px;
    overflow: hidden;
    touch-action: none; /* bloque le scroll lors du dessin sur mobile */
}

#signature-pad {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    display: block; /* éviter les espaces blancs autour */
}

#scroll-blocker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 9999;
    display: none;
}

.question-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem; /* espace entre texte et boutons */
}

.question-text {
    flex: 1; /* prend toute la place dispo */
    margin-right: 10px;
}

.question-options {
    flex-shrink: 0; /* empêche les boutons de se réduire */
    display: flex;
    gap: 10px; /* espace entre Oui et Non */
}

.reglement-affichage {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Styles communs pour toutes les modals */
.modal-content {
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    transition: var(--transition);
}

/* En-tête des modals */
.modal-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-bottom: 1px solid var(--primary-hover);
}

/* Boutons de fermeture */
.modal-header .btn-close {
    filter: brightness(0.9);
    transition: var(--transition);
}

.modal-header .btn-close:hover {
    filter: brightness(1.2);
}

/* Corps des modals */
.modal-body {
    color: var(--text-dark);
}

/* Pied de modals */
.modal-footer {
    border-top: 1px solid #ccc;
}

/* Boutons principaux */
.modal-footer .btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: var(--transition);
}

.modal-footer .btn-success:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.modal-footer .btn-secondary, 
.modal-footer .btn-outline-secondary {
    background-color: var(--text-light);
    color: var(--text-dark);
    border: 1px solid #ccc;
}

.modal-footer .btn-outline-secondary:hover {
    background-color: #e9ecef;
}
