*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* ============================================================
   1. RESET & VARIABLES GLOBALES
   ============================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Palette de couleurs */
    --primary-color: #0f172a; /* Bleu nuit */
    --accent-color: #d97706;  /* Ocre/Doré */
    --bg-light: #f8fafc;      /* Gris très clair */
    --text-dark: #334155;     /* Gris ardoise */
    --text-light: #ffffff;
    --border-color: #e2e8f0;
    
    /* Espacements standards */
    --container-width: 1140px;
    --section-padding: 80px 20px;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
    /* -webkit-font-smoothing: antialiased; */
}

/* ============================================================
   2. TYPOGRAPHIE
   ============================================================ */
h1, h2, h3, h4 {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; text-align: center; margin-bottom: 50px; position: relative; }
h3 { font-size: 24px; margin-bottom: 15px; }
h4 { font-size: 20px; margin-bottom: 10px; }
p { font-size: 16px; margin-bottom: 20px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.logo img{
    width: 45px;
}
.btn-toggle-container{
  display: none;
}

/* Élément décoratif sous les titres H2 */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ============================================================
   3. COMPOSANTS (Buttons, Containers)
   ============================================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: #b45309;
    border-color: #b45309;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ============================================================
   4. HEADER & NAVIGATION
   ============================================================ */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
}

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

.header-contact {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 16px;
}

/* ============================================================
   5. PAGE ACCUEIL (index.php)
   ============================================================ */
