/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, serif;
    background-color: white;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    padding-bottom: 120px;
    }

.container {
    max-width: 600px;
    width: 100%;
    text-align: center;
    padding: 20px;
    margin: 0 auto;
    padding-top: 35px; /* diminuer cette val pour remonter le contenu */
}

/* Titre principal */
.main-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #999;
    margin-top: 0;
}

.main-title a {
    color: inherit;
    text-decoration: none;
}

.main-title a:hover {
    color: #666;
}

/* Rectangle "Ce site est peut-être à vendre" */
.sale-banner {
    display: inline-block;
    background-color: white;
    border: 2px solid #666;
    padding: 10px 15px;
    margin: -10px 0 20px 0;
    cursor: pointer;
    animation: yoyoUpDown 3s ease-in-out infinite;
}

.sale-banner:hover {
    background-color: #f8f8f8;
}

.sale-text {
    color: #333;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.3;
}

.sale-text strong {
    color: #666;
}

@keyframes yoyoUpDown {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Phrase aléatoire */
.random-phrase {
    font-size: 1.1rem;
    color: #666;
    margin: 30px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Bouton contact */
.contact-button {
    background-color: #333;
    color: white;
    padding: 12px 25px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin: 20px 0;
}

.contact-button:hover {
    background-color: #555;
}

/* Bandeau Lyad */
.lyad-banner {
    margin: 40px 0;
    text-align: center;
}

.lyad-image {
    max-width: 100%;
    height: auto;
}

/* Liens du bas */
.footer-links {
    margin-top: 40px;
}

.footer-links a {
    color: #666;
    text-decoration: underline;
    margin: 0 15px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #333;
}

/* Bandeau cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid #ccc;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.cookie-left {
    flex: 1;
}

.cookie-left h3 {
    margin-bottom: 10px;
    color: #333;
}

.cookie-left p {
    margin-bottom: 0;
    color: #666;
}

.cookie-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cookie-links a {
    color: #666;
    text-decoration: underline;
    font-size: 0.9rem;
}

.cookie-btn {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.9rem;
}

.cookie-btn:hover {
    background-color: #e0e0e0;
}

.cookie-btn-primary {
    background-color: #333;
    color: white;
    border-color: #333;
}

.cookie-btn-primary:hover {
    background-color: #555;
}

.cookie-link {
    background: none;
    border: none;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}

.cookie-link:hover {
    color: #333;
}

/* Modal de configuration des cookies */
.cookie-config-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.cookie-config-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-config-content h3 {
    margin-bottom: 20px;
    color: #333;
}

.cookie-category {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cookie-category h4 {
    margin-bottom: 5px;
    color: #333;
}

.cookie-category p {
    margin-bottom: 10px;
    color: #666;
    font-size: 0.9rem;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    width: 50px;
    height: 25px;
    background-color: #ccc;
    position: relative;
    transition: 0.3s;
}

.toggle-slider:before {
    content: "";
    height: 19px;
    width: 19px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    position: absolute;
    transition: 0.3s;
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider {
    background-color: #333;
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider:before {
    transform: translateX(25px);
}

.cookie-save-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    margin-top: 20px;
}

.cookie-save-btn:hover {
    background-color: #555;
}

/* Modal de contact */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.contact-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    color: #333;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #999;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #333;
}

#contact-form h2 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    background-color: white;
    color: #333;
    font-family: inherit;
    transition: all 0.3s ease;
}




/* Surbrillance vert pastel pour les champs en focus */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #90EE90;
    box-shadow: 0 0 8px rgba(144, 238, 144, 0.5);
    background-color: rgba(144, 238, 144, 0.1);
    transition: all 0.3s ease;
}




.submit-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
}

.submit-btn:hover {
    background-color: #555;
}

.status-message {
    text-align: center;
    padding: 20px;
    color: #333;
}

.retry-btn {
    background-color: #666;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    margin-top: 10px;
}

.retry-btn:hover {
    background-color: #888;
}

.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 15px;
        padding-top: 35px;  /* diminuer cette val remonte le site sur mobil */
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .cookie-right {
        align-items: stretch;
        width: 100%;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .cookie-btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .cookie-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .contact-modal-content,
    .cookie-config-content {
        padding: 20px;
        width: 95%;
    }
}