/**
 * Atelier Le Sourceur - Gift Cards Styles
 * Design conforme au Figma
 *
 * @package AtelierLeSourceur
 */

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    --gc-brown: #382a37;
    --gc-green: #91b49e;
    --gc-bg: #fafafa;
    --gc-white: #fff;
    --gc-gray: #7e7e7e;
    --gc-error: #e74c3c;
}

/* ==========================================================================
   Container
   ========================================================================== */
.als-gc {
    font-family: 'Roboto', sans-serif;
    color: var(--gc-brown);
    background: var(--gc-bg);
}

.als-gc-container {
    max-width: 1128px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Titles
   ========================================================================== */
.als-gc-title {
    font-family: "Hamurz", Sans-serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--gc-brown);
    text-transform: lowercase;
    margin: 0 0 30px;
}

.als-gc-title span {
    color: var(--gc-green);
}

.als-gc-title--small {
    font-size: 40px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.als-gc-hero {
    position: relative;
    padding: 96px 0 50px;
    overflow: hidden;
}

.als-gc-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 534px;
    background-image: url('../images/hero-pattern.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    pointer-events: none;
}

/* Fallback pattern when image doesn't exist */
.als-gc-hero-bg:not([style*="background-image"]) {
    background-image:
        radial-gradient(circle at 20% 30%, var(--gc-green) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, var(--gc-green) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, var(--gc-brown) 0%, transparent 50%);
    opacity: 0.08;
}

.als-gc-hero-grid {
    display: grid;
    grid-template-columns: 1fr 390px;
    gap: 60px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.als-gc-hero-content {
    max-width: 564px;
}

.als-gc-hero-text {
    font-size: 16px;
    font-weight: 300;
    line-height: 27px;
    color: var(--gc-brown);
}

.als-gc-hero-text p {
    margin: 0 0 20px;
}

.als-gc-hero-text strong {
    font-weight: 700;
}

/* Reviews Slider */
.als-gc-hero-reviews {
    position: relative;
}

.als-gc-reviews-slider {
    position: relative;
}

.als-gc-review-card {
    display: none;
    background: var(--gc-white);
    border-radius: 50px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
    padding: 36px 56px;
    width: 390px;
    min-height: 310px;
}

.als-gc-review-card.active {
    display: block;
}

.als-gc-review-title {
    font-family: "Hamurz", Sans-serif;
    font-size: 25px;
    font-weight: 400;
    color: var(--gc-brown);
    margin: 0 0 17px;
}

.als-gc-review-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.als-gc-review-content {
    font-size: 16px;
    font-weight: 300;
    line-height: 27px;
    color: #000;
    margin: 0 0 17px;
}

.als-gc-review-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 300;
    color: var(--gc-brown);
}

.als-gc-reviews-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.als-gc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gc-brown);
    opacity: 0.3;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s ease;
}

.als-gc-dot.active {
    opacity: 1;
    background: var(--gc-green);
}

/* ==========================================================================
   Bon Cadeau Section
   ========================================================================== */
.als-gc-section {
    padding: 50px 0 80px;
}

.als-gc-bon-grid {
    display: grid;
    grid-template-columns: 492px 492px;
    gap: 80px;
    justify-content: space-between;
}

.als-gc-bon-content {
    max-width: 492px;
}

.als-gc-bon-text {
    font-size: 16px;
    font-weight: 300;
    line-height: 27px;
    margin-bottom: 40px;
}

.als-gc-bon-text p {
    margin: 0 0 10px;
}

.als-gc-bon-text strong {
    font-weight: 700;
}

.als-gc-bon-right {
    max-width: 492px;
}

/* Card Preview Image */
.als-gc-card-preview {
    width: 100%;
    height: 276px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 25px;
}

.als-gc-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Form Fields
   ========================================================================== */
.als-gc-field-group {
    margin-bottom: 20px;
}

.als-gc-label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--gc-brown);
    margin-bottom: 13px;
    line-height: 27px;
}

.als-gc-label--hamurz {
    font-family: "Hamurz", Sans-serif;
    font-weight: 400;
    text-transform: lowercase;
}

