@font-face {
  font-family: "Nunito";
  src: url("./public/fonts/Nunito-Regular.ttf");
}

@font-face {
  font-family: "EBGaramond";
  src: url("./public/fonts/EBGaramond-Regular.ttf");
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Nunito, sans-serif;
  background: #fafafa;
  color: #111;
  line-height: 1.6;
}

/* ==========================
   STRUCTURE DE LECTURE
   ========================== */

/* Texte d'intention / accroche */
.text-lead {
  max-width: 650px;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* Texte courant (explicatif) */
.text-body {
  max-width: 720px;
  margin-bottom: 1rem;
}

/* Texte de principe / conclusion */
.text-focus {
  max-width: 580px;
  margin-top: 2rem;
  font-style: italic;
  color: #333;
}

/* Respiration verticale maîtrisée */
.section-spacer {
  margin-top: 3rem;
}

.text-offset {
  padding-left: 1.5rem;
  border-left: 2px solid rgba(31, 60, 136, 0.15);
}

/* HEADER */
.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  border-bottom: .1rem solid #1f3d8817;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.041);
}

.logo {
  line-height: 1.1;
  text-shadow: 0 2px 2px rgba(0,0,0,0.1);
}

.logo-dev {
  color: #1f3c88;
  font-size: clamp(2rem, 4vw, 3rem);
}

.logo-solutions {
  font-family: EBGaramond, serif;
  display: block;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

/* NAV */
.main-nav {
  display: flex;
  gap: 1.5rem;
  justify-content: end;
}

.main-nav a {
  position: relative;
  color: #111;
  font-size: 0.95rem;
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* LANG */
.lang-switch button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.5;
}

.lang-switch button.active {
  opacity: 1;
}

/* SECTIONS */
#intro,
#approach {
  max-width: 800px;
}

#services,
#references {
  max-width: 900px;
}

section > h2 {
  margin-bottom: 2.5rem;
}

main section {
  max-width: 900px;
  margin: auto;
  padding: 3rem 2rem;
  position: relative;
}

main section:nth-of-type(even) {
  background: #f3f5f8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

h1 {
  max-width: 700px;
  letter-spacing: 0.2px;
}

h2 {
  transition: transform 0.25s ease;
}

section:hover h2 {
  transform: translateX(4px);
}

/* SERVICES */
.services-list {
  list-style: none;
  padding: 0;
}

.services-list li {
  margin-bottom: 2rem;
}

.services-list li:not(:last-child) {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e3e8;
}

/* APPROACH SIGNATURE */
.approach-signature {
  margin-top: 1.5rem;
  font-style: italic;
  color: #444;
}

/* CONTACT */
#contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-left p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem;
}

/* ✅ CORRECTION : Syntaxe CSS standard (pas SCSS) */
.contact-left p img {
  width: 50px;
  height: 50px;
  color: #1f3c88;
}

.contact-social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-social a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1f3c88;
  text-decoration: none;
}

.contact-social a img {
  border-radius: 0.25rem;
}

#contact label {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

#contact input,
#contact textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
}

/* Style pour le consentement RGPD */
.rgpd-consent {
  margin: 20px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 5px;
  border-left: 4px solid #0066cc;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}
/* État erreur */
input.is-error,
textarea.is-error {
  border-color: #b00020;
  background-color: #fff7f7;
}

/* État valide (optionnel, très léger) */
input.is-valid,
textarea.is-valid {
  border-color: #2e7d32;
}

input,
textarea {
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

button[type="submit"] {
  background-color: #1f3c88;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-radius: 8px;
}
button[type="submit"]:hover {
  box-shadow: 0 4px 12px rgba(31, 60, 136, 0.3);
}

/* FOOTER */
footer {
  padding: 2rem;
  text-align: center;
}

.link-button {
  background: none;
  border: none;
  color: #1f3c88;
  cursor: pointer;
  margin: 0 0.5rem;
}

.link-button:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .site-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  #contact {
    grid-template-columns: 1fr;
  }
}