  /* =========================================================
     TOKENS — encre & lamba : vert forêt, or manuscrit, parchemin
     ========================================================= */
  :root{
    --forest-deep:#0f2019;
    --forest:#1b3a2f;
    --forest-soft:#254a3b;
    --ink:#1c2620;
    --gold:#c9a227;
    --gold-light:#e8c766;
    --parchment:#f4ecd6;
    --parchment-dim:#e7dcb9;
    --maroon:#8a3a30;
    --line:rgba(201,162,39,.22);

    --font-display:'Cormorant Garamond', Georgia, serif;
    --font-body:'Work Sans', -apple-system, sans-serif;

    --radius:14px;
    --ease:cubic-bezier(.22,.9,.32,1);
  }
  *{box-sizing:border-box;}

  /* ========================================================= */
  
  section.auth-page{
    position:relative;
    z-index:1;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:10px 10px;
    gap:40px;
  }

  /* =========================================================
     LAYOUT PRINCIPAL
     ========================================================= */
  .but-class{
    width:100%;
    max-width:1080px;
    display:flex;
    align-items:stretch;
    gap:0;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 40px 90px -30px rgba(0,0,0,.55);
    opacity:0;
    transform:translateY(24px);
    animation:riseIn .9s var(--ease) .1s forwards;
  }

  @keyframes riseIn{
    to{opacity:1; transform:translateY(0);}
  }

  /* ---------- PRESENTATION (gauche) ---------- */
  #pesentation{
    flex:1.15;
    position:relative;
    background:
      linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.18)),
      var(--forest-deep);
    padding:52px 48px;
    border-right:1px solid var(--line);
  }

  /* coin décoratif façon reliure manuscrite */
  #pesentation::before,
  #pesentation::after{
    content:"";
    position:absolute;
    width:34px; height:34px;
    border:1px solid var(--gold);
    opacity:.5;
  }
  #pesentation::before{ top:22px; left:22px; border-right:none; border-bottom:none; }
  #pesentation::after{ bottom:22px; right:22px; border-left:none; border-top:none; }

  #pesentation h2{
    font-family:var(--font-display);
    font-weight:700;
    font-size:clamp(2.1rem, 3.4vw, 2.8rem);
    margin:0 0 6px;
    color:var(--parchment);
    letter-spacing:.02em;
  }

  /* trait d'or dessiné à la main, façon paraphe */
  .signature-line{
    width:150px; height:14px;
    margin-bottom:22px;
    display:block;
  }
  .signature-line path{
    fill:none;
    stroke:var(--gold);
    stroke-width:2;
    stroke-linecap:round;
    stroke-dasharray:220;
    stroke-dashoffset:220;
    animation:draw 1.1s var(--ease) .5s forwards;
  }
  @keyframes draw{ to{ stroke-dashoffset:0; } }

  #pesentation h3{
    font-family:var(--font-display);
    font-weight:100%;
    font-style:italic;
    font-size:1.35rem;
    color:var(--gold-light);
    margin:0px 0 8px;
  }

  #pesentation p, #pesentation li{
    font-size:.98rem;
    line-height:1.7;
    color:rgba(244,236,214,.86);
  }

  #pesentation ul{
    list-style:none;
    margin:8px 0 0;
    padding:0;
  }
  #pesentation li{
    padding:9px 0;
    border-bottom:1px dashed var(--line);
  }
  #pesentation li:last-child{ border-bottom:none; }

  #pesentation a{
    color:var(--gold-light);
    text-decoration:none;
    position:relative;
    transition:color .25s var(--ease);
  }
  #pesentation a::after{
    content:"";
    position:absolute; left:0; bottom:-2px;
    width:0; height:1px;
    background:var(--gold-light);
    transition:width .3s var(--ease);
  }
  #pesentation a:hover{ color:#fff; }
  #pesentation a:hover::after{ width:100%; }

  /* révélation en cascade des blocs de texte */
  #pesentation h2, #pesentation .signature-line, #pesentation p,
  #pesentation h3, #pesentation ul{
    opacity:0;
    transform:translateY(14px);
    animation:fadeUp .7s var(--ease) forwards;
  }
  #pesentation h2{ animation-delay:.35s; }
  #pesentation .signature-line{ animation-delay:.5s; }
  #pesentation p:nth-of-type(1){ animation-delay:.6s; }
  #pesentation h3:nth-of-type(1){ animation-delay:.72s; }
  #pesentation p:nth-of-type(2){ animation-delay:.82s; }
  #pesentation h3:nth-of-type(2){ animation-delay:.94s; }
  #pesentation ul{ animation-delay:1.05s; }

  @keyframes fadeUp{ to{ opacity:1; transform:translateY(0); } }

  /* ---------- CARD (droite) ---------- */
  .card{
    flex:1;
    order:2;
    position:relative;
    background:var(--parchment);
    color:var(--ink);
    padding:52px 46px;
    display:flex;
    flex-direction:column;
    justify-content:center;
  }

  /* lueur ambiante façon bougie, derrière la carte */
  .card::before{
    content:"";
    position:absolute;
    top:-40%; right:-30%;
    width:70%; height:140%;
    background:radial-gradient(circle, rgba(201,162,39,.20), transparent 65%);
    animation:glow 6s ease-in-out infinite;
    pointer-events:none;
  }
  @keyframes glow{
    0%,100%{ opacity:.55; transform:scale(1); }
    50%{ opacity:.9; transform:scale(1.08); }
  }

  .card h1{
    font-family:var(--font-display);
    font-weight:700;
    font-size:2.1rem;
    margin:0 0 26px;
    color:var(--forest);
    position:relative;
  }

  .field{
    position:relative;
    margin-bottom:20px;
  }
  .field label{
    display:block;
    font-size:.78rem;
    font-weight:600;
    letter-spacing:.06em;
    text-transform:uppercase;
    color:var(--maroon);
    margin-top:10px;
    margin-bottom:10px;
  }
  .field input, .field select{
    width:100%;
    font-family:var(--font-body);
    font-size:1rem;
    padding:13px 14px;
    border-radius:10px;
    border:1.5px solid var(--parchment-dim);
    background:#fff;
    color:var(--ink);
    outline:none;
    transition:border-color .25s var(--ease), box-shadow .25s var(--ease), transform .12s ease;
  }
  .field input:focus, .field select:focus{
    border-color:var(--gold);
    box-shadow:0 0 0 4px rgba(201,162,39,.18);
  }
  .field input:invalid:not(:placeholder-shown){
    border-color:var(--maroon);
  }
  .field.shake input, .field.shake select:focus{ animation:shake .4s ease; }
  @keyframes shake{
    20%,60%{ transform:translateX(-6px); }
    40%,80%{ transform:translateX(6px); }
  }

  .field .toggle-pass{
    position:absolute;
    right:12px; top:38px;
    background:none; border:none;
    cursor:pointer;
    padding:4px;
    color:var(--forest-soft);
    opacity:.65;
    transition:opacity .2s ease;
  }
  .field .toggle-pass:hover{ opacity:1; }

  form p{ margin:22px 0 0; }

  .buttonsubmit {
    position:relative;
    overflow:hidden;
    width:100%;
    padding:14px 18px;
    font-family:var(--font-body);
    font-weight:600;
    font-size:1rem;
    letter-spacing:.02em;
    color:var(--parchment);
    background:linear-gradient(120deg, var(--forest), var(--forest-soft));
    border:none;
    border-radius:10px;
    cursor:pointer;
    transition:transform .15s var(--ease), box-shadow .25s var(--ease);
  }
  .buttonsubmit::after{
    content:"";
    position:absolute; top:0; left:-60%;
    width:50%; height:100%;
    background:linear-gradient(120deg, transparent, rgba(232,199,102,.55), transparent);
    transform:skewX(-20deg);
    transition:left .6s var(--ease);
  }
  .buttonsubmit:hover::after{ left:130%; }
  .buttonsubmit:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 28px -12px rgba(15,32,25,.55);
  }
  .buttonsubmit:active{ transform:translateY(0); }
  .buttonsubmit.loading{ cursor:progress; opacity:.85; }

  .card > p:last-of-type{
    margin-top:22px;
    font-size:.88rem;
    color:var(--forest-soft);
    text-align:center;
  }
  .card > p:last-of-type a{
    color:var(--maroon);
    text-decoration:none;
    font-weight:600;
    border-bottom:1px solid transparent;
    transition:border-color .2s ease;
  }
  .card > p:last-of-type a:hover{ border-color:var(--maroon); }

  /* carte révélée en second temps */
  .card{
    opacity:0;
    animation:fadeUp .8s var(--ease) .25s forwards;
  }

  /* =========================================================
     INFO FOOTER
     ========================================================= */
  .info-class{
    width:100%;
    max-width:1080px;
    text-align:center;
    padding-top:8px;
    opacity:0;
    animation:fadeUp .8s var(--ease) 1.2s forwards;
  }
  .info-class .divider{
    width:60px; height:1px;
    margin:0 auto 16px;
    background:var(--gold);
    opacity:.5;
  }
  .info-class p{
    margin:4px 0;
    font-size:.85rem;
    color:rgba(244,236,214,.6);
    line-height:1.6;
  }
  .info-class strong{ color:var(--gold-light); font-weight:600; }

  /* =========================================================
     RESPONSIVE — carte devient prioritaire sur mobile
     ========================================================= */
  @media (max-width: 860px){
    .but-class{ flex-direction:column; border-radius:16px; }
    #pesentation{ order:2; border-right:none; border-top:1px solid var(--line); padding:40px 30px; }
    .card{ order:1; padding:40px 30px; }
  }

  @media (prefers-reduced-motion: reduce){
    *,*::before,*::after{
      animation-duration:.01ms !important;
      animation-iteration-count:1 !important;
      transition-duration:.01ms !important;
    }
  }

  .pan_buton {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 15px;
  width: 100%;
  box-sizing: border-box;
}

