/*
Theme Name: Chirurgie Assistance Custom
Theme URI: https://chirurgiassistance.eu
Description: Custom theme for Chirurgie Assistance
Version: 1.0
Author: Chirurgie Assistance
Text Domain: chirurgie-custom
*/

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  background: #f8fcfb;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  background: white;
  padding: 3px 0;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 50;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  flex-wrap: wrap;
  padding: 3px 10px;
}

header > .container > a {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: bold;
  color: #0f766e;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 5px;
  justify-content: center;
  flex-wrap: wrap;
  flex: 1;
  min-width: 250px;
}

nav a {
  color: #0f766e;
  font-weight: bold;
  padding: 3px 6px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  min-height: auto;
}

nav a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  color: #0f766e;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin: 20px 0;
}

h2 {
  font-size: 1.8rem;
  margin: 30px 0 20px;
}

/* Buttons */
.btn {
  background: #0f766e;
  color: white;
  padding: 10px 24px;
  text-decoration: none;
  border-radius: 25px;
  display: inline-block;
  margin-top: 20px;
  font-weight: bold;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
}

header .btn {
  margin-top: 0;
  font-size: 0.75rem;
  padding: 5px 16px;
  border-radius: 20px;
  color: white !important;
}

.btn:hover {
  background: #0b5d57;
}

/* Forms */
.form-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 30px;
  max-width: 600px;
  margin: 30px auto;
}

form {
  display: grid;
  gap: 15px;
}

input, textarea, select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid #d6efe9;
  border-color: #0f766e;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

/* Success Card */
.success-card {
  background: white;
  border-radius: 12px;
  padding: 50px;
  text-align: center;
  max-width: 600px;
  margin: 50px auto;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.success-card h1 {
  color: #0f766e;
  margin-top: 0;
}

.message {
  background: #f0f8f7;
  border-left: 4px solid #0f766e;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: left;
}

.message p {
  margin: 8px 0;
}

/* Footer */
footer {
  background: #0e2d2b;
  color: white;
  padding: 30px;
  margin-top: 50px;
}

footer a {
  color: #d6ece8;
}

footer a:hover {
  text-decoration: underline;
}

/* Réseaux sociaux (icônes) */
.social-links {
  display: flex;
  gap: 44px;
  align-items: center;
  margin: 16px 0 8px;
}
.social-links a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.social-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}
.social-links svg {
  display: block;
  width: 28px;
  height: 28px;
}

/* Sections */
main {
  min-height: 60vh;
}

section {
  margin: 40px 0;
}

ul, li {
  margin: 10px 0;
}

/* Videos - Show preview image on all devices */
video {
  background-color: transparent;
  object-fit: cover;
  object-position: center;
}

/* Responsive */
@media (max-width: 768px) {
  header .container {
    gap: 8px;
    padding: 3px 10px;
  }

  nav {
    gap: 6px;
  }

  nav a {
    padding: 4px 7px;
    font-size: 0.8rem;
  }
}

@media (max-width: 640px) {
  header {
    padding: 2px 0;
  }

  header .container {
    gap: 3px;
    padding: 2px 8px;
  }

  header > .container > a {
    font-size: 0.75rem;
  }

  nav {
    gap: 3px;
    flex: 1;
    width: auto;
    flex-wrap: wrap;
  }

  nav a {
    padding: 2px 4px;
    font-size: 0.68rem;
    white-space: nowrap;
  }

  header .btn {
    padding: 3px 12px;
    font-size: 0.65rem;
  }

  .btn {
    padding: 8px 20px;
    font-size: 0.85rem;
    margin-top: 0;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .form-card {
    padding: 20px;
  }

  .success-card {
    padding: 30px;
  }
}
