/* ==========================================================================
   PAD THAI - Styles
   Restaurant thaï à Gerpinnes
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
    /* Couleurs - Palette officielle */
    --carbon-black: #252825;
    --saddle-brown: #884021;
    --rusty-spice: #B1572A;
    --khaki-beige: #C7BBA1;
    --camel: #B99B7F;
    --white: #FFFFFF;

    /* Typographie */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Tailles de texte */
    --text-xs: 0.875rem;   /* 14px */
    --text-sm: 1rem;       /* 16px */
    --text-base: 1.125rem; /* 18px */
    --text-lg: 1.25rem;    /* 20px */
    --text-xl: 1.5rem;     /* 24px */
    --text-2xl: 2rem;      /* 32px */
    --text-3xl: 2.5rem;    /* 40px */
    --text-4xl: 3rem;      /* 48px */
    --text-5xl: 4rem;      /* 64px */

    /* Espacements */
    --space-1: 0.25rem;  /* 4px */
    --space-2: 0.5rem;   /* 8px */
    --space-3: 0.75rem;  /* 12px */
    --space-4: 1rem;     /* 16px */
    --space-5: 1.5rem;   /* 24px */
    --space-6: 2rem;     /* 32px */
    --space-8: 3rem;     /* 48px */
    --space-10: 4rem;    /* 64px */
    --space-12: 5rem;    /* 80px */
    --space-16: 8rem;    /* 128px */

    /* Rayons de bordure */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Ombres */
    --shadow-sm: 0 1px 2px rgba(37, 40, 37, 0.05);
    --shadow-md: 0 4px 6px rgba(37, 40, 37, 0.07);
    --shadow-lg: 0 10px 15px rgba(37, 40, 37, 0.1);
    --shadow-xl: 0 20px 25px rgba(37, 40, 37, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;
}

/* --------------------------------------------------------------------------
   CSS Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--carbon-black);
    background-color: var(--khaki-beige);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

address {
    font-style: normal;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--carbon-black);
}

h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
}

h2 {
    font-size: var(--text-2xl);
}

h3 {
    font-size: var(--text-xl);
}

p {
    max-width: 65ch;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: var(--space-6);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--rusty-spice);
    margin: var(--space-4) auto 0;
    border-radius: var(--radius-full);
}

/* Links */
a:focus-visible {
    outline: 2px solid var(--rusty-spice);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1;
    border-radius: var(--radius-md);
    min-height: 44px;
    min-width: 44px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn svg {
    flex-shrink: 0;
}

.btn--primary {
    background: var(--rusty-spice);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--saddle-brown);
}

.btn--primary:focus-visible {
    outline: 2px solid var(--saddle-brown);
    outline-offset: 2px;
}

.btn--secondary {
    background: transparent;
    color: var(--saddle-brown);
    border: 2px solid var(--saddle-brown);
}

.btn--secondary:hover {
    background: var(--saddle-brown);
    color: var(--white);
}

.btn--secondary:focus-visible {
    outline: 2px solid var(--saddle-brown);
    outline-offset: 2px;
}

.btn--large {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
    min-height: 52px;
}

.btn--disabled,
.btn:disabled {
    background: var(--camel);
    color: var(--carbon-black);
    opacity: 0.5;
    cursor: not-allowed;
}

.btn--disabled:hover,
.btn:disabled:hover {
    background: var(--camel);
}

/* --------------------------------------------------------------------------
   Bandeau Alerte
   -------------------------------------------------------------------------- */
.bandeau-alerte {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--rusty-spice);
    color: var(--white);
    padding: var(--space-3) var(--space-4);
}

.bandeau-alerte[hidden] {
    display: none;
}

.bandeau-alerte__content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
}

.bandeau-alerte__message {
    font-size: var(--text-sm);
    font-weight: 500;
    text-align: center;
}

.bandeau-alerte__close {
    color: var(--white);
    padding: var(--space-1);
    border-radius: var(--radius-sm);
    transition: opacity var(--transition-fast);
}

.bandeau-alerte__close:hover {
    opacity: 0.8;
}

.bandeau-alerte__close:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* Types de bandeau */
.bandeau-alerte--info {
    background: #0288D1;
}

.bandeau-alerte--warning {
    background: var(--rusty-spice);
}

