/* public/css/style.css */

/* === Google Fonts Imports === */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

/* === Normalize & Base Styles === */
*,
*::before,
*::after {
    box-sizing: border-box;
    min-height: 0;
    min-width: 0;
}

html {
    font-size: 100%;
    line-height: 1.4;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Roboto Condensed', sans-serif;
    color: #525e69;
    font-size: 16px;
    line-height: 1.4;
    background-color: #f5f3ef;
    margin: 0;
    padding: 0;
}

html, button, input, select, textarea {
    font-family: 'Open Sans', sans-serif;
    color: #222;
}

p {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.3;
    color: #525e69;
}

p, pre {
    margin: 1em 0;
}

h1, h2, h3, h4 {
    color: #3e2e26;
    font-weight: 600;
}

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

a {
    color: #795548;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #c9a96e;
    text-decoration: underline;
}

/* ===================================
   Navbar / Header (base.html.twig)
=================================== */
header {
    background-color: #e7ded2;
    border-bottom: 1px solid #d4c4b5;
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
    color: #3e2e26;
}

.nav-link {
    margin: 0 0rem;
    color: #5a4a3f;
}

.nav-link:hover {
    color: #c9a96e;
}

/* ===================================
   Hero Section (index.html.twig)
=================================== */
.py-5.bg-white.border-bottom {
    background-color: #faf7f2;
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 1px solid #ddd1c7;
}

.display-5 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #3e2e26;
}

.lead.text-muted {
    font-size: 1.1rem;
    color: #6d5d50;
}

/* ===================================
   Features Section (index.html.twig)
=================================== */
.py-5.bg-light .card {
    background-color: #e7ded2;
    border: none;
    box-shadow: 0 2px 10px rgba(78, 52, 46, 0.1);
}

.py-5.bg-light .card-title {
    color: #4e342e;
    font-size: 1.2rem;
}

.py-5.bg-light .card-text {
    font-size: 0.95rem;
    color: #5a4a3f;
}

/* ===================================
   Login Page (login.html.twig)
=================================== */
.login-container {
    max-width: 420px;
    margin: 5rem auto;
    padding: 2rem;
    background-color: #faf7f2;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(78, 52, 46, 0.1);
    border: 1px solid #d4c4b5;
}

.login-container h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: #3e2e26;
}

.login-container form .form-control {
    margin-bottom: 1rem;
    border: 1px solid #d4c4b5;
    background-color: #fffaf5;
    color: #4e342e;
}

.btn-primary {
    background-color: #795548;
    border-color: #6e4c47;
    color: #fff;
}

.btn-primary:hover {
    background-color: #5d4037;
    border-color: #4e342e;
}

.error-message {
    color: #a94442;
    background-color: #f9e6e4;
    border: 1px solid #e2b9b7;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

/* ===================================
   Footer (if applicable)
=================================== */
footer {
    background-color: #e7ded2;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: #6d5d50;
}

/* ===================================
   Aperçu fiche société (details-content)
=================================== */
.details-content {
    border: 1px solid #d4c4b5;
    border-radius: 10px;
    background-color: #faf7f2;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 2px 8px rgba(78, 52, 46, 0.08);
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.95rem;
    color: #4e342e;
    transition: all 0.3s ease-in-out;
}

.details-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 0;
}

.details-content li {
    margin-bottom: 0.65rem;
    line-height: 1.6;
}

.details-content strong {
    color: #3e2e26;
    font-weight: 600;
}

/* Aperçu - Bloc haut scrollable (limite 10 lignes visibles) */
.apercu-scrollable-table {
    max-height: 460px;
    overflow-y: auto;
    border: 1px solid #d4c4b5;
    border-radius: 8px;
    background-color: #fffaf5;
    box-shadow: 0 2px 6px rgba(78, 52, 46, 0.05);
    margin-bottom: 1rem;
}

/* ===================================
   Aperçu – Fiche Détail (section preview)
=================================== */
.fiche-detail {
    background-color: #fffaf5;
    border: 1px solid #d4c4b5;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(78, 52, 46, 0.08);
    margin-top: 2rem;
    font-family: 'Georgia', serif;
    color: #4e342e;
    transition: all 0.3s ease-in-out;
}

.fiche-item {
    margin-bottom: 1rem;
}

.fiche-label {
    display: block;
    font-weight: bold;
    color: #3e2e26;
    margin-bottom: 0.25rem;
}

.fiche-value {
    padding: 0.5rem 0.75rem;
    background-color: #f5f3ef;
    border-radius: 6px;
    border: 1px solid #e7ded2;
    font-size: 0.95rem;
    word-wrap: break-word;
}

.tab-content {
    background-color: #fffaf5;
    border-radius: 8px;
}

.lkp-title {
    font-weight: 600;
    font-size: 1.75rem;
    color: #1b1b1b;
}
.lkp-subtle {
    color: #6c757d;
    font-size: 0.95rem;
}
.lkp-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.lkp-card-header {
    background: #f8f9fa;
    padding: 0.5rem 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid #dee2e6;
}
.lkp-table th {
    background-color: #f0f0f0;
    color: #333;
    font-weight: 500;
}
.lkp-tabs .nav-link {
    font-weight: 500;
    color: #495057;
}
.lkp-tabs .nav-link.active {
    background-color: #e9ecef;
    border-color: #dee2e6 #dee2e6 #fff;
}

/* Figer l'en-tête de tableau */

.table-sticky-header thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: white; 
    box-shadow: 0 2px 2px -1px rgba(0,0,0,0.1);
}

.lkp-table-cell {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1rem;
    background-color: #f0f0f0;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0.5rem; 
    border: 1px solid #dee2e6;
    border-top: none;
}

.col-small {
    width: 12%;
    min-width: 100px;
}
