/* ===== BLOG IA & AVANCEES TECHNOLOGIQUES ===== */
/* Reset & Variables */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --background:#fff;
  --foreground:hsl(222,47%,11%);
  --primary:hsl(238,87%,65%);
  --primary-foreground:#fff;
  --primary-hover:hsl(238,87%,58%);
  --secondary:hsl(240,20%,96%);
  --secondary-foreground:hsl(222,47%,11%);
  --muted:hsl(240,20%,96%);
  --muted-foreground:hsl(215,16%,47%);
  --accent:hsl(238,87%,95%);
  --accent-foreground:hsl(238,87%,45%);
  --border:hsl(214,32%,91%);
  --card:#fff;
  --card-foreground:hsl(222,47%,11%);
  --radius:.75rem;
  --shadow-sm:0 1px 2px 0 rgba(0,0,0,.05);
  --shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);
  --shadow-md:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);
  --shadow-2xl:0 25px 50px -12px rgba(0,0,0,.25);
}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:'Outfit',ui-sans-serif,system-ui,sans-serif;color:var(--foreground);background:var(--background);line-height:1.5;overflow-x:hidden}
img,svg,video{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
ul,ol{list-style:none}
h1,h2,h3,h4,h5,h6{line-height:1.2;letter-spacing:-.02em;font-weight:700;text-wrap:balance}

/* ===== ANIMATIONS ===== */
@keyframes fadeSlideUp{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes scaleIn{from{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}
@keyframes slideLeft{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}
@keyframes pulse{50%{opacity:.5}}
@keyframes shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}

.anim-target{opacity:0;transition:opacity .6s ease,transform .6s ease}
.anim-target.visible{opacity:1;transform:none}
.anim-up{transform:translateY(30px)}
.anim-scale{transform:scale(.95)}
.anim-left{transform:translateX(20px)}

/* Hero animation (runs immediately) */
.hero-animate{animation:fadeSlideUp .7s ease-out both}

/* ===== HEADER ===== */
.header{position:sticky;top:0;z-index:50;width:100%;border-bottom:1px solid var(--border);background:hsl(0 0% 100%/.95);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.header-inner{max-width:80rem;margin:0 auto;padding:0 1rem;display:flex;height:4rem;align-items:center;justify-content:space-between}
.header-inner>*{padding:0 1rem}
.logo{display:flex;align-items:center;gap:.5rem;font-weight:600;font-size:1.125rem;transition:color .2s}
.logo:hover{color:var(--primary)}
.logo svg{width:1.5rem;height:1.5rem;color:var(--primary);flex-shrink:0}
.logo-full{display:inline}
.logo-short{display:none}
.nav{display:flex;align-items:center;gap:1.5rem}
.nav a{font-size:.875rem;font-weight:500;transition:color .2s;color:var(--foreground)}
.nav a:hover,.nav a.active{color:var(--primary);font-weight:600}
.menu-btn{display:none;width:2.5rem;height:2.5rem;align-items:center;justify-content:center;border-radius:var(--radius)}
.menu-btn:hover{background:var(--muted)}

/* Mobile nav */
.mobile-nav{display:none;position:fixed;inset:0;z-index:100;background:hsl(0 0% 100%/.97);backdrop-filter:blur(12px);flex-direction:column;align-items:center;justify-content:center;gap:2rem}
.mobile-nav.open{display:flex;animation:fadeIn .2s ease}
.mobile-nav a{font-size:1.25rem;font-weight:600;transition:color .2s}
.mobile-nav a:hover{color:var(--primary)}
.close-btn{position:absolute;top:1.25rem;right:1.25rem;width:2.5rem;height:2.5rem;display:flex;align-items:center;justify-content:center;border-radius:var(--radius)}
.close-btn:hover{background:var(--muted)}

/* ===== HERO ===== */
.hero{position:relative;min-height:90vh;display:flex;align-items:center;justify-content:center;overflow:hidden}
.hero-bg{position:absolute;inset:0;z-index:0}
.hero-bg img{width:100%;height:100%;object-fit:cover}
.hero-overlay{position:absolute;inset:0;background:hsl(0 0% 100%/.8);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.hero-gradient{position:absolute;inset:0;background:linear-gradient(to top,var(--background),hsl(0 0% 100%/.6),transparent)}
.hero-content{position:relative;z-index:10;max-width:80rem;padding:0 1rem;width:100%;text-align:center;padding-top:3rem}
.hero-inner{max-width:56rem;margin:0 auto}
.hero-badge{display:inline-flex;align-items:center;padding:.5rem 1rem;border-radius:9999px;background:hsl(238 87% 65%/.1);color:var(--primary);border:1px solid hsl(238 87% 65%/.2);font-size:.875rem;font-weight:500;margin-bottom:2rem}
.hero-badge .dot{width:.5rem;height:.5rem;border-radius:50%;background:var(--primary);margin-right:.5rem;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}
.hero-title{font-size:clamp(2rem,5vw,3.75rem);font-weight:800;letter-spacing:-.02em;margin-bottom:2rem}
.hero-title .gradient{background:linear-gradient(to right,var(--primary),var(--accent-foreground));-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-desc{font-size:clamp(1rem,2.5vw,1.375rem);color:var(--muted-foreground);margin-bottom:3rem;max-width:48rem;margin-left:auto;margin-right:auto;line-height:1.625}
.hero-cta{display:flex;flex-wrap:wrap;gap:1rem;justify-content:center}

/* ===== BUTTONS ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;padding:1rem 2rem;border-radius:.75rem;font-weight:600;font-size:1.125rem;transition:all .2s;border:1px solid transparent;gap:.5rem}
.btn:active{transform:scale(.98)}
.btn-primary{background:var(--primary);color:var(--primary-foreground);box-shadow:var(--shadow-lg)}
.btn-primary:hover{background:var(--primary-hover)}
.btn-secondary{background:var(--secondary);color:var(--secondary-foreground);border-color:var(--border)}
.btn-secondary:hover{background:hsl(240 20% 96%/.8)}
.btn-outline{background:transparent;color:var(--foreground);border-color:var(--border)}
.btn-outline:hover{background:var(--muted)}
.btn-sm{padding:.5rem 1rem;font-size:.875rem;border-radius:.5rem}
.btn-white{background:#fff;color:var(--foreground);box-shadow:var(--shadow-inner, inset 0 2px 4px 0 rgba(0,0,0,.05))}
.btn-white:hover{background:var(--muted)}

/* ===== SECTION LAYOUT ===== */
.section{padding:6rem 1rem}
.section-muted{background:hsl(240 20% 96%/.3);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.container{max-width:80rem;margin:0 auto}
.section-header{margin-bottom:3rem}
.section-header h2{font-size:clamp(1.5rem,3vw,2.25rem);font-weight:700;margin-bottom:1rem}
.section-header p{font-size:1.125rem;color:var(--muted-foreground)}

/* ===== FEATURED (À la Une) ===== */
.featured-grid{display:grid;grid-template-columns:1fr;gap:2rem}
.featured-large{border-radius:var(--radius);overflow:hidden;background:var(--card);border:1px solid var(--border);box-shadow:var(--shadow);transition:box-shadow .3s,transform .3s;cursor:pointer}
.featured-large:hover{box-shadow:var(--shadow-xl);transform:translateY(-2px)}
.featured-large .card-img{aspect-ratio:16/9;overflow:hidden}
.featured-large .card-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.featured-large:hover .card-img img{transform:scale(1.03)}
.featured-large .card-body{padding:1.5rem 2rem 2rem}
.featured-large .card-body .badge{margin-bottom:.75rem}
.featured-large .card-body h3{font-size:1.5rem;font-weight:700;margin-bottom:.5rem;line-height:1.3}
.featured-large .card-body p{color:var(--muted-foreground);font-size:.95rem;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

.featured-side{display:flex;flex-direction:column;gap:2rem}
.article-card{display:flex;gap:1rem;border-radius:var(--radius);overflow:hidden;background:var(--card);border:1px solid var(--border);box-shadow:var(--shadow-sm);transition:box-shadow .3s,transform .3s;cursor:pointer;flex:1}
.article-card:hover{box-shadow:var(--shadow-lg);transform:translateY(-2px)}
.article-card .card-img{width:140px;min-height:120px;flex-shrink:0;overflow:hidden}
.article-card .card-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.article-card:hover .card-img img{transform:scale(1.05)}
.article-card .card-body{padding:1rem 1rem 1rem 0;display:flex;flex-direction:column;justify-content:center}
.article-card .card-body .badge{margin-bottom:.5rem}
.article-card .card-body h3{font-size:1rem;font-weight:600;margin-bottom:.25rem;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.article-card .card-body p{color:var(--muted-foreground);font-size:.8rem;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.article-card .card-meta{display:flex;align-items:center;gap:.5rem;font-size:.75rem;color:var(--muted-foreground);margin-top:.5rem}

/* ===== BADGE ===== */
.badge{display:inline-flex;align-items:center;padding:.25rem .75rem;border-radius:9999px;background:var(--accent);color:var(--accent-foreground);font-size:.75rem;font-weight:600}

/* ===== CATEGORIES ===== */
.categories-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}
.category-card{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.25rem;border-radius:var(--radius);background:var(--card);border:1px solid var(--border);box-shadow:var(--shadow-sm);transition:all .3s;cursor:pointer;gap:.5rem;text-align:center}
.category-card:hover{box-shadow:var(--shadow-md);border-color:var(--primary);transform:translateY(-2px)}
.category-card svg{width:1.75rem;height:1.75rem;color:var(--primary)}
.category-card .cat-title{font-size:.9rem;font-weight:600}
.category-card .cat-count{font-size:.75rem;color:var(--muted-foreground)}

/* ===== ARTICLES GRID ===== */
.articles-grid{display:grid;grid-template-columns:1fr;gap:2rem}
.section-nav{display:flex;align-items:center;color:var(--primary);font-weight:500;font-size:.875rem;transition:color .2s;gap:.25rem;cursor:pointer;background:none;border:none}
.section-nav:hover{color:var(--primary-hover)}
.section-nav svg{width:1rem;height:1rem}

/* ===== WHY SECTION ===== */
.why-grid{display:grid;grid-template-columns:1fr;gap:4rem;align-items:center}
.why-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}
.stat-card{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem;background:var(--card);border:1px solid var(--border);box-shadow:var(--shadow-sm);border-radius:var(--radius)}
.stat-number{font-size:clamp(1.5rem,4vw,3rem);font-weight:800;font-variant-numeric:tabular-nums;margin-bottom:.5rem}
.stat-label{font-size:.8rem;font-weight:500;color:var(--muted-foreground);text-transform:uppercase;letter-spacing:.05em;text-align:center}
.features-grid{display:grid;grid-template-columns:1fr;gap:1.5rem}
.feature-card{background:var(--card);border-radius:var(--radius);padding:1.5rem;box-shadow:var(--shadow);transition:box-shadow .3s}
.feature-card:hover{box-shadow:var(--shadow-xl)}
.feature-card svg{width:2.5rem;height:2.5rem;color:var(--primary);margin-bottom:1rem}
.feature-card h4{font-size:1.05rem;font-weight:600;margin-bottom:.5rem}
.feature-card p{color:var(--muted-foreground);font-size:.875rem;line-height:1.6}

/* ===== NEWSLETTER ===== */
.newsletter{max-width:56rem;margin:0 auto}
.newsletter-card{background:var(--primary);color:var(--primary-foreground);border-radius:1.5rem;padding:2rem;box-shadow:var(--shadow-2xl);position:relative;overflow:hidden}
.newsletter-card .blob1{position:absolute;top:0;right:0;width:16rem;height:16rem;border-radius:50%;background:hsl(0 0% 100%/.1);filter:blur(64px);pointer-events:none;transform:translate(30%,-30%)}
.newsletter-card .blob2{position:absolute;bottom:0;left:0;width:20rem;height:20rem;border-radius:50%;background:rgba(0,0,0,.1);filter:blur(64px);pointer-events:none;transform:translate(-30%,30%)}
.newsletter-content{position:relative;z-index:10;text-align:center;margin-bottom:2.5rem}
.newsletter-content h2{font-size:clamp(1.5rem,3vw,2.25rem);font-weight:700;color:#fff;margin-bottom:1rem}
.newsletter-content p{font-size:1.125rem;color:hsl(0 0% 100%/.8);max-width:42rem;margin:0 auto}
.newsletter-form{position:relative;z-index:10;max-width:36rem;margin:0 auto;background:var(--background);color:var(--foreground);border-radius:.75rem;box-shadow:inset 0 2px 4px 0 rgba(0,0,0,.05);padding:.5rem;display:flex;gap:.5rem}
.newsletter-form input{flex:1;border:none;outline:none;background:transparent;padding:.5rem 1rem;font-size:.9rem;font-family:inherit;color:var(--foreground);min-width:0}
.newsletter-form input::placeholder{color:var(--muted-foreground)}
.newsletter-form button{background:var(--primary);color:#fff;padding:.5rem 1.25rem;border-radius:.5rem;font-weight:600;font-size:.875rem;white-space:nowrap;transition:background .2s}
.newsletter-form button:hover{background:var(--primary-hover)}

/* Newsletter success state */
.newsletter-success{text-align:center;padding:2rem}
.newsletter-success h3{font-size:1.25rem;font-weight:700;margin-bottom:.5rem;color:#fff}
.newsletter-success p{color:hsl(0 0% 100%/.8);font-size:.95rem}

/* ===== FOOTER ===== */
.footer{border-top:1px solid var(--border);background:hsl(240 20% 96%/.5);margin-top:5rem}
.footer-inner{max-width:80rem;margin:0 auto;padding:3rem 1rem}
.footer-grid{display:grid;grid-template-columns:1fr;gap:2rem}
.footer-brand .brand-name{font-weight:600;font-size:1.125rem}
.footer-brand .brand-desc{margin-top:.5rem;font-size:.875rem;color:var(--muted-foreground)}
.footer-links h4{font-weight:600;font-size:.875rem;margin-bottom:.75rem}
.footer-links a{display:block;font-size:.875rem;color:var(--muted-foreground);padding:.25rem 0;transition:color .2s}
.footer-links a:hover{color:var(--foreground)}
.footer-social{display:flex;gap:1rem;margin-top:.75rem}
.footer-social a{color:var(--muted-foreground);transition:color .2s}
.footer-social a:hover{color:var(--foreground)}
.footer-social svg{width:1.25rem;height:1.25rem}
.footer-bottom{margin-top:2rem;padding-top:2rem;border-top:1px solid var(--border);text-align:center}
.footer-bottom p{font-size:.875rem;color:var(--muted-foreground)}

/* ===== ARTICLE DETAIL ===== */
.article-detail{max-width:56rem;margin:0 auto;padding:3rem 1rem}
.article-back{display:inline-flex;align-items:center;gap:.5rem;font-size:.875rem;color:var(--muted-foreground);transition:color .2s;margin-bottom:2rem}
.article-back:hover{color:var(--foreground)}
.article-back svg{width:1rem;height:1rem}
.article-date{display:flex;align-items:center;gap:.5rem;font-size:.875rem;color:var(--muted-foreground);margin-bottom:1rem}
.article-date svg{width:1rem;height:1rem}
.article-detail h1{font-size:clamp(1.75rem,4vw,3rem);font-weight:700;margin-bottom:1.5rem}
.article-excerpt{font-size:1.25rem;color:var(--muted-foreground);line-height:1.625;margin-bottom:2rem}
.article-hero-img{aspect-ratio:16/9;border-radius:var(--radius);overflow:hidden;margin-bottom:3rem;box-shadow:var(--shadow-lg)}
.article-hero-img img{width:100%;height:100%;object-fit:cover}
.article-content{font-size:1.05rem;line-height:1.8;color:var(--foreground)}
.article-content p{margin-bottom:1.25rem}
.article-bottom-nav{margin-top:4rem;padding-top:2rem;border-top:1px solid var(--border);display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;align-items:center}

/* ===== ABOUT PAGE ===== */
.about-hero{position:relative;padding:5rem 1rem;overflow:hidden}
.about-hero .bg-grad{position:absolute;inset:0;background:linear-gradient(to bottom right,hsl(238 87% 65%/.05),transparent,hsl(240 20% 96%/.05));pointer-events:none}
.about-hero .container{position:relative;max-width:56rem;margin:0 auto;text-align:center}
.about-hero h1{font-size:clamp(1.75rem,4vw,3rem);font-weight:700;margin-bottom:1.5rem}
.about-hero .about-intro{font-size:1.125rem;color:var(--muted-foreground);max-width:48rem;margin:0 auto;line-height:1.625}
.about-text{max-width:56rem;margin:0 auto 4rem;padding:0 1rem}
.about-text p{font-size:1.05rem;line-height:1.7;margin-bottom:1.25rem;color:var(--foreground)}
.about-grid{max-width:56rem;margin:0 auto;padding:0 1rem;display:grid;grid-template-columns:1fr;gap:2rem}
.about-card{background:var(--card);border-radius:var(--radius);padding:1.5rem;box-shadow:var(--shadow-lg);transition:box-shadow .3s}
.about-card:hover{box-shadow:var(--shadow-xl)}
.about-card svg{width:2.5rem;height:2.5rem;color:var(--primary);margin-bottom:1rem}
.about-card h3{font-size:1.125rem;font-weight:600;margin-bottom:.75rem}
.about-card p{color:var(--muted-foreground);font-size:.9rem;line-height:1.6}
.about-cta{max-width:56rem;margin:0 auto;padding:0 1rem}
.about-cta-card{background:var(--secondary);border-radius:var(--radius);padding:2rem;text-align:center}
.about-cta-card h2{font-size:1.5rem;font-weight:600;margin-bottom:1rem}
.about-cta-card p{color:hsl(222 47% 11%/.7);max-width:42rem;margin:0 auto 1.5rem;line-height:1.6}

/* ===== NOT FOUND ===== */
.not-found{display:flex;align-items:center;justify-content:center;min-height:60vh;padding:2rem 1rem;text-align:center}
.not-found h1{font-size:2.25rem;font-weight:700;margin-bottom:1rem}
.not-found p{color:var(--muted-foreground);margin-bottom:2rem}

/* ===== RESPONSIVE ===== */
@media(min-width:640px){
  .categories-grid{grid-template-columns:repeat(3,1fr)}
  .articles-grid{grid-template-columns:repeat(2,1fr)}
  .newsletter-card{padding:3rem}
  .footer-grid{grid-template-columns:repeat(3,1fr)}
  .about-grid{grid-template-columns:repeat(2,1fr)}
  .features-grid{grid-template-columns:repeat(2,1fr)}
  .featured-grid{grid-template-columns:2fr 1fr}
  .featured-side{flex-direction:column}
}
@media(min-width:768px){
  .section{padding:6rem 1.5rem}
  .header-inner>*{padding:0 1.5rem}
  .hero-content{padding:0 1.5rem}
  .article-detail{padding:3rem 1.5rem}
  .footer-inner{padding:3rem 1.5rem}
}
@media(min-width:1024px){
  .section{padding:6rem 2rem}
  .categories-grid{grid-template-columns:repeat(5,1fr)}
  .articles-grid{grid-template-columns:repeat(3,1fr)}
  .why-grid{grid-template-columns:5fr 7fr}
  .about-grid{grid-template-columns:repeat(2,1fr)}
  .features-grid{grid-template-columns:repeat(2,1fr)}
  .header-inner>*{padding:0 2rem}
  .hero-content{padding:0 2rem}
  .article-detail{padding:3rem 2rem}
  .footer-inner{padding:3rem 2rem}
  .logo-short{display:none}
  .logo-full{display:inline}
}
@media(max-width:1023px){
  .logo-full{display:none}
  .logo-short{display:inline}
}
@media(max-width:639px){
  .nav{display:none}
  .menu-btn{display:flex}
  .featured-grid{grid-template-columns:1fr}
  .featured-side{flex-direction:column}
  .article-card .card-img{width:110px;min-height:100px}
  .categories-grid{grid-template-columns:repeat(2,1fr)}
  .articles-grid{grid-template-columns:1fr}
  .why-grid{grid-template-columns:1fr}
  .features-grid{grid-template-columns:1fr}
  .about-grid{grid-template-columns:1fr}
  .hero-cta .btn{width:100%}
  .newsletter-form{flex-direction:column}
  .newsletter-form button{width:100%;padding:.75rem}
  .article-bottom-nav{flex-direction:column;align-items:stretch}
  .article-bottom-nav .btn{justify-content:center}
}

/* ===== UTILITY ===== */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.text-center{text-align:center}
.text-muted{color:var(--muted-foreground)}
