/* 
Main Stylesheet for domain.com
Color Palette:
- Primary: Midnight Indigo (#1B1F3B)
- Secondary: Electric Tangerine (#FF7F50)
- Accent: Celestial Aqua (#4DD0E1)
- Background: Misty Pearl (#F5F5F2)
- Text: Graphite Black (#2A2A2A)
*/

/* Reset & Base Styles */
:root {
    --color-primary: #1B1F3B;
    --color-secondary: #FF7F50;
    --color-accent: #4DD0E1;
    --color-bg: #F5F5F2;
    --color-text: #2A2A2A;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
    scroll-padding-top: 80px; /* Offset for fixed header when navigating to anchors */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased; /* Better text rendering */
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    scroll-margin-top: 80px; /* Ensures section appears below fixed header when using anchor links */
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
}

p {
    margin-bottom: 20px;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent);
}

ul, ol {
    list-style-position: inside;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-secondary);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: var(--shadow);
}

.btn:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
}

.btn-outline:hover {
    background-color: var(--color-secondary);
    color: white;
}

/* Header & Navigation */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo a {
    color: var(--color-primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    color: var(--color-text);
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--color-secondary);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Mobile Menu Toggle (PHP implementation) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background-image: url('../img/f5MyR0.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    text-align: center; /* Center align text */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 600px;
    margin: 0 auto; /* Center the content box */
}

.hero h1 {
    color: white;
    margin-bottom: 20px;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 30px;
}

/* About Section */
.about {
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-content p {
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
    margin-top: 40px;
}

.stat-item {
    padding: 20px;
    background-color: var(--color-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 10px;
    counter-reset: none !important; /* Disable counter animation */
    content: "" !important; /* Ensure content is displayed */
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    margin-bottom: 15px;
}

.service-content p {
    margin-bottom: 0;
    flex-grow: 1;
}

/* Benefits Section */
.benefits {
    background-color: var(--color-primary);
    color: white;
}

.benefits h2 {
    color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

/* Testimonials Section */
.testimonials {
    background-color: white;
    padding: 60px 0;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    animation: none; /* Remove sliding animation */
}

.testimonial {
    width: 100%;
    padding: 30px;
    background-color: var(--color-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    flex-grow: 1;
}

.testimonial-text p {
    position: relative;
    z-index: 1;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 50px;
    color: var(--color-secondary);
    opacity: 0.3;
    position: absolute;
    z-index: 0;
}

.testimonial-text::before {
    top: -20px;
    left: -15px;
}

.testimonial-text::after {
    bottom: -40px;
    right: -15px;
}

.testimonial-author {
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-top: auto;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pricing-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.pricing-header {
    margin-bottom: 30px;
}

.pricing-name {
    color: var(--color-secondary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.pricing-price span {
    font-size: 1rem;
    opacity: 0.7;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--color-secondary);
    position: absolute;
    left: 0;
}

/* Order Form Section */
.order-form {
    background-color: var(--color-bg);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    -webkit-appearance: none; /* Fix for iOS styling */
    appearance: none;
}

.form-control:focus {
    border-color: var(--color-secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.2);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232A2A2A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    position: relative;
    padding-left: 5px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 5px;
    position: relative;
    top: 1px;
}

.checkbox-group label {
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-group label a {
    color: var(--color-secondary);
    text-decoration: underline;
}

.checkbox-group label a:hover {
    color: var(--color-accent);
}

/* Style pour l'astérisque obligatoire */
.checkbox-group label::after {
    color: var(--color-secondary);
}

/* Style pour mettre en évidence les cases à cocher */
.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid var(--color-secondary);
    border-radius: 3px;
    outline: none;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: var(--color-secondary);
}

.checkbox-group input[type="checkbox"]:checked:before {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* FAQ Section */
.faq {
    background-color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    background-color: var(--color-bg);
    padding: 20px;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    transition: var(--transition);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-item.active .faq-question {
    background-color: var(--color-primary);
    color: white;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background-color: white;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Contact Section */
.contact {
    background-color: var(--color-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-info strong {
    color: var(--color-primary);
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    max-height: 300px; /* Limit the height */
}

.map-container img {
    width: 100%;
    height: 100%;
    max-height: 300px; /* Limit the height */
    object-fit: cover;
}

/* Footer Styles */
footer {
    background-color: var(--color-primary);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

footer .logo {
    color: white;
    margin-bottom: 15px;
    display: block;
}

footer h3 {
    color: var(--color-secondary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: white;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--color-secondary);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    color: white;
    z-index: 9999;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin-bottom: 0;
    margin-right: 20px;
}

.cookie-content a {
    color: var(--color-secondary);
}

/* Policy Pages */
.policy-page {
    padding-top: 120px;
    padding-bottom: 80px;
}

.policy-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.policy-container h1 {
    text-align: center;
    margin-bottom: 40px;
}

.policy-container h2 {
    text-align: left;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.policy-container p {
    margin-bottom: 20px;
}

.policy-container ul, 
.policy-container ol {
    margin-bottom: 20px;
    margin-left: 20px;
}

.policy-container li {
    margin-bottom: 10px;
}

/* Thank You Page */
.thank-you {
    padding-top: 120px;
    padding-bottom: 80px;
    text-align: center;
}

.thank-you-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.thank-you-icon {
    font-size: 5rem;
    color: var(--color-secondary);
    margin-bottom: 20px;
}
