/* ============================================================
   style.css – Feuille de style du formulaire Opale Expertise
   Direction : sobre, éditoriale, « cabinet d'expertise »
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Source+Sans+3:wght@400;500;600&display=swap");

/* ── Variables ───────────────────────────────────────────── */
:root {
    --bleu-fonce:   #1d3347; /* Bleu nuit de la charte */
    --bleu-moyen:   #2c557c;
    --bleu-clair:   #e8eff6; /* Fond sélection */
    --bleu-voile:   #f0f4f8; /* Fond teinté des en-têtes et encarts */
    --or:           #a8834a; /* Accent cuivré (numéros, montant) */
    --bleu-accent:  #2c557c; /* Focus */
    --fond-page:    #f5f5f2; /* Blanc cassé chaud */
    --fond-card:    #ffffff;
    --fond-section: #f8f8f6;
    --texte:        #1f2a33;
    --texte-doux:   #5f6b74;
    --bordure:      #d9dde1;
    --bordure-forte:#b9c1c8;
    --rouge:        #a3302a;
    --rouge-fond:   #fbf3f2;
    --vert:         #2d6a4f;
    --vert-fond:    #eef5f1;
    --ombre:        0 1px 2px rgba(17, 29, 40, 0.04);
    --rayon:        2px;
    --police-titres: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --police-texte:  'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* ── Reset & base ────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html { scroll-behavior: smooth; }
body {
    font-family: var(--police-texte);
    font-size: 16px;
    color: var(--texte);
    background-color: var(--fond-page);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ── Champ piège honeypot (invisible) ───────────────────── */
.honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ── Conteneur principal ─────────────────────────────────── */
.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 16px;
}
@media (min-width: 900px) {
    .container {
        max-width: 960px;
        padding: 0 28px;
    }
}

/* ── Introduction du formulaire ──────────────────────────── */
.form-intro {
    padding: 48px 0 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--bordure);
}
.form-intro h2 {
    font-family: var(--police-titres);
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--bleu-fonce);
    line-height: 1.1;
    margin-bottom: 12px;
}
.prix-titre {
    display: inline-block;
    font-family: var(--police-texte);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--or);
    border: 1px solid var(--or);
    border-radius: var(--rayon);
    padding: 2px 10px;
    vertical-align: middle;
    white-space: nowrap;
}
.legende {
    display: inline-block;
    color: var(--texte-doux);
    font-size: 0.92rem;
    background: var(--bleu-voile);
    border-left: 2px solid #7f9bb6;
    padding: 6px 12px;
    border-radius: var(--rayon);
}
.obligatoire {
    color: var(--rouge);
    font-weight: 500;
}

/* ── Sections du formulaire ──────────────────────────────── */
.section-formulaire {
    background: var(--fond-card);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    border-top: 3px solid var(--bleu-moyen);
    box-shadow: var(--ombre);
    margin-bottom: 24px;
}
.section-header {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 20px 24px 18px;
    background: var(--bleu-voile);
    border-bottom: 1px solid #dde5ec;
    color: var(--bleu-fonce);
}
.section-numero {
    font-family: var(--police-titres);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--or);
    font-variant-numeric: lining-nums;
    flex-shrink: 0;
    min-width: 1.6em;
}
.section-titre {
    font-family: var(--police-titres);
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--bleu-fonce);
    margin: 0;
}
.section-sous-titre {
    font-size: 0.88rem;
    color: var(--texte-doux);
    margin-top: 4px;
}
.section-corps {
    padding: 24px;
}
@media (min-width: 900px) {
    .section-header {
        padding: 24px 40px 20px;
    }
    .section-corps {
        padding: 30px 40px 36px;
    }
}

/* ── Groupes de champs ───────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-row-3 {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 20px;
}
.form-row-adresse {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
}
@media (max-width: 680px) {
    .form-row,
    .form-row-3,
    .form-row-adresse {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ── Labels ──────────────────────────────────────────────── */
label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--texte);
    margin-bottom: 6px;
}
.sous-texte {
    font-size: 0.82rem;
    color: var(--texte-doux);
    margin-top: 4px;
}

