@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap");

:root {
  --main-color: #fe5b3d;
  --second-color: #ffac38;
  --text-color: #444444;
  --color1: #044b7b;
  --color2: #f48e1b;
  --gradient: var(--color2);
  --color1-rgb: 4, 75, 123;
  --color2-rgb: 244, 142, 27;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
}

html::-webkit-scrollbar {
  width: 0.5rem;
}

html::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 5rem;
}

body {
  min-height: 130vh;
  overflow: hidden;
  position: relative;
  margin: 0;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
}

/* Navbar Center */
.navbar {
  display: flex;
  gap: 5px;
}

.navbar li a {
  font-size: 1rem;
  padding: 5px 15px;
  color: var(--color1);
  font-weight: 500;
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.navbar li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.navbar li a:hover::after {
  width: 100%;
}

.header-btn {
  display: flex;
  gap: 10px;
  position: absolute;
  right: 40px;
  top: 15px;
}

.header-btn a {
  padding: 10px 20px;
  font-weight: 500;
  color: var(--color1);
  cursor: pointer;
}

.header-btn .sign-in,
.header-btn .sign-up,
.header-btn .deconnexion {
  background: var(--color1);
  color: #ffffff;
  border-radius: 0.5rem;
  transition: background 0.3s ease;
  user-select: none;
}

.header-btn .sign-in:hover,
.header-btn .sign-up:hover,
.header-btn .deconnexion:hover {
  background: var(--color2);
}

#max {
  margin-top: 0;
}

#max > * {
  margin: 1.25rem 2.5rem;
  box-shadow: 0 0.5rem 0.75rem #0003;
}

.container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100vh;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.logo {
  width: 100vmin;
  max-width: 400px;
  height: auto;
}

.text {
  color: var(--color1);
  margin-top: 10px;
  font-size: 22px;
}

main {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  perspective: 80vmin;
  z-index: -1;
  pointer-events: none;
}

section {
  width: 100vmin;
  aspect-ratio: 4 / 3;
  outline: 2px dashed red;
  transform-origin: 100% 50%;
  rotate: y 40deg;
  container-type: inline-size;
  mask: linear-gradient(
    90deg,
    #0000 0 40px,
    #fff 40px calc(100% - 40px),
    #0000 calc(100% - 40px) 100%
  );
}

@keyframes travel {
  0% {
    translate: 100cqi 0;
  }
  100% {
    translate: -50% 0;
  }
}

section div {
  width: 40px;
  aspect-ratio: 1;
  position: absolute;
  top: calc(var(--y) * 1%);
  background: hsl(var(--hue) 90% 60%);
  animation: travel calc(var(--a) * 1s) infinite;
  animation-delay: calc(var(--d) * -1s);
}

/* Footer */
.footer-copyright {
  position: fixed;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 6px;
  z-index: 1000;
  pointer-events: none;
}

/* ---------- Begin .rotating-border ---------- */
@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.rotating-border {
  --border-radius: 1rem;
  --border-size: 0.5rem;
  --border-bg: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
  --padding: 0rem;

  position: relative;
  overflow: hidden;
  font-size: 2rem;
  padding: calc(var(--padding) + var(--border-size));
  border-radius: var(--border-radius);
  display: inline-block;
  vertical-align: top;
  line-height: 0;
  margin-bottom: 0;
}

.rotating-border::before {
  content: "";
  display: block;
  background: var(--border-bg);
  width: calc(100% * 1.41421356237);
  padding-bottom: calc(100% * 1.41421356237);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 100%;
  z-index: -2;
  animation: spin 5s linear infinite;
}

.rotating-border--reverse::before {
  animation-direction: reverse;
}

.rotating-border::after {
  content: "";
  position: absolute;
  inset: var(--border-size);
  background: white;
  z-index: -1;
  border-radius: calc(var(--border-radius) - var(--border-size));
}

/* Ensure images inside do not add space */
.rotating-border img {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}

