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

/* Désactiver le zoom sur mobile */
@media (max-width: 768px) {
    input, button, select, textarea {
        font-size: 16px !important;
        touch-action: manipulation;
    }
    
    .keypad-btn {
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
    }
    
    .password-input {
        cursor: pointer;
        -webkit-user-select: none;
        user-select: none;
    }
    
    .password-input:focus {
        outline: none;
    }
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #ffffff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.logo {
    height: 60px;
    display: inline-block;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-background {
    background: #31353F;
    position: relative;
    padding: 60px 20px 120px;
    overflow: visible;
    border-radius: 0 0 50% 50% / 0 0 80px 80px;
}

.card-left,
.card-right {
    position: absolute;
    width: 380px;
    height: auto;
}

.card-left {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
}

.card-right {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin-bottom: 5px;
    letter-spacing: 1.5px;
}

.hero-subtitle {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
}

/* Login Form Container */
.login-form-container {
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    margin-top: 35px;
    overflow: hidden;
}

.login-form {
    padding: 40px 35px 30px;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group:nth-child(3)::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: #000000;
    margin-top: 25px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #3b3f4a;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 0;
    padding: 0;
    position: relative;
}

.input-prefix {
    font-size: 13px;
    font-weight: 600;
    color: #3b3f4a;
    white-space: nowrap;
    padding: 12px 15px;
    background: #ffffff;
    border-right: 1px solid #ccc;
}

.form-input {
    flex: 1;
    border: none;
    background: #f5f5f5;
    padding: 12px 15px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    outline: none;
}

.form-input::placeholder {
    color: #999;
    letter-spacing: 3px;
}

.password-input {
    padding-right: 50px;
}

.close-keypad {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 20px;
    font-weight: 600;
    color: #3b3f4a;
}

/* Form Divider */
.form-divider {
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    color: #3b3f4a;
    margin: 25px 0;
}

/* Forgot Password Link */
.forgot-password {
    display: inline-block;
    font-size: 13px;
    color: #0099cc;
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: 400;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary {
    background: #e30613;
    color: #ffffff;
    margin-bottom: 0;
}

.btn-primary:hover {
    background: #c00510;
}

/* Form Footer */
.form-footer {
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.btn-secondary {
    background: #ffffff;
    color: #3b3f4a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
}

.btn-secondary:hover {
    background: #f5f5f5;
}

.btn-icon {
    height: 24px;
    width: auto;
}

.btn-tertiary {
    background: #008cb6;
    color: #ffffff;
    border: none;
    box-sizing: border-box;
    padding: 20px 15px;
    font-weight: bold;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: 0;
    opacity: 1;
    width: 100%;
    display: block;
    position: relative;
    min-height: 60px;
}

.btn-tertiary::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 9px;
    right: 9px;
    bottom: 9px;
    border: 1px dashed #ffffff;
    pointer-events: none;
}

.btn-tertiary:hover {
    background: #007aa0;
}

.btn-separate {
    margin: 20px 0;
    padding: 8px 10px;
}

.btn-separate:first-of-type {
    margin-top: 20px;
}

/* Info Sections */
.info-sections {
    background: #ffffff;
    padding: 60px 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.info-card-title {
    background: #00a0c8;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 20px;
    text-align: center;
    letter-spacing: 0.5px;
}

.info-card-content {
    padding: 25px 20px;
    font-size: 13px;
    line-height: 1.8;
    color: #333;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.info-card-content p {
    margin-bottom: 15px;
}

.info-card-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.info-card-content ul li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.info-card-content ul li::before {
    content: '•';
    position: absolute;
    left: 5px;
    color: #00a0c8;
    font-weight: bold;
}

.info-card-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    margin-bottom: 15px;
    background: #ffffff;
}

.info-card-input:focus {
    outline: none;
    border-color: #00a0c8;
}

.info-card-service {
    text-align: center;
    padding: 30px 20px;
}

.service-card-image {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.contact-title-new {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.contact-title-new strong {
    color: #e30613;
    font-weight: 700;
}

.info-card-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
    margin: 15px auto;
}

.btn-small {
    width: auto;
    padding: 10px 30px;
    font-size: 12px;
}

.btn-red {
    background: #e30613;
    color: #ffffff;
}

.btn-red:hover {
    background: #c00510;
}

/* Contact Info */
.contact-title {
    font-size: 18px;
    font-weight: 400;
    color: #333;
    margin-bottom: 5px;
    text-align: center;
}

.contact-highlight {
    color: #e30613;
    font-weight: 700;
}

.phone-button {
    background: #e30613;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    font-size: 16px;
    font-weight: 700;
}

.phone-icon {
    font-size: 20px;
}

.phone-number {
    letter-spacing: 0.5px;
}

.service-hours,
.service-schedule {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin: 5px 0;
}

/* Security Section */
.security-section {
    background: #ffffff;
    padding: 60px 20px;
}

.security-section .container {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
    max-width: 1000px;
    position: relative;
}

.security-header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    margin-bottom: 40px;
    padding: 40px;
    padding-bottom: 0;
}

.security-icon-left {
    width: 140px;
    height: auto;
    flex-shrink: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.security-title {
    font-size: 32px;
    font-weight: 700;
    color: #e30613;
    letter-spacing: 1px;
    margin: 0;
    text-align: center;
    flex: 1;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    padding: 0 40px 40px 40px;
}

.security-column {
    font-size: 13px;
    line-height: 1.8;
    color: #333;
}

.security-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    margin-top: 25px;
}

.security-subtitle-blue {
    font-size: 14px;
    font-weight: 600;
    color: #00a0c8;
    margin-bottom: 15px;
    margin-top: 25px;
    line-height: 1.6;
}

.security-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.security-list li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.security-list li::before {
    content: '•';
    position: absolute;
    left: 5px;
    color: #333;
    font-weight: bold;
}

.security-text {
    margin-bottom: 15px;
}

.security-link {
    color: #0099cc;
    text-decoration: none;
}

.security-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .card-left,
    .card-right {
        width: 180px;
    }
    
    .card-left {
        left: -80px;
    }
    
    .card-right {
        right: -80px;
    }
    
    .login-form {
        padding: 30px 20px 20px;
    }
    
    .form-footer {
        padding: 20px 20px 25px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .security-grid {
        grid-template-columns: 1fr;
    }
    
    .security-header {
        flex-direction: column;
        gap: 15px;
        padding-top: 120px;
    }
    
    .security-title {
        font-size: 22px;
        text-align: center;
    }
    
    .security-icon-left {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .hero-background {
        padding: 40px 15px 80px;
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .card-left,
    .card-right {
        display: none;
    }
    
    .input-prefix {
        font-size: 11px;
    }
    
    .form-input {
        font-size: 13px;
    }
    
    .btn {
        font-size: 13px;
        padding: 12px 15px;
    }
}

/* PIN Keypad */
.pin-keypad {
    margin: 25px 0;
    padding: 20px 0;
    background: transparent;
    border: none;
}

.pin-keypad-header {
    text-align: center;
    margin-bottom: 25px;
}

.pin-lock-icon {
    width: 35px;
    height: auto;
    margin-bottom: 10px;
}

.pin-keypad-title {
    font-size: 14px;
    font-weight: 700;
    color: #3b3f4a;
    letter-spacing: 0.5px;
    margin: 0;
}

.pin-buttons-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    max-width: 380px;
    margin: 0 auto;
}

.pin-button {
    aspect-ratio: 1;
    background: #3b3f4a;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    min-height: 55px;
    width: 55px;
    height: 55px;
}

.pin-button:hover {
    background: #2d3038;
}

.pin-button:active {
    background: #1f2228;
}

@media (max-width: 768px) {
    .pin-buttons-grid {
        gap: 10px;
    }
    
    .pin-button {
        font-size: 20px;
        min-height: 50px;
    }
}

@media (max-width: 480px) {
    .pin-keypad {
        padding: 20px 15px;
    }
    
    .pin-buttons-grid {
        gap: 8px;
    }
    
    .pin-button {
        font-size: 18px;
        min-height: 45px;
    }
    
    .pin-lock-icon {
        width: 40px;
    }
    
    .pin-keypad-title {
        font-size: 12px;
    }
}