/* ── Champs de saisie ────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--bordure-forte);
    border-radius: var(--rayon);
    font-size: 1rem;
    font-family: inherit;
    color: var(--texte);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
    -webkit-appearance: none;
}
input::placeholder,
textarea::placeholder {
    color: #9aa3ab;
}
input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="number"]:hover,
select:hover,
textarea:hover {
    border-color: #8f9aa4;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--bleu-fonce);
    box-shadow: 0 0 0 3px rgba(29, 51, 71, 0.12);
}
textarea {
    min-height: 100px;
    resize: vertical;
}
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235f6b74' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}

/* Champs obligatoires (libellé avec *) : encadré bleu bien visible */
.form-group:has(> label .obligatoire) input[type="text"],
.form-group:has(> label .obligatoire) input[type="email"],
.form-group:has(> label .obligatoire) input[type="tel"],
.form-group:has(> label .obligatoire) textarea {
    border-left: 2px solid #7f9bb6;
    background: #fafcfd;
}
.form-group:has(> label .obligatoire) .radio-group {
    border-left: 2px solid #7f9bb6;
    padding-left: 12px;
}

/* ── États d'erreur ──────────────────────────────────────── */
input.champ-erreur,
select.champ-erreur,
textarea.champ-erreur,
.form-group:has(> label .obligatoire) input.champ-erreur,
.form-group:has(> label .obligatoire) textarea.champ-erreur {
    border-color: var(--rouge);
    background: var(--rouge-fond);
}
.message-erreur {
    color: var(--rouge);
    font-size: 0.84rem;
    margin-top: 6px;
}
.message-erreur:empty {
    display: none;
}
.erreur-globale {
    background: var(--rouge-fond);
    border: 1px solid #e6c4c1;
    border-left: 3px solid var(--rouge);
    color: var(--rouge);
    padding: 14px 18px;
    border-radius: var(--rayon);
    margin-bottom: 24px;
    font-size: 0.94rem;
}

