.cookie-banner {
  max-width: 100vw;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f2f2f2;
  color: var(--color-blanc);
  padding: 1.5rem;
  z-index: 9999;
  font-family: var(--font-paragraphes);
  font-size: 0.9rem;
  line-height: 1.5;
  transform: translateY(100%);
  animation: slideUp 0.5s ease-out forwards;
}
.cookie-content,
.cookie-customize {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.cookie-text {
  flex: 1;
}
body.eooa .cookie-text p {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
body.eooa .cookie-customize h4,
body.eooa .cookie-text h3#cookie-banner-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-rouge-fonce);
  margin-bottom: 0.5rem;
}
.cookie-text p {
  margin: 0 0 8px 0;
  opacity: 0.9;
}
.cookie-text p.cookie-links {
  margin-bottom: 0;
}
body.eooa .cookie-links a {
  color: var(--color-rouge-fonce);
  text-decoration: underline;
  font-size: 0.8rem;
}
.cookie-actions {
  display: flex;
  width: 250px;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.cookie-btn {
  padding: 12px 20px;
  border: none;
  border-radius: var(--br-s);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.cookie-actions button.cookie-btn {
  font-family: var(--font-paragraphes);
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
}
.cookie-btn-accept {
  background: #27ae60;
  color: var(--color-blanc);
}
.cookie-btn-accept:hover {
  background: #2ecc71;
}
.cookie-btn-essential {
  background: #95a5a6;
  color: #fff;
}
.cookie-btn-essential:hover {
  background: #7f8c8d;
}
.cookie-btn-customize {
  background: 0 0;
  color: var(--color-rouge-fonce);
  border: 2px solid var(--color-rouge-fonce);
}
.cookie-btn-customize:hover {
  background: var(--color-rouge-fonce);
  color: #fff;
}
.cookie-btn-save {
  background: #27ae60;
  color: #fff;
}
.cookie-btn-back {
  background: #95a5a6;
  color: #fff;
}
.cookie-customize {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #34495e;
}
.cookie-customize h4 {
  margin: 0 0 15px 0;
  color: var(--color-rouge-fonce);
}
.cookie-categories {
  margin-bottom: 20px;
}
.cookie-category {
  margin-bottom: 0.75rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--br-s);
}
.cookie-switch {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  margin-bottom: 8px;
  color: var(--color-rouge-fonce);
  font-family: var(--font-paragraphes);
  font-size: 1rem;
}
.cookie-switch input {
  position: relative;
  width: 50px;
  height: 25px;
  appearance: none;
  background: #95a5a6;
  border-radius: var(--br-m);
  transition: all 0.3s ease;
}
.cookie-switch input:checked {
  background: var(--color-rouge-clair);
}
.cookie-switch input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.cookie-switch input::before {
  content: "x";
  position: absolute;
  top: 0;
  left: 0;
  width: 21px;
  height: 21px;
  color: var(--color-blanc);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  line-height: 21px;
  background: var(--color-marron-clair);
  border-radius: 50%;
  transition: all 0.3s ease;
  opacity: 0.6;
}
.cookie-switch input:hover::before {
  cursor: pointer;
  opacity: 1;
  left: 2;
}
.cookie-switch input:checked::before {
  transform: translateX(25px);
}
body.eooa .cookie-desc {
  margin: 0;
  font-size: 0.75rem;
}
.cookie-custom-actions {
  display: flex;
  gap: 10px;
}
body.eooa
  .cookie-custom-actions
  button:not(:hover):not(:active):not(.has-text-color) {
  color: var(--color-gris);
}
body.eooa .cookie-custom-actions button:hover {
  color: var(--color-rouge-fonce);
}
body.eooa input[type="checkbox"],
body.eooa input[type="radio"] {
  border-color: var(--color-gris);
  border-width: 2px;
}
body.eooa .cookie-switch input[type="checkbox"]::after {
  border-color: var(--color-rouge-vif);
}
body.eooa input[type="checkbox"]:after {
  left: 6px;
  top: 3px;
}
body:not(.page-template-template-formulaires) .grecaptcha-badge {
  display: none;
}
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .cookie-actions {
    justify-content: center;
    width: 100%;
  }
  .cookie-btn {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    padding: 10px 15px;
  }
}
@media (max-width: 480px) {
  .cookie-banner {
    padding: 15px;
  }
  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }
  .cookie-btn {
    width: 100%;
  }
}
@keyframes slideUp {
  to {
    transform: translateY(0);
  }
}
.cookie-banner.closing {
  animation: slideDown 0.3s ease-in forwards;
}
@keyframes slideDown {
  to {
    transform: translateY(100%);
  }
}
.cookie-policy-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}
.cookie-policy-content h2 {
  color: #2c3e50;
  border-bottom: 3px solid var(--color-rouge-fonce);
  padding-bottom: 10px;
}
.cookie-policy-content h3 {
  color: #34495e;
  margin-top: 30px;
}
.cookie-policy-content h4 {
  color: #7f8c8d;
}
.cookie-manage-btn {
  background: var(--color-rouge-fonce);
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  margin: 20px 0;
}
.cookie-manage-btn:hover {
  background: var(--color-rouge-vif);
}
.cookie-actions button:not(:hover):not(:active):not(.has-background) {
  color: var(--color-gris);
}
