/* ===== RESET ET STYLES DE BASE ===== */

* {

  margin: 0;

  padding: 0;

  box-sizing: border-box;

}



:root {

  --primary-color: #004aad;

  --primary-light: #3a7bd5;

  --primary-dark: #002b6a;

  --secondary-color: #ff6b00;

  --secondary-light: #ff8533;

  --accent-color: #ffcc00;

  --light-color: #f8f9fa;

  --dark-color: #222;

  --text-color: #444;

  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

  --shadow-hover: 0 8px 24px rgba(0, 74, 173, 0.2);

  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

  --border-radius: 16px;

}



body {

  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 

               'Ubuntu', 'Cantarell', sans-serif;

  line-height: 1.6;

  color: var(--text-color);

  background-color: #f5f9ff;

  overflow-x: hidden;

  position: relative;

}



body::before {

  content: '';

  position: fixed;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  background: 

    radial-gradient(circle at 20% 30%, rgba(0, 74, 173, 0.05) 0%, transparent 50%),

    radial-gradient(circle at 80% 70%, rgba(255, 107, 0, 0.05) 0%, transparent 50%);

  pointer-events: none;

  z-index: -1;

}



a {

  text-decoration: none;

  color: inherit;

  transition: var(--transition);

}



.container {

  width: 90%;

  max-width: 1200px;

  margin: 0 auto;

  padding: 0 15px;

}



/* ===== HEADER ===== */

header {

  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));

  color: white;

  text-align: center;

  padding: 5rem 1rem;

  position: relative;

  overflow: hidden;

  margin-bottom: 2rem;

  box-shadow: 0 4px 20px rgba(0, 74, 173, 0.3);

}



header::before {

  content: "";

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  bottom: 0;

  background: 

    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,128L48,138.7C96,149,192,171,288,186.7C384,203,480,213,576,192C672,171,768,117,864,101.3C960,85,1056,107,1152,128C1248,149,1344,171,1392,181.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>'),

    linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);

  background-size: cover, 200% 200%;

  background-position: center, 0% 0%;

  animation: shimmer 3s ease-in-out infinite;

}



@keyframes shimmer {

  0% { background-position: center, -100% -100%; }

  100% { background-position: center, 100% 100%; }

}



.header-content {

  position: relative;

  z-index: 2;

  max-width: 800px;

  margin: 0 auto;

}



.header-content h1 {

  font-size: clamp(2.2rem, 5vw, 3rem);

  margin-bottom: 1.5rem;

  text-shadow: 0 2px 8px rgba(0,0,0,0.3);

  animation: fadeInDown 0.8s ease;

  font-weight: 700;

  letter-spacing: -0.5px;

}



.header-content p {

  font-size: clamp(1.1rem, 2.5vw, 1.4rem);

  margin-bottom: 2rem;

  opacity: 0;

  animation: fadeInUp 0.8s ease 0.3s forwards;

  font-weight: 300;

  text-shadow: 0 1px 3px rgba(0,0,0,0.2);

}



@keyframes fadeInDown {

  from {

    opacity: 0;

    transform: translateY(-30px);

  }

  to {

    opacity: 1;

    transform: translateY(0);

  }

}



@keyframes fadeInUp {

  from {

    opacity: 0;

    transform: translateY(30px);

  }

  to {

    opacity: 0.9;

    transform: translateY(0);

  }

}



/* ===== MAIN CONTENT - CARTES ===== */

main {

  padding: 2rem 0;

  position: relative;

}



.container {

  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));

  gap: 25px;

  margin-top: 2rem;

}



.card {

  background: white;

  border-radius: var(--border-radius);

  overflow: hidden;

  box-shadow: var(--shadow);

  transition: var(--transition);

  display: block;

  height: 100%;

  position: relative;

  transform: translateY(0);

  z-index: 1;

  border: 1px solid rgba(0, 0, 0, 0.05);

}



.card:hover {

  transform: translateY(-8px);

  box-shadow: var(--shadow-hover);

  z-index: 2;

}



.card::after {

  content: '';

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  bottom: 0;

  background: linear-gradient(135deg, 

    rgba(0, 74, 173, 0.05) 0%, 

    rgba(255, 107, 0, 0.05) 100%);

  opacity: 0;

  transition: var(--transition);

  z-index: -1;

}



