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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
/* ===================================================================
 *  STYLE GLOBAL & GRAPHIQUE SIGMA
 * =================================================================== */

/* Explicit sizing and minimum widths avoid engine-specific flexbox
 * expansion differences (notably between Blink and Gecko). */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
}

.legacy-browser-warning {
  display: none;
  margin: 0;
  padding: 0.75rem 1rem;
  color: #664d03;
  background: #fff3cd;
  border-bottom: 1px solid #ffecb5;
  font-weight: 600;
  text-align: center;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

.row > *,
.card,
.card-body,
.flex-grow-1 {
  min-width: 0;
}

.navbar .container {
  column-gap: 1rem;
  row-gap: 0.75rem;
}

.navbar-brand {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}

.navbar-brand small,
#suggestions-list li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.navbar-actions {
  min-width: 0;
  margin-left: auto;
}

 #sigma-container {
  width: 100%;
  height: 600px; /* Un peu plus de hauteur pour un meilleur confort */
  position: relative;
  overflow: hidden;
  border: 1px solid #dee2e6;
  border: 1px solid var(--bs-border-color, #dee2e6); /* Variable Bootstrap */
  margin-top: 1rem;
  border-radius: 0.375rem;
  border-radius: var(--bs-border-radius, 0.375rem); /* Variable Bootstrap */
  background-color: #f8f9fa;
  background-color: var(--bs-light-bg-subtle, #f8f9fa); /* Fond légèrement teinté */
}

#floating-legend {
  max-width: calc(100% - 1rem);
}

/* ===================================================================
 *  STYLE DES CARTES "HIGHLIGHTS"
 * =================================================================== */

/* Applique une hauteur de 100% aux cartes dans les colonnes pour un alignement parfait */
.genealogy-column .card {
  height: 100%;
}

/* Style spécifique pour la carte centrale du modèle recherché */
.card-searched {
  border: 2px solid var(--bs-primary); /* Bordure primaire de Bootstrap */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Ombre plus prononcée */
  background-color: var(--bs-light); /* Fond clair Bootstrap */
}



/* ===================================================================
 *  STYLE DES TABLES (DATATABLES)
 * =================================================================== */
/* A single, deterministic wrapping policy replaces the previous contradictory
 * normal/nowrap declarations. */
#descendance-table th, #descendance-table td,
#ascendance-table th, #ascendance-table td,
#train-table th, #train-table td,
#graph-models-table th, #graph-models-table td {
    white-space: nowrap;
    vertical-align: middle;
}

#descendance-table th,
#ascendance-table th,
#train-table th {
    min-width: 120px;
}

#descendance-table th:first-child, #descendance-table td:first-child,
#ascendance-table th:first-child, #ascendance-table td:first-child,
#train-table th:first-child, #train-table td:first-child,
#graph-models-table th:first-child, #graph-models-table td:first-child {
    min-width: 200px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.table-responsive,
div.dataTables_wrapper,
div.dataTables_wrapper div.dataTables_scroll {
  width: 100%;
  max-width: 100%;
}

.table-responsive,
div.dataTables_wrapper div.dataTables_scrollBody {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

div.dataTables_wrapper div.dataTables_scrollHeadInner {
  min-width: 100%;
}

div.dataTables_wrapper table.dataTable {
  margin-left: 0 !important;
  margin-right: 0 !important;
  table-layout: auto;
}

/* Personnalisation de l'input de recherche de DataTables pour qu'il ressemble à un champ Bootstrap */
div.dataTables_wrapper div.dataTables_filter input {
  max-width: 100%;
  border: 1px solid #dee2e6;
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 0.375rem;
  border-radius: var(--bs-border-radius, 0.375rem);
  padding: 0.375rem 0.75rem;
  margin-left: 0.5em;
}

/* Amélioration de la visibilité des flèches de tri de DataTables */
div.dataTables_wrapper .table thead th.sorting::before,
div.dataTables_wrapper .table thead th.sorting::after {
    opacity: 0.4;
    color: var(--bs-body-color);
}

div.dataTables_wrapper .table thead th.sorting_asc::after,
div.dataTables_wrapper .table thead th.sorting_desc::before {
    opacity: 1;
    color: var(--bs-primary); /* Couleur primaire de Bootstrap */
}

div.dataTables_wrapper .table thead th.sorting_asc::before,
div.dataTables_wrapper .table thead th.sorting_desc::after {
    opacity: 0.2;
}


/* ===================================================================
 *  STYLE DES COMPOSANTS D'INTERFACE
 * =================================================================== */

/* NOTE: La plupart des classes de layout comme .search-controls-container, .depth-controls
 * ont été supprimées car la mise en page est maintenant gérée par la grille et
 * les utilitaires Flexbox de Bootstrap directement dans le HTML (row, col, d-flex, gap-3).
 */

/* Style pour la liste de suggestions de l'autocomplétion */
/* Le HTML utilise maintenant <ul class="list-group">, ce CSS est donc obsolète. */
/* Si vous n'utilisez pas list-group, ce style peut être adapté. */
#suggestions-list {
  /* Ce style est pour si vous utilisez une <ul> simple.
     Si vous avez bien une <ul class="list-group">, vous pouvez supprimer ce bloc. */
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  max-width: 100%;
  overflow-x: hidden;
  border-radius: 0.375rem;
  border-radius: var(--bs-border-radius, 0.375rem);
  background-color: #f8f9fa;
  background-color: var(--bs-light, #f8f9fa);
}
#suggestions-list li:hover {
  background-color:  #94bfeb; ;
}