/* Hero Section */
.hero {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 { margin-bottom: 25px; }
.hero-text .highlight { color: var(--accent-color); }

.hero-features {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #64748b;
}

.hero-feature-item { display: flex; align-items: center; gap: 5px; }

.hero-visual { position: relative; }

.hero-visual-box {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    padding: 20px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
}

.blob {
    position: absolute;
    background-color: var(--accent-color);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}
.blob-1 { width: 300px; height: 300px; top: -50px; right: -33px; }
.blob-2 { width: 200px; height: 200px; bottom: -30px; left: -30px; background-color: var(--primary-color); }

/* Services (Nos Offres) */
.services { padding: var(--section-padding); background-color: white; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: var(--accent-color);
}

.service-icon { font-size: 40px; margin-bottom: 20px; color: var(--accent-color); }
.price-tag { font-size: 20px; font-weight: 700; color: var(--primary-color); margin-bottom: 15px; display: block; }

.service-features li {
    font-size: 14px;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: #64748b;
}
.service-features li::before {
    content: '✓';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.card-footer { margin-top: auto; padding-top: 20px; text-align: center; }
.link-more { color: var(--accent-color); font-weight: 600; font-size: 14px; }

/* Portfolio / Vitrine */
.portfolio { padding: var(--section-padding); background-color: var(--bg-light); }
.portfolio-item { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 80px; align-items: center; }
.portfolio-item:nth-child(even) .portfolio-text { order: -1; }

.portfolio-img-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    background-color: white;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-weight: bold;
    font-size: 20px;
    position: relative;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-tag {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

/* About Section */
.about { padding: var(--section-padding); background-color: var(--primary-color); color: white; text-align: center; }
.about h2 { color: white; }
.about h2::after { background-color: white; opacity: 0.3; }
.about-content { max-width: 800px; margin: 0 auto; }
.about p { font-size: 18px; color: #cbd5e1; margin-bottom: 30px; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.value-item h4 { color: white; font-size: 18px; margin-bottom: 10px; }
.value-item p { font-size: 14px; }

/* ============================================================
   6. PAGE CREATION (creation-site.html)
   ============================================================ */
/* Intro Branding */
.page-header {
    padding: 80px 20px;
    background-color: var(--bg-light);
    text-align: center;
}
.page-header h1 { margin-bottom: 20px; }
.page-header p { max-width: 700px; margin: 0 auto; color: #64748b; font-size: 18px; }

/* Leviers Action (Strategy) */
.strategy-section { padding: var(--section-padding); background: white; }
.levers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.lever-card {
    padding: 30px;
    border-radius: 10px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}
.lever-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}
.lever-icon {
    font-size: 32px;
    margin-bottom: 20px;
    display: inline-block;
    padding: 10px;
    background-color: #fff7ed;
    border-radius: 8px;
    color: var(--accent-color);
}

/* Timeline Process */
.process-section { padding: var(--section-padding); background-color: var(--primary-color); color: white; }
.process-section h2 { color: white; }
.process-section h2::after { background-color: white; opacity: 0.3; }

.timeline {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
    padding-left: 30px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 2px;
}

.timeline-step { position: relative; margin-bottom: 50px; padding-left: 40px; }
.timeline-step:last-child { margin-bottom: 0; }

.step-number {
    position: absolute;
    left: -23px;
    top: 0;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: white;
    font-weight: 800;
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--primary-color);
    z-index: 2;
}
.step-content h3 { color: var(--accent-color); font-size: 22px; }
.step-content p { color: #cbd5e1; font-size: 16px; }

/* Custom Section (Sur mesure) */
.custom-section { padding: var(--section-padding); text-align: center; background-color: white; }
.custom-content { max-width: 800px; margin: 0 auto; }

.highlight-box {
    background-color: #eff6ff;
    border-left: 5px solid var(--accent-color);
    padding: 30px;
    margin: 30px 0;
    text-align: left;
    border-radius: 0 10px 10px 0;
}

/* ============================================================
   7. PAGE MAINTENANCE (maintenance.php)
   ============================================================ */
/* Status Bar */
.status-bar {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}
.status-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: #15803d;
    font-size: 14px;
}
.status-dot {
    width: 12px;
    height: 12px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-green 2s infinite;
}

/* Hero Maintenance */
.hero-maintenance {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-maintenance h1 { color: white; margin-bottom: 20px; }

.gear-icon {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--accent-color);
    animation: spin 10s linear infinite;
}

/* Benefits Grid */
.benefits-section { padding: var(--section-padding); background-color: white; }
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}
.benefit-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: 0.3s;
    position: relative;
    padding-top: 40px;
}
.benefit-card:hover {
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}
.card-number {
    position: absolute;
    top: -15px;
    left: 30px;
    font-size: 40px;
    font-weight: 900;
    color: rgba(15, 23, 42, 0.1);
    z-index: 0;
}
.benefit-card h3 { position: relative; z-index: 1; font-size: 22px; }
.benefit-card p { position: relative; z-index: 1; color: #64748b; font-size: 15px; }
.benefit-highlight {
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    margin-top: 15px;
    font-size: 14px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

/* Tranquility (Peace Section) */
.peace-section { padding: var(--section-padding); background-color: var(--bg-light); text-align: center; }
.peace-content { max-width: 800px; margin: 0 auto; }
.check-list { text-align: left; margin: 40px auto; display: inline-block; }
.check-list li {
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.check-icon { color: #22c55e; font-weight: bold; font-size: 20px; }

/* Animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ============================================================
   8. FOOTER & COMMON SECTIONS
   ============================================================ */
.footer-section {
    background-color: #0b1120;
    color: #94a3b8;
    padding: 60px 0 20px;
    font-size: 14px;
}

.cta-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    color: var(--primary-color);
    margin-top: -100px; /* Chevauchement */
    margin-bottom: 60px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 { color: white; font-size: 18px; margin-bottom: 20px; }
.contact-info p { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.contact-info strong { color: white; }

.footer-links a { display: block; margin-bottom: 8px; color: #94a3b8; }
.footer-links a:hover { color: var(--accent-color); padding-left: 5px; }

.legal {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
}

/* ============================================================
   9. RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    /* Header */
    .header-container { flex-direction: column; gap: 10px; }
    .nav ul { gap: 15px; font-size: 14px; }
    /* nav { display: none; /* Simplification  } */

    /* hamburger */

    .header-container{
        align-items: start;
    }

    .header-contact{
        margin-left: 22px;
    }

    .liste-nav{
display: none;
}



    .btn-toggle-container{
display: block;
position: fixed;
cursor: pointer;
top: 31px;
right: 35px;
height: 50px;
width: 50px;
z-index: 99;
display: flex;
justify-content: center;
align-items: center;
}

.btn-toggle-container img{
  width: 50px;
  height: 50px;
  z-index: 10;
}



.liste-nav.active-menu{
position: fixed;
display: flex;

top: 0px;
right: 0;
transform: none;
background-color: #fbefe2 ;
border-radius: 20px;
justify-content: space-evenly;
align-items: baseline;
height: max-content;
padding: 0px 15px;
z-index: 4;
transition: left 0.6s ease;
text-align: center;
}

.liste-nav.active-menu ul{
flex-direction: column;
width: 100%;
gap: 0;
}

.liste-nav{line-height: 55px;}

/* Style des liens dans le menu mobile */
    .liste-nav.active-menu li {
        margin: 20px 0;
    }
    
    .liste-nav.active-menu a {
        font-size: 24px; /* Plus gros sur mobile */
    }


    /*effet sur affichage menu*/

 

    /* 1. L'état par défaut (Menu caché mais existant) */
    .liste-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 55vh; /* Prend toute la hauteur */
        background-color: #fbefe2;
        z-index: 998;
        
        /* Flexbox pour centrer le contenu verticalement/horizontalement */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-bottom: 50px; /* Petit ajustement visuel */

        /* L'ANIMATION MAGIQUE */
        transform: translateX(100%); /* On le pousse à 100% vers la droite (hors écran) */
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Glissement fluide */
    }

    /* 2. L'état actif (Quand le JS ajoute la classe) */
    .liste-nav.active-menu {
        transform: translateX(0); /* On le ramène à sa position d'origine (0) */
        /* Pas besoin de remettre display, width, etc. car il les a déjà */
    }

    /* 3. Style des liens pour que ce soit joli */
    .liste-nav li {
        margin: 15px 0;
        opacity: 0; /* On cache les liens au début */
        transform: translateY(20px); /* Un peu plus bas */
        transition: 0.3s ease;
    }

    /* Petit effet cascade : les liens arrivent un peu après le menu */
    .liste-nav.active-menu li {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.1s; /* Petit délai sympa */
    }

    .liste-nav a {
        font-size: 24px;
        color: var(--primary-color);
        font-weight: 700;
    }


    /* Home (Hero) */
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-features { justify-content: center; }
    h1 { font-size: 36px; }

    /* Portfolio */
    .portfolio-item, .portfolio-item:nth-child(even) .portfolio-text {
        grid-template-columns: 1fr;
        order: unset;
        gap: 30px;
    }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .contact-info p { justify-content: center; }

    /* Creation Page */
    .timeline { padding-left: 20px; }
    .highlight-box {
        text-align: center;
        border-left: none;
        border-top: 5px solid var(--accent-color);
        border-radius: 0 0 10px 10px;
    }

    /* Maintenance Page */
    .hero-maintenance h1 { font-size: 32px; }

    
    /* Contact Form */
    .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   10. CONTACT FORM SECTION (Nouveau)
   ============================================================ */
.contact-section {
    padding: var(--section-padding);
    background-color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}

.contact-intro h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-intro p {
    color: #64748b;
    margin-bottom: 30px;
    font-size: 16px;
}

.contact-details-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
}

.contact-details-item span { /* Icône */
    color: var(--accent-color);
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
    transition: 0.3s;
    background-color: #f8fafc;
    color: var(--text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
}

/* index-2 mentions légales -------------------------------------------------------------------*/
.titre-mentions-legales h1{
  font-size: var(--fs-36);
  margin: 60px 60px 0;
  text-align: center;
}
.paragraphe-mentions-legales{
  padding: 60px 60px 0;
}
.paragraphe-mentions-legales:nth-last-child(1){
  padding-bottom: 200px ;
}

.paragraphe-mentions-legales .titre{
  font-family: var(--title-font);
  font-size: var(--fs-36);
}

.marque-en-mentions-legales{
  margin-top: 120px;
  position: relative;
  margin-bottom: 200px;
}

.marque-en-mentions-legales .logo-et-marque{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.marque-en-mentions-legales .logo-et-marque a{
  text-decoration: none;
}

.return-home{
  position: absolute;
  top: 20px;
  right: 20px;
}

.return-home img{
  width: 50px;
}


@media (max-width: 800px){
  .titre-mentions-legales h1{
    margin: 40px 40px 0;
  }
  .paragraphe-mentions-legales{
    padding: 40px 40px 0;
  }
  .paragraphe-mentions-legales:nth-last-child(1){
    padding: 40px ;
  }

  .paragraphe-mentions-legales .titre, .titre-mentions-legales h1{
    font-size: var(--fs-24);
  }

  .marque-en-mentions-legales{
    margin-top: 70px;
    margin-bottom: 140px;
    font-size: 18px;
  }

  .return-home img{
    width: 40px;
  }
}
@media (max-width: 630px){
    .contact-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-intro{
        text-align: center;
        display: flex;
        flex-direction: column;
        
        
    }

    .contact-form{
        width: 80%;
    }

   
}
@media (max-width: 431px)/*important431*/{

    .hero-text .btn-outline {
        margin-left: 0 !important;
        margin-top: 15px;
    }
    .values-grid{
        display: flex;
        flex-direction: column;
    }

     .contact-form{
        width: 90%;
    }

    .benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   
}
}
@media (max-width: 400px){

  .titre-mentions-legales h1{
    margin: 60px 40px 0;
  }
  .paragraphe-mentions-legales{
    padding: 30px 40px 0;
  }
  .paragraphe-mentions-legales:nth-last-child(1){
    padding: 40px ;
  }

  .marque-en-mentions-legales{
  margin-top: 50px;
  margin-bottom: 80px;
  font-size: 14px;
}
.return-home{
  top: 10px;
  right: 10px;
}

.return-home img{
  width: 35px;
}
.levers-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
}


@media (max-width: 360px){

    .services .container, .strategy-section .container{
        padding: 0;
    }

.contact-form{
        width: 96%;
    }

    .benefits-section .container{
        padding: 0;
    }
}
