/* ============================================================
   CORMIER INFORMATIQUE — Feuille de style principale
   Thème : Blanc & Bleu
   ============================================================ */

/* ---- Variables de couleur ---- */
:root {
  --bleu-fonce:   #0d2b6e;
  --bleu:         #1a56c4;
  --bleu-clair:   #3b82f6;
  --bleu-pale:    #dbeafe;
  --blanc:        #ffffff;
  --gris-clair:   #f3f6fb;
  --gris-texte:   #4b5563;
  --gris-border:  #d1d5db;
  --ombre:        0 4px 18px rgba(13,43,110,.12);
  --radius:       10px;
}

/* ---- Reset de base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #1e293b;
  background: var(--blanc);
  line-height: 1.6;
}

a { color: var(--bleu); text-decoration: none; }
a:hover { color: var(--bleu-fonce); }

img { max-width: 100%; }

/* ============================================================
   NAVIGATION
   ============================================================ */
header {
  background: var(--bleu-fonce);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blanc);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .5px;
}

.logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--bleu-clair);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
}

nav ul li a {
  color: rgba(255,255,255,.85);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 500;
  transition: background .2s, color .2s;
}

nav ul li a:hover,
nav ul li a.actif {
  background: var(--bleu-clair);
  color: var(--blanc);
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--blanc);
  border-radius: 2px;
  transition: .3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--bleu-fonce) 0%, var(--bleu) 60%, var(--bleu-clair) 100%);
  color: var(--blanc);
  text-align: center;
  padding: 90px 24px 80px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  opacity: .9;
  max-width: 620px;
  margin: 0 auto 36px;
}

.btn-hero {
  display: inline-block;
  background: var(--blanc);
  color: var(--bleu-fonce);
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  margin: 6px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  color: var(--bleu-fonce);
}

.btn-hero-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.8);
  color: var(--blanc);
}
.btn-hero-outline:hover { background: rgba(255,255,255,.15); color: var(--blanc); }

/* ============================================================
   SECTIONS GÉNÉRIQUES
   ============================================================ */
.section {
  padding: 70px 24px;
}

.section-gris { background: var(--gris-clair); }

.section-titre {
  text-align: center;
  margin-bottom: 50px;
}

.section-titre h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bleu-fonce);
  margin-bottom: 10px;
}

.section-titre p {
  color: var(--gris-texte);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto;
}

.container { max-width: 1200px; margin: 0 auto; }

/* ============================================================
   CARTES DE SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--blanc);
  border: 1px solid var(--gris-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow .25s, transform .25s;
}

.service-card:hover {
  box-shadow: var(--ombre);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bleu-fonce);
  margin-bottom: 10px;
}

.service-card p {
  font-size: .92rem;
  color: var(--gris-texte);
}

/* ============================================================
   FORFAITS D'HÉBERGEMENT
   ============================================================ */
.forfaits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: start;
}

.forfait-card {
  background: var(--blanc);
  border: 2px solid var(--gris-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: box-shadow .25s, transform .25s;
}

.forfait-card:hover {
  box-shadow: var(--ombre);
  transform: translateY(-4px);
}

.forfait-card.populaire {
  border-color: var(--bleu-clair);
  box-shadow: 0 0 0 3px rgba(59,130,246,.2);
}

.badge-populaire {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bleu-clair);
  color: var(--blanc);
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 50px;
  letter-spacing: .5px;
  white-space: nowrap;
}

.forfait-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bleu-fonce);
  margin-bottom: 8px;
}

.forfait-prix {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--bleu);
  margin: 12px 0 4px;
}

.forfait-prix span { font-size: 1rem; font-weight: 500; color: var(--gris-texte); }

.forfait-desc {
  font-size: .88rem;
  color: var(--gris-texte);
  margin-bottom: 24px;
}

.forfait-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.forfait-features li {
  padding: 7px 0;
  font-size: .93rem;
  color: #374151;
  border-bottom: 1px solid var(--gris-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.forfait-features li:last-child { border-bottom: none; }

.forfait-features .check { color: #22c55e; font-weight: 700; }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .15s, box-shadow .2s;
}

.btn-primaire {
  background: var(--bleu);
  color: var(--blanc);
}
.btn-primaire:hover {
  background: var(--bleu-fonce);
  color: var(--blanc);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,86,196,.35);
}

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

.btn-pleine-largeur { display: block; width: 100%; text-align: center; }

/* ============================================================
   DOMAINES
   ============================================================ */
.recherche-domaine {
  background: var(--bleu-pale);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  margin-bottom: 50px;
}

.recherche-domaine h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--bleu-fonce);
  margin-bottom: 8px;
}

.recherche-domaine p {
  color: var(--gris-texte);
  margin-bottom: 24px;
}

.search-form {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
}

.search-form input {
  flex: 1;
  padding: 13px 18px;
  border: 2px solid var(--gris-border);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color .2s;
}

.search-form input:focus { border-color: var(--bleu-clair); }

.search-form button {
  padding: 13px 22px;
  background: var(--bleu);
  color: var(--blanc);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s;
}

.search-form button:hover { background: var(--bleu-fonce); }

.domaines-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--blanc);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--ombre);
}

.domaines-table thead {
  background: var(--bleu-fonce);
  color: var(--blanc);
}

.domaines-table th {
  padding: 15px 20px;
  text-align: left;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .3px;
}

.domaines-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gris-border);
  font-size: .95rem;
}

.domaines-table tr:last-child td { border-bottom: none; }

.domaines-table tr:nth-child(even) td { background: var(--gris-clair); }

.domaine-ext {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--bleu-fonce);
}

.prix-domaine {
  font-weight: 700;
  color: var(--bleu);
}

/* Résultat recherche domaine */
.resultat-recherche {
  margin-top: 18px;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 600;
  display: none;
}
.resultat-disponible { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.resultat-indisponible { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }

/* ============================================================
   FORMULAIRE DE CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bleu-fonce);
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--bleu-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-texte strong { display: block; color: var(--bleu-fonce); font-weight: 600; }
.contact-item-texte span { color: var(--gris-texte); font-size: .93rem; }

.form-card {
  background: var(--blanc);
  border: 1px solid var(--gris-border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--ombre);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 7px;
  color: #374151;
  font-size: .93rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--gris-border);
  border-radius: 7px;
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  background: var(--blanc);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--bleu-clair); }

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
  font-size: .93rem;
}
.alert-succes { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.alert-erreur { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }

/* ============================================================
   DIRECTADMIN — Grille 2 colonnes responsive
   ============================================================ */
.directadmin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .directadmin-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTION CTA (appel à l'action)
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--bleu-fonce), var(--bleu));
  color: var(--blanc);
  text-align: center;
  padding: 70px 24px;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.cta-section p {
  opacity: .9;
  font-size: 1.05rem;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #0a1f52;
  color: rgba(255,255,255,.8);
  padding: 48px 24px 24px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.footer-logo {
  color: var(--blanc);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.footer-desc {
  font-size: .88rem;
  line-height: 1.7;
  opacity: .75;
}

.footer-col h4 {
  color: var(--blanc);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a {
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--blanc); }

.footer-bottom {
  max-width: 1200px;
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .83rem;
  opacity: .6;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  nav ul { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
           background: var(--bleu-fonce); padding: 12px; gap: 4px; }
  nav ul.ouvert { display: flex; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 1.9rem; }
  .forfaits-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .search-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