.als-gc-input,
.als-gc-textarea {
    width: 100%;
    padding: 16px 30px;
    border: 1px solid var(--gc-brown);
    border-radius: 20px !important;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: var(--gc-brown);
    background: transparent !important;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.als-gc-input:hover,
.als-gc-textarea:hover {
    background: transparent !important;
}

.als-gc-input::placeholder,
.als-gc-textarea::placeholder {
    color: var(--gc-gray);
}

.als-gc-input:focus,
.als-gc-textarea:focus,
.als-gc-qty-input:focus {
    outline: none;
    border-color: var(--gc-green);
    background: transparent !important;
    box-shadow: none;
}

.als-gc-input.als-gc-error,
.als-gc-textarea.als-gc-error {
    border-color: var(--gc-error);
}

.als-gc-textarea {
    min-height: 154px;
    resize: vertical;
    line-height: 27px;
}

.als-gc-char-count {
    text-align: right;
    font-size: 12px;
    color: var(--gc-gray);
    margin-top: 5px;
}

/* ==========================================================================
   Type Buttons (Pills)
   ========================================================================== */
.als-gc-type-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.als-gc-type-btn {
    font-family: "Hamurz", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-transform: lowercase;
    padding: 2px 30px;
    border-radius: 50px;
    border: 1px solid var(--gc-brown);
    background: transparent;
    color: var(--gc-brown);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 27px;
    white-space: nowrap;
}

.als-gc-type-btn:hover,
.als-gc-type-btn:focus,
.als-gc-type-btn:active {
    border-color: var(--gc-green);
    color: var(--gc-green);
    background: transparent !important;
    outline: none;
    box-shadow: none;
}

.als-gc-type-btn.active,
.als-gc-type-btn.active:hover,
.als-gc-type-btn.active:focus,
.als-gc-type-btn.active:active {
    background: var(--gc-green) !important;
    border-color: var(--gc-green) !important;
    color: var(--gc-bg) !important;
}

/* Difference Link */
.als-gc-diff-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 300;
    font-style: italic;
    color: var(--gc-brown);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-top: 5px;
}

.als-gc-diff-link:hover,
.als-gc-diff-link:focus,
.als-gc-diff-link:active {
    color: var(--gc-green);
    background: transparent !important;
    outline: none;
    box-shadow: none;
}

/* Difference Popup */
.als-gc-diff-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.als-gc-diff-popup-content {
    background: var(--gc-white);
    border-radius: 30px;
    padding: 40px;
    max-width: 500px;
    position: relative;
}

.als-gc-diff-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gc-brown);
    line-height: 1;
}

.als-gc-diff-popup h4 {
    font-family: "Hamurz", Sans-serif;
    font-size: 24px;
    font-weight: 400;
    margin: 0 0 20px;
    color: var(--gc-brown);
}

.als-gc-diff-item {
    margin-bottom: 20px;
}

.als-gc-diff-item strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--gc-green);
}

.als-gc-diff-item p {
    font-size: 14px;
    font-weight: 300;
    margin: 0;
    color: var(--gc-brown);
}

/* ==========================================================================
   Radio Buttons
   ========================================================================== */
.als-gc-radio-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.als-gc-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.als-gc-radio input {
    display: none;
}

