/* global.css — modern layout and style for FA2000 SPA */

/* Reset and base styles */
* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

html, body {
   font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
   color: #202020;
   background-color: #e6f2ff;
   line-height: 1.6;
   font-size: 16px;
}

/* Header */
.site-header {
   background-color: #ffffff;
   border-bottom: 1px solid #d0d8e0;
   color: #202020;
   padding: 1rem 2rem;
}

.site-header .container {
   max-width: 960px;
   margin: 0 auto;
   display: flex;
   justify-content: space-between;
   align-items: center;
   flex-wrap: wrap;
   padding: 0 1rem;
}

.branding {
   display: flex;
   align-items: center;
   gap: 1rem;
}

.logo {
   height: 100px;
   width: auto;
}

.site-title {
   font-size: 1.5rem;
   font-weight: bold;
   color: #202020;
}

.cta a {
   font-size: 1.25rem;
   font-weight: 600;
   color: #0077b6;
   text-decoration: none;
}

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

/* Navigation */
.main-nav {
   background-color: #4db8ff;
   display: flex;
   justify-content: center;
   gap: 2rem;
   padding: 0.75rem 1.5rem;
}

.main-nav a {
   color: white;
   text-decoration: none;
   font-weight: 500;
   font-size: 1rem;
}

.main-nav a:hover {
   text-decoration: underline;
}

/* Main layout */
main {
   max-width: 768px;
   margin: 2rem auto;
   padding: 0 1.5rem;
}

section {
   margin-bottom: 3rem;
}

section h1 {
   font-size: 2rem;
   color: #03045e;
   margin-bottom: 1rem;
}

section h2 {
   font-size: 1.5rem;
   color: #0077b6;
   margin-top: 2rem;
}

section ul {
   margin: 1rem 0 1.5rem 1.5rem;
   list-style-type: disc;
}

section p {
   margin: 1rem 0;
}

label {
   display: block;
   margin-top: 1rem;
   font-weight: 500;
}

input, textarea {
   width: 100%;
   padding: 0.5rem;
   font-size: 1rem;
   margin-top: 0.25rem;
   border: 1px solid #ccc;
   border-radius: 4px;
}

button {
   margin-top: 1rem;
   background-color: #0077b6;
   color: white;
   border: none;
   padding: 0.75rem 1.5rem;
   font-size: 1rem;
   border-radius: 4px;
   cursor: pointer;
}

button:hover {
   background-color: #03045e;
}

.formation-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

/* Mobile: 1 column */
@media (max-width: 767px) {
  .formation-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet/Desktop: 2 or 3 columns */
@media (min-width: 768px) {
  .formation-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.formation-block h2 {
  margin-bottom: 0.5rem;
  color: #0077b6;
  text-align: center;
}

.formation-block ul {
  margin-left: 1rem;
  list-style-type: disc;
  text-align: left;
}
