/**
 * catalogo.css — V3 Art-Nando
 * CSS identique book.css V0 + animation wave
 */

/* ── Titre ────────────────────────────────────────────────────── */
#catalogue-section { padding: 0 0 4rem; min-height: 60vh; }
.cat-inner { max-width: 800px; margin: 0 auto; text-align: center; padding: 0 1rem; }
.cat-title {
    font-family: 'Varela Round', 'Questrial', sans-serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: #fff;
    margin: 2rem 0 1.5rem;
}

/* ── Wrapper — identique .rowform V0 ─────────────────────────── */
.rowform {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 25px auto 0;
    width: 100% !important;
}

/* ── Section formulaire — identique .sectionform V0 ─────────── */
.sectionform {
    background-color: rgb(200, 229, 227);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-width: 760px;
    border-radius: 12px;
}

/* ── Zones — identique V0 ─────────────────────────────────────── */
.headerform, .mainform, .formfooter { display: block; position: relative; z-index: 1; }
.headerform { padding: 48px; text-align: center; }
.headerform h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
    font-family: 'Varela Round', sans-serif;
}
.mainform { flex: 1; padding: 0 48px; }
.formfooter {
    width: 100%;
    background-color: rgb(68, 180, 196);
    padding: 16px;
    align-self: center;
    text-align: center;
    margin-top: 32px;
    color: #fff;
    font-size: .9rem;
    font-family: 'Varela Round', sans-serif;
}
.formfooter p { margin: 0 0 .8rem; }

/* ── Formulaire ───────────────────────────────────────────────── */
form#form-catalogo {
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: left;
}

/* ── Champs ──────────────────────────────────────────────────── */
.box-item { margin-bottom: 16px; }
.form-item { padding: 0 0 25px !important; }
.form-item-double {
    display: flex;
}
.form-item-double .form-item { flex: 1; }
.form-item-double .form-item:nth-child(1) { padding-right: 16px; }
.form-item-double .form-item:nth-child(2) { padding-left: 16px; }

.form-item input[type="text"],
.form-item input[type="email"],
.form-item textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(23,146,164,.5);
    padding: .4rem 0;
    color: #1792a4;
    font-size: .95rem;
    font-family: 'Varela Round', sans-serif;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s;
}
.form-item input:focus, .form-item textarea:focus { border-bottom-color: #1792a4; }
.form-item input::placeholder,
.form-item textarea::placeholder {
    color: #1792a4;
    opacity: .75;
    font-size: .9rem;
}
.form-item textarea { resize: vertical; min-height: 60px; }

/* Validation */
.form-item input.cat-valid,
.form-item textarea.cat-valid { border-bottom-color: #27ae60; }
.form-item input.cat-error,
.form-item textarea.cat-error { border-bottom-color: #e74c3c; }
.cat-err { display: none; color: #e74c3c; font-size: .75rem; margin-top: .2rem; }
.cat-counter { font-size: .75rem; color: #1792a4; display: block; text-align: right; }

/* ── Bouton — identique .submit V0 ───────────────────────────── */
.submit-btn {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 8px 48px;
    margin-top: 32px;
    background-color: rgb(23, 146, 164);
    border: 2px solid rgb(68, 180, 196);
    border-radius: 20px;
    cursor: pointer;
    transition: .2s;
    color: #fff;
    font-family: 'Varela Round', sans-serif;
}
.submit-btn:hover:not(:disabled) {
    background-color: rgb(68, 180, 196);
    border: 2px solid rgb(23, 146, 164);
}
.submit-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Wave animée — IDENTIQUE V0 ──────────────────────────────── */
.wave {
    position: absolute;
    top: 0;
    left: 50%;
    width: 800px;
    height: 800px;
    margin-top: -600px;
    margin-left: -400px;
    background: rgb(68, 180, 196);
    border-radius: 40%;
    animation: shift 30s linear infinite;
    z-index: 0;
}
@keyframes shift {
    0% { transform: rotate(360deg); }
}

/* ── Responsive tablette ─────────────────────────────────────── */
@media (max-width: 768px) {
    .cat-title { font-size: 1.7rem; }
    .headerform { padding: 32px; }
    .mainform { padding: 0 24px; }
    .form-item-double { flex-direction: column; }
    .form-item-double .form-item:nth-child(1) { padding-right: 0; }
    .form-item-double .form-item:nth-child(2) { padding-left: 0; }
    .submit-btn { width: 100%; padding: 10px; }
}

/* ── Responsive smartphone ───────────────────────────────────── */
@media (max-width: 480px) {
    .cat-title { font-size: 1.3rem; }
    .headerform { padding: 24px 16px; }
    .mainform { padding: 0 16px; }
}
