/* =====================================================
   Com'toi Agence de Design — style.css
   Version: 1.0 | agencecomtoi.com
   ===================================================== */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0f172a;
  --navy2:  #1e293b;
  --teal:   #14b8a6;
  --teal2:  #0d9488;
  --white:  #ffffff;
  --light:  #f8fafc;
  --gray:   #94a3b8;
  --dark:   #334155;
  --font-main: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-head: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(15,23,42,.13);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  background: var(--white);
  color: var(--navy);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal2); }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1rem; color: var(--dark); }

/* === LAYOUT === */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 80px 0; }
.section-light { background: var(--light); }
.section-dark { background: var(--navy); }
.section-teal { background: var(--teal); }

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .75rem;
}
.section-dark .section-label { color: var(--teal); }

.section-title { margin-bottom: 1rem; }
.section-subtitle { font-size: 1.05rem; color: var(--dark); max-width: 640px; margin-bottom: 3rem; }
.section-dark .section-subtitle, .section-dark p { color: var(--gray); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-teal { color: var(--teal) !important; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-primary:hover { background: var(--teal2); border-color: var(--teal2); color: var(--white); }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-white:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-dark:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }

/* === NAVIGATION === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15,23,42,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.25); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

.nav-logo img { height: 42px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-menu a {
  display: block;
  padding: .5rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  border-radius: 6px;
  transition: all var(--transition);
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--teal);
  background: rgba(20,184,166,.1);
}

.nav-cta { margin-left: .75rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .4rem;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('/images/hero-agence.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.88);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 80px;
  max-width: 740px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(20,184,166,.15);
  border: 1px solid rgba(20,184,166,.4);
  color: var(--teal);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.75rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 span { color: var(--teal); }
.hero-desc { font-size: 1.15rem; color: rgba(255,255,255,.75); max-width: 560px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat-value { font-size: 2.2rem; font-weight: 800; color: var(--teal); line-height: 1; }
.hero-stat-label { font-size: .82rem; color: rgba(255,255,255,.6); margin-top: .25rem; }

/* === HERO MINI (inner pages) === */
.page-hero {
  position: relative;
  padding: 140px 0 70px;
  background: var(--navy);
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--navy2));
}
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero p { color: var(--gray); max-width: 580px; margin-bottom: 0; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--gray);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--teal); }
.breadcrumb span { color: var(--gray); }

/* === CARDS === */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(15,23,42,.18); }
.card-img { aspect-ratio: 16/9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 1.5rem; }
.card-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .6rem;
}
.card-title { margin-bottom: .6rem; font-size: 1.1rem; }
.card-title a { color: var(--navy); }
.card-title a:hover { color: var(--teal); }
.card-meta { font-size: .8rem; color: var(--gray); margin-bottom: .75rem; display: flex; gap: 1rem; }
.card-excerpt { font-size: .9rem; color: var(--dark); margin-bottom: 1rem; }

/* === SERVICE CARD === */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 3px solid transparent;
  transition: all var(--transition);
}
.service-card:hover { border-top-color: var(--teal); transform: translateY(-4px); }
.service-icon {
  width: 56px; height: 56px;
  background: rgba(20,184,166,.12);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 28px; height: 28px; stroke: var(--teal); fill: none; stroke-width: 2; }
.service-card h3 { margin-bottom: .75rem; }
.service-card ul { padding-left: 0; }
.service-card ul li { font-size: .9rem; color: var(--dark); padding: .3rem 0; border-bottom: 1px solid rgba(0,0,0,.05); display: flex; align-items: center; gap: .5rem; }
.service-card ul li::before { content: ''; width: 6px; height: 6px; background: var(--teal); border-radius: 50%; flex-shrink: 0; }

/* === SPLIT SECTIONS === */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.split-img { overflow: hidden; }
.split-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split-content { padding: 5rem 4rem; display: flex; flex-direction: column; justify-content: center; }
.split-content.bg-dark { background: var(--navy); }
.split-content.bg-light { background: var(--light); }
.split-content.bg-teal { background: var(--teal); }
.split-content.bg-teal h2, .split-content.bg-teal p, .split-content.bg-teal .section-label { color: var(--white); }