.card:hover::after {

  opacity: 1;

}



.card-image {

  position: relative;

  height: 200px;

  overflow: hidden;

}



.card-image img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: var(--transition);

  filter: brightness(0.95);

}



.card:hover .card-image img {

  transform: scale(1.05);

  filter: brightness(1);

}



.card-overlay {

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  bottom: 0;

  background: linear-gradient(to bottom, 

    rgba(0,0,0,0.1) 0%, 

    rgba(0,0,0,0.6) 100%);

  opacity: 0.8;

  transition: var(--transition);

}



.card:hover .card-overlay {

  opacity: 0.7;

}



.card-content {

  padding: 20px;

  position: relative;

  background: white;

}



.card-content h3 {

  color: var(--primary-color);

  margin-bottom: 12px;

  font-size: 1.3rem;

  display: flex;

  align-items: center;

  gap: 10px;

  font-weight: 600;

}



.card-content h3 i {

  color: var(--secondary-color);

  font-size: 1.2rem;

}



.card-content p {

  color: var(--text-color);

  font-size: 0.95rem;

  line-height: 1.5;

  opacity: 0.9;

}



/* ===== SECTION CONTACT ===== */

.contact-section {

  background: linear-gradient(135deg, #f8f9fa, #e9f2ff);

  padding: 4rem 0;

  margin-top: 3rem;

  position: relative;

}



.contact-wrapper {

  background: white;

  border-radius: var(--border-radius);

  padding: 30px;

  box-shadow: var(--shadow);

  max-width: 800px;

  margin: 0 auto;

}



.contact-wrapper h2 {

  color: var(--primary-color);

  text-align: center;

  margin-bottom: 30px;

  font-size: 2rem;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 15px;

  font-weight: 600;

}



.contact-wrapper h2 i {

  color: var(--secondary-color);

}



.contact-form {

  display: grid;

  gap: 20px;

}



.form-group {

  display: flex;

  flex-direction: column;

}



.form-group label {

  margin-bottom: 8px;

  font-weight: 600;

  color: var(--dark-color);

  display: flex;

  align-items: center;

  gap: 8px;

  font-size: 1rem;

}



.form-group label i {

  color: var(--secondary-color);

  width: 20px;

}



.form-group input,

.form-group textarea {

  padding: 12px 15px;

  border: 1px solid #e0e0e0;

  border-radius: 8px;

  font-size: 1rem;

  transition: var(--transition);

  background: rgba(255, 255, 255, 0.9);

}



.form-group input:focus,

.form-group textarea:focus {

  border-color: var(--primary-color);

  outline: none;

  box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.1);

}



.form-group textarea {

  resize: vertical;

  min-height: 120px;

}



.submit-button {

  background: linear-gradient(to right, var(--secondary-color), var(--secondary-light));

  color: white;

  border: none;

  padding: 12px 25px;

  border-radius: 8px;

  cursor: pointer;

  font-size: 1rem;

  font-weight: 600;

  transition: var(--transition);

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  width: 100%;

  max-width: 200px;

  margin: 10px auto 0;

  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);

}



.submit-button:hover {

  transform: translateY(-3px);

  box-shadow: 0 6px 16px rgba(255, 107, 0, 0.3);

}



.submit-button:active {

  transform: translateY(0);

}



/* ===== FOOTER ===== */

footer {

  background: linear-gradient(135deg, var(--dark-color), #1a1a1a);

  color: white;

  padding: 2.5rem 0;

  margin-top: 3rem;

  position: relative;

}



.footer-content {

  text-align: center;

  padding: 0 20px;

  position: relative;

  z-index: 2;

}



.footer-content p {

  margin-bottom: 20px;

  opacity: 0.9;

  font-size: 1rem;

}



.social-links {

  display: flex;

  justify-content: center;

  gap: 20px;

  margin-top: 20px;

}



.social-links a {

  display: flex;

  align-items: center;

  justify-content: center;

  width: 45px;

  height: 45px;

  background: rgba(255, 255, 255, 0.1);

  border-radius: 50%;

  transition: var(--transition);

  font-size: 1.2rem;

  position: relative;

  overflow: hidden;

}



.social-links a::before {

  content: '';

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  bottom: 0;

  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));

  opacity: 0;

  transition: var(--transition);

  z-index: -1;

}



