/* Custom CSS Front - Inspired by indicatif-belgique-app Vue.js design */
:root {
  --color-yellow: #FAE042;
  --color-dark-yellow: #F2CC36;
  --color-red: #ED2939;
  --color-black: #494848;
  --color-grey: #676767;
  --color-light-grey: #f5f5f5;
  --color-dark-grey: #1B1C1D;
  --color-border: #e1e4e8;
  --color-success: #28a745;
  --color-error: #dc3545;
  --color-warning: #f9e09b;
  --border-radius: 4px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
  background-color: #fff;
}

/* Container and Grid System */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
}

.grid > [class*="col-"] {
  padding: 10px;
}

.col-1 { width: 8.33%; }
.col-2 { width: 16.66%; }
.col-3 { width: 25%; }
.col-4 { width: 33.33%; }
.col-5 { width: 41.66%; }
.col-6 { width: 50%; }
.col-7 { width: 58.33%; }
.col-8 { width: 66.66%; }
.col-9 { width: 75%; }
.col-10 { width: 83.33%; }
.col-11 { width: 91.66%; }
.col-12 { width: 100%; }

/* Responsive */
@media (max-width: 768px) {
  .col-md-1, .col-md-2, .col-md-3, .col-md-4, 
  .col-md-5, .col-md-6, .col-md-7, .col-md-8, 
  .col-md-9, .col-md-10, .col-md-11, .col-md-12 { 
    width: 100%; 
  }
}

/* Typography */
h1 {
  color: var(--color-red);
  font-size: 30px;
  line-height: 1.2;
  margin: 20px 0 15px 0;
  font-weight: 600;
}

h1 small {
  font-size: 24px;
}

h2 {
  color: var(--color-grey);
  font-size: 24px;
  line-height: 1.3;
  margin: 20px 0 15px 0;
  font-weight: 500;
}

h2 small {
  font-size: 20px;
}

h3 {
  font-size: 18px;
  margin: 15px 0 10px 0;
  color: var(--color-grey);
}

p {
  margin: 10px 0;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 20px;
  margin: 4px;
  background-color: #f8f9fa;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  color: #333;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.4;
  text-align: center;
  transition: all 0.2s ease;
}

.btn:hover {
  background-color: #e9ecef;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-yellow);
  border-color: var(--color-dark-yellow);
  color: var(--color-black);
  font-weight: 700;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  border-width: 2px;
}

.btn-primary:hover {
  background-color: var(--color-dark-yellow);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.btn.right.floated {
  float: right;
}

/* Forms */
.form {
  margin: 20px 0;
}

.form .field {
  margin-bottom: 15px;
}

.form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea,
.form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 14px;
  font-family: inherit;
  background-color: #fff;
  transition: border-color 0.2s ease;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form .dropdown {
  position: relative;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: #fff;
}

.table th,
.table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.table th {
  background-color: var(--color-light-grey);
  font-weight: 600;
  color: var(--color-grey);
}

.table.striped tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.table.large th,
.table.large td {
  padding: 16px;
}

/* Cards */
.card {
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  margin: 15px 0;
  overflow: hidden;
}

.card .content {
  padding: 16px;
}

.card .header {
  font-weight: 600;
  margin-bottom: 10px;
}

/* Segments */
.segment {
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 20px;
  margin: 15px 0;
}

/* Messages */
.message {
  padding: 15px 20px;
  margin: 15px 0;
  border-radius: var(--border-radius);
  border-left: 4px solid #007bff;
  background-color: #f8f9fa;
}

.message .header {
  font-weight: 600;
  margin-bottom: 5px;
}

.message.success {
  background-color: #d4edda;
  border-left-color: var(--color-success);
  color: #155724;
}

.message.error {
  background-color: #f8d7da;
  border-left-color: var(--color-error);
  color: #721c24;
}

.message.warning {
  background-color: var(--color-warning);
  border-left-color: #f2c037;
  color: #856404;
}

.message.info {
  background-color: #d1ecf1;
  border-left-color: #bee5eb;
  color: #0c5460;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  margin: 10px 0 20px 0;
  font-size: 14px;
  color: var(--color-grey);
}

.breadcrumb a {
  color: #007bff;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .divider {
  margin: 0 8px;
  color: #ccc;
}

.breadcrumb .active {
  color: var(--color-grey);
}

/* Header styles */
.dividing.header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* Lists */
.list {
  margin: 15px 0;
}

.list .item {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.list .item:last-child {
  border-bottom: none;
}

.list.divided .item {
  border-bottom: 1px solid var(--color-border);
}

.list.relaxed .item {
  padding: 12px 0;
}

/* Definition tables */
.definition.table td:first-child {
  font-weight: 600;
  background-color: var(--color-light-grey);
}

/* Utility classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.float-right { float: right; }
.float-left { float: left; }
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  
  .grid {
    margin: -5px;
  }
  
  .grid > [class*="col-"] {
    padding: 5px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  h2 {
    font-size: 20px;
  }
  
  .table {
    font-size: 14px;
  }
  
  .table th,
  .table td {
    padding: 8px;
  }
  
  .btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .btn.right.floated {
    float: none;
    display: block;
    margin: 10px 0;
  }
}