.als-gc-radio-check {
    width: 25px;
    height: 25px;
    border: 1px solid var(--gc-brown);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.als-gc-radio input:checked + .als-gc-radio-check {
    background: var(--gc-green);
    border-color: var(--gc-green);
}

.als-gc-radio input:checked + .als-gc-radio-check::after {
    content: '';
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 6px;
    height: 12px;
    border: solid var(--gc-white);
    border-width: 0 2px 2px 0;
}

.als-gc-radio-text {
    font-size: 16px;
    font-weight: 300;
    line-height: 27px;
    color: var(--gc-brown);
}

/* ==========================================================================
   Quantity & Submit
   ========================================================================== */
.als-gc-quantity-row {
    display: flex;
    align-items: center;
    gap: 29px;
}

.als-gc-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.als-gc-qty-arrows {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.als-gc-qty-btn {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gc-brown);
    padding: 0;
    transition: color 0.3s ease;
}

.als-gc-qty-btn:hover,
.als-gc-qty-btn:focus,
.als-gc-qty-btn:active {
    color: var(--gc-green);
    background: transparent !important;
    outline: none;
    box-shadow: none;
}

.als-gc-qty-btn svg {
    width: 10px;
    height: 8px;
}

.als-gc-qty-btn svg path {
    stroke: currentColor;
}

.als-gc-qty-input {
    width: 117px;
    height: 60px;
    border: 1px solid var(--gc-brown);
    border-radius: 20px !important;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--gc-brown);
    background: transparent !important;
    -moz-appearance: textfield;
}

.als-gc-qty-input:hover {
    background: transparent !important;
}

.als-gc-qty-input::-webkit-outer-spin-button,
.als-gc-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.als-gc-submit {
    padding: 5px 30px;
    border: 1px solid var(--gc-brown);
    border-radius: 50px;
    background: transparent;
    font-family: 'Gotham', 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gc-brown);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 27px;
}

.als-gc-submit:hover {
    background: var(--gc-green);
    border-color: var(--gc-green);
    color: var(--gc-white);
}

.als-gc-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   Offre Duo
   ========================================================================== */
.als-gc-duo-offer {
    margin-top: 20px;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(145, 180, 158, 0.1) 0%, rgba(145, 180, 158, 0.05) 100%);
    border: 2px solid var(--gc-green);
    border-radius: 15px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.als-gc-duo-offer-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.als-gc-duo-offer-badge {
    background: var(--gc-green);
    color: var(--gc-white);
    font-family: "Hamurz", Sans-serif;
    font-size: 15px;
    line-height: 20px;
    font-weight: 400;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    text-transform: lowercase;
}

.als-gc-duo-offer-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.als-gc-duo-offer-text strong {
    font-size: 16px;
    color: var(--gc-brown);
}

.als-gc-duo-offer-text span {
    font-size: 13px;
    color: var(--gc-gray);
    font-weight: 300;
}

/* Toggle Switch */
.als-gc-duo-offer-toggle {
    position: relative;
    cursor: pointer;
}

.als-gc-duo-offer-toggle input {
    display: none;
}

.als-gc-duo-offer-switch {
    display: block;
    width: 50px;
    height: 28px;
    background: #ccc;
    border-radius: 30px;
    position: relative;
    transition: background 0.3s ease;
}

.als-gc-duo-offer-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: var(--gc-white);
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.als-gc-duo-offer-toggle input:checked + .als-gc-duo-offer-switch {
    background: var(--gc-green);
}

.als-gc-duo-offer-toggle input:checked + .als-gc-duo-offer-switch::after {
    transform: translateX(22px);
}

/* ==========================================================================
   Errors
   ========================================================================== */
.als-gc-errors {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gc-error);
    color: var(--gc-white);
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 9999;
    max-width: 90%;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
    .als-gc-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .als-gc-hero-content {
        max-width: 100%;
    }

    .als-gc-hero-reviews {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .als-gc-bon-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .als-gc-bon-content,
    .als-gc-bon-right {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .als-gc-hero {
        padding: 60px 0 30px;
    }

    .als-gc-title {
        font-size: 32px;
    }

    .als-gc-review-card {
        width: 100%;
        max-width: 390px;
        padding: 30px;
        border-radius: 30px;
    }

    .als-gc-type-buttons {
        flex-direction: column;
    }

    .als-gc-type-btn {
        width: 100%;
        text-align: center;
    }

    .als-gc-quantity-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .als-gc-quantity {
        justify-content: center;
    }

    .als-gc-submit {
        width: 100%;
        padding: 15px 30px;
    }
}

@media (max-width: 480px) {
    .als-gc-container {
        padding: 0 15px;
    }

    .als-gc-title {
        font-size: 28px;
    }

    .als-gc-input,
    .als-gc-textarea {
        padding: 12px 20px;
    }
}
