/* ============================================================
   AL SOUDANI — Page Contact
   Styles spécifiques à cette page seulement.
   Reset, variables et header/footer → header.css / footer.css
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,700;1,400&family=Manrope:wght@300;400;500;600;700&display=swap");

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--background);
    color: var(--on-surface);
    font-family: "Manrope", sans-serif;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.material-symbols-outlined.filled {
    font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* ============================================================
   CONTACT — STRUCTURE DE PAGE
   ============================================================ */
.page-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 128px 24px 80px;
}

.hero-section { margin-bottom: 80px; }

.hero-grid,
.content-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.hero-grid {
    align-items: center;
    gap: 48px;
}

.eyebrow {
    display: block;
    margin-bottom: 16px;
    color: var(--secondary-container);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 0 0 24px;
    color: var(--on-background);
    font-family: "Noto Serif", serif;
    font-size: clamp(48px, 7vw, 72px);
    font-weight: 700;
    line-height: 1.05;
}

.hero-copy h1 span {
    color: var(--primary);
    font-style: italic;
}

.hero-copy p {
    max-width: 448px;
    margin: 0;
    color: var(--on-surface-variant);
    font-size: 18px;
    line-height: 1.7;
}

.hero-media { position: relative; }

.hero-image-main,
.hero-image-accent,
.gallery-grid div,
.map-section { overflow: hidden; }

.hero-image-main {
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.hero-image-main img,
.hero-image-accent img,
.gallery-grid img,
.map-section > img { width: 100%; height: 100%; object-fit: cover; }

.hero-image-accent {
    display: none;
    position: absolute;
    left: -32px;
    bottom: -32px;
    width: 192px;
    height: 192px;
    border: 4px solid var(--surface);
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.content-grid { gap: 32px; }

.booking-panel,
.info-card { border-radius: 12px; }

.booking-panel {
    background: var(--surface-container-low);
    padding: 32px;
    box-shadow: 0 20px 35px rgba(0,0,0,0.28);
}

#online-booking {
    scroll-margin-top: 110px;
}

.booking-panel h2,
.info-card h3,
.map-marker-card h4 { font-family: "Noto Serif", serif; font-weight: 700; }

.booking-panel h2 {
    margin: 0 0 32px;
    color: var(--primary);
    font-size: 30px;
}

.booking-form {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px;
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field label { color: var(--tertiary); font-size: 14px; }

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: var(--surface-container-highest);
    color: var(--on-surface);
    outline: 0;
    padding: 16px;
    transition: box-shadow 0.3s ease;
}

.field textarea { resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus { box-shadow: 0 0 0 2px var(--secondary-container); }

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
    box-shadow: 0 0 0 2px var(--primary-container);
}

.submit-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    font-size: 18px;
    border: 0;
    border-radius: 999px;
    background: var(--primary-container);
    color: #fffafa;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.submit-button:hover  { opacity: 0.92; }
.submit-button:active { transform: scale(0.98); }
.submit-button:disabled {
    cursor: wait;
    opacity: 0.82;
}

.submit-button.is-loading {
    pointer-events: none;
}

.submit-button-spinner {
    display: none;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border: 2px solid rgba(255, 250, 250, 0.45);
    border-top-color: #fffafa;
    border-radius: 50%;
    animation: al-soudani-spin 0.8s linear infinite;
}

.submit-button.is-loading .submit-button-spinner {
    display: inline-block;
}

@keyframes al-soudani-spin {
    to { transform: rotate(360deg); }
}

.booking-form-message {
    margin: 14px 0 0;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.booking-form-message.is-success {
    color: #2e7d32;
}

.info-stack { display: flex; flex-direction: column; gap: 32px; }

.info-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: var(--surface-container-high);
    padding: 32px;
}

.info-card h3 { margin: 0; color: var(--secondary-container); font-size: 20px; }

.contact-row { display: flex; align-items: flex-start; gap: 16px; }

.contact-row .material-symbols-outlined { color: var(--primary); }

.contact-row p {
    margin: 0 0 4px;
    color: var(--tertiary);
    font-size: 14px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.contact-row strong {
    color: var(--on-surface);
    font-weight: 500;
    line-height: 1.5;
}

.hours-list { display: flex; flex-direction: column; gap: 16px; }

.hours-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--outline-variant);
    padding-bottom: 8px;
}

.hours-list span { color: var(--on-surface); }
.hours-list strong { color: var(--primary); font-weight: 700; }

.map-section {
    position: relative;
    height: 500px;
    margin-top: 80px;
    border-radius: 12px;
}

.map-section > img {
    filter: grayscale(1) brightness(0.5);
    transition: filter 0.7s ease;
}

.map-section:hover > img { filter: grayscale(0) brightness(0.5); }

.map-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--background), transparent, transparent);
}

.map-marker-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(320px, calc(100% - 32px));
    border: 1px solid rgba(93, 63, 60, 0.15);
    border-radius: 12px;
    background: rgba(28, 27, 27, 0.9);
    box-shadow: 0 25px 50px rgba(0,0,0,0.45);
    padding: 24px;
    text-align: center;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(12px);
}

.map-marker-card .material-symbols-outlined {
    color: var(--primary-container);
    font-size: 40px;
    margin-bottom: 8px;
}

.map-marker-card h4 { margin: 0 0 4px; font-size: 20px; }

.map-marker-card p {
    margin: 0 0 16px;
    color: var(--on-surface-variant);
    font-size: 14px;
}

.map-marker-card button,
.map-marker-card a.map-open-btn {
    border: 0;
    border-radius: 999px;
    background: var(--secondary-container);
    color: var(--on-secondary-container);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 8px 24px;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.map-marker-card a.map-open-btn {
    background: #f2c94c !important;
    color: #1c1b1b !important;
    box-shadow: 0 3px 0 #c9a12f;
    padding: 8px 24px !important;
}

.map-marker-card button:hover,
.map-marker-card a.map-open-btn:hover { opacity: 0.8; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 80px;
}

.gallery-grid div { aspect-ratio: 1; border-radius: 8px; }

.gallery-grid img { filter: grayscale(1); transition: filter 0.5s ease; }
.gallery-grid div:hover img { filter: grayscale(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 768px) {
    .booking-panel { padding: 48px; }
    .booking-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .field-wide { grid-column: span 2; }
    .hero-image-accent { display: block; }
    .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-image-main { transform: rotate(2deg); }
    .content-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .booking-panel { grid-column: span 2; }
}

@media (max-width: 767px) {
    .nav-inner { padding: 14px 20px; }
    .primary-pill { padding: 8px 16px; }
    .page-shell { padding-top: 112px; }
    .booking-panel,
    .info-card { padding: 24px; }
}
