/* === RESET MINIMAL === */
*,
*::before,
*::after {
 box-sizing: border-box;
 margin: 0;
 padding: 0;
}

html,
body {
 height: 100%;
 overflow: hidden;
}

body {
 font-family: "Inter", system-ui, sans-serif;
 background: #0a0a0f;
 color: #fff;
 font-size: 14px;
}

/* === HEADER ÉDITEUR === */
.editor-header {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 height: 60px;
 padding: 0 24px;
 background: rgba(10, 10, 15, 0.95);
 backdrop-filter: blur(20px);
 border-bottom: 1px solid rgba(255, 255, 255, 0.08);
 display: flex;
 align-items: center;
 justify-content: space-between;
 z-index: 100;
}

.editor-header__left,
.editor-header__right {
 display: flex;
 align-items: center;
 gap: 16px;
}

.editor-header__back {
 color: rgba(255, 255, 255, 0.6);
 text-decoration: none;
 font-size: 13px;
 transition: color 0.3s;
}

.editor-header__back:hover {
 color: #fff;
}

.editor-header__title {
 font-family: "Space Grotesk", sans-serif;
 font-size: 13px;
 color: rgba(255, 255, 255, 0.7);
 letter-spacing: 0.02em;
}

.editor-header__title strong {
 color: #fff;
 font-weight: 700;
}