.social-links a:hover {

  transform: translateY(-5px);

  color: white;

}



.social-links a:hover::before {

  opacity: 1;

}



/* ===== CHATBOT ===== */

#openChatbot {

  position: relative;

}





@keyframes pulse {

  0% { transform: scale(1); }

  50% { transform: scale(1.05); }

  100% { transform: scale(1); }

}



.chatbox {

  position: fixed;

  bottom: 30px;

  right: 30px;

  width: 350px;

  height: 450px;

  background: white;

  border-radius: var(--border-radius);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);

  display: flex;

  flex-direction: column;

  z-index: 1000;

  overflow: hidden;

  transform: translateY(20px) scale(0.95);

  opacity: 0;

  transition: var(--transition);

}



.chatbox.active {

  transform: translateY(0) scale(1);

  opacity: 1;

}



.chatbox-header {

  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));

  color: white;

  padding: 15px 20px;

  font-weight: 600;

  font-size: 1.1rem;

  display: flex;

  align-items: center;

  justify-content: space-between;

}



.chatbox-messages {

  flex: 1;

  padding: 20px;

  overflow-y: auto;

  background: #f8faff;

  display: flex;

  flex-direction: column;

  gap: 12px;

}



.chatbox-messages div {

  max-width: 80%;

  padding: 10px 15px;

  border-radius: 18px;

  font-size: 0.95rem;

  line-height: 1.4;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);

}



.chatbox-messages div:nth-child(odd) {

  background: white;

  border: 1px solid #eee;

  align-self: flex-start;

  border-bottom-left-radius: 5px;

}



.chatbox-messages div:nth-child(even) {

  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));

  color: white;

  align-self: flex-end;

  border-bottom-right-radius: 5px;

}



.chatbox-input {

  padding: 12px 15px;

  border: none;

  border-top: 1px solid #eee;

  font-size: 1rem;

  background: white;

}



.chatbox-input:focus {

  outline: none;

}



#sendButton {

  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));

  color: white;

  border: none;

  cursor: pointer;

  font-weight: 600;

  transition: var(--transition);

  padding: 12px 20px;

}



#sendButton:hover {

  filter: brightness(1.1);

}



#closeChatbot {

  font-size: 1.5rem;

  transition: var(--transition);

  cursor: pointer;

}



#closeChatbot:hover {

  color: var(--accent-color);

  transform: rotate(90deg);

}



/* ===== ANIMATIONS ET EFFETS ===== */

.card {

  animation: fadeInUp 0.6s ease forwards;

  opacity: 0;

  transform: translateY(20px);

}



@keyframes fadeInUp {

  to {

    opacity: 1;

    transform: translateY(0);

  }

}



/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 992px) {

  .container {

    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));

    gap: 20px;

  }

  

  .header-content h1 {

    font-size: 2.2rem;

  }

  

  .header-content p {

    font-size: 1.2rem;

  }

}



@media (max-width: 768px) {

  header {

    padding: 4rem 1rem;

  }

  

  .header-content h1 {

    font-size: 2rem;

  }

  

  .header-content p {

    font-size: 1.1rem;

  }

  

  .contact-wrapper {

    padding: 25px;

  }

  

  .chatbox {

    width: 320px;

    right: 20px;

    bottom: 20px;

  }

}



@media (max-width: 576px) {

  header {

    padding: 3.5rem 1rem;

  }

  

  .header-content h1 {

    font-size: 1.8rem;

  }

  

  .header-content p {

    font-size: 1rem;

  }

  

  .container {

    grid-template-columns: 1fr;

    gap: 20px;

  }

  

  .card-image {

    height: 180px;

  }

  

  .chatbox {

    width: calc(100% - 40px);

    right: 20px;

    bottom: 20px;

    height: 70vh;

  }

  

  .contact-section {

    padding: 3rem 0;

  }

  

  .submit-button {

    max-width: none;

  }

}



/* ===== ACCESSIBILITÉ ===== */

@media (prefers-reduced-motion: reduce) {

  * {

    animation: none !important;

    transition: none !important;

  }

  

  .card {

    opacity: 1;

    transform: none;

  }

}