/* ── Boutons radio et cases à cocher ─────────────────────── */
.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}
.radio-btn,
.checkbox-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 11px 16px;
    border: 1px solid var(--bordure-forte);
    border-radius: var(--rayon);
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 0;
    background: #fff;
    user-select: none;
    transition: border-color 0.15s, background 0.15s;
}
.radio-btn:hover,
.checkbox-btn:hover {
    border-color: var(--bleu-fonce);
}
.radio-btn input[type="radio"],
.checkbox-btn input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border: none;
    padding: 0;
    margin: 0;
    accent-color: var(--bleu-fonce);
    cursor: pointer;
}
.radio-btn.selectionne,
.checkbox-btn.selectionne {
    border-color: var(--bleu-moyen);
    box-shadow: inset 3px 0 0 var(--bleu-moyen);
    background: var(--bleu-clair);
    color: var(--bleu-fonce);
}
.radio-btn {
    min-width: 110px;
}
/* Groupe de checkboxes : 2 colonnes sur desktop, 1 colonne sur mobile */
.checkbox-group-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (max-width: 680px) {
    .checkbox-group-col {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* ── Blocs conditionnels ─────────────────────────────────── */
.cond-block {
    margin-top: 18px;
}

/* ── Bloc coordonnées ────────────────────────────────────── */
.bloc-coordonnees {
    background: var(--fond-section);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    padding: 22px 24px;
    margin-top: 16px;
}
.bloc-coordonnees h4 {
    font-family: var(--police-titres);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bleu-fonce);
    margin-bottom: 14px;
}
@media (min-width: 768px) {
    .bloc-coordonnees {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px 20px;
        align-items: start;
    }
    .bloc-coordonnees > h4 {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }
    .bloc-coordonnees > .form-group {
        margin-bottom: 0;
    }
    .bloc-coordonnees > .form-row {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }
}

/* ── Grand écran d'ordinateur : disposition plus horizontale ──
   Les champs courts se rangent sur 3 ou 4 colonnes (sections 1 et 2,
   blocs de coordonnées), les listes de choix sur 3 colonnes.
   Tablettes et téléphones : rien ne change. */
@media (min-width: 1200px) {
    .container { max-width: 1240px; }
    .corps-3, .corps-4 {
        display: grid;
        column-gap: 20px;
        align-items: start;
    }
    .corps-3 { grid-template-columns: repeat(3, 1fr); }
    .corps-4 { grid-template-columns: repeat(4, 1fr); }
    /* Les rangées s'effacent : leurs champs remplissent la grille l'un après l'autre */
    .corps-3 > .form-row, .corps-3 > .form-row-3, .corps-3 > .form-row-adresse,
    .corps-4 > .form-row, .corps-4 > .form-row-3, .corps-4 > .form-row-adresse {
        display: contents;
    }
    /* Le reste (choix Oui/Non, séparateurs, blocs conditionnels) garde toute la largeur */
    .corps-3 > :not(.form-row):not(.form-row-3):not(.form-row-adresse),
    .corps-4 > :not(.form-row):not(.form-row-3):not(.form-row-adresse) {
        grid-column: 1 / -1;
    }
    /* Coordonnées : nom | rue | code postal | ville, puis e-mail */
    .bloc-coordonnees { grid-template-columns: 2fr 2fr 1fr 1.5fr; }
    .bloc-coordonnees > .form-row { display: contents; }
    .bloc-coordonnees > .form-group:last-child { grid-column: span 2; }
    .checkbox-group-col { grid-template-columns: repeat(3, 1fr); }
}

/* ── Mémos informatifs ───────────────────────────────────── */
.memo {
    background: var(--bleu-voile);
    border-left: 3px solid var(--bleu-moyen);
    padding: 14px 18px;
    margin: 16px 0;
    font-size: 0.93rem;
    line-height: 1.65;
    color: var(--texte);
}
.memo strong { color: var(--bleu-fonce); font-weight: 600; }
.memo ul {
    margin-top: 8px;
    padding-left: 18px;
}
.memo li { margin-top: 4px; }
/* Variante « attention » : pièces à ne pas envoyer */
.memo-attention { background: #fdf6e7; border-left-color: #b7791f; }
.memo-attention strong { color: #7a4f0f; }

/* ── Envoi de fichiers ───────────────────────────────────── */
.fichiers-container {
    border: 1px dashed var(--bordure-forte);
    border-radius: var(--rayon);
    padding: 20px;
    background: var(--fond-section);
}
.fichiers-liste {
    list-style: none;
}
.fichiers-liste:not(:empty) {
    margin-bottom: 14px;
}
.fichiers-liste li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    background: #fff;
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    padding: 9px 12px;
    font-size: 0.93rem;
}
.fichiers-liste li .btn-suppr {
    margin-left: auto;
    color: var(--texte-doux);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 4px 8px;
    border-radius: var(--rayon);
}
.fichiers-liste li .btn-suppr:hover {
    color: var(--rouge);
    background: var(--rouge-fond);
}
.btn-ajouter-doc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--bleu-fonce);
    border: 1px solid var(--bleu-fonce);
    border-radius: var(--rayon);
    padding: 10px 18px;
    font-family: var(--police-texte);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.btn-ajouter-doc:hover {
    background: var(--bleu-fonce);
    color: #fff;
}
.taille-totale {
    font-size: 0.82rem;
    color: var(--texte-doux);
    margin-top: 10px;
    font-variant-numeric: tabular-nums;
}
.taille-totale.depassee { color: var(--rouge); font-weight: 600; }
.aide-fichiers {
    font-size: 0.86rem;
    color: var(--texte-doux);
    margin: 8px 0 0;
}
/* Input file caché (déclenché par le bouton) */
.input-file-cache {
    position: absolute;
    left: -9999px;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* ── Texte des conditions particulières ─────────────────── */
.conditions-texte {
    font-size: 0.97rem;
    line-height: 1.75;
    margin-bottom: 24px;
    color: var(--texte);
}
.conditions-texte p { margin-bottom: 12px; }
.conditions-texte p:last-child { margin-bottom: 0; }
.montant-prestation {
    display: inline-block;
    font-family: var(--police-titres);
    font-size: 2rem;
    font-weight: 600;
    color: var(--bleu-fonce);
    padding: 6px 0 2px;
    border-bottom: 2px solid var(--or);
    font-variant-numeric: lining-nums;
}

/* ── Case à cocher CGV ───────────────────────────────────── */
.cgv-groupe {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bleu-voile);
    border: 1px solid #d3dee8;
    border-radius: var(--rayon);
    cursor: pointer;
    margin-bottom: 8px;
    transition: border-color 0.15s;
}
.cgv-groupe:hover {
    border-color: var(--bleu-fonce);
}
.cgv-groupe input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 3px;
    accent-color: var(--bleu-fonce);
    cursor: pointer;
}
.cgv-groupe label,
.cgv-groupe span {
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 400;
    margin: 0;
    color: var(--texte);
}
.cgv-groupe a {
    color: var(--bleu-fonce);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cgv-erreur { margin-top: 4px; }

/* Ligne « Conditions générales » du formulaire : état + bouton qui ouvre la fenêtre */
.cgv-etat {
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    cursor: default;
    margin-top: 20px;
}
.cgv-etat .cgv-ok { color: #1b5e20; font-weight: 600; }
.cgv-ouvrir {
    background: var(--bleu-fonce);
    color: #fff;
    border: 0;
    border-radius: var(--rayon);
    padding: 10px 16px;
    font-size: 0.92rem;
    cursor: pointer;
}
.cgv-ouvrir:hover { opacity: 0.9; }

/* Fenêtre des CGV (élément <dialog>) */
.cgv-fenetre {
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    margin: auto;   /* centre la fenêtre (annulé par le reset « * { margin: 0 } ») */
    padding: 0;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    flex-direction: column;
}
.cgv-fenetre[open] { display: flex; }
.cgv-fenetre::backdrop { background: rgba(20, 30, 40, 0.55); }
.cgv-fenetre-entete {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: #1a3a5c;
    color: #fff;
    font-size: 1rem;
}
.cgv-fermer { background: none; border: 0; color: #fff; font-size: 1.2rem; cursor: pointer; }
.cgv-fenetre-pied {
    padding: 12px 20px 16px;
    border-top: 1px solid #d5dfe8;
    background: #fff;
}
.cgv-fenetre-pied .cgv-aide { margin: 0 0 10px; }
.cgv-accepter {
    width: 100%;
    background: #2e7d32;
    color: #fff;
    border: 0;
    border-radius: var(--rayon);
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}
.cgv-accepter:disabled { background: #b8c2cb; cursor: not-allowed; }
/* Sur téléphone, la fenêtre prend tout l'écran */
@media (max-width: 600px) {
    .cgv-fenetre { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
}

/* Texte des CGV, à faire défiler avant de pouvoir les accepter */
.cgv-cadre {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    background: #fafbfc;
    padding: 16px 20px;
    font-size: 0.88rem;
    line-height: 1.55;
}
.cgv-cadre:focus { outline: none; }
.cgv-cadre h4 { font-size: 1rem; margin: 0 0 4px; color: #1a3a5c; }
.cgv-cadre h5 { font-size: 0.9rem; margin: 16px 0 4px; color: #1a3a5c; }
.cgv-cadre p, .cgv-cadre ul { margin: 0 0 8px; }
.cgv-cadre ul { padding-left: 20px; }
.cgv-cadre .cgv-version { color: #6b7785; font-style: italic; }
.cgv-aide { font-size: 0.82rem; color: #6b7785; margin: 0 0 12px; }

/* ── Bouton d'envoi ──────────────────────────────────────── */
.btn-soumission {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    margin: 32px auto 0;
    padding: 16px 32px;
    background: var(--bleu-fonce);
    color: #fff;
    border: 1px solid var(--bleu-fonce);
    border-radius: var(--rayon);
    font-family: var(--police-texte);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-soumission:hover {
    background: var(--bleu-moyen);
    border-color: var(--bleu-moyen);
}
.btn-soumission:focus-visible,
.btn-ajouter-doc:focus-visible,
.btn-retour:focus-visible {
    outline: 2px solid var(--bleu-fonce);
    outline-offset: 3px;
}
.btn-soumission:disabled {
    background: #9aa4ad;
    border-color: #9aa4ad;
    cursor: not-allowed;
}
@media (max-width: 600px) {
    .btn-soumission {
        max-width: 100%;
    }
}

/* ── Page de remerciement ────────────────────────────────── */
.merci-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
}
.merci-card {
    background: #fff;
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    padding: 48px 40px;
    text-align: center;
    max-width: 520px;
    width: 100%;
}
.merci-icon {
    width: 56px;
    height: 56px;
    border: 1px solid var(--vert);
    color: var(--vert);
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.merci-card h1 {
    font-family: var(--police-titres);
    font-size: 2rem;
    font-weight: 600;
    color: var(--bleu-fonce);
    margin-bottom: 14px;
}
.merci-card p {
    color: var(--texte-doux);
    font-size: 1rem;
    margin-bottom: 28px;
    line-height: 1.7;
}
.btn-retour {
    display: inline-block;
    padding: 12px 28px;
    background: var(--bleu-fonce);
    color: #fff;
    text-decoration: none;
    border-radius: var(--rayon);
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.15s;
}
.btn-retour:hover { background: #12222f; }

/* ── Séparateurs ─────────────────────────────────────────── */
hr.separateur {
    border: none;
    border-top: 1px solid var(--bordure);
    margin: 24px 0;
}

/* ── Indicateur VIN ──────────────────────────────────────── */
.vin-compteur {
    font-size: 0.8rem;
    color: var(--texte-doux);
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}
.vin-compteur.ok    { color: var(--vert); font-weight: 600; }
.vin-compteur.erreur { color: var(--rouge); font-weight: 600; }

/* ── Pied de page du formulaire ──────────────────────────── */
/* ── Formulaire affiché dans un cadre sur une page du site (js/integration.js) ── */
.integre body {
    min-height: 0;
    display: flow-root;        /* hauteur mesurée exacte (marges comprises) */
    overflow: hidden;
}
.integre .form-footer { display: none; }
/* Fenêtre des CGV : placée près du bouton (le cadre fait toute la hauteur du formulaire) */
.integre .cgv-fenetre {
    position: absolute;
    margin: 0 auto;
    height: 560px;
    max-height: 560px;
}

.form-footer {
    text-align: center;
    padding: 24px 0 48px;
    font-size: 0.82rem;
    color: var(--texte-doux);
}

/* ── Saisie retrouvée : proposition de reprise ──────────── */
.bandeau-brouillon {
    background: #f4f0f8;
    border: 1px solid #ddd0ec;
    border-left: 3px solid #542c7c;
    padding: 14px 18px;
    border-radius: var(--rayon);
    margin-bottom: 24px;
    font-size: 0.94rem;
}
.bandeau-brouillon p {
    margin: 0 0 12px;
}
.bandeau-brouillon-boutons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.btn-brouillon {
    padding: 9px 18px;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: #542c7c;
    border: 1px solid #542c7c;
    border-radius: var(--rayon);
    cursor: pointer;
}
.btn-brouillon.secondaire {
    color: #542c7c;
    background: var(--fond-card);
}

/* ── Envoi / enregistrement en cours : rond qui tourne + message ── */
.boite-attente {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 520px;
    margin: 20px auto 0;
    padding: 16px 18px;
    text-align: left;
    font-size: 0.95rem;
    color: var(--bleu-fonce);
    background: var(--bleu-voile);
    border-left: 3px solid var(--bleu-moyen);
    border-radius: var(--rayon);
}
.boite-attente[hidden] { display: none; }
.rond-attente-grand {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border: 3px solid #c4cad0;
    border-top-color: var(--bleu-fonce);
    border-radius: 50%;
    animation: tourne-attente 0.8s linear infinite;
}
@keyframes tourne-attente { to { transform: rotate(360deg); } }

/* ── Mode test : bannière avertissement ─────────────────── */
.banniere-test {
    margin-top: 24px;
    background: #fbf7ec;
    border: 1px solid #e8dcb8;
    color: #6b5212;
    padding: 10px 16px;
    border-radius: var(--rayon);
    text-align: center;
    font-size: 0.86rem;
}
