:root {
  --bg: #f6fcff;
  --bg-alt: #e3e7fe;
  --primary: #3B84b5;
  --primary-dark: #2d4290;
  --text: #1a1a1a;
  --muted: #7a7a7a;
  --border: #e5e5e5;
  --radius: 8px;
  --shadow-soft: 0 8px 20px rgba(0,0,0,0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

@font-face {
    font-family: "title_font";
    src: url("./assets/fonts/Allura-Regular.ttf") format("truetype"),
         url("./assets/fonts/dukeplus.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
  margin: 0;
  font-family: "Montserrat", "Calibri", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.logo a {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

/* Nav */

.main-nav {
  position: relative;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.nav-list a:hover {
  color: var(--primary);
}

/* Burger */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}

/* Hero */

/*
.hero {
  background: linear-gradient(135deg, #fafafa, #f5f5f5);
  border-bottom: 1px solid var(--border);
}
*/

.hero {
  position: relative;
  width: 100%;
  background-image: url("./img/hero_1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  padding: 3.5rem 1.5rem 3rem;
}

.hero-title img {
  width: 100%;
  height: auto;
  display: block;
  padding: 3.5rem 1.5rem 3rem;
}

.hero-logo img {
  width: 10rem;
  height: auto;
  display: block;
  margin: 0.5rem;
}

.hero-text {
  max-width: 600px;
}

.hero h1 {
  font-family: "title_font", "Calibri";
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
  text-align: center;
}

.hero p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Sections */

.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.section-intro {
  max-width: 600px;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* Layout */

.two-cols {
  display: grid;
  grid-template-columns: 2fr 1.3fr;
  gap: 2rem;
  align-items: flex-start;
}

.three-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.four-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

/* Cards */

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card .meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.list li {
  margin-bottom: 0.35rem;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-center {
  margin: 0 auto;
  text-align: center;
}

/* Form */

.contact-form {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  font: inherit;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Footer */

.site-footer {
  position: relative;
  background: #1f1f1f; /* fond uni conservé */
  padding: 2rem 0;
  color: #f0f0f0;
  margin-top: 2rem;
  overflow: hidden; /* sécurité */
}

/* Image atténuée */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./img/logo_blanc.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15; /* atténuation de l’image */
  z-index: 0;
}

/* Le contenu du footer reste au-dessus */
.site-footer > * {
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.footer-inner .small {
  color: #bdbdbd;
}

/* Utils */

.small {
  font-size: 0.85rem;
  color: var(--muted);
}

.big {
  font-size: 1.2rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.60);
}

p.big {
  color: white;
}

/* Responsive */

@media (max-width: 900px) {
  .two-cols {
    grid-template-columns: 1fr;
  }

  .three-cols,
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding-inline: 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-list {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-soft);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .nav-list.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .cards-grid,
  .three-cols {
    grid-template-columns: 1fr;
  }
}
