A:link {
color : #003399;
text-decoration : none;
}
A:visited {
color : #003399;
text-decoration : none;
}
A:hover {
color : #990000;
text-decoration : underline;
}
td {
color : black;
font-variant : normal;
font-size : 14px;
font-family : Verdana, Arial, Helvetica;
}
h1 {
color : black;
font-variant : normal;
font-size : 16px;
font-family : Verdana, Arial, Helvetica;
}
.titre {
color : #990000;
font-size : 14px;
font-family : Verdana, Arial, Helvetica;
font-weight : bold;
}
INPUT {
background-color : #d7dbef;
color : #000000;
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 15px;
}
SELECT {
background-color : #d7dbef;
color : #000000;
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 15px;
}
b {
font-weight : bold;
}
.cadre_orange { 
border: 1px solid black; padding: 5px; 
} 
#mon-bouton-1{
/* hérite de la class button-cours */
  color : #fff;
  padding : 0.313em 0.5em;
/* padding : 5px 8px;  pour une font-size parent de 16px */
  background-color : #078548;
}
#mon-bouton-1:hover{
  background-color : #58a41c;
}
#mon-bouton-1:focus{
  background-color : #007700;
}
#mon-bouton-1:focus span{
  outline : 1px dotted #830743;
}
#mon-bouton-1:active{
  background-color : #066c3a;
}
#mon-bouton-2{
/* hérite de la class button-cours */
  color : #fff;
  padding : 0.313em 0.5em;
/* padding : 5px 8px;  pour une font-size parent de 16px */
  background-color : #078548;
}
#mon-bouton-2:hover{
  background-color : #58a41c;
}
#mon-bouton-2:focus{
  background-color : #007700;
}
#mon-bouton-2:focus span{
  outline : 1px dotted #830743;
}
#mon-bouton-2:active{
  background-color : #066c3a;
}
#mon-bouton-3{
/* hérite de la class button-cours */
  color : #fff;
  padding : 0.313em 0.5em;
/* padding : 5px 8px;  pour une font-size parent de 16px */
  background-color : #078548;
}
#mon-bouton-3:hover{
  background-color : #58a41c;
}
#mon-bouton-3:focus{
  background-color : #007700;
}
#mon-bouton-3:focus span{
  outline : 1px dotted #830743;
}
#mon-bouton-3active{
  background-color : #066c3a;
}
#mon-bouton-4{
/* hérite de la class button-cours */
  color : #fff;
  padding : 0.313em 0.5em;
/* padding : 5px 8px;  pour une font-size parent de 16px */
  background-color : #078548;
}
#mon-bouton-4:hover{
  background-color : #58a41c;
}
#mon-bouton-4:focus{
  background-color : #007700;
}
#mon-bouton-4:focus span{
  outline : 1px dotted #830743;
}
#mon-bouton-4:active{
  background-color : #066c3a;
}
#mon-bouton-5{
/* hérite de la class button-cours */
  color : #fff;
  padding : 0.313em 0.5em;
/* padding : 5px 8px;  pour une font-size parent de 16px */
  background-color : #078548;
}
#mon-bouton-5:hover{
  background-color : #58a41c;
}
#mon-bouton-5:focus{
  background-color : #007700;
}
#mon-bouton-5:focus span{
  outline : 1px dotted #830743;
}
#mon-bouton-5:active{
  background-color : #066c3a;
}


/* ── Variables & reset ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --bg:        #ffffff;
    --surface:   #ffffff;
    --border:    #fecb00;
    --accent:    #6c63ff;
    --accent2:   #a855f7;
    --text:      #000000;
    --muted:     #94a3b8;
    --error-bg:  #2d0f0f;
    --error-bd:  #ef4444;
    --error-txt: #fca5a5;
}

/* ── Upload ──────────────────────────────────────────────── */
#upload-section { display: flex; justify-content: center; }

.drop-zone {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 64px 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    background: var(--surface);
    width: 100%;
    max-width: 480px;
    user-select: none;
}
.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--accent);
    background: rgba(108,99,255,.06);
}
.drop-zone__icon  { font-size: 52px; display: block; margin-bottom: 14px; }
.drop-zone__title { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.drop-zone__sub   { color: var(--muted); font-size: .85rem; margin-bottom: 22px; }

input[type="file"] { display: none; }

/* ── Boutons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 20px; border-radius: 8px; border: none;
    cursor: pointer; font-size: .9rem; font-weight: 600;
    transition: all .15s;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
}
.btn-primary:hover { opacity: .85; transform: translateY(-1px); }
.btn-ghost {
    background: transparent; color: var(--muted);
    border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

/* ── Éditeur ─────────────────────────────────────────────── */
#warper-section { display: none; }
#warper-section.active { display: block; }

.toolbar {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
    padding: 13px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 14px;
}
.toolbar-group { display: flex; align-items: center; gap: 10px; }
.toolbar-group label { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.toolbar-group input[type="range"] {
    width: 110px; height: 4px;
    accent-color: var(--accent); cursor: pointer;
}
.val-badge {
    font-size: .8rem; font-weight: 700; color: var(--accent);
    min-width: 26px; text-align: right;
}
.sep { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }
.toolbar-actions { display: flex; gap: 8px; margin-left: auto; }

/* ── Canvas ──────────────────────────────────────────────── */
.canvas-wrapper {
    position: relative; display: flex; justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    overflow: hidden;
}
#warpCanvas {
    display: block; max-width: 100%;
    border-radius: 6px; cursor: none;
    image-rendering: auto;
}

/* Loading overlay */
.loading-overlay {
    position: absolute; inset: 0;
    display: none; align-items: center; justify-content: center;
    background: rgba(15,15,26,.82);
    border-radius: 12px;
    font-size: .95rem; color: var(--muted); gap: 10px;
}
.loading-overlay.active { display: flex; }
.spinner {
    width: 20px; height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Curseur anneau ──────────────────────────────────────── */
#cursor-ring {
    position: fixed; pointer-events: none;
    border: 1.5px dashed rgba(255,255,255,.65);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: none; z-index: 9999;
}

/* ── Toast ───────────────────────────────────────────────── */
.toast {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%);
    background: var(--error-bg);
    border: 1px solid var(--error-bd);
    color: var(--error-txt);
    padding: 12px 22px; border-radius: 10px;
    font-size: .9rem; z-index: 9999;
    opacity: 0; transition: opacity .3s; white-space: nowrap;
    pointer-events: none;
}
.toast.show { opacity: 1; }

/* ── Hint ────────────────────────────────────────────────── */
.hint {
    text-align: center; color: var(--muted);
    font-size: .8rem; margin-top: 10px;
}