/* === WEB BANNER === */
.web-banner {
  position: relative;
  padding: 100px 0;
  background-image: url('/images/web-design.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.web-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.87);
}
.web-banner .container { position: relative; z-index: 1; }

/* === PORTFOLIO GRID === */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  padding: 1.5rem;
  text-align: center;
}
.portfolio-item:hover img { transform: scale(1.07); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 { color: var(--white); margin-bottom: .4rem; font-size: 1rem; }
.portfolio-overlay span { color: var(--teal); font-size: .82rem; font-weight: 600; }

/* === PROCESS STEPS === */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: steps; }
.step { text-align: center; counter-increment: steps; position: relative; }
.step::after {
  content: '';
  position: absolute;
  top: 28px; left: calc(50% + 32px);
  right: calc(-50% + 32px);
  height: 2px;
  background: rgba(20,184,166,.25);
}
.step:last-child::after { display: none; }
.step-num {
  width: 56px; height: 56px;
  background: var(--teal);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.step h3 { margin-bottom: .5rem; font-size: 1rem; }
.step p { font-size: .88rem; color: var(--gray); margin-bottom: 0; }
.section-dark .step p { color: var(--gray); }

/* === TESTIMONIALS === */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.testimonial {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
  padding: 2rem;
}
.testimonial-stars { color: #fbbf24; font-size: 1rem; margin-bottom: 1rem; letter-spacing: .1em; }
.testimonial-text { color: rgba(255,255,255,.8); font-size: .93rem; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar {
  width: 44px; height: 44px;
  background: var(--teal);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: var(--white);
  font-size: .95rem;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; color: var(--white); font-size: .9rem; }
.testimonial-role { font-size: .78rem; color: var(--gray); }

/* === BLOG === */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.blog-hero-img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
}

.article-body { max-width: 820px; margin: 0 auto; }
.article-body h2 { margin: 2.5rem 0 1rem; color: var(--navy); }
.article-body h3 { margin: 2rem 0 .75rem; color: var(--navy2); }
.article-body p { color: var(--dark); line-height: 1.85; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-body ul li, .article-body ol li { color: var(--dark); line-height: 1.7; margin-bottom: .35rem; }
.article-body a { color: var(--teal); font-weight: 600; }
.article-body a:hover { color: var(--teal2); }
.article-body blockquote {
  border-left: 4px solid var(--teal);
  padding: 1rem 1.5rem;
  background: var(--light);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
  font-style: italic;
  color: var(--dark);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  font-size: .85rem;
  color: var(--gray);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.article-meta strong { color: var(--navy); }
.article-tag {
  background: rgba(20,184,166,.12);
  color: var(--teal);
  padding: .2rem .8rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* === CONTACT FORM === */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-info-icon {
  width: 44px; height: 44px;
  background: rgba(20,184,166,.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 20px; height: 20px; stroke: var(--teal); fill: none; stroke-width: 2; }
.contact-info-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); }
.contact-info-value { color: var(--navy); font-weight: 600; }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: .95rem;
  color: var(--navy);
  background: var(--light);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--teal);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* === CTA BAND === */
.cta-band {
  background: var(--navy);
  padding: 80px 0;
}
.cta-band.teal { background: var(--teal); }
.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 2rem; }

/* === FAQ === */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0;
}
.faq-question {
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
}
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--teal); flex-shrink: 0; }
.faq-answer { color: var(--gray); font-size: .93rem; margin-top: .75rem; line-height: 1.7; }

/* === SITEMAP === */
.sitemap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.sitemap-col h3 { color: var(--teal); font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.sitemap-col ul li { margin-bottom: .5rem; }
.sitemap-col ul li a { color: var(--gray); font-size: .9rem; }
.sitemap-col ul li a:hover { color: var(--teal); }

/* === 404 === */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--navy); text-align: center; padding: 2rem; }
.error-code { font-size: clamp(6rem, 20vw, 12rem); font-weight: 900; color: var(--teal); line-height: 1; opacity: .15; }
.error-content { position: relative; margin-top: -4rem; }
.error-content h2 { color: var(--white); margin-bottom: 1rem; }
.error-content p { color: var(--gray); margin-bottom: 2rem; }

/* === FOOTER === */
.site-footer {
  background: var(--navy2);
  padding: 64px 0 0;
  margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-logo img { height: 36px; margin-bottom: 1rem; }
.footer-about { color: var(--gray); font-size: .9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.25rem; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul li a { color: var(--gray); font-size: .88rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { color: var(--gray); font-size: .82rem; margin-bottom: 0; }
.footer-bottom a { color: var(--gray); font-size: .82rem; }
.footer-bottom a:hover { color: var(--teal); }

/* === SOCIALS === */
.social-links { display: flex; gap: .75rem; margin-top: 1.25rem; }
.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.social-link:hover { background: var(--teal); }
.social-link svg { width: 16px; height: 16px; fill: var(--gray); transition: fill var(--transition); }
.social-link:hover svg { fill: var(--white); }

/* === TAGS === */
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.tag {
  background: var(--light);
  color: var(--dark);
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .8rem;
  border-radius: 50px;
  border: 1px solid rgba(0,0,0,.08);
}

/* === HIGHLIGHTS === */
.highlight-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0; }
.highlight-item { display: flex; align-items: flex-start; gap: .75rem; }
.highlight-icon { color: var(--teal); font-size: 1.1rem; flex-shrink: 0; margin-top: .1rem; }
.highlight-text { font-size: .92rem; color: var(--dark); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .split { grid-template-columns: 1fr; }
  .split-img { aspect-ratio: 16/7; }
  .split-content { padding: 3rem 2.5rem; }
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .blog-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy); padding: 1rem; gap: 0; border-bottom: 2px solid var(--teal); }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: .75rem 1rem; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.05); }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-stats { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .highlight-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: 1fr; }
}
