/* ─── Variables globales & Base ────────────────────────── */
:root {
  --bleu-sineo: rgb(23, 67, 140);
  --vert-sineo: rgb(195, 215, 20);
  --bleu-2: rgb(16, 49, 101);
  --blanc: white;
  --underline-intro: yellow;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Geneva, Verdana, sans-serif;
  font-size: 1rem;
}

/* ─── Header ────────────────────────────────────────────── */
header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bleu-sineo);
  color: var(--vert-sineo);
  padding: 0 1.25rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header img {
  width: clamp(120px, 20vw, 250px);
  margin: 0.625rem 1.875rem;
}

.underline-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 2vw, 1.875rem);
  align-items: center;
}

.underline-nav a {
  position: relative;
  color: var(--blanc);
  text-decoration: none;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  padding: 0.625rem 0;
  transition: 0.5s ease;
}

.underline-nav a:hover {
  color: var(--vert-sineo);
}

.underline-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--vert-sineo);
  transition: width 0.3s ease;
}

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

/* ─── Section & Conteneur Principal du Formulaire ───────── */
section.formulaire-contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 1.25rem 5rem 1.25rem;
  background-color: var(--bleu-2);
}

section.formulaire-contact h2 {
  margin-bottom: 2rem;
  width: 100%;
}

/* Titre stylisé dans le formulaire (Style SIENO) */
.hl-contact {
  display: inline-block;
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.65;
  padding: 2px 10px;
  background: #0E1C4E;
  color: #ffffff;
  box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.45);
}

.hl-contact span {
  color: var(--vert-sineo);
}

.center {
  text-align: center;
}

form {
  background: #fff;
  width: 100%;
  max-width: 750px; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3); 
  padding: 3rem 2.5rem;
}

/* ─── Champs d'informations (Grille Nom/Prénom...) ──────── */
.info {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.info input {
  display: block;
  width: 100%;
  height: 52px;
  outline: none;
  border: 1px solid rgba(16, 49, 101, 0.15);
  padding: 0 1.25rem;
  background: #fafafa;
  border-radius: 6px;
  font-size: 1rem;
  color: var(--bleu-sineo);
  transition: all 0.2s ease;
}

.info input:focus {
  background: #fff;
  border-color: var(--bleu-sineo);
  box-shadow: 0 0 0 3px rgba(23, 67, 140, 0.1);
}

/* ─── Zone Message ──────────────────────────────────────── */
.message-contact {
  width: 100%;
  margin-bottom: 1.5rem;
}

.message-contact textarea {
  width: 100%;
  padding: 1.25rem;
  border: 1px solid rgba(16, 49, 101, 0.15);
  background: #fafafa;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--bleu-sineo);
  outline: none;
  resize: vertical;
  transition: all 0.2s ease;
}

.message-contact textarea:focus {
  background: #fff;
  border-color: var(--bleu-sineo);
  box-shadow: 0 0 0 3px rgba(23, 67, 140, 0.1);
}

/* ─── Zone Drag and Drop (Dépôt de document) ────────────── */
.btn-contact {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 14px;
  width: 100%;
  min-height: 140px;
  font-weight: 500;
  cursor: pointer;
  border: 2px dashed rgba(23, 67, 140, 0.4);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  background: rgba(23, 67, 140, 0.01);
  transition: all 0.25s ease-in-out;
}

.btn-contact label {
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.btn-contact:hover, .btn-contact.drag-over {
  background-color: rgba(195, 215, 20, 0.12);
  border-color: var(--bleu-sineo);
  color: var(--bleu-sineo);
}

#fileUpload {
  display: none;
}

.btn-contact.file-loaded {
  border-color: var(--vert-sineo); 
  background-color: rgba(231, 76, 60, 0.05);
}

.btn-contact.file-loaded:hover {
  background-color: rgba(231, 76, 60, 0.15);
  border-color: #c0392b;
}

.remove-alert {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: #e74c3c;
  font-weight: bold;
}

/* ─── Bouton Soumettre / Envoyer (Style SINEO) ──────────── */
.lien-index, form button.lien-index {
  display: block;
  width: 100%;
  height: 54px;
  text-align: center;
  text-decoration: none;
  background-color: var(--vert-sineo);
  border-radius: 3px;
  color: var(--bleu-sineo);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  position: relative;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
 
.lien-index::after, form button.lien-index::after {
  content: ' →';
  opacity: 0;
  transform: translateX(-6px);
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
 
.lien-index:hover, form button.lien-index:hover {
  background-color: var(--underline-intro);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
 
.lien-index:hover::after, form button.lien-index:hover::after {
  opacity: 1;
  transform: translateX(4px);
}
 
.lien-index:active, form button.lien-index:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* ─── Footer ────────────────────────────────────────────── */
footer {
  color: rgba(255, 255, 255, 0.5);
  padding: 3.75rem 0;
  text-align: center;
  background-color: rgb(23, 67, 140);
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

footer a:hover {
  color: var(--vert-sineo);
}

/* ─── Responsivité (Mobile & Tablettes) ──────────────────── */
@media (max-width: 768px) {
  /* Header responsive */
  header {
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 0.25rem;
  }

  header img {
    margin: 0.5rem auto;
    width: clamp(100px, 40vw, 180px);
  }

  .underline-nav {
    justify-content: center;
    gap: 0.6rem;
    padding-bottom: 0.5rem;
  }

  .underline-nav a {
    font-size: 0.8rem;
    padding: 0.4rem 0;
  }

  /* Formulaire responsive */
  form {
    padding: 2rem 1.5rem;
  }

  .info {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .lien-index, form button.lien-index {
    padding: 0.65rem 1.1rem;
    font-size: 0.8rem;
  }
  
  .hl-contact {
    font-size: clamp(18px, 5vw, 24px);
  }
}