/*
 * Calendrier de l’Avent OMNES 2026 — styles.
 * Les blocs sont appliqués dans l’ordre : chaque bloc surcharge le précédent.
 *   1. Base d’origine (thème violet)
 *   2. Thème Noël 2026 (rouge rubis, vert sapin, or)
 *   3. En-tête compact et emblème commun derrière les illustrations
 */

:root {
  --purple: #35134e;
  --ink: #321847;
  --gold: #e8bd72;
  --cream: #faf7f1;
  --muted: #82788b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font:
    15px Arial,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #ba74ce;
  outline-offset: 4px;
}
header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: auto;
  padding: 0 48px;
}
.brand {
  font-size: 29px;
  letter-spacing: 3px;
  font-weight: 900;
  line-height: 0.85;
}
.brand small {
  font-size: 10px;
  letter-spacing: 5px;
  display: block;
  margin-top: 9px;
}
nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
}
button.outline {
  background: none;
  border: 1px solid #d1c6d5;
  border-radius: 30px;
  padding: 12px 20px;
  color: var(--ink);
}
.hero {
  position: relative;
  overflow: hidden;
  background: var(--purple);
  color: white;
  text-align: center;
  padding: 63px 20px 72px;
}
.hero:before,
.hero:after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border: 1px solid #ffffff13;
  border-radius: 50%;
  top: -180px;
  left: -160px;
}
.hero:after {
  left: auto;
  right: -180px;
  top: 160px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
}
h1 {
  font-family: Georgia, serif;
  font-size: clamp(44px, 5.2vw, 72px);
  font-weight: 400;
  line-height: 1.07;
  margin: 24px 0 20px;
}
h1 em {
  font-weight: 400;
  color: #edc991;
}
.hero p {
  font-size: 15px;
  line-height: 1.8;
  color: #ded2e6;
  margin: 0;
}
.hero .date {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid #ffffff27;
  border-radius: 30px;
  font-size: 11px;
  letter-spacing: 1px;
}
.star {
  position: absolute;
  color: var(--gold);
  font-family: Georgia;
  font-size: 40px;
}
.s1 {
  left: 13%;
  top: 70px;
}
.s2 {
  right: 16%;
  top: 235px;
  font-size: 56px;
}
.s3 {
  right: 29%;
  top: 40px;
  font-size: 20px;
}
.bauble {
  position: absolute;
  top: 0;
  width: 120px;
  height: 210px;
  border-bottom: 0;
  left: 4%;
}
.bauble:before {
  content: "";
  width: 1px;
  height: 118px;
  background: #d4a865;
  position: absolute;
  left: 60px;
}
.bauble:after {
  content: "";
  position: absolute;
  top: 118px;
  left: 20px;
  width: 80px;
  height: 90px;
  border-radius: 50%;
  background:
    repeating-linear-gradient(90deg, transparent 0 12px, #dfbe782b 12px 13px),
    linear-gradient(110deg, #efcf92, #a57339);
  box-shadow: inset -14px -8px 18px #5431234a;
}
.bauble.right {
  left: auto;
  right: 4%;
  transform: scale(0.7);
  transform-origin: top;
}
.ribbon {
  position: absolute;
  left: 18%;
  bottom: 30px;
  width: 65px;
  height: 65px;
  border: 1px solid #b28b5855;
  transform: rotate(25deg);
}
main {
  max-width: 1224px;
  margin: 0 auto;
  padding: 35px 40px 60px;
}
.calendar-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 36px 0 24px;
}
.calendar-heading h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 32px;
  margin: 0 0 8px;
}
.calendar-heading p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.status {
  font-size: 12px;
  background: white;
  padding: 11px 15px;
  border-radius: 30px;
  border: 1px solid #e9e2eb;
}
.dot {
  display: inline-block;
  background: #5c9172;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.door {
  height: 166px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #dfd6e4;
  border-radius: 8px;
  background: #fffdf9;
  color: var(--ink);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.door:before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid #e8e0e9;
  border-radius: 4px;
  pointer-events: none;
}
.door .weekday {
  position: absolute;
  top: 20px;
  font-size: 9px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.door .num {
  font-family: Georgia, serif;
  font-size: 50px;
  line-height: 1;
  margin-top: 14px;
}
.door .label {
  font-size: 9px;
  letter-spacing: 1px;
  margin-top: 9px;
}
.door.pattern {
  background-color: #ede5f0;
  background-image: radial-gradient(#b5a1be44 0.8px, transparent 0.8px);
  background-size: 12px 12px;
}
.door.dark {
  background: #573466;
  color: #f4e9fa;
  border-color: #573466;
}
.door.dark:before {
  border-color: #ffffff22;
}
.door.today {
  background: var(--purple);
  color: #f3d49e;
  border: 1px solid #cfac75;
  box-shadow: 0 7px 15px #35134e20;
}
.door.today:before {
  border-color: #d9b67b88;
}
.door.today:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 23px #35134e30;
}
.door.today .label {
  background: #edcc90;
  color: #35134e;
  border-radius: 20px;
  padding: 6px 11px;
}
.door:disabled {
  cursor: default;
}
.door.weekend {
  background: #eeeae7;
  border: 1px dashed #d9d2d0;
  color: #a9a2a4;
}
.door.weekend:before {
  border: none;
}
.door.weekend .num {
  font-size: 39px;
}
.door.past {
  opacity: 0.65;
}
.legend {
  display: flex;
  justify-content: center;
  gap: 25px;
  font-size: 11px;
  color: #8c808f;
  margin: 22px 0 40px;
}
.legend span:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  background: #d9ccdf;
  border-radius: 2px;
}
.legend span:first-child:before {
  background: #35134e;
}
.legend span:last-child:before {
  background: #d9d2ce;
}
.how {
  border-top: 1px solid #e3dae4;
  padding-top: 35px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}