.editor-header__validate {
 background: linear-gradient(135deg, #ff3d6d, #7b5cff);
 border: none;
 color: #fff;
 padding: 10px 20px;
 border-radius: 8px;
 font-size: 13px;
 font-weight: 600;
 cursor: pointer;
 transition:
 transform 0.3s,
 box-shadow 0.3s;
}

.editor-header__validate:hover {
 transform: translateY(-1px);
 box-shadow: 0 10px 30px rgba(255, 61, 109, 0.3);
}

/* === MAIN SPLIT-SCREEN === */
.editor-main {
 display: grid;
 grid-template-columns: 1fr 480px;
 height: 100vh;
 padding-top: 112px;
}

/* === PREVIEW (gauche) === */
.editor-preview {
 display: flex;
 flex-direction: column;
 background: #0a0a0f;
 border-right: 1px solid rgba(255, 255, 255, 0.08);
 min-width: 0;
}

.editor-preview__toolbar {
 height: 44px;
 padding: 0 20px;
 display: flex;
 align-items: center;
 justify-content: space-between;
 border-bottom: 1px solid rgba(255, 255, 255, 0.05);
 background: rgba(255, 255, 255, 0.02);
}

.editor-preview__toolbar-actions {
 display: flex;
 align-items: center;
 gap: 10px;
}

.editor-preview__label {
 font-size: 11px;
 letter-spacing: 0.1em;
 text-transform: uppercase;
 color: rgba(255, 255, 255, 0.5);
}

.editor-preview__device-switcher {
 display: flex;
 gap: 4px;
 background: rgba(255, 255, 255, 0.05);
 padding: 3px;
 border-radius: 6px;
}

.editor-preview__device {
 background: transparent;
 border: none;
 padding: 4px 10px;
 border-radius: 4px;
 cursor: pointer;
 font-size: 14px;
 transition: background 0.3s;
 opacity: 0.5;
}

.editor-preview__device.is-active {
 background: rgba(255, 255, 255, 0.1);
 opacity: 1;
}

.editor-preview__select-btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 text-decoration: none;
 border-radius: 8px;
 padding: 7px 12px;
 font-size: 12px;
 font-weight: 600;
 color: #fff;
 background: linear-gradient(135deg, #ff3d6d, #7b5cff);
 border: 1px solid rgba(255, 255, 255, 0.12);
 transition: transform 0.2s ease;
}

.editor-preview__select-btn:hover {
 transform: translateY(-1px);
}

.editor-preview__frame-wrap {
 flex: 1;
 padding: 20px;
 overflow: auto;
 display: flex;
 justify-content: center;
 align-items: flex-start;
 min-height: 0;
}

.editor-preview__iframe {
 width: 100%;
 max-width: 100%;
 height: calc(100vh - 60px - 44px - 40px);
 min-height: 320px;
 border: none;
 background: #fff;
 border-radius: 12px;
 box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
 transition: max-width 0.4s ease;
}

.editor-preview__iframe[data-device="desktop"] {
 max-width: none;
}

.editor-preview__iframe[data-device="tablet"] {
 max-width: 768px;
}

.editor-preview__iframe[data-device="mobile"] {
 max-width: 390px;
}

/* === FORM (droite) === */
.editor-form {
 background: #ffffff;
 color: #0a0a0a;
 overflow-y: auto;
 height: calc(100vh - 60px);
 min-width: 0;
}

.editor-form__inner {
 padding: 32px 28px;
}

.editor-form__placeholder {
 text-align: center;
 padding: 60px 20px;
 color: #999;
}

.editor-form__placeholder h2 {
 font-family: "Space Grotesk", sans-serif;
 font-size: 20px;
 margin-bottom: 8px;
 color: #0a0a0a;
}

/* === RESPONSIVE (tablette/mobile : stack) === */
@media (max-width: 1100px) {
 .editor-main {
 grid-template-columns: 1fr;
 grid-template-rows: minmax(240px, 50vh) 1fr;
 height: 100vh;
 padding-top: 132px;
 }

 .editor-preview {
 border-right: none;
 border-bottom: 1px solid rgba(255, 255, 255, 0.08);
 min-height: 0;
 }

 .editor-preview__iframe {
 height: min(420px, calc(50vh - 60px - 44px - 40px));
 }

 .editor-form {
 height: auto;
 min-height: 0;
 }
}

@media (max-width: 600px) {
 .editor-header {
 padding: 0 12px;
 }

 .editor-header__title {
 display: none;
 }

 .editor-main {
 grid-template-rows: minmax(200px, 42vh) 1fr;
 padding-top: 150px;
 }
}

body.editor--preview-only .page-switcher,
body.editor--preview-only .editor-form,
body.editor--preview-only .editor-header__right {
 display: none;
}

body.editor--preview-only .editor-main {
 grid-template-columns: 1fr;
 padding-top: 60px;
}

body.editor--preview-only .editor-preview {
 border-right: none;
}

body.editor--preview-only .editor-preview__iframe {
 height: calc(100vh - 60px - 44px - 40px);
}

/* === FORMULAIRE PERSONNALISATION (colonne droite) === */
.form-progress {
 position: sticky;
 top: 0;
 background: #fff;
 padding: 16px 28px;
 border-bottom: 1px solid #eee;
 z-index: 10;
}

.form-progress__label {
 display: flex;
 justify-content: space-between;
 font-size: 11px;
 color: #666;
 margin-bottom: 8px;
 letter-spacing: 0.05em;
 text-transform: uppercase;
 font-weight: 500;
}

.form-progress__percent {
 color: #ff3d6d;
 font-weight: 700;
}

.form-progress__bar {
 height: 4px;
 background: #f0f0f0;
 border-radius: 2px;
 overflow: hidden;
}

.form-progress__fill {
 height: 100%;
 width: 0%;
 background: linear-gradient(90deg, #ff3d6d, #7b5cff);
 border-radius: 2px;
 transition: width 0.4s ease;
}

.form-intro {
 padding: 28px 28px 8px;
}

.form-intro__title {
 font-family: "Space Grotesk", sans-serif;
 font-size: 22px;
 font-weight: 700;
 color: #0a0a0a;
 margin-bottom: 8px;
}

.form-intro__desc {
 font-size: 13px;
 color: #666;
 line-height: 1.5;
}

.form-section {
 border-bottom: 1px solid #eee;
}

.form-section[open] .form-section__chevron {
 transform: rotate(180deg);
}

.form-section__head {
 display: flex;
 align-items: center;
 gap: 12px;
 padding: 20px 28px;
 cursor: pointer;
 list-style: none;
 transition: background 0.3s;
}

.form-section__head::-webkit-details-marker {
 display: none;
}

.form-section__head:hover {
 background: #fafafa;
}

.form-section__num {
 width: 24px;
 height: 24px;
 border-radius: 50%;
 background: #f0f0f0;
 color: #666;
 display: grid;
 place-items: center;
 font-size: 11px;
 font-weight: 700;
 flex-shrink: 0;
}

.form-section[open] .form-section__num {
 background: linear-gradient(135deg, #ff3d6d, #7b5cff);
 color: #fff;
}

.form-section__title {
 flex: 1;
 font-family: "Space Grotesk", sans-serif;
 font-size: 14px;
 font-weight: 600;
 color: #0a0a0a;
}

.form-section__status {
 font-size: 11px;
 color: #999;
 font-weight: 500;
 letter-spacing: 0.05em;
}

.form-section__chevron {
 color: #999;
 font-size: 16px;
 transition: transform 0.3s;
}

.form-section__body {
 padding: 8px 28px 28px;
}

.form-section__intro {
 font-size: 12px;
 color: #888;
 line-height: 1.5;
 margin-bottom: 20px;
 padding: 12px;
 background: #f9f9f9;
 border-radius: 6px;
 border-left: 2px solid #7b5cff;
}

.form-field {
 margin-bottom: 18px;
}

.form-label {
 display: block;
 font-size: 12px;
 font-weight: 600;
 color: #0a0a0a;
 margin-bottom: 6px;
 letter-spacing: 0.02em;
}

.form-input,
.form-textarea {
 width: 100%;
 padding: 10px 14px;
 border: 1px solid #e0e0e0;
 border-radius: 8px;
 font-size: 13px;
 font-family: inherit;
 color: #0a0a0a;
 background: #fff;
 transition:
 border-color 0.3s,
 box-shadow 0.3s,
 background 0.3s;
}

.form-input:focus,
.form-textarea:focus {
 outline: none;
 border-color: #7b5cff;
 box-shadow: 0 0 0 3px rgba(123, 92, 255, 0.1);
}

.form-textarea {
 resize: vertical;
 min-height: 60px;
 font-family: inherit;
}

.form-input.is-filled,
.form-textarea.is-filled {
 border-color: #10b981;
 background: #f0fdf4;
}

.form-hint {
 display: block;
 font-size: 11px;
 color: #999;
 margin-top: 4px;
 font-style: italic;
}

.form-row-2 {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 12px;
}

@media (max-width: 520px) {
 .form-row-2 {
 grid-template-columns: 1fr;
 }
}

.form-sub-block {
 padding: 16px;
 background: #fafafa;
 border-radius: 10px;
 margin-bottom: 14px;
 border: 1px solid #f0f0f0;
}

.form-sub-title {
 font-family: "Space Grotesk", sans-serif;
 font-size: 12px;
 font-weight: 700;
 color: #7b5cff;
 text-transform: uppercase;
 letter-spacing: 0.1em;
 margin-bottom: 14px;
}

.form-upload {
 position: relative;
}

.form-upload__label {
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 padding: 20px;
 border: 2px dashed #ddd;
 border-radius: 8px;
 cursor: pointer;
 transition: all 0.3s;
 background: #fafafa;
 text-align: center;
}

.form-upload__label:hover {
 border-color: #7b5cff;
 background: #f5f0ff;
}

.form-upload__label--compact {
 padding: 10px 14px;
 font-size: 12px;
 flex-direction: row;
 gap: 8px;
}

.form-upload__label--square {
 aspect-ratio: 1;
 padding: 12px;
}

.form-upload__icon {
 font-size: 24px;
 margin-bottom: 6px;
}

.form-upload__label--compact .form-upload__icon {
 margin-bottom: 0;
}

.form-upload__text {
 font-size: 12px;
 color: #666;
 font-weight: 500;
}

.form-upload__hint {
 font-size: 10px;
 color: #999;
 margin-top: 4px;
}

.form-upload__num {
 font-size: 11px;
 color: #666;
 font-weight: 500;
 margin-top: 4px;
}

.form-upload__preview {
 margin-top: 8px;
 border-radius: 6px;
 overflow: hidden;
}

.form-upload__preview img {
 width: 100%;
 height: auto;
 display: block;
}

.form-upload.is-filled .form-upload__label,
.form-upload.is-filled .form-upload__label--square {
 border-color: #10b981;
 background: #f0fdf4;
}

.form-gallery-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 10px;
}

@media (max-width: 520px) {
 .form-gallery-grid {
 grid-template-columns: repeat(2, 1fr);
 }
}

.form-palettes {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 10px;
}

.form-palette {
 position: relative;
 padding: 12px;
 border: 2px solid #eee;
 border-radius: 10px;
 cursor: pointer;
 transition: all 0.3s;
 background: #fff;
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 8px;
}

.form-palette input[type="radio"] {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 margin: 0;
 opacity: 0;
 cursor: pointer;
}

.form-palette.is-selected {
 border-color: #7b5cff;
 background: #f5f0ff;
 box-shadow: 0 4px 14px rgba(123, 92, 255, 0.15);
}

.form-palette__visual {
 display: flex;
 gap: 4px;
}

.form-palette__visual span {
 width: 20px;
 height: 20px;
 border-radius: 50%;
 border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-palette__name {
 font-family: "Space Grotesk", sans-serif;
 font-size: 11px;
 font-weight: 600;
 color: #0a0a0a;
 text-align: center;
}

.form-submit-zone {
 padding: 24px 28px;
 background: #fafafa;
 border-top: 1px solid #eee;
 text-align: center;
}

.form-submit {
 width: 100%;
 padding: 14px 20px;
 background: linear-gradient(135deg, #ff3d6d, #7b5cff);
 color: #fff;
 border: none;
 border-radius: 10px;
 font-size: 14px;
 font-weight: 600;
 cursor: pointer;
 transition:
 transform 0.3s,
 box-shadow 0.3s;
}

.form-submit:hover {
 transform: translateY(-1px);
 box-shadow: 0 10px 30px rgba(255, 61, 109, 0.3);
}

.form-submit-hint {
 margin-top: 10px;
 font-size: 11px;
 color: #666;
}

.editor-form__placeholder {
 display: none !important;
}

.editor-form__inner {
 padding: 0 0 32px;
}

.info-card,
.extra-request {
 margin: 16px 16px 0;
 padding: 16px;
 border: 1px solid #ece9ff;
 border-radius: 14px;
 background: #fff;
 box-shadow: 0 6px 18px rgba(10, 10, 25, 0.04);
}

.info-card__head,
.extra-request__head {
 display: flex;
 gap: 10px;
 align-items: flex-start;
 margin-bottom: 12px;
}

.info-card__icon,
.extra-request__icon {
 font-size: 18px;
 line-height: 1;
}

.info-card__title,
.extra-request__title {
 margin: 0;
 font-size: 16px;
 font-family: "Space Grotesk", sans-serif;
}

.info-card__steps {
 margin: 0;
 padding: 0;
 list-style: none;
 display: grid;
 gap: 10px;
}

.info-card__step {
 display: flex;
 gap: 10px;
}

.info-card__step-num {
 flex: 0 0 24px;
 width: 24px;
 height: 24px;
 border-radius: 50%;
 display: grid;
 place-items: center;
 font-size: 12px;
 font-weight: 700;
 background: linear-gradient(135deg, #ff3d6d, #7b5cff);
 color: #fff;
}

.info-card__step-body strong {
 display: block;
 font-size: 13px;
}

.info-card__step-body span,
.extra-request__desc {
 display: block;
 font-size: 12px;
 color: #555;
 line-height: 1.45;
}

.info-card__reassure {
 margin-top: 12px;
 padding: 10px 12px;
 border-radius: 10px;
 background: #f8f8ff;
 font-size: 12px;
 color: #333;
}

.info-card__reassure a {
 color: #6d4dfc;
 font-weight: 600;
}

.extra-request {
 margin-top: 18px;
}

.extra-request__examples {
 display: flex;
 flex-wrap: wrap;
 gap: 8px;
 margin: 10px 0 12px;
}

.extra-request__tag {
 padding: 6px 10px;
 border-radius: 999px;
 background: #f3f0ff;
 border: 1px solid #e5ddff;
 font-size: 11px;
 color: #4a3a8a;
}

.form-input.is-error,
.form-textarea.is-error {
 border-color: #ef4444 !important;
 background: #fef2f2 !important;
 animation: formFieldShake 0.4s ease;
}

@keyframes formFieldShake {
 0%,
 100% {
 transform: translateX(0);
 }
 25% {
 transform: translateX(-4px);
 }
 75% {
 transform: translateX(4px);
 }
}

.success-overlay {
 position: fixed;
 inset: 0;
 background: rgba(10, 10, 15, 0.95);
 backdrop-filter: blur(20px);
 z-index: 1000;
 display: grid;
 place-items: center;
 opacity: 0;
 transition: opacity 0.5s ease;
}

.success-overlay.is-visible {
 opacity: 1;
}

.success-box {
 background: #fff;
 padding: 48px 40px;
 border-radius: 20px;
 max-width: 480px;
 text-align: center;
 box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
 transform: translateY(20px);
 transition: transform 0.5s ease;
}

.success-overlay.is-visible .success-box {
 transform: translateY(0);
}

.success-icon {
 font-size: 56px;
 margin-bottom: 16px;
 animation: successBounce 0.8s ease;
}

@keyframes successBounce {
 0%,
 100% {
 transform: translateY(0);
 }
 50% {
 transform: translateY(-12px);
 }
}

.success-title {
 font-family: "Space Grotesk", sans-serif;
 font-size: 28px;
 font-weight: 800;
 background: linear-gradient(135deg, #ff3d6d, #7b5cff);
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
 background-clip: text;
 margin-bottom: 16px;
}

.success-subtitle {
 margin: 0 0 14px;
 font-size: 15px;
 color: #333;
}

.success-timeline {
 text-align: left;
 border-radius: 12px;
 background: #fafafa;
 border: 1px solid #eee;
 padding: 12px;
 margin-bottom: 14px;
}

.success-step {
 display: flex;
 gap: 10px;
}

.success-step + .success-step {
 margin-top: 10px;
}

.success-step__dot {
 flex: 0 0 22px;
 width: 22px;
 height: 22px;
 border-radius: 50%;
 display: grid;
 place-items: center;
 font-size: 12px;
 font-weight: 700;
 background: #eee;
 color: #555;
}

.success-step strong {
 display: block;
 font-size: 13px;
 color: #222;
}

.success-step span {
 display: block;
 font-size: 12px;
 color: #666;
}

.success-step--done .success-step__dot {
 background: #19b36b;
 color: #fff;
}

.success-step--next .success-step__dot {
 background: #7b5cff;
 color: #fff;
}

.success-text {
 font-size: 15px;
 color: #333;
 line-height: 1.6;
 margin-bottom: 20px;
}

.success-info {
 font-size: 13px;
 color: #666;
 padding: 16px;
 background: #f9f9f9;
 border-radius: 10px;
 margin-bottom: 28px;
 line-height: 1.5;
}

.success-cta {
 display: inline-block;
 padding: 14px 32px;
 background: linear-gradient(135deg, #ff3d6d, #7b5cff);
 color: #fff;
 text-decoration: none;
 border-radius: 10px;
 font-weight: 600;
 font-size: 14px;
 transition:
 transform 0.3s,
 box-shadow 0.3s;
}

.success-cta:hover {
 transform: translateY(-2px);
 box-shadow: 0 10px 30px rgba(255, 61, 109, 0.3);
}

.form-submit:disabled {
 opacity: 0.7;
 cursor: not-allowed;
 transform: none !important;
}

/* ==========================================
 BANDEAU EXPLICATIF SUR LES TEXTES
 ========================================== */

.text-info {
 margin: 0 24px 28px;
 padding: 22px 24px;
 background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
 border: 1px solid rgba(14, 165, 233, 0.15);
 border-radius: 14px;
 position: relative;
}

.text-info__head {
 display: flex;
 align-items: center;
 gap: 10px;
 margin-bottom: 14px;
}

.text-info__icon {
 font-size: 22px;
}

.text-info__title {
 font-family: "Space Grotesk", sans-serif;
 font-size: 15px;
 font-weight: 700;
 color: #0a0a0a;
 margin: 0;
}

.text-info__body {
 display: flex;
 flex-direction: column;
 gap: 14px;
}

.text-info__main {
 font-size: 13px;
 color: #334155;
 line-height: 1.6;
 margin: 0;
}

.text-info__main strong {
 color: #0284c7;
 font-weight: 600;
}

.text-info__cta {
 display: flex;
 gap: 10px;
 align-items: flex-start;
 padding: 12px 14px;
 background: rgba(255, 255, 255, 0.7);
 border-radius: 10px;
 border-left: 3px solid #0ea5e9;
}

.text-info__cta-icon {
 font-size: 16px;
 flex-shrink: 0;
}

.text-info__cta p {
 font-size: 12px;
 color: #334155;
 line-height: 1.5;
 margin: 0;
}

.text-info__link {
 color: #0284c7;
 font-weight: 600;
 text-decoration: none;
 border-bottom: 1px dashed #0284c7;
 cursor: pointer;
 display: inline;
 margin-top: 2px;
}

.text-info__link:hover {
 color: #0369a1;
 border-bottom-style: solid;
}

/* ==========================================
 HIGHLIGHT QUAND ON ARRIVE SUR customRequests
 ========================================== */

#customRequests.is-highlighted {
 animation: highlightField 2s ease;
 border-color: #7b5cff;
}

@keyframes highlightField {
 0% {
 box-shadow: 0 0 0 0 rgba(123, 92, 255, 0.4);
 background: #f5f0ff;
 }
 50% {
 box-shadow: 0 0 0 10px rgba(123, 92, 255, 0);
 background: #f5f0ff;
 }
 100% {
 box-shadow: 0 0 0 0 rgba(123, 92, 255, 0);
 background: #fff;
 }
}

/* Responsive */
@media (max-width: 600px) {
 .text-info {
 margin-left: 12px;
 margin-right: 12px;
 padding: 18px;
 }
}

/* ==========================================
 PAGE SWITCHER (onglets de page)
 ========================================== */

.page-switcher {
 position: fixed;
 top: 60px;
 left: 0;
 right: 0;
 z-index: 90;
 display: flex;
 gap: 4px;
 padding: 12px 20px;
 background: rgba(10, 10, 15, 0.95);
 backdrop-filter: blur(10px);
 border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* [hidden] seul est écrasé par display:flex ci-dessus — forcer le masquage (mode une page) */
.page-switcher[hidden] {
 display: none !important;
}

/* Mode une page : pas de barre d’onglets → moins de marge sous le header fixe */
body.editor--onepage .editor-main {
 padding-top: 60px;
}

@media (max-width: 1100px) {
 body.editor--onepage .editor-main {
 padding-top: 60px;
 }
}

@media (max-width: 600px) {
 body.editor--onepage .editor-main {
 padding-top: 60px;
 }
}

.page-switcher__tab {
 flex: 1;
 display: flex;
 align-items: center;
 gap: 10px;
 padding: 12px 16px;
 background: transparent;
 border: 1px solid rgba(255, 255, 255, 0.08);
 border-radius: 10px;
 color: rgba(255, 255, 255, 0.5);
 cursor: pointer;
 font-family: "Inter", sans-serif;
 transition: all 0.3s ease;
 text-align: left;
}

.page-switcher__tab:hover {
 background: rgba(255, 255, 255, 0.05);
 color: rgba(255, 255, 255, 0.8);
 border-color: rgba(255, 255, 255, 0.15);
}

.page-switcher__tab.is-active {
 background: linear-gradient(135deg, rgba(255, 61, 109, 0.15), rgba(123, 92, 255, 0.15));
 border-color: rgba(255, 61, 109, 0.4);
 color: #fff;
 box-shadow: 0 4px 20px rgba(255, 61, 109, 0.15);
}

.page-switcher__num {
 font-family: "Space Grotesk", sans-serif;
 font-size: 11px;
 font-weight: 700;
 letter-spacing: 0.1em;
 opacity: 0.6;
}

.page-switcher__tab.is-active .page-switcher__num {
 background: linear-gradient(135deg, #ff3d6d, #7b5cff);
 -webkit-background-clip: text;
 background-clip: text;
 -webkit-text-fill-color: transparent;
 opacity: 1;
}

.page-switcher__label {
 font-size: 13px;
 font-weight: 500;
}

@media (max-width: 900px) {
 .page-switcher {
 flex-wrap: wrap;
 }
 .page-switcher__tab {
 flex: 1 1 45%;
 }
 .page-switcher__num {
 display: none;
 }
}

.form-group[data-page]:not(.is-visible) {
 display: none;
}

.form-group:not([data-page]) {
 display: block;
}

.form-group__header {
 padding: 16px 24px;
 background: linear-gradient(135deg, #fff1f5, #f5f0ff);
 border-radius: 12px;
 margin: 16px 24px;
 border-left: 3px solid #ff3d6d;
}

.form-group__icon {
 font-size: 20px;
 margin-right: 8px;
}

.form-group__title {
 font-family: "Space Grotesk", sans-serif;
 font-weight: 700;
 font-size: 14px;
 color: #0a0a0a;
}

.form-group__subtitle {
 display: block;
 font-size: 11px;
 color: #666;
 margin-top: 4px;
}

/* Boutons remove/add sections and repeat items */
.form-section__actions {
 margin-top: 24px;
 padding-top: 20px;
 border-top: 1px dashed #e0e0e0;
}

.btn-remove-section {
 width: 100%;
 padding: 12px 16px;
 background: transparent;
 border: 1.5px dashed #ef4444;
 color: #ef4444;
 border-radius: 8px;
 font-size: 13px;
 font-weight: 600;
 cursor: pointer;
 transition: all 0.3s ease;
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
}

.btn-remove-section:hover {
 background: #fef2f2;
 border-style: solid;
}

.btn-restore-section {
 width: 100%;
 padding: 12px 16px;
 background: #f0fdf4;
 border: 1.5px solid #10b981;
 color: #10b981;
 border-radius: 8px;
 font-size: 13px;
 font-weight: 600;
 cursor: pointer;
}

.form-section.is-removed {
 opacity: 0.55;
 position: relative;
}

.form-section.is-removed::before {
 content: "Section masquée sur votre site";
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 padding: 8px 16px;
 background: #fef3c7;
 color: #92400e;
 font-size: 11px;
 font-weight: 600;
 text-align: center;
 border-radius: 12px 12px 0 0;
 z-index: 5;
}

.form-sub-block__head {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-bottom: 14px;
}

.btn-remove-item {
 width: 28px;
 height: 28px;
 padding: 0;
 background: transparent;
 border: 1px solid #fca5a5;
 border-radius: 50%;
 cursor: pointer;
 font-size: 13px;
 display: grid;
 place-items: center;
 color: #ef4444;
 transition: all 0.3s ease;
}

.btn-remove-item:hover {
 background: #fef2f2;
 border-color: #ef4444;
 transform: scale(1.08);
}

.btn-add-item {
 width: 100%;
 padding: 14px 20px;
 background: linear-gradient(135deg, rgba(255, 61, 109, 0.08), rgba(123, 92, 255, 0.08));
 border: 2px dashed #7b5cff;
 border-radius: 10px;
 color: #7b5cff;
 font-size: 13px;
 font-weight: 600;
 cursor: pointer;
 transition: all 0.3s ease;
 margin: 12px 0;
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
}

.btn-add-item:hover {
 background: linear-gradient(135deg, rgba(255, 61, 109, 0.15), rgba(123, 92, 255, 0.15));
 transform: translateY(-2px);
 box-shadow: 0 6px 20px rgba(123, 92, 255, 0.15);
}

.btn-add-item:active {
 transform: translateY(0);
}

.form-sub-block {
 animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
 from {
 opacity: 0;
 transform: translateY(-12px);
 }
 to {
 opacity: 1;
 transform: translateY(0);
 }
}

/* Callout d'information avec lien vers autre page */
.form-info-callout {
 margin: 16px 0;
 padding: 16px 18px;
 background: linear-gradient(
 135deg,
 rgba(123, 92, 255, 0.06),
 rgba(255, 61, 109, 0.06)
 );
 border: 1px solid rgba(123, 92, 255, 0.2);
 border-radius: 12px;
 display: flex;
 gap: 12px;
 align-items: flex-start;
}

.form-info-callout__icon {
 font-size: 20px;
 flex-shrink: 0;
 margin-top: 1px;
}

.form-info-callout__content {
 flex: 1;
}

.form-info-callout__content strong {
 display: block;
 font-size: 13px;
 color: #0a0a0a;
 margin-bottom: 4px;
}

.form-info-callout__content p {
 font-size: 12px;
 color: #555;
 line-height: 1.5;
 margin: 0 0 10px;
}

button.form-info-callout__link {
 font: inherit;
 background: none;
 border: none;
 padding: 0;
}

.form-info-callout__link {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 font-size: 12px;
 color: #7b5cff;
 font-weight: 600;
 text-decoration: none;
 border-bottom: 1px dashed #7b5cff;
 transition: all 0.3s;
 cursor: pointer;
}

.form-info-callout__link:hover {
 color: #5d3dff;
 border-bottom-style: solid;
}

.form-section.is-highlighted {
 animation: highlightSection 2s ease;
}

@keyframes highlightSection {
 0% {
 background: rgba(123, 92, 255, 0.1);
 box-shadow: 0 0 0 4px rgba(123, 92, 255, 0.15);
 }
 100% {
 background: transparent;
 box-shadow: 0 0 0 0 transparent;
 }
}

/* Modale confort (téléphone) */
.editor-comfort-modal[hidden] {
  display: none !important;
}

.editor-comfort-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  box-sizing: border-box;
}

body.editor-comfort-modal--open {
  overflow: hidden;
}

.editor-comfort-modal__backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(18, 12, 32, 0.72) 0%, rgba(8, 6, 20, 0.58) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.editor-comfort-modal__panel {
  position: relative;
  z-index: 1;
  max-width: 22.5rem;
  width: 100%;
  max-height: min(90vh, 40rem);
  margin: 0;
  display: flex;
  flex-direction: column;
  filter: drop-shadow(0 28px 50px rgba(20, 10, 50, 0.35));
}

@media (prefers-reduced-motion: no-preference) {
  .editor-comfort-modal__panel {
    animation: editorModalIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes editorModalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.editor-comfort-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 3;
  width: 2.65rem;
  height: 2.65rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.97);
  color: #1a1a1f;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 300;
  font-family: system-ui, sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06) inset,
    0 8px 24px rgba(20, 10, 50, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.editor-comfort-modal__close:hover {
  background: #fff;
  transform: scale(1.04);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.07) inset,
    0 10px 28px rgba(20, 10, 50, 0.24);
}

.editor-comfort-modal__close:focus-visible {
  outline: 2px solid #7b5cff;
  outline-offset: 2px;
}

.editor-comfort-modal .form-phone-gate {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  text-align: center;
  padding: clamp(1.1rem, 3.5vw, 1.25rem) 1.1rem clamp(1.75rem, 5vw, 2.75rem);
  padding-top: clamp(2.2rem, 5vw, 2.5rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(123, 92, 255, 0.1) 0%, transparent 50%),
    radial-gradient(90% 80% at 100% 30%, rgba(0, 229, 255, 0.09) 0%, transparent 48%),
    linear-gradient(180deg, #faf8ff 0%, #f5f1fd 40%, #ffffff 100%);
  border-radius: 20px;
}
.editor-comfort-modal .form-phone-gate__glow {
 position: absolute;
 pointer-events: none;
 top: -40%;
 left: 50%;
 width: 140%;
 max-width: 32rem;
 height: 70%;
 transform: translateX(-50%);
 background: radial-gradient(ellipse 55% 45% at 50% 0%, rgba(123, 92, 255, 0.22) 0%, transparent 70%);
 filter: blur(28px);
 opacity: 0.85;
 z-index: 0;
}

.editor-comfort-modal .form-phone-gate__card {
 position: relative;
 z-index: 1;
 max-width: 22.5rem;
 margin: 0 auto;
 padding: 1.35rem 1.15rem 1.4rem;
 border-radius: 20px;
 background: linear-gradient(145deg, rgba(255, 255, 255, 0.97) 0%, rgba(252, 250, 255, 0.98) 100%);
 border: 1px solid rgba(123, 92, 255, 0.12);
 box-shadow:
 0 0 0 1px rgba(255, 255, 255, 0.85) inset,
 0 1px 1px rgba(10, 10, 15, 0.04),
 0 18px 50px -18px rgba(60, 40, 120, 0.18);
}

@media (prefers-reduced-motion: no-preference) {
 .editor-comfort-modal .form-phone-gate__card {
 animation: formPhoneGateEntry 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
 }
}

@keyframes formPhoneGateEntry {
 from {
 opacity: 0;
 transform: translateY(10px) scale(0.985);
 }
 to {
 opacity: 1;
 transform: translateY(0) scale(1);
 }
}

.editor-comfort-modal .form-phone-gate__icon-wrap {
 display: flex;
 justify-content: center;
 margin: 0 0 0.9rem;
}

.editor-comfort-modal .form-phone-gate__icon-ring {
 position: relative;
 width: 4.5rem;
 height: 4.5rem;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 background: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(245, 240, 255, 0.9));
 box-shadow:
 0 0 0 1px rgba(123, 92, 255, 0.15) inset,
 0 10px 28px rgba(123, 92, 255, 0.2);
}

.editor-comfort-modal .form-phone-gate__icon-ring::before {
 content: "";
 position: absolute;
 inset: -2px;
 border-radius: inherit;
 background: linear-gradient(135deg, #ff3d6d, #7b5cff, #00e5ff);
 z-index: -1;
 opacity: 0.5;
 filter: blur(8px);
}

.editor-comfort-modal .form-phone-gate__icon {
 width: 1.9rem;
 height: 1.9rem;
 display: block;
}

.editor-comfort-modal .form-phone-gate__kicker {
 margin: 0 0 0.45rem;
 font-size: 0.62rem;
 font-weight: 800;
 letter-spacing: 0.28em;
 text-transform: uppercase;
 color: #7b5cff;
 opacity: 0.9;
}

.editor-comfort-modal .form-phone-gate__title {
 margin: 0 0 0.65rem;
 font-family: "Space Grotesk", sans-serif;
 font-weight: 800;
 font-size: clamp(1.1rem, 3.2vw, 1.4rem);
 line-height: 1.2;
 letter-spacing: -0.03em;
 color: #0a0a0a;
}

.editor-comfort-modal .form-phone-gate__text {
 margin: 0 0 0.9rem;
 color: #5a5a62;
 font-size: 0.84rem;
 line-height: 1.6;
 text-align: left;
}

.editor-comfort-modal .form-phone-gate__text strong {
 color: #0a0a0a;
 font-weight: 600;
}

.editor-comfort-modal .form-phone-gate__chips {
 list-style: none;
 margin: 0 0 1.1rem;
 padding: 0;
 text-align: left;
 display: flex;
 flex-direction: column;
 gap: 0.4rem;
}

.editor-comfort-modal .form-phone-gate__chips li {
 display: flex;
 align-items: flex-start;
 gap: 0.4rem;
 font-size: 0.8rem;
 line-height: 1.4;
 color: #3d3d45;
 padding: 0.38rem 0.55rem 0.38rem 0.4rem;
 background: linear-gradient(90deg, rgba(123, 92, 255, 0.06) 0%, rgba(0, 229, 255, 0.04) 100%);
 border-radius: 10px;
 border: 1px solid rgba(123, 92, 255, 0.1);
}

.editor-comfort-modal .form-phone-gate__chip-ico {
 flex-shrink: 0;
 width: 1.1rem;
 height: 1.1rem;
 margin-top: 0.06rem;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 font-size: 0.58rem;
 font-weight: 800;
 color: #5d3dff;
 background: rgba(255, 255, 255, 0.9);
 border: 1px solid rgba(123, 92, 255, 0.2);
 border-radius: 50%;
}

.editor-comfort-modal .form-phone-gate__call {
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 0.15rem;
 padding: 0.7rem 1rem;
 border-radius: 14px;
 text-decoration: none;
 color: #0a0a0a;
 background: linear-gradient(135deg, #fff, #f8f5ff);
 border: 1px solid rgba(123, 92, 255, 0.18);
 box-shadow: 0 4px 18px rgba(90, 60, 200, 0.12);
 transition:
 box-shadow 0.25s ease,
 transform 0.2s ease,
 border-color 0.2s ease;
}

.editor-comfort-modal .form-phone-gate__call:hover {
 box-shadow: 0 6px 26px rgba(90, 60, 200, 0.18);
 transform: translateY(-1px);
 border-color: rgba(123, 92, 255, 0.3);
}

.editor-comfort-modal .form-phone-gate__call-label {
 font-size: 0.66rem;
 font-weight: 600;
 letter-spacing: 0.06em;
 text-transform: uppercase;
 color: #6b5f8a;
}

.editor-comfort-modal .form-phone-gate__call-number {
 font-family: "Space Grotesk", sans-serif;
 font-size: 1.05rem;
 font-weight: 700;
 letter-spacing: 0.04em;
 background: linear-gradient(118deg, #ff3d6d, #7b5cff, #00e5ff);
 -webkit-background-clip: text;
 background-clip: text;
 color: transparent;
}