/* Légendes du graphe */

.legend-item {
  /* Cette classe est maintenant principalement utilisée pour le JS (clic) */
  cursor: pointer;
  transition: background-color 0.2s;
}
.legend-item:hover {
  background-color: var(--bs-light-bg-subtle);
}
.legend-item.active {
  font-weight: bold;
  background-color: var(--bs-primary-bg-subtle);
}

/* Le style de la puce colorée reste le même */
.legend-color {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  margin-right: 0.75rem;
  flex-shrink: 0;
}
.legend-color.edge {
  height: 4px;
  width: 20px;
  border-radius: 2px;
}


/* ===================================================================
 *  CONNECTEURS VISUELS POUR LA VUE GÉNÉALOGIQUE
 *  (Cette logique est indépendante du framework et n'a besoin que de la mise à jour des couleurs)
 * =================================================================== */

.genealogy-row {
  position: relative;
}

/* On utilise la classe de la colonne centrale pour attacher les connecteurs */
#center-column {
  position: static; /* Important pour que les connecteurs ne soient pas piégés dedans */
}

/* Média query pour n'afficher les connecteurs que sur les grands écrans (lg et plus) */
@media (min-width: 992px) {
  /* Connecteur vers l'ascendance (gauche) */
  #center-column::before {
      content: '';
      position: absolute;
      z-index: -1;
      top: 100px; /* Ajustez cette hauteur pour aligner avec vos cartes */
      
      left: 20%;  /* Commence à 20% de la largeur */
      right: 60%; /* S'arrête à 40% de la largeur */

      height: 3px;
      background-color: var(--bs-secondary-border-subtle); /* Couleur Bootstrap subtile */
      border-radius: 3px;
  }

  /* Connecteur vers la descendance (droite) */
  #center-column::after {
      content: '';
      position: absolute;
      z-index: -1;
      top: 100px; /* Même hauteur */
      
      left: 60%;
      right: 20%;
      
      height: 3px;
      background-color: var(--bs-secondary-border-subtle);
      border-radius: 3px;
  }
}

/* Style de base pour la carte interactive */
.card-interactive {
  /* Ajoute une transition douce pour tous les changements de style (couleur, ombre...) */
  transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}


.form-check-input:checked {
  background-color: #6a11cb; /* Bleu primaire par défaut */
  border-color:#6a11cb;     /* Bleu primaire par défaut */
}

/* Change la couleur de fond des cases à cocher lorsqu'elles sont cochées */
.btn-primary {
  background-color: #6a11cb; 
  border-color:#6a11cb;    
}

.btn-outline-primary {
  color: #6a11cb;
  border-color: #6a11cb;
}

.btn-outline-primary:hover {
  color: #fff;
  background-color: #6a11cb;
  border-color: #6a11cb;
}

.stretched-link{
color: #6a11cb; 
}
/* Style appliqué LORSQUE LA SOURIS SURVOLE la carte */
.card-interactive:hover {
  cursor: pointer; /* Le curseur change en main, indiquant un clic possible */
  background-color: #94bfeb; /* Une couleur de fond légèrement grise (standard Bootstrap) */
  
  /* Optionnel : ajoute une ombre subtile pour faire "ressortir" la carte */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
}

.card-recherche p:not(.text-muted) {
  color: #212529 !important; /* Couleur noire standard de Bootstrap */

}

.card-recherche{
  border-color:#6a11cb;
}

.card-recherche-header{
  border-color:#6a11cb;
  background-color: #6a11cb; 

}
.on-top {
  position: relative;
  z-index: 2; /* Doit être supérieur à 1 (le z-index du stretched-link) */
}

.beta {
  background-color: #6a11cb;
}

.alpha {
  background-color: #b476f7;
  color : #000000;
}

main {
  margin-bottom: 5rem; /* ajuste la valeur selon tes besoins */
}

#floating-legend .legend-color { width: 1em; height: 1em; display: inline-block; border-radius: 2px; }
#floating-legend .legend-color.edge { border-radius: 0; height: 0.25em; transform: translateY(-0.35em); }

.btn-modern {
  min-width: 200px;
  padding: 14px 24px;
  font-weight: bold;
  color: white;
  background: linear-gradient(135deg, #6a11cb, #f8a5f8);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  text-align: center;
  text-decoration: none;
}

.btn-modern:hover {
  background: linear-gradient(135deg, #5a0fbf, #1d63e1);
  transform: translateY(-3px);
}

@media (max-width: 575.98px) {
  .navbar-brand,
  .navbar-actions {
    flex: 1 1 100%;
    margin-right: 0;
  }

  .navbar-actions {
    justify-content: flex-start !important;
  }

  #sigma-container {
    height: 70vh;
    min-height: 420px;
  }

  div.dataTables_wrapper div.dataTables_filter label {
    display: block;
    width: 100%;
  }

  div.dataTables_wrapper div.dataTables_filter input {
    width: 100%;
    margin: 0.375rem 0 0;
  }
}