.step {
  display: flex;
  gap: 15px;
}
.step b {
  font: italic 26px Georgia;
  color: #b39467;
}
.step h3 {
  font-size: 13px;
  margin: 2px 0 8px;
}
.step p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
footer {
  max-width: 1144px;
  border-top: 1px solid #e3dae4;
  margin: auto;
  padding: 25px 0 35px;
  display: flex;
  justify-content: space-between;
  color: #96889c;
  font-size: 10px;
}
footer button {
  border: 0;
  background: none;
  color: inherit;
  font-size: 10px;
}
dialog {
  border: 0;
  border-radius: 18px;
  padding: 40px;
  max-width: 450px;
  width: calc(100% - 32px);
  color: var(--ink);
  box-shadow: 0 20px 90px #210b4944;
}
dialog::backdrop {
  background: #21102d99;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font: 32px Georgia;
  margin: 20px 0 14px;
}
dialog p {
  color: #82718c;
  font-size: 14px;
  line-height: 1.7;
}
.close {
  position: absolute;
  right: 15px;
  top: 12px;
  border: 0;
  background: none;
  font-size: 25px;
  color: #88738e;
}
.primary {
  border: 0;
  border-radius: 6px;
  background: var(--purple);
  color: white;
  padding: 15px 20px;
  width: 100%;
  margin-top: 16px;
}
input[type="email"] {
  width: 100%;
  padding: 14px;
  border: 1px solid #d9cddd;
  border-radius: 6px;
  margin: 9px 0 3px;
}
label {
  font-size: 12px;
}
.badge {
  color: #9a7234;
  font-size: 11px;
  letter-spacing: 1.5px;
}
.result-icon {
  font-size: 46px;
  color: #b88e46;
}
.fine {
  font-size: 10px !important;
  color: #9c8ca5 !important;
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #35134e;
  color: white;
  border-radius: 8px;
  padding: 15px;
  z-index: 5;
  display: none;
  width: max-content;
  max-width: 90vw;
  font-size: 13px;
}
@media (max-width: 800px) {
  header {
    padding: 0 22px;
    height: 80px;
  }
  nav a {
    display: none;
  }
  .hero {
    padding: 48px 20px 55px;
  }
  .bauble,
  .s1,
  .s2 {
    opacity: 0.3;
  }
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
  main {
    padding: 25px 20px;
  }
  .door {
    height: 145px;
  }
  .calendar-heading {
    align-items: start;
    gap: 15px;
  }
  .status {
    max-width: 150px;
    line-height: 1.5;
  }
  .how {
    gap: 20px;
  }
  footer {
    margin: 0 20px;
  }
}
@media (max-width: 520px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
  }
  .door {
    height: 132px;
  }
  .door .num {
    font-size: 39px;
  }
  .door .weekday {
    font-size: 8px;
  }
  .calendar-heading h2 {
    font-size: 27px;
  }
  .how {
    grid-template-columns: 1fr;
  }
  .brand {
    font-size: 24px;
  }
  nav button {
    font-size: 11px !important;
  }
  .hero p {
    font-size: 13px;
  }
  .status {
    font-size: 10px;
  }
  .legend {
    gap: 14px;
    font-size: 10px;
  }
  footer {
    gap: 20px;
    line-height: 1.6;
  }
}
/* Noël 2026 — rouge rubis, vert sapin et or */
:root {
  --purple: #a31c2d;
  --ink: #173c30;
  --gold: #f1ce89;
  --cream: #fbf7ed;
  --muted: #778176;
}
body {
  background: var(--cream);
}
header {
  max-width: none;
  background: #9d1728;
  color: #fff;
  padding-left: max(35px, calc((100vw - 1144px) / 2));
  padding-right: max(35px, calc((100vw - 1144px) / 2));
  height: 86px;
}
.brand-logo {
  width: 206px;
  height: auto;
}
nav a {
  color: #fff5df;
}
button.outline {
  border-color: #ffffff55;
  color: #fff7e9;
}
.hero {
  background: radial-gradient(
    ellipse at 50% 10%,
    #0b6545 0,
    #034733 65%,
    #033b2c 100%
  );
  padding-top: 55px;
  padding-bottom: 58px;
  border-bottom: 4px solid #d4ab5e;
}
.hero p {
  color: #d6e8da;
}
.hero h1 em {
  color: #f5d18b;
}
.hero .date {
  border-color: #e3c78d55;
  background: #002d2322;
}
.hero:before,
.hero:after {
  border-color: #d3ac612b;
}
.bauble:after {
  background:
    repeating-linear-gradient(90deg, transparent 0 12px, #f1ce8955 12px 13px),
    radial-gradient(circle at 25% 20%, #ff8f8f, #c32339 35%, #710e20 80%);
  box-shadow: inset -14px -8px 18px #36061466;
}
.calendar-heading h2 {
  font-size: 32px;
}
.status {
  border-color: #dedfcd;
}
.grid {
  gap: 16px;
}
.door,
.door.pattern,
.door.dark,
.door.today {
  height: 224px;
  background: #034333;
  color: #fff3d9;
  border-color: #b9965555;
  box-shadow: 0 3px 9px #14352514;
  isolation: isolate;
  justify-content: flex-start;
  gap: 0;
}
.door:before,
.door.dark:before {
  inset: 7px;
  border-color: #e8c5764d;
  z-index: 2;
}
.door .weekday {
  top: 17px;
  right: 17px;
  font-size: 8px;
  z-index: 3;
  color: #ecd8ac;
}
.door .num {
  position: absolute;
  left: 17px;
  top: 14px;
  margin: 0;
  font-size: 31px;
  z-index: 3;
  color: #f4d899;
}
.ornament {
  position: absolute;
  width: 164px;
  height: 164px;
  left: 50%;
  top: 32px;
  transform: translateX(-50%);
  background-image: url("assets/christmas-atlas.png");
  background-size: 600% 400%;
  z-index: 0;
  border-radius: 7px;
}
.door .label {
  position: absolute;
  bottom: 15px;
  z-index: 3;
  color: #eadbb8;
  letter-spacing: 1.4px;
  font-size: 8px;
}
.door.today {
  outline: 2px solid #d3ac61;
  outline-offset: 3px;
}
.door.today .label {
  background: #ac1e32;
  color: #fff6dc;
  padding: 8px 14px;
  bottom: 12px;
}
.door.today:hover {
  box-shadow: 0 10px 24px #004b3433;
}
.door.weekend {
  background: #e8e8df;
  border: 1px dashed #aebbad;
  color: #6c7b6d;
}
.door.weekend .ornament {
  filter: saturate(0.3);
  opacity: 0.55;
}
.door.weekend .weekday,
.door.weekend .num,
.door.weekend .label {
  color: #3a5e4b;
}
.door.weekend .num {
  font-size: 31px;
}
.door.weekend .label {
  background: #e8e8dfdf;
  padding: 4px 8px;
  border-radius: 8px;
}
.door.weekend:before {
  border: 1px solid #b9c3b299;
}
.door.past {
  opacity: 0.8;
}
.legend span:first-child:before {
  background: #a31c2d;
}
.legend span:before {
  background: #0b6244;
}
.legend span:last-child:before {
  background: #b6bfb3;
}
.step b {
  color: #b38e46;
}
.how,
footer {
  border-color: #dfdecb;
}
.badge,
.result-icon {
  color: #b18435;
}
.primary {
  background: #a51c2e;
}
dialog {
  color: #173c30;
}
dialog p {
  color: #64746a;
}
input[type="email"] {
  border-color: #ced8cb;
}
#toast {
  background: #034733;
}
dialog::backdrop {
  background: #002a21aa;
}
.close {
  color: #557363;
}
.fine {
  color: #788276 !important;
}
@media (min-width: 1100px) {
  .hero:before {
    width: 680px;
    height: 680px;
    left: -300px;
    top: -300px;
  }
  .hero:after {
    width: 680px;
    height: 680px;
    right: -300px;
    top: 90px;
  }
}
@media (max-width: 800px) {
  header {
    padding: 0 22px;
  }
  .brand-logo {
    width: 178px;
  }
  .door,
  .door.pattern,
  .door.dark,
  .door.today {
    height: 210px;
  }
  .ornament {
    width: 150px;
    height: 150px;
    top: 33px;
  }
  .calendar-heading h2 {
    font-size: 29px;
  }
}
@media (max-width: 520px) {
  .grid {
    gap: 11px;
  }
  .door,
  .door.pattern,
  .door.dark,
  .door.today {
    height: 165px;
  }
  .door .num,
  .door.weekend .num {
    font-size: 24px;
    left: 13px;
    top: 12px;
  }
  .door .weekday {
    font-size: 6px;
    right: 12px;
    top: 18px;
    letter-spacing: 0.5px;
  }
  .ornament {
    width: 106px;
    height: 106px;
    top: 32px;
  }
  .door .label {
    font-size: 6px;
    letter-spacing: 0.5px;
    bottom: 13px;
  }
  .door.today .label {
    padding: 6px 7px;
    bottom: 12px;
  }
  .brand-logo {
    width: 150px;
  }
  .hero {
    padding-top: 42px;
    padding-bottom: 42px;
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 2px;
  }
  .calendar-heading h2 {
    font-size: 25px;
  }
  .calendar-heading p {
    font-size: 11px;
  }
  .calendar-heading .status {
    max-width: 115px;
  }
  .door:before {
    inset: 5px;
  }
}
/* En-tête compact et emblème commun derrière les illustrations. */
header {
  height: 60px;
}
.brand-logo {
  width: 170px;
}
nav button.outline {
  padding: 9px 17px;
}
.hero {
  padding: 23px 20px 24px;
}
.hero h1 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.06;
  margin: 13px 0 11px;
}
.hero h1 br {
  display: none;
}
.hero h1 em {
  margin-left: 8px;
}
.hero p {
  font-size: 13px;
  line-height: 1.5;
}
.hero p br {
  display: none;
}
.hero .date {
  margin-top: 15px;
  padding: 7px 14px;
  font-size: 10px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
}
.bauble {
  transform: scale(0.65);
  transform-origin: top;
}
.bauble.right {
  transform: scale(0.5);
}
.s1 {
  top: 70px;
  left: 17%;
  font-size: 24px;
}
.s2 {
  top: 100px;
  right: 15%;
  font-size: 30px;
}
.s3 {
  top: 16px;
}
.ribbon {
  display: none;
}
main {
  padding-top: 18px;
}
.calendar-heading {
  margin: 22px 0 20px;
}
.calendar-heading h2 {
  font-size: 28px;
}
.card-emblem {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 148px;
  height: 160px;
  background: url("assets/omnes-white.png") left center / auto 100% no-repeat;
  opacity: 0.9;
  pointer-events: none;
}
.ornament {
  z-index: 1;
  background-image: url("assets/christmas-transparent.png");
  border-radius: 0;
}
.door.weekend .card-emblem {
  opacity: 0.65;
}
.door.weekend .ornament {
  opacity: 0.85;
}
.door .num,
.door .weekday,
.door .label {
  z-index: 3;
}
@media (max-width: 800px) {
  .hero h1 {
    max-width: 550px;
    margin: 12px auto;
  }
  .card-emblem {
    width: 135px;
    height: 146px;
  }
  .calendar-heading h2 {
    font-size: 26px;
  }
}
@media (max-width: 520px) {
  header {
    height: 54px;
  }
  .brand-logo {
    width: 137px;
  }
  .hero {
    padding: 17px 17px 18px;
  }
  .hero h1 {
    font-size: 32px;
    max-width: 330px;
    margin: 10px auto;
  }
  .hero h1 em {
    margin-left: 0;
    display: block;
  }
  .hero p {
    font-size: 11px;
    max-width: 290px;
    margin: auto;
  }
  .hero .date {
    font-size: 8px;
    letter-spacing: 0.4px;
    margin-top: 10px;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .calendar-heading {
    margin: 17px 0;
  }
  .calendar-heading h2 {
    font-size: 23px;
  }
  .card-emblem {
    width: 90px;
    height: 97px;
  }
  .bauble,
  .star {
    opacity: 0.25;
  }
}
/* Page administrateur */
a.primary {
  display: block;
  text-align: center;
  text-decoration: none;
}
.admin-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 16px 48px;
}
.admin-main h1 {
  font-size: 28px;
  margin: 0 0 18px;
}
.admin-block {
  background: white;
  border: 1px solid #e3dccf;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 22px;
}
.admin-block h2 {
  margin: 0 0 12px;
  font-size: 20px;
}
.admin-block textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px;
  border: 1px solid #d9cddd;
  border-radius: 6px;
  font: inherit;
}
.admin-block .primary {
  width: auto;
  margin-top: 12px;
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid #eee7da;
  white-space: nowrap;
}
.admin-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.admin-denied {
  text-align: center;
  padding: 60px 16px;
  font-size: 18px;
}


/* Page de refus de connexion (servie par le serveur, sans style en ligne) */
body.refusal {
  text-align: center;
  margin-top: 20vh;
  padding: 0 16px;
}

/* Authentification et administration des utilisateurs */
[hidden] {
  display: none !important;
}
.admin-block h3 {
  margin: 22px 0 8px;
  font-size: 16px;
}
.admin-error {
  background: #fdecec;
  color: #8a1c1c;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0 0 12px;
}
.admin-form {
  display: grid;
  gap: 4px;
  max-width: 420px;
}
.admin-form input,
.admin-form select,
.admin-table input,
.admin-table select {
  width: 100%;
  padding: 8px;
  border: 1px solid #d9cddd;
  border-radius: 6px;
  background: white;
}
.admin-table td button.small {
  border: 1px solid #d9cddd;
  border-radius: 6px;
  background: white;
  color: var(--purple);
  padding: 6px 10px;
  margin-right: 6px;
}
