/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global */
body {
    font-family: Arial, sans-serif;
    background-image: linear-gradient(rgba(12, 24, 71, 0.7),rgba(12, 24, 71, 0.7)),url(images/RennNDSM74.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #333;
}

/* Header */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 70px;
  background-color: #e1e7f2;
  color: rgb(255, 255, 255);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  z-index: 1000;
  overflow: visible;
}

nav {
  display: flex;
  align-items: center;
  width: 100%;
  padding-right: 2.5rem; /* pour deplacer legerment à droite les links */
}

.logo {
  height: 60px;
  display: flex;
  align-items: flex-start;
}

.logo img {
  height: 160px;
  position: relative;
  top: -50px;
  image-rendering: auto;
}

/* pousse les liens complètement à droite */
.nav-links {
  margin-left: auto;
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  color: rgb(58, 58, 58);
  text-decoration: none;
}

.nav-links li::after {
  content: '';
  width: 0%;
  height: 2px;
  background: #FFA500;
  display: block;
  margin: auto;
  transition: 0.5s;
}

.nav-links li:hover::after {
  width: 100%;
}


/* Contact section */
.contact-us {
    width: 100%;
    padding: 120px 40px 60px;
    position: relative;
}

.contact-us .title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
}

.contact-us .title h2 {
    color: #ffffff;
}

/* Grid structure */
.box {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "form info"
        "form map";
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.contact.form {
    grid-area: form;
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(30px);}
    to {opacity: 1; transform: translateY(0);}
}

.contact h3 {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 25px;
    text-align: center;
}

.formBox {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.row50 {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.inputBox {
    position: relative;
    flex: 1;
}

.inputBox input,
.inputBox textarea {
    width: 100%;
    padding: 16px 20px;
    border-radius: 10px;
    border: 2px solid #ccc;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.inputBox textarea {
    resize: vertical;
    min-height: 120px;
}

.inputBox input:focus,
.inputBox textarea:focus {
    border-color: #FFA500;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(255, 165, 0, 0.5);
}

.inputBox span {
    position: absolute;
    left: 20px;
    top: 16px;
    color: #888;
    font-size: 14px;
    pointer-events: none;
    transition: 0.3s ease;
    background: white;
    padding: 0 6px;
}

.inputBox input:focus + span,
.inputBox input:not(:placeholder-shown) + span,
.inputBox textarea:focus + span,
.inputBox textarea:not(:placeholder-shown) + span {
    top: -10px;
    left: 14px;
    font-size: 13px;
    color: #FFA500;
}

.inputBox input[type="submit"] {
    background-color: #FFA500;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease;
}

.inputBox input[type="submit"]:hover {
    background-color: #e68a00;
    transform: scale(1.02);
}

/* Informations de contact améliorées */
.contact-info {
    grid-area: info;
    background-color: #222;
    color: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info .info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.contact-info i {
    font-size: 22px;
    color: #FFA500;
    margin-top: 2px;
}

.contact-info a {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
}



/* Responsive */
@media (max-width: 768px) {
    .row50 {
        flex-direction: column;
    }

    .box {
        grid-template-columns: 1fr;
        grid-template-areas:
            "form"
            "info"
            "map";
    }
}

  footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 1.875rem;
  }