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

:root {
    /* Palette César Manrique - Lanzarote */
    --primary: #2d8a4e;        /* Vert végétal - jardins de Manrique */
    --primary-dark: #1e5c34;   /* Vert foncé */
    --secondary: #1a1a1a;      /* Noir volcanique */
    --accent: #c41e3a;         /* Rouge Manrique - touches de couleur */
    --light: #f5f5f5;          /* Blanc cassé - architecture locale */
    --white: #ffffff;          /* Blanc pur */
    --gray: #6c757d;
    --dark: #212529;
    --volcanic: #2c2c2c;       /* Roche volcanique */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

/* Navigation */
header {
    background: var(--secondary);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--volcanic) 50%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content .subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-content .dates {
    font-size: 1.2rem;
    background: var(--accent);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    display: inline-block;
    font-weight: 600;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Sections */
section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--secondary);
    text-align: center;
}

.intro {
    background: var(--light);
}

.intro p {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.family-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.family-info h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.family-info ul {
    list-style: none;
}

.family-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light);
}

.family-info li:last-child {
    border-bottom: none;
}

/* Highlights */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.highlight-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.highlight-card:hover {
    transform: translateY(-5px);
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.highlight-card h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.highlight-card p {
    color: var(--gray);
}

/* Footer */
footer {
    background: var(--secondary);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

/* Trip Overview */
.trip-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.overview-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.overview-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.overview-card h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.overview-card p {
    margin: 0.25rem 0;
    color: var(--gray);
}

.overview-card strong {
    color: var(--dark);
}

/* Family Section */
.family {
    background: var(--white);
}

.family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.family-member {
    text-align: center;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 10px;
}

.member-avatar {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.family-member h4 {
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.family-member .age {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Timeline */
.timeline {
    background: var(--light);
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 112px;
    top: 5px;
    width: 18px;
    height: 18px;
    background: var(--white);
    border: 3px solid var(--primary);
    border-radius: 50%;
}

.timeline-item.highlight::before {
    background: var(--primary);
}

.timeline-date {
    min-width: 100px;
    font-weight: 600;
    color: var(--secondary);
    text-align: right;
}

.timeline-content {
    flex: 1;
    padding-left: 2rem;
}

.timeline-content h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--gray);
    margin: 0.25rem 0;
}

/* Highlights Section */
.highlights {
    background: var(--white);
}

/* Reservations Page */
.page-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--volcanic) 100%);
    padding: 8rem 2rem 4rem;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.reservation-section {
    background: var(--white);
    margin: 2rem auto;
    max-width: 900px;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.reservation-section h2 {
    text-align: left;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.reservation-section h3 {
    color: var(--secondary);
    margin: 1.5rem 0 1rem;
    font-size: 1.2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    padding: 1rem;
    background: var(--light);
    border-radius: 8px;
}

.info-item .label {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.info-item .value {
    font-weight: 600;
    color: var(--dark);
}

.info-item .value.highlight {
    color: var(--primary);
    font-size: 1.2rem;
}

.flight-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 10px;
    margin: 1rem 0;
}

.flight-icon {
    font-size: 2rem;
}

.flight-details {
    flex: 1;
}

.flight-route {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary);
}

.flight-time {
    color: var(--gray);
    margin-top: 0.25rem;
}

.flight-info {
    text-align: right;
    color: var(--gray);
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--light);
}

th {
    background: var(--light);
    font-weight: 600;
    color: var(--secondary);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.confirmed {
    background: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.code-box {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.important-note {
    background: #fff3cd;
    border-left: 4px solid var(--accent);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin: 1rem 0;
}

.important-note strong {
    color: var(--accent);
}

.pdf-link {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
    margin-left: 0.5rem;
    transition: background 0.3s;
}

.pdf-link:hover {
    background: var(--primary-dark);
}

.pdf-link.small {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
}

/* Itinerary Page */
.day-card {
    background: var(--white);
    margin: 2rem auto;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.day-header {
    background: var(--secondary);
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-header h2 {
    color: var(--white);
    text-align: left;
    margin: 0;
    font-size: 1.5rem;
}

.day-header .date {
    font-size: 0.9rem;
    opacity: 0.9;
}

.day-content {
    padding: 2rem;
}

.activity {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light);
}

.activity:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.activity-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.activity-content h4 {
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.activity-content p {
    color: var(--gray);
    margin: 0;
}

/* Info Page */
.info-section {
    background: var(--white);
    margin: 2rem auto;
    max-width: 900px;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.info-section h2 {
    text-align: left;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.contact-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-details h4 {
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: var(--gray);
    margin: 0.25rem 0;
}

.checklist {
    list-style: none;
}

.checklist li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checklist li::before {
    content: '☐';
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--secondary);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .subtitle {
        font-size: 1.2rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .timeline-container::before {
        display: none;
    }

    .timeline-item {
        flex-direction: column;
        gap: 0.5rem;
        background: var(--white);
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border-left: 4px solid var(--primary);
    }

    .timeline-item.highlight {
        border-left-color: var(--accent);
    }

    .timeline-item::before {
        display: none;
    }

    .timeline-date {
        min-width: auto;
        font-size: 0.9rem;
        text-align: left;
        color: var(--primary);
    }

    .timeline-item.highlight .timeline-date {
        color: var(--accent);
    }

    .timeline-content {
        padding-left: 0;
    }

    .flight-card {
        flex-direction: column;
        text-align: center;
    }

    .flight-info {
        text-align: center;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    /* Table as cards on mobile */
    .table-container table,
    .table-container thead,
    .table-container tbody,
    .table-container th,
    .table-container td,
    .table-container tr {
        display: block;
    }

    .table-container thead {
        display: none;
    }

    .table-container tr {
        background: var(--light);
        margin-bottom: 1rem;
        padding: 1rem;
        border-radius: 10px;
        border-left: 4px solid var(--primary);
    }

    .table-container td {
        padding: 0.5rem 0;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .table-container td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gray);
        font-size: 0.85rem;
    }

    .table-container td:first-child {
        font-weight: 600;
        color: var(--secondary);
        font-size: 1.1rem;
        display: block;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        margin-bottom: 0.5rem;
    }

    .table-container td:first-child::before {
        display: none;
    }
}
