/* ============================================================
   AussiStay Insights — Global Stylesheet
   Palette :
     Primaire  : #1B6CA8 (bleu océan)
     Secondaire: #F5A623 (ocre soleil)
     Background: #F9F9F7
     Texte     : #2C2C2C
   Font : Poppins (Google Fonts)
   ============================================================ */

/* ── Variables ───────────────────────────────────────────── */
:root {
    --blue:      #1B6CA8;
    --blue-dark: #14517F;
    --blue-light:#E8F2FB;
    --gold:      #F5A623;
    --gold-dark: #D9891A;
    --bg:        #F9F9F7;
    --white:     #FFFFFF;
    --text:      #2C2C2C;
    --text-muted:#6B7280;
    --border:    #E2E8F0;
    --success:   #10B981;
    --error:     #EF4444;
    --radius:    10px;
    --shadow:    0 4px 20px rgba(27,108,168,.12);
    --transition:0.2s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Poppins', 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Conteneur ───────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--blue);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
}

.site-logo span { color: var(--gold); }

.site-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 1.5rem;
    transition: color var(--transition);
}
.site-nav a:hover { color: var(--blue); text-decoration: none; }

/* ── Hero / Landing ──────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--blue) 0%, #0D4A7A 100%);
    color: var(--white);
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(245,166,35,.2);
    border: 1px solid rgba(245,166,35,.5);
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    max-width: 800px;
    margin: 0 auto 1.2rem;
}

.hero h1 em {
    font-style: normal;
    color: var(--gold);
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.88;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

/* ── Trust badges ────────────────────────────────────────── */
.trust-strip {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-top: 2.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    opacity: 0.85;
}

.trust-item svg { flex-shrink: 0; }

/* ── Stats row ───────────────────────────────────────────── */
.stats-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
}

.stat-item { text-align: center; }

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue);
    display: block;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ── Section titres ──────────────────────────────────────── */
.section-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.section-sub {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

/* ── Order Form ──────────────────────────────────────────── */
.order-section {
    padding: 4rem 0;
}

.order-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 768px) {
    .order-layout { grid-template-columns: 1fr; }
}

/* Formulaire */
.order-form .card { padding: 2.5rem; }

.form-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group { margin-bottom: 1.2rem; }

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.form-group label span.required { color: var(--error); margin-left: 2px; }

.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(27,108,168,.15);
}

.form-control.error { border-color: var(--error); }

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-error {
    font-size: 0.8rem;
    color: var(--error);
    margin-top: 0.3rem;
    display: none;
}

/* Bouton CTA principal */
.btn-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 15px rgba(245,166,35,.4);
    margin-top: 0.5rem;
    font-family: inherit;
    letter-spacing: .01em;
}

.btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,166,35,.5);
}

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

.btn-order:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.btn-order .price {
    background: rgba(255,255,255,.2);
    padding: 0.15rem 0.7rem;
    border-radius: 50px;
    font-size: 0.95rem;
}

/* ── Panneau "Que contient le rapport" ───────────────────── */
.report-preview { }

.report-preview h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.report-sections { list-style: none; }

.report-sections li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

.report-sections li:last-child { border-bottom: none; }

.section-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--blue-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.section-info strong { display: block; font-weight: 600; color: var(--text); }
.section-info span   { color: var(--text-muted); font-size: 0.82rem; }

.report-price-tag {
    background: linear-gradient(135deg, var(--blue-light) 0%, #dbeeff 100%);
    border: 1.5px solid var(--blue);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.report-price-tag .price-big {
    font-size: 2rem;
    font-weight: 800;
    color: var(--blue);
}

.report-price-tag .price-note {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ── Features section ────────────────────────────────────── */
.features-section {
    padding: 4rem 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    padding: 1.75rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.feature-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ── Process steps ───────────────────────────────────────── */
.process-section { padding: 4rem 0; }

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    counter-reset: step-counter;
}

.process-step {
    text-align: center;
    padding: 1.5rem;
    position: relative;
}

.step-number {
    width: 52px;
    height: 52px;
    background: var(--blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 auto 1rem;
}

.process-step h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.process-step p { font-size: 0.82rem; color: var(--text-muted); }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.alert-success { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
.alert-error   { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.alert-info    { background: var(--blue-light); border: 1px solid #93C5FD; color: #1E3A5F; }
.alert-warning { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: #1A2332;
    color: rgba(255,255,255,.7);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    font-size: 0.88rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: rgba(255,255,255,.6); font-size: 0.88rem; }
.footer-links a:hover { color: var(--white); }

.footer-col-title {
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,.45);
}

/* ── Loader spinner ──────────────────────────────────────── */
.spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255,255,255,.4);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Success / Download pages ────────────────────────────── */
.page-center {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.status-card {
    text-align: center;
    max-width: 520px;
    width: 100%;
}

.status-icon {
    font-size: 4rem;
    margin-bottom: 1.25rem;
    display: block;
}

.status-card h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.status-card p { color: var(--text-muted); margin-bottom: 1.5rem; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 3px 12px rgba(27,108,168,.3);
}

.btn-primary:hover {
    background: var(--blue-dark);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(27,108,168,.4);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--blue);
    color: var(--blue);
}

.btn-outline:hover {
    background: var(--blue-light);
    text-decoration: none;
}

/* ── Admin ───────────────────────────────────────────────── */
.admin-header {
    background: #1A2332;
    color: var(--white);
    padding: 1rem 0;
}

.admin-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-badge {
    background: var(--gold);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.table-wrapper { overflow-x: auto; }

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.data-table th {
    background: var(--blue);
    color: var(--white);
    padding: 0.65rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.data-table tr:hover td { background: var(--bg); }

.badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success  { background: #ECFDF5; color: #065F46; }
.badge-warning  { background: #FFFBEB; color: #92400E; }
.badge-error    { background: #FEF2F2; color: #991B1B; }
.badge-info     { background: var(--blue-light); color: var(--blue-dark); }
.badge-default  { background: var(--border); color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════
   PHASE 3 — COUPON FIELD STYLES
   ══════════════════════════════════════════════════════════ */

/* Coupon row: input + button side by side */
.coupon-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.coupon-input {
    flex: 1;
    min-width: 0;
    font-family: monospace;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.coupon-input.coupon-applied {
    border-color: var(--success);
    background: #F0FFF4;
}

.coupon-btn {
    padding: 0 1.2rem;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}

.coupon-btn:hover:not(:disabled) { background: var(--blue-dark); }
.coupon-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Feedback message below the coupon row */
.coupon-feedback {
    margin-top: 0.45rem;
    font-size: 0.83rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
}

.coupon-feedback--success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.coupon-feedback--error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* Coupon group: extra bottom margin */
.coupon-group {
    margin-bottom: 1.5rem;
}

/* Price display: strikethrough when discount applied */
.price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85em;
    margin-right: 0.4rem;
}

/* Admin coupon badge status used inline */
.badge-coupon {
    background: #FFFBEB;
    color: #92400E;
    font-size: 0.72rem;
    padding: 1px 7px;
    border-radius: 20px;
    font-weight: 700;
    white-space: nowrap;
}

/* ── Responsive adjustments ──────────────────────────────── */
@media (max-width: 480px) {
    .hero { padding: 3rem 0 2.5rem; }
    .hero h1 { font-size: 1.65rem; }
    .order-form .card { padding: 1.5rem; }
    .btn-order { font-size: 0.95rem; }
    .stats-row { gap: 1rem; }
    .stat-number { font-size: 1.5rem; }
    .coupon-row { flex-direction: column; }
    .coupon-btn { width: 100%; padding: 0.65rem; }
}