/* ---------- Customizing .rotating-border ---------- */
.rotating-border--google {
  --border-radius: 0.5rem;
  --border-size: 0.25rem;
  --border-bg: conic-gradient(
    #ea4335 0turn 0.125turn,
    #4285f4 0.125turn 0.25turn,
    #fbbc05 0.25turn 0.375turn,
    #34a853 0.375turn 0.5turn,
    #ea4335 0.5turn 0.625turn,
    #4285f4 0.625turn 0.75turn,
    #fbbc05 0.75turn 0.875turn,
    #34a853 0.875turn 1turn
  );

  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 2;
}

.rotating-border--rainbow {
  --border-radius: 1.5rem;
  --border-size: 0.5rem;
  --border-bg: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
}

.rotating-border--black-white {
  --border-radius: 100%;
  --border-size: 0.6rem;
  --border-bg: conic-gradient(
    #fff 0turn 0.05turn,
    #333 0.05turn 0.1turn,
    #fff 0.1turn 0.15turn,
    #333 0.15turn 0.2turn,
    #fff 0.2turn 0.25turn,
    #333 0.25turn 0.3turn,
    #fff 0.3turn 0.35turn,
    #333 0.35turn 0.4turn,
    #fff 0.4turn 0.45turn,
    #333 0.45turn 0.5turn,
    #fff 0.5turn 0.55turn,
    #333 0.55turn 0.6turn,
    #fff 0.6turn 0.65turn,
    #333 0.65turn 0.7turn,
    #fff 0.7turn 0.75turn,
    #333 0.75turn 0.8turn,
    #fff 0.8turn 0.85turn,
    #333 0.85turn 0.9turn,
    #fff 0.9turn 0.95turn,
    #333 0.95turn 1turn
  );
}

/* ---------- Modals ---------- */
.modal,
.modal2,
.modal3,
.modal5,
.modal8 {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  width: 56%;
  max-width: 800px;
  min-width: 600px;
}

.modal4,
.modal6 {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  width: 1024px;
  height: 768px;
}

.modal7 {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  width: 56%;
  max-width: 800px;
  min-width: 600px;
} 

.modal-content {
  background: #fff;
  border: 3px solid var(--color2);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(var(--color1-rgb), 0.4);
  padding: 1rem;
  max-height: 100%;
  overflow-y: auto;
}

.close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 28px;
  font-weight: bold;
  color: #044b7b;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.close:hover {
  color: #f48e1b;
}

.form-group {
  margin: 18px 0;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1.5px solid #044b7b;
  border-radius: 7px;
  font-size: 1.08em;
  background: #f7fafc;
  transition: border 0.2s;
  resize: none;
}

input:focus,
textarea:focus {
  border: 1.5px solid #f48e1b;
  outline: none;
}

.form-submit {
  text-align: right;
}

button[type="submit"] {
  background: #044b7b;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 12px 38px;
  font-size: 1.16em;
  font-weight: bold;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(244, 142, 27, 0.12);
  letter-spacing: 1px;
}

button[type="submit"]:hover {
  background: #f48e1b;
  color: #fff;
  box-shadow: 0 4px 16px rgba(4, 75, 123, 0.16);
}

#messageStatus {
  margin-top: 14px;
  font-weight: bold;
  min-height: 20px;
}

#messageStatus {
  text-align: center;
}

.modal-content h2 {
  color: #044b7b;
  margin-bottom: 14px;
  text-align: center;
}

.modal-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-content li {
  margin: 8px 0;
  font-size: 1.08em;
}

.modal-content strong {
  color: #f48e1b;
}

#autoentrepreneur {
  font-size: 0.85em;
  font-style: italic;
  user-select: none; /* Empêche la sélection */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none; /* Empêche la copie via clic droit */
}

label, .label {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.form-group2-wrap {
  margin: 10px 0;
}

.form-group2 {
  display: flex;
  align-items: center;
}

/* Spécifique pour le checkbox dans .form-group2 */
.form-group2 input[type="checkbox"] {
  width: auto; /* annule le width: 100% hérité */
  margin-right: 8px;
  padding: 0; /* évite les décalages visuels */
  vertical-align: middle;
  margin-top: 0; /* utile sur certains navigateurs */
}

.form-group2 label {
  vertical-align: middle;
}

.form-group3 {
  display: none;
}

#cguLink {
  display: inline;
}