.bandeau-alerte--success {
    background: #2E7D32;
}

/* Body padding quand bandeau visible */
body.has-alert {
    padding-top: 48px;
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--khaki-beige);
    border-bottom: 1px solid rgba(37, 40, 37, 0.1);
}

body.has-alert .header {
    top: 48px;
}

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-4) var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

.nav__logo {
    display: flex;
    align-items: center;
}

.nav__logo img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav__links a {
    font-weight: 500;
    color: var(--carbon-black);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
}

.nav__links a:hover {
    color: var(--rusty-spice);
}

.nav__cta span {
    display: none;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: var(--space-8) var(--space-5);
    overflow: hidden;
}

.hero__container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: center;
}

.hero__content {
    max-width: 540px;
}

.hero__title {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-3);
    color: var(--carbon-black);
}

.hero__subtitle {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--saddle-brown);
    margin-bottom: var(--space-5);
}

.hero__description {
    font-size: var(--text-base);
    color: var(--carbon-black);
    opacity: 0.85;
    margin-bottom: var(--space-6);
    line-height: 1.7;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.hero__phone {
    font-family: var(--font-display);
    font-size: var(--text-xl);
}

.hero__phone a {
    color: var(--rusty-spice);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.hero__phone a:hover {
    color: var(--saddle-brown);
}

.hero__visual {
    position: relative;
}

.hero__image {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   Infos Section
   -------------------------------------------------------------------------- */
.infos {
    background: var(--white);
    padding: var(--space-12) var(--space-5);
}

.infos__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.infos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.infos__card {
    background: var(--khaki-beige);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    text-align: center;
}

.infos__icon {
    margin: 0 auto var(--space-4);
    color: var(--rusty-spice);
}

.infos__card h3 {
    margin-bottom: var(--space-3);
    color: var(--carbon-black);
}

.infos__card address,
.infos__card p {
    margin-bottom: var(--space-3);
    line-height: 1.7;
}

.infos__detail {
    display: block;
    font-size: var(--text-xs);
    color: var(--saddle-brown);
    margin-top: var(--space-2);
}

.infos__closed {
    color: var(--rusty-spice);
    font-size: var(--text-xs);
}

.infos__phone {
    display: inline-block;
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--rusty-spice);
    margin-top: var(--space-2);
    transition: color var(--transition-fast);
}

.infos__phone:hover {
    color: var(--saddle-brown);
}

.infos__card .btn {
    margin-top: var(--space-4);
}

/* --------------------------------------------------------------------------
   Menu Section
   -------------------------------------------------------------------------- */
.menu {
    padding: var(--space-12) var(--space-5);
}

.menu__container {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.menu__intro {
    max-width: 600px;
    margin: 0 auto var(--space-8);
    font-size: var(--text-base);
    opacity: 0.85;
}

.menu__visual {
    margin-bottom: var(--space-6);
}

.menu__image-wrapper {
    display: inline-block;
    position: relative;
    cursor: zoom-in;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.menu__image-wrapper:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.menu__image-wrapper:focus-visible {
    outline: 3px solid var(--rusty-spice);
    outline-offset: 3px;
}

.menu__image {
    display: block;
    max-width: 100%;
    height: auto;
}

.menu__zoom-hint {
    position: absolute;
    bottom: var(--space-4);
    right: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(37, 40, 37, 0.85);
    color: var(--white);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 500;
}

.menu__btn {
    margin-top: var(--space-4);
}

/* --------------------------------------------------------------------------
   Take-away Section
   -------------------------------------------------------------------------- */
.takeaway {
    background: var(--camel);
    padding: var(--space-10) var(--space-5);
}

.takeaway__container {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.takeaway__text {
    margin: 0 auto var(--space-5);
    font-size: var(--text-base);
    opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Réseaux Sociaux Section
   -------------------------------------------------------------------------- */
.reseaux {
    padding: var(--space-10) var(--space-5);
}

.reseaux__container {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.reseaux__links {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    margin-top: var(--space-6);
}

.reseaux__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    color: var(--carbon-black);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.reseaux__link:hover {
    color: var(--rusty-spice);
    background: rgba(177, 87, 42, 0.1);
}

.reseaux__link:focus-visible {
    outline: 2px solid var(--rusty-spice);
    outline-offset: 2px;
}

.reseaux__link span {
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Avis Section
   -------------------------------------------------------------------------- */
.avis {
    background: var(--white);
    padding: var(--space-10) var(--space-5);
}

.avis__container {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.avis__text {
    margin: 0 auto var(--space-6);
    font-size: var(--text-base);
    opacity: 0.85;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background: var(--carbon-black);
    color: var(--khaki-beige);
    padding: var(--space-10) var(--space-5) var(--space-6);
}

.footer__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer__brand {
    text-align: center;
    margin-bottom: var(--space-8);
}

.footer__logo {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    border-radius: var(--radius-md);
}

.footer__name {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    margin: 0 auto var(--space-2);
}

.footer__tagline {
    font-size: var(--text-sm);
    opacity: 0.8;
    margin: 0 auto var(--space-6);
}

.footer__info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid rgba(199, 187, 161, 0.2);
}

.footer__info h3 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--white);
    margin-bottom: var(--space-4);
}

.footer__contact address {
    line-height: 1.8;
    opacity: 0.85;
}

.footer__phone {
    display: inline-block;
    margin-top: var(--space-3);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--rusty-spice);
    transition: color var(--transition-fast);
}

.footer__phone:hover {
    color: var(--camel);
}

.footer__hours p {
    line-height: 1.8;
    opacity: 0.85;
}

.footer__social-links {
    display: flex;
    gap: var(--space-4);
}

.footer__social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--camel);
    background: rgba(185, 155, 127, 0.15);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.footer__social-links a:hover {
    color: var(--white);
    background: var(--rusty-spice);
}

.footer__social-links a:focus-visible {
    outline: 2px solid var(--rusty-spice);
    outline-offset: 2px;
}

.footer__bottom {
    padding-top: var(--space-6);
    text-align: center;
}

.footer__legal {
    font-size: var(--text-xs);
    opacity: 0.7;
    margin-bottom: var(--space-2);
}

.footer__copyright {
    font-size: var(--text-xs);
    opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox[hidden] {
    display: none;
}

.lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(37, 40, 37, 0.95);
}

.lightbox__content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
}

.lightbox__close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--white);
    background: rgba(177, 87, 42, 0.9);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.lightbox__close:hover {
    background: var(--rusty-spice);
    transform: scale(1.1);
}

.lightbox__close:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.lightbox__image {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

/* Body lock when lightbox open */
body.lightbox-open {
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Responsive - Tablet (768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --text-4xl: 2.5rem;
        --text-5xl: 3rem;
    }

    .nav__links {
        display: none;
    }

    .nav__cta span {
        display: inline;
    }

    .hero {
        min-height: auto;
        padding: var(--space-6) var(--space-5);
    }

    .hero__container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }

    .hero__content {
        max-width: 100%;
        order: 1;
    }

    .hero__visual {
        order: 0;
    }

    .hero__image {
        max-width: 400px;
        margin: 0 auto;
    }

    .hero__cta {
        justify-content: center;
    }

    .hero__phone {
        text-align: center;
    }

    .infos__grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .footer__info {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-6);
    }

    .footer__social-links {
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   Responsive - Mobile (480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    :root {
        --text-2xl: 1.75rem;
        --text-3xl: 2rem;
        --text-4xl: 2.25rem;
        --text-5xl: 2.5rem;
    }

    .nav {
        padding: var(--space-3) var(--space-4);
    }

    .nav__logo img {
        width: 48px;
        height: 48px;
    }

    .hero {
        padding: var(--space-5) var(--space-4);
    }

    .hero__image {
        max-width: 100%;
    }

    .hero__cta {
        flex-direction: column;
    }

    .hero__cta .btn {
        width: 100%;
    }

    .infos,
    .menu,
    .takeaway,
    .reseaux,
    .avis {
        padding: var(--space-8) var(--space-4);
    }

    .infos__card {
        padding: var(--space-5);
    }

    .reseaux__links {
        gap: var(--space-4);
    }

    .footer {
        padding: var(--space-8) var(--space-4) var(--space-5);
    }

    .lightbox__close {
        top: var(--space-2);
        right: var(--space-2);
    }
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
    .header,
    .bandeau-alerte,
    .lightbox,
    .btn,
    .footer__social-links {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero,
    .infos,
    .menu,
    .footer {
        background: white;
        color: black;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}
