/* =============================================
   BORDÉE DE TRIBORD — CSS global
   Charte : #006293 (bleu) · #00902f (vert) · blanc
   Typo   : Louis George Cafe (titres) · Inter (corps)
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

@font-face {
  font-family: 'Louis George Cafe';
  src: url('/fonts/Louis George Cafe Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Louis George Cafe';
  src: url('/fonts/Louis George Cafe.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Louis George Cafe';
  src: url('/fonts/Louis George Cafe Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue:       #006293;
  --blue-dark:  #004e75;
  --blue-light: #0078b0;
  --blue-pale:  #e8f4fa;
  --green:      #00902f;
  --green-dark: #007026;
  --white:      #ffffff;
  --off-white:  #f5f8fa;
  --gray-100:   #f0f4f7;
  --gray-200:   #dde6ed;
  --gray-400:   #8fa8bb;
  --gray-600:   #4a6a7d;
  --gray-800:   #1e3a4a;
  --text:       #1a2e3a;
  --text-light: #4a6a7d;

  --font-head: 'Louis George Cafe', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius:    8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 4px rgba(0,98,147,.08);
  --shadow:    0 4px 20px rgba(0,98,147,.12);
  --shadow-lg: 0 12px 40px rgba(0,98,147,.18);
  --nav-h:     72px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* Utility */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-label {
  display: inline-block;
  font-size: .7rem; font-weight: 600; letter-spacing: .12em;;
  color: var(--blue); margin-bottom: 10px;
}
.section-divider {
  width: 48px; height: 3px;
  background-color: var(--green);
  border-radius: 2px; margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300; color: var(--text); line-height: 1.2;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius);
  font-family: var(--font-head); font-size: .85rem; font-weight: 300;
  letter-spacing: .02em; transition: all .2s; cursor: pointer; border: none;
}
.btn-primary  { background: var(--blue); color: var(--white); box-shadow: 0 2px 8px rgba(0,98,147,.3); }
.btn-primary:hover  { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline  { border: 2px solid var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover  { background: var(--blue); color: var(--white); }
.btn-green    { background: var(--green); color: var(--white); }
.btn-green:hover    { background: var(--green-dark); }
.btn-white    { background: var(--white); color: var(--blue); }
.btn-white:hover    { background: var(--blue-pale); }
.btn-danger   { background: #dc2626; color: white; }
.btn-danger:hover   { background: #b91c1c; }
.btn-sm { padding: 7px 14px; font-size: .78rem; }

/* Tags */
.tag { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.tag-blue   { background: var(--blue-pale); color: var(--blue); }
.tag-green  { background: #e6f5eb; color: var(--green-dark); }
.tag-orange { background: #fff3e6; color: #b85a00; }
.tag-gray   { background: var(--gray-100); color: var(--gray-600); }

/* Forms */
.form-group  { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label  { font-size: .78rem; font-weight: 600; color: var(--text); }
.form-input, .form-select, .form-textarea {
  padding: 10px 14px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); font-family: var(--font-body); font-size: .88rem;
  color: var(--text); background: white; outline: none; transition: border-color .15s;
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--blue); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* Cards */
.card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); transition: all .25s;
}
.card:hover { box-shadow: var(--shadow-lg); }

/* Navigation */
nav#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  padding-top: 15px;
  padding-bottom: 15px;
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo     { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img { height: 52px; width: auto; display: block; }
.nav-menu { display: flex; align-items: center; gap: 12px; }
.nav-item {
  position: relative; padding: 8px 14px; border-radius: var(--radius);
  font-family: var(--font-head); font-size: .85rem; font-weight: 300;
  color: var(--gray-600); cursor: pointer; transition: all .15s; white-space: nowrap;
  text-decoration: none; display: block;
}
.nav-item:hover, .nav-item.active { color: var(--blue); background: var(--blue-pale); }
.nav-item .chevron { font-size: .6rem; margin-left: 3px; opacity: .6; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; pointer-events: none;
  transform: translateY(-6px); transition: all .2s; z-index: 100;
}
.nav-item:hover .dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown-item {
  display: block; padding: 9px 14px; border-radius: var(--radius);
  font-size: .82rem; font-weight: 500; color: var(--gray-600);
  cursor: pointer; transition: all .15s;
}
.dropdown-item:hover { background: var(--blue-pale); color: var(--blue); }

/* Page offset for fixed nav */
.page-body { padding-top: var(--nav-h); }

/* Page header */
.page-header {
  padding: 80px 0 70px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: white; position: relative; overflow: hidden;
}
.page-header-eyebrow { font-size: .7rem;  letter-spacing: .15em; opacity: .65; margin-bottom: 10px; }
.page-header-title   { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; line-height: 1.1; }
.page-header-desc    { font-size: .95rem; opacity: .75; max-width: 520px; margin-top: 10px; line-height: 1.6; }
.page-content        { padding: 60px 0 80px; }

/* Footer */
footer {
  background: var(--gray-800); color: rgba(255,255,255,.8);
  padding: 60px 0 32px; border-top: 3px solid var(--blue);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-name { font-family: var(--font-head); font-size: 1.1rem; font-weight: 300; color: white; margin-bottom: 4px; }
.footer-brand-sub  { font-size: .75rem; opacity: .5; margin-bottom: 16px; }
.footer-brand-desc { font-size: .8rem; line-height: 1.6; opacity: .6; max-width: 260px; }
.footer-col-title  { font-family: var(--font-head); font-weight: 300; color: white; font-size: .85rem; margin-bottom: 16px; }
.footer-links      { display: flex; flex-direction: column; gap: 8px; }
.footer-link       { font-size: .8rem; opacity: .6; cursor: pointer; transition: opacity .15s; }
.footer-link:hover { opacity: 1; }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: .75rem; opacity: .45;
}

/* Flash messages */
.flash {
  padding: 14px 20px; border-radius: var(--radius); margin-bottom: 20px;
  font-size: .88rem; font-weight: 500;
}
.flash-success { background: #e6f5eb; color: var(--green-dark); border: 1px solid #b6e0c0; }
.flash-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* =============================================
   RESPONSIVE — MOBILE
   Breakpoints : 768px (tablette/téléphone)
                 480px (petit téléphone)
============================================= */

/* Hamburger button — caché sur desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--gray-800); border-radius: 2px;
  transition: all .25s;
}
nav#main-nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav#main-nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav#main-nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {

  /* Navigation */
  nav#main-nav { margin-top: 0; height: var(--nav-h); }
  .nav-toggle  { display: flex; }
  .nav-cta     { display: none; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: white;
    border-bottom: 2px solid var(--gray-200);
    box-shadow: var(--shadow);
    flex-direction: column;
    padding: 10px 16px 16px;
    gap: 2px;
  }
  nav#main-nav.nav-open .nav-menu { display: flex; }
  .nav-item { padding: 12px 16px; font-size: .9rem; border-radius: var(--radius); }

  /* Footer */
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Forms */
  .form-grid { grid-template-columns: 1fr; }

  /* Page header & content */
  .page-header  { padding: 48px 0 40px; }
  .page-content { padding: 40px 0 56px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
