/*
Theme Name: Afteraic - AI & Automation Expert
Theme URI: https://afteraic.com
Description: Thème WordPress professionnel pour expert en IA et automatisation. Moderne, responsive et optimisé SEO.
Version: 1.0.0
Author: Afteraic
Author URI: https://afteraic.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: afteraic
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap');

:root {
    --primary: #4FC3C3;
    --primary-dark: #3daaaa;
    --background-light: #f6f8f8;
    --background-dark: #000000;
    --text-dark: #1A202C;
    --text-light: #FFFFFF;
    --text-muted: #9CA3AF;
    --border-color: rgba(255, 255, 255, 0.1);
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.dark {
    background-color: var(--background-dark);
    color: var(--text-light);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    opacity: 0.8;
}

/* Paragraphs */
p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* Lists */
ul, ol {
    margin-bottom: 1.5rem;
    margin-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Buttons */
button,
.button,
input[type="button"],
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.button-primary {
    background-color: var(--primary);
    color: var(--background-dark);
}

.button-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(79, 195, 195, 0.3);
}

.button-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.button-outline:hover {
    background-color: rgba(79, 195, 195, 0.1);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 195, 195, 0.1);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

figure {
    margin-bottom: 2rem;
}

figcaption {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Tables */
table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

th {
    background-color: var(--gray-100);
    font-weight: 600;
}

/* Blockquotes */
blockquote {
    margin-left: 0;
    padding-left: 1.5rem;
    border-left: 4px solid var(--primary);
    color: var(--gray-600);
    font-style: italic;
    margin-bottom: 2rem;
}

/* Code */
code,
pre {
    font-family: 'Courier New', monospace;
    background-color: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

pre {
    padding: 1.5rem;
    overflow-x: auto;
    margin-bottom: 2rem;
    line-height: 1.4;
}

pre code {
    background-color: transparent;
    padding: 0;
}

/* WordPress Classes */
.wp-caption {
    margin-bottom: 2rem;
}

.wp-caption-text {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.alignleft {
    float: left;
    margin-right: 2rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.aligncenter {
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-bottom: 2rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.page-wrapper-fixed {
    max-width: 900px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 60px 20px;
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Flex Layout */
.flex {
    display: flex;
}

.flex-center {
    justify-content: center;
    align-items: center;
}

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

.flex-col {
    flex-direction: column;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Spacing */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Display */
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.hidden { display: none !important; }
.visible { display: block !important; }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

/* Background Utilities */
.bg-primary { background-color: var(--primary); }
.bg-light { background-color: var(--background-light); }
.bg-dark { background-color: var(--background-dark); }

/* Border Utilities */
.border { border: 1px solid var(--gray-300); }
.border-primary { border-color: var(--primary); }
.rounded { border-radius: 0.5rem; }
.rounded-lg { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Shadow Utilities */
.shadow { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); }
.shadow-xl { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); }

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .flex-col-mobile {
        flex-direction: column;
    }

    .hidden-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hidden-desktop {
        display: none !important;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        color: black;
    }

    a {
        text-decoration: underline;
    }

    .no-print {
        display: none !important;
    }
}
/* === Afteraic : utilitaires pour les classes du thème === */

/* Fond et texte global en mode "dark" */
body.bg-background-dark {
    background-color: var(--background-dark);
    color: var(--text-light);
}

/* Couleurs de texte */
.text-white { color: #ffffff; }
.text-gray-300 { color: var(--gray-300); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }

/* Fonds */
.bg-background-dark { background-color: var(--background-dark); }
.bg-background-dark\/80 { background-color: rgba(0, 0, 0, 0.8); }
.bg-gray-800 { background-color: var(--gray-800); }
.bg-gray-900 { background-color: var(--gray-900); }
.bg-primary\/10 { background-color: rgba(79, 195, 195, 0.1); }
.bg-primary\/20 { background-color: rgba(79, 195, 195, 0.2); }

/* Bordures */
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-gray-700 { border-color: var(--gray-700); }

/* Largeurs */
.w-full { width: 100%; }
.max-w-4xl { max-width: 56rem; }   /* ~896px */
.max-w-7xl { max-width: 80rem; }   /* ~1280px */
.max-w-none { max-width: none; }

/* Position / layout */
.flex-grow { flex-grow: 1; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }

/* Grille */
.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Marges verticales supplémentaires */
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

/* Padding utilitaires */
.pt-8 { padding-top: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }

/* Centrage horizontal */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Typo utilitaires manquants */
.text-xs { font-size: 0.75rem; }
.text-5xl { font-size: 3rem; line-height: 1.1; }

/* Prose (contenu d’article) */
.prose {
    font-size: 1rem;
    line-height: 1.8;
}

.prose p {
    margin-bottom: 1.25rem;
}

.prose-invert {
    color: var(--gray-200);
}

.prose-invert a {
    color: var(--primary);
    text-decoration: underline;
}

/* Transitions & blur */
.transition {
    transition: all 0.2s ease;
}

.backdrop-blur-sm {
    backdrop-filter: blur(10px);
}
.wp-block-post-title,
.wp-block-post-title > h1,
h1.wp-block-post-title {
    display: none !important;
    visibility: hidden !important;
}
.wp-block-button__link:hover {
  background: #1ec7e6;
  transform: translateY(-3px);
}

.valopro p {
  line-height: 1.6;
}


/* ---- Axilia Page Styles ---- */

.axilia-hero {
  background: #020617;
  padding: 5rem 2rem;
  color: #ffffff;
}

.axilia-subtitle {
  font-size: 0.9rem;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-bottom: 1.5rem;
  display: inline-block;
  color: #2BA9C4;
}

.axilia-title {
  font-family: 'Inter', sans-serif;
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.axilia-highlight {
  color: #2BA9C4;
}

.axilia-text {
  max-width: 720px;
  margin-bottom: 2rem;
  color: #cbd5e1;
  line-height: 1.7;
}

.axilia-section {
  background: #0b0f19;
  padding: 4rem 2rem;
  color: white;
}

.axilia-feature-card {
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 2rem;
  color: #cbd5e1;
}

.axilia-gallery img {
  border-radius: 16px;
  width: 100%;
  display: block;
}
/* ============================================
   GRID PRINCIPALE
   ============================================ */
.projets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 2rem 0;
}

/* Responsive tablette */
@media (max-width: 1024px) {
    .projets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive mobile */
@media (max-width: 768px) {
    .projets-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CARDS (COLONNES)
   ============================================ */
.projet-card {
    background: #0A0F1C; /* Fond bleu nuit Afteraic */
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
    border: 1px solid rgba(255,255,255,0.06);
}

/* Effet hover professionnel */
.projet-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}

/* ============================================
   TITRES
   ============================================ */
.projet-card h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
}

/* ============================================
   TEXTES
   ============================================ */
.projet-card p {
    color: #d7d7d7;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 1.6rem;
}

/* ============================================
   IMAGES
   ============================================ */
.projet-card img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    margin-bottom: 1.2rem;
}

/* ============================================
   BOUTON
   ============================================ */
.projet-card .wp-block-button__link,
.projet-card .uagb-buttons-child a {
    background-color: #2BA9C4; /* Bleu techno Afteraic */
    color: #ffffff !important;
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
    border-radius: 30px;
    border: none !important;
    box-shadow: 0 4px 12px rgba(43,169,196,0.35);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.projet-card .wp-block-button__link:hover,
.projet-card .uagb-buttons-child a:hover {
    background-color: #1e7f97;
    box-shadow: 0 6px 18px rgba(43,169,196,0.45);
}

/* ============================================
   ESPACEMENTS
   ============================================ */
.projets-grid .projet-card > *:last-child {
    margin-bottom: 0;
}
/* Fix tailles et marges des boutons dans les cards */
.projet-card .wp-block-uagb-buttons,
.projet-card .wp-block-uagb-buttons-child {
    margin: 0 !important;
    padding: 0 !important;
}

.projet-card .wp-block-button__link {
    padding: 10px 20px !important;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 768px) {
  .projets-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .projet-card {
    max-width: 100%;
  }
}

/* Container global des pages projets */
.single-projet-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px;
}

/* Images MVP */
.single-projet-section img {
  border-radius: 12px;
  margin-bottom: 30px;
}

/* Titres MVP */
.single-projet-section h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

/* Paragraphe MVP */
.single-projet-section p {
  line-height: 1.7;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* Bouton principal */
.single-projet-section .wp-block-button__link {
  background: #15B9D4;
  padding: 14px 28px;
  border-radius: 40px;
  font-weight: 600;
  transition: 0.25s ease;
}

.single-projet-section .wp-block-button__link:hover {
  background: #1ec7e6;
  transform: translateY(-3px);
}
/* Section Projects */
.section-projects {
  padding: 80px 0;
  background: #0A0A0A;
}

.projects-title {
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Card */
.project-card {
  background: #111;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.project-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.project-card h3 {
  color: white;
  margin-bottom: 10px;
}

.project-card p {
  color: #d0d0d0;
  margin-bottom: 20px;
}

/* SECTION PROJETS — grille responsive */
.section-projets {
    padding: 80px 0;
}

/* Titres */
.section-projets h3 {
    font-size: 22px;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Paragraphe */
.section-projets p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Bouton */
.section-projets .wp-block-button__link {
    background-color: #1EA6BB;
    color: #fff;
    padding: 14px 26px;
    border-radius: 40px;
    font-weight: 500;
    transition: 0.2s ease-in-out;
}

.section-projets .wp-block-button__link:hover {
    background-color: #16879A;
}

/* Cards */
.section-projets .wp-block-column {
    background: #111625;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.25);
    text-align: center;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .section-projets .wp-block-columns {
        flex-direction: column;
        gap: 20px;
    }
}
/* Section Services */
.section-services {
    padding: 80px 0;
    text-align: center;
}

.section-services h2 {
    color: #ffffff;
    margin-bottom: 20px;
}

.section-services p {
    color: #cccccc;
    max-width: 700px;
    margin: 0 auto 50px;
}

/* Cartes Services */
.service-card {
    background: #0c1122;
    border: 1px solid #1e2235;
    border-radius: 20px;
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.service-card h3 {
    color: #ffffff;
    margin-bottom: 10px;
}

.service-card p {
    color: #cccccc;
}
.section-why {
    padding: 80px 0;
    text-align: center;
}

.section-why h2 {
    color: #ffffff;
    margin-bottom: 50px;
}

.section-why .wp-block-column {
    color: #cccccc;
    font-size: 18px;
}
.section-about {
    padding: 80px 0;
    align-items: center;
}

.section-about h2 {
    color: #ffffff;
    margin-bottom: 20px;
}

.section-about p {
    color: #cccccc;
    font-size: 18px;
    line-height: 1.6;
}

.section-about img {
    border-radius: 20px;
}
.section-contact {
    padding: 100px 0;
    text-align: center;
    background: #0c1122;
    border-top: 1px solid #1e2235;
}

.section-contact h2 {
    color: #ffffff;
    margin-bottom: 20px;
}

.section-contact p {
    color: #cccccc;
    margin-bottom: 40px;
}

.section-contact a.wp-block-button__link {
    background: #2BA9C4 !important;
    color: #ffffff !important;
    padding: 16px 32px !important;
    border-radius: 50px !important;
    font-size: 18px;
}
.home h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 1rem;
}
/* Fix Gutenberg columns breaking layout */
[class*="wp-container-core-columns"] {
    flex-wrap: wrap !important;
}
.wp-container-core-columns-is-layout-flex,
[class*="wp-container-core-columns"] {
    flex-wrap: wrap !important;
}
