/* ============================================================
   ÉCOLE DE MUSIQUE DE NIORT — FEUILLE DE STYLE COMMUNE
   Modifier ici l'apparence des quatre pages.
   ============================================================ */
:root { color-scheme: light; font-family: Arial, Helvetica, sans-serif; color: #17212b; }
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    min-height: 100vh; margin: 0;
    background: #7193b1 url("images/ciel_nuages.jpg") center center / cover fixed no-repeat;
    font-size: 16px; line-height: 1.65;
}
a { color: #184f83; }
a:hover { color: #0a3154; }
/* Bandeau supérieur : titre et navigation */
.site-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.2rem; padding: .8rem clamp(1rem, 3vw, 3rem);
    background: rgba(246, 249, 253, .91);
    box-shadow: 0 2px 8px #18283c22;
}
.site-name { color: #a65b30; text-decoration: none; font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.45rem; font-style: italic; font-weight: bold; }
.site-header nav { display: flex; gap: clamp(.5rem, 1.7vw, 1.6rem); flex-wrap: wrap; }
.site-header nav a { color: #263545; text-decoration: none; font-size: .83rem; text-transform: uppercase; }
.site-header nav a:hover, .site-header nav a[aria-current] { text-decoration: underline; text-underline-offset: .35rem; }
/* Panneau central : lisible mais légèrement translucide */
.panel {
    width: min(100% - 2.4rem, 690px); margin: 2.8rem auto 4rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: rgba(255, 255, 255, .93);
    box-shadow: 0 5px 18px #142c4355;
    border: 1px solid #ffffff88;
}
h1 { color: #245da0; margin: 0 0 1.35rem; font-size: 1.85rem; font-family: "Brush Script MT", "Segoe Script", Georgia, serif; font-style: italic; }
h2 { color: #245da0; margin: 1.7rem 0 .45rem; font-size: 1.05rem; font-weight: 700; }
h2::before { content: "•"; color: #a65b30; padding-right: .65rem; }
p { margin: 0 0 1.1rem; }
.intro-line { line-height: 2.2; }
.contact-details { text-align: center; font-style: normal; margin: 1.7rem auto .2rem; }
.contact-details p { margin-bottom: .9rem; }
/* Formulaire : la confirmation masque les champs via contact.js */
.form-section { margin-top: 2.2rem; border-top: 1px solid #bdcbd8; padding-top: 1.3rem; }
.form-section h2::before { content: none; }
form { display: grid; gap: .45rem; }
form label { font-weight: 600; }
form input, form textarea { width: 100%; font: inherit; padding: .65rem; border: 1px solid #8998a5; border-radius: 4px; background: #fff; margin-bottom: .7rem; }
form input:focus, form textarea:focus { outline: 2px solid #527ea8; outline-offset: 2px; }
.form-buttons { display: flex; justify-content: center; gap: 1rem; margin-top: .3rem; }
button { border: 0; border-radius: 4px; background: #225b88; color: #fff; font: inherit; padding: .65rem 1.35rem; cursor: pointer; }
button.secondary { background: #617080; }
button:hover { filter: brightness(.9); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { text-align: center; font-weight: 600; }
/* ============================================================
   VERSION SMARTPHONE : règles indépendantes de la version PC.
   ============================================================ */
@media (max-width: 700px) {
    body { background-attachment: scroll; background-position: center top; }
    .site-header { flex-direction: column; text-align: center; padding: .9rem .7rem; }
    .site-header nav { justify-content: center; gap: .65rem 1rem; }
    .site-header nav a { font-size: .78rem; }
    .panel { width: calc(100% - 1.3rem); margin: 1.1rem auto 2rem; padding: 1.35rem 1.15rem; }
    h1 { font-size: 1.7rem; }
    .contact-details { overflow-wrap: anywhere; }
}

/* Retouches propres à la page Contact */
.contact-details strong { color: #783c75; }
.form-section #form-heading { font-style: italic; font-size: 1.16rem; }
#contact-form > label { color: #a65b30; }

/* Décalage discret du nom du site vers la droite, sur ordinateur uniquement. */
@media (min-width: 701px) {
    .site-name { margin-left: 36px; }
}