/* =========================================================
    POUR LES TRAITEMENTS DE SERVCE
  ========================================================= */

.centre {
  text-align: center;
  margin: auto;
}
.pan_buton {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
  padding: 15px;
  width: 100%;
  box-sizing: border-box;
}

.btnService {
  flex: 1 1 150px;
  max-width: 150px;
  padding: 10px 16px;
  font-size: 1rem;
  font-family: Arial, sans-serif;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btnService:hover {
  background-color: #0056b3;
}

.btnService:active {
  transform: scale(0.97);
}

/* Tablettes */
@media (max-width: 768px) {
  .pan_buton {
    gap: 8px;
    padding: 10px;
  }
  .btnService {
    flex: 1 1 120px;
    font-size: 0.95rem;
    padding: 9px 14px;
  }
}

/* Petits mobiles */
@media (max-width: 480px) {
  .pan_buton {
    flex-direction: column;
    gap: 8px;
  }
  .btnService {
    width: 100%;
    max-width: none;
  }
}


/* STATUS PROFESSIONNELLE */

.field-status {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Arial, sans-serif;
}

table.status {
    width: 100%;
    border-collapse: collapse;
}

table.status tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

table.status tr:last-child {
    border-bottom: none;
}

table.status tr:hover {
    background-color: #f5f7fa;
}

table.status td {
    padding: 12px 15px;
    font-size: 15px;
    color: #333;
    vertical-align: middle;
}

/* Première colonne = libellé (gras, aligné à gauche) */
table.status td:first-child {
    font-weight: 600;
    color: #555;
    width: 45%;
    text-align: left;
}

/* Deuxième colonne = valeur */
table.status td:last-child {
    color: #222;
    text-align: left;
}

/* Lignes alternées (optionnel, look "tableau") */
table.status tr:nth-child(even) {
    background-color: #fafafa;
}

/* Responsive : empile les colonnes sur petits écrans */
@media (max-width: 480px) {
    table.status, table.status tbody, table.status tr, table.status td {
        display: block;
        width: 100%;
    }

    table.status tr {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    table.status td:first-child {
        font-size: 13px;
        color: #888;
        padding-bottom: 2px;
    }

    table.status td:last-child {
        font-size: 16px;
        font-weight: 500;
    }
}


/* TAB inscription, transcription, affichage */

/* --- RAFI-TSY MIVANTANA HO AN'NY TAB --- */
.tab-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: background-color 0.3s;
}

/* Ny bokotra mavitrika (active) */
.tab-button.active-tab {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
    font-weight: bold;
}

/* Afenina mivantana ny votoatin'ny tab rehetra any am-piandohana */
.tab-content {
    display: none; 
}

/* Ny votoatiny izay manana class 'active-content' ihany no miseho */
.tab-content.active-content {
    display: block !important;
}

.tab-button.active {
    background-color: #24292e; /* Ohatra: loko maizina */
    color: white;
    border-bottom: 2px solid #007bff;
    font-weight: bold;
}

/* =============================================== */